@excalidraw/math 0.18.0-3a5ef40 → 0.18.0-3c916c5
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 +321 -118
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +1 -1
- 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 +66 -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 +16 -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 +5 -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 +6 -3
- package/dist/types/element/src/binding.d.ts +94 -17
- package/dist/types/element/src/bounds.d.ts +32 -9
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +21 -5
- package/dist/types/element/src/comparisons.d.ts +8 -5
- package/dist/types/element/src/convertToShape.d.ts +23 -0
- package/dist/types/element/src/cropElement.d.ts +36 -4
- package/dist/types/element/src/delta.d.ts +30 -2
- package/dist/types/element/src/distribute.d.ts +5 -2
- package/dist/types/element/src/dragElements.d.ts +34 -2
- package/dist/types/element/src/duplicate.d.ts +64 -3
- package/dist/types/element/src/elbowArrow.d.ts +7 -0
- package/dist/types/element/src/embeddable.d.ts +3 -2
- package/dist/types/element/src/flowchart.d.ts +9 -11
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +30 -11
- package/dist/types/element/src/groups.d.ts +10 -15
- package/dist/types/element/src/image.d.ts +5 -2
- package/dist/types/element/src/index.d.ts +8 -1
- package/dist/types/element/src/linearElementEditor.d.ts +34 -11
- package/dist/types/element/src/listMarker.d.ts +39 -0
- package/dist/types/element/src/mutateElement.d.ts +3 -1
- package/dist/types/element/src/newElement.d.ts +55 -3
- package/dist/types/element/src/renderElement.d.ts +31 -7
- package/dist/types/element/src/renderEnvironment.d.ts +66 -0
- package/dist/types/element/src/resizeElements.d.ts +14 -4
- package/dist/types/element/src/selection.d.ts +11 -13
- package/dist/types/element/src/shape.d.ts +30 -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 +191 -0
- package/dist/types/element/src/textElement.d.ts +23 -11
- package/dist/types/element/src/textMeasurements.d.ts +15 -11
- package/dist/types/element/src/textWrapping.d.ts +28 -1
- package/dist/types/element/src/transform.d.ts +31 -8
- 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/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 +86 -213
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +361 -1024
- 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 +4 -515
- 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 +138 -364
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +151 -684
- package/dist/types/excalidraw/actions/actionGroup.d.ts +100 -52
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +97 -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 +47 -23
- 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/actionToggleShowHints.d.ts +197 -0
- 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/actionToggleWrap.d.ts +12 -0
- 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 +6 -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 +43 -17
- package/dist/types/excalidraw/charts/charts.bar.d.ts +3 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +33 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +3 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +3 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +8 -0
- package/dist/types/excalidraw/clipboard.d.ts +2 -5
- 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.clipboard.d.ts +31 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
- package/dist/types/excalidraw/components/App.d.ts +372 -116
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.host.d.ts +102 -0
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
- package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +93 -0
- package/dist/types/excalidraw/components/App.text.d.ts +146 -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 +123 -0
- package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
- package/dist/types/excalidraw/components/App.wrap.d.ts +31 -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 +4 -3
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
- package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
- package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
- package/dist/types/excalidraw/components/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/{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 +4 -2
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +8 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +26 -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 +26 -2
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
- package/dist/types/excalidraw/components/UserList.d.ts +3 -2
- package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -2
- 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/DropdownMenuItemContentRadio.d.ts +2 -1
- package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
- package/dist/types/excalidraw/components/icons.d.ts +27 -10
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -4
- package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
- package/dist/types/excalidraw/data/blob.d.ts +117 -70
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
- package/dist/types/excalidraw/data/index.d.ts +9 -10
- package/dist/types/excalidraw/data/json.d.ts +67 -35
- 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 +12 -8
- package/dist/types/excalidraw/history.d.ts +10 -4
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
- package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
- package/dist/types/excalidraw/lasso/index.d.ts +2 -3
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
- package/dist/types/excalidraw/mermaid.d.ts +7 -0
- package/dist/types/excalidraw/reactUtils.d.ts +1 -1
- package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
- package/dist/types/excalidraw/scene/export.d.ts +344 -21
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +30 -5
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +670 -43
- package/dist/types/excalidraw/viewport.d.ts +302 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +17 -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/index.d.ts +4 -3
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/package.json +2 -2
- 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 -47
- 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/export.d.ts +0 -35
- 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
|
-
|
|
17
|
-
|
|
18
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
16
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
17
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
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
|
-
|
|
190
|
-
|
|
191
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
213
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
214
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
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;
|
|
@@ -60,8 +61,26 @@ export declare const actionToggleLinearEditor: {
|
|
|
60
61
|
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
61
62
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
62
63
|
isBindingEnabled: boolean;
|
|
63
|
-
|
|
64
|
-
|
|
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;
|
|
65
84
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
66
85
|
frameRendering: {
|
|
67
86
|
enabled: boolean;
|
|
@@ -69,9 +88,9 @@ export declare const actionToggleLinearEditor: {
|
|
|
69
88
|
outline: boolean;
|
|
70
89
|
clip: boolean;
|
|
71
90
|
};
|
|
72
|
-
editingFrame:
|
|
73
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
74
|
-
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;
|
|
75
94
|
activeTool: {
|
|
76
95
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
77
96
|
locked: boolean;
|
|
@@ -88,11 +107,14 @@ export declare const actionToggleLinearEditor: {
|
|
|
88
107
|
exportWithDarkMode: boolean;
|
|
89
108
|
exportScale: number;
|
|
90
109
|
currentItemStrokeColor: string;
|
|
110
|
+
currentItemStickynoteStrokeColor: string;
|
|
111
|
+
currentItemStickynoteBackgroundColor: string;
|
|
91
112
|
currentItemBackgroundColor: string;
|
|
92
113
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
93
|
-
|
|
114
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
94
115
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
95
116
|
currentItemRoughness: number;
|
|
117
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
96
118
|
currentItemOpacity: number;
|
|
97
119
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
98
120
|
currentItemFontSize: number;
|
|
@@ -105,6 +127,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
105
127
|
viewBackgroundColor: string;
|
|
106
128
|
scrollX: number;
|
|
107
129
|
scrollY: number;
|
|
130
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
108
131
|
cursorButton: "up" | "down";
|
|
109
132
|
scrolledOutside: boolean;
|
|
110
133
|
name: string | null;
|
|
@@ -129,6 +152,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
129
152
|
} | {
|
|
130
153
|
name: "elementLinkSelector";
|
|
131
154
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
155
|
+
} | {
|
|
156
|
+
name: "charts";
|
|
157
|
+
data: import("../charts").Spreadsheet;
|
|
158
|
+
rawText: string;
|
|
132
159
|
};
|
|
133
160
|
defaultSidebarDockedPreference: boolean;
|
|
134
161
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -144,7 +171,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
144
171
|
selectedElementsAreBeingDragged: boolean;
|
|
145
172
|
shouldCacheIgnoreZoom: boolean;
|
|
146
173
|
toast: {
|
|
147
|
-
message:
|
|
174
|
+
message: React.ReactNode;
|
|
148
175
|
closable?: boolean;
|
|
149
176
|
duration?: number;
|
|
150
177
|
} | null;
|
|
@@ -162,20 +189,12 @@ export declare const actionToggleLinearEditor: {
|
|
|
162
189
|
height: number;
|
|
163
190
|
offsetTop: number;
|
|
164
191
|
offsetLeft: number;
|
|
165
|
-
fileHandle:
|
|
192
|
+
fileHandle: FileSystemFileHandle | null;
|
|
166
193
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
167
194
|
stats: {
|
|
168
195
|
open: boolean;
|
|
169
196
|
panels: number;
|
|
170
197
|
};
|
|
171
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
172
|
-
pasteDialog: {
|
|
173
|
-
shown: false;
|
|
174
|
-
data: null;
|
|
175
|
-
} | {
|
|
176
|
-
shown: true;
|
|
177
|
-
data: import("../charts").Spreadsheet;
|
|
178
|
-
};
|
|
179
198
|
showHyperlinkPopup: false | "info" | "editor";
|
|
180
199
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
181
200
|
originSnapOffset: {
|
|
@@ -183,8 +202,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
183
202
|
y: number;
|
|
184
203
|
} | null;
|
|
185
204
|
objectsSnapModeEnabled: boolean;
|
|
186
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
187
|
-
followedBy: Set<import("../types").SocketId>;
|
|
188
205
|
isCropping: boolean;
|
|
189
206
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
190
207
|
searchMatches: Readonly<{
|
|
@@ -196,6 +213,14 @@ export declare const actionToggleLinearEditor: {
|
|
|
196
213
|
[groupId: string]: true;
|
|
197
214
|
};
|
|
198
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;
|
|
199
224
|
};
|
|
200
225
|
captureUpdate: "IMMEDIATELY";
|
|
201
226
|
};
|
|
@@ -208,7 +233,7 @@ export declare const actionTogglePolygon: {
|
|
|
208
233
|
category: string;
|
|
209
234
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
210
235
|
keywords: string[];
|
|
211
|
-
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";
|
|
212
237
|
trackEvent: {
|
|
213
238
|
category: "element";
|
|
214
239
|
};
|
|
@@ -241,6 +266,7 @@ export declare const actionTogglePolygon: {
|
|
|
241
266
|
frameId: string | null;
|
|
242
267
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
243
268
|
updated: number;
|
|
269
|
+
created: number | null;
|
|
244
270
|
link: string | null;
|
|
245
271
|
locked: boolean;
|
|
246
272
|
customData?: Record<string, any>;
|
|
@@ -280,6 +306,7 @@ export declare const actionTogglePolygon: {
|
|
|
280
306
|
frameId: string | null;
|
|
281
307
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
282
308
|
updated: number;
|
|
309
|
+
created: number | null;
|
|
283
310
|
link: string | null;
|
|
284
311
|
locked: boolean;
|
|
285
312
|
customData?: Record<string, any>;
|
|
@@ -314,6 +341,7 @@ export declare const actionTogglePolygon: {
|
|
|
314
341
|
frameId: string | null;
|
|
315
342
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
316
343
|
updated: number;
|
|
344
|
+
created: number | null;
|
|
317
345
|
link: string | null;
|
|
318
346
|
locked: boolean;
|
|
319
347
|
customData?: Record<string, any>;
|
|
@@ -348,6 +376,43 @@ export declare const actionTogglePolygon: {
|
|
|
348
376
|
frameId: string | null;
|
|
349
377
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
350
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;
|
|
351
416
|
link: string | null;
|
|
352
417
|
locked: boolean;
|
|
353
418
|
customData?: Record<string, any>;
|
|
@@ -382,6 +447,7 @@ export declare const actionTogglePolygon: {
|
|
|
382
447
|
frameId: string | null;
|
|
383
448
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
384
449
|
updated: number;
|
|
450
|
+
created: number | null;
|
|
385
451
|
link: string | null;
|
|
386
452
|
locked: boolean;
|
|
387
453
|
customData?: Record<string, any>;
|
|
@@ -416,6 +482,7 @@ export declare const actionTogglePolygon: {
|
|
|
416
482
|
frameId: string | null;
|
|
417
483
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
418
484
|
updated: number;
|
|
485
|
+
created: number | null;
|
|
419
486
|
link: string | null;
|
|
420
487
|
locked: boolean;
|
|
421
488
|
customData?: Record<string, any>;
|
|
@@ -450,6 +517,7 @@ export declare const actionTogglePolygon: {
|
|
|
450
517
|
frameId: string | null;
|
|
451
518
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
452
519
|
updated: number;
|
|
520
|
+
created: number | null;
|
|
453
521
|
link: string | null;
|
|
454
522
|
locked: boolean;
|
|
455
523
|
customData?: Record<string, any>;
|
|
@@ -487,6 +555,7 @@ export declare const actionTogglePolygon: {
|
|
|
487
555
|
frameId: string | null;
|
|
488
556
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
489
557
|
updated: number;
|
|
558
|
+
created: number | null;
|
|
490
559
|
link: string | null;
|
|
491
560
|
locked: boolean;
|
|
492
561
|
customData?: Record<string, any>;
|
|
@@ -525,6 +594,7 @@ export declare const actionTogglePolygon: {
|
|
|
525
594
|
frameId: string | null;
|
|
526
595
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
527
596
|
updated: number;
|
|
597
|
+
created: number | null;
|
|
528
598
|
link: string | null;
|
|
529
599
|
locked: boolean;
|
|
530
600
|
customData?: Record<string, any>;
|
|
@@ -560,6 +630,7 @@ export declare const actionTogglePolygon: {
|
|
|
560
630
|
frameId: string | null;
|
|
561
631
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
562
632
|
updated: number;
|
|
633
|
+
created: number | null;
|
|
563
634
|
link: string | null;
|
|
564
635
|
locked: boolean;
|
|
565
636
|
customData?: Record<string, any>;
|
|
@@ -595,6 +666,7 @@ export declare const actionTogglePolygon: {
|
|
|
595
666
|
frameId: string | null;
|
|
596
667
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
597
668
|
updated: number;
|
|
669
|
+
created: number | null;
|
|
598
670
|
link: string | null;
|
|
599
671
|
locked: boolean;
|
|
600
672
|
customData?: Record<string, any>;
|
|
@@ -602,15 +674,17 @@ export declare const actionTogglePolygon: {
|
|
|
602
674
|
type: "text";
|
|
603
675
|
fontSize: number;
|
|
604
676
|
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
677
|
+
baseFontSize: number | null;
|
|
605
678
|
text: string;
|
|
606
679
|
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
607
680
|
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
608
|
-
containerId: import("@excalidraw/element/types").
|
|
681
|
+
containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
|
|
609
682
|
originalText: string;
|
|
610
683
|
autoResize: boolean;
|
|
611
684
|
lineHeight: number & {
|
|
612
685
|
_brand: "unitlessLineHeight";
|
|
613
686
|
};
|
|
687
|
+
labelPosition?: number | null;
|
|
614
688
|
}> & {
|
|
615
689
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
616
690
|
}) | (Readonly<{
|
|
@@ -640,6 +714,7 @@ export declare const actionTogglePolygon: {
|
|
|
640
714
|
frameId: string | null;
|
|
641
715
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
642
716
|
updated: number;
|
|
717
|
+
created: number | null;
|
|
643
718
|
link: string | null;
|
|
644
719
|
locked: boolean;
|
|
645
720
|
customData?: Record<string, any>;
|
|
@@ -648,6 +723,7 @@ export declare const actionTogglePolygon: {
|
|
|
648
723
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
649
724
|
pressures: readonly number[];
|
|
650
725
|
simulatePressure: boolean;
|
|
726
|
+
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
651
727
|
}> & {
|
|
652
728
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
653
729
|
}))[];
|