@excalidraw/common 0.18.0-d255747 → 0.18.0-dabd83c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.js +237 -104
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/colors.d.ts +23 -1
- package/dist/types/common/src/constants.d.ts +68 -7
- package/dist/types/common/src/keys.d.ts +6 -0
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/random.d.ts +7 -0
- package/dist/types/common/src/utils.d.ts +13 -44
- package/dist/types/element/src/Scene.d.ts +2 -2
- package/dist/types/element/src/align.d.ts +5 -2
- package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
- package/dist/types/element/src/arrows/focus.d.ts +5 -2
- package/dist/types/element/src/binding.d.ts +90 -13
- package/dist/types/element/src/bounds.d.ts +28 -7
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +21 -5
- package/dist/types/element/src/comparisons.d.ts +8 -5
- package/dist/types/element/src/convertToShape.d.ts +23 -0
- package/dist/types/element/src/cropElement.d.ts +36 -4
- package/dist/types/element/src/delta.d.ts +30 -2
- package/dist/types/element/src/distribute.d.ts +5 -2
- package/dist/types/element/src/dragElements.d.ts +34 -2
- package/dist/types/element/src/duplicate.d.ts +63 -3
- package/dist/types/element/src/elbowArrow.d.ts +5 -0
- package/dist/types/element/src/embeddable.d.ts +3 -2
- package/dist/types/element/src/flowchart.d.ts +9 -11
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +25 -7
- package/dist/types/element/src/groups.d.ts +10 -15
- package/dist/types/element/src/image.d.ts +5 -2
- package/dist/types/element/src/index.d.ts +7 -1
- package/dist/types/element/src/linearElementEditor.d.ts +31 -11
- package/dist/types/element/src/listMarker.d.ts +39 -0
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +55 -3
- package/dist/types/element/src/renderElement.d.ts +31 -7
- package/dist/types/element/src/renderEnvironment.d.ts +66 -0
- package/dist/types/element/src/resizeElements.d.ts +14 -4
- package/dist/types/element/src/selection.d.ts +7 -13
- package/dist/types/element/src/shape.d.ts +29 -1
- package/dist/types/element/src/sizeHelpers.d.ts +6 -0
- package/dist/types/element/src/sortElements.d.ts +10 -0
- package/dist/types/element/src/stickyNote.d.ts +191 -0
- package/dist/types/element/src/textElement.d.ts +22 -10
- package/dist/types/element/src/textMeasurements.d.ts +15 -11
- package/dist/types/element/src/textWrapping.d.ts +3 -2
- package/dist/types/element/src/transform.d.ts +31 -8
- package/dist/types/element/src/typeChecks.d.ts +28 -27
- package/dist/types/element/src/types.d.ts +43 -7
- package/dist/types/element/src/utils.d.ts +15 -4
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +98 -15
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +79 -202
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +306 -939
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +68 -10
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -5
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -518
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +34 -5
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +34 -5
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +69 -11
- package/dist/types/excalidraw/actions/actionExport.d.ts +76 -18
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +132 -648
- package/dist/types/excalidraw/actions/actionGroup.d.ts +83 -25
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +89 -8
- package/dist/types/excalidraw/actions/actionLink.d.ts +35 -6
- package/dist/types/excalidraw/actions/actionMenu.d.ts +34 -5
- package/dist/types/excalidraw/actions/actionProperties.d.ts +106 -32
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +39 -10
- package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -6
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +35 -6
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +38 -10
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +35 -6
- package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +206 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +35 -6
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +38 -10
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleShowHints.d.ts} +50 -18
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +35 -6
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +36 -7
- package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +35 -6
- package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
- package/dist/types/excalidraw/actions/index.d.ts +4 -2
- package/dist/types/excalidraw/actions/manager.d.ts +1 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +8 -4
- package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
- package/dist/types/excalidraw/appState.d.ts +37 -12
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
- package/dist/types/excalidraw/charts/index.d.ts +2 -1
- package/dist/types/excalidraw/components/Actions.d.ts +26 -13
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
- package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
- package/dist/types/excalidraw/components/App.clipboard.d.ts +59 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
- package/dist/types/excalidraw/components/App.d.ts +329 -114
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.host.d.ts +102 -0
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
- package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
- package/dist/types/excalidraw/components/App.text.d.ts +194 -0
- package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
- package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +133 -0
- package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
- package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
- package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
- package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
- package/dist/types/excalidraw/components/Island.d.ts +7 -0
- package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
- package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
- package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
- package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
- package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
- package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
- package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
- package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
- package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
- package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
- package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
- package/dist/types/excalidraw/components/Popover.d.ts +1 -3
- package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
- package/dist/types/excalidraw/components/Toast.d.ts +12 -1
- package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
- package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
- package/dist/types/excalidraw/components/Tools.d.ts +151 -0
- package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
- package/dist/types/excalidraw/components/UserList.d.ts +3 -2
- package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -0
- package/dist/types/excalidraw/components/footer/Footer.d.ts +5 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
- package/dist/types/excalidraw/components/icons.d.ts +8 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +10 -4
- package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
- package/dist/types/excalidraw/data/blob.d.ts +84 -26
- package/dist/types/excalidraw/data/index.d.ts +7 -7
- package/dist/types/excalidraw/data/json.d.ts +48 -19
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
- package/dist/types/excalidraw/history.d.ts +10 -4
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
- package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
- package/dist/types/excalidraw/lasso/index.d.ts +2 -3
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
- package/dist/types/excalidraw/mermaid.d.ts +7 -0
- package/dist/types/excalidraw/reactUtils.d.ts +1 -1
- package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +76 -13
- package/dist/types/excalidraw/scene/export.d.ts +344 -21
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +30 -5
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/types.d.ts +613 -28
- package/dist/types/excalidraw/viewport.d.ts +308 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +13 -3
- package/dist/types/laser-pointer/src/index.d.ts +2 -0
- package/dist/types/laser-pointer/src/math.d.ts +16 -0
- package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
- package/dist/types/laser-pointer/src/state.d.ts +36 -0
- package/dist/types/math/src/curve.d.ts +19 -12
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/pca.d.ts +79 -0
- package/dist/types/math/src/point.d.ts +1 -0
- package/dist/types/math/src/polygon.d.ts +25 -1
- package/dist/types/math/src/segment.d.ts +6 -0
- package/dist/types/utils/src/index.d.ts +4 -3
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/package.json +1 -1
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
- package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
- package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
- package/dist/types/excalidraw/components/shapes.d.ts +0 -263
- package/dist/types/excalidraw/cursor.d.ts +0 -5
- package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
- package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
- package/dist/types/utils/src/bbox.d.ts +0 -9
- package/dist/types/utils/src/export.d.ts +0 -35
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
-
import type { AppClassProperties,
|
|
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
|
-
selectedElementIds: AppState["selectedElementIds"];
|
|
17
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
18
|
-
editingGroupId: AppState["editingGroupId"];
|
|
16
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
17
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
18
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
19
19
|
contextMenu: {
|
|
20
20
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
21
21
|
top: number;
|
|
@@ -36,10 +36,24 @@ export declare const actionGroup: {
|
|
|
36
36
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
37
37
|
bindingPreference: "enabled" | "disabled";
|
|
38
38
|
isMidpointSnappingEnabled: boolean;
|
|
39
|
+
showHints: boolean;
|
|
40
|
+
splitOnPaste: boolean;
|
|
41
|
+
inputDevice: import("../types").InputDevice;
|
|
39
42
|
suggestedBinding: {
|
|
40
43
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
41
44
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
42
45
|
} | null;
|
|
46
|
+
textToolHover: {
|
|
47
|
+
type: "text";
|
|
48
|
+
elementId: ExcalidrawElement["id"];
|
|
49
|
+
} | {
|
|
50
|
+
type: "container";
|
|
51
|
+
elementId: ExcalidrawElement["id"];
|
|
52
|
+
} | {
|
|
53
|
+
type: "arrow";
|
|
54
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
55
|
+
anchor: "start" | "end" | "label";
|
|
56
|
+
} | null;
|
|
43
57
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
44
58
|
frameRendering: {
|
|
45
59
|
enabled: boolean;
|
|
@@ -47,8 +61,8 @@ export declare const actionGroup: {
|
|
|
47
61
|
outline: boolean;
|
|
48
62
|
clip: boolean;
|
|
49
63
|
};
|
|
50
|
-
editingFrame:
|
|
51
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
64
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
65
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
52
66
|
editingTextElement: ExcalidrawTextElement | null;
|
|
53
67
|
activeTool: {
|
|
54
68
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -66,11 +80,14 @@ export declare const actionGroup: {
|
|
|
66
80
|
exportWithDarkMode: boolean;
|
|
67
81
|
exportScale: number;
|
|
68
82
|
currentItemStrokeColor: string;
|
|
83
|
+
currentItemStickynoteStrokeColor: string;
|
|
84
|
+
currentItemStickynoteBackgroundColor: string;
|
|
69
85
|
currentItemBackgroundColor: string;
|
|
70
86
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
71
|
-
|
|
87
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
72
88
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
73
89
|
currentItemRoughness: number;
|
|
90
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
74
91
|
currentItemOpacity: number;
|
|
75
92
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
76
93
|
currentItemFontSize: number;
|
|
@@ -83,6 +100,7 @@ export declare const actionGroup: {
|
|
|
83
100
|
viewBackgroundColor: string;
|
|
84
101
|
scrollX: number;
|
|
85
102
|
scrollY: number;
|
|
103
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
86
104
|
cursorButton: "up" | "down";
|
|
87
105
|
scrolledOutside: boolean;
|
|
88
106
|
name: string | null;
|
|
@@ -126,8 +144,13 @@ export declare const actionGroup: {
|
|
|
126
144
|
message: React.ReactNode;
|
|
127
145
|
closable?: boolean;
|
|
128
146
|
duration?: number;
|
|
147
|
+
action?: {
|
|
148
|
+
label: string;
|
|
149
|
+
onClick: () => void;
|
|
150
|
+
};
|
|
129
151
|
} | null;
|
|
130
152
|
zenModeEnabled: boolean;
|
|
153
|
+
minimapEnabled: boolean;
|
|
131
154
|
theme: import("@excalidraw/element/types").Theme;
|
|
132
155
|
gridSize: number;
|
|
133
156
|
gridStep: number;
|
|
@@ -151,8 +174,6 @@ export declare const actionGroup: {
|
|
|
151
174
|
y: number;
|
|
152
175
|
} | null;
|
|
153
176
|
objectsSnapModeEnabled: boolean;
|
|
154
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
155
|
-
followedBy: Set<import("../types").SocketId>;
|
|
156
177
|
isCropping: boolean;
|
|
157
178
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
158
179
|
searchMatches: Readonly<{
|
|
@@ -164,11 +185,19 @@ export declare const actionGroup: {
|
|
|
164
185
|
[groupId: string]: true;
|
|
165
186
|
};
|
|
166
187
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
188
|
+
colorTopPicks: {
|
|
189
|
+
elementStroke: readonly string[] | null;
|
|
190
|
+
elementBackground: readonly string[] | null;
|
|
191
|
+
bucketFill: readonly string[] | null;
|
|
192
|
+
stickyNoteStroke: readonly string[] | null;
|
|
193
|
+
stickyNoteBackground: readonly string[] | null;
|
|
194
|
+
};
|
|
195
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
167
196
|
};
|
|
168
197
|
elements: OrderedExcalidrawElement[];
|
|
169
198
|
captureUpdate: "IMMEDIATELY";
|
|
170
199
|
};
|
|
171
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
200
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
172
201
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
173
202
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
174
203
|
} & {
|
|
@@ -177,19 +206,19 @@ export declare const actionGroup: {
|
|
|
177
206
|
export declare const actionUngroup: {
|
|
178
207
|
name: "ungroup";
|
|
179
208
|
label: string;
|
|
180
|
-
icon: (appState:
|
|
209
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
181
210
|
trackEvent: {
|
|
182
211
|
category: "element";
|
|
183
212
|
};
|
|
184
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
185
|
-
appState: Readonly<AppState>;
|
|
213
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
214
|
+
appState: Readonly<import("../types").AppState>;
|
|
186
215
|
elements: readonly OrderedExcalidrawElement[];
|
|
187
216
|
captureUpdate: "EVENTUALLY";
|
|
188
217
|
} | {
|
|
189
218
|
appState: {
|
|
190
|
-
selectedElementIds: AppState["selectedElementIds"];
|
|
191
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
192
|
-
editingGroupId: AppState["editingGroupId"];
|
|
219
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
220
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
221
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
193
222
|
contextMenu: {
|
|
194
223
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
195
224
|
top: number;
|
|
@@ -210,10 +239,24 @@ export declare const actionUngroup: {
|
|
|
210
239
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
211
240
|
bindingPreference: "enabled" | "disabled";
|
|
212
241
|
isMidpointSnappingEnabled: boolean;
|
|
242
|
+
showHints: boolean;
|
|
243
|
+
splitOnPaste: boolean;
|
|
244
|
+
inputDevice: import("../types").InputDevice;
|
|
213
245
|
suggestedBinding: {
|
|
214
246
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
215
247
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
216
248
|
} | null;
|
|
249
|
+
textToolHover: {
|
|
250
|
+
type: "text";
|
|
251
|
+
elementId: ExcalidrawElement["id"];
|
|
252
|
+
} | {
|
|
253
|
+
type: "container";
|
|
254
|
+
elementId: ExcalidrawElement["id"];
|
|
255
|
+
} | {
|
|
256
|
+
type: "arrow";
|
|
257
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
258
|
+
anchor: "start" | "end" | "label";
|
|
259
|
+
} | null;
|
|
217
260
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
218
261
|
frameRendering: {
|
|
219
262
|
enabled: boolean;
|
|
@@ -221,8 +264,8 @@ export declare const actionUngroup: {
|
|
|
221
264
|
outline: boolean;
|
|
222
265
|
clip: boolean;
|
|
223
266
|
};
|
|
224
|
-
editingFrame:
|
|
225
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
267
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
268
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
226
269
|
editingTextElement: ExcalidrawTextElement | null;
|
|
227
270
|
activeTool: {
|
|
228
271
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -240,11 +283,14 @@ export declare const actionUngroup: {
|
|
|
240
283
|
exportWithDarkMode: boolean;
|
|
241
284
|
exportScale: number;
|
|
242
285
|
currentItemStrokeColor: string;
|
|
286
|
+
currentItemStickynoteStrokeColor: string;
|
|
287
|
+
currentItemStickynoteBackgroundColor: string;
|
|
243
288
|
currentItemBackgroundColor: string;
|
|
244
289
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
245
|
-
|
|
290
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
246
291
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
247
292
|
currentItemRoughness: number;
|
|
293
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
248
294
|
currentItemOpacity: number;
|
|
249
295
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
250
296
|
currentItemFontSize: number;
|
|
@@ -257,6 +303,7 @@ export declare const actionUngroup: {
|
|
|
257
303
|
viewBackgroundColor: string;
|
|
258
304
|
scrollX: number;
|
|
259
305
|
scrollY: number;
|
|
306
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
260
307
|
cursorButton: "up" | "down";
|
|
261
308
|
scrolledOutside: boolean;
|
|
262
309
|
name: string | null;
|
|
@@ -300,8 +347,13 @@ export declare const actionUngroup: {
|
|
|
300
347
|
message: React.ReactNode;
|
|
301
348
|
closable?: boolean;
|
|
302
349
|
duration?: number;
|
|
350
|
+
action?: {
|
|
351
|
+
label: string;
|
|
352
|
+
onClick: () => void;
|
|
353
|
+
};
|
|
303
354
|
} | null;
|
|
304
355
|
zenModeEnabled: boolean;
|
|
356
|
+
minimapEnabled: boolean;
|
|
305
357
|
theme: import("@excalidraw/element/types").Theme;
|
|
306
358
|
gridSize: number;
|
|
307
359
|
gridStep: number;
|
|
@@ -325,8 +377,6 @@ export declare const actionUngroup: {
|
|
|
325
377
|
y: number;
|
|
326
378
|
} | null;
|
|
327
379
|
objectsSnapModeEnabled: boolean;
|
|
328
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
329
|
-
followedBy: Set<import("../types").SocketId>;
|
|
330
380
|
isCropping: boolean;
|
|
331
381
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
332
382
|
searchMatches: Readonly<{
|
|
@@ -338,12 +388,20 @@ export declare const actionUngroup: {
|
|
|
338
388
|
[groupId: string]: true;
|
|
339
389
|
};
|
|
340
390
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
391
|
+
colorTopPicks: {
|
|
392
|
+
elementStroke: readonly string[] | null;
|
|
393
|
+
elementBackground: readonly string[] | null;
|
|
394
|
+
bucketFill: readonly string[] | null;
|
|
395
|
+
stickyNoteStroke: readonly string[] | null;
|
|
396
|
+
stickyNoteBackground: readonly string[] | null;
|
|
397
|
+
};
|
|
398
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
341
399
|
};
|
|
342
400
|
elements: OrderedExcalidrawElement[];
|
|
343
401
|
captureUpdate: "IMMEDIATELY";
|
|
344
402
|
};
|
|
345
403
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
346
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
404
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
347
405
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
348
406
|
} & {
|
|
349
407
|
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;
|
|
@@ -63,10 +64,24 @@ export declare const actionToggleLinearEditor: {
|
|
|
63
64
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
64
65
|
bindingPreference: "enabled" | "disabled";
|
|
65
66
|
isMidpointSnappingEnabled: boolean;
|
|
67
|
+
showHints: boolean;
|
|
68
|
+
splitOnPaste: boolean;
|
|
69
|
+
inputDevice: import("../types").InputDevice;
|
|
66
70
|
suggestedBinding: {
|
|
67
71
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
68
72
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
69
73
|
} | null;
|
|
74
|
+
textToolHover: {
|
|
75
|
+
type: "text";
|
|
76
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
77
|
+
} | {
|
|
78
|
+
type: "container";
|
|
79
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
80
|
+
} | {
|
|
81
|
+
type: "arrow";
|
|
82
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
83
|
+
anchor: "start" | "end" | "label";
|
|
84
|
+
} | null;
|
|
70
85
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
71
86
|
frameRendering: {
|
|
72
87
|
enabled: boolean;
|
|
@@ -74,8 +89,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
74
89
|
outline: boolean;
|
|
75
90
|
clip: boolean;
|
|
76
91
|
};
|
|
77
|
-
editingFrame:
|
|
78
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
92
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
93
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
79
94
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
80
95
|
activeTool: {
|
|
81
96
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -93,11 +108,14 @@ export declare const actionToggleLinearEditor: {
|
|
|
93
108
|
exportWithDarkMode: boolean;
|
|
94
109
|
exportScale: number;
|
|
95
110
|
currentItemStrokeColor: string;
|
|
111
|
+
currentItemStickynoteStrokeColor: string;
|
|
112
|
+
currentItemStickynoteBackgroundColor: string;
|
|
96
113
|
currentItemBackgroundColor: string;
|
|
97
114
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
98
|
-
|
|
115
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
99
116
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
100
117
|
currentItemRoughness: number;
|
|
118
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
101
119
|
currentItemOpacity: number;
|
|
102
120
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
103
121
|
currentItemFontSize: number;
|
|
@@ -110,6 +128,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
110
128
|
viewBackgroundColor: string;
|
|
111
129
|
scrollX: number;
|
|
112
130
|
scrollY: number;
|
|
131
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
113
132
|
cursorButton: "up" | "down";
|
|
114
133
|
scrolledOutside: boolean;
|
|
115
134
|
name: string | null;
|
|
@@ -156,8 +175,13 @@ export declare const actionToggleLinearEditor: {
|
|
|
156
175
|
message: React.ReactNode;
|
|
157
176
|
closable?: boolean;
|
|
158
177
|
duration?: number;
|
|
178
|
+
action?: {
|
|
179
|
+
label: string;
|
|
180
|
+
onClick: () => void;
|
|
181
|
+
};
|
|
159
182
|
} | null;
|
|
160
183
|
zenModeEnabled: boolean;
|
|
184
|
+
minimapEnabled: boolean;
|
|
161
185
|
theme: import("@excalidraw/element/types").Theme;
|
|
162
186
|
gridSize: number;
|
|
163
187
|
gridStep: number;
|
|
@@ -184,8 +208,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
184
208
|
y: number;
|
|
185
209
|
} | null;
|
|
186
210
|
objectsSnapModeEnabled: boolean;
|
|
187
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
188
|
-
followedBy: Set<import("../types").SocketId>;
|
|
189
211
|
isCropping: boolean;
|
|
190
212
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
191
213
|
searchMatches: Readonly<{
|
|
@@ -197,6 +219,14 @@ export declare const actionToggleLinearEditor: {
|
|
|
197
219
|
[groupId: string]: true;
|
|
198
220
|
};
|
|
199
221
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
222
|
+
colorTopPicks: {
|
|
223
|
+
elementStroke: readonly string[] | null;
|
|
224
|
+
elementBackground: readonly string[] | null;
|
|
225
|
+
bucketFill: readonly string[] | null;
|
|
226
|
+
stickyNoteStroke: readonly string[] | null;
|
|
227
|
+
stickyNoteBackground: readonly string[] | null;
|
|
228
|
+
};
|
|
229
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
200
230
|
};
|
|
201
231
|
captureUpdate: "IMMEDIATELY";
|
|
202
232
|
};
|
|
@@ -209,7 +239,7 @@ export declare const actionTogglePolygon: {
|
|
|
209
239
|
category: string;
|
|
210
240
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
211
241
|
keywords: string[];
|
|
212
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
242
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
213
243
|
trackEvent: {
|
|
214
244
|
category: "element";
|
|
215
245
|
};
|
|
@@ -242,6 +272,7 @@ export declare const actionTogglePolygon: {
|
|
|
242
272
|
frameId: string | null;
|
|
243
273
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
244
274
|
updated: number;
|
|
275
|
+
created: number | null;
|
|
245
276
|
link: string | null;
|
|
246
277
|
locked: boolean;
|
|
247
278
|
customData?: Record<string, any>;
|
|
@@ -281,6 +312,7 @@ export declare const actionTogglePolygon: {
|
|
|
281
312
|
frameId: string | null;
|
|
282
313
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
283
314
|
updated: number;
|
|
315
|
+
created: number | null;
|
|
284
316
|
link: string | null;
|
|
285
317
|
locked: boolean;
|
|
286
318
|
customData?: Record<string, any>;
|
|
@@ -315,6 +347,7 @@ export declare const actionTogglePolygon: {
|
|
|
315
347
|
frameId: string | null;
|
|
316
348
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
317
349
|
updated: number;
|
|
350
|
+
created: number | null;
|
|
318
351
|
link: string | null;
|
|
319
352
|
locked: boolean;
|
|
320
353
|
customData?: Record<string, any>;
|
|
@@ -349,6 +382,43 @@ export declare const actionTogglePolygon: {
|
|
|
349
382
|
frameId: string | null;
|
|
350
383
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
351
384
|
updated: number;
|
|
385
|
+
created: number | null;
|
|
386
|
+
link: string | null;
|
|
387
|
+
locked: boolean;
|
|
388
|
+
customData?: Record<string, any>;
|
|
389
|
+
}> & Readonly<{
|
|
390
|
+
type: "stickynote";
|
|
391
|
+
baseHeight: number;
|
|
392
|
+
}> & {
|
|
393
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
394
|
+
}) | (Readonly<{
|
|
395
|
+
id: string;
|
|
396
|
+
x: number;
|
|
397
|
+
y: number;
|
|
398
|
+
strokeColor: string;
|
|
399
|
+
backgroundColor: string;
|
|
400
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
401
|
+
strokeWidth: number;
|
|
402
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
403
|
+
roundness: null | {
|
|
404
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
405
|
+
value?: number;
|
|
406
|
+
};
|
|
407
|
+
roughness: number;
|
|
408
|
+
opacity: number;
|
|
409
|
+
width: number;
|
|
410
|
+
height: number;
|
|
411
|
+
angle: import("@excalidraw/math").Radians;
|
|
412
|
+
seed: number;
|
|
413
|
+
version: number;
|
|
414
|
+
versionNonce: number;
|
|
415
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
416
|
+
isDeleted: boolean;
|
|
417
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
418
|
+
frameId: string | null;
|
|
419
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
420
|
+
updated: number;
|
|
421
|
+
created: number | null;
|
|
352
422
|
link: string | null;
|
|
353
423
|
locked: boolean;
|
|
354
424
|
customData?: Record<string, any>;
|
|
@@ -383,6 +453,7 @@ export declare const actionTogglePolygon: {
|
|
|
383
453
|
frameId: string | null;
|
|
384
454
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
385
455
|
updated: number;
|
|
456
|
+
created: number | null;
|
|
386
457
|
link: string | null;
|
|
387
458
|
locked: boolean;
|
|
388
459
|
customData?: Record<string, any>;
|
|
@@ -417,6 +488,7 @@ export declare const actionTogglePolygon: {
|
|
|
417
488
|
frameId: string | null;
|
|
418
489
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
419
490
|
updated: number;
|
|
491
|
+
created: number | null;
|
|
420
492
|
link: string | null;
|
|
421
493
|
locked: boolean;
|
|
422
494
|
customData?: Record<string, any>;
|
|
@@ -451,6 +523,7 @@ export declare const actionTogglePolygon: {
|
|
|
451
523
|
frameId: string | null;
|
|
452
524
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
453
525
|
updated: number;
|
|
526
|
+
created: number | null;
|
|
454
527
|
link: string | null;
|
|
455
528
|
locked: boolean;
|
|
456
529
|
customData?: Record<string, any>;
|
|
@@ -488,6 +561,7 @@ export declare const actionTogglePolygon: {
|
|
|
488
561
|
frameId: string | null;
|
|
489
562
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
490
563
|
updated: number;
|
|
564
|
+
created: number | null;
|
|
491
565
|
link: string | null;
|
|
492
566
|
locked: boolean;
|
|
493
567
|
customData?: Record<string, any>;
|
|
@@ -526,6 +600,7 @@ export declare const actionTogglePolygon: {
|
|
|
526
600
|
frameId: string | null;
|
|
527
601
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
528
602
|
updated: number;
|
|
603
|
+
created: number | null;
|
|
529
604
|
link: string | null;
|
|
530
605
|
locked: boolean;
|
|
531
606
|
customData?: Record<string, any>;
|
|
@@ -561,6 +636,7 @@ export declare const actionTogglePolygon: {
|
|
|
561
636
|
frameId: string | null;
|
|
562
637
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
563
638
|
updated: number;
|
|
639
|
+
created: number | null;
|
|
564
640
|
link: string | null;
|
|
565
641
|
locked: boolean;
|
|
566
642
|
customData?: Record<string, any>;
|
|
@@ -596,6 +672,7 @@ export declare const actionTogglePolygon: {
|
|
|
596
672
|
frameId: string | null;
|
|
597
673
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
598
674
|
updated: number;
|
|
675
|
+
created: number | null;
|
|
599
676
|
link: string | null;
|
|
600
677
|
locked: boolean;
|
|
601
678
|
customData?: Record<string, any>;
|
|
@@ -603,15 +680,17 @@ export declare const actionTogglePolygon: {
|
|
|
603
680
|
type: "text";
|
|
604
681
|
fontSize: number;
|
|
605
682
|
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
683
|
+
baseFontSize: number | null;
|
|
606
684
|
text: string;
|
|
607
685
|
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
608
686
|
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
609
|
-
containerId: import("@excalidraw/element/types").
|
|
687
|
+
containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
|
|
610
688
|
originalText: string;
|
|
611
689
|
autoResize: boolean;
|
|
612
690
|
lineHeight: number & {
|
|
613
691
|
_brand: "unitlessLineHeight";
|
|
614
692
|
};
|
|
693
|
+
labelPosition?: number | null;
|
|
615
694
|
}> & {
|
|
616
695
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
617
696
|
}) | (Readonly<{
|
|
@@ -641,6 +720,7 @@ export declare const actionTogglePolygon: {
|
|
|
641
720
|
frameId: string | null;
|
|
642
721
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
643
722
|
updated: number;
|
|
723
|
+
created: number | null;
|
|
644
724
|
link: string | null;
|
|
645
725
|
locked: boolean;
|
|
646
726
|
customData?: Record<string, any>;
|
|
@@ -649,6 +729,7 @@ export declare const actionTogglePolygon: {
|
|
|
649
729
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
650
730
|
pressures: readonly number[];
|
|
651
731
|
simulatePressure: boolean;
|
|
732
|
+
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
652
733
|
}> & {
|
|
653
734
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
654
735
|
}))[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const actionLink: {
|
|
2
2
|
name: "hyperlink";
|
|
3
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
3
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
|
|
4
4
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
|
|
6
6
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
@@ -27,10 +27,24 @@ export declare const actionLink: {
|
|
|
27
27
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
28
28
|
bindingPreference: "enabled" | "disabled";
|
|
29
29
|
isMidpointSnappingEnabled: boolean;
|
|
30
|
+
showHints: boolean;
|
|
31
|
+
splitOnPaste: boolean;
|
|
32
|
+
inputDevice: import("../types").InputDevice;
|
|
30
33
|
suggestedBinding: {
|
|
31
34
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
32
35
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
33
36
|
} | null;
|
|
37
|
+
textToolHover: {
|
|
38
|
+
type: "text";
|
|
39
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
40
|
+
} | {
|
|
41
|
+
type: "container";
|
|
42
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
43
|
+
} | {
|
|
44
|
+
type: "arrow";
|
|
45
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
46
|
+
anchor: "start" | "end" | "label";
|
|
47
|
+
} | null;
|
|
34
48
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
35
49
|
frameRendering: {
|
|
36
50
|
enabled: boolean;
|
|
@@ -38,8 +52,8 @@ export declare const actionLink: {
|
|
|
38
52
|
outline: boolean;
|
|
39
53
|
clip: boolean;
|
|
40
54
|
};
|
|
41
|
-
editingFrame:
|
|
42
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
55
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
56
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
43
57
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
44
58
|
activeTool: {
|
|
45
59
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -57,11 +71,14 @@ export declare const actionLink: {
|
|
|
57
71
|
exportWithDarkMode: boolean;
|
|
58
72
|
exportScale: number;
|
|
59
73
|
currentItemStrokeColor: string;
|
|
74
|
+
currentItemStickynoteStrokeColor: string;
|
|
75
|
+
currentItemStickynoteBackgroundColor: string;
|
|
60
76
|
currentItemBackgroundColor: string;
|
|
61
77
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
62
|
-
|
|
78
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
63
79
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
64
80
|
currentItemRoughness: number;
|
|
81
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
65
82
|
currentItemOpacity: number;
|
|
66
83
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
67
84
|
currentItemFontSize: number;
|
|
@@ -74,6 +91,7 @@ export declare const actionLink: {
|
|
|
74
91
|
viewBackgroundColor: string;
|
|
75
92
|
scrollX: number;
|
|
76
93
|
scrollY: number;
|
|
94
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
77
95
|
cursorButton: "up" | "down";
|
|
78
96
|
scrolledOutside: boolean;
|
|
79
97
|
name: string | null;
|
|
@@ -119,8 +137,13 @@ export declare const actionLink: {
|
|
|
119
137
|
message: React.ReactNode;
|
|
120
138
|
closable?: boolean;
|
|
121
139
|
duration?: number;
|
|
140
|
+
action?: {
|
|
141
|
+
label: string;
|
|
142
|
+
onClick: () => void;
|
|
143
|
+
};
|
|
122
144
|
} | null;
|
|
123
145
|
zenModeEnabled: boolean;
|
|
146
|
+
minimapEnabled: boolean;
|
|
124
147
|
theme: import("@excalidraw/element/types").Theme;
|
|
125
148
|
gridSize: number;
|
|
126
149
|
gridStep: number;
|
|
@@ -147,8 +170,6 @@ export declare const actionLink: {
|
|
|
147
170
|
y: number;
|
|
148
171
|
} | null;
|
|
149
172
|
objectsSnapModeEnabled: boolean;
|
|
150
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
151
|
-
followedBy: Set<import("../types").SocketId>;
|
|
152
173
|
isCropping: boolean;
|
|
153
174
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
154
175
|
searchMatches: Readonly<{
|
|
@@ -160,6 +181,14 @@ export declare const actionLink: {
|
|
|
160
181
|
[groupId: string]: true;
|
|
161
182
|
};
|
|
162
183
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
184
|
+
colorTopPicks: {
|
|
185
|
+
elementStroke: readonly string[] | null;
|
|
186
|
+
elementBackground: readonly string[] | null;
|
|
187
|
+
bucketFill: readonly string[] | null;
|
|
188
|
+
stickyNoteStroke: readonly string[] | null;
|
|
189
|
+
stickyNoteBackground: readonly string[] | null;
|
|
190
|
+
};
|
|
191
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
163
192
|
};
|
|
164
193
|
captureUpdate: "IMMEDIATELY";
|
|
165
194
|
};
|