UNPKG

@apoorvdwi/excalidraw-collab

Version:
122 lines (121 loc) 5.68 kB
/// <reference types="react" /> export declare const actionToggleViewMode: { name: "viewMode"; viewMode: true; trackEvent: { category: "canvas"; predicate: (appState: Readonly<import("../types").AppState>) => boolean; }; perform(elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>): { appState: { viewModeEnabled: boolean; contextMenu: { items: import("../components/ContextMenu").ContextMenuItems; top: number; left: number; } | null; showWelcomeScreen: boolean; isLoading: boolean; errorMessage: string | null; draggingElement: import("../element/types").NonDeletedExcalidrawElement | null; resizingElement: import("../element/types").NonDeletedExcalidrawElement | null; multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null; selectionElement: import("../element/types").NonDeletedExcalidrawElement | null; isBindingEnabled: boolean; startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null; suggestedBindings: import("../element/binding").SuggestedBinding[]; editingElement: import("../element/types").NonDeletedExcalidrawElement | null; editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null; activeTool: { lastActiveTool: import("../types").LastActiveTool; locked: boolean; } & ({ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand"; customType: null; } | { type: "custom"; customType: string; }); penMode: boolean; penDetected: boolean; exportBackground: boolean; exportEmbedScene: boolean; exportWithDarkMode: boolean; exportScale: number; currentItemStrokeColor: string; currentItemBackgroundColor: string; currentItemFillStyle: import("../element/types").FillStyle; currentItemStrokeWidth: number; currentItemStrokeStyle: import("../element/types").StrokeStyle; currentItemRoughness: number; currentItemOpacity: number; currentItemFontFamily: number; currentItemFontSize: number; currentItemTextAlign: string; currentItemStartArrowhead: import("../element/types").Arrowhead | null; currentItemEndArrowhead: import("../element/types").Arrowhead | null; currentItemRoundness: import("../element/types").StrokeRoundness; viewBackgroundColor: string; scrollX: number; scrollY: number; cursorButton: "up" | "down"; scrolledOutside: boolean; name: string; isResizing: boolean; isRotating: boolean; zoom: Readonly<{ value: import("../types").NormalizedZoomValue; }>; openMenu: "canvas" | "shape" | null; openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null; openSidebar: "library" | "customSidebar" | null; openDialog: "imageExport" | "help" | "jsonExport" | null; isSidebarDocked: boolean; lastPointerDownWith: import("../element/types").PointerType; selectedElementIds: { [id: string]: boolean; }; previousSelectedElementIds: { [id: string]: boolean; }; shouldCacheIgnoreZoom: boolean; toast: { message: string; closable?: boolean | undefined; duration?: number | undefined; } | null; zenModeEnabled: boolean; theme: string; gridSize: number | null; selectedGroupIds: { [groupId: string]: boolean; }; editingGroupId: string | null; width: number; height: number; offsetTop: number; offsetLeft: number; fileHandle: import("browser-fs-access").FileSystemHandle | null; collaborators: Map<string, import("../types").Collaborator>; showStats: boolean; currentChartType: import("../element/types").ChartType; pasteDialog: { shown: false; data: null; } | { shown: true; data: import("../charts").Spreadsheet; }; pendingImageElementId: string | null; showHyperlinkPopup: false | "info" | "editor"; selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null; }; commitToHistory: false; }; checked: (appState: Readonly<import("../types").AppState>) => boolean; predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean; contextItemLabel: string; keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean; } & { keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined; };