@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,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement } from "@excalidraw/element/types";
|
|
2
2
|
import type { Mutable } from "@excalidraw/common/utility-types";
|
|
3
3
|
import type { AppState } from "../types";
|
|
4
4
|
export declare const actionUnbindText: {
|
|
@@ -46,8 +46,26 @@ export declare const actionBindText: {
|
|
|
46
46
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
47
47
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
48
|
isBindingEnabled: boolean;
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
50
|
+
bindingPreference: "enabled" | "disabled";
|
|
51
|
+
isMidpointSnappingEnabled: boolean;
|
|
52
|
+
showHints: boolean;
|
|
53
|
+
inputDevice: import("../types").InputDevice;
|
|
54
|
+
suggestedBinding: {
|
|
55
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
56
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
57
|
+
} | null;
|
|
58
|
+
textToolHover: {
|
|
59
|
+
type: "text";
|
|
60
|
+
elementId: ExcalidrawElement["id"];
|
|
61
|
+
} | {
|
|
62
|
+
type: "container";
|
|
63
|
+
elementId: ExcalidrawElement["id"];
|
|
64
|
+
} | {
|
|
65
|
+
type: "arrow";
|
|
66
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
67
|
+
anchor: "start" | "end" | "label";
|
|
68
|
+
} | null;
|
|
51
69
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
52
70
|
frameRendering: {
|
|
53
71
|
enabled: boolean;
|
|
@@ -55,9 +73,9 @@ export declare const actionBindText: {
|
|
|
55
73
|
outline: boolean;
|
|
56
74
|
clip: boolean;
|
|
57
75
|
};
|
|
58
|
-
editingFrame:
|
|
59
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
60
|
-
editingTextElement:
|
|
76
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
77
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
78
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
61
79
|
activeTool: {
|
|
62
80
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
63
81
|
locked: boolean;
|
|
@@ -74,11 +92,14 @@ export declare const actionBindText: {
|
|
|
74
92
|
exportWithDarkMode: boolean;
|
|
75
93
|
exportScale: number;
|
|
76
94
|
currentItemStrokeColor: string;
|
|
95
|
+
currentItemStickynoteStrokeColor: string;
|
|
96
|
+
currentItemStickynoteBackgroundColor: string;
|
|
77
97
|
currentItemBackgroundColor: string;
|
|
78
98
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
79
|
-
|
|
99
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
80
100
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
81
101
|
currentItemRoughness: number;
|
|
102
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
82
103
|
currentItemOpacity: number;
|
|
83
104
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
84
105
|
currentItemFontSize: number;
|
|
@@ -91,6 +112,7 @@ export declare const actionBindText: {
|
|
|
91
112
|
viewBackgroundColor: string;
|
|
92
113
|
scrollX: number;
|
|
93
114
|
scrollY: number;
|
|
115
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
94
116
|
cursorButton: "up" | "down";
|
|
95
117
|
scrolledOutside: boolean;
|
|
96
118
|
name: string | null;
|
|
@@ -115,6 +137,10 @@ export declare const actionBindText: {
|
|
|
115
137
|
} | {
|
|
116
138
|
name: "elementLinkSelector";
|
|
117
139
|
sourceElementId: ExcalidrawElement["id"];
|
|
140
|
+
} | {
|
|
141
|
+
name: "charts";
|
|
142
|
+
data: import("../charts").Spreadsheet;
|
|
143
|
+
rawText: string;
|
|
118
144
|
};
|
|
119
145
|
defaultSidebarDockedPreference: boolean;
|
|
120
146
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -127,7 +153,7 @@ export declare const actionBindText: {
|
|
|
127
153
|
selectedElementsAreBeingDragged: boolean;
|
|
128
154
|
shouldCacheIgnoreZoom: boolean;
|
|
129
155
|
toast: {
|
|
130
|
-
message:
|
|
156
|
+
message: React.ReactNode;
|
|
131
157
|
closable?: boolean;
|
|
132
158
|
duration?: number;
|
|
133
159
|
} | null;
|
|
@@ -145,20 +171,12 @@ export declare const actionBindText: {
|
|
|
145
171
|
height: number;
|
|
146
172
|
offsetTop: number;
|
|
147
173
|
offsetLeft: number;
|
|
148
|
-
fileHandle:
|
|
174
|
+
fileHandle: FileSystemFileHandle | null;
|
|
149
175
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
150
176
|
stats: {
|
|
151
177
|
open: boolean;
|
|
152
178
|
panels: number;
|
|
153
179
|
};
|
|
154
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
155
|
-
pasteDialog: {
|
|
156
|
-
shown: false;
|
|
157
|
-
data: null;
|
|
158
|
-
} | {
|
|
159
|
-
shown: true;
|
|
160
|
-
data: import("../charts").Spreadsheet;
|
|
161
|
-
};
|
|
162
180
|
showHyperlinkPopup: false | "info" | "editor";
|
|
163
181
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
164
182
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -167,8 +185,6 @@ export declare const actionBindText: {
|
|
|
167
185
|
y: number;
|
|
168
186
|
} | null;
|
|
169
187
|
objectsSnapModeEnabled: boolean;
|
|
170
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
171
|
-
followedBy: Set<import("../types").SocketId>;
|
|
172
188
|
isCropping: boolean;
|
|
173
189
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
174
190
|
searchMatches: Readonly<{
|
|
@@ -180,6 +196,14 @@ export declare const actionBindText: {
|
|
|
180
196
|
[groupId: string]: true;
|
|
181
197
|
};
|
|
182
198
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
199
|
+
colorTopPicks: {
|
|
200
|
+
elementStroke: readonly string[] | null;
|
|
201
|
+
elementBackground: readonly string[] | null;
|
|
202
|
+
bucketFill: readonly string[] | null;
|
|
203
|
+
stickyNoteStroke: readonly string[] | null;
|
|
204
|
+
stickyNoteBackground: readonly string[] | null;
|
|
205
|
+
};
|
|
206
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
183
207
|
};
|
|
184
208
|
captureUpdate: "IMMEDIATELY";
|
|
185
209
|
};
|
|
@@ -216,8 +240,26 @@ export declare const actionWrapTextInContainer: {
|
|
|
216
240
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
217
241
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
218
242
|
isBindingEnabled: boolean;
|
|
219
|
-
|
|
220
|
-
|
|
243
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
244
|
+
bindingPreference: "enabled" | "disabled";
|
|
245
|
+
isMidpointSnappingEnabled: boolean;
|
|
246
|
+
showHints: boolean;
|
|
247
|
+
inputDevice: import("../types").InputDevice;
|
|
248
|
+
suggestedBinding: {
|
|
249
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
250
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
251
|
+
} | null;
|
|
252
|
+
textToolHover: {
|
|
253
|
+
type: "text";
|
|
254
|
+
elementId: ExcalidrawElement["id"];
|
|
255
|
+
} | {
|
|
256
|
+
type: "container";
|
|
257
|
+
elementId: ExcalidrawElement["id"];
|
|
258
|
+
} | {
|
|
259
|
+
type: "arrow";
|
|
260
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
261
|
+
anchor: "start" | "end" | "label";
|
|
262
|
+
} | null;
|
|
221
263
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
222
264
|
frameRendering: {
|
|
223
265
|
enabled: boolean;
|
|
@@ -225,9 +267,9 @@ export declare const actionWrapTextInContainer: {
|
|
|
225
267
|
outline: boolean;
|
|
226
268
|
clip: boolean;
|
|
227
269
|
};
|
|
228
|
-
editingFrame:
|
|
229
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
230
|
-
editingTextElement:
|
|
270
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
271
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
272
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
231
273
|
activeTool: {
|
|
232
274
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
233
275
|
locked: boolean;
|
|
@@ -244,11 +286,14 @@ export declare const actionWrapTextInContainer: {
|
|
|
244
286
|
exportWithDarkMode: boolean;
|
|
245
287
|
exportScale: number;
|
|
246
288
|
currentItemStrokeColor: string;
|
|
289
|
+
currentItemStickynoteStrokeColor: string;
|
|
290
|
+
currentItemStickynoteBackgroundColor: string;
|
|
247
291
|
currentItemBackgroundColor: string;
|
|
248
292
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
249
|
-
|
|
293
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
250
294
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
251
295
|
currentItemRoughness: number;
|
|
296
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
252
297
|
currentItemOpacity: number;
|
|
253
298
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
254
299
|
currentItemFontSize: number;
|
|
@@ -261,6 +306,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
261
306
|
viewBackgroundColor: string;
|
|
262
307
|
scrollX: number;
|
|
263
308
|
scrollY: number;
|
|
309
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
264
310
|
cursorButton: "up" | "down";
|
|
265
311
|
scrolledOutside: boolean;
|
|
266
312
|
name: string | null;
|
|
@@ -285,6 +331,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
285
331
|
} | {
|
|
286
332
|
name: "elementLinkSelector";
|
|
287
333
|
sourceElementId: ExcalidrawElement["id"];
|
|
334
|
+
} | {
|
|
335
|
+
name: "charts";
|
|
336
|
+
data: import("../charts").Spreadsheet;
|
|
337
|
+
rawText: string;
|
|
288
338
|
};
|
|
289
339
|
defaultSidebarDockedPreference: boolean;
|
|
290
340
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -297,7 +347,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
297
347
|
selectedElementsAreBeingDragged: boolean;
|
|
298
348
|
shouldCacheIgnoreZoom: boolean;
|
|
299
349
|
toast: {
|
|
300
|
-
message:
|
|
350
|
+
message: React.ReactNode;
|
|
301
351
|
closable?: boolean;
|
|
302
352
|
duration?: number;
|
|
303
353
|
} | null;
|
|
@@ -315,20 +365,12 @@ export declare const actionWrapTextInContainer: {
|
|
|
315
365
|
height: number;
|
|
316
366
|
offsetTop: number;
|
|
317
367
|
offsetLeft: number;
|
|
318
|
-
fileHandle:
|
|
368
|
+
fileHandle: FileSystemFileHandle | null;
|
|
319
369
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
320
370
|
stats: {
|
|
321
371
|
open: boolean;
|
|
322
372
|
panels: number;
|
|
323
373
|
};
|
|
324
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
325
|
-
pasteDialog: {
|
|
326
|
-
shown: false;
|
|
327
|
-
data: null;
|
|
328
|
-
} | {
|
|
329
|
-
shown: true;
|
|
330
|
-
data: import("../charts").Spreadsheet;
|
|
331
|
-
};
|
|
332
374
|
showHyperlinkPopup: false | "info" | "editor";
|
|
333
375
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
334
376
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -337,8 +379,6 @@ export declare const actionWrapTextInContainer: {
|
|
|
337
379
|
y: number;
|
|
338
380
|
} | null;
|
|
339
381
|
objectsSnapModeEnabled: boolean;
|
|
340
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
341
|
-
followedBy: Set<import("../types").SocketId>;
|
|
342
382
|
isCropping: boolean;
|
|
343
383
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
344
384
|
searchMatches: Readonly<{
|
|
@@ -350,6 +390,14 @@ export declare const actionWrapTextInContainer: {
|
|
|
350
390
|
[groupId: string]: true;
|
|
351
391
|
};
|
|
352
392
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
393
|
+
colorTopPicks: {
|
|
394
|
+
elementStroke: readonly string[] | null;
|
|
395
|
+
elementBackground: readonly string[] | null;
|
|
396
|
+
bucketFill: readonly string[] | null;
|
|
397
|
+
stickyNoteStroke: readonly string[] | null;
|
|
398
|
+
stickyNoteBackground: readonly string[] | null;
|
|
399
|
+
};
|
|
400
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
353
401
|
};
|
|
354
402
|
captureUpdate: "IMMEDIATELY";
|
|
355
403
|
};
|