@excalidraw/excalidraw 0.17.1-7500-ac247a0 → 0.17.1-a38e82f
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/CHANGELOG.md +52 -2
- package/dist/browser/dev/excalidraw-assets-dev/chunk-5VWQDKDR.js +20279 -0
- package/dist/browser/dev/excalidraw-assets-dev/chunk-5VWQDKDR.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{chunk-2W5GQUR4.js → chunk-IM4WTX2M.js} +12 -6
- package/dist/browser/dev/excalidraw-assets-dev/chunk-IM4WTX2M.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{en-OC6JWP3X.js → en-IOBA4CS2.js} +4 -2
- package/dist/browser/dev/excalidraw-assets-dev/image-LK4UNFRZ.css +6 -0
- package/dist/browser/dev/excalidraw-assets-dev/image-LK4UNFRZ.css.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{image-5TVMINCA.js → image-VKDAL6BQ.js} +2 -4
- package/dist/browser/dev/excalidraw-assets-dev/roundRect-T5BX56ZF.js +161 -0
- package/dist/browser/dev/excalidraw-assets-dev/roundRect-T5BX56ZF.js.map +7 -0
- package/dist/browser/dev/index.css +189 -129
- package/dist/browser/dev/index.css.map +3 -3
- package/dist/browser/dev/index.js +34708 -37
- package/dist/browser/dev/index.js.map +4 -4
- package/dist/browser/prod/excalidraw-assets/chunk-LIG3S5TN.js +11 -0
- package/dist/browser/prod/excalidraw-assets/chunk-N2C5DK3B.js +55 -0
- package/dist/browser/prod/excalidraw-assets/en-WFZVQ7I6.js +1 -0
- package/dist/browser/prod/excalidraw-assets/image-4AT7LYMR.js +1 -0
- package/dist/browser/prod/excalidraw-assets/image-X66R2EM5.css +1 -0
- package/dist/browser/prod/excalidraw-assets/roundRect-2ACQK4DA.js +1 -0
- package/dist/browser/prod/index.css +1 -1
- package/dist/browser/prod/index.js +203 -1
- package/dist/{prod/en-RLIAOBCI.json → dev/en-TDNWCAOT.json} +9 -5
- package/dist/dev/index.css +189 -129
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +39078 -40080
- package/dist/dev/index.js.map +4 -4
- package/dist/excalidraw/actions/actionAddToLibrary.d.ts +15 -15
- package/dist/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/excalidraw/actions/actionAlign.js +2 -1
- package/dist/excalidraw/actions/actionBoundText.d.ts +10 -10
- package/dist/excalidraw/actions/actionBoundText.js +8 -8
- package/dist/excalidraw/actions/actionCanvas.d.ts +58 -58
- package/dist/excalidraw/actions/actionClipboard.d.ts +34 -34
- package/dist/excalidraw/actions/actionClipboard.js +9 -2
- package/dist/excalidraw/actions/actionDeleteSelected.d.ts +15 -15
- package/dist/excalidraw/actions/actionDeleteSelected.js +3 -2
- package/dist/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/dist/excalidraw/actions/actionDistribute.js +1 -1
- package/dist/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/dist/excalidraw/actions/actionDuplicateSelection.js +4 -3
- package/dist/excalidraw/actions/actionElementLock.d.ts +10 -10
- package/dist/excalidraw/actions/actionExport.d.ts +43 -43
- package/dist/excalidraw/actions/actionExport.js +4 -4
- package/dist/excalidraw/actions/actionFinalize.d.ts +9 -9
- package/dist/excalidraw/actions/actionFinalize.js +7 -6
- package/dist/excalidraw/actions/actionFlip.d.ts +2 -2
- package/dist/excalidraw/actions/actionFlip.js +11 -11
- package/dist/excalidraw/actions/actionFrame.d.ts +16 -16
- package/dist/excalidraw/actions/actionFrame.js +1 -1
- package/dist/excalidraw/actions/actionGroup.d.ts +10 -10
- package/dist/excalidraw/actions/actionGroup.js +3 -2
- package/dist/excalidraw/actions/actionLinearEditor.d.ts +5 -5
- package/dist/excalidraw/actions/actionLinearEditor.js +1 -1
- package/dist/excalidraw/{element/Hyperlink.d.ts → actions/actionLink.d.ts} +29 -51
- package/dist/excalidraw/actions/actionLink.js +40 -0
- package/dist/excalidraw/actions/actionMenu.d.ts +13 -13
- package/dist/excalidraw/actions/actionNavigate.d.ts +10 -10
- package/dist/excalidraw/actions/actionNavigate.js +1 -1
- package/dist/excalidraw/actions/actionProperties.d.ts +77 -77
- package/dist/excalidraw/actions/actionProperties.js +32 -27
- package/dist/excalidraw/actions/actionSelectAll.d.ts +5 -5
- package/dist/excalidraw/actions/actionSelectAll.js +1 -1
- package/dist/excalidraw/actions/actionStyles.d.ts +7 -7
- package/dist/excalidraw/actions/actionStyles.js +4 -4
- package/dist/excalidraw/actions/actionToggleGridMode.d.ts +5 -5
- package/dist/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -5
- package/dist/excalidraw/actions/actionToggleStats.d.ts +5 -5
- package/dist/excalidraw/actions/actionToggleViewMode.d.ts +5 -5
- package/dist/excalidraw/actions/actionToggleZenMode.d.ts +5 -5
- package/dist/excalidraw/actions/index.d.ts +1 -1
- package/dist/excalidraw/actions/index.js +1 -1
- package/dist/excalidraw/actions/manager.js +2 -1
- package/dist/excalidraw/align.d.ts +2 -2
- package/dist/excalidraw/align.js +2 -2
- package/dist/excalidraw/animated-trail.d.ts +33 -0
- package/dist/excalidraw/animated-trail.js +96 -0
- package/dist/excalidraw/animation-frame-handler.d.ts +16 -0
- package/dist/excalidraw/animation-frame-handler.js +55 -0
- package/dist/excalidraw/appState.d.ts +1 -1
- package/dist/excalidraw/appState.js +1 -3
- package/dist/excalidraw/clipboard.js +5 -5
- package/dist/excalidraw/components/Actions.d.ts +3 -3
- package/dist/excalidraw/components/Actions.js +18 -7
- package/dist/excalidraw/components/App.d.ts +23 -16
- package/dist/excalidraw/components/App.js +387 -272
- package/dist/excalidraw/components/Button.d.ts +1 -1
- package/dist/excalidraw/components/FilledButton.d.ts +2 -2
- package/dist/excalidraw/components/FilledButton.js +27 -3
- package/dist/excalidraw/components/FollowMode/FollowMode.js +1 -1
- package/dist/excalidraw/components/ImageExportDialog.d.ts +2 -1
- package/dist/excalidraw/components/ImageExportDialog.js +17 -13
- package/dist/excalidraw/components/JSONExportDialog.js +1 -1
- package/dist/excalidraw/components/{LaserTool/LaserPointerButton.d.ts → LaserPointerButton.d.ts} +1 -1
- package/dist/excalidraw/components/{LaserTool/LaserPointerButton.js → LaserPointerButton.js} +2 -2
- package/dist/excalidraw/components/LayerUI.js +3 -3
- package/dist/excalidraw/components/MobileMenu.js +1 -1
- package/dist/excalidraw/components/ProjectName.d.ts +0 -1
- package/dist/excalidraw/components/ProjectName.js +1 -1
- package/dist/excalidraw/components/PublishLibrary.js +1 -1
- package/dist/excalidraw/components/SVGLayer.d.ts +8 -0
- package/dist/excalidraw/components/SVGLayer.js +20 -0
- package/dist/excalidraw/components/ShareableLinkDialog.js +10 -10
- package/dist/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/excalidraw/components/Stack.d.ts +2 -2
- package/dist/excalidraw/components/TTDDialog/common.js +10 -1
- package/dist/excalidraw/components/TextField.d.ts +5 -2
- package/dist/excalidraw/components/TextField.js +6 -3
- package/dist/excalidraw/components/Toast.d.ts +3 -2
- package/dist/excalidraw/components/Toast.js +2 -2
- package/dist/excalidraw/components/ToolButton.js +2 -1
- package/dist/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -2
- package/dist/excalidraw/components/canvases/InteractiveCanvas.js +6 -5
- package/dist/excalidraw/components/canvases/StaticCanvas.d.ts +4 -3
- package/dist/excalidraw/components/canvases/StaticCanvas.js +7 -5
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuContent.js +22 -2
- package/dist/excalidraw/components/hyperlink/Hyperlink.d.ts +19 -0
- package/dist/excalidraw/{element → components/hyperlink}/Hyperlink.js +40 -115
- package/dist/excalidraw/components/hyperlink/helpers.d.ts +7 -0
- package/dist/excalidraw/components/hyperlink/helpers.js +49 -0
- package/dist/excalidraw/components/icons.d.ts +2 -1
- package/dist/excalidraw/components/icons.js +2 -1
- package/dist/excalidraw/components/live-collaboration/LiveCollaborationTrigger.js +3 -2
- package/dist/excalidraw/components/main-menu/DefaultItems.js +5 -2
- package/dist/excalidraw/constants.d.ts +6 -0
- package/dist/excalidraw/constants.js +6 -0
- package/dist/excalidraw/data/blob.js +13 -14
- package/dist/excalidraw/data/filesystem.d.ts +1 -1
- package/dist/excalidraw/data/index.d.ts +2 -1
- package/dist/excalidraw/data/index.js +20 -16
- package/dist/excalidraw/data/json.d.ts +1 -1
- package/dist/excalidraw/data/json.js +5 -3
- package/dist/excalidraw/data/resave.d.ts +1 -1
- package/dist/excalidraw/data/resave.js +2 -2
- package/dist/excalidraw/data/restore.js +8 -13
- package/dist/excalidraw/data/transform.js +13 -9
- package/dist/excalidraw/distribute.d.ts +2 -2
- package/dist/excalidraw/distribute.js +2 -2
- package/dist/excalidraw/element/ElementCanvasButtons.d.ts +3 -2
- package/dist/excalidraw/element/ElementCanvasButtons.js +4 -4
- package/dist/excalidraw/element/binding.d.ts +9 -9
- package/dist/excalidraw/element/binding.js +61 -59
- package/dist/excalidraw/element/bounds.d.ts +5 -5
- package/dist/excalidraw/element/bounds.js +29 -32
- package/dist/excalidraw/element/collision.d.ts +11 -11
- package/dist/excalidraw/element/collision.js +49 -46
- package/dist/excalidraw/element/containerCache.d.ts +11 -0
- package/dist/excalidraw/element/containerCache.js +14 -0
- package/dist/excalidraw/element/dragElements.js +10 -19
- package/dist/excalidraw/element/embeddable.d.ts +12 -13
- package/dist/excalidraw/element/embeddable.js +17 -27
- package/dist/excalidraw/element/image.js +1 -2
- package/dist/excalidraw/element/index.d.ts +0 -1
- package/dist/excalidraw/element/index.js +0 -1
- package/dist/excalidraw/element/linearElementEditor.d.ts +36 -36
- package/dist/excalidraw/element/linearElementEditor.js +79 -80
- package/dist/excalidraw/element/newElement.d.ts +4 -6
- package/dist/excalidraw/element/newElement.js +11 -16
- package/dist/excalidraw/element/resizeElements.d.ts +6 -6
- package/dist/excalidraw/element/resizeElements.js +40 -46
- package/dist/excalidraw/element/resizeTest.d.ts +3 -3
- package/dist/excalidraw/element/resizeTest.js +4 -4
- package/dist/excalidraw/element/sizeHelpers.d.ts +2 -2
- package/dist/excalidraw/element/sizeHelpers.js +2 -2
- package/dist/excalidraw/element/textElement.d.ts +18 -20
- package/dist/excalidraw/element/textElement.js +80 -111
- package/dist/excalidraw/element/textWysiwyg.d.ts +1 -6
- package/dist/excalidraw/element/textWysiwyg.js +15 -37
- package/dist/excalidraw/element/transformHandles.d.ts +4 -4
- package/dist/excalidraw/element/transformHandles.js +6 -6
- package/dist/excalidraw/element/typeChecks.js +4 -1
- package/dist/excalidraw/element/types.d.ts +24 -11
- package/dist/excalidraw/frame.d.ts +26 -20
- package/dist/excalidraw/frame.js +157 -84
- package/dist/excalidraw/groups.d.ts +3 -3
- package/dist/excalidraw/groups.js +11 -3
- package/dist/excalidraw/history.d.ts +1 -1
- package/dist/excalidraw/hooks/useLibraryItemSvg.js +1 -1
- package/dist/excalidraw/index.d.ts +8 -9
- package/dist/excalidraw/index.js +15 -11
- package/dist/excalidraw/laser-trails.d.ts +19 -0
- package/dist/excalidraw/laser-trails.js +95 -0
- package/dist/excalidraw/locales/en.json +9 -5
- package/dist/excalidraw/reactUtils.d.ts +14 -0
- package/dist/excalidraw/reactUtils.js +45 -0
- package/dist/excalidraw/renderer/helpers.d.ts +13 -0
- package/dist/excalidraw/renderer/helpers.js +39 -0
- package/dist/excalidraw/renderer/interactiveScene.d.ts +20 -0
- package/dist/excalidraw/renderer/{renderScene.js → interactiveScene.js} +199 -474
- package/dist/excalidraw/renderer/renderElement.d.ts +6 -6
- package/dist/excalidraw/renderer/renderElement.js +54 -366
- package/dist/excalidraw/renderer/staticScene.d.ts +11 -0
- package/dist/excalidraw/renderer/staticScene.js +205 -0
- package/dist/excalidraw/renderer/staticSvgScene.d.ts +5 -0
- package/dist/excalidraw/renderer/staticSvgScene.js +385 -0
- package/dist/excalidraw/scene/Fonts.js +2 -1
- package/dist/excalidraw/scene/Renderer.d.ts +1 -1
- package/dist/excalidraw/scene/Renderer.js +32 -20
- package/dist/excalidraw/scene/Scene.d.ts +10 -9
- package/dist/excalidraw/scene/Scene.js +45 -21
- package/dist/excalidraw/scene/Shape.d.ts +3 -1
- package/dist/excalidraw/scene/Shape.js +7 -5
- package/dist/excalidraw/scene/ShapeCache.d.ts +2 -1
- package/dist/excalidraw/scene/ShapeCache.js +1 -0
- package/dist/excalidraw/scene/comparisons.js +2 -1
- package/dist/excalidraw/scene/export.d.ts +3 -0
- package/dist/excalidraw/scene/export.js +20 -40
- package/dist/excalidraw/scene/index.d.ts +0 -1
- package/dist/excalidraw/scene/index.js +0 -1
- package/dist/excalidraw/scene/scrollbars.d.ts +1 -1
- package/dist/excalidraw/scene/scrollbars.js +1 -1
- package/dist/excalidraw/scene/selection.d.ts +5 -5
- package/dist/excalidraw/scene/selection.js +16 -14
- package/dist/excalidraw/scene/types.d.ts +11 -5
- package/dist/excalidraw/snapping.d.ts +7 -7
- package/dist/excalidraw/snapping.js +21 -20
- package/dist/excalidraw/types.d.ts +10 -11
- package/dist/excalidraw/utility-types.d.ts +5 -0
- package/dist/excalidraw/utils.d.ts +18 -15
- package/dist/excalidraw/utils.js +37 -45
- package/dist/{dev/en-RLIAOBCI.json → prod/en-TDNWCAOT.json} +9 -5
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +42 -42
- package/dist/utils/bbox.d.ts +2 -2
- package/dist/utils/export.d.ts +3 -3
- package/dist/utils/export.js +3 -13
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/withinBounds.d.ts +1 -1
- package/dist/utils/withinBounds.js +5 -2
- package/package.json +4 -4
- package/dist/browser/dev/excalidraw-assets-dev/chunk-2W5GQUR4.js.map +0 -7
- package/dist/browser/dev/excalidraw-assets-dev/chunk-KGZXLFLR.js +0 -53497
- package/dist/browser/dev/excalidraw-assets-dev/chunk-KGZXLFLR.js.map +0 -7
- package/dist/browser/dev/excalidraw-assets-dev/image-3MFRCKYM.css +0 -5797
- package/dist/browser/dev/excalidraw-assets-dev/image-3MFRCKYM.css.map +0 -7
- package/dist/browser/prod/excalidraw-assets/chunk-4YN2HN3S.js +0 -257
- package/dist/browser/prod/excalidraw-assets/chunk-OWLL6VOG.js +0 -11
- package/dist/browser/prod/excalidraw-assets/en-ERQOR3OC.js +0 -1
- package/dist/browser/prod/excalidraw-assets/image-LTLHTTSE.js +0 -1
- package/dist/browser/prod/excalidraw-assets/image-QBL334OA.css +0 -1
- package/dist/excalidraw/components/LaserTool/LaserPathManager.d.ts +0 -28
- package/dist/excalidraw/components/LaserTool/LaserPathManager.js +0 -225
- package/dist/excalidraw/components/LaserTool/LaserTool.d.ts +0 -8
- package/dist/excalidraw/components/LaserTool/LaserTool.js +0 -15
- package/dist/excalidraw/renderer/renderScene.d.ts +0 -25
- package/dist/excalidraw/vite.config.d.mts +0 -2
- package/dist/excalidraw/vite.config.mjs +0 -13
- /package/dist/browser/dev/excalidraw-assets-dev/{en-OC6JWP3X.js.map → en-IOBA4CS2.js.map} +0 -0
- /package/dist/browser/dev/excalidraw-assets-dev/{image-5TVMINCA.js.map → image-VKDAL6BQ.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AppState, Primitive } from "../types";
|
|
2
|
+
import { AppClassProperties, AppState, Primitive } from "../types";
|
|
3
3
|
import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
4
4
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
5
5
|
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
@@ -22,7 +22,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
22
22
|
export declare const actionChangeFillStyle: {
|
|
23
23
|
name: "changeFillStyle";
|
|
24
24
|
trackEvent: false;
|
|
25
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app:
|
|
25
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
26
26
|
elements: ExcalidrawElement[];
|
|
27
27
|
appState: {
|
|
28
28
|
currentItemFillStyle: any;
|
|
@@ -36,7 +36,7 @@ export declare const actionChangeFillStyle: {
|
|
|
36
36
|
errorMessage: import("react").ReactNode;
|
|
37
37
|
activeEmbeddable: {
|
|
38
38
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
39
|
-
state: "
|
|
39
|
+
state: "hover" | "active";
|
|
40
40
|
} | null;
|
|
41
41
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
42
42
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -83,7 +83,7 @@ export declare const actionChangeFillStyle: {
|
|
|
83
83
|
scrollY: number;
|
|
84
84
|
cursorButton: "up" | "down";
|
|
85
85
|
scrolledOutside: boolean;
|
|
86
|
-
name: string;
|
|
86
|
+
name: string | null;
|
|
87
87
|
isResizing: boolean;
|
|
88
88
|
isRotating: boolean;
|
|
89
89
|
zoom: Readonly<{
|
|
@@ -96,14 +96,14 @@ export declare const actionChangeFillStyle: {
|
|
|
96
96
|
tab?: string | undefined;
|
|
97
97
|
} | null;
|
|
98
98
|
openDialog: {
|
|
99
|
-
name: "
|
|
99
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
100
100
|
} | {
|
|
101
101
|
name: "settings";
|
|
102
102
|
source: "settings" | "tool" | "generation";
|
|
103
103
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
104
104
|
} | {
|
|
105
105
|
name: "ttd";
|
|
106
|
-
tab: "
|
|
106
|
+
tab: "text-to-diagram" | "mermaid";
|
|
107
107
|
} | null;
|
|
108
108
|
defaultSidebarDockedPreference: boolean;
|
|
109
109
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -160,7 +160,7 @@ export declare const actionChangeFillStyle: {
|
|
|
160
160
|
data: import("../charts").Spreadsheet;
|
|
161
161
|
};
|
|
162
162
|
pendingImageElementId: string | null;
|
|
163
|
-
showHyperlinkPopup: false | "
|
|
163
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
164
164
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
165
165
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
166
166
|
originSnapOffset: {
|
|
@@ -194,7 +194,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
194
194
|
errorMessage: import("react").ReactNode;
|
|
195
195
|
activeEmbeddable: {
|
|
196
196
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
197
|
-
state: "
|
|
197
|
+
state: "hover" | "active";
|
|
198
198
|
} | null;
|
|
199
199
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
200
200
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -241,7 +241,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
241
241
|
scrollY: number;
|
|
242
242
|
cursorButton: "up" | "down";
|
|
243
243
|
scrolledOutside: boolean;
|
|
244
|
-
name: string;
|
|
244
|
+
name: string | null;
|
|
245
245
|
isResizing: boolean;
|
|
246
246
|
isRotating: boolean;
|
|
247
247
|
zoom: Readonly<{
|
|
@@ -254,14 +254,14 @@ export declare const actionChangeStrokeWidth: {
|
|
|
254
254
|
tab?: string | undefined;
|
|
255
255
|
} | null;
|
|
256
256
|
openDialog: {
|
|
257
|
-
name: "
|
|
257
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
258
258
|
} | {
|
|
259
259
|
name: "settings";
|
|
260
260
|
source: "settings" | "tool" | "generation";
|
|
261
261
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
262
262
|
} | {
|
|
263
263
|
name: "ttd";
|
|
264
|
-
tab: "
|
|
264
|
+
tab: "text-to-diagram" | "mermaid";
|
|
265
265
|
} | null;
|
|
266
266
|
defaultSidebarDockedPreference: boolean;
|
|
267
267
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -318,7 +318,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
318
318
|
data: import("../charts").Spreadsheet;
|
|
319
319
|
};
|
|
320
320
|
pendingImageElementId: string | null;
|
|
321
|
-
showHyperlinkPopup: false | "
|
|
321
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
322
322
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
323
323
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
324
324
|
originSnapOffset: {
|
|
@@ -352,7 +352,7 @@ export declare const actionChangeSloppiness: {
|
|
|
352
352
|
errorMessage: import("react").ReactNode;
|
|
353
353
|
activeEmbeddable: {
|
|
354
354
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
355
|
-
state: "
|
|
355
|
+
state: "hover" | "active";
|
|
356
356
|
} | null;
|
|
357
357
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
358
358
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -399,7 +399,7 @@ export declare const actionChangeSloppiness: {
|
|
|
399
399
|
scrollY: number;
|
|
400
400
|
cursorButton: "up" | "down";
|
|
401
401
|
scrolledOutside: boolean;
|
|
402
|
-
name: string;
|
|
402
|
+
name: string | null;
|
|
403
403
|
isResizing: boolean;
|
|
404
404
|
isRotating: boolean;
|
|
405
405
|
zoom: Readonly<{
|
|
@@ -412,14 +412,14 @@ export declare const actionChangeSloppiness: {
|
|
|
412
412
|
tab?: string | undefined;
|
|
413
413
|
} | null;
|
|
414
414
|
openDialog: {
|
|
415
|
-
name: "
|
|
415
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
416
416
|
} | {
|
|
417
417
|
name: "settings";
|
|
418
418
|
source: "settings" | "tool" | "generation";
|
|
419
419
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
420
420
|
} | {
|
|
421
421
|
name: "ttd";
|
|
422
|
-
tab: "
|
|
422
|
+
tab: "text-to-diagram" | "mermaid";
|
|
423
423
|
} | null;
|
|
424
424
|
defaultSidebarDockedPreference: boolean;
|
|
425
425
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -476,7 +476,7 @@ export declare const actionChangeSloppiness: {
|
|
|
476
476
|
data: import("../charts").Spreadsheet;
|
|
477
477
|
};
|
|
478
478
|
pendingImageElementId: string | null;
|
|
479
|
-
showHyperlinkPopup: false | "
|
|
479
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
480
480
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
481
481
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
482
482
|
originSnapOffset: {
|
|
@@ -510,7 +510,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
510
510
|
errorMessage: import("react").ReactNode;
|
|
511
511
|
activeEmbeddable: {
|
|
512
512
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
513
|
-
state: "
|
|
513
|
+
state: "hover" | "active";
|
|
514
514
|
} | null;
|
|
515
515
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
516
516
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -557,7 +557,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
557
557
|
scrollY: number;
|
|
558
558
|
cursorButton: "up" | "down";
|
|
559
559
|
scrolledOutside: boolean;
|
|
560
|
-
name: string;
|
|
560
|
+
name: string | null;
|
|
561
561
|
isResizing: boolean;
|
|
562
562
|
isRotating: boolean;
|
|
563
563
|
zoom: Readonly<{
|
|
@@ -570,14 +570,14 @@ export declare const actionChangeStrokeStyle: {
|
|
|
570
570
|
tab?: string | undefined;
|
|
571
571
|
} | null;
|
|
572
572
|
openDialog: {
|
|
573
|
-
name: "
|
|
573
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
574
574
|
} | {
|
|
575
575
|
name: "settings";
|
|
576
576
|
source: "settings" | "tool" | "generation";
|
|
577
577
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
578
578
|
} | {
|
|
579
579
|
name: "ttd";
|
|
580
|
-
tab: "
|
|
580
|
+
tab: "text-to-diagram" | "mermaid";
|
|
581
581
|
} | null;
|
|
582
582
|
defaultSidebarDockedPreference: boolean;
|
|
583
583
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -634,7 +634,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
634
634
|
data: import("../charts").Spreadsheet;
|
|
635
635
|
};
|
|
636
636
|
pendingImageElementId: string | null;
|
|
637
|
-
showHyperlinkPopup: false | "
|
|
637
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
638
638
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
639
639
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
640
640
|
originSnapOffset: {
|
|
@@ -668,7 +668,7 @@ export declare const actionChangeOpacity: {
|
|
|
668
668
|
errorMessage: import("react").ReactNode;
|
|
669
669
|
activeEmbeddable: {
|
|
670
670
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
671
|
-
state: "
|
|
671
|
+
state: "hover" | "active";
|
|
672
672
|
} | null;
|
|
673
673
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
674
674
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -715,7 +715,7 @@ export declare const actionChangeOpacity: {
|
|
|
715
715
|
scrollY: number;
|
|
716
716
|
cursorButton: "up" | "down";
|
|
717
717
|
scrolledOutside: boolean;
|
|
718
|
-
name: string;
|
|
718
|
+
name: string | null;
|
|
719
719
|
isResizing: boolean;
|
|
720
720
|
isRotating: boolean;
|
|
721
721
|
zoom: Readonly<{
|
|
@@ -728,14 +728,14 @@ export declare const actionChangeOpacity: {
|
|
|
728
728
|
tab?: string | undefined;
|
|
729
729
|
} | null;
|
|
730
730
|
openDialog: {
|
|
731
|
-
name: "
|
|
731
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
732
732
|
} | {
|
|
733
733
|
name: "settings";
|
|
734
734
|
source: "settings" | "tool" | "generation";
|
|
735
735
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
736
736
|
} | {
|
|
737
737
|
name: "ttd";
|
|
738
|
-
tab: "
|
|
738
|
+
tab: "text-to-diagram" | "mermaid";
|
|
739
739
|
} | null;
|
|
740
740
|
defaultSidebarDockedPreference: boolean;
|
|
741
741
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -792,7 +792,7 @@ export declare const actionChangeOpacity: {
|
|
|
792
792
|
data: import("../charts").Spreadsheet;
|
|
793
793
|
};
|
|
794
794
|
pendingImageElementId: string | null;
|
|
795
|
-
showHyperlinkPopup: false | "
|
|
795
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
796
796
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
797
797
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
798
798
|
originSnapOffset: {
|
|
@@ -812,7 +812,7 @@ export declare const actionChangeOpacity: {
|
|
|
812
812
|
export declare const actionChangeFontSize: {
|
|
813
813
|
name: "changeFontSize";
|
|
814
814
|
trackEvent: false;
|
|
815
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
815
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
816
816
|
elements: ExcalidrawElement[];
|
|
817
817
|
appState: {
|
|
818
818
|
currentItemFontSize: number;
|
|
@@ -826,7 +826,7 @@ export declare const actionChangeFontSize: {
|
|
|
826
826
|
errorMessage: import("react").ReactNode;
|
|
827
827
|
activeEmbeddable: {
|
|
828
828
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
829
|
-
state: "
|
|
829
|
+
state: "hover" | "active";
|
|
830
830
|
} | null;
|
|
831
831
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
832
832
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -873,7 +873,7 @@ export declare const actionChangeFontSize: {
|
|
|
873
873
|
scrollY: number;
|
|
874
874
|
cursorButton: "up" | "down";
|
|
875
875
|
scrolledOutside: boolean;
|
|
876
|
-
name: string;
|
|
876
|
+
name: string | null;
|
|
877
877
|
isResizing: boolean;
|
|
878
878
|
isRotating: boolean;
|
|
879
879
|
zoom: Readonly<{
|
|
@@ -886,14 +886,14 @@ export declare const actionChangeFontSize: {
|
|
|
886
886
|
tab?: string | undefined;
|
|
887
887
|
} | null;
|
|
888
888
|
openDialog: {
|
|
889
|
-
name: "
|
|
889
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
890
890
|
} | {
|
|
891
891
|
name: "settings";
|
|
892
892
|
source: "settings" | "tool" | "generation";
|
|
893
893
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
894
894
|
} | {
|
|
895
895
|
name: "ttd";
|
|
896
|
-
tab: "
|
|
896
|
+
tab: "text-to-diagram" | "mermaid";
|
|
897
897
|
} | null;
|
|
898
898
|
defaultSidebarDockedPreference: boolean;
|
|
899
899
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -950,7 +950,7 @@ export declare const actionChangeFontSize: {
|
|
|
950
950
|
data: import("../charts").Spreadsheet;
|
|
951
951
|
};
|
|
952
952
|
pendingImageElementId: string | null;
|
|
953
|
-
showHyperlinkPopup: false | "
|
|
953
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
954
954
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
955
955
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
956
956
|
originSnapOffset: {
|
|
@@ -963,14 +963,14 @@ export declare const actionChangeFontSize: {
|
|
|
963
963
|
};
|
|
964
964
|
commitToHistory: boolean;
|
|
965
965
|
};
|
|
966
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
966
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
967
967
|
} & {
|
|
968
968
|
keyTest?: undefined;
|
|
969
969
|
};
|
|
970
970
|
export declare const actionDecreaseFontSize: {
|
|
971
971
|
name: "decreaseFontSize";
|
|
972
972
|
trackEvent: false;
|
|
973
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
973
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
974
974
|
elements: ExcalidrawElement[];
|
|
975
975
|
appState: {
|
|
976
976
|
currentItemFontSize: number;
|
|
@@ -984,7 +984,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
984
984
|
errorMessage: import("react").ReactNode;
|
|
985
985
|
activeEmbeddable: {
|
|
986
986
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
987
|
-
state: "
|
|
987
|
+
state: "hover" | "active";
|
|
988
988
|
} | null;
|
|
989
989
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
990
990
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1031,7 +1031,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1031
1031
|
scrollY: number;
|
|
1032
1032
|
cursorButton: "up" | "down";
|
|
1033
1033
|
scrolledOutside: boolean;
|
|
1034
|
-
name: string;
|
|
1034
|
+
name: string | null;
|
|
1035
1035
|
isResizing: boolean;
|
|
1036
1036
|
isRotating: boolean;
|
|
1037
1037
|
zoom: Readonly<{
|
|
@@ -1044,14 +1044,14 @@ export declare const actionDecreaseFontSize: {
|
|
|
1044
1044
|
tab?: string | undefined;
|
|
1045
1045
|
} | null;
|
|
1046
1046
|
openDialog: {
|
|
1047
|
-
name: "
|
|
1047
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1048
1048
|
} | {
|
|
1049
1049
|
name: "settings";
|
|
1050
1050
|
source: "settings" | "tool" | "generation";
|
|
1051
1051
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
1052
1052
|
} | {
|
|
1053
1053
|
name: "ttd";
|
|
1054
|
-
tab: "
|
|
1054
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1055
1055
|
} | null;
|
|
1056
1056
|
defaultSidebarDockedPreference: boolean;
|
|
1057
1057
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1108,7 +1108,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1108
1108
|
data: import("../charts").Spreadsheet;
|
|
1109
1109
|
};
|
|
1110
1110
|
pendingImageElementId: string | null;
|
|
1111
|
-
showHyperlinkPopup: false | "
|
|
1111
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1112
1112
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1113
1113
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1114
1114
|
originSnapOffset: {
|
|
@@ -1128,7 +1128,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1128
1128
|
export declare const actionIncreaseFontSize: {
|
|
1129
1129
|
name: "increaseFontSize";
|
|
1130
1130
|
trackEvent: false;
|
|
1131
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
1131
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1132
1132
|
elements: ExcalidrawElement[];
|
|
1133
1133
|
appState: {
|
|
1134
1134
|
currentItemFontSize: number;
|
|
@@ -1142,7 +1142,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1142
1142
|
errorMessage: import("react").ReactNode;
|
|
1143
1143
|
activeEmbeddable: {
|
|
1144
1144
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
1145
|
-
state: "
|
|
1145
|
+
state: "hover" | "active";
|
|
1146
1146
|
} | null;
|
|
1147
1147
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1148
1148
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1189,7 +1189,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1189
1189
|
scrollY: number;
|
|
1190
1190
|
cursorButton: "up" | "down";
|
|
1191
1191
|
scrolledOutside: boolean;
|
|
1192
|
-
name: string;
|
|
1192
|
+
name: string | null;
|
|
1193
1193
|
isResizing: boolean;
|
|
1194
1194
|
isRotating: boolean;
|
|
1195
1195
|
zoom: Readonly<{
|
|
@@ -1202,14 +1202,14 @@ export declare const actionIncreaseFontSize: {
|
|
|
1202
1202
|
tab?: string | undefined;
|
|
1203
1203
|
} | null;
|
|
1204
1204
|
openDialog: {
|
|
1205
|
-
name: "
|
|
1205
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1206
1206
|
} | {
|
|
1207
1207
|
name: "settings";
|
|
1208
1208
|
source: "settings" | "tool" | "generation";
|
|
1209
1209
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
1210
1210
|
} | {
|
|
1211
1211
|
name: "ttd";
|
|
1212
|
-
tab: "
|
|
1212
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1213
1213
|
} | null;
|
|
1214
1214
|
defaultSidebarDockedPreference: boolean;
|
|
1215
1215
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1266,7 +1266,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1266
1266
|
data: import("../charts").Spreadsheet;
|
|
1267
1267
|
};
|
|
1268
1268
|
pendingImageElementId: string | null;
|
|
1269
|
-
showHyperlinkPopup: false | "
|
|
1269
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1270
1270
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1271
1271
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1272
1272
|
originSnapOffset: {
|
|
@@ -1286,7 +1286,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1286
1286
|
export declare const actionChangeFontFamily: {
|
|
1287
1287
|
name: "changeFontFamily";
|
|
1288
1288
|
trackEvent: false;
|
|
1289
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
1289
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1290
1290
|
elements: ExcalidrawElement[];
|
|
1291
1291
|
appState: {
|
|
1292
1292
|
currentItemFontFamily: any;
|
|
@@ -1300,7 +1300,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1300
1300
|
errorMessage: import("react").ReactNode;
|
|
1301
1301
|
activeEmbeddable: {
|
|
1302
1302
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
1303
|
-
state: "
|
|
1303
|
+
state: "hover" | "active";
|
|
1304
1304
|
} | null;
|
|
1305
1305
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1306
1306
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1347,7 +1347,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1347
1347
|
scrollY: number;
|
|
1348
1348
|
cursorButton: "up" | "down";
|
|
1349
1349
|
scrolledOutside: boolean;
|
|
1350
|
-
name: string;
|
|
1350
|
+
name: string | null;
|
|
1351
1351
|
isResizing: boolean;
|
|
1352
1352
|
isRotating: boolean;
|
|
1353
1353
|
zoom: Readonly<{
|
|
@@ -1360,14 +1360,14 @@ export declare const actionChangeFontFamily: {
|
|
|
1360
1360
|
tab?: string | undefined;
|
|
1361
1361
|
} | null;
|
|
1362
1362
|
openDialog: {
|
|
1363
|
-
name: "
|
|
1363
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1364
1364
|
} | {
|
|
1365
1365
|
name: "settings";
|
|
1366
1366
|
source: "settings" | "tool" | "generation";
|
|
1367
1367
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
1368
1368
|
} | {
|
|
1369
1369
|
name: "ttd";
|
|
1370
|
-
tab: "
|
|
1370
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1371
1371
|
} | null;
|
|
1372
1372
|
defaultSidebarDockedPreference: boolean;
|
|
1373
1373
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1424,7 +1424,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1424
1424
|
data: import("../charts").Spreadsheet;
|
|
1425
1425
|
};
|
|
1426
1426
|
pendingImageElementId: string | null;
|
|
1427
|
-
showHyperlinkPopup: false | "
|
|
1427
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1428
1428
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1429
1429
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1430
1430
|
originSnapOffset: {
|
|
@@ -1437,14 +1437,14 @@ export declare const actionChangeFontFamily: {
|
|
|
1437
1437
|
};
|
|
1438
1438
|
commitToHistory: true;
|
|
1439
1439
|
};
|
|
1440
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1440
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1441
1441
|
} & {
|
|
1442
1442
|
keyTest?: undefined;
|
|
1443
1443
|
};
|
|
1444
1444
|
export declare const actionChangeTextAlign: {
|
|
1445
1445
|
name: "changeTextAlign";
|
|
1446
1446
|
trackEvent: false;
|
|
1447
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
1447
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1448
1448
|
elements: ExcalidrawElement[];
|
|
1449
1449
|
appState: {
|
|
1450
1450
|
currentItemTextAlign: any;
|
|
@@ -1458,7 +1458,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1458
1458
|
errorMessage: import("react").ReactNode;
|
|
1459
1459
|
activeEmbeddable: {
|
|
1460
1460
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
1461
|
-
state: "
|
|
1461
|
+
state: "hover" | "active";
|
|
1462
1462
|
} | null;
|
|
1463
1463
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1464
1464
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1505,7 +1505,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1505
1505
|
scrollY: number;
|
|
1506
1506
|
cursorButton: "up" | "down";
|
|
1507
1507
|
scrolledOutside: boolean;
|
|
1508
|
-
name: string;
|
|
1508
|
+
name: string | null;
|
|
1509
1509
|
isResizing: boolean;
|
|
1510
1510
|
isRotating: boolean;
|
|
1511
1511
|
zoom: Readonly<{
|
|
@@ -1518,14 +1518,14 @@ export declare const actionChangeTextAlign: {
|
|
|
1518
1518
|
tab?: string | undefined;
|
|
1519
1519
|
} | null;
|
|
1520
1520
|
openDialog: {
|
|
1521
|
-
name: "
|
|
1521
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1522
1522
|
} | {
|
|
1523
1523
|
name: "settings";
|
|
1524
1524
|
source: "settings" | "tool" | "generation";
|
|
1525
1525
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
1526
1526
|
} | {
|
|
1527
1527
|
name: "ttd";
|
|
1528
|
-
tab: "
|
|
1528
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1529
1529
|
} | null;
|
|
1530
1530
|
defaultSidebarDockedPreference: boolean;
|
|
1531
1531
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1582,7 +1582,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1582
1582
|
data: import("../charts").Spreadsheet;
|
|
1583
1583
|
};
|
|
1584
1584
|
pendingImageElementId: string | null;
|
|
1585
|
-
showHyperlinkPopup: false | "
|
|
1585
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1586
1586
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1587
1587
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1588
1588
|
originSnapOffset: {
|
|
@@ -1595,7 +1595,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1595
1595
|
};
|
|
1596
1596
|
commitToHistory: true;
|
|
1597
1597
|
};
|
|
1598
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1598
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1599
1599
|
} & {
|
|
1600
1600
|
keyTest?: undefined;
|
|
1601
1601
|
};
|
|
@@ -1604,7 +1604,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1604
1604
|
trackEvent: {
|
|
1605
1605
|
category: "element";
|
|
1606
1606
|
};
|
|
1607
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
1607
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1608
1608
|
elements: ExcalidrawElement[];
|
|
1609
1609
|
appState: {
|
|
1610
1610
|
contextMenu: {
|
|
@@ -1617,7 +1617,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1617
1617
|
errorMessage: import("react").ReactNode;
|
|
1618
1618
|
activeEmbeddable: {
|
|
1619
1619
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
1620
|
-
state: "
|
|
1620
|
+
state: "hover" | "active";
|
|
1621
1621
|
} | null;
|
|
1622
1622
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1623
1623
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1665,7 +1665,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1665
1665
|
scrollY: number;
|
|
1666
1666
|
cursorButton: "up" | "down";
|
|
1667
1667
|
scrolledOutside: boolean;
|
|
1668
|
-
name: string;
|
|
1668
|
+
name: string | null;
|
|
1669
1669
|
isResizing: boolean;
|
|
1670
1670
|
isRotating: boolean;
|
|
1671
1671
|
zoom: Readonly<{
|
|
@@ -1678,14 +1678,14 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1678
1678
|
tab?: string | undefined;
|
|
1679
1679
|
} | null;
|
|
1680
1680
|
openDialog: {
|
|
1681
|
-
name: "
|
|
1681
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1682
1682
|
} | {
|
|
1683
1683
|
name: "settings";
|
|
1684
1684
|
source: "settings" | "tool" | "generation";
|
|
1685
1685
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
1686
1686
|
} | {
|
|
1687
1687
|
name: "ttd";
|
|
1688
|
-
tab: "
|
|
1688
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1689
1689
|
} | null;
|
|
1690
1690
|
defaultSidebarDockedPreference: boolean;
|
|
1691
1691
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1742,7 +1742,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1742
1742
|
data: import("../charts").Spreadsheet;
|
|
1743
1743
|
};
|
|
1744
1744
|
pendingImageElementId: string | null;
|
|
1745
|
-
showHyperlinkPopup: false | "
|
|
1745
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1746
1746
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1747
1747
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1748
1748
|
originSnapOffset: {
|
|
@@ -1755,7 +1755,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1755
1755
|
};
|
|
1756
1756
|
commitToHistory: true;
|
|
1757
1757
|
};
|
|
1758
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1758
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1759
1759
|
} & {
|
|
1760
1760
|
keyTest?: undefined;
|
|
1761
1761
|
};
|
|
@@ -1776,7 +1776,7 @@ export declare const actionChangeRoundness: {
|
|
|
1776
1776
|
errorMessage: import("react").ReactNode;
|
|
1777
1777
|
activeEmbeddable: {
|
|
1778
1778
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
1779
|
-
state: "
|
|
1779
|
+
state: "hover" | "active";
|
|
1780
1780
|
} | null;
|
|
1781
1781
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1782
1782
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1823,7 +1823,7 @@ export declare const actionChangeRoundness: {
|
|
|
1823
1823
|
scrollY: number;
|
|
1824
1824
|
cursorButton: "up" | "down";
|
|
1825
1825
|
scrolledOutside: boolean;
|
|
1826
|
-
name: string;
|
|
1826
|
+
name: string | null;
|
|
1827
1827
|
isResizing: boolean;
|
|
1828
1828
|
isRotating: boolean;
|
|
1829
1829
|
zoom: Readonly<{
|
|
@@ -1836,14 +1836,14 @@ export declare const actionChangeRoundness: {
|
|
|
1836
1836
|
tab?: string | undefined;
|
|
1837
1837
|
} | null;
|
|
1838
1838
|
openDialog: {
|
|
1839
|
-
name: "
|
|
1839
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1840
1840
|
} | {
|
|
1841
1841
|
name: "settings";
|
|
1842
1842
|
source: "settings" | "tool" | "generation";
|
|
1843
1843
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
1844
1844
|
} | {
|
|
1845
1845
|
name: "ttd";
|
|
1846
|
-
tab: "
|
|
1846
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1847
1847
|
} | null;
|
|
1848
1848
|
defaultSidebarDockedPreference: boolean;
|
|
1849
1849
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -1900,7 +1900,7 @@ export declare const actionChangeRoundness: {
|
|
|
1900
1900
|
data: import("../charts").Spreadsheet;
|
|
1901
1901
|
};
|
|
1902
1902
|
pendingImageElementId: string | null;
|
|
1903
|
-
showHyperlinkPopup: false | "
|
|
1903
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1904
1904
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1905
1905
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1906
1906
|
originSnapOffset: {
|
|
@@ -1936,7 +1936,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1936
1936
|
errorMessage: import("react").ReactNode;
|
|
1937
1937
|
activeEmbeddable: {
|
|
1938
1938
|
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
1939
|
-
state: "
|
|
1939
|
+
state: "hover" | "active";
|
|
1940
1940
|
} | null;
|
|
1941
1941
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1942
1942
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1984,7 +1984,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1984
1984
|
scrollY: number;
|
|
1985
1985
|
cursorButton: "up" | "down";
|
|
1986
1986
|
scrolledOutside: boolean;
|
|
1987
|
-
name: string;
|
|
1987
|
+
name: string | null;
|
|
1988
1988
|
isResizing: boolean;
|
|
1989
1989
|
isRotating: boolean;
|
|
1990
1990
|
zoom: Readonly<{
|
|
@@ -1997,14 +1997,14 @@ export declare const actionChangeArrowhead: {
|
|
|
1997
1997
|
tab?: string | undefined;
|
|
1998
1998
|
} | null;
|
|
1999
1999
|
openDialog: {
|
|
2000
|
-
name: "
|
|
2000
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
2001
2001
|
} | {
|
|
2002
2002
|
name: "settings";
|
|
2003
2003
|
source: "settings" | "tool" | "generation";
|
|
2004
2004
|
tab: "text-to-diagram" | "diagram-to-code";
|
|
2005
2005
|
} | {
|
|
2006
2006
|
name: "ttd";
|
|
2007
|
-
tab: "
|
|
2007
|
+
tab: "text-to-diagram" | "mermaid";
|
|
2008
2008
|
} | null;
|
|
2009
2009
|
defaultSidebarDockedPreference: boolean;
|
|
2010
2010
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -2061,7 +2061,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2061
2061
|
data: import("../charts").Spreadsheet;
|
|
2062
2062
|
};
|
|
2063
2063
|
pendingImageElementId: string | null;
|
|
2064
|
-
showHyperlinkPopup: false | "
|
|
2064
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2065
2065
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
2066
2066
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2067
2067
|
originSnapOffset: {
|