(nextX: number | null, source?: unknown)
| 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?.(); |
no test coverage detected