@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,21 +1,21 @@
|
|
|
1
|
-
import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
-
import type { AppClassProperties,
|
|
1
|
+
import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
+
import type { AppClassProperties, UIAppState } from "../types";
|
|
3
3
|
export declare const actionGroup: {
|
|
4
4
|
name: "group";
|
|
5
5
|
label: string;
|
|
6
|
-
icon: (appState:
|
|
6
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
11
|
-
appState: Readonly<AppState>;
|
|
10
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => false | {
|
|
11
|
+
appState: Readonly<import("../types").AppState>;
|
|
12
12
|
elements: readonly OrderedExcalidrawElement[];
|
|
13
13
|
captureUpdate: "EVENTUALLY";
|
|
14
14
|
} | {
|
|
15
15
|
appState: {
|
|
16
|
-
editingGroupId: AppState["editingGroupId"];
|
|
17
|
-
selectedElementIds: AppState["selectedElementIds"];
|
|
18
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
16
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
17
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
18
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
19
19
|
contextMenu: {
|
|
20
20
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
21
21
|
top: number;
|
|
@@ -33,8 +33,26 @@ export declare const actionGroup: {
|
|
|
33
33
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
34
34
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
35
35
|
isBindingEnabled: boolean;
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
37
|
+
bindingPreference: "enabled" | "disabled";
|
|
38
|
+
isMidpointSnappingEnabled: boolean;
|
|
39
|
+
showHints: boolean;
|
|
40
|
+
inputDevice: import("../types").InputDevice;
|
|
41
|
+
suggestedBinding: {
|
|
42
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
43
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
44
|
+
} | null;
|
|
45
|
+
textToolHover: {
|
|
46
|
+
type: "text";
|
|
47
|
+
elementId: ExcalidrawElement["id"];
|
|
48
|
+
} | {
|
|
49
|
+
type: "container";
|
|
50
|
+
elementId: ExcalidrawElement["id"];
|
|
51
|
+
} | {
|
|
52
|
+
type: "arrow";
|
|
53
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
54
|
+
anchor: "start" | "end" | "label";
|
|
55
|
+
} | null;
|
|
38
56
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
39
57
|
frameRendering: {
|
|
40
58
|
enabled: boolean;
|
|
@@ -42,9 +60,9 @@ export declare const actionGroup: {
|
|
|
42
60
|
outline: boolean;
|
|
43
61
|
clip: boolean;
|
|
44
62
|
};
|
|
45
|
-
editingFrame:
|
|
46
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
47
|
-
editingTextElement:
|
|
63
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
64
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
65
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
48
66
|
activeTool: {
|
|
49
67
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
50
68
|
locked: boolean;
|
|
@@ -61,11 +79,14 @@ export declare const actionGroup: {
|
|
|
61
79
|
exportWithDarkMode: boolean;
|
|
62
80
|
exportScale: number;
|
|
63
81
|
currentItemStrokeColor: string;
|
|
82
|
+
currentItemStickynoteStrokeColor: string;
|
|
83
|
+
currentItemStickynoteBackgroundColor: string;
|
|
64
84
|
currentItemBackgroundColor: string;
|
|
65
85
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
66
|
-
|
|
86
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
67
87
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
68
88
|
currentItemRoughness: number;
|
|
89
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
69
90
|
currentItemOpacity: number;
|
|
70
91
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
71
92
|
currentItemFontSize: number;
|
|
@@ -78,6 +99,7 @@ export declare const actionGroup: {
|
|
|
78
99
|
viewBackgroundColor: string;
|
|
79
100
|
scrollX: number;
|
|
80
101
|
scrollY: number;
|
|
102
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
81
103
|
cursorButton: "up" | "down";
|
|
82
104
|
scrolledOutside: boolean;
|
|
83
105
|
name: string | null;
|
|
@@ -102,6 +124,10 @@ export declare const actionGroup: {
|
|
|
102
124
|
} | {
|
|
103
125
|
name: "elementLinkSelector";
|
|
104
126
|
sourceElementId: ExcalidrawElement["id"];
|
|
127
|
+
} | {
|
|
128
|
+
name: "charts";
|
|
129
|
+
data: import("../charts").Spreadsheet;
|
|
130
|
+
rawText: string;
|
|
105
131
|
};
|
|
106
132
|
defaultSidebarDockedPreference: boolean;
|
|
107
133
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -114,7 +140,7 @@ export declare const actionGroup: {
|
|
|
114
140
|
selectedElementsAreBeingDragged: boolean;
|
|
115
141
|
shouldCacheIgnoreZoom: boolean;
|
|
116
142
|
toast: {
|
|
117
|
-
message:
|
|
143
|
+
message: React.ReactNode;
|
|
118
144
|
closable?: boolean;
|
|
119
145
|
duration?: number;
|
|
120
146
|
} | null;
|
|
@@ -128,20 +154,12 @@ export declare const actionGroup: {
|
|
|
128
154
|
height: number;
|
|
129
155
|
offsetTop: number;
|
|
130
156
|
offsetLeft: number;
|
|
131
|
-
fileHandle:
|
|
157
|
+
fileHandle: FileSystemFileHandle | null;
|
|
132
158
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
133
159
|
stats: {
|
|
134
160
|
open: boolean;
|
|
135
161
|
panels: number;
|
|
136
162
|
};
|
|
137
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
138
|
-
pasteDialog: {
|
|
139
|
-
shown: false;
|
|
140
|
-
data: null;
|
|
141
|
-
} | {
|
|
142
|
-
shown: true;
|
|
143
|
-
data: import("../charts").Spreadsheet;
|
|
144
|
-
};
|
|
145
163
|
showHyperlinkPopup: false | "info" | "editor";
|
|
146
164
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
147
165
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -150,8 +168,6 @@ export declare const actionGroup: {
|
|
|
150
168
|
y: number;
|
|
151
169
|
} | null;
|
|
152
170
|
objectsSnapModeEnabled: boolean;
|
|
153
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
154
|
-
followedBy: Set<import("../types").SocketId>;
|
|
155
171
|
isCropping: boolean;
|
|
156
172
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
157
173
|
searchMatches: Readonly<{
|
|
@@ -163,11 +179,19 @@ export declare const actionGroup: {
|
|
|
163
179
|
[groupId: string]: true;
|
|
164
180
|
};
|
|
165
181
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
182
|
+
colorTopPicks: {
|
|
183
|
+
elementStroke: readonly string[] | null;
|
|
184
|
+
elementBackground: readonly string[] | null;
|
|
185
|
+
bucketFill: readonly string[] | null;
|
|
186
|
+
stickyNoteStroke: readonly string[] | null;
|
|
187
|
+
stickyNoteBackground: readonly string[] | null;
|
|
188
|
+
};
|
|
189
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
166
190
|
};
|
|
167
191
|
elements: OrderedExcalidrawElement[];
|
|
168
192
|
captureUpdate: "IMMEDIATELY";
|
|
169
193
|
};
|
|
170
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
194
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
171
195
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
172
196
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
173
197
|
} & {
|
|
@@ -176,19 +200,19 @@ export declare const actionGroup: {
|
|
|
176
200
|
export declare const actionUngroup: {
|
|
177
201
|
name: "ungroup";
|
|
178
202
|
label: string;
|
|
179
|
-
icon: (appState:
|
|
203
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
180
204
|
trackEvent: {
|
|
181
205
|
category: "element";
|
|
182
206
|
};
|
|
183
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
184
|
-
appState: Readonly<AppState>;
|
|
207
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
208
|
+
appState: Readonly<import("../types").AppState>;
|
|
185
209
|
elements: readonly OrderedExcalidrawElement[];
|
|
186
210
|
captureUpdate: "EVENTUALLY";
|
|
187
211
|
} | {
|
|
188
212
|
appState: {
|
|
189
|
-
editingGroupId: AppState["editingGroupId"];
|
|
190
|
-
selectedElementIds: AppState["selectedElementIds"];
|
|
191
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
213
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
214
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
215
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
192
216
|
contextMenu: {
|
|
193
217
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
194
218
|
top: number;
|
|
@@ -206,8 +230,26 @@ export declare const actionUngroup: {
|
|
|
206
230
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
207
231
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
208
232
|
isBindingEnabled: boolean;
|
|
209
|
-
|
|
210
|
-
|
|
233
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
234
|
+
bindingPreference: "enabled" | "disabled";
|
|
235
|
+
isMidpointSnappingEnabled: boolean;
|
|
236
|
+
showHints: boolean;
|
|
237
|
+
inputDevice: import("../types").InputDevice;
|
|
238
|
+
suggestedBinding: {
|
|
239
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
240
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
241
|
+
} | null;
|
|
242
|
+
textToolHover: {
|
|
243
|
+
type: "text";
|
|
244
|
+
elementId: ExcalidrawElement["id"];
|
|
245
|
+
} | {
|
|
246
|
+
type: "container";
|
|
247
|
+
elementId: ExcalidrawElement["id"];
|
|
248
|
+
} | {
|
|
249
|
+
type: "arrow";
|
|
250
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
251
|
+
anchor: "start" | "end" | "label";
|
|
252
|
+
} | null;
|
|
211
253
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
212
254
|
frameRendering: {
|
|
213
255
|
enabled: boolean;
|
|
@@ -215,9 +257,9 @@ export declare const actionUngroup: {
|
|
|
215
257
|
outline: boolean;
|
|
216
258
|
clip: boolean;
|
|
217
259
|
};
|
|
218
|
-
editingFrame:
|
|
219
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
220
|
-
editingTextElement:
|
|
260
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
261
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
262
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
221
263
|
activeTool: {
|
|
222
264
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
223
265
|
locked: boolean;
|
|
@@ -234,11 +276,14 @@ export declare const actionUngroup: {
|
|
|
234
276
|
exportWithDarkMode: boolean;
|
|
235
277
|
exportScale: number;
|
|
236
278
|
currentItemStrokeColor: string;
|
|
279
|
+
currentItemStickynoteStrokeColor: string;
|
|
280
|
+
currentItemStickynoteBackgroundColor: string;
|
|
237
281
|
currentItemBackgroundColor: string;
|
|
238
282
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
239
|
-
|
|
283
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
240
284
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
241
285
|
currentItemRoughness: number;
|
|
286
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
242
287
|
currentItemOpacity: number;
|
|
243
288
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
244
289
|
currentItemFontSize: number;
|
|
@@ -251,6 +296,7 @@ export declare const actionUngroup: {
|
|
|
251
296
|
viewBackgroundColor: string;
|
|
252
297
|
scrollX: number;
|
|
253
298
|
scrollY: number;
|
|
299
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
254
300
|
cursorButton: "up" | "down";
|
|
255
301
|
scrolledOutside: boolean;
|
|
256
302
|
name: string | null;
|
|
@@ -275,6 +321,10 @@ export declare const actionUngroup: {
|
|
|
275
321
|
} | {
|
|
276
322
|
name: "elementLinkSelector";
|
|
277
323
|
sourceElementId: ExcalidrawElement["id"];
|
|
324
|
+
} | {
|
|
325
|
+
name: "charts";
|
|
326
|
+
data: import("../charts").Spreadsheet;
|
|
327
|
+
rawText: string;
|
|
278
328
|
};
|
|
279
329
|
defaultSidebarDockedPreference: boolean;
|
|
280
330
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -287,7 +337,7 @@ export declare const actionUngroup: {
|
|
|
287
337
|
selectedElementsAreBeingDragged: boolean;
|
|
288
338
|
shouldCacheIgnoreZoom: boolean;
|
|
289
339
|
toast: {
|
|
290
|
-
message:
|
|
340
|
+
message: React.ReactNode;
|
|
291
341
|
closable?: boolean;
|
|
292
342
|
duration?: number;
|
|
293
343
|
} | null;
|
|
@@ -301,20 +351,12 @@ export declare const actionUngroup: {
|
|
|
301
351
|
height: number;
|
|
302
352
|
offsetTop: number;
|
|
303
353
|
offsetLeft: number;
|
|
304
|
-
fileHandle:
|
|
354
|
+
fileHandle: FileSystemFileHandle | null;
|
|
305
355
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
306
356
|
stats: {
|
|
307
357
|
open: boolean;
|
|
308
358
|
panels: number;
|
|
309
359
|
};
|
|
310
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
311
|
-
pasteDialog: {
|
|
312
|
-
shown: false;
|
|
313
|
-
data: null;
|
|
314
|
-
} | {
|
|
315
|
-
shown: true;
|
|
316
|
-
data: import("../charts").Spreadsheet;
|
|
317
|
-
};
|
|
318
360
|
showHyperlinkPopup: false | "info" | "editor";
|
|
319
361
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
320
362
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -323,8 +365,6 @@ export declare const actionUngroup: {
|
|
|
323
365
|
y: number;
|
|
324
366
|
} | null;
|
|
325
367
|
objectsSnapModeEnabled: boolean;
|
|
326
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
327
|
-
followedBy: Set<import("../types").SocketId>;
|
|
328
368
|
isCropping: boolean;
|
|
329
369
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
330
370
|
searchMatches: Readonly<{
|
|
@@ -336,12 +376,20 @@ export declare const actionUngroup: {
|
|
|
336
376
|
[groupId: string]: true;
|
|
337
377
|
};
|
|
338
378
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
379
|
+
colorTopPicks: {
|
|
380
|
+
elementStroke: readonly string[] | null;
|
|
381
|
+
elementBackground: readonly string[] | null;
|
|
382
|
+
bucketFill: readonly string[] | null;
|
|
383
|
+
stickyNoteStroke: readonly string[] | null;
|
|
384
|
+
stickyNoteBackground: readonly string[] | null;
|
|
385
|
+
};
|
|
386
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
339
387
|
};
|
|
340
388
|
elements: OrderedExcalidrawElement[];
|
|
341
389
|
captureUpdate: "IMMEDIATELY";
|
|
342
390
|
};
|
|
343
391
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
344
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
392
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
345
393
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
346
394
|
} & {
|
|
347
395
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -2,7 +2,7 @@ import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
|
2
2
|
export declare const actionToggleLinearEditor: {
|
|
3
3
|
name: "toggleLinearEditor";
|
|
4
4
|
category: string;
|
|
5
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
5
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
|
|
6
6
|
keywords: string[];
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
@@ -27,6 +27,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
27
27
|
};
|
|
28
28
|
arrowStartIsInside: boolean;
|
|
29
29
|
altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
30
|
+
arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
30
31
|
}>;
|
|
31
32
|
isDragging: boolean;
|
|
32
33
|
lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
@@ -37,6 +38,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
37
38
|
}>;
|
|
38
39
|
hoverPointIndex: number;
|
|
39
40
|
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
41
|
+
hoveredFocusPointBinding: "start" | "end" | null;
|
|
42
|
+
draggedFocusPointBinding: "start" | "end" | null;
|
|
40
43
|
elbowed: boolean;
|
|
41
44
|
customLineAngle: number | null;
|
|
42
45
|
pointerDownState: never;
|
|
@@ -58,8 +61,26 @@ export declare const actionToggleLinearEditor: {
|
|
|
58
61
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
59
62
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
63
|
isBindingEnabled: boolean;
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
65
|
+
bindingPreference: "enabled" | "disabled";
|
|
66
|
+
isMidpointSnappingEnabled: boolean;
|
|
67
|
+
showHints: boolean;
|
|
68
|
+
inputDevice: import("../types").InputDevice;
|
|
69
|
+
suggestedBinding: {
|
|
70
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
71
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
72
|
+
} | null;
|
|
73
|
+
textToolHover: {
|
|
74
|
+
type: "text";
|
|
75
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
76
|
+
} | {
|
|
77
|
+
type: "container";
|
|
78
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
79
|
+
} | {
|
|
80
|
+
type: "arrow";
|
|
81
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
82
|
+
anchor: "start" | "end" | "label";
|
|
83
|
+
} | null;
|
|
63
84
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
64
85
|
frameRendering: {
|
|
65
86
|
enabled: boolean;
|
|
@@ -67,9 +88,9 @@ export declare const actionToggleLinearEditor: {
|
|
|
67
88
|
outline: boolean;
|
|
68
89
|
clip: boolean;
|
|
69
90
|
};
|
|
70
|
-
editingFrame:
|
|
71
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
72
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
91
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
92
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
93
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
73
94
|
activeTool: {
|
|
74
95
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
75
96
|
locked: boolean;
|
|
@@ -86,11 +107,14 @@ export declare const actionToggleLinearEditor: {
|
|
|
86
107
|
exportWithDarkMode: boolean;
|
|
87
108
|
exportScale: number;
|
|
88
109
|
currentItemStrokeColor: string;
|
|
110
|
+
currentItemStickynoteStrokeColor: string;
|
|
111
|
+
currentItemStickynoteBackgroundColor: string;
|
|
89
112
|
currentItemBackgroundColor: string;
|
|
90
113
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
91
|
-
|
|
114
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
92
115
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
93
116
|
currentItemRoughness: number;
|
|
117
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
94
118
|
currentItemOpacity: number;
|
|
95
119
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
96
120
|
currentItemFontSize: number;
|
|
@@ -103,6 +127,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
103
127
|
viewBackgroundColor: string;
|
|
104
128
|
scrollX: number;
|
|
105
129
|
scrollY: number;
|
|
130
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
106
131
|
cursorButton: "up" | "down";
|
|
107
132
|
scrolledOutside: boolean;
|
|
108
133
|
name: string | null;
|
|
@@ -127,6 +152,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
127
152
|
} | {
|
|
128
153
|
name: "elementLinkSelector";
|
|
129
154
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
155
|
+
} | {
|
|
156
|
+
name: "charts";
|
|
157
|
+
data: import("../charts").Spreadsheet;
|
|
158
|
+
rawText: string;
|
|
130
159
|
};
|
|
131
160
|
defaultSidebarDockedPreference: boolean;
|
|
132
161
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -142,7 +171,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
142
171
|
selectedElementsAreBeingDragged: boolean;
|
|
143
172
|
shouldCacheIgnoreZoom: boolean;
|
|
144
173
|
toast: {
|
|
145
|
-
message:
|
|
174
|
+
message: React.ReactNode;
|
|
146
175
|
closable?: boolean;
|
|
147
176
|
duration?: number;
|
|
148
177
|
} | null;
|
|
@@ -160,20 +189,12 @@ export declare const actionToggleLinearEditor: {
|
|
|
160
189
|
height: number;
|
|
161
190
|
offsetTop: number;
|
|
162
191
|
offsetLeft: number;
|
|
163
|
-
fileHandle:
|
|
192
|
+
fileHandle: FileSystemFileHandle | null;
|
|
164
193
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
165
194
|
stats: {
|
|
166
195
|
open: boolean;
|
|
167
196
|
panels: number;
|
|
168
197
|
};
|
|
169
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
170
|
-
pasteDialog: {
|
|
171
|
-
shown: false;
|
|
172
|
-
data: null;
|
|
173
|
-
} | {
|
|
174
|
-
shown: true;
|
|
175
|
-
data: import("../charts").Spreadsheet;
|
|
176
|
-
};
|
|
177
198
|
showHyperlinkPopup: false | "info" | "editor";
|
|
178
199
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
179
200
|
originSnapOffset: {
|
|
@@ -181,8 +202,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
181
202
|
y: number;
|
|
182
203
|
} | null;
|
|
183
204
|
objectsSnapModeEnabled: boolean;
|
|
184
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
185
|
-
followedBy: Set<import("../types").SocketId>;
|
|
186
205
|
isCropping: boolean;
|
|
187
206
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
188
207
|
searchMatches: Readonly<{
|
|
@@ -194,6 +213,14 @@ export declare const actionToggleLinearEditor: {
|
|
|
194
213
|
[groupId: string]: true;
|
|
195
214
|
};
|
|
196
215
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
216
|
+
colorTopPicks: {
|
|
217
|
+
elementStroke: readonly string[] | null;
|
|
218
|
+
elementBackground: readonly string[] | null;
|
|
219
|
+
bucketFill: readonly string[] | null;
|
|
220
|
+
stickyNoteStroke: readonly string[] | null;
|
|
221
|
+
stickyNoteBackground: readonly string[] | null;
|
|
222
|
+
};
|
|
223
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
197
224
|
};
|
|
198
225
|
captureUpdate: "IMMEDIATELY";
|
|
199
226
|
};
|
|
@@ -206,7 +233,7 @@ export declare const actionTogglePolygon: {
|
|
|
206
233
|
category: string;
|
|
207
234
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
208
235
|
keywords: string[];
|
|
209
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
236
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
210
237
|
trackEvent: {
|
|
211
238
|
category: "element";
|
|
212
239
|
};
|
|
@@ -239,6 +266,7 @@ export declare const actionTogglePolygon: {
|
|
|
239
266
|
frameId: string | null;
|
|
240
267
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
241
268
|
updated: number;
|
|
269
|
+
created: number | null;
|
|
242
270
|
link: string | null;
|
|
243
271
|
locked: boolean;
|
|
244
272
|
customData?: Record<string, any>;
|
|
@@ -278,6 +306,7 @@ export declare const actionTogglePolygon: {
|
|
|
278
306
|
frameId: string | null;
|
|
279
307
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
280
308
|
updated: number;
|
|
309
|
+
created: number | null;
|
|
281
310
|
link: string | null;
|
|
282
311
|
locked: boolean;
|
|
283
312
|
customData?: Record<string, any>;
|
|
@@ -312,6 +341,7 @@ export declare const actionTogglePolygon: {
|
|
|
312
341
|
frameId: string | null;
|
|
313
342
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
314
343
|
updated: number;
|
|
344
|
+
created: number | null;
|
|
315
345
|
link: string | null;
|
|
316
346
|
locked: boolean;
|
|
317
347
|
customData?: Record<string, any>;
|
|
@@ -346,6 +376,43 @@ export declare const actionTogglePolygon: {
|
|
|
346
376
|
frameId: string | null;
|
|
347
377
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
348
378
|
updated: number;
|
|
379
|
+
created: number | null;
|
|
380
|
+
link: string | null;
|
|
381
|
+
locked: boolean;
|
|
382
|
+
customData?: Record<string, any>;
|
|
383
|
+
}> & Readonly<{
|
|
384
|
+
type: "stickynote";
|
|
385
|
+
baseHeight: number;
|
|
386
|
+
}> & {
|
|
387
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
388
|
+
}) | (Readonly<{
|
|
389
|
+
id: string;
|
|
390
|
+
x: number;
|
|
391
|
+
y: number;
|
|
392
|
+
strokeColor: string;
|
|
393
|
+
backgroundColor: string;
|
|
394
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
395
|
+
strokeWidth: number;
|
|
396
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
397
|
+
roundness: null | {
|
|
398
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
399
|
+
value?: number;
|
|
400
|
+
};
|
|
401
|
+
roughness: number;
|
|
402
|
+
opacity: number;
|
|
403
|
+
width: number;
|
|
404
|
+
height: number;
|
|
405
|
+
angle: import("@excalidraw/math").Radians;
|
|
406
|
+
seed: number;
|
|
407
|
+
version: number;
|
|
408
|
+
versionNonce: number;
|
|
409
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
410
|
+
isDeleted: boolean;
|
|
411
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
412
|
+
frameId: string | null;
|
|
413
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
414
|
+
updated: number;
|
|
415
|
+
created: number | null;
|
|
349
416
|
link: string | null;
|
|
350
417
|
locked: boolean;
|
|
351
418
|
customData?: Record<string, any>;
|
|
@@ -380,6 +447,7 @@ export declare const actionTogglePolygon: {
|
|
|
380
447
|
frameId: string | null;
|
|
381
448
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
382
449
|
updated: number;
|
|
450
|
+
created: number | null;
|
|
383
451
|
link: string | null;
|
|
384
452
|
locked: boolean;
|
|
385
453
|
customData?: Record<string, any>;
|
|
@@ -414,6 +482,7 @@ export declare const actionTogglePolygon: {
|
|
|
414
482
|
frameId: string | null;
|
|
415
483
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
416
484
|
updated: number;
|
|
485
|
+
created: number | null;
|
|
417
486
|
link: string | null;
|
|
418
487
|
locked: boolean;
|
|
419
488
|
customData?: Record<string, any>;
|
|
@@ -448,6 +517,7 @@ export declare const actionTogglePolygon: {
|
|
|
448
517
|
frameId: string | null;
|
|
449
518
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
450
519
|
updated: number;
|
|
520
|
+
created: number | null;
|
|
451
521
|
link: string | null;
|
|
452
522
|
locked: boolean;
|
|
453
523
|
customData?: Record<string, any>;
|
|
@@ -485,6 +555,7 @@ export declare const actionTogglePolygon: {
|
|
|
485
555
|
frameId: string | null;
|
|
486
556
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
487
557
|
updated: number;
|
|
558
|
+
created: number | null;
|
|
488
559
|
link: string | null;
|
|
489
560
|
locked: boolean;
|
|
490
561
|
customData?: Record<string, any>;
|
|
@@ -523,6 +594,7 @@ export declare const actionTogglePolygon: {
|
|
|
523
594
|
frameId: string | null;
|
|
524
595
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
525
596
|
updated: number;
|
|
597
|
+
created: number | null;
|
|
526
598
|
link: string | null;
|
|
527
599
|
locked: boolean;
|
|
528
600
|
customData?: Record<string, any>;
|
|
@@ -558,6 +630,7 @@ export declare const actionTogglePolygon: {
|
|
|
558
630
|
frameId: string | null;
|
|
559
631
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
560
632
|
updated: number;
|
|
633
|
+
created: number | null;
|
|
561
634
|
link: string | null;
|
|
562
635
|
locked: boolean;
|
|
563
636
|
customData?: Record<string, any>;
|
|
@@ -593,6 +666,7 @@ export declare const actionTogglePolygon: {
|
|
|
593
666
|
frameId: string | null;
|
|
594
667
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
595
668
|
updated: number;
|
|
669
|
+
created: number | null;
|
|
596
670
|
link: string | null;
|
|
597
671
|
locked: boolean;
|
|
598
672
|
customData?: Record<string, any>;
|
|
@@ -600,15 +674,17 @@ export declare const actionTogglePolygon: {
|
|
|
600
674
|
type: "text";
|
|
601
675
|
fontSize: number;
|
|
602
676
|
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
677
|
+
baseFontSize: number | null;
|
|
603
678
|
text: string;
|
|
604
679
|
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
605
680
|
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
606
|
-
containerId: import("@excalidraw/element/types").
|
|
681
|
+
containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
|
|
607
682
|
originalText: string;
|
|
608
683
|
autoResize: boolean;
|
|
609
684
|
lineHeight: number & {
|
|
610
685
|
_brand: "unitlessLineHeight";
|
|
611
686
|
};
|
|
687
|
+
labelPosition?: number | null;
|
|
612
688
|
}> & {
|
|
613
689
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
614
690
|
}) | (Readonly<{
|
|
@@ -638,6 +714,7 @@ export declare const actionTogglePolygon: {
|
|
|
638
714
|
frameId: string | null;
|
|
639
715
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
640
716
|
updated: number;
|
|
717
|
+
created: number | null;
|
|
641
718
|
link: string | null;
|
|
642
719
|
locked: boolean;
|
|
643
720
|
customData?: Record<string, any>;
|
|
@@ -646,6 +723,7 @@ export declare const actionTogglePolygon: {
|
|
|
646
723
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
647
724
|
pressures: readonly number[];
|
|
648
725
|
simulatePressure: boolean;
|
|
726
|
+
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
649
727
|
}> & {
|
|
650
728
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
651
729
|
}))[];
|