LeftAxisLayout Class
Algorithmic strategy for rendering a left axis.
Constructor
LeftAxisLayout
()
Index
Methods
_getDefaultMargins
()
private
Default margins for text fields.
Returns:
<p><p>Object</p></p>
_getTransformOrigin
-
rot
Returns the transformOrigin to use for an axis label based on the position of the axis and the rotation of the label.
Parameters:
-
rot
Number<p><p>The rotation (in degrees) of the label.</p></p>
Returns:
<p><p>Array</p></p>
_setRotationCoords
-
props
Adjusts the coordinates of an axis label based on the rotation.
Parameters:
-
props
Object<p><p>Coordinates, dimension and rotation properties of the label.</p></p>
drawTick
-
path
-
pt
-
tickStyle
Draws a tick
Parameters:
-
path
Path<p><p>reference to the path <code>Path</code> element in which to draw the tick.</p></p>
-
pt
Object<p><p>Point on the axis in which the tick will intersect.</p></p>
-
tickStyle
Object<p><p>Hash of properties to apply to the tick.</p></p>
getExplicitlySized
()
protected
Determines the available label width when the axis width has been explicitly set.
Returns:
<p><p>Boolean</p></p>
getLabelPoint
-
point
Calculates the point for a label.
Parameters:
-
point
Object<p><p>Point on the axis in which the tick will intersect.</p></p>
Returns:
getLineStart
()
Object
protected
Calculates the coordinates for the first point on an axis.
Returns:
offsetNodeForTick
-
cb
Adjust the position of the Axis widget's content box for internal axes.
Parameters:
-
cb
Node<p><p>contentBox of the axis</p></p>
positionLabel
-
label
-
pt
Rotate and position labels.
Parameters:
-
label
HTMLElement<p><p>to rotate position</p></p>
-
pt
Object<p><p>hash containing the x and y coordinates in which the label will be positioned against.</p></p>
positionTitle
-
label
Rotate and position title.
Parameters:
-
label
HTMLElement<p><p>to rotate position</p></p>
setCalculatedSize
()
protected
Sets the width of the axis based on its contents.
setTickOffset
()
protected
Sets the length of the tick on either side of the axis line.
updateMaxLabelSize
-
label
Updates the value for the maxLabelSize
for use in calculating total size.
Parameters:
-
label
HTMLElement<p><p>to measure</p></p>