Mermaid Translator Library - v1.1.0
    Preparing search index...

    Type Alias DiagramControls

    UI control handlers for panning, zooming, and copy actions in the popup.

    The controller keeps internal state and must be cleaned up when the popup is dismissed.

    type DiagramControls = {
        cleanup: () => void;
        handleCopyClick: () => void;
        handleCopyEnter: () => void;
        handleCopyLeave: () => void;
        resetPanZoom: () => void;
        setActiveTab: (tab: "view" | "editor") => void;
        setEditModeEnabled: (enabled: boolean) => void;
        setEditorText: (text: string | null) => void;
        setElements: (elements: DiagramControlsElements | null) => void;
        setSourceText: (text: string | null) => void;
        startPan: (event: PointerEvent) => void;
        updateCopyLayout: () => void;
        updateCopyTheme: (theme: "light" | "dark") => void;
        updateZoomTheme: (theme: "light" | "dark") => void;
        zoomBy: (delta: number) => void;
    }
    Index

    Properties

    cleanup: () => void
    handleCopyClick: () => void
    handleCopyEnter: () => void
    handleCopyLeave: () => void
    resetPanZoom: () => void
    setActiveTab: (tab: "view" | "editor") => void
    setEditModeEnabled: (enabled: boolean) => void
    setEditorText: (text: string | null) => void
    setElements: (elements: DiagramControlsElements | null) => void
    setSourceText: (text: string | null) => void
    startPan: (event: PointerEvent) => void
    updateCopyLayout: () => void
    updateCopyTheme: (theme: "light" | "dark") => void
    updateZoomTheme: (theme: "light" | "dark") => void
    zoomBy: (delta: number) => void