Skip to main content

Interface: ContourOptions

Defined in: Contour.ts:16

Options for Contour components

Properties

PropertyTypeDescriptionDefined in
cmap?ColorMap | nullA color map to use to color the contours. Specifying a colormap overrides the color option. Default nullContour.ts:27
color?stringThe color of the contours as a hex color string Default '#000000'Contour.ts:21
interval?numberThe contour interval for drawing contours at regular intervals Default 1Contour.ts:33
levels?number[] | nullA list of arbitrary levels to contour. This overrides the interval option. Default nullContour.ts:39
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:55
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 2Contour.ts:47
quad_as_tri?boolean-Contour.ts:61