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

Function setRangeAnchored

src/interaction/createZoomState.ts:219–221  ·  view source on GitHub ↗
(nextStart, nextEnd, anchor)

Source from the content-addressed store, hash-verified

217 };
218
219 const setRangeAnchored: ZoomStateWithConstraints['setRangeAnchored'] = (nextStart, nextEnd, anchor) => {
220 applyNextRange(nextStart, nextEnd, { anchor: toAnchor(nextStart, nextEnd, anchor) });
221 };
222
223 const setSpanConstraints: ZoomStateWithConstraints['setSpanConstraints'] = (nextMinSpan, nextMaxSpan) => {
224 // Undefined => leave unchanged (lets coordinator reapply dynamically computed values explicitly).

Callers

nothing calls this directly

Calls 2

applyNextRangeFunction · 0.85
toAnchorFunction · 0.85

Tested by

no test coverage detected