/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** How far a click of Zoom out or Zoom in zooms: ×1.5, or ÷1.5. */ export declare const ZOOM_STEP = 1.5; /** Where a zoom stands: at Fit, where Zoom out does nothing, and at its limit, where Zoom in does nothing. */ export interface ZoomRange { /** Whether it stands at Fit. */ readonly atFit: boolean; /** Whether it stands at its limit. */ readonly atLimit: boolean; } /** What the strip says: a builder's message table holds each. */ export interface ZoomWords { /** The strip's accessible name: `Zoom`. */ zoomLabel(): string; /** `Zoom out`. */ zoomOut(): string; /** `Zoom in`. */ zoomIn(): string; /** `Fit`: the whole drawing in view. */ fit(): string; } /** Props of {@link ZoomStrip}. */ export interface ZoomStripProps { /** The builder it stands in, as `data--zoom` names it: `schematic`, `flowchart`. */ readonly scope: string; /** What it says. */ readonly words: ZoomWords; /** Where the zoom stands. */ readonly range: ZoomRange; /** Zooms by a factor: {@link ZOOM_STEP}, or its inverse. */ readonly onZoom: (factor: number) => void; /** Puts the whole drawing in view. */ readonly onFit: () => void; /** Fills its row with equal buttons, as in a View's popover. */ readonly fullWidth?: boolean | undefined; } /** * The zoom strip — see the module docs. * * @param props - Its builder, words, range and what each button does * @returns Its group of three buttons */ export declare function ZoomStrip({ scope, words, range, onZoom, onFit, fullWidth }: ZoomStripProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=zoom.d.ts.map