meteoJS/thermodynamicDiagram/plotArea . PlotArea
Source: thermodynamicDiagram/
Abstract class to define an area on the SVG.
import PlotArea from 'meteojs/thermodynamicDiagram/PlotArea';
Properties
new PlotArea(options)
Parameter
Name | Type | Optional | Description |
---|---|---|---|
options |
|
|
Options. |
- Fires
- module:meteoJS/thermodynamicDiagram/plotArea#change:visible
- module:meteoJS/thermodynamicDiagram/plotArea#change:position
- module:meteoJS/thermodynamicDiagram/plotArea#change:extent
- module:meteoJS/thermodynamicDiagram/plotArea#prebuild:background
- module:meteoJS/thermodynamicDiagram/plotArea#postbuild:background
- module:meteoJS/thermodynamicDiagram/plotArea#event:click
- module:meteoJS/thermodynamicDiagram/plotArea#event:dblclick
- module:meteoJS/thermodynamicDiagram/plotArea#event:mousedown
- module:meteoJS/thermodynamicDiagram/plotArea#event:mouseup
- module:meteoJS/thermodynamicDiagram/plotArea#event:mouseover
- module:meteoJS/thermodynamicDiagram/plotArea#event:mouseout
- module:meteoJS/thermodynamicDiagram/plotArea#event:mousemove
- module:meteoJS/thermodynamicDiagram/plotArea#event:touchstart
- module:meteoJS/thermodynamicDiagram/plotArea#event:touchmove
- module:meteoJS/thermodynamicDiagram/plotArea#event:touchleave
- module:meteoJS/thermodynamicDiagram/plotArea#event:touchend
- module:meteoJS/thermodynamicDiagram/plotArea#event:touchcancel
Properties
coordinateSystem module:meteoJS/thermodynamicDiagram/coordinateSystem.CoordinateSystem
Coordinate system.
height integer
Height of the area.
maxExtentLength integer
Maximal extent length (either width or height).
minExtentLength integer
Minimal extent length (either width or height).
style string
Overflow-style of the area.
svgNode external:SVG
SVG container node.
visible boolean
Visibility of the area.
width integer
Width of the area.
x integer
X of the top-left edge.
y integer
Y of the top-left edge.
Methods
_drawBackground(svgNode)
Method to inherit from child classes to draw the background of the plot area.
This method is only called, when this.coordinateSystem isn't undefined.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
svgNode |
|
SVG group, SVG.G. |
addTo(svgNode)
Sets the plot area as a child of the argument.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
svgNode |
|
SVG node. |
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. |
getExtendedEvent(e, p)
Extend an event with some properties.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
e |
|
Event. |
|
p |
|
Point. |
init()
Init the area.
onCoordinateSystemChange()
Called, when the coordinateSystem object changes.