new xAxis()

Extends
module:meteoJS/thermodynamicDiagram/axis.Axis

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.

Inherited from
module:meteoJS/thermodynamicDiagram/axis.Axis#_drawBackground

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

Yes

Minimum temperature value to label.

max

number

Yes

Maximum temperature value to label.

getTextByInterval

function()

Yes

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

getPositionByInterval

function()

Yes

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/axes/xAxis~labelOptions

Normalize the options for the labels.

Parameter

Name Type Optional Description

options

module:meteoJS/thermodynamicDiagram/axes/xAxis~labelOptions

 

Options.

Returns

module:meteoJS/thermodynamicDiagram/axes/xAxis~labelOptions 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