new DiagramSounding(sounding[, options])

Parameters

Name Type Optional Description

sounding

 

 

Sounding data.

options

 

Yes

Options.

Extends
module:meteoJS/base/unique.Unique
Fires
module:meteoJS/thermodynamicDiagram/diagramSounding#change:visible
module:meteoJS/thermodynamicDiagram/diagramSounding#change:options

Properties

read-only

diagramParcelCollection  module:meteoJS/base/collection.Collection

Collection of the DiagramParcel objects.

id  unknown

Id.

Inherited from
module:meteoJS/base/unique.Unique#id
read-only

sounding  module:meteoJS/sounding.Sounding

Sounding data.

visible  boolean

Visibility of the sounding.

Fires
module:meteoJS/thermodynamicDiagram/diagramSounding#change:visible

Methods

addParcel(parcel[, options]) → module:meteoJS/thermodynamicDiagram/diagramParcel.diagramParcel

Add a parcel with styles to the sounding. (analogue to module:meteoJS/thermodynamicDiagramPluggable.ThermodynamicDiagramPluggable#addSounding)

Parameters

Name Type Optional Description

parcel

module:meteoJS/sounding/parcel.Parcel

 

Parcel object.

options

module:meteoJS/thermodynamicDiagram/diagramParcel~parcelOptions

Yes

Style options.

Returns

module:meteoJS/thermodynamicDiagram/diagramParcel.diagramParcel Parcel object for the diagram with style options.

public

getParcelOptions([parcel]) → module:meteoJS/thermodynamicDiagram/diagramSounding~parcelsOptions

Returns normalized visibility and style options for a parcel. This is a combination of the specific options for the passed parcel and the defaults.

Parameter

Name Type Optional Description

parcel

module:meteoJS/sounding/parcel.Parcel

Yes

Parcel.

Returns

module:meteoJS/thermodynamicDiagram/diagramSounding~parcelsOptions Parcel options.

protected

setId(id)

Fired, wenn id-setter is called.

Parameter

Name Type Optional Description

id

 

 

Id.

Inherited from
module:meteoJS/base/unique.Unique#setId

update([options])

Updated the style options for this sounding.

Parameter

Name Type Optional Description

options

module:meteoJS/thermodynamicDiagram/diagramSounding~options

Yes

Options.

Fires
module:meteoJS/thermodynamicDiagram/diagramSounding#change:visible
module:meteoJS/thermodynamicDiagram/diagramSounding#change:options