itemColours

Each item's colour from a colour style attribute.

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

#Signature

(
    value: unknown,
    count: number,
    source: ItemSource | null,
    params: Record<string, number>,
    fallback: string,
    order?: ReadonlyArray<number>,
): ItemColours

#Parameters

value
The attribute's value.
count
How many items there are, where source is null.
source
Where the readings come from.
params
The live parameter values.
fallback
The CSS for an item the value gives no colour.
order
Each item's place in written order, which a written list cycles by.

Declared in packages/canvas-sdk/src/data/item-looks.ts:181.

Last updated