itemColours
Each item's colour from a colour style attribute.
@internote/canvas-sdkOn 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
valueThe attribute's value.
countHow many items there are, where
source is null.sourceWhere the readings come from.
paramsThe live parameter values.
fallbackThe CSS for an item the value gives no colour.
orderEach item's place in written order, which a written list cycles by.
Declared in packages/canvas-sdk/src/data/item-looks.ts:181.