StyleAttributeSpec

One style attribute: the kind of look it gives each item, and the type of one look.

@internote/canvas-sdkInterface
On this page
import { StyleAttributeSpec } from '@internote/canvas-sdk';

#Fields

kindRequired
The kind of look it gives each item.
fillcolourstrokeshapesizewidthopacity
look
The type of one look. Absent, the kind's own: paint for a colour, number for a size, a width or an opacity, STROKE_STYLES for a stroke, FILL_STYLES for a fill. A shape names its mark's shapes ({ base: 'enum', values: [...] }).
TypeRefSpec
ramps
Whether the mark reads a number of its own and is coloured along a ramp — a heatmap, a choropleth, a wash: its look is a colour literal or a RAMP_TYPE value (a ramp's name or a bare hue), so colour: temperature and colour: blue are ramps over the readings' own range and a list of looks is the stops of one.
boolean

Declared in packages/canvas-sdk/src/refine/style-attributes.ts:82.

Last updated