styleKeyEntries

Returns the key entries one mark's style attributes earn: each key of the map its colour applies, beside its colour; each key of the map its shape, stroke style or fill style applies, beside that look in the mark's colour; or one entry per name where a map follows the same reading as the colour's — the marker, the line or the square in the colour.

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

#Signature

(
    attrs: Record<string, unknown>,
    params: Record<string, number>,
    fallback: string,
    patterns?: PatternAttributes,
): KeyEntry[]

#Parameters

attrs
The mark's attributes, as refined.
params
The live parameter values, for band ends.
fallback
The colour an entry without a colour of its own is drawn in, where the mark's colour applies no map.
patterns
Which attributes carry the mark's stroke style and fill style.

Declared in packages/canvas-sdk/src/footer/keys.ts:68.

Last updated