@excalidraw/math 0.18.0-2b0e4c9 → 0.18.0-2c3dcc0
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 +319 -116
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +1 -1
- 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 +7 -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/arrows/focus.d.ts +5 -2
- package/dist/types/element/src/binding.d.ts +90 -13
- package/dist/types/element/src/bounds.d.ts +31 -8
- 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 +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 +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 +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 +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 +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 +93 -21
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +76 -204
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +288 -956
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +62 -14
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +31 -7
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -518
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +183 -0
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +31 -7
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +63 -15
- package/dist/types/excalidraw/actions/actionExport.d.ts +70 -22
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +122 -653
- package/dist/types/excalidraw/actions/actionGroup.d.ts +78 -30
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +86 -10
- package/dist/types/excalidraw/actions/actionLink.d.ts +32 -8
- package/dist/types/excalidraw/actions/actionMenu.d.ts +31 -7
- package/dist/types/excalidraw/actions/actionProperties.d.ts +100 -36
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +37 -13
- package/dist/types/excalidraw/actions/actionStyles.d.ts +33 -8
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +32 -8
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +35 -12
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +32 -8
- package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +32 -8
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +35 -12
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleShowHints.d.ts} +47 -20
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +32 -8
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +33 -9
- package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +32 -8
- package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
- package/dist/types/excalidraw/actions/index.d.ts +5 -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 +31 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
- package/dist/types/excalidraw/components/App.d.ts +340 -106
- 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/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/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/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 +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 +11 -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 +78 -30
- package/dist/types/excalidraw/data/index.d.ts +7 -7
- package/dist/types/excalidraw/data/json.d.ts +45 -21
- 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 +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 +611 -30
- package/dist/types/excalidraw/viewport.d.ts +303 -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 +2 -1
- 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 +2 -2
- 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
|
-
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,13 +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
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
36
37
|
bindingPreference: "enabled" | "disabled";
|
|
37
38
|
isMidpointSnappingEnabled: boolean;
|
|
38
|
-
|
|
39
|
+
showHints: boolean;
|
|
40
|
+
inputDevice: import("../types").InputDevice;
|
|
39
41
|
suggestedBinding: {
|
|
40
42
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
41
43
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
42
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;
|
|
43
56
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
44
57
|
frameRendering: {
|
|
45
58
|
enabled: boolean;
|
|
@@ -47,9 +60,9 @@ export declare const actionGroup: {
|
|
|
47
60
|
outline: boolean;
|
|
48
61
|
clip: boolean;
|
|
49
62
|
};
|
|
50
|
-
editingFrame:
|
|
51
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
52
|
-
editingTextElement:
|
|
63
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
64
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
65
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
53
66
|
activeTool: {
|
|
54
67
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
55
68
|
locked: boolean;
|
|
@@ -66,11 +79,14 @@ export declare const actionGroup: {
|
|
|
66
79
|
exportWithDarkMode: boolean;
|
|
67
80
|
exportScale: number;
|
|
68
81
|
currentItemStrokeColor: string;
|
|
82
|
+
currentItemStickynoteStrokeColor: string;
|
|
83
|
+
currentItemStickynoteBackgroundColor: string;
|
|
69
84
|
currentItemBackgroundColor: string;
|
|
70
85
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
71
|
-
|
|
86
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
72
87
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
73
88
|
currentItemRoughness: number;
|
|
89
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
74
90
|
currentItemOpacity: number;
|
|
75
91
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
76
92
|
currentItemFontSize: number;
|
|
@@ -83,6 +99,7 @@ export declare const actionGroup: {
|
|
|
83
99
|
viewBackgroundColor: string;
|
|
84
100
|
scrollX: number;
|
|
85
101
|
scrollY: number;
|
|
102
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
86
103
|
cursorButton: "up" | "down";
|
|
87
104
|
scrolledOutside: boolean;
|
|
88
105
|
name: string | null;
|
|
@@ -128,6 +145,7 @@ export declare const actionGroup: {
|
|
|
128
145
|
duration?: number;
|
|
129
146
|
} | null;
|
|
130
147
|
zenModeEnabled: boolean;
|
|
148
|
+
minimapEnabled: boolean;
|
|
131
149
|
theme: import("@excalidraw/element/types").Theme;
|
|
132
150
|
gridSize: number;
|
|
133
151
|
gridStep: number;
|
|
@@ -151,8 +169,6 @@ export declare const actionGroup: {
|
|
|
151
169
|
y: number;
|
|
152
170
|
} | null;
|
|
153
171
|
objectsSnapModeEnabled: boolean;
|
|
154
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
155
|
-
followedBy: Set<import("../types").SocketId>;
|
|
156
172
|
isCropping: boolean;
|
|
157
173
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
158
174
|
searchMatches: Readonly<{
|
|
@@ -164,11 +180,19 @@ export declare const actionGroup: {
|
|
|
164
180
|
[groupId: string]: true;
|
|
165
181
|
};
|
|
166
182
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
183
|
+
colorTopPicks: {
|
|
184
|
+
elementStroke: readonly string[] | null;
|
|
185
|
+
elementBackground: readonly string[] | null;
|
|
186
|
+
bucketFill: readonly string[] | null;
|
|
187
|
+
stickyNoteStroke: readonly string[] | null;
|
|
188
|
+
stickyNoteBackground: readonly string[] | null;
|
|
189
|
+
};
|
|
190
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
167
191
|
};
|
|
168
192
|
elements: OrderedExcalidrawElement[];
|
|
169
193
|
captureUpdate: "IMMEDIATELY";
|
|
170
194
|
};
|
|
171
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
195
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
172
196
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
173
197
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
174
198
|
} & {
|
|
@@ -177,19 +201,19 @@ export declare const actionGroup: {
|
|
|
177
201
|
export declare const actionUngroup: {
|
|
178
202
|
name: "ungroup";
|
|
179
203
|
label: string;
|
|
180
|
-
icon: (appState:
|
|
204
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
181
205
|
trackEvent: {
|
|
182
206
|
category: "element";
|
|
183
207
|
};
|
|
184
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
185
|
-
appState: Readonly<AppState>;
|
|
208
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
209
|
+
appState: Readonly<import("../types").AppState>;
|
|
186
210
|
elements: readonly OrderedExcalidrawElement[];
|
|
187
211
|
captureUpdate: "EVENTUALLY";
|
|
188
212
|
} | {
|
|
189
213
|
appState: {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
214
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
215
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
216
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
193
217
|
contextMenu: {
|
|
194
218
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
195
219
|
top: number;
|
|
@@ -207,13 +231,26 @@ export declare const actionUngroup: {
|
|
|
207
231
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
208
232
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
209
233
|
isBindingEnabled: boolean;
|
|
234
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
210
235
|
bindingPreference: "enabled" | "disabled";
|
|
211
236
|
isMidpointSnappingEnabled: boolean;
|
|
212
|
-
|
|
237
|
+
showHints: boolean;
|
|
238
|
+
inputDevice: import("../types").InputDevice;
|
|
213
239
|
suggestedBinding: {
|
|
214
240
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
215
241
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
216
242
|
} | null;
|
|
243
|
+
textToolHover: {
|
|
244
|
+
type: "text";
|
|
245
|
+
elementId: ExcalidrawElement["id"];
|
|
246
|
+
} | {
|
|
247
|
+
type: "container";
|
|
248
|
+
elementId: ExcalidrawElement["id"];
|
|
249
|
+
} | {
|
|
250
|
+
type: "arrow";
|
|
251
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
252
|
+
anchor: "start" | "end" | "label";
|
|
253
|
+
} | null;
|
|
217
254
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
218
255
|
frameRendering: {
|
|
219
256
|
enabled: boolean;
|
|
@@ -221,9 +258,9 @@ export declare const actionUngroup: {
|
|
|
221
258
|
outline: boolean;
|
|
222
259
|
clip: boolean;
|
|
223
260
|
};
|
|
224
|
-
editingFrame:
|
|
225
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
226
|
-
editingTextElement:
|
|
261
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
262
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
263
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
227
264
|
activeTool: {
|
|
228
265
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
229
266
|
locked: boolean;
|
|
@@ -240,11 +277,14 @@ export declare const actionUngroup: {
|
|
|
240
277
|
exportWithDarkMode: boolean;
|
|
241
278
|
exportScale: number;
|
|
242
279
|
currentItemStrokeColor: string;
|
|
280
|
+
currentItemStickynoteStrokeColor: string;
|
|
281
|
+
currentItemStickynoteBackgroundColor: string;
|
|
243
282
|
currentItemBackgroundColor: string;
|
|
244
283
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
245
|
-
|
|
284
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
246
285
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
247
286
|
currentItemRoughness: number;
|
|
287
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
248
288
|
currentItemOpacity: number;
|
|
249
289
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
250
290
|
currentItemFontSize: number;
|
|
@@ -257,6 +297,7 @@ export declare const actionUngroup: {
|
|
|
257
297
|
viewBackgroundColor: string;
|
|
258
298
|
scrollX: number;
|
|
259
299
|
scrollY: number;
|
|
300
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
260
301
|
cursorButton: "up" | "down";
|
|
261
302
|
scrolledOutside: boolean;
|
|
262
303
|
name: string | null;
|
|
@@ -302,6 +343,7 @@ export declare const actionUngroup: {
|
|
|
302
343
|
duration?: number;
|
|
303
344
|
} | null;
|
|
304
345
|
zenModeEnabled: boolean;
|
|
346
|
+
minimapEnabled: boolean;
|
|
305
347
|
theme: import("@excalidraw/element/types").Theme;
|
|
306
348
|
gridSize: number;
|
|
307
349
|
gridStep: number;
|
|
@@ -325,8 +367,6 @@ export declare const actionUngroup: {
|
|
|
325
367
|
y: number;
|
|
326
368
|
} | null;
|
|
327
369
|
objectsSnapModeEnabled: boolean;
|
|
328
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
329
|
-
followedBy: Set<import("../types").SocketId>;
|
|
330
370
|
isCropping: boolean;
|
|
331
371
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
332
372
|
searchMatches: Readonly<{
|
|
@@ -338,12 +378,20 @@ export declare const actionUngroup: {
|
|
|
338
378
|
[groupId: string]: true;
|
|
339
379
|
};
|
|
340
380
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
381
|
+
colorTopPicks: {
|
|
382
|
+
elementStroke: readonly string[] | null;
|
|
383
|
+
elementBackground: readonly string[] | null;
|
|
384
|
+
bucketFill: readonly string[] | null;
|
|
385
|
+
stickyNoteStroke: readonly string[] | null;
|
|
386
|
+
stickyNoteBackground: readonly string[] | null;
|
|
387
|
+
};
|
|
388
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
341
389
|
};
|
|
342
390
|
elements: OrderedExcalidrawElement[];
|
|
343
391
|
captureUpdate: "IMMEDIATELY";
|
|
344
392
|
};
|
|
345
393
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
346
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
394
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
347
395
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
348
396
|
} & {
|
|
349
397
|
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,13 +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;
|
|
64
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
63
65
|
bindingPreference: "enabled" | "disabled";
|
|
64
66
|
isMidpointSnappingEnabled: boolean;
|
|
65
|
-
|
|
67
|
+
showHints: boolean;
|
|
68
|
+
inputDevice: import("../types").InputDevice;
|
|
66
69
|
suggestedBinding: {
|
|
67
70
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
68
71
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
69
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;
|
|
70
84
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
71
85
|
frameRendering: {
|
|
72
86
|
enabled: boolean;
|
|
@@ -74,9 +88,9 @@ export declare const actionToggleLinearEditor: {
|
|
|
74
88
|
outline: boolean;
|
|
75
89
|
clip: boolean;
|
|
76
90
|
};
|
|
77
|
-
editingFrame:
|
|
78
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
79
|
-
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;
|
|
80
94
|
activeTool: {
|
|
81
95
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
82
96
|
locked: boolean;
|
|
@@ -93,11 +107,14 @@ export declare const actionToggleLinearEditor: {
|
|
|
93
107
|
exportWithDarkMode: boolean;
|
|
94
108
|
exportScale: number;
|
|
95
109
|
currentItemStrokeColor: string;
|
|
110
|
+
currentItemStickynoteStrokeColor: string;
|
|
111
|
+
currentItemStickynoteBackgroundColor: string;
|
|
96
112
|
currentItemBackgroundColor: string;
|
|
97
113
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
98
|
-
|
|
114
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
99
115
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
100
116
|
currentItemRoughness: number;
|
|
117
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
101
118
|
currentItemOpacity: number;
|
|
102
119
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
103
120
|
currentItemFontSize: number;
|
|
@@ -110,6 +127,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
110
127
|
viewBackgroundColor: string;
|
|
111
128
|
scrollX: number;
|
|
112
129
|
scrollY: number;
|
|
130
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
113
131
|
cursorButton: "up" | "down";
|
|
114
132
|
scrolledOutside: boolean;
|
|
115
133
|
name: string | null;
|
|
@@ -158,6 +176,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
158
176
|
duration?: number;
|
|
159
177
|
} | null;
|
|
160
178
|
zenModeEnabled: boolean;
|
|
179
|
+
minimapEnabled: boolean;
|
|
161
180
|
theme: import("@excalidraw/element/types").Theme;
|
|
162
181
|
gridSize: number;
|
|
163
182
|
gridStep: number;
|
|
@@ -184,8 +203,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
184
203
|
y: number;
|
|
185
204
|
} | null;
|
|
186
205
|
objectsSnapModeEnabled: boolean;
|
|
187
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
188
|
-
followedBy: Set<import("../types").SocketId>;
|
|
189
206
|
isCropping: boolean;
|
|
190
207
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
191
208
|
searchMatches: Readonly<{
|
|
@@ -197,6 +214,14 @@ export declare const actionToggleLinearEditor: {
|
|
|
197
214
|
[groupId: string]: true;
|
|
198
215
|
};
|
|
199
216
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
217
|
+
colorTopPicks: {
|
|
218
|
+
elementStroke: readonly string[] | null;
|
|
219
|
+
elementBackground: readonly string[] | null;
|
|
220
|
+
bucketFill: readonly string[] | null;
|
|
221
|
+
stickyNoteStroke: readonly string[] | null;
|
|
222
|
+
stickyNoteBackground: readonly string[] | null;
|
|
223
|
+
};
|
|
224
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
200
225
|
};
|
|
201
226
|
captureUpdate: "IMMEDIATELY";
|
|
202
227
|
};
|
|
@@ -209,7 +234,7 @@ export declare const actionTogglePolygon: {
|
|
|
209
234
|
category: string;
|
|
210
235
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
211
236
|
keywords: string[];
|
|
212
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
237
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
213
238
|
trackEvent: {
|
|
214
239
|
category: "element";
|
|
215
240
|
};
|
|
@@ -242,6 +267,7 @@ export declare const actionTogglePolygon: {
|
|
|
242
267
|
frameId: string | null;
|
|
243
268
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
244
269
|
updated: number;
|
|
270
|
+
created: number | null;
|
|
245
271
|
link: string | null;
|
|
246
272
|
locked: boolean;
|
|
247
273
|
customData?: Record<string, any>;
|
|
@@ -281,6 +307,7 @@ export declare const actionTogglePolygon: {
|
|
|
281
307
|
frameId: string | null;
|
|
282
308
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
283
309
|
updated: number;
|
|
310
|
+
created: number | null;
|
|
284
311
|
link: string | null;
|
|
285
312
|
locked: boolean;
|
|
286
313
|
customData?: Record<string, any>;
|
|
@@ -315,6 +342,7 @@ export declare const actionTogglePolygon: {
|
|
|
315
342
|
frameId: string | null;
|
|
316
343
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
317
344
|
updated: number;
|
|
345
|
+
created: number | null;
|
|
318
346
|
link: string | null;
|
|
319
347
|
locked: boolean;
|
|
320
348
|
customData?: Record<string, any>;
|
|
@@ -349,6 +377,43 @@ export declare const actionTogglePolygon: {
|
|
|
349
377
|
frameId: string | null;
|
|
350
378
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
351
379
|
updated: number;
|
|
380
|
+
created: number | null;
|
|
381
|
+
link: string | null;
|
|
382
|
+
locked: boolean;
|
|
383
|
+
customData?: Record<string, any>;
|
|
384
|
+
}> & Readonly<{
|
|
385
|
+
type: "stickynote";
|
|
386
|
+
baseHeight: number;
|
|
387
|
+
}> & {
|
|
388
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
389
|
+
}) | (Readonly<{
|
|
390
|
+
id: string;
|
|
391
|
+
x: number;
|
|
392
|
+
y: number;
|
|
393
|
+
strokeColor: string;
|
|
394
|
+
backgroundColor: string;
|
|
395
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
396
|
+
strokeWidth: number;
|
|
397
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
398
|
+
roundness: null | {
|
|
399
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
400
|
+
value?: number;
|
|
401
|
+
};
|
|
402
|
+
roughness: number;
|
|
403
|
+
opacity: number;
|
|
404
|
+
width: number;
|
|
405
|
+
height: number;
|
|
406
|
+
angle: import("@excalidraw/math").Radians;
|
|
407
|
+
seed: number;
|
|
408
|
+
version: number;
|
|
409
|
+
versionNonce: number;
|
|
410
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
411
|
+
isDeleted: boolean;
|
|
412
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
413
|
+
frameId: string | null;
|
|
414
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
415
|
+
updated: number;
|
|
416
|
+
created: number | null;
|
|
352
417
|
link: string | null;
|
|
353
418
|
locked: boolean;
|
|
354
419
|
customData?: Record<string, any>;
|
|
@@ -383,6 +448,7 @@ export declare const actionTogglePolygon: {
|
|
|
383
448
|
frameId: string | null;
|
|
384
449
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
385
450
|
updated: number;
|
|
451
|
+
created: number | null;
|
|
386
452
|
link: string | null;
|
|
387
453
|
locked: boolean;
|
|
388
454
|
customData?: Record<string, any>;
|
|
@@ -417,6 +483,7 @@ export declare const actionTogglePolygon: {
|
|
|
417
483
|
frameId: string | null;
|
|
418
484
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
419
485
|
updated: number;
|
|
486
|
+
created: number | null;
|
|
420
487
|
link: string | null;
|
|
421
488
|
locked: boolean;
|
|
422
489
|
customData?: Record<string, any>;
|
|
@@ -451,6 +518,7 @@ export declare const actionTogglePolygon: {
|
|
|
451
518
|
frameId: string | null;
|
|
452
519
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
453
520
|
updated: number;
|
|
521
|
+
created: number | null;
|
|
454
522
|
link: string | null;
|
|
455
523
|
locked: boolean;
|
|
456
524
|
customData?: Record<string, any>;
|
|
@@ -488,6 +556,7 @@ export declare const actionTogglePolygon: {
|
|
|
488
556
|
frameId: string | null;
|
|
489
557
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
490
558
|
updated: number;
|
|
559
|
+
created: number | null;
|
|
491
560
|
link: string | null;
|
|
492
561
|
locked: boolean;
|
|
493
562
|
customData?: Record<string, any>;
|
|
@@ -526,6 +595,7 @@ export declare const actionTogglePolygon: {
|
|
|
526
595
|
frameId: string | null;
|
|
527
596
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
528
597
|
updated: number;
|
|
598
|
+
created: number | null;
|
|
529
599
|
link: string | null;
|
|
530
600
|
locked: boolean;
|
|
531
601
|
customData?: Record<string, any>;
|
|
@@ -561,6 +631,7 @@ export declare const actionTogglePolygon: {
|
|
|
561
631
|
frameId: string | null;
|
|
562
632
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
563
633
|
updated: number;
|
|
634
|
+
created: number | null;
|
|
564
635
|
link: string | null;
|
|
565
636
|
locked: boolean;
|
|
566
637
|
customData?: Record<string, any>;
|
|
@@ -596,6 +667,7 @@ export declare const actionTogglePolygon: {
|
|
|
596
667
|
frameId: string | null;
|
|
597
668
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
598
669
|
updated: number;
|
|
670
|
+
created: number | null;
|
|
599
671
|
link: string | null;
|
|
600
672
|
locked: boolean;
|
|
601
673
|
customData?: Record<string, any>;
|
|
@@ -603,15 +675,17 @@ export declare const actionTogglePolygon: {
|
|
|
603
675
|
type: "text";
|
|
604
676
|
fontSize: number;
|
|
605
677
|
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
678
|
+
baseFontSize: number | null;
|
|
606
679
|
text: string;
|
|
607
680
|
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
608
681
|
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
609
|
-
containerId: import("@excalidraw/element/types").
|
|
682
|
+
containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
|
|
610
683
|
originalText: string;
|
|
611
684
|
autoResize: boolean;
|
|
612
685
|
lineHeight: number & {
|
|
613
686
|
_brand: "unitlessLineHeight";
|
|
614
687
|
};
|
|
688
|
+
labelPosition?: number | null;
|
|
615
689
|
}> & {
|
|
616
690
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
617
691
|
}) | (Readonly<{
|
|
@@ -641,6 +715,7 @@ export declare const actionTogglePolygon: {
|
|
|
641
715
|
frameId: string | null;
|
|
642
716
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
643
717
|
updated: number;
|
|
718
|
+
created: number | null;
|
|
644
719
|
link: string | null;
|
|
645
720
|
locked: boolean;
|
|
646
721
|
customData?: Record<string, any>;
|
|
@@ -649,6 +724,7 @@ export declare const actionTogglePolygon: {
|
|
|
649
724
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
650
725
|
pressures: readonly number[];
|
|
651
726
|
simulatePressure: boolean;
|
|
727
|
+
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
652
728
|
}> & {
|
|
653
729
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
654
730
|
}))[];
|
|
@@ -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[];
|
|
@@ -24,13 +24,26 @@ export declare const actionLink: {
|
|
|
24
24
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
25
25
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
26
26
|
isBindingEnabled: boolean;
|
|
27
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
27
28
|
bindingPreference: "enabled" | "disabled";
|
|
28
29
|
isMidpointSnappingEnabled: boolean;
|
|
29
|
-
|
|
30
|
+
showHints: boolean;
|
|
31
|
+
inputDevice: import("../types").InputDevice;
|
|
30
32
|
suggestedBinding: {
|
|
31
33
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
32
34
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
33
35
|
} | null;
|
|
36
|
+
textToolHover: {
|
|
37
|
+
type: "text";
|
|
38
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
39
|
+
} | {
|
|
40
|
+
type: "container";
|
|
41
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
42
|
+
} | {
|
|
43
|
+
type: "arrow";
|
|
44
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
45
|
+
anchor: "start" | "end" | "label";
|
|
46
|
+
} | null;
|
|
34
47
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
35
48
|
frameRendering: {
|
|
36
49
|
enabled: boolean;
|
|
@@ -38,9 +51,9 @@ export declare const actionLink: {
|
|
|
38
51
|
outline: boolean;
|
|
39
52
|
clip: boolean;
|
|
40
53
|
};
|
|
41
|
-
editingFrame:
|
|
42
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
43
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
54
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
55
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
56
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
44
57
|
activeTool: {
|
|
45
58
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
59
|
locked: boolean;
|
|
@@ -57,11 +70,14 @@ export declare const actionLink: {
|
|
|
57
70
|
exportWithDarkMode: boolean;
|
|
58
71
|
exportScale: number;
|
|
59
72
|
currentItemStrokeColor: string;
|
|
73
|
+
currentItemStickynoteStrokeColor: string;
|
|
74
|
+
currentItemStickynoteBackgroundColor: string;
|
|
60
75
|
currentItemBackgroundColor: string;
|
|
61
76
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
62
|
-
|
|
77
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
63
78
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
64
79
|
currentItemRoughness: number;
|
|
80
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
65
81
|
currentItemOpacity: number;
|
|
66
82
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
67
83
|
currentItemFontSize: number;
|
|
@@ -74,6 +90,7 @@ export declare const actionLink: {
|
|
|
74
90
|
viewBackgroundColor: string;
|
|
75
91
|
scrollX: number;
|
|
76
92
|
scrollY: number;
|
|
93
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
77
94
|
cursorButton: "up" | "down";
|
|
78
95
|
scrolledOutside: boolean;
|
|
79
96
|
name: string | null;
|
|
@@ -121,6 +138,7 @@ export declare const actionLink: {
|
|
|
121
138
|
duration?: number;
|
|
122
139
|
} | null;
|
|
123
140
|
zenModeEnabled: boolean;
|
|
141
|
+
minimapEnabled: boolean;
|
|
124
142
|
theme: import("@excalidraw/element/types").Theme;
|
|
125
143
|
gridSize: number;
|
|
126
144
|
gridStep: number;
|
|
@@ -147,8 +165,6 @@ export declare const actionLink: {
|
|
|
147
165
|
y: number;
|
|
148
166
|
} | null;
|
|
149
167
|
objectsSnapModeEnabled: boolean;
|
|
150
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
151
|
-
followedBy: Set<import("../types").SocketId>;
|
|
152
168
|
isCropping: boolean;
|
|
153
169
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
154
170
|
searchMatches: Readonly<{
|
|
@@ -160,6 +176,14 @@ export declare const actionLink: {
|
|
|
160
176
|
[groupId: string]: true;
|
|
161
177
|
};
|
|
162
178
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
179
|
+
colorTopPicks: {
|
|
180
|
+
elementStroke: readonly string[] | null;
|
|
181
|
+
elementBackground: readonly string[] | null;
|
|
182
|
+
bucketFill: readonly string[] | null;
|
|
183
|
+
stickyNoteStroke: readonly string[] | null;
|
|
184
|
+
stickyNoteBackground: readonly string[] | null;
|
|
185
|
+
};
|
|
186
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
163
187
|
};
|
|
164
188
|
captureUpdate: "IMMEDIATELY";
|
|
165
189
|
};
|