@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
|
@@ -11,7 +11,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
11
11
|
action: string;
|
|
12
12
|
predicate: (appState: Readonly<AppState>) => boolean;
|
|
13
13
|
};
|
|
14
|
-
perform(elements: readonly import("
|
|
14
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties): false | {
|
|
15
15
|
appState: {
|
|
16
16
|
openSidebar: null;
|
|
17
17
|
contextMenu: {
|
|
@@ -26,17 +26,17 @@ export declare const actionToggleSearchMenu: {
|
|
|
26
26
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
27
27
|
errorMessage: import("react").ReactNode;
|
|
28
28
|
activeEmbeddable: {
|
|
29
|
-
element: import("
|
|
29
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
30
30
|
state: "hover" | "active";
|
|
31
31
|
} | null;
|
|
32
|
-
newElement: import("
|
|
33
|
-
resizingElement: import("
|
|
34
|
-
multiElement: import("
|
|
35
|
-
selectionElement: import("
|
|
32
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
33
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
34
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
35
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
36
36
|
isBindingEnabled: boolean;
|
|
37
|
-
startBoundElement: import("
|
|
38
|
-
suggestedBindings: import("
|
|
39
|
-
frameToHighlight: import("
|
|
37
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
38
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
39
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
40
40
|
frameRendering: {
|
|
41
41
|
enabled: boolean;
|
|
42
42
|
name: boolean;
|
|
@@ -44,12 +44,13 @@ export declare const actionToggleSearchMenu: {
|
|
|
44
44
|
clip: boolean;
|
|
45
45
|
};
|
|
46
46
|
editingFrame: string | null;
|
|
47
|
-
elementsToHighlight: import("
|
|
48
|
-
editingTextElement: import("
|
|
49
|
-
editingLinearElement: import("
|
|
47
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
48
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
49
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
50
50
|
activeTool: {
|
|
51
51
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
52
52
|
locked: boolean;
|
|
53
|
+
fromSelection: boolean;
|
|
53
54
|
} & import("../types").ActiveTool;
|
|
54
55
|
penMode: boolean;
|
|
55
56
|
penDetected: boolean;
|
|
@@ -59,18 +60,18 @@ export declare const actionToggleSearchMenu: {
|
|
|
59
60
|
exportScale: number;
|
|
60
61
|
currentItemStrokeColor: string;
|
|
61
62
|
currentItemBackgroundColor: string;
|
|
62
|
-
currentItemFillStyle: import("
|
|
63
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
63
64
|
currentItemStrokeWidth: number;
|
|
64
|
-
currentItemStrokeStyle: import("
|
|
65
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
65
66
|
currentItemRoughness: number;
|
|
66
67
|
currentItemOpacity: number;
|
|
67
68
|
currentItemFontFamily: number;
|
|
68
69
|
currentItemFontSize: number;
|
|
69
70
|
currentItemTextAlign: string;
|
|
70
|
-
currentItemStartArrowhead: import("
|
|
71
|
-
currentItemEndArrowhead: import("
|
|
71
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
73
|
currentHoveredFontFamily: number | null;
|
|
73
|
-
currentItemRoundness: import("
|
|
74
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
74
75
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
75
76
|
viewBackgroundColor: string;
|
|
76
77
|
scrollX: number;
|
|
@@ -83,7 +84,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
83
84
|
zoom: Readonly<{
|
|
84
85
|
value: import("../types").NormalizedZoomValue;
|
|
85
86
|
}>;
|
|
86
|
-
openMenu: "
|
|
87
|
+
openMenu: "shape" | "canvas" | null;
|
|
87
88
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
88
89
|
openDialog: {
|
|
89
90
|
name: "imageExport" | "help" | "jsonExport";
|
|
@@ -97,7 +98,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
97
98
|
sourceElementId: string;
|
|
98
99
|
} | null;
|
|
99
100
|
defaultSidebarDockedPreference: boolean;
|
|
100
|
-
lastPointerDownWith: import("
|
|
101
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
101
102
|
selectedElementIds: Readonly<{
|
|
102
103
|
[id: string]: true;
|
|
103
104
|
}>;
|
|
@@ -115,7 +116,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
115
116
|
duration?: number | undefined;
|
|
116
117
|
} | null;
|
|
117
118
|
zenModeEnabled: boolean;
|
|
118
|
-
theme: import("
|
|
119
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
119
120
|
gridSize: number;
|
|
120
121
|
gridStep: number;
|
|
121
122
|
gridModeEnabled: boolean;
|
|
@@ -136,7 +137,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
136
137
|
[id: string]: true;
|
|
137
138
|
}> | undefined;
|
|
138
139
|
username?: string | null | undefined;
|
|
139
|
-
userState?: import("
|
|
140
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
140
141
|
color?: {
|
|
141
142
|
background: string;
|
|
142
143
|
stroke: string;
|
|
@@ -153,7 +154,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
153
154
|
open: boolean;
|
|
154
155
|
panels: number;
|
|
155
156
|
};
|
|
156
|
-
currentChartType: import("
|
|
157
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
157
158
|
pasteDialog: {
|
|
158
159
|
shown: false;
|
|
159
160
|
data: null;
|
|
@@ -162,8 +163,8 @@ export declare const actionToggleSearchMenu: {
|
|
|
162
163
|
data: import("../charts").Spreadsheet;
|
|
163
164
|
};
|
|
164
165
|
pendingImageElementId: string | null;
|
|
165
|
-
showHyperlinkPopup: false | "
|
|
166
|
-
selectedLinearElement: import("
|
|
166
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
167
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
167
168
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
168
169
|
originSnapOffset: {
|
|
169
170
|
x: number;
|
|
@@ -205,17 +206,17 @@ export declare const actionToggleSearchMenu: {
|
|
|
205
206
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
206
207
|
errorMessage: import("react").ReactNode;
|
|
207
208
|
activeEmbeddable: {
|
|
208
|
-
element: import("
|
|
209
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
209
210
|
state: "hover" | "active";
|
|
210
211
|
} | null;
|
|
211
|
-
newElement: import("
|
|
212
|
-
resizingElement: import("
|
|
213
|
-
multiElement: import("
|
|
214
|
-
selectionElement: import("
|
|
212
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
213
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
214
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
215
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
215
216
|
isBindingEnabled: boolean;
|
|
216
|
-
startBoundElement: import("
|
|
217
|
-
suggestedBindings: import("
|
|
218
|
-
frameToHighlight: import("
|
|
217
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
218
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
219
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
219
220
|
frameRendering: {
|
|
220
221
|
enabled: boolean;
|
|
221
222
|
name: boolean;
|
|
@@ -223,12 +224,13 @@ export declare const actionToggleSearchMenu: {
|
|
|
223
224
|
clip: boolean;
|
|
224
225
|
};
|
|
225
226
|
editingFrame: string | null;
|
|
226
|
-
elementsToHighlight: import("
|
|
227
|
-
editingTextElement: import("
|
|
228
|
-
editingLinearElement: import("
|
|
227
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
228
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
229
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
229
230
|
activeTool: {
|
|
230
231
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
231
232
|
locked: boolean;
|
|
233
|
+
fromSelection: boolean;
|
|
232
234
|
} & import("../types").ActiveTool;
|
|
233
235
|
penMode: boolean;
|
|
234
236
|
penDetected: boolean;
|
|
@@ -238,18 +240,18 @@ export declare const actionToggleSearchMenu: {
|
|
|
238
240
|
exportScale: number;
|
|
239
241
|
currentItemStrokeColor: string;
|
|
240
242
|
currentItemBackgroundColor: string;
|
|
241
|
-
currentItemFillStyle: import("
|
|
243
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
242
244
|
currentItemStrokeWidth: number;
|
|
243
|
-
currentItemStrokeStyle: import("
|
|
245
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
244
246
|
currentItemRoughness: number;
|
|
245
247
|
currentItemOpacity: number;
|
|
246
248
|
currentItemFontFamily: number;
|
|
247
249
|
currentItemFontSize: number;
|
|
248
250
|
currentItemTextAlign: string;
|
|
249
|
-
currentItemStartArrowhead: import("
|
|
250
|
-
currentItemEndArrowhead: import("
|
|
251
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
252
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
251
253
|
currentHoveredFontFamily: number | null;
|
|
252
|
-
currentItemRoundness: import("
|
|
254
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
253
255
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
254
256
|
viewBackgroundColor: string;
|
|
255
257
|
scrollX: number;
|
|
@@ -262,10 +264,10 @@ export declare const actionToggleSearchMenu: {
|
|
|
262
264
|
zoom: Readonly<{
|
|
263
265
|
value: import("../types").NormalizedZoomValue;
|
|
264
266
|
}>;
|
|
265
|
-
openMenu: "
|
|
267
|
+
openMenu: "shape" | "canvas" | null;
|
|
266
268
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
267
269
|
defaultSidebarDockedPreference: boolean;
|
|
268
|
-
lastPointerDownWith: import("
|
|
270
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
269
271
|
selectedElementIds: Readonly<{
|
|
270
272
|
[id: string]: true;
|
|
271
273
|
}>;
|
|
@@ -283,7 +285,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
283
285
|
duration?: number | undefined;
|
|
284
286
|
} | null;
|
|
285
287
|
zenModeEnabled: boolean;
|
|
286
|
-
theme: import("
|
|
288
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
287
289
|
gridSize: number;
|
|
288
290
|
gridStep: number;
|
|
289
291
|
gridModeEnabled: boolean;
|
|
@@ -304,7 +306,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
304
306
|
[id: string]: true;
|
|
305
307
|
}> | undefined;
|
|
306
308
|
username?: string | null | undefined;
|
|
307
|
-
userState?: import("
|
|
309
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
308
310
|
color?: {
|
|
309
311
|
background: string;
|
|
310
312
|
stroke: string;
|
|
@@ -321,7 +323,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
321
323
|
open: boolean;
|
|
322
324
|
panels: number;
|
|
323
325
|
};
|
|
324
|
-
currentChartType: import("
|
|
326
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
325
327
|
pasteDialog: {
|
|
326
328
|
shown: false;
|
|
327
329
|
data: null;
|
|
@@ -330,8 +332,8 @@ export declare const actionToggleSearchMenu: {
|
|
|
330
332
|
data: import("../charts").Spreadsheet;
|
|
331
333
|
};
|
|
332
334
|
pendingImageElementId: string | null;
|
|
333
|
-
showHyperlinkPopup: false | "
|
|
334
|
-
selectedLinearElement: import("
|
|
335
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
336
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
335
337
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
336
338
|
originSnapOffset: {
|
|
337
339
|
x: number;
|
|
@@ -356,7 +358,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
356
358
|
captureUpdate: "EVENTUALLY";
|
|
357
359
|
};
|
|
358
360
|
checked: (appState: AppState) => boolean;
|
|
359
|
-
predicate: (element: readonly import("
|
|
361
|
+
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
360
362
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
361
363
|
} & {
|
|
362
364
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -3,13 +3,12 @@ export declare const actionToggleStats: {
|
|
|
3
3
|
name: "stats";
|
|
4
4
|
label: string;
|
|
5
5
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
paletteName: string;
|
|
7
6
|
viewMode: true;
|
|
8
7
|
trackEvent: {
|
|
9
8
|
category: "menu";
|
|
10
9
|
};
|
|
11
10
|
keywords: string[];
|
|
12
|
-
perform(elements: readonly import("
|
|
11
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
13
12
|
appState: {
|
|
14
13
|
stats: {
|
|
15
14
|
open: boolean;
|
|
@@ -27,17 +26,17 @@ export declare const actionToggleStats: {
|
|
|
27
26
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
28
27
|
errorMessage: import("react").ReactNode;
|
|
29
28
|
activeEmbeddable: {
|
|
30
|
-
element: import("
|
|
29
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
31
30
|
state: "hover" | "active";
|
|
32
31
|
} | null;
|
|
33
|
-
newElement: import("
|
|
34
|
-
resizingElement: import("
|
|
35
|
-
multiElement: import("
|
|
36
|
-
selectionElement: import("
|
|
32
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
33
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
34
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
35
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
37
36
|
isBindingEnabled: boolean;
|
|
38
|
-
startBoundElement: import("
|
|
39
|
-
suggestedBindings: import("
|
|
40
|
-
frameToHighlight: import("
|
|
37
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
38
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
39
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
41
40
|
frameRendering: {
|
|
42
41
|
enabled: boolean;
|
|
43
42
|
name: boolean;
|
|
@@ -45,12 +44,13 @@ export declare const actionToggleStats: {
|
|
|
45
44
|
clip: boolean;
|
|
46
45
|
};
|
|
47
46
|
editingFrame: string | null;
|
|
48
|
-
elementsToHighlight: import("
|
|
49
|
-
editingTextElement: import("
|
|
50
|
-
editingLinearElement: import("
|
|
47
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
48
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
49
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
51
50
|
activeTool: {
|
|
52
51
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
53
52
|
locked: boolean;
|
|
53
|
+
fromSelection: boolean;
|
|
54
54
|
} & import("../types").ActiveTool;
|
|
55
55
|
penMode: boolean;
|
|
56
56
|
penDetected: boolean;
|
|
@@ -60,18 +60,18 @@ export declare const actionToggleStats: {
|
|
|
60
60
|
exportScale: number;
|
|
61
61
|
currentItemStrokeColor: string;
|
|
62
62
|
currentItemBackgroundColor: string;
|
|
63
|
-
currentItemFillStyle: import("
|
|
63
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
64
64
|
currentItemStrokeWidth: number;
|
|
65
|
-
currentItemStrokeStyle: import("
|
|
65
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
66
66
|
currentItemRoughness: number;
|
|
67
67
|
currentItemOpacity: number;
|
|
68
68
|
currentItemFontFamily: number;
|
|
69
69
|
currentItemFontSize: number;
|
|
70
70
|
currentItemTextAlign: string;
|
|
71
|
-
currentItemStartArrowhead: import("
|
|
72
|
-
currentItemEndArrowhead: import("
|
|
71
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
73
73
|
currentHoveredFontFamily: number | null;
|
|
74
|
-
currentItemRoundness: import("
|
|
74
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
75
75
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
76
76
|
viewBackgroundColor: string;
|
|
77
77
|
scrollX: number;
|
|
@@ -84,7 +84,7 @@ export declare const actionToggleStats: {
|
|
|
84
84
|
zoom: Readonly<{
|
|
85
85
|
value: import("../types").NormalizedZoomValue;
|
|
86
86
|
}>;
|
|
87
|
-
openMenu: "
|
|
87
|
+
openMenu: "shape" | "canvas" | null;
|
|
88
88
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
89
89
|
openSidebar: {
|
|
90
90
|
name: string;
|
|
@@ -102,7 +102,7 @@ export declare const actionToggleStats: {
|
|
|
102
102
|
sourceElementId: string;
|
|
103
103
|
} | null;
|
|
104
104
|
defaultSidebarDockedPreference: boolean;
|
|
105
|
-
lastPointerDownWith: import("
|
|
105
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
106
106
|
selectedElementIds: Readonly<{
|
|
107
107
|
[id: string]: true;
|
|
108
108
|
}>;
|
|
@@ -120,7 +120,7 @@ export declare const actionToggleStats: {
|
|
|
120
120
|
duration?: number | undefined;
|
|
121
121
|
} | null;
|
|
122
122
|
zenModeEnabled: boolean;
|
|
123
|
-
theme: import("
|
|
123
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
124
124
|
gridSize: number;
|
|
125
125
|
gridStep: number;
|
|
126
126
|
gridModeEnabled: boolean;
|
|
@@ -141,7 +141,7 @@ export declare const actionToggleStats: {
|
|
|
141
141
|
[id: string]: true;
|
|
142
142
|
}> | undefined;
|
|
143
143
|
username?: string | null | undefined;
|
|
144
|
-
userState?: import("
|
|
144
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
145
145
|
color?: {
|
|
146
146
|
background: string;
|
|
147
147
|
stroke: string;
|
|
@@ -154,7 +154,7 @@ export declare const actionToggleStats: {
|
|
|
154
154
|
isSpeaking?: boolean | undefined;
|
|
155
155
|
isMuted?: boolean | undefined;
|
|
156
156
|
}>>;
|
|
157
|
-
currentChartType: import("
|
|
157
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
158
158
|
pasteDialog: {
|
|
159
159
|
shown: false;
|
|
160
160
|
data: null;
|
|
@@ -163,8 +163,8 @@ export declare const actionToggleStats: {
|
|
|
163
163
|
data: import("../charts").Spreadsheet;
|
|
164
164
|
};
|
|
165
165
|
pendingImageElementId: string | null;
|
|
166
|
-
showHyperlinkPopup: false | "
|
|
167
|
-
selectedLinearElement: import("
|
|
166
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
167
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
168
168
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
169
169
|
originSnapOffset: {
|
|
170
170
|
x: number;
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
export declare const actionToggleViewMode: {
|
|
3
3
|
name: "viewMode";
|
|
4
4
|
label: string;
|
|
5
|
-
paletteName: string;
|
|
6
5
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
viewMode: true;
|
|
8
7
|
trackEvent: {
|
|
9
8
|
category: "canvas";
|
|
10
9
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
11
10
|
};
|
|
12
|
-
perform(elements: readonly import("
|
|
11
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
13
12
|
appState: {
|
|
14
13
|
viewModeEnabled: boolean;
|
|
15
14
|
contextMenu: {
|
|
@@ -24,17 +23,17 @@ export declare const actionToggleViewMode: {
|
|
|
24
23
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
25
24
|
errorMessage: import("react").ReactNode;
|
|
26
25
|
activeEmbeddable: {
|
|
27
|
-
element: import("
|
|
26
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
28
27
|
state: "hover" | "active";
|
|
29
28
|
} | null;
|
|
30
|
-
newElement: import("
|
|
31
|
-
resizingElement: import("
|
|
32
|
-
multiElement: import("
|
|
33
|
-
selectionElement: import("
|
|
29
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
30
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
32
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
34
33
|
isBindingEnabled: boolean;
|
|
35
|
-
startBoundElement: import("
|
|
36
|
-
suggestedBindings: import("
|
|
37
|
-
frameToHighlight: import("
|
|
34
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
35
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
36
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
38
37
|
frameRendering: {
|
|
39
38
|
enabled: boolean;
|
|
40
39
|
name: boolean;
|
|
@@ -42,12 +41,13 @@ export declare const actionToggleViewMode: {
|
|
|
42
41
|
clip: boolean;
|
|
43
42
|
};
|
|
44
43
|
editingFrame: string | null;
|
|
45
|
-
elementsToHighlight: import("
|
|
46
|
-
editingTextElement: import("
|
|
47
|
-
editingLinearElement: import("
|
|
44
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
46
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
48
47
|
activeTool: {
|
|
49
48
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
50
49
|
locked: boolean;
|
|
50
|
+
fromSelection: boolean;
|
|
51
51
|
} & import("../types").ActiveTool;
|
|
52
52
|
penMode: boolean;
|
|
53
53
|
penDetected: boolean;
|
|
@@ -57,18 +57,18 @@ export declare const actionToggleViewMode: {
|
|
|
57
57
|
exportScale: number;
|
|
58
58
|
currentItemStrokeColor: string;
|
|
59
59
|
currentItemBackgroundColor: string;
|
|
60
|
-
currentItemFillStyle: import("
|
|
60
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
61
61
|
currentItemStrokeWidth: number;
|
|
62
|
-
currentItemStrokeStyle: import("
|
|
62
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
63
63
|
currentItemRoughness: number;
|
|
64
64
|
currentItemOpacity: number;
|
|
65
65
|
currentItemFontFamily: number;
|
|
66
66
|
currentItemFontSize: number;
|
|
67
67
|
currentItemTextAlign: string;
|
|
68
|
-
currentItemStartArrowhead: import("
|
|
69
|
-
currentItemEndArrowhead: import("
|
|
68
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
69
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
70
70
|
currentHoveredFontFamily: number | null;
|
|
71
|
-
currentItemRoundness: import("
|
|
71
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
72
72
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
73
73
|
viewBackgroundColor: string;
|
|
74
74
|
scrollX: number;
|
|
@@ -81,7 +81,7 @@ export declare const actionToggleViewMode: {
|
|
|
81
81
|
zoom: Readonly<{
|
|
82
82
|
value: import("../types").NormalizedZoomValue;
|
|
83
83
|
}>;
|
|
84
|
-
openMenu: "
|
|
84
|
+
openMenu: "shape" | "canvas" | null;
|
|
85
85
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
86
86
|
openSidebar: {
|
|
87
87
|
name: string;
|
|
@@ -99,7 +99,7 @@ export declare const actionToggleViewMode: {
|
|
|
99
99
|
sourceElementId: string;
|
|
100
100
|
} | null;
|
|
101
101
|
defaultSidebarDockedPreference: boolean;
|
|
102
|
-
lastPointerDownWith: import("
|
|
102
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
103
103
|
selectedElementIds: Readonly<{
|
|
104
104
|
[id: string]: true;
|
|
105
105
|
}>;
|
|
@@ -117,7 +117,7 @@ export declare const actionToggleViewMode: {
|
|
|
117
117
|
duration?: number | undefined;
|
|
118
118
|
} | null;
|
|
119
119
|
zenModeEnabled: boolean;
|
|
120
|
-
theme: import("
|
|
120
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
121
121
|
gridSize: number;
|
|
122
122
|
gridStep: number;
|
|
123
123
|
gridModeEnabled: boolean;
|
|
@@ -137,7 +137,7 @@ export declare const actionToggleViewMode: {
|
|
|
137
137
|
[id: string]: true;
|
|
138
138
|
}> | undefined;
|
|
139
139
|
username?: string | null | undefined;
|
|
140
|
-
userState?: import("
|
|
140
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
141
141
|
color?: {
|
|
142
142
|
background: string;
|
|
143
143
|
stroke: string;
|
|
@@ -154,7 +154,7 @@ export declare const actionToggleViewMode: {
|
|
|
154
154
|
open: boolean;
|
|
155
155
|
panels: number;
|
|
156
156
|
};
|
|
157
|
-
currentChartType: import("
|
|
157
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
158
158
|
pasteDialog: {
|
|
159
159
|
shown: false;
|
|
160
160
|
data: null;
|
|
@@ -163,8 +163,8 @@ export declare const actionToggleViewMode: {
|
|
|
163
163
|
data: import("../charts").Spreadsheet;
|
|
164
164
|
};
|
|
165
165
|
pendingImageElementId: string | null;
|
|
166
|
-
showHyperlinkPopup: false | "
|
|
167
|
-
selectedLinearElement: import("
|
|
166
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
167
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
168
168
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
169
169
|
originSnapOffset: {
|
|
170
170
|
x: number;
|
|
@@ -189,7 +189,7 @@ export declare const actionToggleViewMode: {
|
|
|
189
189
|
captureUpdate: "EVENTUALLY";
|
|
190
190
|
};
|
|
191
191
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
192
|
-
predicate: (elements: readonly import("
|
|
192
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
193
193
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
194
194
|
} & {
|
|
195
195
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|