@excalidraw/element 0.18.0-9ba0f5d → 0.18.0-a52cd20
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 +13141 -8453
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +20 -19
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/appEventBus.d.ts +27 -0
- package/dist/types/common/src/colors.d.ts +24 -2
- package/dist/types/common/src/constants.d.ts +70 -7
- package/dist/types/common/src/index.d.ts +3 -0
- package/dist/types/common/src/keys.d.ts +4 -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 +10 -50
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +9 -5
- package/dist/types/element/src/align.d.ts +2 -2
- package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
- package/dist/types/element/src/arrowheads.d.ts +3 -0
- package/dist/types/element/src/arrows/focus.d.ts +30 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +37 -17
- package/dist/types/element/src/bounds.d.ts +23 -8
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +7 -3
- 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/delta.d.ts +23 -1
- package/dist/types/element/src/distribute.d.ts +3 -2
- package/dist/types/element/src/dragElements.d.ts +27 -0
- package/dist/types/element/src/duplicate.d.ts +64 -3
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/embeddable.d.ts +2 -2
- package/dist/types/element/src/flowchart.d.ts +11 -7
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +11 -10
- package/dist/types/element/src/groups.d.ts +9 -9
- package/dist/types/element/src/index.d.ts +8 -1
- package/dist/types/element/src/linearElementEditor.d.ts +32 -10
- package/dist/types/element/src/mutateElement.d.ts +3 -1
- package/dist/types/element/src/newElement.d.ts +53 -3
- package/dist/types/element/src/renderElement.d.ts +21 -7
- package/dist/types/element/src/resizeElements.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +11 -7
- package/dist/types/element/src/shape.d.ts +28 -2
- 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 +183 -0
- package/dist/types/element/src/textElement.d.ts +21 -10
- package/dist/types/element/src/textWrapping.d.ts +26 -0
- package/dist/types/element/src/transform.d.ts +26 -7
- package/dist/types/element/src/typeChecks.d.ts +29 -27
- package/dist/types/element/src/types.d.ts +48 -9
- package/dist/types/element/src/utils.d.ts +19 -6
- package/dist/types/element/src/visualdebug.d.ts +1 -2
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +125 -53
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +85 -37
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +356 -1019
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +84 -36
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +42 -18
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +130 -55
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +182 -0
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +38 -18
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +85 -37
- package/dist/types/excalidraw/actions/actionExport.d.ts +133 -359
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +187 -236
- package/dist/types/excalidraw/actions/actionGroup.d.ts +100 -52
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +99 -21
- package/dist/types/excalidraw/actions/actionLink.d.ts +43 -19
- package/dist/types/excalidraw/actions/actionMenu.d.ts +38 -18
- package/dist/types/excalidraw/actions/actionProperties.d.ts +120 -56
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +46 -22
- package/dist/types/excalidraw/actions/actionStyles.d.ts +43 -18
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +57 -32
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +46 -23
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +195 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +43 -19
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +42 -23
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +43 -19
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +44 -20
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +43 -19
- 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 +39 -13
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +6 -7
- package/dist/types/excalidraw/components/Actions.d.ts +17 -12
- 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.cursor.d.ts +38 -0
- package/dist/types/excalidraw/components/App.d.ts +604 -89
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.duplicate.d.ts +51 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -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 +113 -0
- package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -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/CommandPalette/types.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- 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/IconPicker.d.ts +14 -9
- 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/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/PasteChartDialog.d.ts +4 -5
- 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/PropertiesPopover.d.ts +1 -1
- package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- 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 +1 -1
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +2 -6
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +11 -7
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +4 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
- package/dist/types/excalidraw/components/Toast.d.ts +8 -4
- 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 +15 -1
- 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 +4 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -16
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -12
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/dist/types/excalidraw/components/icons.d.ts +30 -10
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +26 -3
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -14
- 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 +107 -60
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
- package/dist/types/excalidraw/data/index.d.ts +6 -7
- package/dist/types/excalidraw/data/json.d.ts +62 -30
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- 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 +3 -2
- 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/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
- package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
- package/dist/types/excalidraw/scene/Renderer.d.ts +489 -20
- package/dist/types/excalidraw/scene/export.d.ts +3 -3
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +7 -4
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +619 -42
- package/dist/types/excalidraw/viewport.d.ts +302 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -3
- package/dist/types/fractional-indexing/src/index.d.ts +29 -0
- 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/constants.d.ts +0 -1
- package/dist/types/math/src/curve.d.ts +23 -13
- 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 +8 -2
- package/dist/types/math/src/polygon.d.ts +25 -1
- package/dist/types/math/src/segment.d.ts +6 -0
- package/dist/types/math/src/types.d.ts +25 -1
- package/dist/types/utils/src/export.d.ts +4 -3
- package/dist/types/utils/src/index.d.ts +1 -2
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/package.json +4 -3
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- package/dist/types/excalidraw/charts.d.ts +0 -27
- package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
- 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/InitializeApp.d.ts +0 -10
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
- package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
- package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
- package/dist/types/excalidraw/components/shapes.d.ts +0 -190
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
- package/dist/types/excalidraw/cursor.d.ts +0 -5
- package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
- package/dist/types/excalidraw/index.d.ts +0 -46
- package/dist/types/excalidraw/polyfill.d.ts +0 -2
- 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/withinBounds.d.ts +0 -19
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
-
import type { AppClassProperties,
|
|
2
|
+
import type { AppClassProperties, UIAppState } from "../types";
|
|
3
3
|
export declare const actionSelectAllElementsInFrame: {
|
|
4
4
|
name: "selectAllElementsInFrame";
|
|
5
5
|
label: string;
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "canvas";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
10
10
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
11
11
|
appState: {
|
|
12
12
|
selectedElementIds: Record<string, true>;
|
|
@@ -27,8 +27,26 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
27
27
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
28
28
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
|
+
bindingPreference: "enabled" | "disabled";
|
|
32
|
+
isMidpointSnappingEnabled: boolean;
|
|
33
|
+
showHints: boolean;
|
|
34
|
+
inputDevice: import("../types").InputDevice;
|
|
35
|
+
suggestedBinding: {
|
|
36
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
37
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
38
|
+
} | null;
|
|
39
|
+
textToolHover: {
|
|
40
|
+
type: "text";
|
|
41
|
+
elementId: ExcalidrawElement["id"];
|
|
42
|
+
} | {
|
|
43
|
+
type: "container";
|
|
44
|
+
elementId: ExcalidrawElement["id"];
|
|
45
|
+
} | {
|
|
46
|
+
type: "arrow";
|
|
47
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
48
|
+
anchor: "start" | "end" | "label";
|
|
49
|
+
} | null;
|
|
32
50
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
33
51
|
frameRendering: {
|
|
34
52
|
enabled: boolean;
|
|
@@ -36,9 +54,9 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
36
54
|
outline: boolean;
|
|
37
55
|
clip: boolean;
|
|
38
56
|
};
|
|
39
|
-
editingFrame:
|
|
40
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
41
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
57
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
58
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
59
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
42
60
|
activeTool: {
|
|
43
61
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
62
|
locked: boolean;
|
|
@@ -55,11 +73,14 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
55
73
|
exportWithDarkMode: boolean;
|
|
56
74
|
exportScale: number;
|
|
57
75
|
currentItemStrokeColor: string;
|
|
76
|
+
currentItemStickynoteStrokeColor: string;
|
|
77
|
+
currentItemStickynoteBackgroundColor: string;
|
|
58
78
|
currentItemBackgroundColor: string;
|
|
59
79
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
60
|
-
|
|
80
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
61
81
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
62
82
|
currentItemRoughness: number;
|
|
83
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
63
84
|
currentItemOpacity: number;
|
|
64
85
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
65
86
|
currentItemFontSize: number;
|
|
@@ -72,6 +93,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
72
93
|
viewBackgroundColor: string;
|
|
73
94
|
scrollX: number;
|
|
74
95
|
scrollY: number;
|
|
96
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
75
97
|
cursorButton: "up" | "down";
|
|
76
98
|
scrolledOutside: boolean;
|
|
77
99
|
name: string | null;
|
|
@@ -96,6 +118,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
96
118
|
} | {
|
|
97
119
|
name: "elementLinkSelector";
|
|
98
120
|
sourceElementId: ExcalidrawElement["id"];
|
|
121
|
+
} | {
|
|
122
|
+
name: "charts";
|
|
123
|
+
data: import("../charts").Spreadsheet;
|
|
124
|
+
rawText: string;
|
|
99
125
|
};
|
|
100
126
|
defaultSidebarDockedPreference: boolean;
|
|
101
127
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -108,7 +134,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
108
134
|
selectedElementsAreBeingDragged: boolean;
|
|
109
135
|
shouldCacheIgnoreZoom: boolean;
|
|
110
136
|
toast: {
|
|
111
|
-
message:
|
|
137
|
+
message: React.ReactNode;
|
|
112
138
|
closable?: boolean;
|
|
113
139
|
duration?: number;
|
|
114
140
|
} | null;
|
|
@@ -126,20 +152,12 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
126
152
|
height: number;
|
|
127
153
|
offsetTop: number;
|
|
128
154
|
offsetLeft: number;
|
|
129
|
-
fileHandle:
|
|
155
|
+
fileHandle: FileSystemFileHandle | null;
|
|
130
156
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
131
157
|
stats: {
|
|
132
158
|
open: boolean;
|
|
133
159
|
panels: number;
|
|
134
160
|
};
|
|
135
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
136
|
-
pasteDialog: {
|
|
137
|
-
shown: false;
|
|
138
|
-
data: null;
|
|
139
|
-
} | {
|
|
140
|
-
shown: true;
|
|
141
|
-
data: import("../charts").Spreadsheet;
|
|
142
|
-
};
|
|
143
161
|
showHyperlinkPopup: false | "info" | "editor";
|
|
144
162
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
145
163
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -148,8 +166,6 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
148
166
|
y: number;
|
|
149
167
|
} | null;
|
|
150
168
|
objectsSnapModeEnabled: boolean;
|
|
151
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
152
|
-
followedBy: Set<import("../types").SocketId>;
|
|
153
169
|
isCropping: boolean;
|
|
154
170
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
155
171
|
searchMatches: Readonly<{
|
|
@@ -161,14 +177,22 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
161
177
|
[groupId: string]: true;
|
|
162
178
|
};
|
|
163
179
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
180
|
+
colorTopPicks: {
|
|
181
|
+
elementStroke: readonly string[] | null;
|
|
182
|
+
elementBackground: readonly string[] | null;
|
|
183
|
+
bucketFill: readonly string[] | null;
|
|
184
|
+
stickyNoteStroke: readonly string[] | null;
|
|
185
|
+
stickyNoteBackground: readonly string[] | null;
|
|
186
|
+
};
|
|
187
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
164
188
|
};
|
|
165
189
|
captureUpdate: "IMMEDIATELY";
|
|
166
190
|
} | {
|
|
167
191
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
168
|
-
appState: Readonly<AppState>;
|
|
192
|
+
appState: Readonly<import("../types").AppState>;
|
|
169
193
|
captureUpdate: "EVENTUALLY";
|
|
170
194
|
};
|
|
171
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
195
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
172
196
|
} & {
|
|
173
197
|
keyTest?: undefined;
|
|
174
198
|
};
|
|
@@ -178,7 +202,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
178
202
|
trackEvent: {
|
|
179
203
|
category: "history";
|
|
180
204
|
};
|
|
181
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
205
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
182
206
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
183
207
|
appState: {
|
|
184
208
|
selectedElementIds: {
|
|
@@ -201,8 +225,26 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
201
225
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
202
226
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
203
227
|
isBindingEnabled: boolean;
|
|
204
|
-
|
|
205
|
-
|
|
228
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
229
|
+
bindingPreference: "enabled" | "disabled";
|
|
230
|
+
isMidpointSnappingEnabled: boolean;
|
|
231
|
+
showHints: boolean;
|
|
232
|
+
inputDevice: import("../types").InputDevice;
|
|
233
|
+
suggestedBinding: {
|
|
234
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
235
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
236
|
+
} | null;
|
|
237
|
+
textToolHover: {
|
|
238
|
+
type: "text";
|
|
239
|
+
elementId: ExcalidrawElement["id"];
|
|
240
|
+
} | {
|
|
241
|
+
type: "container";
|
|
242
|
+
elementId: ExcalidrawElement["id"];
|
|
243
|
+
} | {
|
|
244
|
+
type: "arrow";
|
|
245
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
246
|
+
anchor: "start" | "end" | "label";
|
|
247
|
+
} | null;
|
|
206
248
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
207
249
|
frameRendering: {
|
|
208
250
|
enabled: boolean;
|
|
@@ -210,9 +252,9 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
210
252
|
outline: boolean;
|
|
211
253
|
clip: boolean;
|
|
212
254
|
};
|
|
213
|
-
editingFrame:
|
|
214
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
215
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
255
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
256
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
257
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
216
258
|
activeTool: {
|
|
217
259
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
218
260
|
locked: boolean;
|
|
@@ -229,11 +271,14 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
229
271
|
exportWithDarkMode: boolean;
|
|
230
272
|
exportScale: number;
|
|
231
273
|
currentItemStrokeColor: string;
|
|
274
|
+
currentItemStickynoteStrokeColor: string;
|
|
275
|
+
currentItemStickynoteBackgroundColor: string;
|
|
232
276
|
currentItemBackgroundColor: string;
|
|
233
277
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
234
|
-
|
|
278
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
235
279
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
236
280
|
currentItemRoughness: number;
|
|
281
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
237
282
|
currentItemOpacity: number;
|
|
238
283
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
239
284
|
currentItemFontSize: number;
|
|
@@ -246,6 +291,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
246
291
|
viewBackgroundColor: string;
|
|
247
292
|
scrollX: number;
|
|
248
293
|
scrollY: number;
|
|
294
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
249
295
|
cursorButton: "up" | "down";
|
|
250
296
|
scrolledOutside: boolean;
|
|
251
297
|
name: string | null;
|
|
@@ -270,6 +316,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
270
316
|
} | {
|
|
271
317
|
name: "elementLinkSelector";
|
|
272
318
|
sourceElementId: ExcalidrawElement["id"];
|
|
319
|
+
} | {
|
|
320
|
+
name: "charts";
|
|
321
|
+
data: import("../charts").Spreadsheet;
|
|
322
|
+
rawText: string;
|
|
273
323
|
};
|
|
274
324
|
defaultSidebarDockedPreference: boolean;
|
|
275
325
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -282,7 +332,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
282
332
|
selectedElementsAreBeingDragged: boolean;
|
|
283
333
|
shouldCacheIgnoreZoom: boolean;
|
|
284
334
|
toast: {
|
|
285
|
-
message:
|
|
335
|
+
message: React.ReactNode;
|
|
286
336
|
closable?: boolean;
|
|
287
337
|
duration?: number;
|
|
288
338
|
} | null;
|
|
@@ -300,20 +350,12 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
300
350
|
height: number;
|
|
301
351
|
offsetTop: number;
|
|
302
352
|
offsetLeft: number;
|
|
303
|
-
fileHandle:
|
|
353
|
+
fileHandle: FileSystemFileHandle | null;
|
|
304
354
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
305
355
|
stats: {
|
|
306
356
|
open: boolean;
|
|
307
357
|
panels: number;
|
|
308
358
|
};
|
|
309
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
310
|
-
pasteDialog: {
|
|
311
|
-
shown: false;
|
|
312
|
-
data: null;
|
|
313
|
-
} | {
|
|
314
|
-
shown: true;
|
|
315
|
-
data: import("../charts").Spreadsheet;
|
|
316
|
-
};
|
|
317
359
|
showHyperlinkPopup: false | "info" | "editor";
|
|
318
360
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
319
361
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -322,8 +364,6 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
322
364
|
y: number;
|
|
323
365
|
} | null;
|
|
324
366
|
objectsSnapModeEnabled: boolean;
|
|
325
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
326
|
-
followedBy: Set<import("../types").SocketId>;
|
|
327
367
|
isCropping: boolean;
|
|
328
368
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
329
369
|
searchMatches: Readonly<{
|
|
@@ -335,14 +375,22 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
335
375
|
[groupId: string]: true;
|
|
336
376
|
};
|
|
337
377
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
378
|
+
colorTopPicks: {
|
|
379
|
+
elementStroke: readonly string[] | null;
|
|
380
|
+
elementBackground: readonly string[] | null;
|
|
381
|
+
bucketFill: readonly string[] | null;
|
|
382
|
+
stickyNoteStroke: readonly string[] | null;
|
|
383
|
+
stickyNoteBackground: readonly string[] | null;
|
|
384
|
+
};
|
|
385
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
338
386
|
};
|
|
339
387
|
captureUpdate: "IMMEDIATELY";
|
|
340
388
|
} | {
|
|
341
389
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
342
|
-
appState: Readonly<AppState>;
|
|
390
|
+
appState: Readonly<import("../types").AppState>;
|
|
343
391
|
captureUpdate: "EVENTUALLY";
|
|
344
392
|
};
|
|
345
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
393
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
346
394
|
} & {
|
|
347
395
|
keyTest?: undefined;
|
|
348
396
|
};
|
|
@@ -353,7 +401,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
353
401
|
trackEvent: {
|
|
354
402
|
category: "canvas";
|
|
355
403
|
};
|
|
356
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
404
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
357
405
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
358
406
|
appState: {
|
|
359
407
|
frameRendering: {
|
|
@@ -379,189 +427,35 @@ export declare const actionupdateFrameRendering: {
|
|
|
379
427
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
380
428
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
381
429
|
isBindingEnabled: boolean;
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
locked: boolean;
|
|
391
|
-
fromSelection: boolean;
|
|
392
|
-
} & import("../types").ActiveTool;
|
|
393
|
-
preferredSelectionTool: {
|
|
394
|
-
type: "selection" | "lasso";
|
|
395
|
-
initialized: boolean;
|
|
396
|
-
};
|
|
397
|
-
penMode: boolean;
|
|
398
|
-
penDetected: boolean;
|
|
399
|
-
exportBackground: boolean;
|
|
400
|
-
exportEmbedScene: boolean;
|
|
401
|
-
exportWithDarkMode: boolean;
|
|
402
|
-
exportScale: number;
|
|
403
|
-
currentItemStrokeColor: string;
|
|
404
|
-
currentItemBackgroundColor: string;
|
|
405
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
406
|
-
currentItemStrokeWidth: number;
|
|
407
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
408
|
-
currentItemRoughness: number;
|
|
409
|
-
currentItemOpacity: number;
|
|
410
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
411
|
-
currentItemFontSize: number;
|
|
412
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
413
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
414
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
415
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
416
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
417
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
418
|
-
viewBackgroundColor: string;
|
|
419
|
-
scrollX: number;
|
|
420
|
-
scrollY: number;
|
|
421
|
-
cursorButton: "up" | "down";
|
|
422
|
-
scrolledOutside: boolean;
|
|
423
|
-
name: string | null;
|
|
424
|
-
isResizing: boolean;
|
|
425
|
-
isRotating: boolean;
|
|
426
|
-
zoom: import("../types").Zoom;
|
|
427
|
-
openMenu: "canvas" | null;
|
|
428
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
429
|
-
openSidebar: {
|
|
430
|
-
name: import("../types").SidebarName;
|
|
431
|
-
tab?: import("../types").SidebarTabName;
|
|
430
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
431
|
+
bindingPreference: "enabled" | "disabled";
|
|
432
|
+
isMidpointSnappingEnabled: boolean;
|
|
433
|
+
showHints: boolean;
|
|
434
|
+
inputDevice: import("../types").InputDevice;
|
|
435
|
+
suggestedBinding: {
|
|
436
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
437
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
432
438
|
} | null;
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
name: "ttd";
|
|
437
|
-
tab: "text-to-diagram" | "mermaid";
|
|
439
|
+
textToolHover: {
|
|
440
|
+
type: "text";
|
|
441
|
+
elementId: ExcalidrawElement["id"];
|
|
438
442
|
} | {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
name: "settings";
|
|
442
|
-
} | {
|
|
443
|
-
name: "elementLinkSelector";
|
|
444
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
445
|
-
};
|
|
446
|
-
defaultSidebarDockedPreference: boolean;
|
|
447
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
448
|
-
selectedElementIds: Readonly<{
|
|
449
|
-
[id: string]: true;
|
|
450
|
-
}>;
|
|
451
|
-
hoveredElementIds: Readonly<{
|
|
452
|
-
[id: string]: true;
|
|
453
|
-
}>;
|
|
454
|
-
previousSelectedElementIds: {
|
|
455
|
-
[id: string]: true;
|
|
456
|
-
};
|
|
457
|
-
selectedElementsAreBeingDragged: boolean;
|
|
458
|
-
shouldCacheIgnoreZoom: boolean;
|
|
459
|
-
toast: {
|
|
460
|
-
message: string;
|
|
461
|
-
closable?: boolean;
|
|
462
|
-
duration?: number;
|
|
463
|
-
} | null;
|
|
464
|
-
zenModeEnabled: boolean;
|
|
465
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
466
|
-
gridSize: number;
|
|
467
|
-
gridStep: number;
|
|
468
|
-
gridModeEnabled: boolean;
|
|
469
|
-
viewModeEnabled: boolean;
|
|
470
|
-
selectedGroupIds: {
|
|
471
|
-
[groupId: string]: boolean;
|
|
472
|
-
};
|
|
473
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
474
|
-
width: number;
|
|
475
|
-
height: number;
|
|
476
|
-
offsetTop: number;
|
|
477
|
-
offsetLeft: number;
|
|
478
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
479
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
480
|
-
stats: {
|
|
481
|
-
open: boolean;
|
|
482
|
-
panels: number;
|
|
483
|
-
};
|
|
484
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
485
|
-
pasteDialog: {
|
|
486
|
-
shown: false;
|
|
487
|
-
data: null;
|
|
443
|
+
type: "container";
|
|
444
|
+
elementId: ExcalidrawElement["id"];
|
|
488
445
|
} | {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
493
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
494
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
495
|
-
originSnapOffset: {
|
|
496
|
-
x: number;
|
|
497
|
-
y: number;
|
|
446
|
+
type: "arrow";
|
|
447
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
448
|
+
anchor: "start" | "end" | "label";
|
|
498
449
|
} | null;
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
504
|
-
searchMatches: Readonly<{
|
|
505
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
506
|
-
matches: readonly import("../types").SearchMatch[];
|
|
507
|
-
}> | null;
|
|
508
|
-
activeLockedId: string | null;
|
|
509
|
-
lockedMultiSelections: {
|
|
510
|
-
[groupId: string]: true;
|
|
511
|
-
};
|
|
512
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
513
|
-
};
|
|
514
|
-
captureUpdate: "EVENTUALLY";
|
|
515
|
-
};
|
|
516
|
-
checked: (appState: AppState) => boolean;
|
|
517
|
-
} & {
|
|
518
|
-
keyTest?: undefined;
|
|
519
|
-
};
|
|
520
|
-
export declare const actionSetFrameAsActiveTool: {
|
|
521
|
-
name: "setFrameAsActiveTool";
|
|
522
|
-
label: string;
|
|
523
|
-
trackEvent: {
|
|
524
|
-
category: "toolbar";
|
|
525
|
-
};
|
|
526
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
527
|
-
viewMode: false;
|
|
528
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
529
|
-
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
530
|
-
appState: {
|
|
450
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
451
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
452
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
453
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
531
454
|
activeTool: {
|
|
532
455
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
533
456
|
locked: boolean;
|
|
534
457
|
fromSelection: boolean;
|
|
535
458
|
} & import("../types").ActiveTool;
|
|
536
|
-
contextMenu: {
|
|
537
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
538
|
-
top: number;
|
|
539
|
-
left: number;
|
|
540
|
-
} | null;
|
|
541
|
-
showWelcomeScreen: boolean;
|
|
542
|
-
isLoading: boolean;
|
|
543
|
-
errorMessage: React.ReactNode;
|
|
544
|
-
activeEmbeddable: {
|
|
545
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
546
|
-
state: "hover" | "active";
|
|
547
|
-
} | null;
|
|
548
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
549
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
550
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
551
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
552
|
-
isBindingEnabled: boolean;
|
|
553
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
554
|
-
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
555
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
556
|
-
frameRendering: {
|
|
557
|
-
enabled: boolean;
|
|
558
|
-
name: boolean;
|
|
559
|
-
outline: boolean;
|
|
560
|
-
clip: boolean;
|
|
561
|
-
};
|
|
562
|
-
editingFrame: string | null;
|
|
563
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
564
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
565
459
|
preferredSelectionTool: {
|
|
566
460
|
type: "selection" | "lasso";
|
|
567
461
|
initialized: boolean;
|
|
@@ -573,11 +467,14 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
573
467
|
exportWithDarkMode: boolean;
|
|
574
468
|
exportScale: number;
|
|
575
469
|
currentItemStrokeColor: string;
|
|
470
|
+
currentItemStickynoteStrokeColor: string;
|
|
471
|
+
currentItemStickynoteBackgroundColor: string;
|
|
576
472
|
currentItemBackgroundColor: string;
|
|
577
473
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
578
|
-
|
|
474
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
579
475
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
580
476
|
currentItemRoughness: number;
|
|
477
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
581
478
|
currentItemOpacity: number;
|
|
582
479
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
583
480
|
currentItemFontSize: number;
|
|
@@ -590,6 +487,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
590
487
|
viewBackgroundColor: string;
|
|
591
488
|
scrollX: number;
|
|
592
489
|
scrollY: number;
|
|
490
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
593
491
|
cursorButton: "up" | "down";
|
|
594
492
|
scrolledOutside: boolean;
|
|
595
493
|
name: string | null;
|
|
@@ -614,6 +512,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
614
512
|
} | {
|
|
615
513
|
name: "elementLinkSelector";
|
|
616
514
|
sourceElementId: ExcalidrawElement["id"];
|
|
515
|
+
} | {
|
|
516
|
+
name: "charts";
|
|
517
|
+
data: import("../charts").Spreadsheet;
|
|
518
|
+
rawText: string;
|
|
617
519
|
};
|
|
618
520
|
defaultSidebarDockedPreference: boolean;
|
|
619
521
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -629,7 +531,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
629
531
|
selectedElementsAreBeingDragged: boolean;
|
|
630
532
|
shouldCacheIgnoreZoom: boolean;
|
|
631
533
|
toast: {
|
|
632
|
-
message:
|
|
534
|
+
message: React.ReactNode;
|
|
633
535
|
closable?: boolean;
|
|
634
536
|
duration?: number;
|
|
635
537
|
} | null;
|
|
@@ -647,20 +549,12 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
647
549
|
height: number;
|
|
648
550
|
offsetTop: number;
|
|
649
551
|
offsetLeft: number;
|
|
650
|
-
fileHandle:
|
|
552
|
+
fileHandle: FileSystemFileHandle | null;
|
|
651
553
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
652
554
|
stats: {
|
|
653
555
|
open: boolean;
|
|
654
556
|
panels: number;
|
|
655
557
|
};
|
|
656
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
657
|
-
pasteDialog: {
|
|
658
|
-
shown: false;
|
|
659
|
-
data: null;
|
|
660
|
-
} | {
|
|
661
|
-
shown: true;
|
|
662
|
-
data: import("../charts").Spreadsheet;
|
|
663
|
-
};
|
|
664
558
|
showHyperlinkPopup: false | "info" | "editor";
|
|
665
559
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
666
560
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -669,8 +563,6 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
669
563
|
y: number;
|
|
670
564
|
} | null;
|
|
671
565
|
objectsSnapModeEnabled: boolean;
|
|
672
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
673
|
-
followedBy: Set<import("../types").SocketId>;
|
|
674
566
|
isCropping: boolean;
|
|
675
567
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
676
568
|
searchMatches: Readonly<{
|
|
@@ -682,12 +574,20 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
682
574
|
[groupId: string]: true;
|
|
683
575
|
};
|
|
684
576
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
577
|
+
colorTopPicks: {
|
|
578
|
+
elementStroke: readonly string[] | null;
|
|
579
|
+
elementBackground: readonly string[] | null;
|
|
580
|
+
bucketFill: readonly string[] | null;
|
|
581
|
+
stickyNoteStroke: readonly string[] | null;
|
|
582
|
+
stickyNoteBackground: readonly string[] | null;
|
|
583
|
+
};
|
|
584
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
685
585
|
};
|
|
686
586
|
captureUpdate: "EVENTUALLY";
|
|
687
587
|
};
|
|
688
|
-
|
|
588
|
+
checked: (appState: Readonly<UIAppState>) => boolean;
|
|
689
589
|
} & {
|
|
690
|
-
keyTest?:
|
|
590
|
+
keyTest?: undefined;
|
|
691
591
|
};
|
|
692
592
|
export declare const actionWrapSelectionInFrame: {
|
|
693
593
|
name: "wrapSelectionInFrame";
|
|
@@ -695,8 +595,8 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
695
595
|
trackEvent: {
|
|
696
596
|
category: "element";
|
|
697
597
|
};
|
|
698
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
699
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
598
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
599
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
700
600
|
elements: ((Readonly<{
|
|
701
601
|
id: string;
|
|
702
602
|
x: number;
|
|
@@ -724,6 +624,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
724
624
|
frameId: string | null;
|
|
725
625
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
726
626
|
updated: number;
|
|
627
|
+
created: number | null;
|
|
727
628
|
link: string | null;
|
|
728
629
|
locked: boolean;
|
|
729
630
|
customData?: Record<string, any>;
|
|
@@ -763,6 +664,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
763
664
|
frameId: string | null;
|
|
764
665
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
765
666
|
updated: number;
|
|
667
|
+
created: number | null;
|
|
766
668
|
link: string | null;
|
|
767
669
|
locked: boolean;
|
|
768
670
|
customData?: Record<string, any>;
|
|
@@ -797,6 +699,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
797
699
|
frameId: string | null;
|
|
798
700
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
799
701
|
updated: number;
|
|
702
|
+
created: number | null;
|
|
800
703
|
link: string | null;
|
|
801
704
|
locked: boolean;
|
|
802
705
|
customData?: Record<string, any>;
|
|
@@ -831,6 +734,43 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
831
734
|
frameId: string | null;
|
|
832
735
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
833
736
|
updated: number;
|
|
737
|
+
created: number | null;
|
|
738
|
+
link: string | null;
|
|
739
|
+
locked: boolean;
|
|
740
|
+
customData?: Record<string, any>;
|
|
741
|
+
}> & Readonly<{
|
|
742
|
+
type: "stickynote";
|
|
743
|
+
baseHeight: number;
|
|
744
|
+
}> & {
|
|
745
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
746
|
+
}) | (Readonly<{
|
|
747
|
+
id: string;
|
|
748
|
+
x: number;
|
|
749
|
+
y: number;
|
|
750
|
+
strokeColor: string;
|
|
751
|
+
backgroundColor: string;
|
|
752
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
753
|
+
strokeWidth: number;
|
|
754
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
755
|
+
roundness: null | {
|
|
756
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
757
|
+
value?: number;
|
|
758
|
+
};
|
|
759
|
+
roughness: number;
|
|
760
|
+
opacity: number;
|
|
761
|
+
width: number;
|
|
762
|
+
height: number;
|
|
763
|
+
angle: import("@excalidraw/math").Radians;
|
|
764
|
+
seed: number;
|
|
765
|
+
version: number;
|
|
766
|
+
versionNonce: number;
|
|
767
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
768
|
+
isDeleted: boolean;
|
|
769
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
770
|
+
frameId: string | null;
|
|
771
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
772
|
+
updated: number;
|
|
773
|
+
created: number | null;
|
|
834
774
|
link: string | null;
|
|
835
775
|
locked: boolean;
|
|
836
776
|
customData?: Record<string, any>;
|
|
@@ -865,6 +805,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
865
805
|
frameId: string | null;
|
|
866
806
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
867
807
|
updated: number;
|
|
808
|
+
created: number | null;
|
|
868
809
|
link: string | null;
|
|
869
810
|
locked: boolean;
|
|
870
811
|
customData?: Record<string, any>;
|
|
@@ -899,6 +840,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
899
840
|
frameId: string | null;
|
|
900
841
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
901
842
|
updated: number;
|
|
843
|
+
created: number | null;
|
|
902
844
|
link: string | null;
|
|
903
845
|
locked: boolean;
|
|
904
846
|
customData?: Record<string, any>;
|
|
@@ -933,6 +875,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
933
875
|
frameId: string | null;
|
|
934
876
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
935
877
|
updated: number;
|
|
878
|
+
created: number | null;
|
|
936
879
|
link: string | null;
|
|
937
880
|
locked: boolean;
|
|
938
881
|
customData?: Record<string, any>;
|
|
@@ -970,6 +913,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
970
913
|
frameId: string | null;
|
|
971
914
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
972
915
|
updated: number;
|
|
916
|
+
created: number | null;
|
|
973
917
|
link: string | null;
|
|
974
918
|
locked: boolean;
|
|
975
919
|
customData?: Record<string, any>;
|
|
@@ -1008,6 +952,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1008
952
|
frameId: string | null;
|
|
1009
953
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1010
954
|
updated: number;
|
|
955
|
+
created: number | null;
|
|
1011
956
|
link: string | null;
|
|
1012
957
|
locked: boolean;
|
|
1013
958
|
customData?: Record<string, any>;
|
|
@@ -1043,6 +988,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1043
988
|
frameId: string | null;
|
|
1044
989
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1045
990
|
updated: number;
|
|
991
|
+
created: number | null;
|
|
1046
992
|
link: string | null;
|
|
1047
993
|
locked: boolean;
|
|
1048
994
|
customData?: Record<string, any>;
|
|
@@ -1078,6 +1024,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1078
1024
|
frameId: string | null;
|
|
1079
1025
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1080
1026
|
updated: number;
|
|
1027
|
+
created: number | null;
|
|
1081
1028
|
link: string | null;
|
|
1082
1029
|
locked: boolean;
|
|
1083
1030
|
customData?: Record<string, any>;
|
|
@@ -1085,15 +1032,17 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1085
1032
|
type: "text";
|
|
1086
1033
|
fontSize: number;
|
|
1087
1034
|
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1035
|
+
baseFontSize: number | null;
|
|
1088
1036
|
text: string;
|
|
1089
1037
|
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
1090
1038
|
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
1091
|
-
containerId: import("@excalidraw/element/types").
|
|
1039
|
+
containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
|
|
1092
1040
|
originalText: string;
|
|
1093
1041
|
autoResize: boolean;
|
|
1094
1042
|
lineHeight: number & {
|
|
1095
1043
|
_brand: "unitlessLineHeight";
|
|
1096
1044
|
};
|
|
1045
|
+
labelPosition?: number | null;
|
|
1097
1046
|
}> & {
|
|
1098
1047
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1099
1048
|
}) | (Readonly<{
|
|
@@ -1123,6 +1072,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1123
1072
|
frameId: string | null;
|
|
1124
1073
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
1125
1074
|
updated: number;
|
|
1075
|
+
created: number | null;
|
|
1126
1076
|
link: string | null;
|
|
1127
1077
|
locked: boolean;
|
|
1128
1078
|
customData?: Record<string, any>;
|
|
@@ -1131,6 +1081,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1131
1081
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1132
1082
|
pressures: readonly number[];
|
|
1133
1083
|
simulatePressure: boolean;
|
|
1084
|
+
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
1134
1085
|
}> & {
|
|
1135
1086
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1136
1087
|
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|