meteoJS/thermodynamicDiagram/functions
Source: thermodynamicDiagram/
Methods
drawTextInto(options) → external:SVG
Draws text in a SVG node.
Parameters
| Name | Type | Optional | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
options |
Object |
|
Options. Values in
|
- Returns
-
external:SVG- SVG group containing the inserted elements.
drawWindbarbInto(options)
Draws a windbarb into an SVG node.
Parameters
| Name | Type | Optional | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
options |
Object |
|
Options. Values in
|
getFirstDefinedValue() → (mixed or undefined)
Returns the first defined argument.
Parameter
| Name | Type | Optional | Description |
|---|---|---|---|
|
...params |
(mixed or undefined) |
Yes |
Some values. |
- Returns
-
(mixed or undefined)- First defined value, if available.
getNormalizedLineOptions([options][, defaults]) → module:meteoJS/thermodynamicDiagram~lineOptions
Returns normalized line options with visibility and line style.
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
options |
Yes |
Options. |
|
|
defaults |
Yes |
Optional defaults. |
- Returns
-
module:meteoJS/thermodynamicDiagram~lineOptionsNormalized options.
getNormalizedLineTextOptions([options][, defaults]) → module:meteoJS/thermodynamicDiagram~lineTextOptions
Returns normalized text options with visibility, line and font style.
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
options |
Yes |
Options. |
|
|
defaults |
Yes |
Optional defaults. |
- Returns
-
module:meteoJS/thermodynamicDiagram~lineTextOptionsNormalized options.
getNormalizedTextOptions([options][, defaults]) → module:meteoJS/thermodynamicDiagram~textOptions
Returns normalized text options with visibility and line style.
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
options |
Yes |
Options. |
|
|
defaults |
Yes |
Optional defaults. |
- Returns
-
module:meteoJS/thermodynamicDiagram~textOptionsNormalized options.