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

public

coordinateSystem  module:meteoJS/thermodynamicDiagram/coordinateSystem.CoordinateSystem

Coordinate system.

public

height  integer

Height of the area.

read-only

maxExtentLength  integer

Maximal extent length (either width or height).

read-only

minExtentLength  integer

Minimal extent length (either width or height).

public

style  string

Overflow-style of the area.

public read-only

svgNode  external:SVG

SVG container node.

public

visible  boolean

Visibility of the area.

public

width  integer

Width of the area.

public

x  integer

X of the top-left edge.

public

y  integer

Y of the top-left edge.

Methods

protected

_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

external:SVG

 

SVG group, SVG.G.

addTo(svgNode)

Sets the plot area as a child of the argument.

Parameter

Name Type Optional Description

svgNode

external:SVG

 

SVG node.

protected

drawBackground(svgNode)

Draw background into SVG group.

This method is only called, when this.coordinateSystem isn't undefined.

Parameter

Name Type Optional Description

svgNode

external:SVG

 

SVG group, SVG.G.

protected

getExtendedEvent(e, p)

Extend an event with some properties.

Parameters

Name Type Optional Description

e

external:Event

 

Event.

p

external:SVG

 

Point.

protected

init()

Init the area.

protected

onCoordinateSystemChange()

Called, when the coordinateSystem object changes.