itemSizes

Each item's size from a size or width style attribute, in the mark's own units: one for every item, a list cycled item by item, or one per item from an application — #self.degree -> 1..10 -> 1 + 2_ (D71). A scale written that way earns a key: the interval it normalised over, and the size its expression draws at each end.

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

#Signature

(
    value: unknown,
    source: ItemSource | null,
    params: Record<string, number>,
): ItemSizes

#Parameters

value
The attribute's value.
source
Where the readings come from.
params
The live parameter values.

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

Last updated