mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 17:29:55 -05:00
8 lines
304 B
TypeScript
8 lines
304 B
TypeScript
import { clampZoom as _clampZoom, captureZoomAnchor, restoreZoomAnchor } from "@core/ui/zoom";
|
|
import { ZOOM_MIN, ZOOM_MAX } from "../store/readerState.svelte";
|
|
|
|
export { captureZoomAnchor, restoreZoomAnchor };
|
|
|
|
export function clampZoom(z: number): number {
|
|
return _clampZoom(z, ZOOM_MIN, ZOOM_MAX);
|
|
} |