MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / scale

Method scale

src/utils/scales.ts:19–19  ·  view source on GitHub ↗

* Maps a domain value to a range value. * * Notes: * - No clamping (will extrapolate outside the domain). * - If the domain span is 0 (min === max), returns the midpoint of the range.

(value: number)

Source from the content-addressed store, hash-verified

17 * - If the domain span is 0 (min === max), returns the midpoint of the range.
18 */
19 scale(value: number): number;
20
21 /**
22 * Maps a range value (pixel) back to a domain value.

Callers 15

createAnimatedBarYScaleFunction · 0.65
scaleFunction · 0.65
renderFunction · 0.65
computeCategoryWidthClipFunction · 0.65
prepareFunction · 0.65
generateAxisVerticesFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected