meteoJS/thermodynamicDiagram/tdDiagram . TDDiagram
Source: thermodynamicDiagram/
Class to draw the real thermodynamic diagram.
import TDDiagram from 'meteojs/thermodynamicDiagram/TDDiagram';
Properties
Methods
new TDDiagram([options])
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
options |
|
Yes |
Options. |
- Extends
- module:meteoJS/thermodynamicDiagram/plotAltitudeDataArea.PlotAltitudeDataArea
- Fires
- module:meteoJS/thermodynamicDiagram/tdDiagram#event:click
- module:meteoJS/thermodynamicDiagram/tdDiagram#event:dblclick
- module:meteoJS/thermodynamicDiagram/tdDiagram#event:mousedown
- module:meteoJS/thermodynamicDiagram/tdDiagram#event:mouseup
- module:meteoJS/thermodynamicDiagram/tdDiagram#event:mouseover
- module:meteoJS/thermodynamicDiagram/tdDiagram#event:mouseout
- module:meteoJS/thermodynamicDiagram/tdDiagram#event:mousemove
- module:meteoJS/thermodynamicDiagram/tdDiagram#event:touchstart
- module:meteoJS/thermodynamicDiagram/tdDiagram#event:touchmove
- module:meteoJS/thermodynamicDiagram/tdDiagram#event:touchleave
- module:meteoJS/thermodynamicDiagram/tdDiagram#event:touchend
- module:meteoJS/thermodynamicDiagram/tdDiagram#event:touchcancel
Properties
coordinateSystem unknown
Coordinate system.
dataGroupIds unknown
Groups of different data to plot onto the plot area.
getCoordinatesByLevelData unknown
Returns x and y coordinated of some sounding data.
- Inherited from
- module:meteoJS/thermodynamicDiagram/plotDataArea.PlotDataArea#getCoordinatesByLevelData
height unknown
Height of the area.
- Inherited from
- module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#height
isHoverLabelsRemote unknown
Show also hover labels when mouse isn't over the area.
- Inherited from
- module:meteoJS/thermodynamicDiagram/plotAltitudeDataArea.PlotAltitudeDataArea#isHoverLabelsRemote
maxExtentLength unknown
Maximal extent length (either width or height).
minDataPointsDistance unknown
Minimum distance between data points in pixels.
minExtentLength unknown
Minimal extent length (either width or height).
style unknown
Overflow-style of the area.
- Inherited from
- module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#style
svgNode unknown
SVG container node.
visible unknown
Visibility of the area.
width unknown
Width of the area.
- Inherited from
- module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#width
x unknown
X of the top-left edge.
- Inherited from
- module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#x
y unknown
Y of the top-left edge.
- Inherited from
- module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#y
Methods
_drawBackground()
Draw background into SVG group.
_initHoverLabels(options)
Initialize hover labels options.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
options |
module:meteoJS/thermodynamicDiagram/tdDiagram~hoverLabelsOptions |
|
Hover labels options. |
addSounding(sounding)
Adds a sounding to draw into the area.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
sounding |
|
|
Sounding object. |
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
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. |
drawParcels(sounding)
Draws parcels of a sounding.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
sounding |
module:meteoJS/thermodynamicDiagram/diagramSounding.DiagramSounding |
|
Sounding. |
drawSounding()
Draw the sounding into the SVG group.
drawSoundings()
Draws all soundings.
getDryadiabatsVisible() → boolean
Return the visibility of the dry adiabats.
- Deprecated
- Returns
-
booleanVisibility of the dry adiabats.
getExtendedEvent()
Extend an event with temperature and pressure.
getIsobarsVisible() → boolean
Return the visibility of the isobars.
- Deprecated
- Returns
-
booleanVisibility of the isobars.
getIsothermsVisible() → boolean
Return the visibility of the isotherms.
- Deprecated
- Returns
-
booleanVisibility of the isotherms.
getMixingratioVisible() → boolean
Return the visibility of the mixing ratio.
- Deprecated
- Returns
-
booleanVisibility of the mixing ratio.
getPseudoadiabatsVisible() → boolean
Return the visibility of the pseudo adiabats.
- Deprecated
- Returns
-
booleanVisibility of the pseudo adiabats.
init()
Init the area.
- Inherited from
- module:meteoJS/thermodynamicDiagram/plotArea.PlotArea#init
onChangeSoundingVisibility(sounding, group)
Called, when a sounding changes its visibilty.
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
sounding |
|
|
Sounding object. |
|
group |
|
|
SVG group, SVG.G. |
- Inherited from
- module:meteoJS/thermodynamicDiagram/plotDataArea.PlotDataArea#onChangeSoundingVisibility
onCoordinateSystemChange()
Called, when the coordinateSystem object changes.
- Inherited from
- module:meteoJS/thermodynamicDiagram/plotDataArea.PlotDataArea#onCoordinateSystemChange
removeSounding(sounding)
Removes a sounding from the area.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
sounding |
|
|
Sounding object. |
setDisplayOfSounding(sounding, group)
Sets 'display' property of a SVG group of a sounding, depending of the sounding's visibility.
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
sounding |
|
|
Sounding object. |
|
group |
|
|
SVG group, SVG.G. |
setDryadiabatsVisible(visible) → module:meteoJS/thermodynamicDiagram/tdDiagram.TDDiagram
Sets the visibility of the dry adiabats.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
visible |
boolean |
|
Visibility of the dry adiabats. |
- Deprecated
- Returns
-
module:meteoJS/thermodynamicDiagram/tdDiagram.TDDiagramthis.
setIsobarsVisible(visible) → module:meteoJS/thermodynamicDiagram/tdDiagram.TDDiagram
Sets the visibility of the isobars.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
visible |
boolean |
|
Visibility of the isobars. |
- Deprecated
- Returns
-
module:meteoJS/thermodynamicDiagram/tdDiagram.TDDiagramthis.
setIsothermsVisible(visible) → module:meteoJS/thermodynamicDiagram/tdDiagram.TDDiagram
Sets the visibility of the isotherms.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
visible |
boolean |
|
Visibility of the isotherms. |
- Deprecated
- Returns
-
module:meteoJS/thermodynamicDiagram/tdDiagram.TDDiagramthis.
setMixingratioVisible(visible) → module:meteoJS/thermodynamicDiagram/tdDiagram.TDDiagram
Sets the visibility of the mixing ratio.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
visible |
boolean |
|
Visibility of the mixing ratio. |
- Deprecated
- Returns
-
module:meteoJS/thermodynamicDiagram/tdDiagram.TDDiagramthis.
setPseudoadiabatsVisible(visible) → module:meteoJS/thermodynamicDiagram/tdDiagram.TDDiagram
Sets the visibility of the pseudo adiabats.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
visible |
boolean |
|
Visibility of the pseudo adiabats. |
- Deprecated
- Returns
-
module:meteoJS/thermodynamicDiagram/tdDiagram.TDDiagramthis.