@zsviczian/excalidraw 0.15.2-obsidian-8 → 0.15.2-obsidian-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/excalidraw.development.js +1147 -1007
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +9 -0
- package/package.json +6 -2
- package/types/.DS_Store +0 -0
- package/types/actions/actionAddToLibrary.d.ts +441 -441
- package/types/actions/actionAlign.d.ts +97 -97
- package/types/actions/actionBoundText.d.ts +331 -331
- package/types/actions/actionCanvas.d.ts +1845 -1845
- package/types/actions/actionClipboard.d.ts +829 -829
- package/types/actions/actionDeleteSelected.d.ts +475 -475
- package/types/actions/actionDistribute.d.ts +33 -33
- package/types/actions/actionDuplicateSelection.d.ts +22 -22
- package/types/actions/actionElementLock.d.ts +316 -316
- package/types/actions/actionExport.d.ts +1389 -1388
- package/types/actions/actionFinalize.d.ts +299 -302
- package/types/actions/actionFlip.d.ts +33 -33
- package/types/actions/actionFrame.d.ts +490 -490
- package/types/actions/actionGroup.d.ts +45 -45
- package/types/actions/actionHistory.d.ts +6 -6
- package/types/actions/actionLinearEditor.d.ts +158 -158
- package/types/actions/actionMenu.d.ts +479 -479
- package/types/actions/actionNavigate.d.ts +14 -14
- package/types/actions/actionProperties.d.ts +2013 -2013
- package/types/actions/actionSelectAll.d.ts +16 -16
- package/types/actions/actionStyles.d.ts +172 -172
- package/types/actions/actionToggleGridMode.d.ts +161 -161
- package/types/actions/actionToggleLock.d.ts +135 -139
- package/types/actions/actionToggleStats.d.ts +158 -158
- package/types/actions/actionToggleViewMode.d.ts +160 -160
- package/types/actions/actionToggleZenMode.d.ts +160 -160
- package/types/actions/actionZindex.d.ts +67 -67
- package/types/actions/index.d.ts +24 -24
- package/types/actions/manager.d.ts +21 -21
- package/types/actions/register.d.ts +5 -5
- package/types/actions/shortcuts.d.ts +4 -4
- package/types/actions/types.d.ts +45 -44
- package/types/align.d.ts +6 -6
- package/types/analytics.d.ts +1 -1
- package/types/appState.d.ts +81 -81
- package/types/charts.d.ts +27 -27
- package/types/clients.d.ts +5 -5
- package/types/clipboard.d.ts +25 -25
- package/types/colors.d.ts +61 -61
- package/types/components/Actions.d.ts +36 -36
- package/types/components/ActiveConfirmDialog.d.ts +4 -4
- package/types/components/App.d.ts +288 -291
- package/types/components/Avatar.d.ts +10 -10
- package/types/components/BraveMeasureTextError.d.ts +2 -2
- package/types/components/Button.d.ts +17 -17
- package/types/components/ButtonIconSelect.d.ts +19 -19
- package/types/components/Card.d.ts +7 -7
- package/types/components/CheckboxItem.d.ts +8 -8
- package/types/components/ColorPicker/ColorInput.d.ts +7 -7
- package/types/components/ColorPicker/ColorPicker.d.ts +19 -19
- package/types/components/ColorPicker/CustomColorList.d.ts +8 -8
- package/types/components/ColorPicker/HotkeyLabel.d.ts +8 -8
- package/types/components/ColorPicker/Picker.d.ts +18 -18
- package/types/components/ColorPicker/PickerColorList.d.ts +10 -10
- package/types/components/ColorPicker/PickerHeading.d.ts +5 -5
- package/types/components/ColorPicker/ShadeList.d.ts +8 -8
- package/types/components/ColorPicker/TopPicks.d.ts +9 -9
- package/types/components/ColorPicker/colorPickerUtils.d.ts +21 -21
- package/types/components/ColorPicker/keyboardNavHandlers.d.ts +21 -21
- package/types/components/ColorPicker.d.ts +19 -19
- package/types/components/ConfirmDialog.d.ts +10 -10
- package/types/components/ContextMenu.d.ts +15 -15
- package/types/components/DarkModeToggle.d.ts +7 -7
- package/types/components/DefaultSidebar.d.ts +30 -30
- package/types/components/Dialog.d.ts +13 -13
- package/types/components/DialogActionButton.d.ts +10 -10
- package/types/components/ErrorDialog.d.ts +5 -5
- package/types/components/EyeDropper.d.ts +18 -18
- package/types/components/FilledButton.d.ts +17 -17
- package/types/components/FixedSideContainer.d.ts +9 -9
- package/types/components/HandButton.d.ts +10 -10
- package/types/components/HelpButton.d.ts +7 -7
- package/types/components/HelpDialog.d.ts +4 -4
- package/types/components/HintViewer.d.ts +10 -11
- package/types/components/IconPicker.d.ts +13 -13
- package/types/components/ImageExportDialog.d.ts +13 -13
- package/types/components/InitializeApp.d.ts +10 -10
- package/types/components/Island.d.ts +10 -10
- package/types/components/JSONExportDialog.d.ts +15 -15
- package/types/components/LayerUI.d.ts +32 -31
- package/types/components/LibraryButton.d.ts +8 -8
- package/types/components/LibraryMenu.d.ts +24 -24
- package/types/components/LibraryMenuBrowseButton.d.ts +7 -7
- package/types/components/LibraryMenuControlButtons.d.ts +9 -9
- package/types/components/LibraryMenuHeaderContent.d.ts +18 -18
- package/types/components/LibraryMenuItems.d.ts +14 -14
- package/types/components/LibraryMenuSection.d.ts +22 -22
- package/types/components/LibraryUnit.d.ts +15 -15
- package/types/components/LoadingMessage.d.ts +6 -6
- package/types/components/LockButton.d.ts +10 -10
- package/types/components/MobileMenu.d.ts +27 -26
- package/types/components/Modal.d.ts +13 -13
- package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
- package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
- package/types/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
- package/types/components/PasteChartDialog.d.ts +8 -8
- package/types/components/PenModeButton.d.ts +12 -12
- package/types/components/Popover.d.ts +15 -15
- package/types/components/ProjectName.d.ts +11 -11
- package/types/components/PublishLibrary.d.ts +16 -16
- package/types/components/RadioGroup.d.ts +12 -12
- package/types/components/Section.d.ts +6 -6
- package/types/components/Sidebar/Sidebar.d.ts +76 -76
- package/types/components/Sidebar/SidebarHeader.d.ts +7 -7
- package/types/components/Sidebar/SidebarTab.d.ts +9 -9
- package/types/components/Sidebar/SidebarTabTrigger.d.ts +10 -10
- package/types/components/Sidebar/SidebarTabTriggers.d.ts +7 -7
- package/types/components/Sidebar/SidebarTabs.d.ts +7 -7
- package/types/components/Sidebar/SidebarTrigger.d.ts +6 -6
- package/types/components/Sidebar/common.d.ts +33 -33
- package/types/components/SingleLibraryItem.d.ts +10 -10
- package/types/components/Spinner.d.ts +7 -7
- package/types/components/Stack.d.ts +16 -16
- package/types/components/Stats.d.ts +11 -11
- package/types/components/Switch.d.ts +9 -9
- package/types/components/Toast.d.ts +7 -7
- package/types/components/ToolButton.d.ts +47 -47
- package/types/components/Tooltip.d.ts +17 -17
- package/types/components/Trans.d.ts +9 -8
- package/types/components/UserList.d.ts +8 -8
- package/types/components/context/tunnels.d.ts +16 -16
- package/types/components/dropdownMenu/DropdownMenu.d.ts +67 -67
- package/types/components/dropdownMenu/DropdownMenuContent.d.ts +15 -15
- package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -12
- package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +6 -6
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +6 -6
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +13 -13
- package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +11 -11
- package/types/components/dropdownMenu/common.d.ts +6 -6
- package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
- package/types/components/footer/Footer.d.ts +12 -12
- package/types/components/footer/FooterCenter.d.ts +8 -8
- package/types/components/hoc/withInternalFallback.d.ts +4 -4
- package/types/components/hoc/withUpstreamOverride.d.ts +10 -10
- package/types/components/icons.d.ts +154 -154
- package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +10 -10
- package/types/components/main-menu/DefaultItems.d.ts +44 -44
- package/types/components/main-menu/MainMenu.d.ts +61 -61
- package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +58 -58
- package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
- package/types/components/welcome-screen/WelcomeScreen.d.ts +85 -85
- package/types/constants.d.ts +226 -225
- package/types/context/tunnels.d.ts +19 -19
- package/types/context/ui-appState.d.ts +4 -4
- package/types/data/blob.d.ts +48 -48
- package/types/data/encode.d.ts +53 -53
- package/types/data/encryption.d.ts +9 -9
- package/types/data/filesystem.d.ts +19 -19
- package/types/data/image.d.ts +15 -15
- package/types/data/index.d.ts +13 -13
- package/types/data/json.d.ts +16 -16
- package/types/data/library.d.ts +54 -54
- package/types/data/resave.d.ts +5 -5
- package/types/data/restore.d.ts +21 -21
- package/types/data/types.d.ts +45 -45
- package/types/data/url.d.ts +7 -2
- package/types/distribute.d.ts +6 -6
- package/types/element/Hyperlink.d.ts +182 -182
- package/types/element/binding.d.ts +33 -33
- package/types/element/bounds.d.ts +53 -53
- package/types/element/collision.d.ts +21 -21
- package/types/element/dragElements.d.ts +6 -6
- package/types/element/embeddable.d.ts +176 -171
- package/types/element/image.d.ts +32 -32
- package/types/element/index.d.ts +21 -21
- package/types/element/linearElementEditor.d.ts +293 -293
- package/types/element/mutateElement.d.ts +12 -12
- package/types/element/newElement.d.ts +95 -95
- package/types/element/resizeElements.d.ts +9 -9
- package/types/element/resizeTest.d.ts +13 -13
- package/types/element/showSelectedShapeActions.d.ts +3 -3
- package/types/element/sizeHelpers.d.ts +21 -21
- package/types/element/sortElements.d.ts +2 -2
- package/types/element/textElement.d.ts +80 -80
- package/types/element/textWysiwyg.d.ts +21 -21
- package/types/element/transformHandles.d.ts +35 -35
- package/types/element/typeChecks.d.ts +29 -29
- package/types/element/types.d.ts +166 -166
- package/types/errors.d.ts +8 -8
- package/types/frame.d.ts +40 -40
- package/types/ga.d.ts +63 -63
- package/types/gadirections.d.ts +8 -8
- package/types/galines.d.ts +22 -22
- package/types/gapoints.d.ts +7 -7
- package/types/gatransforms.d.ts +10 -10
- package/types/gesture.d.ts +6 -6
- package/types/groups.d.ts +31 -31
- package/types/history.d.ts +52 -52
- package/types/hooks/useCallbackRefState.d.ts +1 -1
- package/types/hooks/useCreatePortalContainer.d.ts +5 -5
- package/types/hooks/useLibraryItemSvg.d.ts +11 -11
- package/types/hooks/useOutsideClick.d.ts +20 -20
- package/types/hooks/useScrollPosition.d.ts +2 -2
- package/types/hooks/useTransition.d.ts +2 -2
- package/types/i18n.d.ts +24 -21
- package/types/jotai.d.ts +34 -34
- package/types/keys.d.ts +80 -80
- package/types/math.d.ts +30 -30
- package/types/packages/common.webpack.dev.config.d.ts +72 -72
- package/types/packages/common.webpack.prod.config.d.ts +84 -84
- package/types/packages/excalidraw/dist/excalidraw.development.d.ts +4 -4
- package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -1
- package/types/packages/excalidraw/entry.d.ts +1 -1
- package/types/packages/excalidraw/env.d.ts +1 -1
- package/types/packages/excalidraw/example/App.d.ts +14 -14
- package/types/packages/excalidraw/example/CustomFooter.d.ts +5 -5
- package/types/packages/excalidraw/example/MobileFooter.d.ts +5 -5
- package/types/packages/excalidraw/example/index.d.ts +1 -1
- package/types/packages/excalidraw/example/initialData.d.ts +178 -178
- package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +5 -5
- package/types/packages/excalidraw/index.d.ts +37 -37
- package/types/packages/excalidraw/main.d.ts +2 -2
- package/types/packages/excalidraw/publicPath.d.ts +1 -1
- package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -19
- package/types/packages/excalidraw/webpack.dev.config.d.ts +69 -69
- package/types/packages/excalidraw/webpack.prod.config.d.ts +78 -78
- package/types/packages/utils.d.ts +43 -42
- package/types/points.d.ts +7 -7
- package/types/polyfill.d.ts +2 -2
- package/types/random.d.ts +4 -4
- package/types/renderer/easingFunctions.d.ts +6 -6
- package/types/renderer/renderElement.d.ts +37 -37
- package/types/renderer/renderScene.d.ts +51 -50
- package/types/renderer/roundRect.d.ts +11 -11
- package/types/scene/Fonts.d.ts +21 -21
- package/types/scene/Scene.d.ts +60 -47
- package/types/scene/comparisons.d.ts +10 -10
- package/types/scene/export.d.ts +25 -24
- package/types/scene/index.d.ts +5 -5
- package/types/scene/scroll.d.ts +17 -17
- package/types/scene/scrollbars.d.ts +16 -16
- package/types/scene/selection.d.ts +31 -31
- package/types/scene/types.d.ts +59 -59
- package/types/scene/zoom.d.ts +13 -13
- package/types/shapes.d.ts +62 -62
- package/types/types.d.ts +501 -503
- package/types/utility-types.d.ts +25 -22
- package/types/utils.d.ts +192 -192
- package/types/zindex.d.ts +6 -6
- package/types/bug-issue-template.d.ts +0 -2
- package/types/components/ActiveFile.d.ts +0 -7
- package/types/components/BackgroundPickerAndDarkModeToggle.d.ts +0 -4
- package/types/components/ClearCanvas.d.ts +0 -4
- package/types/components/CollabButton.d.ts +0 -7
- package/types/components/EncryptedIcon.d.ts +0 -2
- package/types/components/Footer.d.ts +0 -10
- package/types/components/HelpIcon.d.ts +0 -8
- package/types/components/MenuItem.d.ts +0 -11
- package/types/components/MenuUtils.d.ts +0 -2
- package/types/components/SidebarLockButton.d.ts +0 -8
- package/types/components/TopErrorBoundary.d.ts +0 -15
- package/types/components/WelcomeScreen.d.ts +0 -8
- package/types/components/WelcomeScreenDecor.d.ts +0 -6
- package/types/components/mainMenu/DefaultItems.d.ts +0 -44
- package/types/components/mainMenu/MainMenu.d.ts +0 -63
- package/types/element/iframe.d.ts +0 -167
- package/types/excalidraw-app/CustomStats.d.ts +0 -9
- package/types/excalidraw-app/app_constants.d.ts +0 -32
- package/types/excalidraw-app/collab/Collab.d.ts +0 -163
- package/types/excalidraw-app/collab/Portal.d.ts +0 -28
- package/types/excalidraw-app/collab/RoomDialog.d.ts +0 -13
- package/types/excalidraw-app/collab/reconciliation.d.ts +0 -10
- package/types/excalidraw-app/components/ExportToExcalidrawPlus.d.ts +0 -9
- package/types/excalidraw-app/components/LanguageList.d.ts +0 -4
- package/types/excalidraw-app/components/icons.d.ts +0 -1
- package/types/excalidraw-app/data/FileManager.d.ts +0 -66
- package/types/excalidraw-app/data/LocalData.d.ts +0 -32
- package/types/excalidraw-app/data/Locker.d.ts +0 -8
- package/types/excalidraw-app/data/firebase.d.ts +0 -25
- package/types/excalidraw-app/data/index.d.ts +0 -190
- package/types/excalidraw-app/data/localStorage.d.ts +0 -116
- package/types/excalidraw-app/data/tabSync.d.ts +0 -9
- package/types/excalidraw-app/index.d.ts +0 -26
- package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +0 -5
|
@@ -1,490 +1,490 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ExcalidrawElement } from "../element/types";
|
|
3
|
-
import { AppState } from "../types";
|
|
4
|
-
export declare const actionSelectAllElementsInFrame: {
|
|
5
|
-
name: "selectAllElementsInFrame";
|
|
6
|
-
trackEvent: {
|
|
7
|
-
category: "canvas";
|
|
8
|
-
};
|
|
9
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState
|
|
10
|
-
elements: readonly ExcalidrawElement[];
|
|
11
|
-
appState: Readonly<AppState>;
|
|
12
|
-
commitToHistory: false;
|
|
13
|
-
};
|
|
14
|
-
contextItemLabel: string;
|
|
15
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
16
|
-
} & {
|
|
17
|
-
keyTest?: undefined;
|
|
18
|
-
};
|
|
19
|
-
export declare const actionRemoveAllElementsFromFrame: {
|
|
20
|
-
name: "removeAllElementsFromFrame";
|
|
21
|
-
trackEvent: {
|
|
22
|
-
category: "history";
|
|
23
|
-
};
|
|
24
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState
|
|
25
|
-
elements: ExcalidrawElement[];
|
|
26
|
-
appState: {
|
|
27
|
-
selectedElementIds: {
|
|
28
|
-
[x: string]: true;
|
|
29
|
-
};
|
|
30
|
-
contextMenu: {
|
|
31
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
32
|
-
top: number;
|
|
33
|
-
left: number;
|
|
34
|
-
} | null;
|
|
35
|
-
showWelcomeScreen: boolean;
|
|
36
|
-
isLoading: boolean;
|
|
37
|
-
errorMessage: import("react").ReactNode;
|
|
38
|
-
activeEmbeddable: {
|
|
39
|
-
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
40
|
-
state: "active" | "hover";
|
|
41
|
-
} | null;
|
|
42
|
-
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
-
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
-
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
45
|
-
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
46
|
-
isBindingEnabled: boolean;
|
|
47
|
-
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
48
|
-
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
49
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
50
|
-
frameRendering: {
|
|
51
|
-
enabled: boolean;
|
|
52
|
-
name: boolean;
|
|
53
|
-
outline: boolean;
|
|
54
|
-
clip: boolean;
|
|
55
|
-
};
|
|
56
|
-
editingFrame: string | null;
|
|
57
|
-
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
58
|
-
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
59
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
60
|
-
activeTool: {
|
|
61
|
-
lastActiveTool: import("../types").LastActiveTool;
|
|
62
|
-
locked: boolean;
|
|
63
|
-
} & ({
|
|
64
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
65
|
-
customType: null;
|
|
66
|
-
} | {
|
|
67
|
-
type: "custom";
|
|
68
|
-
customType: string;
|
|
69
|
-
});
|
|
70
|
-
penMode: boolean;
|
|
71
|
-
penDetected: boolean;
|
|
72
|
-
exportBackground: boolean;
|
|
73
|
-
exportEmbedScene: boolean;
|
|
74
|
-
exportWithDarkMode: boolean;
|
|
75
|
-
exportScale: number;
|
|
76
|
-
currentItemStrokeColor: string;
|
|
77
|
-
currentItemBackgroundColor: string;
|
|
78
|
-
currentItemFillStyle: import("../element/types").FillStyle;
|
|
79
|
-
currentItemStrokeWidth: number;
|
|
80
|
-
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
81
|
-
currentItemRoughness: number;
|
|
82
|
-
currentItemOpacity: number;
|
|
83
|
-
currentItemFontFamily: number;
|
|
84
|
-
currentItemFontSize: number;
|
|
85
|
-
currentItemTextAlign: string;
|
|
86
|
-
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
87
|
-
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
88
|
-
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
89
|
-
viewBackgroundColor: string;
|
|
90
|
-
scrollX: number;
|
|
91
|
-
scrollY: number;
|
|
92
|
-
cursorButton: "up" | "down";
|
|
93
|
-
scrolledOutside: boolean;
|
|
94
|
-
name: string;
|
|
95
|
-
isResizing: boolean;
|
|
96
|
-
isRotating: boolean;
|
|
97
|
-
zoom: Readonly<{
|
|
98
|
-
value: import("../types").NormalizedZoomValue;
|
|
99
|
-
}>;
|
|
100
|
-
openMenu: "canvas" | "shape" | null;
|
|
101
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
102
|
-
openSidebar: {
|
|
103
|
-
name: string;
|
|
104
|
-
tab?: string | undefined;
|
|
105
|
-
} | null;
|
|
106
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
107
|
-
defaultSidebarDockedPreference: boolean;
|
|
108
|
-
lastPointerDownWith: import("../element/types").PointerType;
|
|
109
|
-
previousSelectedElementIds: {
|
|
110
|
-
[id: string]: true;
|
|
111
|
-
};
|
|
112
|
-
selectedElementsAreBeingDragged: boolean;
|
|
113
|
-
shouldCacheIgnoreZoom: boolean;
|
|
114
|
-
toast: {
|
|
115
|
-
message: string;
|
|
116
|
-
closable?: boolean | undefined;
|
|
117
|
-
duration?: number | undefined;
|
|
118
|
-
} | null;
|
|
119
|
-
zenModeEnabled: boolean;
|
|
120
|
-
theme:
|
|
121
|
-
gridSize: number | null;
|
|
122
|
-
previousGridSize: number | null;
|
|
123
|
-
viewModeEnabled: boolean;
|
|
124
|
-
selectedGroupIds: {
|
|
125
|
-
[groupId: string]: boolean;
|
|
126
|
-
};
|
|
127
|
-
editingGroupId: string | null;
|
|
128
|
-
width: number;
|
|
129
|
-
height: number;
|
|
130
|
-
offsetTop: number;
|
|
131
|
-
offsetLeft: number;
|
|
132
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
133
|
-
collaborators: Map<string, import("../types").Collaborator>;
|
|
134
|
-
showStats: boolean;
|
|
135
|
-
currentChartType: import("../element/types").ChartType;
|
|
136
|
-
pasteDialog: {
|
|
137
|
-
shown: false;
|
|
138
|
-
data: null;
|
|
139
|
-
} | {
|
|
140
|
-
shown: true;
|
|
141
|
-
data: import("../charts").Spreadsheet;
|
|
142
|
-
};
|
|
143
|
-
pendingImageElementId: string | null;
|
|
144
|
-
showHyperlinkPopup: false | "
|
|
145
|
-
linkOpacity: number;
|
|
146
|
-
trayModeEnabled: boolean;
|
|
147
|
-
colorPalette?: {
|
|
148
|
-
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
149
|
-
elementBackground: import("../colors").ColorPaletteCustom;
|
|
150
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
151
|
-
topPicks: {
|
|
152
|
-
canvasBackground: [string, string, string, string, string];
|
|
153
|
-
elementStroke: [string, string, string, string, string];
|
|
154
|
-
elementBackground: [string, string, string, string, string];
|
|
155
|
-
};
|
|
156
|
-
} | undefined;
|
|
157
|
-
allowWheelZoom?: boolean | undefined;
|
|
158
|
-
allowPinchZoom?: boolean | undefined;
|
|
159
|
-
pinnedScripts?: string[] | undefined;
|
|
160
|
-
customPens?: any[] | undefined;
|
|
161
|
-
currentStrokeOptions?: any;
|
|
162
|
-
resetCustomPen?: any;
|
|
163
|
-
gridColor: string;
|
|
164
|
-
dynamicStyle: string;
|
|
165
|
-
invertBindingBehaviour: boolean;
|
|
166
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
167
|
-
};
|
|
168
|
-
commitToHistory: true;
|
|
169
|
-
} | {
|
|
170
|
-
elements: readonly ExcalidrawElement[];
|
|
171
|
-
appState: Readonly<AppState>;
|
|
172
|
-
commitToHistory: false;
|
|
173
|
-
};
|
|
174
|
-
contextItemLabel: string;
|
|
175
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
176
|
-
} & {
|
|
177
|
-
keyTest?: undefined;
|
|
178
|
-
};
|
|
179
|
-
export declare const actionupdateFrameRendering: {
|
|
180
|
-
name: "updateFrameRendering";
|
|
181
|
-
viewMode: true;
|
|
182
|
-
trackEvent: {
|
|
183
|
-
category: "canvas";
|
|
184
|
-
};
|
|
185
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
186
|
-
elements: readonly ExcalidrawElement[];
|
|
187
|
-
appState: {
|
|
188
|
-
frameRendering: {
|
|
189
|
-
enabled: boolean;
|
|
190
|
-
name: boolean;
|
|
191
|
-
outline: boolean;
|
|
192
|
-
clip: boolean;
|
|
193
|
-
};
|
|
194
|
-
contextMenu: {
|
|
195
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
196
|
-
top: number;
|
|
197
|
-
left: number;
|
|
198
|
-
} | null;
|
|
199
|
-
showWelcomeScreen: boolean;
|
|
200
|
-
isLoading: boolean;
|
|
201
|
-
errorMessage: import("react").ReactNode;
|
|
202
|
-
activeEmbeddable: {
|
|
203
|
-
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
204
|
-
state: "active" | "hover";
|
|
205
|
-
} | null;
|
|
206
|
-
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
207
|
-
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
208
|
-
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
209
|
-
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
210
|
-
isBindingEnabled: boolean;
|
|
211
|
-
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
212
|
-
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
213
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
214
|
-
editingFrame: string | null;
|
|
215
|
-
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
216
|
-
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
217
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
218
|
-
activeTool: {
|
|
219
|
-
lastActiveTool: import("../types").LastActiveTool;
|
|
220
|
-
locked: boolean;
|
|
221
|
-
} & ({
|
|
222
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
223
|
-
customType: null;
|
|
224
|
-
} | {
|
|
225
|
-
type: "custom";
|
|
226
|
-
customType: string;
|
|
227
|
-
});
|
|
228
|
-
penMode: boolean;
|
|
229
|
-
penDetected: boolean;
|
|
230
|
-
exportBackground: boolean;
|
|
231
|
-
exportEmbedScene: boolean;
|
|
232
|
-
exportWithDarkMode: boolean;
|
|
233
|
-
exportScale: number;
|
|
234
|
-
currentItemStrokeColor: string;
|
|
235
|
-
currentItemBackgroundColor: string;
|
|
236
|
-
currentItemFillStyle: import("../element/types").FillStyle;
|
|
237
|
-
currentItemStrokeWidth: number;
|
|
238
|
-
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
239
|
-
currentItemRoughness: number;
|
|
240
|
-
currentItemOpacity: number;
|
|
241
|
-
currentItemFontFamily: number;
|
|
242
|
-
currentItemFontSize: number;
|
|
243
|
-
currentItemTextAlign: string;
|
|
244
|
-
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
245
|
-
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
246
|
-
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
247
|
-
viewBackgroundColor: string;
|
|
248
|
-
scrollX: number;
|
|
249
|
-
scrollY: number;
|
|
250
|
-
cursorButton: "up" | "down";
|
|
251
|
-
scrolledOutside: boolean;
|
|
252
|
-
name: string;
|
|
253
|
-
isResizing: boolean;
|
|
254
|
-
isRotating: boolean;
|
|
255
|
-
zoom: Readonly<{
|
|
256
|
-
value: import("../types").NormalizedZoomValue;
|
|
257
|
-
}>;
|
|
258
|
-
openMenu: "canvas" | "shape" | null;
|
|
259
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
260
|
-
openSidebar: {
|
|
261
|
-
name: string;
|
|
262
|
-
tab?: string | undefined;
|
|
263
|
-
} | null;
|
|
264
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
265
|
-
defaultSidebarDockedPreference: boolean;
|
|
266
|
-
lastPointerDownWith: import("../element/types").PointerType;
|
|
267
|
-
selectedElementIds: Readonly<{
|
|
268
|
-
[id: string]: true;
|
|
269
|
-
}>;
|
|
270
|
-
previousSelectedElementIds: {
|
|
271
|
-
[id: string]: true;
|
|
272
|
-
};
|
|
273
|
-
selectedElementsAreBeingDragged: boolean;
|
|
274
|
-
shouldCacheIgnoreZoom: boolean;
|
|
275
|
-
toast: {
|
|
276
|
-
message: string;
|
|
277
|
-
closable?: boolean | undefined;
|
|
278
|
-
duration?: number | undefined;
|
|
279
|
-
} | null;
|
|
280
|
-
zenModeEnabled: boolean;
|
|
281
|
-
theme:
|
|
282
|
-
gridSize: number | null;
|
|
283
|
-
previousGridSize: number | null;
|
|
284
|
-
viewModeEnabled: boolean;
|
|
285
|
-
selectedGroupIds: {
|
|
286
|
-
[groupId: string]: boolean;
|
|
287
|
-
};
|
|
288
|
-
editingGroupId: string | null;
|
|
289
|
-
width: number;
|
|
290
|
-
height: number;
|
|
291
|
-
offsetTop: number;
|
|
292
|
-
offsetLeft: number;
|
|
293
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
294
|
-
collaborators: Map<string, import("../types").Collaborator>;
|
|
295
|
-
showStats: boolean;
|
|
296
|
-
currentChartType: import("../element/types").ChartType;
|
|
297
|
-
pasteDialog: {
|
|
298
|
-
shown: false;
|
|
299
|
-
data: null;
|
|
300
|
-
} | {
|
|
301
|
-
shown: true;
|
|
302
|
-
data: import("../charts").Spreadsheet;
|
|
303
|
-
};
|
|
304
|
-
pendingImageElementId: string | null;
|
|
305
|
-
showHyperlinkPopup: false | "
|
|
306
|
-
linkOpacity: number;
|
|
307
|
-
trayModeEnabled: boolean;
|
|
308
|
-
colorPalette?: {
|
|
309
|
-
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
310
|
-
elementBackground: import("../colors").ColorPaletteCustom;
|
|
311
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
312
|
-
topPicks: {
|
|
313
|
-
canvasBackground: [string, string, string, string, string];
|
|
314
|
-
elementStroke: [string, string, string, string, string];
|
|
315
|
-
elementBackground: [string, string, string, string, string];
|
|
316
|
-
};
|
|
317
|
-
} | undefined;
|
|
318
|
-
allowWheelZoom?: boolean | undefined;
|
|
319
|
-
allowPinchZoom?: boolean | undefined;
|
|
320
|
-
pinnedScripts?: string[] | undefined;
|
|
321
|
-
customPens?: any[] | undefined;
|
|
322
|
-
currentStrokeOptions?: any;
|
|
323
|
-
resetCustomPen?: any;
|
|
324
|
-
gridColor: string;
|
|
325
|
-
dynamicStyle: string;
|
|
326
|
-
invertBindingBehaviour: boolean;
|
|
327
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
328
|
-
};
|
|
329
|
-
commitToHistory: false;
|
|
330
|
-
};
|
|
331
|
-
contextItemLabel: string;
|
|
332
|
-
checked: (appState: AppState) => boolean;
|
|
333
|
-
} & {
|
|
334
|
-
keyTest?: undefined;
|
|
335
|
-
};
|
|
336
|
-
export declare const actionSetFrameAsActiveTool: {
|
|
337
|
-
name: "setFrameAsActiveTool";
|
|
338
|
-
trackEvent: {
|
|
339
|
-
category: "toolbar";
|
|
340
|
-
};
|
|
341
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app:
|
|
342
|
-
elements: readonly ExcalidrawElement[];
|
|
343
|
-
appState: {
|
|
344
|
-
activeTool: {
|
|
345
|
-
lastActiveTool: import("../types").LastActiveTool;
|
|
346
|
-
locked: boolean;
|
|
347
|
-
} & ({
|
|
348
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
349
|
-
customType: null;
|
|
350
|
-
} | {
|
|
351
|
-
type: "custom";
|
|
352
|
-
customType: string;
|
|
353
|
-
});
|
|
354
|
-
contextMenu: {
|
|
355
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
356
|
-
top: number;
|
|
357
|
-
left: number;
|
|
358
|
-
} | null;
|
|
359
|
-
showWelcomeScreen: boolean;
|
|
360
|
-
isLoading: boolean;
|
|
361
|
-
errorMessage: import("react").ReactNode;
|
|
362
|
-
activeEmbeddable: {
|
|
363
|
-
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
364
|
-
state: "active" | "hover";
|
|
365
|
-
} | null;
|
|
366
|
-
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
367
|
-
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
368
|
-
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
369
|
-
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
370
|
-
isBindingEnabled: boolean;
|
|
371
|
-
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
372
|
-
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
373
|
-
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
374
|
-
frameRendering: {
|
|
375
|
-
enabled: boolean;
|
|
376
|
-
name: boolean;
|
|
377
|
-
outline: boolean;
|
|
378
|
-
clip: boolean;
|
|
379
|
-
};
|
|
380
|
-
editingFrame: string | null;
|
|
381
|
-
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
382
|
-
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
383
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
384
|
-
penMode: boolean;
|
|
385
|
-
penDetected: boolean;
|
|
386
|
-
exportBackground: boolean;
|
|
387
|
-
exportEmbedScene: boolean;
|
|
388
|
-
exportWithDarkMode: boolean;
|
|
389
|
-
exportScale: number;
|
|
390
|
-
currentItemStrokeColor: string;
|
|
391
|
-
currentItemBackgroundColor: string;
|
|
392
|
-
currentItemFillStyle: import("../element/types").FillStyle;
|
|
393
|
-
currentItemStrokeWidth: number;
|
|
394
|
-
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
395
|
-
currentItemRoughness: number;
|
|
396
|
-
currentItemOpacity: number;
|
|
397
|
-
currentItemFontFamily: number;
|
|
398
|
-
currentItemFontSize: number;
|
|
399
|
-
currentItemTextAlign: string;
|
|
400
|
-
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
401
|
-
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
402
|
-
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
403
|
-
viewBackgroundColor: string;
|
|
404
|
-
scrollX: number;
|
|
405
|
-
scrollY: number;
|
|
406
|
-
cursorButton: "up" | "down";
|
|
407
|
-
scrolledOutside: boolean;
|
|
408
|
-
name: string;
|
|
409
|
-
isResizing: boolean;
|
|
410
|
-
isRotating: boolean;
|
|
411
|
-
zoom: Readonly<{
|
|
412
|
-
value: import("../types").NormalizedZoomValue;
|
|
413
|
-
}>;
|
|
414
|
-
openMenu: "canvas" | "shape" | null;
|
|
415
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
416
|
-
openSidebar: {
|
|
417
|
-
name: string;
|
|
418
|
-
tab?: string | undefined;
|
|
419
|
-
} | null;
|
|
420
|
-
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
421
|
-
defaultSidebarDockedPreference: boolean;
|
|
422
|
-
lastPointerDownWith: import("../element/types").PointerType;
|
|
423
|
-
selectedElementIds: Readonly<{
|
|
424
|
-
[id: string]: true;
|
|
425
|
-
}>;
|
|
426
|
-
previousSelectedElementIds: {
|
|
427
|
-
[id: string]: true;
|
|
428
|
-
};
|
|
429
|
-
selectedElementsAreBeingDragged: boolean;
|
|
430
|
-
shouldCacheIgnoreZoom: boolean;
|
|
431
|
-
toast: {
|
|
432
|
-
message: string;
|
|
433
|
-
closable?: boolean | undefined;
|
|
434
|
-
duration?: number | undefined;
|
|
435
|
-
} | null;
|
|
436
|
-
zenModeEnabled: boolean;
|
|
437
|
-
theme:
|
|
438
|
-
gridSize: number | null;
|
|
439
|
-
previousGridSize: number | null;
|
|
440
|
-
viewModeEnabled: boolean;
|
|
441
|
-
selectedGroupIds: {
|
|
442
|
-
[groupId: string]: boolean;
|
|
443
|
-
};
|
|
444
|
-
editingGroupId: string | null;
|
|
445
|
-
width: number;
|
|
446
|
-
height: number;
|
|
447
|
-
offsetTop: number;
|
|
448
|
-
offsetLeft: number;
|
|
449
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
450
|
-
collaborators: Map<string, import("../types").Collaborator>;
|
|
451
|
-
showStats: boolean;
|
|
452
|
-
currentChartType: import("../element/types").ChartType;
|
|
453
|
-
pasteDialog: {
|
|
454
|
-
shown: false;
|
|
455
|
-
data: null;
|
|
456
|
-
} | {
|
|
457
|
-
shown: true;
|
|
458
|
-
data: import("../charts").Spreadsheet;
|
|
459
|
-
};
|
|
460
|
-
pendingImageElementId: string | null;
|
|
461
|
-
showHyperlinkPopup: false | "
|
|
462
|
-
linkOpacity: number;
|
|
463
|
-
trayModeEnabled: boolean;
|
|
464
|
-
colorPalette?: {
|
|
465
|
-
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
466
|
-
elementBackground: import("../colors").ColorPaletteCustom;
|
|
467
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
468
|
-
topPicks: {
|
|
469
|
-
canvasBackground: [string, string, string, string, string];
|
|
470
|
-
elementStroke: [string, string, string, string, string];
|
|
471
|
-
elementBackground: [string, string, string, string, string];
|
|
472
|
-
};
|
|
473
|
-
} | undefined;
|
|
474
|
-
allowWheelZoom?: boolean | undefined;
|
|
475
|
-
allowPinchZoom?: boolean | undefined;
|
|
476
|
-
pinnedScripts?: string[] | undefined;
|
|
477
|
-
customPens?: any[] | undefined;
|
|
478
|
-
currentStrokeOptions?: any;
|
|
479
|
-
resetCustomPen?: any;
|
|
480
|
-
gridColor: string;
|
|
481
|
-
dynamicStyle: string;
|
|
482
|
-
invertBindingBehaviour: boolean;
|
|
483
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
484
|
-
};
|
|
485
|
-
commitToHistory: false;
|
|
486
|
-
};
|
|
487
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
488
|
-
} & {
|
|
489
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
490
|
-
};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ExcalidrawElement } from "../element/types";
|
|
3
|
+
import { AppClassProperties, AppState } from "../types";
|
|
4
|
+
export declare const actionSelectAllElementsInFrame: {
|
|
5
|
+
name: "selectAllElementsInFrame";
|
|
6
|
+
trackEvent: {
|
|
7
|
+
category: "canvas";
|
|
8
|
+
};
|
|
9
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
10
|
+
elements: readonly ExcalidrawElement[];
|
|
11
|
+
appState: Readonly<AppState>;
|
|
12
|
+
commitToHistory: false;
|
|
13
|
+
};
|
|
14
|
+
contextItemLabel: string;
|
|
15
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
16
|
+
} & {
|
|
17
|
+
keyTest?: undefined;
|
|
18
|
+
};
|
|
19
|
+
export declare const actionRemoveAllElementsFromFrame: {
|
|
20
|
+
name: "removeAllElementsFromFrame";
|
|
21
|
+
trackEvent: {
|
|
22
|
+
category: "history";
|
|
23
|
+
};
|
|
24
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
25
|
+
elements: ExcalidrawElement[];
|
|
26
|
+
appState: {
|
|
27
|
+
selectedElementIds: {
|
|
28
|
+
[x: string]: true;
|
|
29
|
+
};
|
|
30
|
+
contextMenu: {
|
|
31
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
32
|
+
top: number;
|
|
33
|
+
left: number;
|
|
34
|
+
} | null;
|
|
35
|
+
showWelcomeScreen: boolean;
|
|
36
|
+
isLoading: boolean;
|
|
37
|
+
errorMessage: import("react").ReactNode;
|
|
38
|
+
activeEmbeddable: {
|
|
39
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
40
|
+
state: "active" | "hover";
|
|
41
|
+
} | null;
|
|
42
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
45
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
46
|
+
isBindingEnabled: boolean;
|
|
47
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
48
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
49
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
50
|
+
frameRendering: {
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
name: boolean;
|
|
53
|
+
outline: boolean;
|
|
54
|
+
clip: boolean;
|
|
55
|
+
};
|
|
56
|
+
editingFrame: string | null;
|
|
57
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
58
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
59
|
+
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
60
|
+
activeTool: {
|
|
61
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
62
|
+
locked: boolean;
|
|
63
|
+
} & ({
|
|
64
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
65
|
+
customType: null;
|
|
66
|
+
} | {
|
|
67
|
+
type: "custom";
|
|
68
|
+
customType: string;
|
|
69
|
+
});
|
|
70
|
+
penMode: boolean;
|
|
71
|
+
penDetected: boolean;
|
|
72
|
+
exportBackground: boolean;
|
|
73
|
+
exportEmbedScene: boolean;
|
|
74
|
+
exportWithDarkMode: boolean;
|
|
75
|
+
exportScale: number;
|
|
76
|
+
currentItemStrokeColor: string;
|
|
77
|
+
currentItemBackgroundColor: string;
|
|
78
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
79
|
+
currentItemStrokeWidth: number;
|
|
80
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
81
|
+
currentItemRoughness: number;
|
|
82
|
+
currentItemOpacity: number;
|
|
83
|
+
currentItemFontFamily: number;
|
|
84
|
+
currentItemFontSize: number;
|
|
85
|
+
currentItemTextAlign: string;
|
|
86
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
87
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
88
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
89
|
+
viewBackgroundColor: string;
|
|
90
|
+
scrollX: number;
|
|
91
|
+
scrollY: number;
|
|
92
|
+
cursorButton: "up" | "down";
|
|
93
|
+
scrolledOutside: boolean;
|
|
94
|
+
name: string;
|
|
95
|
+
isResizing: boolean;
|
|
96
|
+
isRotating: boolean;
|
|
97
|
+
zoom: Readonly<{
|
|
98
|
+
value: import("../types").NormalizedZoomValue;
|
|
99
|
+
}>;
|
|
100
|
+
openMenu: "canvas" | "shape" | null;
|
|
101
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
102
|
+
openSidebar: {
|
|
103
|
+
name: string;
|
|
104
|
+
tab?: string | undefined;
|
|
105
|
+
} | null;
|
|
106
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
107
|
+
defaultSidebarDockedPreference: boolean;
|
|
108
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
109
|
+
previousSelectedElementIds: {
|
|
110
|
+
[id: string]: true;
|
|
111
|
+
};
|
|
112
|
+
selectedElementsAreBeingDragged: boolean;
|
|
113
|
+
shouldCacheIgnoreZoom: boolean;
|
|
114
|
+
toast: {
|
|
115
|
+
message: string;
|
|
116
|
+
closable?: boolean | undefined;
|
|
117
|
+
duration?: number | undefined;
|
|
118
|
+
} | null;
|
|
119
|
+
zenModeEnabled: boolean;
|
|
120
|
+
theme: import("../element/types").Theme;
|
|
121
|
+
gridSize: number | null;
|
|
122
|
+
previousGridSize: number | null;
|
|
123
|
+
viewModeEnabled: boolean;
|
|
124
|
+
selectedGroupIds: {
|
|
125
|
+
[groupId: string]: boolean;
|
|
126
|
+
};
|
|
127
|
+
editingGroupId: string | null;
|
|
128
|
+
width: number;
|
|
129
|
+
height: number;
|
|
130
|
+
offsetTop: number;
|
|
131
|
+
offsetLeft: number;
|
|
132
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
133
|
+
collaborators: Map<string, import("../types").Collaborator>;
|
|
134
|
+
showStats: boolean;
|
|
135
|
+
currentChartType: import("../element/types").ChartType;
|
|
136
|
+
pasteDialog: {
|
|
137
|
+
shown: false;
|
|
138
|
+
data: null;
|
|
139
|
+
} | {
|
|
140
|
+
shown: true;
|
|
141
|
+
data: import("../charts").Spreadsheet;
|
|
142
|
+
};
|
|
143
|
+
pendingImageElementId: string | null;
|
|
144
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
145
|
+
linkOpacity: number;
|
|
146
|
+
trayModeEnabled: boolean;
|
|
147
|
+
colorPalette?: {
|
|
148
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
149
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
150
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
151
|
+
topPicks: {
|
|
152
|
+
canvasBackground: [string, string, string, string, string];
|
|
153
|
+
elementStroke: [string, string, string, string, string];
|
|
154
|
+
elementBackground: [string, string, string, string, string];
|
|
155
|
+
};
|
|
156
|
+
} | undefined;
|
|
157
|
+
allowWheelZoom?: boolean | undefined;
|
|
158
|
+
allowPinchZoom?: boolean | undefined;
|
|
159
|
+
pinnedScripts?: string[] | undefined;
|
|
160
|
+
customPens?: any[] | undefined;
|
|
161
|
+
currentStrokeOptions?: any;
|
|
162
|
+
resetCustomPen?: any;
|
|
163
|
+
gridColor: string;
|
|
164
|
+
dynamicStyle: string;
|
|
165
|
+
invertBindingBehaviour: boolean;
|
|
166
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
167
|
+
};
|
|
168
|
+
commitToHistory: true;
|
|
169
|
+
} | {
|
|
170
|
+
elements: readonly ExcalidrawElement[];
|
|
171
|
+
appState: Readonly<AppState>;
|
|
172
|
+
commitToHistory: false;
|
|
173
|
+
};
|
|
174
|
+
contextItemLabel: string;
|
|
175
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
176
|
+
} & {
|
|
177
|
+
keyTest?: undefined;
|
|
178
|
+
};
|
|
179
|
+
export declare const actionupdateFrameRendering: {
|
|
180
|
+
name: "updateFrameRendering";
|
|
181
|
+
viewMode: true;
|
|
182
|
+
trackEvent: {
|
|
183
|
+
category: "canvas";
|
|
184
|
+
};
|
|
185
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
186
|
+
elements: readonly ExcalidrawElement[];
|
|
187
|
+
appState: {
|
|
188
|
+
frameRendering: {
|
|
189
|
+
enabled: boolean;
|
|
190
|
+
name: boolean;
|
|
191
|
+
outline: boolean;
|
|
192
|
+
clip: boolean;
|
|
193
|
+
};
|
|
194
|
+
contextMenu: {
|
|
195
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
196
|
+
top: number;
|
|
197
|
+
left: number;
|
|
198
|
+
} | null;
|
|
199
|
+
showWelcomeScreen: boolean;
|
|
200
|
+
isLoading: boolean;
|
|
201
|
+
errorMessage: import("react").ReactNode;
|
|
202
|
+
activeEmbeddable: {
|
|
203
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
204
|
+
state: "active" | "hover";
|
|
205
|
+
} | null;
|
|
206
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
207
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
208
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
209
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
210
|
+
isBindingEnabled: boolean;
|
|
211
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
212
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
213
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
214
|
+
editingFrame: string | null;
|
|
215
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
216
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
217
|
+
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
218
|
+
activeTool: {
|
|
219
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
220
|
+
locked: boolean;
|
|
221
|
+
} & ({
|
|
222
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
223
|
+
customType: null;
|
|
224
|
+
} | {
|
|
225
|
+
type: "custom";
|
|
226
|
+
customType: string;
|
|
227
|
+
});
|
|
228
|
+
penMode: boolean;
|
|
229
|
+
penDetected: boolean;
|
|
230
|
+
exportBackground: boolean;
|
|
231
|
+
exportEmbedScene: boolean;
|
|
232
|
+
exportWithDarkMode: boolean;
|
|
233
|
+
exportScale: number;
|
|
234
|
+
currentItemStrokeColor: string;
|
|
235
|
+
currentItemBackgroundColor: string;
|
|
236
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
237
|
+
currentItemStrokeWidth: number;
|
|
238
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
239
|
+
currentItemRoughness: number;
|
|
240
|
+
currentItemOpacity: number;
|
|
241
|
+
currentItemFontFamily: number;
|
|
242
|
+
currentItemFontSize: number;
|
|
243
|
+
currentItemTextAlign: string;
|
|
244
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
245
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
246
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
247
|
+
viewBackgroundColor: string;
|
|
248
|
+
scrollX: number;
|
|
249
|
+
scrollY: number;
|
|
250
|
+
cursorButton: "up" | "down";
|
|
251
|
+
scrolledOutside: boolean;
|
|
252
|
+
name: string;
|
|
253
|
+
isResizing: boolean;
|
|
254
|
+
isRotating: boolean;
|
|
255
|
+
zoom: Readonly<{
|
|
256
|
+
value: import("../types").NormalizedZoomValue;
|
|
257
|
+
}>;
|
|
258
|
+
openMenu: "canvas" | "shape" | null;
|
|
259
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
260
|
+
openSidebar: {
|
|
261
|
+
name: string;
|
|
262
|
+
tab?: string | undefined;
|
|
263
|
+
} | null;
|
|
264
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
265
|
+
defaultSidebarDockedPreference: boolean;
|
|
266
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
267
|
+
selectedElementIds: Readonly<{
|
|
268
|
+
[id: string]: true;
|
|
269
|
+
}>;
|
|
270
|
+
previousSelectedElementIds: {
|
|
271
|
+
[id: string]: true;
|
|
272
|
+
};
|
|
273
|
+
selectedElementsAreBeingDragged: boolean;
|
|
274
|
+
shouldCacheIgnoreZoom: boolean;
|
|
275
|
+
toast: {
|
|
276
|
+
message: string;
|
|
277
|
+
closable?: boolean | undefined;
|
|
278
|
+
duration?: number | undefined;
|
|
279
|
+
} | null;
|
|
280
|
+
zenModeEnabled: boolean;
|
|
281
|
+
theme: import("../element/types").Theme;
|
|
282
|
+
gridSize: number | null;
|
|
283
|
+
previousGridSize: number | null;
|
|
284
|
+
viewModeEnabled: boolean;
|
|
285
|
+
selectedGroupIds: {
|
|
286
|
+
[groupId: string]: boolean;
|
|
287
|
+
};
|
|
288
|
+
editingGroupId: string | null;
|
|
289
|
+
width: number;
|
|
290
|
+
height: number;
|
|
291
|
+
offsetTop: number;
|
|
292
|
+
offsetLeft: number;
|
|
293
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
294
|
+
collaborators: Map<string, import("../types").Collaborator>;
|
|
295
|
+
showStats: boolean;
|
|
296
|
+
currentChartType: import("../element/types").ChartType;
|
|
297
|
+
pasteDialog: {
|
|
298
|
+
shown: false;
|
|
299
|
+
data: null;
|
|
300
|
+
} | {
|
|
301
|
+
shown: true;
|
|
302
|
+
data: import("../charts").Spreadsheet;
|
|
303
|
+
};
|
|
304
|
+
pendingImageElementId: string | null;
|
|
305
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
306
|
+
linkOpacity: number;
|
|
307
|
+
trayModeEnabled: boolean;
|
|
308
|
+
colorPalette?: {
|
|
309
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
310
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
311
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
312
|
+
topPicks: {
|
|
313
|
+
canvasBackground: [string, string, string, string, string];
|
|
314
|
+
elementStroke: [string, string, string, string, string];
|
|
315
|
+
elementBackground: [string, string, string, string, string];
|
|
316
|
+
};
|
|
317
|
+
} | undefined;
|
|
318
|
+
allowWheelZoom?: boolean | undefined;
|
|
319
|
+
allowPinchZoom?: boolean | undefined;
|
|
320
|
+
pinnedScripts?: string[] | undefined;
|
|
321
|
+
customPens?: any[] | undefined;
|
|
322
|
+
currentStrokeOptions?: any;
|
|
323
|
+
resetCustomPen?: any;
|
|
324
|
+
gridColor: string;
|
|
325
|
+
dynamicStyle: string;
|
|
326
|
+
invertBindingBehaviour: boolean;
|
|
327
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
328
|
+
};
|
|
329
|
+
commitToHistory: false;
|
|
330
|
+
};
|
|
331
|
+
contextItemLabel: string;
|
|
332
|
+
checked: (appState: AppState) => boolean;
|
|
333
|
+
} & {
|
|
334
|
+
keyTest?: undefined;
|
|
335
|
+
};
|
|
336
|
+
export declare const actionSetFrameAsActiveTool: {
|
|
337
|
+
name: "setFrameAsActiveTool";
|
|
338
|
+
trackEvent: {
|
|
339
|
+
category: "toolbar";
|
|
340
|
+
};
|
|
341
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
342
|
+
elements: readonly ExcalidrawElement[];
|
|
343
|
+
appState: {
|
|
344
|
+
activeTool: {
|
|
345
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
346
|
+
locked: boolean;
|
|
347
|
+
} & ({
|
|
348
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
349
|
+
customType: null;
|
|
350
|
+
} | {
|
|
351
|
+
type: "custom";
|
|
352
|
+
customType: string;
|
|
353
|
+
});
|
|
354
|
+
contextMenu: {
|
|
355
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
356
|
+
top: number;
|
|
357
|
+
left: number;
|
|
358
|
+
} | null;
|
|
359
|
+
showWelcomeScreen: boolean;
|
|
360
|
+
isLoading: boolean;
|
|
361
|
+
errorMessage: import("react").ReactNode;
|
|
362
|
+
activeEmbeddable: {
|
|
363
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
364
|
+
state: "active" | "hover";
|
|
365
|
+
} | null;
|
|
366
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
367
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
368
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
369
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
370
|
+
isBindingEnabled: boolean;
|
|
371
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
372
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
373
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
374
|
+
frameRendering: {
|
|
375
|
+
enabled: boolean;
|
|
376
|
+
name: boolean;
|
|
377
|
+
outline: boolean;
|
|
378
|
+
clip: boolean;
|
|
379
|
+
};
|
|
380
|
+
editingFrame: string | null;
|
|
381
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
382
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
383
|
+
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
384
|
+
penMode: boolean;
|
|
385
|
+
penDetected: boolean;
|
|
386
|
+
exportBackground: boolean;
|
|
387
|
+
exportEmbedScene: boolean;
|
|
388
|
+
exportWithDarkMode: boolean;
|
|
389
|
+
exportScale: number;
|
|
390
|
+
currentItemStrokeColor: string;
|
|
391
|
+
currentItemBackgroundColor: string;
|
|
392
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
393
|
+
currentItemStrokeWidth: number;
|
|
394
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
395
|
+
currentItemRoughness: number;
|
|
396
|
+
currentItemOpacity: number;
|
|
397
|
+
currentItemFontFamily: number;
|
|
398
|
+
currentItemFontSize: number;
|
|
399
|
+
currentItemTextAlign: string;
|
|
400
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
401
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
402
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
403
|
+
viewBackgroundColor: string;
|
|
404
|
+
scrollX: number;
|
|
405
|
+
scrollY: number;
|
|
406
|
+
cursorButton: "up" | "down";
|
|
407
|
+
scrolledOutside: boolean;
|
|
408
|
+
name: string;
|
|
409
|
+
isResizing: boolean;
|
|
410
|
+
isRotating: boolean;
|
|
411
|
+
zoom: Readonly<{
|
|
412
|
+
value: import("../types").NormalizedZoomValue;
|
|
413
|
+
}>;
|
|
414
|
+
openMenu: "canvas" | "shape" | null;
|
|
415
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
416
|
+
openSidebar: {
|
|
417
|
+
name: string;
|
|
418
|
+
tab?: string | undefined;
|
|
419
|
+
} | null;
|
|
420
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
421
|
+
defaultSidebarDockedPreference: boolean;
|
|
422
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
423
|
+
selectedElementIds: Readonly<{
|
|
424
|
+
[id: string]: true;
|
|
425
|
+
}>;
|
|
426
|
+
previousSelectedElementIds: {
|
|
427
|
+
[id: string]: true;
|
|
428
|
+
};
|
|
429
|
+
selectedElementsAreBeingDragged: boolean;
|
|
430
|
+
shouldCacheIgnoreZoom: boolean;
|
|
431
|
+
toast: {
|
|
432
|
+
message: string;
|
|
433
|
+
closable?: boolean | undefined;
|
|
434
|
+
duration?: number | undefined;
|
|
435
|
+
} | null;
|
|
436
|
+
zenModeEnabled: boolean;
|
|
437
|
+
theme: import("../element/types").Theme;
|
|
438
|
+
gridSize: number | null;
|
|
439
|
+
previousGridSize: number | null;
|
|
440
|
+
viewModeEnabled: boolean;
|
|
441
|
+
selectedGroupIds: {
|
|
442
|
+
[groupId: string]: boolean;
|
|
443
|
+
};
|
|
444
|
+
editingGroupId: string | null;
|
|
445
|
+
width: number;
|
|
446
|
+
height: number;
|
|
447
|
+
offsetTop: number;
|
|
448
|
+
offsetLeft: number;
|
|
449
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
450
|
+
collaborators: Map<string, import("../types").Collaborator>;
|
|
451
|
+
showStats: boolean;
|
|
452
|
+
currentChartType: import("../element/types").ChartType;
|
|
453
|
+
pasteDialog: {
|
|
454
|
+
shown: false;
|
|
455
|
+
data: null;
|
|
456
|
+
} | {
|
|
457
|
+
shown: true;
|
|
458
|
+
data: import("../charts").Spreadsheet;
|
|
459
|
+
};
|
|
460
|
+
pendingImageElementId: string | null;
|
|
461
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
462
|
+
linkOpacity: number;
|
|
463
|
+
trayModeEnabled: boolean;
|
|
464
|
+
colorPalette?: {
|
|
465
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
466
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
467
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
468
|
+
topPicks: {
|
|
469
|
+
canvasBackground: [string, string, string, string, string];
|
|
470
|
+
elementStroke: [string, string, string, string, string];
|
|
471
|
+
elementBackground: [string, string, string, string, string];
|
|
472
|
+
};
|
|
473
|
+
} | undefined;
|
|
474
|
+
allowWheelZoom?: boolean | undefined;
|
|
475
|
+
allowPinchZoom?: boolean | undefined;
|
|
476
|
+
pinnedScripts?: string[] | undefined;
|
|
477
|
+
customPens?: any[] | undefined;
|
|
478
|
+
currentStrokeOptions?: any;
|
|
479
|
+
resetCustomPen?: any;
|
|
480
|
+
gridColor: string;
|
|
481
|
+
dynamicStyle: string;
|
|
482
|
+
invertBindingBehaviour: boolean;
|
|
483
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
484
|
+
};
|
|
485
|
+
commitToHistory: false;
|
|
486
|
+
};
|
|
487
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
488
|
+
} & {
|
|
489
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
490
|
+
};
|