@excalidraw/common 0.18.0-d255747 → 0.18.0-dabd83c
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/index.js +237 -104
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/colors.d.ts +23 -1
- package/dist/types/common/src/constants.d.ts +68 -7
- package/dist/types/common/src/keys.d.ts +6 -0
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/random.d.ts +7 -0
- package/dist/types/common/src/utils.d.ts +13 -44
- package/dist/types/element/src/Scene.d.ts +2 -2
- package/dist/types/element/src/align.d.ts +5 -2
- package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
- package/dist/types/element/src/arrows/focus.d.ts +5 -2
- package/dist/types/element/src/binding.d.ts +90 -13
- package/dist/types/element/src/bounds.d.ts +28 -7
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +21 -5
- package/dist/types/element/src/comparisons.d.ts +8 -5
- package/dist/types/element/src/convertToShape.d.ts +23 -0
- package/dist/types/element/src/cropElement.d.ts +36 -4
- package/dist/types/element/src/delta.d.ts +30 -2
- package/dist/types/element/src/distribute.d.ts +5 -2
- package/dist/types/element/src/dragElements.d.ts +34 -2
- package/dist/types/element/src/duplicate.d.ts +63 -3
- package/dist/types/element/src/elbowArrow.d.ts +5 -0
- package/dist/types/element/src/embeddable.d.ts +3 -2
- package/dist/types/element/src/flowchart.d.ts +9 -11
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +25 -7
- package/dist/types/element/src/groups.d.ts +10 -15
- package/dist/types/element/src/image.d.ts +5 -2
- package/dist/types/element/src/index.d.ts +7 -1
- package/dist/types/element/src/linearElementEditor.d.ts +31 -11
- package/dist/types/element/src/listMarker.d.ts +39 -0
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +55 -3
- package/dist/types/element/src/renderElement.d.ts +31 -7
- package/dist/types/element/src/renderEnvironment.d.ts +66 -0
- package/dist/types/element/src/resizeElements.d.ts +14 -4
- package/dist/types/element/src/selection.d.ts +7 -13
- package/dist/types/element/src/shape.d.ts +29 -1
- package/dist/types/element/src/sizeHelpers.d.ts +6 -0
- package/dist/types/element/src/sortElements.d.ts +10 -0
- package/dist/types/element/src/stickyNote.d.ts +191 -0
- package/dist/types/element/src/textElement.d.ts +22 -10
- package/dist/types/element/src/textMeasurements.d.ts +15 -11
- package/dist/types/element/src/textWrapping.d.ts +3 -2
- package/dist/types/element/src/transform.d.ts +31 -8
- package/dist/types/element/src/typeChecks.d.ts +28 -27
- package/dist/types/element/src/types.d.ts +43 -7
- package/dist/types/element/src/utils.d.ts +15 -4
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +98 -15
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +79 -202
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +306 -939
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +68 -10
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -5
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -518
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +34 -5
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +34 -5
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +69 -11
- package/dist/types/excalidraw/actions/actionExport.d.ts +76 -18
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +132 -648
- package/dist/types/excalidraw/actions/actionGroup.d.ts +83 -25
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +89 -8
- package/dist/types/excalidraw/actions/actionLink.d.ts +35 -6
- package/dist/types/excalidraw/actions/actionMenu.d.ts +34 -5
- package/dist/types/excalidraw/actions/actionProperties.d.ts +106 -32
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +39 -10
- package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -6
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +35 -6
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +38 -10
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +35 -6
- package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +206 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +35 -6
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +38 -10
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleShowHints.d.ts} +50 -18
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +35 -6
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +36 -7
- package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +35 -6
- package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
- package/dist/types/excalidraw/actions/index.d.ts +4 -2
- package/dist/types/excalidraw/actions/manager.d.ts +1 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +8 -4
- package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
- package/dist/types/excalidraw/appState.d.ts +37 -12
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
- package/dist/types/excalidraw/charts/index.d.ts +2 -1
- package/dist/types/excalidraw/components/Actions.d.ts +26 -13
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
- package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
- package/dist/types/excalidraw/components/App.clipboard.d.ts +59 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
- package/dist/types/excalidraw/components/App.d.ts +329 -114
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.host.d.ts +102 -0
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
- package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
- package/dist/types/excalidraw/components/App.text.d.ts +194 -0
- package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
- package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +133 -0
- package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
- package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
- package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
- package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
- package/dist/types/excalidraw/components/Island.d.ts +7 -0
- package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
- package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
- package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
- package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
- package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
- package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
- package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
- package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
- package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
- package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
- package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
- package/dist/types/excalidraw/components/Popover.d.ts +1 -3
- package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
- package/dist/types/excalidraw/components/Toast.d.ts +12 -1
- package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
- package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
- package/dist/types/excalidraw/components/Tools.d.ts +151 -0
- package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
- package/dist/types/excalidraw/components/UserList.d.ts +3 -2
- package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -0
- package/dist/types/excalidraw/components/footer/Footer.d.ts +5 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
- package/dist/types/excalidraw/components/icons.d.ts +8 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +10 -4
- package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
- package/dist/types/excalidraw/data/blob.d.ts +84 -26
- package/dist/types/excalidraw/data/index.d.ts +7 -7
- package/dist/types/excalidraw/data/json.d.ts +48 -19
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
- package/dist/types/excalidraw/history.d.ts +10 -4
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
- package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
- package/dist/types/excalidraw/lasso/index.d.ts +2 -3
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
- package/dist/types/excalidraw/mermaid.d.ts +7 -0
- package/dist/types/excalidraw/reactUtils.d.ts +1 -1
- package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +76 -13
- package/dist/types/excalidraw/scene/export.d.ts +344 -21
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +30 -5
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/types.d.ts +613 -28
- package/dist/types/excalidraw/viewport.d.ts +308 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +13 -3
- package/dist/types/laser-pointer/src/index.d.ts +2 -0
- package/dist/types/laser-pointer/src/math.d.ts +16 -0
- package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
- package/dist/types/laser-pointer/src/state.d.ts +36 -0
- package/dist/types/math/src/curve.d.ts +19 -12
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/pca.d.ts +79 -0
- package/dist/types/math/src/point.d.ts +1 -0
- package/dist/types/math/src/polygon.d.ts +25 -1
- package/dist/types/math/src/segment.d.ts +6 -0
- package/dist/types/utils/src/index.d.ts +4 -3
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/package.json +1 -1
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
- package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
- package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
- package/dist/types/excalidraw/components/shapes.d.ts +0 -263
- package/dist/types/excalidraw/cursor.d.ts +0 -5
- package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
- package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
- package/dist/types/utils/src/bbox.d.ts +0 -9
- package/dist/types/utils/src/export.d.ts +0 -35
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
|
@@ -60,10 +60,24 @@ export declare const actionLinkToElement: {
|
|
|
60
60
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
61
61
|
bindingPreference: "enabled" | "disabled";
|
|
62
62
|
isMidpointSnappingEnabled: boolean;
|
|
63
|
+
showHints: boolean;
|
|
64
|
+
splitOnPaste: boolean;
|
|
65
|
+
inputDevice: import("../types").InputDevice;
|
|
63
66
|
suggestedBinding: {
|
|
64
67
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
65
68
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
66
69
|
} | null;
|
|
70
|
+
textToolHover: {
|
|
71
|
+
type: "text";
|
|
72
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
73
|
+
} | {
|
|
74
|
+
type: "container";
|
|
75
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
76
|
+
} | {
|
|
77
|
+
type: "arrow";
|
|
78
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
79
|
+
anchor: "start" | "end" | "label";
|
|
80
|
+
} | null;
|
|
67
81
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
68
82
|
frameRendering: {
|
|
69
83
|
enabled: boolean;
|
|
@@ -71,8 +85,8 @@ export declare const actionLinkToElement: {
|
|
|
71
85
|
outline: boolean;
|
|
72
86
|
clip: boolean;
|
|
73
87
|
};
|
|
74
|
-
editingFrame:
|
|
75
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
88
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
89
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
76
90
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
77
91
|
activeTool: {
|
|
78
92
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -90,11 +104,14 @@ export declare const actionLinkToElement: {
|
|
|
90
104
|
exportWithDarkMode: boolean;
|
|
91
105
|
exportScale: number;
|
|
92
106
|
currentItemStrokeColor: string;
|
|
107
|
+
currentItemStickynoteStrokeColor: string;
|
|
108
|
+
currentItemStickynoteBackgroundColor: string;
|
|
93
109
|
currentItemBackgroundColor: string;
|
|
94
110
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
95
|
-
|
|
111
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
96
112
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
97
113
|
currentItemRoughness: number;
|
|
114
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
98
115
|
currentItemOpacity: number;
|
|
99
116
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
100
117
|
currentItemFontSize: number;
|
|
@@ -107,6 +124,7 @@ export declare const actionLinkToElement: {
|
|
|
107
124
|
viewBackgroundColor: string;
|
|
108
125
|
scrollX: number;
|
|
109
126
|
scrollY: number;
|
|
127
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
110
128
|
cursorButton: "up" | "down";
|
|
111
129
|
scrolledOutside: boolean;
|
|
112
130
|
name: string | null;
|
|
@@ -136,8 +154,13 @@ export declare const actionLinkToElement: {
|
|
|
136
154
|
message: React.ReactNode;
|
|
137
155
|
closable?: boolean;
|
|
138
156
|
duration?: number;
|
|
157
|
+
action?: {
|
|
158
|
+
label: string;
|
|
159
|
+
onClick: () => void;
|
|
160
|
+
};
|
|
139
161
|
} | null;
|
|
140
162
|
zenModeEnabled: boolean;
|
|
163
|
+
minimapEnabled: boolean;
|
|
141
164
|
theme: import("@excalidraw/element/types").Theme;
|
|
142
165
|
gridSize: number;
|
|
143
166
|
gridStep: number;
|
|
@@ -165,8 +188,6 @@ export declare const actionLinkToElement: {
|
|
|
165
188
|
y: number;
|
|
166
189
|
} | null;
|
|
167
190
|
objectsSnapModeEnabled: boolean;
|
|
168
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
169
|
-
followedBy: Set<import("../types").SocketId>;
|
|
170
191
|
isCropping: boolean;
|
|
171
192
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
172
193
|
searchMatches: Readonly<{
|
|
@@ -178,6 +199,14 @@ export declare const actionLinkToElement: {
|
|
|
178
199
|
[groupId: string]: true;
|
|
179
200
|
};
|
|
180
201
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
202
|
+
colorTopPicks: {
|
|
203
|
+
elementStroke: readonly string[] | null;
|
|
204
|
+
elementBackground: readonly string[] | null;
|
|
205
|
+
bucketFill: readonly string[] | null;
|
|
206
|
+
stickyNoteStroke: readonly string[] | null;
|
|
207
|
+
stickyNoteBackground: readonly string[] | null;
|
|
208
|
+
};
|
|
209
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
181
210
|
};
|
|
182
211
|
captureUpdate: "IMMEDIATELY";
|
|
183
212
|
elements?: undefined;
|
|
@@ -2,7 +2,7 @@ import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
|
2
2
|
import type { AppState } from "../types";
|
|
3
3
|
export declare const actionToggleElementLock: {
|
|
4
4
|
name: "toggleElementLock";
|
|
5
|
-
label: (elements: readonly ExcalidrawElement[], appState: Readonly<
|
|
5
|
+
label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.elementLock.lock" | "labels.elementLock.unlock";
|
|
6
6
|
icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
@@ -42,10 +42,24 @@ export declare const actionToggleElementLock: {
|
|
|
42
42
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
43
43
|
bindingPreference: "enabled" | "disabled";
|
|
44
44
|
isMidpointSnappingEnabled: boolean;
|
|
45
|
+
showHints: boolean;
|
|
46
|
+
splitOnPaste: boolean;
|
|
47
|
+
inputDevice: import("../types").InputDevice;
|
|
45
48
|
suggestedBinding: {
|
|
46
49
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
47
50
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
48
51
|
} | null;
|
|
52
|
+
textToolHover: {
|
|
53
|
+
type: "text";
|
|
54
|
+
elementId: ExcalidrawElement["id"];
|
|
55
|
+
} | {
|
|
56
|
+
type: "container";
|
|
57
|
+
elementId: ExcalidrawElement["id"];
|
|
58
|
+
} | {
|
|
59
|
+
type: "arrow";
|
|
60
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
61
|
+
anchor: "start" | "end" | "label";
|
|
62
|
+
} | null;
|
|
49
63
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
50
64
|
frameRendering: {
|
|
51
65
|
enabled: boolean;
|
|
@@ -53,8 +67,8 @@ export declare const actionToggleElementLock: {
|
|
|
53
67
|
outline: boolean;
|
|
54
68
|
clip: boolean;
|
|
55
69
|
};
|
|
56
|
-
editingFrame:
|
|
57
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
70
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
71
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
58
72
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
59
73
|
activeTool: {
|
|
60
74
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -72,11 +86,14 @@ export declare const actionToggleElementLock: {
|
|
|
72
86
|
exportWithDarkMode: boolean;
|
|
73
87
|
exportScale: number;
|
|
74
88
|
currentItemStrokeColor: string;
|
|
89
|
+
currentItemStickynoteStrokeColor: string;
|
|
90
|
+
currentItemStickynoteBackgroundColor: string;
|
|
75
91
|
currentItemBackgroundColor: string;
|
|
76
92
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
77
|
-
|
|
93
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
78
94
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
79
95
|
currentItemRoughness: number;
|
|
96
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
80
97
|
currentItemOpacity: number;
|
|
81
98
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
82
99
|
currentItemFontSize: number;
|
|
@@ -89,6 +106,7 @@ export declare const actionToggleElementLock: {
|
|
|
89
106
|
viewBackgroundColor: string;
|
|
90
107
|
scrollX: number;
|
|
91
108
|
scrollY: number;
|
|
109
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
92
110
|
cursorButton: "up" | "down";
|
|
93
111
|
scrolledOutside: boolean;
|
|
94
112
|
name: string | null;
|
|
@@ -132,8 +150,13 @@ export declare const actionToggleElementLock: {
|
|
|
132
150
|
message: React.ReactNode;
|
|
133
151
|
closable?: boolean;
|
|
134
152
|
duration?: number;
|
|
153
|
+
action?: {
|
|
154
|
+
label: string;
|
|
155
|
+
onClick: () => void;
|
|
156
|
+
};
|
|
135
157
|
} | null;
|
|
136
158
|
zenModeEnabled: boolean;
|
|
159
|
+
minimapEnabled: boolean;
|
|
137
160
|
theme: import("@excalidraw/element/types").Theme;
|
|
138
161
|
gridSize: number;
|
|
139
162
|
gridStep: number;
|
|
@@ -157,8 +180,6 @@ export declare const actionToggleElementLock: {
|
|
|
157
180
|
y: number;
|
|
158
181
|
} | null;
|
|
159
182
|
objectsSnapModeEnabled: boolean;
|
|
160
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
161
|
-
followedBy: Set<import("../types").SocketId>;
|
|
162
183
|
isCropping: boolean;
|
|
163
184
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
164
185
|
searchMatches: Readonly<{
|
|
@@ -166,6 +187,14 @@ export declare const actionToggleElementLock: {
|
|
|
166
187
|
matches: readonly import("../types").SearchMatch[];
|
|
167
188
|
}> | null;
|
|
168
189
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
190
|
+
colorTopPicks: {
|
|
191
|
+
elementStroke: readonly string[] | null;
|
|
192
|
+
elementBackground: readonly string[] | null;
|
|
193
|
+
bucketFill: readonly string[] | null;
|
|
194
|
+
stickyNoteStroke: readonly string[] | null;
|
|
195
|
+
stickyNoteBackground: readonly string[] | null;
|
|
196
|
+
};
|
|
197
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
169
198
|
};
|
|
170
199
|
captureUpdate: "IMMEDIATELY";
|
|
171
200
|
};
|
|
@@ -212,10 +241,24 @@ export declare const actionUnlockAllElements: {
|
|
|
212
241
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
213
242
|
bindingPreference: "enabled" | "disabled";
|
|
214
243
|
isMidpointSnappingEnabled: boolean;
|
|
244
|
+
showHints: boolean;
|
|
245
|
+
splitOnPaste: boolean;
|
|
246
|
+
inputDevice: import("../types").InputDevice;
|
|
215
247
|
suggestedBinding: {
|
|
216
248
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
217
249
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
218
250
|
} | null;
|
|
251
|
+
textToolHover: {
|
|
252
|
+
type: "text";
|
|
253
|
+
elementId: ExcalidrawElement["id"];
|
|
254
|
+
} | {
|
|
255
|
+
type: "container";
|
|
256
|
+
elementId: ExcalidrawElement["id"];
|
|
257
|
+
} | {
|
|
258
|
+
type: "arrow";
|
|
259
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
260
|
+
anchor: "start" | "end" | "label";
|
|
261
|
+
} | null;
|
|
219
262
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
220
263
|
frameRendering: {
|
|
221
264
|
enabled: boolean;
|
|
@@ -223,8 +266,8 @@ export declare const actionUnlockAllElements: {
|
|
|
223
266
|
outline: boolean;
|
|
224
267
|
clip: boolean;
|
|
225
268
|
};
|
|
226
|
-
editingFrame:
|
|
227
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
269
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
270
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
228
271
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
229
272
|
activeTool: {
|
|
230
273
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -242,11 +285,14 @@ export declare const actionUnlockAllElements: {
|
|
|
242
285
|
exportWithDarkMode: boolean;
|
|
243
286
|
exportScale: number;
|
|
244
287
|
currentItemStrokeColor: string;
|
|
288
|
+
currentItemStickynoteStrokeColor: string;
|
|
289
|
+
currentItemStickynoteBackgroundColor: string;
|
|
245
290
|
currentItemBackgroundColor: string;
|
|
246
291
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
247
|
-
|
|
292
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
248
293
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
249
294
|
currentItemRoughness: number;
|
|
295
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
250
296
|
currentItemOpacity: number;
|
|
251
297
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
252
298
|
currentItemFontSize: number;
|
|
@@ -259,6 +305,7 @@ export declare const actionUnlockAllElements: {
|
|
|
259
305
|
viewBackgroundColor: string;
|
|
260
306
|
scrollX: number;
|
|
261
307
|
scrollY: number;
|
|
308
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
262
309
|
cursorButton: "up" | "down";
|
|
263
310
|
scrolledOutside: boolean;
|
|
264
311
|
name: string | null;
|
|
@@ -302,8 +349,13 @@ export declare const actionUnlockAllElements: {
|
|
|
302
349
|
message: React.ReactNode;
|
|
303
350
|
closable?: boolean;
|
|
304
351
|
duration?: number;
|
|
352
|
+
action?: {
|
|
353
|
+
label: string;
|
|
354
|
+
onClick: () => void;
|
|
355
|
+
};
|
|
305
356
|
} | null;
|
|
306
357
|
zenModeEnabled: boolean;
|
|
358
|
+
minimapEnabled: boolean;
|
|
307
359
|
theme: import("@excalidraw/element/types").Theme;
|
|
308
360
|
gridSize: number;
|
|
309
361
|
gridStep: number;
|
|
@@ -328,8 +380,6 @@ export declare const actionUnlockAllElements: {
|
|
|
328
380
|
y: number;
|
|
329
381
|
} | null;
|
|
330
382
|
objectsSnapModeEnabled: boolean;
|
|
331
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
332
|
-
followedBy: Set<import("../types").SocketId>;
|
|
333
383
|
isCropping: boolean;
|
|
334
384
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
335
385
|
searchMatches: Readonly<{
|
|
@@ -337,6 +387,14 @@ export declare const actionUnlockAllElements: {
|
|
|
337
387
|
matches: readonly import("../types").SearchMatch[];
|
|
338
388
|
}> | null;
|
|
339
389
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
390
|
+
colorTopPicks: {
|
|
391
|
+
elementStroke: readonly string[] | null;
|
|
392
|
+
elementBackground: readonly string[] | null;
|
|
393
|
+
bucketFill: readonly string[] | null;
|
|
394
|
+
stickyNoteStroke: readonly string[] | null;
|
|
395
|
+
stickyNoteBackground: readonly string[] | null;
|
|
396
|
+
};
|
|
397
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
340
398
|
};
|
|
341
399
|
captureUpdate: "IMMEDIATELY";
|
|
342
400
|
};
|
|
@@ -82,7 +82,13 @@ export declare const actionLoadScene: {
|
|
|
82
82
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => Promise<false | {
|
|
83
83
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
84
84
|
appState: {
|
|
85
|
+
zoom: import("../types").Zoom;
|
|
85
86
|
viewModeEnabled: boolean;
|
|
87
|
+
activeTool: {
|
|
88
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
89
|
+
locked: boolean;
|
|
90
|
+
fromSelection: boolean;
|
|
91
|
+
} & import("../types").ActiveTool;
|
|
86
92
|
zenModeEnabled: boolean;
|
|
87
93
|
gridModeEnabled: boolean;
|
|
88
94
|
objectsSnapModeEnabled: boolean;
|
|
@@ -90,11 +96,8 @@ export declare const actionLoadScene: {
|
|
|
90
96
|
name: string | null;
|
|
91
97
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
92
98
|
gridSize: number;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
locked: boolean;
|
|
96
|
-
fromSelection: boolean;
|
|
97
|
-
} & import("../types").ActiveTool;
|
|
99
|
+
scrollX: number;
|
|
100
|
+
scrollY: number;
|
|
98
101
|
contextMenu: {
|
|
99
102
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
100
103
|
top: number;
|
|
@@ -115,10 +118,24 @@ export declare const actionLoadScene: {
|
|
|
115
118
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
116
119
|
bindingPreference: "enabled" | "disabled";
|
|
117
120
|
isMidpointSnappingEnabled: boolean;
|
|
121
|
+
showHints: boolean;
|
|
122
|
+
splitOnPaste: boolean;
|
|
123
|
+
inputDevice: import("../types").InputDevice;
|
|
118
124
|
suggestedBinding: {
|
|
119
125
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
120
126
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
121
127
|
} | null;
|
|
128
|
+
textToolHover: {
|
|
129
|
+
type: "text";
|
|
130
|
+
elementId: ExcalidrawElement["id"];
|
|
131
|
+
} | {
|
|
132
|
+
type: "container";
|
|
133
|
+
elementId: ExcalidrawElement["id"];
|
|
134
|
+
} | {
|
|
135
|
+
type: "arrow";
|
|
136
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
137
|
+
anchor: "start" | "end" | "label";
|
|
138
|
+
} | null;
|
|
122
139
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
123
140
|
frameRendering: {
|
|
124
141
|
enabled: boolean;
|
|
@@ -126,8 +143,8 @@ export declare const actionLoadScene: {
|
|
|
126
143
|
outline: boolean;
|
|
127
144
|
clip: boolean;
|
|
128
145
|
};
|
|
129
|
-
editingFrame:
|
|
130
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
146
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
147
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
131
148
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
132
149
|
preferredSelectionTool: {
|
|
133
150
|
type: "selection" | "lasso";
|
|
@@ -140,11 +157,14 @@ export declare const actionLoadScene: {
|
|
|
140
157
|
exportWithDarkMode: boolean;
|
|
141
158
|
exportScale: number;
|
|
142
159
|
currentItemStrokeColor: string;
|
|
160
|
+
currentItemStickynoteStrokeColor: string;
|
|
161
|
+
currentItemStickynoteBackgroundColor: string;
|
|
143
162
|
currentItemBackgroundColor: string;
|
|
144
163
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
145
|
-
|
|
164
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
146
165
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
147
166
|
currentItemRoughness: number;
|
|
167
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
148
168
|
currentItemOpacity: number;
|
|
149
169
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
150
170
|
currentItemFontSize: number;
|
|
@@ -154,13 +174,11 @@ export declare const actionLoadScene: {
|
|
|
154
174
|
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
155
175
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
156
176
|
viewBackgroundColor: string;
|
|
157
|
-
|
|
158
|
-
scrollY: number;
|
|
177
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
159
178
|
cursorButton: "up" | "down";
|
|
160
179
|
scrolledOutside: boolean;
|
|
161
180
|
isResizing: boolean;
|
|
162
181
|
isRotating: boolean;
|
|
163
|
-
zoom: import("../types").Zoom;
|
|
164
182
|
openMenu: "canvas" | null;
|
|
165
183
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
166
184
|
openSidebar: {
|
|
@@ -201,7 +219,12 @@ export declare const actionLoadScene: {
|
|
|
201
219
|
message: React.ReactNode;
|
|
202
220
|
closable?: boolean;
|
|
203
221
|
duration?: number;
|
|
222
|
+
action?: {
|
|
223
|
+
label: string;
|
|
224
|
+
onClick: () => void;
|
|
225
|
+
};
|
|
204
226
|
} | null;
|
|
227
|
+
minimapEnabled: boolean;
|
|
205
228
|
gridStep: number;
|
|
206
229
|
selectedGroupIds: {
|
|
207
230
|
[groupId: string]: boolean;
|
|
@@ -220,8 +243,6 @@ export declare const actionLoadScene: {
|
|
|
220
243
|
x: number;
|
|
221
244
|
y: number;
|
|
222
245
|
} | null;
|
|
223
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
224
|
-
followedBy: Set<import("../types").SocketId>;
|
|
225
246
|
isCropping: boolean;
|
|
226
247
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
227
248
|
searchMatches: Readonly<{
|
|
@@ -233,6 +254,14 @@ export declare const actionLoadScene: {
|
|
|
233
254
|
[groupId: string]: true;
|
|
234
255
|
};
|
|
235
256
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
257
|
+
colorTopPicks: {
|
|
258
|
+
elementStroke: readonly string[] | null;
|
|
259
|
+
elementBackground: readonly string[] | null;
|
|
260
|
+
bucketFill: readonly string[] | null;
|
|
261
|
+
stickyNoteStroke: readonly string[] | null;
|
|
262
|
+
stickyNoteBackground: readonly string[] | null;
|
|
263
|
+
};
|
|
264
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
236
265
|
};
|
|
237
266
|
files: BinaryFiles;
|
|
238
267
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -259,10 +288,24 @@ export declare const actionLoadScene: {
|
|
|
259
288
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
260
289
|
bindingPreference: "enabled" | "disabled";
|
|
261
290
|
isMidpointSnappingEnabled: boolean;
|
|
291
|
+
showHints: boolean;
|
|
292
|
+
splitOnPaste: boolean;
|
|
293
|
+
inputDevice: import("../types").InputDevice;
|
|
262
294
|
suggestedBinding: {
|
|
263
295
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
264
296
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
265
297
|
} | null;
|
|
298
|
+
textToolHover: {
|
|
299
|
+
type: "text";
|
|
300
|
+
elementId: ExcalidrawElement["id"];
|
|
301
|
+
} | {
|
|
302
|
+
type: "container";
|
|
303
|
+
elementId: ExcalidrawElement["id"];
|
|
304
|
+
} | {
|
|
305
|
+
type: "arrow";
|
|
306
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
307
|
+
anchor: "start" | "end" | "label";
|
|
308
|
+
} | null;
|
|
266
309
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
267
310
|
frameRendering: {
|
|
268
311
|
enabled: boolean;
|
|
@@ -270,8 +313,8 @@ export declare const actionLoadScene: {
|
|
|
270
313
|
outline: boolean;
|
|
271
314
|
clip: boolean;
|
|
272
315
|
};
|
|
273
|
-
editingFrame:
|
|
274
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
316
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
317
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
275
318
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
276
319
|
activeTool: {
|
|
277
320
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -289,11 +332,14 @@ export declare const actionLoadScene: {
|
|
|
289
332
|
exportWithDarkMode: boolean;
|
|
290
333
|
exportScale: number;
|
|
291
334
|
currentItemStrokeColor: string;
|
|
335
|
+
currentItemStickynoteStrokeColor: string;
|
|
336
|
+
currentItemStickynoteBackgroundColor: string;
|
|
292
337
|
currentItemBackgroundColor: string;
|
|
293
338
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
294
|
-
|
|
339
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
295
340
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
296
341
|
currentItemRoughness: number;
|
|
342
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
297
343
|
currentItemOpacity: number;
|
|
298
344
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
299
345
|
currentItemFontSize: number;
|
|
@@ -306,6 +352,7 @@ export declare const actionLoadScene: {
|
|
|
306
352
|
viewBackgroundColor: string;
|
|
307
353
|
scrollX: number;
|
|
308
354
|
scrollY: number;
|
|
355
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
309
356
|
cursorButton: "up" | "down";
|
|
310
357
|
scrolledOutside: boolean;
|
|
311
358
|
name: string | null;
|
|
@@ -352,8 +399,13 @@ export declare const actionLoadScene: {
|
|
|
352
399
|
message: React.ReactNode;
|
|
353
400
|
closable?: boolean;
|
|
354
401
|
duration?: number;
|
|
402
|
+
action?: {
|
|
403
|
+
label: string;
|
|
404
|
+
onClick: () => void;
|
|
405
|
+
};
|
|
355
406
|
} | null;
|
|
356
407
|
zenModeEnabled: boolean;
|
|
408
|
+
minimapEnabled: boolean;
|
|
357
409
|
theme: Theme;
|
|
358
410
|
gridSize: number;
|
|
359
411
|
gridStep: number;
|
|
@@ -381,8 +433,6 @@ export declare const actionLoadScene: {
|
|
|
381
433
|
y: number;
|
|
382
434
|
} | null;
|
|
383
435
|
objectsSnapModeEnabled: boolean;
|
|
384
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
385
|
-
followedBy: Set<import("../types").SocketId>;
|
|
386
436
|
isCropping: boolean;
|
|
387
437
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
388
438
|
searchMatches: Readonly<{
|
|
@@ -394,6 +444,14 @@ export declare const actionLoadScene: {
|
|
|
394
444
|
[groupId: string]: true;
|
|
395
445
|
};
|
|
396
446
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
447
|
+
colorTopPicks: {
|
|
448
|
+
elementStroke: readonly string[] | null;
|
|
449
|
+
elementBackground: readonly string[] | null;
|
|
450
|
+
bucketFill: readonly string[] | null;
|
|
451
|
+
stickyNoteStroke: readonly string[] | null;
|
|
452
|
+
stickyNoteBackground: readonly string[] | null;
|
|
453
|
+
};
|
|
454
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
397
455
|
};
|
|
398
456
|
files: BinaryFiles;
|
|
399
457
|
captureUpdate: "EVENTUALLY";
|
|
@@ -6,6 +6,7 @@ type FormData = {
|
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
|
8
8
|
};
|
|
9
|
+
hitBoundText?: boolean;
|
|
9
10
|
};
|
|
10
11
|
export declare const actionFinalize: import("./types").Action<FormData> & {
|
|
11
12
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|