LeftAxisLayout Class
+ + + + +Algorithmic strategy for rendering a left axis.
+Constructor
+LeftAxisLayout
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Item Index
+ + +Methods
+ +-
+
+
- + _getDefaultMargins + + + + + +
- + _getTransformOrigin + + + + + +
- + _setRotationCoords + + + + + +
- + drawTick + + + + + +
- + getExplicitlySized + + + + + +
- + getLabelPoint + + + + + +
- + getLineStart + + + + + +
- + offsetNodeForTick + + + + + +
- + positionLabel + + + + + +
- + positionTitle + + + + + +
- + setCalculatedSize + + + + + +
- + setTickOffset + + + + + +
- + updateMaxLabelSize + + + + + +
Methods
+ + +_getDefaultMargins
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+
+ Default margins for text fields.
+Returns:
+ +_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 + + + + +++ + +The rotation (in degrees) of the label.
+
+
+
Returns:
+ +_setRotationCoords
+
+
+ -
+
+
-
+
+
props+ +
+
+
Adjusts the coordinates of an axis label based on the rotation.
+Parameters:
+ +-
+
+
-
+
+
props+ Object + + + + +++ + +Coordinates, dimension and rotation properties of the label.
+
+
+
drawTick
+
+
+ -
+
+
-
+
+
path+ +
+
+ -
+
+
pt+ +
+
+ -
+
+
tickStyle+ +
+
+
Draws a tick
+Parameters:
+ + +getExplicitlySized
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+ protected
+
+
+
+
+
+
+
+
+
+
+
+
+ Determines the available label width when the axis width has been explicitly set.
+Returns:
+ +getLabelPoint
+
+
+ -
+
+
-
+
+
point+ +
+
+
Calculates the point for a label.
+Parameters:
+ +-
+
+
-
+
+
point+ Object + + + + +++ + +Point on the axis in which the tick will intersect.
+
+
+
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 + + + + +++ + +contentBox of the axis
+
+
+
positionLabel
+
+
+ -
+
+
-
+
+
label+ +
+
+ -
+
+
pt+ +
+
+
Rotate and position labels.
+Parameters:
+ +-
+
+
-
+
+
label+ HTMLElement + + + + +++ + +to rotate position
+
+
+ -
+
+
pt+ Object + + + + +++ + +hash containing the x and y coordinates in which the label will be positioned +against.
+
+
+
positionTitle
+
+
+ -
+
+
-
+
+
label+ +
+
+
Rotate and position title.
+Parameters:
+ +-
+
+
-
+
+
label+ HTMLElement + + + + +++ + +to rotate position
+
+
+
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 + + + + +++ + +to measure
+
+
+
