meteoJS/thermodynamicDiagram/tdDiagram
Source: thermodynamicDiagram/
Child class
Abstract types
Class
TDDiagram
Method
drawPressureHoverLabelInto(svgNode, pres, coordinateSystem[, options])
Draws pressure hover label.
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
svgNode |
|
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
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]. |
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 |
Yes |
Options for temperature label. |
|
|
dewp |
Yes |
Options for dew point label. |
|
|
wetbulb |
Yes |
Options for wetbulb temperature label. |
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 |
|
verticalMargin |
number |
Yes |
Margin in y direction. Defaults to |
|
radius |
number |
Yes |
Radius for hover circle. |
|
radiusPlus |
number |
Yes |
Radius relative to line width for hover circle. Defaults to |
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. |
options module:meteoJS/thermodynamicDiagram/plotAltitudeDataArea~options
Options for the constructor.
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
isobars |
Yes |
Isobars configuration. |
|
|
isotherms |
Yes |
Isotherms configuration. |
|
|
dryadiabats |
Yes |
Dry adiabats configuration. |
|
|
pseudoadiabats |
Yes |
Pseudo adiabats configuration. |
|
|
mixingratio |
Yes |
Mixing ratio configuration. |
|
|
hoverLabels |
module:meteoJS/thermodynamicDiagram/tdDiagram~hoverLabelsOptions |
Yes |
Hover labels options. |
|
parcels |
module:meteoJS/thermodynamicDiagram/tdDiagram~parcelsOptions |
Yes |
Parcels options. |
parcelsOptions Object
Options for parcels in the diagram.
Property
| Name | Type | Optional | Description |
|---|---|---|---|
|
visible |
boolean |
Yes |
Visibility of parcels. Defaults to |
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 |
|
verticalMargin |
number |
Yes |
Margin in y direction. Defaults to |
|
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 |
|
align |
('left' or 'right') |
Yes |
Align pressure label left/right in the diagram. Defaults to |