new Axis(options)

Parameter

Name Type Optional Description

options

 

 

Options.

Extends
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea

Properties

public

coordinateSystem  unknown

Coordinate system.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#coordinateSystem
public

height  unknown

Height of the area.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#height
read-only

maxExtentLength  unknown

Maximal extent length (either width or height).

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#maxExtentLength
read-only

minExtentLength  unknown

Minimal extent length (either width or height).

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#minExtentLength
public

style  unknown

Overflow-style of the area.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#style
public read-only

svgNode  unknown

SVG container node.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#svgNode
public

visible  unknown

Visibility of the area.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#visible
public

width  unknown

Width of the area.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#width
public

x  unknown

X of the top-left edge.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#x
public

y  unknown

Y of the top-left edge.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#y

Methods

_drawBackground()

Draw background into SVG group.

addTo(svgNode)

Sets the plot area as a child of the argument.

Parameter

Name Type Optional Description

svgNode

 

 

SVG node.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#addTo
protected

drawBackground(svgNode)

Draw background into SVG group.

This method is only called, when this.coordinateSystem isn't undefined.

Parameter

Name Type Optional Description

svgNode

 

 

SVG group, SVG.G.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#drawBackground

drawLabels(svgNode, min, max, getTextByInterval, getPositionByInterval)

Draws the labels of the axis.

Parameters

Name Type Optional Description

svgNode

external:SVG

 

Node to draw into.

min

number

 

Minimum value for the labels.

max

number

 

Maximum value for the labels.

getTextByInterval

function()

 

Returns the text representation of the label value (its argument).

getPositionByInterval

function()

 

Returns the position in pixels of the label value (its argument).

protected

getExtendedEvent(e, p)

Extend an event with some properties.

Parameters

Name Type Optional Description

e

 

 

Event.

p

 

 

Point.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#getExtendedEvent

getNormalizedLabelsOptions(options) → module:meteoJS/thermodynamicDiagram/axis~labelsOptions

Normalize the options for the labels.

Parameter

Name Type Optional Description

options

module:meteoJS/thermodynamicDiagram/axis~labelsOptions

 

Options.

Returns

module:meteoJS/thermodynamicDiagram/axis~labelsOptions Normalized options.

protected

init()

Init the area.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#init
protected

onCoordinateSystemChange()

Called, when the coordinateSystem object changes.

Inherited from
module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#onCoordinateSystemChange