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

Method invert

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

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

(pixel: number)

Source from the content-addressed store, hash-verified

26 * - If the domain span is 0 (min === max), returns domain min for any input.
27 */
28 invert(pixel: number): number;
29}
30
31export interface CategoryScale {

Callers 11

invertFunction · 0.80
onMouseMoveFunction · 0.80
renderFunction · 0.80
generateAxisVerticesFunction · 0.80
findNearestPointFunction · 0.80
findCandlestickFunction · 0.80
findPointsAtXFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected