Child class

Class

Method

static

drawPressureHoverLabelInto(svgNode, pres, coordinateSystem[, options])

Draws pressure hover label.

Parameters

Name Type Optional Description

svgNode

external:SVG

 

SVG node to draw into.

pres

number

 

Pressure.

coordinateSystem

module:meteoJS/thermodynamicDiagram/coordinateSystem.CoordinateSystem

 

Coordinate system.

options

module:meteoJS/thermodynamicDiagram/tdDiagram~presLabelOptions

Yes

Options.

Abstract types

inner

event  module:meteoJS/thermodynamicDiagram/plotArea~event

Object passed on events.

Properties

Name Type Optional Description

p

number

 

Pressure coordinate [hPa].

T

number

 

Temperature coordinate [K].

inner

hoverLabelsOptions  module:meteoJS/thermodynamicDiagram/plotAltitudeDataArea~hoverLabelsOptions

Options for labels on hovering the thermodynamic diagram.

Properties

Name Type Optional Description

pres

module:meteoJS/thermodynamicDiagram/tdDiagram~presLabelOptions

Yes

Options for pressure label.

temp

module:meteoJS/thermodynamicDiagram/tdDiagram~labelsOptions

Yes

Options for temperature label.

dewp

module:meteoJS/thermodynamicDiagram/tdDiagram~labelsOptions

Yes

Options for dew point label.

wetbulb

module:meteoJS/thermodynamicDiagram/tdDiagram~labelsOptions

Yes

Options for wetbulb temperature label.

inner

labelsOptions  module:meteoJS/thermodynamicDiagram~lineTextOptions

Options for labels.

Properties

Name Type Optional Description

fill

(string or Object)

Yes

Fill option for background rect. Default is 'white' with opacity 0.7.

horizontalMargin

number

Yes

Margin in x direction.

Defaults to 10.

verticalMargin

number

Yes

Margin in y direction.

Defaults to 0.

radius

number

Yes

Radius for hover circle.

radiusPlus

number

Yes

Radius relative to line width for hover circle.

Defaults to 2.

inner

linesOptions  module:meteoJS/thermodynamicDiagram~lineStyleOptions

Definition of lines in a thermodynamic diagram.

Properties

Name Type Optional Description

highlightedLines

(undefined or Array of number)

Yes

Highlight lines at this values.

lines

(undefined or Array of number)

Yes

Draw values for this values.

max

number

Yes

Maximum value for a line. Ignored if lines is set.

min

number

Yes

Minimum value for a line. Ignored if lines is set.

interval

number

Yes

Interval between different lines. Ignored if lines is set.

maxPressure

number

Yes

Start line from this maximum pressure.

minPressure

number

Yes

End line at this minimum pressure.

inner

options  module:meteoJS/thermodynamicDiagram/plotAltitudeDataArea~options

Options for the constructor.

Parameters

Name Type Optional Description

isobars

module:meteoJS/thermodynamicDiagram/tdDiagram~linesOptions

Yes

Isobars configuration.

isotherms

module:meteoJS/thermodynamicDiagram/tdDiagram~linesOptions

Yes

Isotherms configuration.

dryadiabats

module:meteoJS/thermodynamicDiagram/tdDiagram~linesOptions

Yes

Dry adiabats configuration.

pseudoadiabats

module:meteoJS/thermodynamicDiagram/tdDiagram~linesOptions

Yes

Pseudo adiabats configuration.

mixingratio

module:meteoJS/thermodynamicDiagram/tdDiagram~linesOptions

Yes

Mixing ratio configuration.

hoverLabels

module:meteoJS/thermodynamicDiagram/tdDiagram~hoverLabelsOptions

Yes

Hover labels options.

parcels

module:meteoJS/thermodynamicDiagram/tdDiagram~parcelsOptions

Yes

Parcels options.

inner

parcelsOptions  Object

Options for parcels in the diagram.

Property

Name Type Optional Description

visible

boolean

Yes

Visibility of parcels.

Defaults to true.

inner

presLabelOptions  module:meteoJS/thermodynamicDiagram~lineTextOptions

Options for pressure label.

Properties

Name Type Optional Description

fill

(string or Object)

Yes

Fill option for background rect. Default is 'white' with opacity 0.7.

horizontalMargin

number

Yes

Margin in x direction.

Defaults to 5.

verticalMargin

number

Yes

Margin in y direction.

Defaults to 0.

length

(number or '100%')

Yes

Length of the horizontal line. A number is in pixel unit. A string with a appended '%' indicates a length relative to the diagram width.

Defaults to 60.

align

('left' or 'right')

Yes

Align pressure label left/right in the diagram.

Defaults to 'left'.

Events

click  module:meteoJS/thermodynamicDiagram/tdDiagram~event

dblclick  module:meteoJS/thermodynamicDiagram/tdDiagram~event

mousedown  module:meteoJS/thermodynamicDiagram/tdDiagram~event

mousemove  module:meteoJS/thermodynamicDiagram/tdDiagram~event

mouseout  module:meteoJS/thermodynamicDiagram/tdDiagram~event

mouseover  module:meteoJS/thermodynamicDiagram/tdDiagram~event

mouseup  module:meteoJS/thermodynamicDiagram/tdDiagram~event

touchcancel  module:meteoJS/thermodynamicDiagram/tdDiagram~event

touchend  module:meteoJS/thermodynamicDiagram/tdDiagram~event

touchleave  module:meteoJS/thermodynamicDiagram/tdDiagram~event

touchmove  module:meteoJS/thermodynamicDiagram/tdDiagram~event

touchstart  module:meteoJS/thermodynamicDiagram/tdDiagram~event