(delta)
| 722 | coordinator?.setZoomRange(nextStart, nextStart + nextSpan); |
| 723 | }; |
| 724 | const pan: ZoomState['pan'] = (delta) => { |
| 725 | if (!Number.isFinite(delta)) return; |
| 726 | const r = coordinator?.getZoomRange(); |
| 727 | if (!r) return; |
| 728 | coordinator?.setZoomRange(r.start + delta, r.end + delta); |
| 729 | }; |
| 730 | const onChange: ZoomState['onChange'] = (callback) => coordinator?.onZoomRangeChange(callback) ?? (() => {}); |
| 731 | |
| 732 | return { getRange, setRange, zoomIn, zoomOut, pan, onChange }; |
nothing calls this directly
no test coverage detected