windowPlace
Where one reading falls along a pinned window: its place, 0..1, clamped to the nearer end — clamp((x − lo) / (hi − lo), 0, 1), the compiler's rule for an interval applied to a number (D69), which a wash asks once per sample rather than once per item. Null where the window is not pinned (a ramp over the readings' own range, which the surface places itself).
@internote/canvas-sdkOn this page
import { windowPlace } from '@internote/canvas-sdk';#Signature
(colouring: Extract<ValueColouring, {
kind: "ramp";
}>, reading: number): {
t: number;
} | null#Parameters
colouringA ramp
valueColouring returned.readingThe item's own reading.
Declared in packages/canvas-sdk/src/data/item-looks.ts:323.