Skip to main content

Interface: ContourOptions

Defined in: Contour.ts:15

Options for Contour components

Properties

PropertyTypeDescriptionDefined in
cmap?null | ColorMapA color map to use to color the contours. Specifying a colormap overrides the color option. Default nullContour.ts:26
color?stringThe color of the contours as a hex color string Default '#000000'Contour.ts:20
interval?numberThe contour interval for drawing contours at regular intervals Default 1Contour.ts:32
levels?null | number[]A list of arbitrary levels to contour. This overrides the interval option. Default nullContour.ts:38
line_style?LineStyle | (level) => LineStyleThe 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) => numberThe 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 2Contour.ts:46
quad_as_tri?boolean-Contour.ts:60