Class: BaseDisplay

BaseDisplay

Base class to extend in order to create graphic sinks.

This class should be considered abstract and only be used to be extended.

Constructor

new BaseDisplay(options)

Parameters:
Name Type Description
options Object

Override default parameters.

Properties
Name Type Attributes Default Description
min Number <optional>
-1

Minimum value represented in the canvas. dynamic parameter

max Number <optional>
1

Maximum value represented in the canvas. dynamic parameter

width Number <optional>
300

Width of the canvas. dynamic parameter

height Number <optional>
150

Height of the canvas. dynamic parameter

container Element | CSSSelector <optional>
null

Container element in which to insert the canvas. constant parameter

canvas Element | CSSSelector <optional>
null

Canvas element in which to draw. constant parameter

duration Number <optional>
1

Duration (in seconds) represented in the canvas. This parameter only exists for operators that display several consecutive frames on the canvas. dynamic parameter

referenceTime Number <optional>
null

Optionnal reference time the display should considerer as the origin. Is only usefull when synchronizing several display using the DisplaySync class. This parameter only exists for operators that display several consecutive frames on the canvas.

Source:
To Do:
  • - fix float rounding errors (produce decays in sync draws)