@myoc/excalidraw 0.18.1 → 0.18.2
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/dev/{chunk-DYSQNY2T.js → chunk-6MXLCRC3.js} +2 -1
- package/dist/dev/chunk-6MXLCRC3.js.map +7 -0
- package/dist/dev/{chunk-IVKGBVG7.js → chunk-WBHLRU4Z.js} +2 -2
- package/dist/dev/{chunk-IVKGBVG7.js.map → chunk-WBHLRU4Z.js.map} +1 -1
- package/dist/dev/{chunk-ND5KUA7P.js → chunk-WT7JKXOQ.js} +16541 -21170
- package/dist/dev/chunk-WT7JKXOQ.js.map +7 -0
- package/dist/dev/data/{image-ZD4HK457.js → image-N5NBMO74.js} +3 -3
- package/dist/dev/index.css +44 -47
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +6637 -1355
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-IW3FTNXY.js → en-FBYNI7ML.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-Y5S6JYT2.js → chunk-6NO4X5TH.js} +1 -1
- package/dist/prod/chunk-GALOWMDI.js +31 -0
- package/dist/prod/data/{image-YE6T6FOC.js → image-NMU2LHCK.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +17 -14
- package/dist/prod/locales/{en-3JJA6ONK.js → en-RF5UZHGV.js} +1 -1
- package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
- package/dist/types/{excalidraw → common/src}/colors.d.ts +1 -0
- package/dist/types/{excalidraw → common/src}/constants.d.ts +7 -6
- package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +11 -3
- package/dist/types/common/src/index.d.ts +11 -0
- package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
- package/dist/types/common/src/promise-pool.d.ts +6 -0
- package/dist/types/{excalidraw → common/src}/utils.d.ts +9 -12
- package/dist/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
- package/dist/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
- package/dist/types/{excalidraw → element/src}/align.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/binding.d.ts +5 -4
- package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +6 -1
- package/dist/types/{excalidraw/element → element/src}/collision.d.ts +2 -2
- package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
- package/dist/types/{excalidraw → element/src}/distribute.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +3 -3
- package/dist/types/element/src/duplicate.d.ts +66 -0
- package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
- package/dist/types/element/src/embeddable.d.ts +10 -0
- package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +1 -1
- package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +4 -1
- package/dist/types/{excalidraw → element/src}/frame.d.ts +6 -6
- package/dist/types/{excalidraw → element/src}/groups.d.ts +5 -5
- package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
- package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/index.d.ts +0 -10
- package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +5 -5
- package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +3 -43
- package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
- package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +1 -1
- package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +2 -2
- package/dist/types/{excalidraw → element/src}/shapes.d.ts +6 -6
- package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +3 -4
- package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +5 -5
- package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/types.d.ts +2 -2
- package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +73 -70
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +54 -52
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +456 -264
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +155 -149
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +73 -70
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +30 -29
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +53 -52
- package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +26 -35
- package/dist/types/excalidraw/actions/actionExport.d.ts +306 -297
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +41 -39
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +217 -213
- package/dist/types/excalidraw/actions/actionGroup.d.ts +51 -49
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +27 -26
- package/dist/types/excalidraw/actions/actionLink.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionMenu.d.ts +73 -70
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +48 -46
- package/dist/types/excalidraw/actions/actionProperties.d.ts +317 -302
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +28 -27
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +50 -48
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +25 -25
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +26 -26
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -26
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/index.d.ts +1 -0
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +2 -2
- package/dist/types/excalidraw/animated-trail.d.ts +7 -1
- package/dist/types/excalidraw/appState.d.ts +35 -34
- package/dist/types/excalidraw/change.d.ts +3 -3
- package/dist/types/excalidraw/charts.d.ts +1 -1
- package/dist/types/excalidraw/clipboard.d.ts +2 -2
- package/dist/types/excalidraw/components/Actions.d.ts +2 -2
- package/dist/types/excalidraw/components/App.d.ts +14 -9
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
- package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -2
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
- package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +1 -1
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/index.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/dist/types/excalidraw/components/icons.d.ts +2 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
- package/dist/types/excalidraw/components/shapes.d.ts +62 -0
- package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +1 -1
- package/dist/types/excalidraw/data/index.d.ts +1 -1
- package/dist/types/excalidraw/data/json.d.ts +1 -1
- package/dist/types/excalidraw/data/library.d.ts +2 -2
- package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
- package/dist/types/excalidraw/data/resave.d.ts +1 -1
- package/dist/types/excalidraw/data/restore.d.ts +1 -1
- package/dist/types/excalidraw/data/transform.d.ts +4 -4
- package/dist/types/excalidraw/data/types.d.ts +2 -2
- package/dist/types/excalidraw/errors.d.ts +0 -3
- package/dist/types/excalidraw/fonts/Fonts.d.ts +2 -12
- package/dist/types/excalidraw/history.d.ts +1 -1
- package/dist/types/excalidraw/i18n.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +11 -10
- package/dist/types/excalidraw/lasso/index.d.ts +15 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +1 -1
- package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +1 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +2 -2
- package/dist/types/excalidraw/scene/Scene.d.ts +5 -5
- package/dist/types/excalidraw/scene/export.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
- package/dist/types/excalidraw/scene/scrollbars.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +3 -3
- package/dist/types/excalidraw/snapping.d.ts +4 -5
- package/dist/types/excalidraw/store.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +10 -9
- package/dist/types/excalidraw/visualdebug.d.ts +1 -1
- package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +1 -1
- package/dist/types/math/{point.d.ts → src/point.d.ts} +2 -2
- package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
- package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
- package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
- package/dist/types/utils/{collision.d.ts → src/collision.d.ts} +1 -2
- package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
- package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
- package/dist/types/utils/{geometry → src}/shape.d.ts +1 -14
- package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
- package/history.ts +2 -1
- package/package.json +14 -2
- package/dist/dev/chunk-DYSQNY2T.js.map +0 -7
- package/dist/dev/chunk-ND5KUA7P.js.map +0 -7
- package/dist/prod/chunk-45TA3AZW.js +0 -34
- /package/dist/dev/data/{image-ZD4HK457.js.map → image-N5NBMO74.js.map} +0 -0
- /package/dist/dev/locales/{en-IW3FTNXY.js.map → en-FBYNI7ML.js.map} +0 -0
- /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
- /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/utility-types.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/utils.d.ts +0 -0
- /package/dist/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
- /package/dist/types/math/{curve.d.ts → src/curve.d.ts} +0 -0
- /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
- /package/dist/types/math/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
- /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
- /package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
- /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
- /package/dist/types/math/{types.d.ts → src/types.d.ts} +0 -0
- /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
- /package/dist/types/math/{vector.d.ts → src/vector.d.ts} +0 -0
|
@@ -6,7 +6,7 @@ export declare const actionCopy: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
|
|
10
10
|
captureUpdate: "EVENTUALLY";
|
|
11
11
|
appState: {
|
|
12
12
|
errorMessage: any;
|
|
@@ -21,17 +21,17 @@ export declare const actionCopy: {
|
|
|
21
21
|
hideMainMenus: boolean;
|
|
22
22
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
23
23
|
activeEmbeddable: {
|
|
24
|
-
element: import("
|
|
24
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
25
25
|
state: "hover" | "active";
|
|
26
26
|
} | null;
|
|
27
|
-
newElement: import("
|
|
28
|
-
resizingElement: import("
|
|
29
|
-
multiElement: import("
|
|
30
|
-
selectionElement: import("
|
|
27
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
28
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
30
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
31
|
isBindingEnabled: boolean;
|
|
32
|
-
startBoundElement: import("
|
|
33
|
-
suggestedBindings: import("
|
|
34
|
-
frameToHighlight: import("
|
|
32
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
34
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
35
35
|
frameRendering: {
|
|
36
36
|
enabled: boolean;
|
|
37
37
|
name: boolean;
|
|
@@ -39,12 +39,13 @@ export declare const actionCopy: {
|
|
|
39
39
|
clip: boolean;
|
|
40
40
|
};
|
|
41
41
|
editingFrame: string | null;
|
|
42
|
-
elementsToHighlight: import("
|
|
43
|
-
editingTextElement: import("
|
|
44
|
-
editingLinearElement: import("
|
|
42
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
43
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
45
45
|
activeTool: {
|
|
46
46
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
47
|
locked: boolean;
|
|
48
|
+
fromSelection: boolean;
|
|
48
49
|
} & import("../types").ActiveTool;
|
|
49
50
|
penMode: boolean;
|
|
50
51
|
penDetected: boolean;
|
|
@@ -54,18 +55,18 @@ export declare const actionCopy: {
|
|
|
54
55
|
exportScale: number;
|
|
55
56
|
currentItemStrokeColor: string;
|
|
56
57
|
currentItemBackgroundColor: string;
|
|
57
|
-
currentItemFillStyle: import("
|
|
58
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
58
59
|
currentItemStrokeWidth: number;
|
|
59
|
-
currentItemStrokeStyle: import("
|
|
60
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
60
61
|
currentItemRoughness: number;
|
|
61
62
|
currentItemOpacity: number;
|
|
62
63
|
currentItemFontFamily: number;
|
|
63
64
|
currentItemFontSize: number;
|
|
64
65
|
currentItemTextAlign: string;
|
|
65
|
-
currentItemStartArrowhead: import("
|
|
66
|
-
currentItemEndArrowhead: import("
|
|
66
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
67
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
67
68
|
currentHoveredFontFamily: number | null;
|
|
68
|
-
currentItemRoundness: import("
|
|
69
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
69
70
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
70
71
|
viewBackgroundColor: string;
|
|
71
72
|
scrollX: number;
|
|
@@ -78,7 +79,7 @@ export declare const actionCopy: {
|
|
|
78
79
|
zoom: Readonly<{
|
|
79
80
|
value: import("../types").NormalizedZoomValue;
|
|
80
81
|
}>;
|
|
81
|
-
openMenu: "
|
|
82
|
+
openMenu: "shape" | "canvas" | null;
|
|
82
83
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
83
84
|
openSidebar: {
|
|
84
85
|
name: string;
|
|
@@ -96,7 +97,7 @@ export declare const actionCopy: {
|
|
|
96
97
|
sourceElementId: string;
|
|
97
98
|
} | null;
|
|
98
99
|
defaultSidebarDockedPreference: boolean;
|
|
99
|
-
lastPointerDownWith: import("
|
|
100
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
100
101
|
selectedElementIds: Readonly<{
|
|
101
102
|
[id: string]: true;
|
|
102
103
|
}>;
|
|
@@ -114,7 +115,7 @@ export declare const actionCopy: {
|
|
|
114
115
|
duration?: number | undefined;
|
|
115
116
|
} | null;
|
|
116
117
|
zenModeEnabled: boolean;
|
|
117
|
-
theme: import("
|
|
118
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
118
119
|
gridSize: number;
|
|
119
120
|
gridStep: number;
|
|
120
121
|
gridModeEnabled: boolean;
|
|
@@ -135,7 +136,7 @@ export declare const actionCopy: {
|
|
|
135
136
|
[id: string]: true;
|
|
136
137
|
}> | undefined;
|
|
137
138
|
username?: string | null | undefined;
|
|
138
|
-
userState?: import("
|
|
139
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
139
140
|
color?: {
|
|
140
141
|
background: string;
|
|
141
142
|
stroke: string;
|
|
@@ -152,7 +153,7 @@ export declare const actionCopy: {
|
|
|
152
153
|
open: boolean;
|
|
153
154
|
panels: number;
|
|
154
155
|
};
|
|
155
|
-
currentChartType: import("
|
|
156
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
156
157
|
pasteDialog: {
|
|
157
158
|
shown: false;
|
|
158
159
|
data: null;
|
|
@@ -161,8 +162,8 @@ export declare const actionCopy: {
|
|
|
161
162
|
data: import("../charts").Spreadsheet;
|
|
162
163
|
};
|
|
163
164
|
pendingImageElementId: string | null;
|
|
164
|
-
showHyperlinkPopup: false | "
|
|
165
|
-
selectedLinearElement: import("
|
|
165
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
166
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
166
167
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
168
|
originSnapOffset: {
|
|
168
169
|
x: number;
|
|
@@ -198,7 +199,7 @@ export declare const actionPaste: {
|
|
|
198
199
|
trackEvent: {
|
|
199
200
|
category: "element";
|
|
200
201
|
};
|
|
201
|
-
perform: (elements: readonly import("
|
|
202
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
202
203
|
captureUpdate: "EVENTUALLY";
|
|
203
204
|
appState: {
|
|
204
205
|
errorMessage: string;
|
|
@@ -213,17 +214,17 @@ export declare const actionPaste: {
|
|
|
213
214
|
hideMainMenus: boolean;
|
|
214
215
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
215
216
|
activeEmbeddable: {
|
|
216
|
-
element: import("
|
|
217
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
217
218
|
state: "hover" | "active";
|
|
218
219
|
} | null;
|
|
219
|
-
newElement: import("
|
|
220
|
-
resizingElement: import("
|
|
221
|
-
multiElement: import("
|
|
222
|
-
selectionElement: import("
|
|
220
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
221
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
222
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
223
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
223
224
|
isBindingEnabled: boolean;
|
|
224
|
-
startBoundElement: import("
|
|
225
|
-
suggestedBindings: import("
|
|
226
|
-
frameToHighlight: import("
|
|
225
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
226
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
227
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
227
228
|
frameRendering: {
|
|
228
229
|
enabled: boolean;
|
|
229
230
|
name: boolean;
|
|
@@ -231,12 +232,13 @@ export declare const actionPaste: {
|
|
|
231
232
|
clip: boolean;
|
|
232
233
|
};
|
|
233
234
|
editingFrame: string | null;
|
|
234
|
-
elementsToHighlight: import("
|
|
235
|
-
editingTextElement: import("
|
|
236
|
-
editingLinearElement: import("
|
|
235
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
236
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
237
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
237
238
|
activeTool: {
|
|
238
239
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
239
240
|
locked: boolean;
|
|
241
|
+
fromSelection: boolean;
|
|
240
242
|
} & import("../types").ActiveTool;
|
|
241
243
|
penMode: boolean;
|
|
242
244
|
penDetected: boolean;
|
|
@@ -246,18 +248,18 @@ export declare const actionPaste: {
|
|
|
246
248
|
exportScale: number;
|
|
247
249
|
currentItemStrokeColor: string;
|
|
248
250
|
currentItemBackgroundColor: string;
|
|
249
|
-
currentItemFillStyle: import("
|
|
251
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
250
252
|
currentItemStrokeWidth: number;
|
|
251
|
-
currentItemStrokeStyle: import("
|
|
253
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
252
254
|
currentItemRoughness: number;
|
|
253
255
|
currentItemOpacity: number;
|
|
254
256
|
currentItemFontFamily: number;
|
|
255
257
|
currentItemFontSize: number;
|
|
256
258
|
currentItemTextAlign: string;
|
|
257
|
-
currentItemStartArrowhead: import("
|
|
258
|
-
currentItemEndArrowhead: import("
|
|
259
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
260
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
259
261
|
currentHoveredFontFamily: number | null;
|
|
260
|
-
currentItemRoundness: import("
|
|
262
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
261
263
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
262
264
|
viewBackgroundColor: string;
|
|
263
265
|
scrollX: number;
|
|
@@ -270,7 +272,7 @@ export declare const actionPaste: {
|
|
|
270
272
|
zoom: Readonly<{
|
|
271
273
|
value: import("../types").NormalizedZoomValue;
|
|
272
274
|
}>;
|
|
273
|
-
openMenu: "
|
|
275
|
+
openMenu: "shape" | "canvas" | null;
|
|
274
276
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
275
277
|
openSidebar: {
|
|
276
278
|
name: string;
|
|
@@ -288,7 +290,7 @@ export declare const actionPaste: {
|
|
|
288
290
|
sourceElementId: string;
|
|
289
291
|
} | null;
|
|
290
292
|
defaultSidebarDockedPreference: boolean;
|
|
291
|
-
lastPointerDownWith: import("
|
|
293
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
292
294
|
selectedElementIds: Readonly<{
|
|
293
295
|
[id: string]: true;
|
|
294
296
|
}>;
|
|
@@ -306,7 +308,7 @@ export declare const actionPaste: {
|
|
|
306
308
|
duration?: number | undefined;
|
|
307
309
|
} | null;
|
|
308
310
|
zenModeEnabled: boolean;
|
|
309
|
-
theme: import("
|
|
311
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
310
312
|
gridSize: number;
|
|
311
313
|
gridStep: number;
|
|
312
314
|
gridModeEnabled: boolean;
|
|
@@ -327,7 +329,7 @@ export declare const actionPaste: {
|
|
|
327
329
|
[id: string]: true;
|
|
328
330
|
}> | undefined;
|
|
329
331
|
username?: string | null | undefined;
|
|
330
|
-
userState?: import("
|
|
332
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
331
333
|
color?: {
|
|
332
334
|
background: string;
|
|
333
335
|
stroke: string;
|
|
@@ -344,7 +346,7 @@ export declare const actionPaste: {
|
|
|
344
346
|
open: boolean;
|
|
345
347
|
panels: number;
|
|
346
348
|
};
|
|
347
|
-
currentChartType: import("
|
|
349
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
348
350
|
pasteDialog: {
|
|
349
351
|
shown: false;
|
|
350
352
|
data: null;
|
|
@@ -353,8 +355,8 @@ export declare const actionPaste: {
|
|
|
353
355
|
data: import("../charts").Spreadsheet;
|
|
354
356
|
};
|
|
355
357
|
pendingImageElementId: string | null;
|
|
356
|
-
showHyperlinkPopup: false | "
|
|
357
|
-
selectedLinearElement: import("
|
|
358
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
359
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
358
360
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
359
361
|
originSnapOffset: {
|
|
360
362
|
x: number;
|
|
@@ -391,8 +393,8 @@ export declare const actionCut: {
|
|
|
391
393
|
trackEvent: {
|
|
392
394
|
category: "element";
|
|
393
395
|
};
|
|
394
|
-
perform: (elements: readonly import("
|
|
395
|
-
elements: import("
|
|
396
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
397
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
396
398
|
appState: {
|
|
397
399
|
editingLinearElement: null;
|
|
398
400
|
contextMenu: {
|
|
@@ -407,17 +409,17 @@ export declare const actionCut: {
|
|
|
407
409
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
408
410
|
errorMessage: import("react").ReactNode;
|
|
409
411
|
activeEmbeddable: {
|
|
410
|
-
element: import("
|
|
412
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
411
413
|
state: "hover" | "active";
|
|
412
414
|
} | null;
|
|
413
|
-
newElement: import("
|
|
414
|
-
resizingElement: import("
|
|
415
|
-
multiElement: import("
|
|
416
|
-
selectionElement: import("
|
|
415
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
416
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
417
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
418
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
417
419
|
isBindingEnabled: boolean;
|
|
418
|
-
startBoundElement: import("
|
|
419
|
-
suggestedBindings: import("
|
|
420
|
-
frameToHighlight: import("
|
|
420
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
421
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
422
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
421
423
|
frameRendering: {
|
|
422
424
|
enabled: boolean;
|
|
423
425
|
name: boolean;
|
|
@@ -425,11 +427,12 @@ export declare const actionCut: {
|
|
|
425
427
|
clip: boolean;
|
|
426
428
|
};
|
|
427
429
|
editingFrame: string | null;
|
|
428
|
-
elementsToHighlight: import("
|
|
429
|
-
editingTextElement: import("
|
|
430
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
431
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
430
432
|
activeTool: {
|
|
431
433
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
432
434
|
locked: boolean;
|
|
435
|
+
fromSelection: boolean;
|
|
433
436
|
} & import("../types").ActiveTool;
|
|
434
437
|
penMode: boolean;
|
|
435
438
|
penDetected: boolean;
|
|
@@ -439,18 +442,18 @@ export declare const actionCut: {
|
|
|
439
442
|
exportScale: number;
|
|
440
443
|
currentItemStrokeColor: string;
|
|
441
444
|
currentItemBackgroundColor: string;
|
|
442
|
-
currentItemFillStyle: import("
|
|
445
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
443
446
|
currentItemStrokeWidth: number;
|
|
444
|
-
currentItemStrokeStyle: import("
|
|
447
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
445
448
|
currentItemRoughness: number;
|
|
446
449
|
currentItemOpacity: number;
|
|
447
450
|
currentItemFontFamily: number;
|
|
448
451
|
currentItemFontSize: number;
|
|
449
452
|
currentItemTextAlign: string;
|
|
450
|
-
currentItemStartArrowhead: import("
|
|
451
|
-
currentItemEndArrowhead: import("
|
|
453
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
454
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
452
455
|
currentHoveredFontFamily: number | null;
|
|
453
|
-
currentItemRoundness: import("
|
|
456
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
454
457
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
455
458
|
viewBackgroundColor: string;
|
|
456
459
|
scrollX: number;
|
|
@@ -463,7 +466,7 @@ export declare const actionCut: {
|
|
|
463
466
|
zoom: Readonly<{
|
|
464
467
|
value: import("../types").NormalizedZoomValue;
|
|
465
468
|
}>;
|
|
466
|
-
openMenu: "
|
|
469
|
+
openMenu: "shape" | "canvas" | null;
|
|
467
470
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
468
471
|
openSidebar: {
|
|
469
472
|
name: string;
|
|
@@ -481,7 +484,7 @@ export declare const actionCut: {
|
|
|
481
484
|
sourceElementId: string;
|
|
482
485
|
} | null;
|
|
483
486
|
defaultSidebarDockedPreference: boolean;
|
|
484
|
-
lastPointerDownWith: import("
|
|
487
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
485
488
|
selectedElementIds: Readonly<{
|
|
486
489
|
[id: string]: true;
|
|
487
490
|
}>;
|
|
@@ -499,7 +502,7 @@ export declare const actionCut: {
|
|
|
499
502
|
duration?: number | undefined;
|
|
500
503
|
} | null;
|
|
501
504
|
zenModeEnabled: boolean;
|
|
502
|
-
theme: import("
|
|
505
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
503
506
|
gridSize: number;
|
|
504
507
|
gridStep: number;
|
|
505
508
|
gridModeEnabled: boolean;
|
|
@@ -520,7 +523,7 @@ export declare const actionCut: {
|
|
|
520
523
|
[id: string]: true;
|
|
521
524
|
}> | undefined;
|
|
522
525
|
username?: string | null | undefined;
|
|
523
|
-
userState?: import("
|
|
526
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
524
527
|
color?: {
|
|
525
528
|
background: string;
|
|
526
529
|
stroke: string;
|
|
@@ -537,7 +540,7 @@ export declare const actionCut: {
|
|
|
537
540
|
open: boolean;
|
|
538
541
|
panels: number;
|
|
539
542
|
};
|
|
540
|
-
currentChartType: import("
|
|
543
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
541
544
|
pasteDialog: {
|
|
542
545
|
shown: false;
|
|
543
546
|
data: null;
|
|
@@ -546,8 +549,8 @@ export declare const actionCut: {
|
|
|
546
549
|
data: import("../charts").Spreadsheet;
|
|
547
550
|
};
|
|
548
551
|
pendingImageElementId: string | null;
|
|
549
|
-
showHyperlinkPopup: false | "
|
|
550
|
-
selectedLinearElement: import("
|
|
552
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
553
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
551
554
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
552
555
|
originSnapOffset: {
|
|
553
556
|
x: number;
|
|
@@ -571,12 +574,12 @@ export declare const actionCut: {
|
|
|
571
574
|
};
|
|
572
575
|
captureUpdate: "IMMEDIATELY";
|
|
573
576
|
} | {
|
|
574
|
-
elements: readonly import("
|
|
577
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
575
578
|
appState: {
|
|
576
579
|
editingLinearElement: {
|
|
577
580
|
selectedPointsIndices: number[];
|
|
578
|
-
startBindingElement: import("
|
|
579
|
-
endBindingElement: import("
|
|
581
|
+
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
582
|
+
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
580
583
|
elementId: string & {
|
|
581
584
|
_brand: "excalidrawLinearElementId";
|
|
582
585
|
};
|
|
@@ -616,17 +619,17 @@ export declare const actionCut: {
|
|
|
616
619
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
617
620
|
errorMessage: import("react").ReactNode;
|
|
618
621
|
activeEmbeddable: {
|
|
619
|
-
element: import("
|
|
622
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
620
623
|
state: "hover" | "active";
|
|
621
624
|
} | null;
|
|
622
|
-
newElement: import("
|
|
623
|
-
resizingElement: import("
|
|
624
|
-
multiElement: import("
|
|
625
|
-
selectionElement: import("
|
|
625
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
626
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
627
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
628
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
626
629
|
isBindingEnabled: boolean;
|
|
627
|
-
startBoundElement: import("
|
|
628
|
-
suggestedBindings: import("
|
|
629
|
-
frameToHighlight: import("
|
|
630
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
631
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
632
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
630
633
|
frameRendering: {
|
|
631
634
|
enabled: boolean;
|
|
632
635
|
name: boolean;
|
|
@@ -634,11 +637,12 @@ export declare const actionCut: {
|
|
|
634
637
|
clip: boolean;
|
|
635
638
|
};
|
|
636
639
|
editingFrame: string | null;
|
|
637
|
-
elementsToHighlight: import("
|
|
638
|
-
editingTextElement: import("
|
|
640
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
641
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
639
642
|
activeTool: {
|
|
640
643
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
641
644
|
locked: boolean;
|
|
645
|
+
fromSelection: boolean;
|
|
642
646
|
} & import("../types").ActiveTool;
|
|
643
647
|
penMode: boolean;
|
|
644
648
|
penDetected: boolean;
|
|
@@ -648,18 +652,18 @@ export declare const actionCut: {
|
|
|
648
652
|
exportScale: number;
|
|
649
653
|
currentItemStrokeColor: string;
|
|
650
654
|
currentItemBackgroundColor: string;
|
|
651
|
-
currentItemFillStyle: import("
|
|
655
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
652
656
|
currentItemStrokeWidth: number;
|
|
653
|
-
currentItemStrokeStyle: import("
|
|
657
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
654
658
|
currentItemRoughness: number;
|
|
655
659
|
currentItemOpacity: number;
|
|
656
660
|
currentItemFontFamily: number;
|
|
657
661
|
currentItemFontSize: number;
|
|
658
662
|
currentItemTextAlign: string;
|
|
659
|
-
currentItemStartArrowhead: import("
|
|
660
|
-
currentItemEndArrowhead: import("
|
|
663
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
664
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
661
665
|
currentHoveredFontFamily: number | null;
|
|
662
|
-
currentItemRoundness: import("
|
|
666
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
663
667
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
664
668
|
viewBackgroundColor: string;
|
|
665
669
|
scrollX: number;
|
|
@@ -672,7 +676,7 @@ export declare const actionCut: {
|
|
|
672
676
|
zoom: Readonly<{
|
|
673
677
|
value: import("../types").NormalizedZoomValue;
|
|
674
678
|
}>;
|
|
675
|
-
openMenu: "
|
|
679
|
+
openMenu: "shape" | "canvas" | null;
|
|
676
680
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
677
681
|
openSidebar: {
|
|
678
682
|
name: string;
|
|
@@ -690,7 +694,7 @@ export declare const actionCut: {
|
|
|
690
694
|
sourceElementId: string;
|
|
691
695
|
} | null;
|
|
692
696
|
defaultSidebarDockedPreference: boolean;
|
|
693
|
-
lastPointerDownWith: import("
|
|
697
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
694
698
|
selectedElementIds: Readonly<{
|
|
695
699
|
[id: string]: true;
|
|
696
700
|
}>;
|
|
@@ -708,7 +712,7 @@ export declare const actionCut: {
|
|
|
708
712
|
duration?: number | undefined;
|
|
709
713
|
} | null;
|
|
710
714
|
zenModeEnabled: boolean;
|
|
711
|
-
theme: import("
|
|
715
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
712
716
|
gridSize: number;
|
|
713
717
|
gridStep: number;
|
|
714
718
|
gridModeEnabled: boolean;
|
|
@@ -729,7 +733,7 @@ export declare const actionCut: {
|
|
|
729
733
|
[id: string]: true;
|
|
730
734
|
}> | undefined;
|
|
731
735
|
username?: string | null | undefined;
|
|
732
|
-
userState?: import("
|
|
736
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
733
737
|
color?: {
|
|
734
738
|
background: string;
|
|
735
739
|
stroke: string;
|
|
@@ -746,7 +750,7 @@ export declare const actionCut: {
|
|
|
746
750
|
open: boolean;
|
|
747
751
|
panels: number;
|
|
748
752
|
};
|
|
749
|
-
currentChartType: import("
|
|
753
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
750
754
|
pasteDialog: {
|
|
751
755
|
shown: false;
|
|
752
756
|
data: null;
|
|
@@ -755,8 +759,8 @@ export declare const actionCut: {
|
|
|
755
759
|
data: import("../charts").Spreadsheet;
|
|
756
760
|
};
|
|
757
761
|
pendingImageElementId: string | null;
|
|
758
|
-
showHyperlinkPopup: false | "
|
|
759
|
-
selectedLinearElement: import("
|
|
762
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
763
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
760
764
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
761
765
|
originSnapOffset: {
|
|
762
766
|
x: number;
|
|
@@ -780,21 +784,23 @@ export declare const actionCut: {
|
|
|
780
784
|
};
|
|
781
785
|
captureUpdate: "IMMEDIATELY";
|
|
782
786
|
} | {
|
|
783
|
-
elements: import("
|
|
787
|
+
elements: import("@excalidraw/element/types").ExcalidrawElement[];
|
|
784
788
|
appState: {
|
|
785
789
|
activeTool: {
|
|
786
790
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
787
791
|
locked: boolean;
|
|
792
|
+
fromSelection: boolean;
|
|
788
793
|
} & import("../types").ActiveTool;
|
|
789
794
|
multiElement: null;
|
|
790
795
|
activeEmbeddable: null;
|
|
796
|
+
selectedLinearElement: null;
|
|
797
|
+
editingGroupId: string | null;
|
|
791
798
|
selectedElementIds: Readonly<{
|
|
792
799
|
[id: string]: true;
|
|
793
800
|
}>;
|
|
794
801
|
selectedGroupIds: {
|
|
795
802
|
[groupId: string]: boolean;
|
|
796
803
|
};
|
|
797
|
-
editingGroupId: string | null;
|
|
798
804
|
contextMenu: {
|
|
799
805
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
800
806
|
top: number;
|
|
@@ -806,13 +812,13 @@ export declare const actionCut: {
|
|
|
806
812
|
hideMainMenus: boolean;
|
|
807
813
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
808
814
|
errorMessage: import("react").ReactNode;
|
|
809
|
-
newElement: import("
|
|
810
|
-
resizingElement: import("
|
|
811
|
-
selectionElement: import("
|
|
815
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
816
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
817
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
812
818
|
isBindingEnabled: boolean;
|
|
813
|
-
startBoundElement: import("
|
|
814
|
-
suggestedBindings: import("
|
|
815
|
-
frameToHighlight: import("
|
|
819
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
820
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
821
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
816
822
|
frameRendering: {
|
|
817
823
|
enabled: boolean;
|
|
818
824
|
name: boolean;
|
|
@@ -820,9 +826,9 @@ export declare const actionCut: {
|
|
|
820
826
|
clip: boolean;
|
|
821
827
|
};
|
|
822
828
|
editingFrame: string | null;
|
|
823
|
-
elementsToHighlight: import("
|
|
824
|
-
editingTextElement: import("
|
|
825
|
-
editingLinearElement: import("
|
|
829
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
830
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
831
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
826
832
|
penMode: boolean;
|
|
827
833
|
penDetected: boolean;
|
|
828
834
|
exportBackground: boolean;
|
|
@@ -831,18 +837,18 @@ export declare const actionCut: {
|
|
|
831
837
|
exportScale: number;
|
|
832
838
|
currentItemStrokeColor: string;
|
|
833
839
|
currentItemBackgroundColor: string;
|
|
834
|
-
currentItemFillStyle: import("
|
|
840
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
835
841
|
currentItemStrokeWidth: number;
|
|
836
|
-
currentItemStrokeStyle: import("
|
|
842
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
837
843
|
currentItemRoughness: number;
|
|
838
844
|
currentItemOpacity: number;
|
|
839
845
|
currentItemFontFamily: number;
|
|
840
846
|
currentItemFontSize: number;
|
|
841
847
|
currentItemTextAlign: string;
|
|
842
|
-
currentItemStartArrowhead: import("
|
|
843
|
-
currentItemEndArrowhead: import("
|
|
848
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
849
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
844
850
|
currentHoveredFontFamily: number | null;
|
|
845
|
-
currentItemRoundness: import("
|
|
851
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
846
852
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
847
853
|
viewBackgroundColor: string;
|
|
848
854
|
scrollX: number;
|
|
@@ -855,7 +861,7 @@ export declare const actionCut: {
|
|
|
855
861
|
zoom: Readonly<{
|
|
856
862
|
value: import("../types").NormalizedZoomValue;
|
|
857
863
|
}>;
|
|
858
|
-
openMenu: "
|
|
864
|
+
openMenu: "shape" | "canvas" | null;
|
|
859
865
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
860
866
|
openSidebar: {
|
|
861
867
|
name: string;
|
|
@@ -873,7 +879,7 @@ export declare const actionCut: {
|
|
|
873
879
|
sourceElementId: string;
|
|
874
880
|
} | null;
|
|
875
881
|
defaultSidebarDockedPreference: boolean;
|
|
876
|
-
lastPointerDownWith: import("
|
|
882
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
877
883
|
hoveredElementIds: Readonly<{
|
|
878
884
|
[id: string]: true;
|
|
879
885
|
}>;
|
|
@@ -888,7 +894,7 @@ export declare const actionCut: {
|
|
|
888
894
|
duration?: number | undefined;
|
|
889
895
|
} | null;
|
|
890
896
|
zenModeEnabled: boolean;
|
|
891
|
-
theme: import("
|
|
897
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
892
898
|
gridSize: number;
|
|
893
899
|
gridStep: number;
|
|
894
900
|
gridModeEnabled: boolean;
|
|
@@ -905,7 +911,7 @@ export declare const actionCut: {
|
|
|
905
911
|
[id: string]: true;
|
|
906
912
|
}> | undefined;
|
|
907
913
|
username?: string | null | undefined;
|
|
908
|
-
userState?: import("
|
|
914
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
909
915
|
color?: {
|
|
910
916
|
background: string;
|
|
911
917
|
stroke: string;
|
|
@@ -922,7 +928,7 @@ export declare const actionCut: {
|
|
|
922
928
|
open: boolean;
|
|
923
929
|
panels: number;
|
|
924
930
|
};
|
|
925
|
-
currentChartType: import("
|
|
931
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
926
932
|
pasteDialog: {
|
|
927
933
|
shown: false;
|
|
928
934
|
data: null;
|
|
@@ -931,8 +937,7 @@ export declare const actionCut: {
|
|
|
931
937
|
data: import("../charts").Spreadsheet;
|
|
932
938
|
};
|
|
933
939
|
pendingImageElementId: string | null;
|
|
934
|
-
showHyperlinkPopup: false | "
|
|
935
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
940
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
936
941
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
937
942
|
originSnapOffset: {
|
|
938
943
|
x: number;
|
|
@@ -967,7 +972,7 @@ export declare const actionCopyAsSvg: {
|
|
|
967
972
|
trackEvent: {
|
|
968
973
|
category: "element";
|
|
969
974
|
};
|
|
970
|
-
perform: (elements: readonly import("
|
|
975
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
971
976
|
captureUpdate: "EVENTUALLY";
|
|
972
977
|
appState?: undefined;
|
|
973
978
|
} | {
|
|
@@ -985,7 +990,7 @@ export declare const actionCopyAsSvg: {
|
|
|
985
990
|
};
|
|
986
991
|
captureUpdate: "EVENTUALLY";
|
|
987
992
|
}>;
|
|
988
|
-
predicate: (elements: readonly import("
|
|
993
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
989
994
|
keywords: string[];
|
|
990
995
|
} & {
|
|
991
996
|
keyTest?: undefined;
|
|
@@ -997,7 +1002,7 @@ export declare const actionCopyAsPng: {
|
|
|
997
1002
|
trackEvent: {
|
|
998
1003
|
category: "element";
|
|
999
1004
|
};
|
|
1000
|
-
perform: (elements: readonly import("
|
|
1005
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1001
1006
|
captureUpdate: "EVENTUALLY";
|
|
1002
1007
|
appState?: undefined;
|
|
1003
1008
|
} | {
|
|
@@ -1014,17 +1019,17 @@ export declare const actionCopyAsPng: {
|
|
|
1014
1019
|
hideMainMenus: boolean;
|
|
1015
1020
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
1016
1021
|
activeEmbeddable: {
|
|
1017
|
-
element: import("
|
|
1022
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1018
1023
|
state: "hover" | "active";
|
|
1019
1024
|
} | null;
|
|
1020
|
-
newElement: import("
|
|
1021
|
-
resizingElement: import("
|
|
1022
|
-
multiElement: import("
|
|
1023
|
-
selectionElement: import("
|
|
1025
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1026
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1027
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1028
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1024
1029
|
isBindingEnabled: boolean;
|
|
1025
|
-
startBoundElement: import("
|
|
1026
|
-
suggestedBindings: import("
|
|
1027
|
-
frameToHighlight: import("
|
|
1030
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1031
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1032
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1028
1033
|
frameRendering: {
|
|
1029
1034
|
enabled: boolean;
|
|
1030
1035
|
name: boolean;
|
|
@@ -1032,12 +1037,13 @@ export declare const actionCopyAsPng: {
|
|
|
1032
1037
|
clip: boolean;
|
|
1033
1038
|
};
|
|
1034
1039
|
editingFrame: string | null;
|
|
1035
|
-
elementsToHighlight: import("
|
|
1036
|
-
editingTextElement: import("
|
|
1037
|
-
editingLinearElement: import("
|
|
1040
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1041
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1042
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1038
1043
|
activeTool: {
|
|
1039
1044
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1040
1045
|
locked: boolean;
|
|
1046
|
+
fromSelection: boolean;
|
|
1041
1047
|
} & import("../types").ActiveTool;
|
|
1042
1048
|
penMode: boolean;
|
|
1043
1049
|
penDetected: boolean;
|
|
@@ -1047,18 +1053,18 @@ export declare const actionCopyAsPng: {
|
|
|
1047
1053
|
exportScale: number;
|
|
1048
1054
|
currentItemStrokeColor: string;
|
|
1049
1055
|
currentItemBackgroundColor: string;
|
|
1050
|
-
currentItemFillStyle: import("
|
|
1056
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1051
1057
|
currentItemStrokeWidth: number;
|
|
1052
|
-
currentItemStrokeStyle: import("
|
|
1058
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1053
1059
|
currentItemRoughness: number;
|
|
1054
1060
|
currentItemOpacity: number;
|
|
1055
1061
|
currentItemFontFamily: number;
|
|
1056
1062
|
currentItemFontSize: number;
|
|
1057
1063
|
currentItemTextAlign: string;
|
|
1058
|
-
currentItemStartArrowhead: import("
|
|
1059
|
-
currentItemEndArrowhead: import("
|
|
1064
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1065
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1060
1066
|
currentHoveredFontFamily: number | null;
|
|
1061
|
-
currentItemRoundness: import("
|
|
1067
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1062
1068
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1063
1069
|
viewBackgroundColor: string;
|
|
1064
1070
|
scrollX: number;
|
|
@@ -1071,7 +1077,7 @@ export declare const actionCopyAsPng: {
|
|
|
1071
1077
|
zoom: Readonly<{
|
|
1072
1078
|
value: import("../types").NormalizedZoomValue;
|
|
1073
1079
|
}>;
|
|
1074
|
-
openMenu: "
|
|
1080
|
+
openMenu: "shape" | "canvas" | null;
|
|
1075
1081
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1076
1082
|
openSidebar: {
|
|
1077
1083
|
name: string;
|
|
@@ -1089,7 +1095,7 @@ export declare const actionCopyAsPng: {
|
|
|
1089
1095
|
sourceElementId: string;
|
|
1090
1096
|
} | null;
|
|
1091
1097
|
defaultSidebarDockedPreference: boolean;
|
|
1092
|
-
lastPointerDownWith: import("
|
|
1098
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1093
1099
|
selectedElementIds: Readonly<{
|
|
1094
1100
|
[id: string]: true;
|
|
1095
1101
|
}>;
|
|
@@ -1107,7 +1113,7 @@ export declare const actionCopyAsPng: {
|
|
|
1107
1113
|
duration?: number | undefined;
|
|
1108
1114
|
} | null;
|
|
1109
1115
|
zenModeEnabled: boolean;
|
|
1110
|
-
theme: import("
|
|
1116
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1111
1117
|
gridSize: number;
|
|
1112
1118
|
gridStep: number;
|
|
1113
1119
|
gridModeEnabled: boolean;
|
|
@@ -1128,7 +1134,7 @@ export declare const actionCopyAsPng: {
|
|
|
1128
1134
|
[id: string]: true;
|
|
1129
1135
|
}> | undefined;
|
|
1130
1136
|
username?: string | null | undefined;
|
|
1131
|
-
userState?: import("
|
|
1137
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1132
1138
|
color?: {
|
|
1133
1139
|
background: string;
|
|
1134
1140
|
stroke: string;
|
|
@@ -1145,7 +1151,7 @@ export declare const actionCopyAsPng: {
|
|
|
1145
1151
|
open: boolean;
|
|
1146
1152
|
panels: number;
|
|
1147
1153
|
};
|
|
1148
|
-
currentChartType: import("
|
|
1154
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1149
1155
|
pasteDialog: {
|
|
1150
1156
|
shown: false;
|
|
1151
1157
|
data: null;
|
|
@@ -1154,8 +1160,8 @@ export declare const actionCopyAsPng: {
|
|
|
1154
1160
|
data: import("../charts").Spreadsheet;
|
|
1155
1161
|
};
|
|
1156
1162
|
pendingImageElementId: string | null;
|
|
1157
|
-
showHyperlinkPopup: false | "
|
|
1158
|
-
selectedLinearElement: import("
|
|
1163
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1164
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1159
1165
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1160
1166
|
originSnapOffset: {
|
|
1161
1167
|
x: number;
|
|
@@ -1179,7 +1185,7 @@ export declare const actionCopyAsPng: {
|
|
|
1179
1185
|
};
|
|
1180
1186
|
captureUpdate: "EVENTUALLY";
|
|
1181
1187
|
}>;
|
|
1182
|
-
predicate: (elements: readonly import("
|
|
1188
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
1183
1189
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1184
1190
|
keywords: string[];
|
|
1185
1191
|
} & {
|
|
@@ -1191,10 +1197,10 @@ export declare const copyText: {
|
|
|
1191
1197
|
trackEvent: {
|
|
1192
1198
|
category: "element";
|
|
1193
1199
|
};
|
|
1194
|
-
perform: (elements: readonly import("
|
|
1200
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1195
1201
|
captureUpdate: "EVENTUALLY";
|
|
1196
1202
|
};
|
|
1197
|
-
predicate: (elements: readonly import("
|
|
1203
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1198
1204
|
keywords: string[];
|
|
1199
1205
|
} & {
|
|
1200
1206
|
keyTest?: undefined;
|