Class: Contour<ArrayType, GridType, MapType>
Defined in: Contour.ts:85
A field of contoured data.
Example
// Create a contoured height field, with black contours every 30 m (assuming the height field is in
// meters).
const contours = new Contour(height_field, {color: '#000000', interval: 30});
Extends
PlotComponent<MapType>
Type Parameters
| Type Parameter |
|---|
ArrayType extends TypedArray |
GridType extends StructuredGrid |
MapType extends MapLikeType |
Constructors
Constructor
new Contour<
ArrayType,GridType,MapType>(field,opts):Contour<ArrayType,GridType,MapType>
Defined in: Contour.ts:97
Create a contoured field
Parameters
| Parameter | Type | Description |
|---|---|---|
field | RawScalarField<ArrayType, GridType> | The field to contour |
opts | ContourOptions | Options for creating the contours |
Returns
Contour<ArrayType, GridType, MapType>
Overrides
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
opts | readonly | Required<ContourOptions> | Contour.ts:87 |
Methods
getContours()
getContours():
Promise<ContourData>
Defined in: Contour.ts:170
Returns
Promise<ContourData>
updateField()
updateField(
field):Promise<void>
Defined in: Contour.ts:111
Update the data displayed as contours
Parameters
| Parameter | Type | Description |
|---|---|---|
field | RawScalarField<ArrayType, GridType> | The new field to contour |
Returns
Promise<void>