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

Function setInteractionXInternal

src/core/createRenderCoordinator.ts:2028–2034  ·  view source on GitHub ↗
(nextX: number | null, source?: unknown)

Source from the content-addressed store, hash-verified

2026 };
2027
2028 const setInteractionXInternal = (nextX: number | null, source?: unknown): void => {
2029 const normalized = nextX !== null && Number.isFinite(nextX) ? nextX : null;
2030 if (interactionX === normalized && interactionXSource === source) return;
2031 interactionX = normalized;
2032 interactionXSource = source;
2033 emitInteractionX(interactionX, interactionXSource);
2034 };
2035
2036 const requestRender = (): void => {
2037 callbacks?.onRequestRender?.();

Callers 5

onMouseMoveFunction · 0.85
onMouseLeaveFunction · 0.85
renderFunction · 0.85
handlePointerEventFunction · 0.85
setInteractionXFunction · 0.85

Calls 1

emitInteractionXFunction · 0.85

Tested by

no test coverage detected