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

Function setRange

src/ChartGPU.ts:699–701  ·  view source on GitHub ↗
(start, end)

Source from the content-addressed store, hash-verified

697 const createCoordinatorZoomStateLike = (): ZoomState => {
698 const getRange: ZoomState['getRange'] = () => coordinator?.getZoomRange() ?? { start: 0, end: 100 };
699 const setRange: ZoomState['setRange'] = (start, end) => {
700 coordinator?.setZoomRange(start, end);
701 };
702 const zoomIn: ZoomState['zoomIn'] = (center, factor) => {
703 if (!Number.isFinite(center) || !Number.isFinite(factor) || factor <= 1) return;
704 const r = coordinator?.getZoomRange();

Callers

nothing calls this directly

Calls 1

setZoomRangeMethod · 0.65

Tested by

no test coverage detected