meteoJS/thermodynamicDiagram/hodograph . Hodograph
Source: thermodynamicDiagram/
Class to draw the hodograph.
import Hodograph from 'meteojs/thermodynamicDiagram/Hodograph';
Properties
Methods
new Hodograph(options)
Parameter
Name | Type | Optional | Description |
---|---|---|---|
options |
|
|
Options. |
Properties
center Array of number
The origin of the hodograph in pixel coordinates.
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
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).
origin (Array of number or undefined)
Origin of the hodograph relative to the plot area. If not undefined, it has to be a 2-element array. The first element moves the origin in x direction, the second in y direction. The values are interpreted as relative length (relating to the half width resp. height). Positive values to move in North-East direction. E.g. to move the origin the half way to the upper right corner, use [0.5, 0.5].
pixelPerSpeed number
Returns the pixel per speed unit. Mainly for internal usage.
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()
Plots hodograph background.
_initHoverLabels(options)
Initialize hover labels options.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
options |
module:meteoJS/thermodynamicDiagram/hodograph~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. |
drawSounding(sounding, group)
Draw the sounding into the SVG group.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
sounding |
|
|
Sounding object. |
group |
|
|
SVG group, SVG.G. |
drawSoundings()
Draws all soundings.
getExtendedEvent(e, p)
Extend an event with some properties.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
e |
|
|
Event. |
p |
|
|
Point. |
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. |