@zsviczian/excalidraw 0.17.1-obsidian-20 → 0.17.1-obsidian-22
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 +217 -96
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +88 -63
- package/dist/styles.production.css +6 -6
- package/package.json +2 -1
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +4 -4
- package/types/excalidraw/actions/actionAlign.d.ts +22 -22
- package/types/excalidraw/actions/actionBoundText.d.ts +10 -10
- package/types/excalidraw/actions/actionCanvas.d.ts +68 -68
- package/types/excalidraw/actions/actionClipboard.d.ts +24 -24
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +10 -10
- package/types/excalidraw/actions/actionDistribute.d.ts +10 -10
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +7 -8
- package/types/excalidraw/actions/actionElementLock.d.ts +9 -9
- package/types/excalidraw/actions/actionExport.d.ts +33 -33
- package/types/excalidraw/actions/actionFinalize.d.ts +9 -9
- package/types/excalidraw/actions/actionFlip.d.ts +10 -10
- package/types/excalidraw/actions/actionFrame.d.ts +16 -204
- package/types/excalidraw/actions/actionGroup.d.ts +12 -388
- package/types/excalidraw/actions/actionHistory.d.ts +4 -3
- package/types/excalidraw/actions/actionLinearEditor.d.ts +6 -4
- package/types/excalidraw/actions/actionLink.d.ts +5 -5
- package/types/excalidraw/actions/actionMenu.d.ts +8 -8
- package/types/excalidraw/actions/actionNavigate.d.ts +4 -4
- package/types/excalidraw/actions/actionProperties.d.ts +34 -34
- package/types/excalidraw/actions/actionSelectAll.d.ts +5 -5
- package/types/excalidraw/actions/actionStyles.d.ts +9 -12
- package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -0
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -5
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -4
- package/types/excalidraw/actions/actionToggleStats.d.ts +4 -4
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -4
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -4
- package/types/excalidraw/actions/actionZindex.d.ts +22 -19
- package/types/excalidraw/actions/manager.d.ts +5 -5
- package/types/excalidraw/actions/register.d.ts +1 -1
- package/types/excalidraw/actions/shortcuts.d.ts +2 -2
- package/types/excalidraw/actions/types.d.ts +8 -8
- package/types/excalidraw/align.d.ts +1 -1
- package/types/excalidraw/animated-trail.d.ts +2 -2
- package/types/excalidraw/appState.d.ts +5 -5
- package/types/excalidraw/change.d.ts +191 -0
- package/types/excalidraw/charts.d.ts +1 -1
- package/types/excalidraw/clients.d.ts +2 -2
- package/types/excalidraw/clipboard.d.ts +3 -3
- package/types/excalidraw/colors.d.ts +1 -1
- package/types/excalidraw/components/Actions.d.ts +3 -3
- package/types/excalidraw/components/App.d.ts +28 -14
- package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -3
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
- package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -1
- package/types/excalidraw/components/CommandPalette/types.d.ts +3 -3
- package/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
- package/types/excalidraw/components/ContextMenu.d.ts +2 -2
- package/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
- package/types/excalidraw/components/DialogActionButton.d.ts +1 -1
- package/types/excalidraw/components/EyeDropper.d.ts +2 -2
- package/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
- package/types/excalidraw/components/HintViewer.d.ts +1 -1
- package/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
- package/types/excalidraw/components/InitializeApp.d.ts +2 -2
- package/types/excalidraw/components/JSONExportDialog.d.ts +3 -3
- package/types/excalidraw/components/LayerUI.d.ts +4 -4
- package/types/excalidraw/components/LibraryMenu.d.ts +2 -2
- package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +2 -2
- package/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuSection.d.ts +5 -4
- package/types/excalidraw/components/LibraryUnit.d.ts +2 -2
- package/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/types/excalidraw/components/MobileMenu.d.ts +3 -3
- package/types/excalidraw/components/Modal.d.ts +1 -1
- package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/types/excalidraw/components/PublishLibrary.d.ts +1 -1
- package/types/excalidraw/components/RadioGroup.d.ts +2 -1
- package/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/common.d.ts +1 -1
- package/types/excalidraw/components/Stats.d.ts +2 -2
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -2
- package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/common.d.ts +4 -4
- package/types/excalidraw/components/TextField.d.ts +1 -1
- package/types/excalidraw/components/Toast.d.ts +1 -1
- package/types/excalidraw/components/ToolButton.d.ts +4 -2
- package/types/excalidraw/components/Trans.d.ts +1 -1
- package/types/excalidraw/components/UserList.d.ts +1 -1
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
- package/types/excalidraw/components/canvases/StaticCanvas.d.ts +2 -2
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -0
- package/types/excalidraw/components/footer/Footer.d.ts +2 -2
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
- package/types/excalidraw/components/icons.d.ts +6 -1
- package/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -2
- package/types/excalidraw/constants.d.ts +5 -2
- package/types/excalidraw/context/ui-appState.d.ts +1 -1
- package/types/excalidraw/cursor.d.ts +1 -1
- package/types/excalidraw/data/EditorLocalStorage.d.ts +2 -2
- package/types/excalidraw/data/blob.d.ts +5 -5
- package/types/excalidraw/data/filesystem.d.ts +2 -1
- package/types/excalidraw/data/index.d.ts +4 -4
- package/types/excalidraw/data/json.d.ts +3 -3
- package/types/excalidraw/data/library.d.ts +3 -3
- package/types/excalidraw/data/magic.d.ts +3 -3
- package/types/excalidraw/data/reconcile.d.ts +6 -0
- package/types/excalidraw/data/resave.d.ts +2 -2
- package/types/excalidraw/data/restore.d.ts +5 -5
- package/types/excalidraw/data/transform.d.ts +4 -4
- package/types/excalidraw/data/types.d.ts +3 -3
- package/types/excalidraw/data/url.d.ts +1 -0
- package/types/excalidraw/element/ElementCanvasButtons.d.ts +1 -1
- package/types/excalidraw/element/binding.d.ts +52 -9
- package/types/excalidraw/element/bounds.d.ts +3 -4
- package/types/excalidraw/element/collision.d.ts +14 -19
- package/types/excalidraw/element/containerCache.d.ts +1 -1
- package/types/excalidraw/element/dragElements.d.ts +3 -3
- package/types/excalidraw/element/embeddable.d.ts +9 -6
- package/types/excalidraw/element/image.d.ts +2 -2
- package/types/excalidraw/element/index.d.ts +2 -3
- package/types/excalidraw/element/linearElementEditor.d.ts +12 -12
- package/types/excalidraw/element/mutateElement.d.ts +4 -5
- package/types/excalidraw/element/newElement.d.ts +4 -11
- package/types/excalidraw/element/resizeElements.d.ts +4 -4
- package/types/excalidraw/element/resizeTest.d.ts +7 -7
- package/types/excalidraw/element/showSelectedShapeActions.d.ts +2 -2
- package/types/excalidraw/element/sizeHelpers.d.ts +2 -2
- package/types/excalidraw/element/sortElements.d.ts +1 -1
- package/types/excalidraw/element/textElement.d.ts +5 -6
- package/types/excalidraw/element/textWysiwyg.d.ts +10 -5
- package/types/excalidraw/element/transformHandles.d.ts +24 -6
- package/types/excalidraw/element/typeChecks.d.ts +4 -4
- package/types/excalidraw/element/types.d.ts +33 -10
- package/types/excalidraw/emitter.d.ts +1 -1
- package/types/excalidraw/errors.d.ts +3 -0
- package/types/excalidraw/fractionalIndex.d.ts +40 -0
- package/types/excalidraw/frame.d.ts +4 -4
- package/types/excalidraw/gatransforms.d.ts +1 -1
- package/types/excalidraw/gesture.d.ts +1 -1
- package/types/excalidraw/groups.d.ts +5 -3
- package/types/excalidraw/history.d.ts +35 -47
- package/types/excalidraw/hooks/useEmitter.d.ts +2 -0
- package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/types/excalidraw/i18n.d.ts +1 -1
- package/types/excalidraw/index.d.ts +5 -1
- package/types/excalidraw/jotai.d.ts +1 -1
- package/types/excalidraw/laser-trails.d.ts +3 -2
- package/types/excalidraw/math.d.ts +2 -2
- package/types/excalidraw/points.d.ts +1 -1
- package/types/excalidraw/queue.d.ts +1 -1
- package/types/excalidraw/renderer/helpers.d.ts +2 -2
- package/types/excalidraw/renderer/interactiveScene.d.ts +2 -2
- package/types/excalidraw/renderer/renderElement.d.ts +3 -3
- package/types/excalidraw/renderer/renderSnaps.d.ts +1 -1
- package/types/excalidraw/renderer/staticScene.d.ts +1 -1
- package/types/excalidraw/renderer/staticSvgScene.d.ts +4 -4
- package/types/excalidraw/scene/Fonts.d.ts +2 -4
- package/types/excalidraw/scene/Renderer.d.ts +4 -4
- package/types/excalidraw/scene/Scene.d.ts +19 -12
- package/types/excalidraw/scene/Shape.d.ts +1 -1
- package/types/excalidraw/scene/ShapeCache.d.ts +4 -4
- package/types/excalidraw/scene/comparisons.d.ts +2 -2
- package/types/excalidraw/scene/export.d.ts +2 -2
- package/types/excalidraw/scene/scroll.d.ts +2 -2
- package/types/excalidraw/scene/scrollbars.d.ts +3 -3
- package/types/excalidraw/scene/selection.d.ts +2 -2
- package/types/excalidraw/scene/types.d.ts +5 -4
- package/types/excalidraw/scene/zoom.d.ts +1 -1
- package/types/excalidraw/snapping.d.ts +4 -4
- package/types/excalidraw/store.d.ts +99 -0
- package/types/excalidraw/types.d.ts +38 -20
- package/types/excalidraw/utils.d.ts +11 -4
- package/types/excalidraw/webpack.prod.config.d.ts +1 -1
- package/types/excalidraw/zindex.d.ts +4 -4
- package/types/utils/bbox.d.ts +2 -2
- package/types/utils/collision.d.ts +4 -0
- package/types/utils/export.d.ts +4 -4
- package/types/utils/geometry/geometry.d.ts +71 -0
- package/types/utils/geometry/shape.d.ts +56 -0
- package/types/utils/withinBounds.d.ts +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ExcalidrawElement } from "../element/types";
|
|
2
|
-
import { AppClassProperties, AppState } from "../types";
|
|
1
|
+
import type { ExcalidrawElement } from "../element/types";
|
|
2
|
+
import type { AppClassProperties, AppState } from "../types";
|
|
3
3
|
export declare const actionSelectAllElementsInFrame: {
|
|
4
4
|
name: "selectAllElementsInFrame";
|
|
5
5
|
label: string;
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "canvas";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly
|
|
10
|
-
elements: readonly
|
|
9
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
10
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
11
11
|
appState: Readonly<AppState>;
|
|
12
|
-
|
|
12
|
+
storeAction: import("../store").StoreActionType;
|
|
13
13
|
};
|
|
14
14
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
15
15
|
} & {
|
|
@@ -21,198 +21,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
21
21
|
trackEvent: {
|
|
22
22
|
category: "history";
|
|
23
23
|
};
|
|
24
|
-
perform: (elements: readonly
|
|
25
|
-
elements: readonly
|
|
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").ExcalidrawFrameLikeElement> | 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").ActiveTool | null;
|
|
62
|
-
locked: boolean;
|
|
63
|
-
} & import("../types").ActiveTool;
|
|
64
|
-
penMode: boolean;
|
|
65
|
-
penDetected: boolean;
|
|
66
|
-
exportBackground: boolean;
|
|
67
|
-
exportEmbedScene: boolean;
|
|
68
|
-
exportWithDarkMode: boolean;
|
|
69
|
-
exportScale: number;
|
|
70
|
-
currentItemStrokeColor: string;
|
|
71
|
-
currentItemBackgroundColor: string;
|
|
72
|
-
currentItemFillStyle: import("../element/types").FillStyle;
|
|
73
|
-
currentItemStrokeWidth: number;
|
|
74
|
-
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
75
|
-
currentItemRoughness: number;
|
|
76
|
-
currentItemOpacity: number;
|
|
77
|
-
currentItemFontFamily: number;
|
|
78
|
-
currentItemFontSize: number;
|
|
79
|
-
currentItemTextAlign: string;
|
|
80
|
-
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
81
|
-
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
82
|
-
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
83
|
-
viewBackgroundColor: string;
|
|
84
|
-
scrollX: number;
|
|
85
|
-
scrollY: number;
|
|
86
|
-
cursorButton: "up" | "down";
|
|
87
|
-
scrolledOutside: boolean;
|
|
88
|
-
name: string | null;
|
|
89
|
-
isResizing: boolean;
|
|
90
|
-
isRotating: boolean;
|
|
91
|
-
zoom: Readonly<{
|
|
92
|
-
value: import("../types").NormalizedZoomValue;
|
|
93
|
-
}>;
|
|
94
|
-
openMenu: "canvas" | "shape" | null;
|
|
95
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
96
|
-
openSidebar: {
|
|
97
|
-
name: string;
|
|
98
|
-
tab?: string | undefined;
|
|
99
|
-
} | null;
|
|
100
|
-
openDialog: {
|
|
101
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
102
|
-
} | {
|
|
103
|
-
name: "settings";
|
|
104
|
-
source: "settings" | "tool" | "generation";
|
|
105
|
-
tab: "text-to-diagram" | "diagram-to-code";
|
|
106
|
-
} | {
|
|
107
|
-
name: "ttd";
|
|
108
|
-
tab: "mermaid" | "text-to-diagram";
|
|
109
|
-
} | {
|
|
110
|
-
name: "commandPalette";
|
|
111
|
-
} | null;
|
|
112
|
-
defaultSidebarDockedPreference: boolean;
|
|
113
|
-
lastPointerDownWith: import("../element/types").PointerType;
|
|
114
|
-
previousSelectedElementIds: {
|
|
115
|
-
[id: string]: true;
|
|
116
|
-
};
|
|
117
|
-
selectedElementsAreBeingDragged: boolean;
|
|
118
|
-
shouldCacheIgnoreZoom: boolean;
|
|
119
|
-
toast: {
|
|
120
|
-
message: string;
|
|
121
|
-
closable?: boolean | undefined;
|
|
122
|
-
duration?: number | undefined;
|
|
123
|
-
} | null;
|
|
124
|
-
zenModeEnabled: boolean;
|
|
125
|
-
theme: import("../element/types").Theme;
|
|
126
|
-
gridSize: number | null;
|
|
127
|
-
previousGridSize: number | null;
|
|
128
|
-
viewModeEnabled: boolean;
|
|
129
|
-
selectedGroupIds: {
|
|
130
|
-
[groupId: string]: boolean;
|
|
131
|
-
};
|
|
132
|
-
editingGroupId: string | null;
|
|
133
|
-
width: number;
|
|
134
|
-
height: number;
|
|
135
|
-
offsetTop: number;
|
|
136
|
-
offsetLeft: number;
|
|
137
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
138
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
139
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
140
|
-
button?: "up" | "down" | undefined;
|
|
141
|
-
selectedElementIds?: Readonly<{
|
|
142
|
-
[id: string]: true;
|
|
143
|
-
}> | undefined;
|
|
144
|
-
username?: string | null | undefined;
|
|
145
|
-
userState?: import("../types").UserIdleState | undefined;
|
|
146
|
-
color?: {
|
|
147
|
-
background: string;
|
|
148
|
-
stroke: string;
|
|
149
|
-
} | undefined;
|
|
150
|
-
avatarUrl?: string | undefined;
|
|
151
|
-
id?: string | undefined;
|
|
152
|
-
socketId?: import("../types").SocketId | undefined;
|
|
153
|
-
isCurrentUser?: boolean | undefined;
|
|
154
|
-
isInCall?: boolean | undefined;
|
|
155
|
-
isSpeaking?: boolean | undefined;
|
|
156
|
-
isMuted?: boolean | undefined;
|
|
157
|
-
}>>;
|
|
158
|
-
showStats: boolean;
|
|
159
|
-
currentChartType: import("../element/types").ChartType;
|
|
160
|
-
pasteDialog: {
|
|
161
|
-
shown: false;
|
|
162
|
-
data: null;
|
|
163
|
-
} | {
|
|
164
|
-
shown: true;
|
|
165
|
-
data: import("../charts").Spreadsheet;
|
|
166
|
-
};
|
|
167
|
-
pendingImageElementId: string | null;
|
|
168
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
169
|
-
linkOpacity: number;
|
|
170
|
-
trayModeEnabled: boolean;
|
|
171
|
-
colorPalette?: {
|
|
172
|
-
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
173
|
-
elementBackground: import("../colors").ColorPaletteCustom;
|
|
174
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
175
|
-
topPicks: {
|
|
176
|
-
canvasBackground: [string, string, string, string, string];
|
|
177
|
-
elementStroke: [string, string, string, string, string];
|
|
178
|
-
elementBackground: [string, string, string, string, string];
|
|
179
|
-
};
|
|
180
|
-
} | undefined;
|
|
181
|
-
allowWheelZoom?: boolean | undefined;
|
|
182
|
-
allowPinchZoom?: boolean | undefined;
|
|
183
|
-
pinnedScripts?: string[] | undefined;
|
|
184
|
-
customPens?: any[] | undefined;
|
|
185
|
-
currentStrokeOptions?: any;
|
|
186
|
-
resetCustomPen?: any;
|
|
187
|
-
gridColor: {
|
|
188
|
-
Bold: string;
|
|
189
|
-
Regular: string;
|
|
190
|
-
MajorGridFrequency?: number | undefined;
|
|
191
|
-
};
|
|
192
|
-
dynamicStyle: {
|
|
193
|
-
[x: string]: string;
|
|
194
|
-
};
|
|
195
|
-
frameColor: {
|
|
196
|
-
stroke: string;
|
|
197
|
-
fill: string;
|
|
198
|
-
nameColor: string;
|
|
199
|
-
};
|
|
200
|
-
invertBindingBehaviour: boolean;
|
|
201
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
202
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
203
|
-
originSnapOffset: {
|
|
204
|
-
x: number;
|
|
205
|
-
y: number;
|
|
206
|
-
} | null;
|
|
207
|
-
objectsSnapModeEnabled: boolean;
|
|
208
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
209
|
-
followedBy: Set<import("../types").SocketId>;
|
|
210
|
-
};
|
|
211
|
-
commitToHistory: true;
|
|
212
|
-
} | {
|
|
213
|
-
elements: readonly ExcalidrawElement[];
|
|
24
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
25
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
214
26
|
appState: Readonly<AppState>;
|
|
215
|
-
|
|
27
|
+
storeAction: import("../store").StoreActionType;
|
|
216
28
|
};
|
|
217
29
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
218
30
|
} & {
|
|
@@ -225,8 +37,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
225
37
|
trackEvent: {
|
|
226
38
|
category: "canvas";
|
|
227
39
|
};
|
|
228
|
-
perform: (elements: readonly
|
|
229
|
-
elements: readonly
|
|
40
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
41
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
230
42
|
appState: {
|
|
231
43
|
frameRendering: {
|
|
232
44
|
enabled: boolean;
|
|
@@ -412,7 +224,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
412
224
|
userToFollow: import("../types").UserToFollow | null;
|
|
413
225
|
followedBy: Set<import("../types").SocketId>;
|
|
414
226
|
};
|
|
415
|
-
|
|
227
|
+
storeAction: import("../store").StoreActionType;
|
|
416
228
|
};
|
|
417
229
|
checked: (appState: AppState) => boolean;
|
|
418
230
|
} & {
|
|
@@ -426,8 +238,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
426
238
|
};
|
|
427
239
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
428
240
|
viewMode: false;
|
|
429
|
-
perform: (elements: readonly
|
|
430
|
-
elements: readonly
|
|
241
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
242
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
431
243
|
appState: {
|
|
432
244
|
activeTool: {
|
|
433
245
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -613,9 +425,9 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
613
425
|
userToFollow: import("../types").UserToFollow | null;
|
|
614
426
|
followedBy: Set<import("../types").SocketId>;
|
|
615
427
|
};
|
|
616
|
-
|
|
428
|
+
storeAction: import("../store").StoreActionType;
|
|
617
429
|
};
|
|
618
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
430
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
619
431
|
} & {
|
|
620
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
432
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
621
433
|
};
|