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-sdkOn this page
import { styleKeyEntries } from '@internote/canvas-sdk';#Signature
(
attrs: Record<string, unknown>,
params: Record<string, number>,
fallback: string,
patterns?: PatternAttributes,
): KeyEntry[]#Parameters
attrsThe mark's attributes, as refined.
paramsThe live parameter values, for band ends.
fallbackThe colour an entry without a colour of its own is drawn in, where the mark's colour applies no map.
patternsWhich attributes carry the mark's stroke style and fill style.
Declared in packages/canvas-sdk/src/footer/keys.ts:68.