(private) new TAxisPainter(dom, axis, embedded)
Painter for TAxis object
- Source:
Parameters:
Name | Type | Description |
---|---|---|
dom |
object | string | identifier or dom element |
axis |
object | object to draw |
embedded |
boolean | if true, painter used in other objects painters |
Methods
addTitleDrag()
Add interactive elements to draw axes title
- Source:
(private) checkZoomMin()
Check zooming value for log scale
- Source:
cleanup()
cleanup painter
- Source:
(private) configureAxis()
Configure axis painter
- Description:
Axis can be drawn inside frame
group with offset to 0 point for the frame Therefore one should distinguish when calculated coordinates used for axis drawing itself or for calculation of frame coordinates
- Source:
createTicks()
Creates array with minor/middle/major ticks
- Source:
cutLabels()
Return true if labels may be removed while they are not fit to graphical range
- Source:
(async) drawAxis() → {Promise}
function draws TAxis or TGaxis object
- Source:
Returns:
for drawing ready
- Type
- Promise
(async) drawLabels() → {Promise}
Draw axis labels
- Source:
Returns:
with array label size and max width
- Type
- Promise
(private) extractDrawAttributes()
Extract major draw attributes, which are also used in interactive operations
- Source:
findLabelModifier()
Returns modifier for axis label
- Source:
formatLabels()
Provide label for axis value
- Source:
getAxisType()
Use in GED to identify kind of axis
- Source:
getScaleMax()
Return scale max
- Source:
getScaleMin()
Return scale min
- Source:
isCenteredLabels()
Is labels should be centered
- Source:
isRotateLabels()
Is labels should be rotated
- Source:
isRotateTitle()
Is title should be rotated
- Source:
produceTicksPath()
Produce svg path for axis ticks
- Source:
(private) setHistPainter()
Configure hist painter which creates axis - to be able submit execs
- Source:
(private) submitAxisExec()
Submit exec for the axis - if possible
- Source: