Interface: ContourOptions
Defined in: Contour.ts:15
Options for Contour components
Properties
Property | Type | Description | Defined in |
---|---|---|---|
cmap? | null | ColorMap | A color map to use to color the contours. Specifying a colormap overrides the color option. Default null | Contour.ts:26 |
color? | string | The color of the contours as a hex color string Default '#000000' | Contour.ts:20 |
interval? | number | The contour interval for drawing contours at regular intervals Default 1 | Contour.ts:32 |
levels? | null | number [] | A list of arbitrary levels to contour. This overrides the interval option. Default null | Contour.ts:38 |
line_style? | LineStyle | (level ) => LineStyle | The style to use for the line. This can be either a LineStyle or a function that takes a contour level as a number and returns a LineStyle. This can be used to vary the contours by value. Example level => level < 0 ? '--' : '-' Default '-' | Contour.ts:54 |
line_width? | number | (level ) => number | The width of the line in pixels. This could be either a number or a function that takes a contour level as a number and returns a line width. This can be used to vary the width of the contours by value. Example level => level >= 100 ? 3 : 1.5 Default 2 | Contour.ts:46 |
quad_as_tri? | boolean | - | Contour.ts:60 |