MCPcopy Create free account
hub / github.com/ChartGPU/ChartGPU / pan

Function pan

src/interaction/createZoomState.ts:273–276  ·  view source on GitHub ↗
(delta)

Source from the content-addressed store, hash-verified

271 };
272
273 const pan: ZoomState['pan'] = (delta) => {
274 if (!Number.isFinite(delta)) return;
275 applyNextRange(start + delta, end + delta);
276 };
277
278 const onChange: ZoomState['onChange'] = (callback) => {
279 listeners.add(callback);

Callers

nothing calls this directly

Calls 1

applyNextRangeFunction · 0.85

Tested by

no test coverage detected