Create a new ruler
Name | Type | Description |
---|---|---|
viewer |
Viewer |
The viewer |
options |
Object |
Attributes used to create the ruler |
meta |
Object |
optional
User-defined Meta data to add to the ruler. |
Extends
Members
-
canvasCanvas
-
Get the canvas.
-
colorColor
-
Get or set the Color. When setting the color, a string representing the color or a
Color
object can be used. For details seeColor
. -
fontFont
-
Get or set the font. When setting the font, a string representing the font or a
Font
object can be used. For details seeFont
. -
layoutLayout
-
Get the layout.
-
majorTicksArray
-
Get the array of Major Ticks.
-
majorTickStepNumber
-
Get distance between major tick marks.
-
metaBoolean
-
Get or Set the meta data of this object. See the meta data tutorial for details.
-
minorTicksArray
-
Get the array of Minor Ticks.
-
minorTickStepNumber
-
Get distance between minor tick marks.
-
sequenceSequence
-
Get the sequence.
-
tickFormaterObject
-
Get the d3 formatter for printing the tick labels
-
viewerViewer
-
Get the viewer.
-
visibleBoolean
-
Get or Set the visibility of this object.
Methods
-
inherited deleteFromObjects()
-
Remove the object from Viewer.objects
-
Returns JSON representing the object
-
Return the class name as a string.
Returns:
Type Description String - 'Ruler'
-
Update ruler attributes. See updating records for details.
Name Type Description attributes
Object Object describing the properties to change