surfacePaintOf

Parses a heatmap, contour or choropleth's colour into the scale it draws with, accepting multicolour and temperature as well as colours.

@internote/canvas-sdkFunction
On this page
import { surfacePaintOf } from '@internote/canvas-sdk';

parseSurfacePaint with the two named scales added. null when the value is not a colour.

#Signature

(value: unknown): SurfacePaint | null

#Parameters

value
A surface colour attribute value.

Declared in packages/canvas-sdk/src/paint/index.ts:241.

Last updated