@myoc/excalidraw 0.18.1 → 0.18.2
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/{chunk-DYSQNY2T.js → chunk-6MXLCRC3.js} +2 -1
- package/dist/dev/chunk-6MXLCRC3.js.map +7 -0
- package/dist/dev/{chunk-IVKGBVG7.js → chunk-WBHLRU4Z.js} +2 -2
- package/dist/dev/{chunk-IVKGBVG7.js.map → chunk-WBHLRU4Z.js.map} +1 -1
- package/dist/dev/{chunk-ND5KUA7P.js → chunk-WT7JKXOQ.js} +16541 -21170
- package/dist/dev/chunk-WT7JKXOQ.js.map +7 -0
- package/dist/dev/data/{image-ZD4HK457.js → image-N5NBMO74.js} +3 -3
- package/dist/dev/index.css +44 -47
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +6637 -1355
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-IW3FTNXY.js → en-FBYNI7ML.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-Y5S6JYT2.js → chunk-6NO4X5TH.js} +1 -1
- package/dist/prod/chunk-GALOWMDI.js +31 -0
- package/dist/prod/data/{image-YE6T6FOC.js → image-NMU2LHCK.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +17 -14
- package/dist/prod/locales/{en-3JJA6ONK.js → en-RF5UZHGV.js} +1 -1
- package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
- package/dist/types/{excalidraw → common/src}/colors.d.ts +1 -0
- package/dist/types/{excalidraw → common/src}/constants.d.ts +7 -6
- package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +11 -3
- package/dist/types/common/src/index.d.ts +11 -0
- package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
- package/dist/types/common/src/promise-pool.d.ts +6 -0
- package/dist/types/{excalidraw → common/src}/utils.d.ts +9 -12
- package/dist/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
- package/dist/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
- package/dist/types/{excalidraw → element/src}/align.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/binding.d.ts +5 -4
- package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +6 -1
- package/dist/types/{excalidraw/element → element/src}/collision.d.ts +2 -2
- package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
- package/dist/types/{excalidraw → element/src}/distribute.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +3 -3
- package/dist/types/element/src/duplicate.d.ts +66 -0
- package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
- package/dist/types/element/src/embeddable.d.ts +10 -0
- package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +1 -1
- package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +4 -1
- package/dist/types/{excalidraw → element/src}/frame.d.ts +6 -6
- package/dist/types/{excalidraw → element/src}/groups.d.ts +5 -5
- package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
- package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/index.d.ts +0 -10
- package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +5 -5
- package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +3 -43
- package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
- package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +1 -1
- package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +2 -2
- package/dist/types/{excalidraw → element/src}/shapes.d.ts +6 -6
- package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +3 -4
- package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +5 -5
- package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/types.d.ts +2 -2
- package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +73 -70
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +54 -52
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +456 -264
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +155 -149
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +73 -70
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +30 -29
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +53 -52
- package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +26 -35
- package/dist/types/excalidraw/actions/actionExport.d.ts +306 -297
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +41 -39
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +217 -213
- package/dist/types/excalidraw/actions/actionGroup.d.ts +51 -49
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +27 -26
- package/dist/types/excalidraw/actions/actionLink.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionMenu.d.ts +73 -70
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +48 -46
- package/dist/types/excalidraw/actions/actionProperties.d.ts +317 -302
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +28 -27
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +50 -48
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +25 -25
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +26 -26
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -26
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/index.d.ts +1 -0
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +2 -2
- package/dist/types/excalidraw/animated-trail.d.ts +7 -1
- package/dist/types/excalidraw/appState.d.ts +35 -34
- package/dist/types/excalidraw/change.d.ts +3 -3
- package/dist/types/excalidraw/charts.d.ts +1 -1
- package/dist/types/excalidraw/clipboard.d.ts +2 -2
- package/dist/types/excalidraw/components/Actions.d.ts +2 -2
- package/dist/types/excalidraw/components/App.d.ts +14 -9
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
- package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -2
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
- package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +1 -1
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/index.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/dist/types/excalidraw/components/icons.d.ts +2 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
- package/dist/types/excalidraw/components/shapes.d.ts +62 -0
- package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +1 -1
- package/dist/types/excalidraw/data/index.d.ts +1 -1
- package/dist/types/excalidraw/data/json.d.ts +1 -1
- package/dist/types/excalidraw/data/library.d.ts +2 -2
- package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
- package/dist/types/excalidraw/data/resave.d.ts +1 -1
- package/dist/types/excalidraw/data/restore.d.ts +1 -1
- package/dist/types/excalidraw/data/transform.d.ts +4 -4
- package/dist/types/excalidraw/data/types.d.ts +2 -2
- package/dist/types/excalidraw/errors.d.ts +0 -3
- package/dist/types/excalidraw/fonts/Fonts.d.ts +2 -12
- package/dist/types/excalidraw/history.d.ts +1 -1
- package/dist/types/excalidraw/i18n.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +11 -10
- package/dist/types/excalidraw/lasso/index.d.ts +15 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +1 -1
- package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +1 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +2 -2
- package/dist/types/excalidraw/scene/Scene.d.ts +5 -5
- package/dist/types/excalidraw/scene/export.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
- package/dist/types/excalidraw/scene/scrollbars.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +3 -3
- package/dist/types/excalidraw/snapping.d.ts +4 -5
- package/dist/types/excalidraw/store.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +10 -9
- package/dist/types/excalidraw/visualdebug.d.ts +1 -1
- package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +1 -1
- package/dist/types/math/{point.d.ts → src/point.d.ts} +2 -2
- package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
- package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
- package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
- package/dist/types/utils/{collision.d.ts → src/collision.d.ts} +1 -2
- package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
- package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
- package/dist/types/utils/{geometry → src}/shape.d.ts +1 -14
- package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
- package/history.ts +2 -1
- package/package.json +14 -2
- package/dist/dev/chunk-DYSQNY2T.js.map +0 -7
- package/dist/dev/chunk-ND5KUA7P.js.map +0 -7
- package/dist/prod/chunk-45TA3AZW.js +0 -34
- /package/dist/dev/data/{image-ZD4HK457.js.map → image-N5NBMO74.js.map} +0 -0
- /package/dist/dev/locales/{en-IW3FTNXY.js.map → en-FBYNI7ML.js.map} +0 -0
- /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
- /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/utility-types.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/utils.d.ts +0 -0
- /package/dist/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
- /package/dist/types/math/{curve.d.ts → src/curve.d.ts} +0 -0
- /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
- /package/dist/types/math/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
- /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
- /package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
- /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
- /package/dist/types/math/{types.d.ts → src/types.d.ts} +0 -0
- /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
- /package/dist/types/math/{vector.d.ts → src/vector.d.ts} +0 -0
|
@@ -6,7 +6,7 @@ export declare const actionCopyElementLink: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
|
|
10
10
|
appState: {
|
|
11
11
|
toast: {
|
|
12
12
|
message: string;
|
|
@@ -18,11 +18,11 @@ export declare const actionCopyElementLink: {
|
|
|
18
18
|
app?: undefined;
|
|
19
19
|
} | {
|
|
20
20
|
appState: Readonly<import("../types").AppState>;
|
|
21
|
-
elements: readonly import("
|
|
21
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
22
22
|
app: import("../types").AppClassProperties;
|
|
23
23
|
captureUpdate: "EVENTUALLY";
|
|
24
24
|
}>;
|
|
25
|
-
predicate: (elements: readonly import("
|
|
25
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
26
26
|
} & {
|
|
27
27
|
keyTest?: undefined;
|
|
28
28
|
};
|
|
@@ -30,8 +30,8 @@ export declare const actionLinkToElement: {
|
|
|
30
30
|
name: "linkToElement";
|
|
31
31
|
label: string;
|
|
32
32
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
perform: (elements: readonly import("
|
|
34
|
-
elements: readonly import("
|
|
33
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
34
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
35
35
|
appState: Readonly<import("../types").AppState>;
|
|
36
36
|
app: import("../types").AppClassProperties;
|
|
37
37
|
captureUpdate: "EVENTUALLY";
|
|
@@ -53,17 +53,17 @@ export declare const actionLinkToElement: {
|
|
|
53
53
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
54
54
|
errorMessage: import("react").ReactNode;
|
|
55
55
|
activeEmbeddable: {
|
|
56
|
-
element: import("
|
|
56
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
57
57
|
state: "hover" | "active";
|
|
58
58
|
} | null;
|
|
59
|
-
newElement: import("
|
|
60
|
-
resizingElement: import("
|
|
61
|
-
multiElement: import("
|
|
62
|
-
selectionElement: import("
|
|
59
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
60
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
61
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
62
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
63
63
|
isBindingEnabled: boolean;
|
|
64
|
-
startBoundElement: import("
|
|
65
|
-
suggestedBindings: import("
|
|
66
|
-
frameToHighlight: import("
|
|
64
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
65
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
66
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
67
67
|
frameRendering: {
|
|
68
68
|
enabled: boolean;
|
|
69
69
|
name: boolean;
|
|
@@ -71,12 +71,13 @@ export declare const actionLinkToElement: {
|
|
|
71
71
|
clip: boolean;
|
|
72
72
|
};
|
|
73
73
|
editingFrame: string | null;
|
|
74
|
-
elementsToHighlight: import("
|
|
75
|
-
editingTextElement: import("
|
|
76
|
-
editingLinearElement: import("
|
|
74
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
75
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
76
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
77
77
|
activeTool: {
|
|
78
78
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
79
79
|
locked: boolean;
|
|
80
|
+
fromSelection: boolean;
|
|
80
81
|
} & import("../types").ActiveTool;
|
|
81
82
|
penMode: boolean;
|
|
82
83
|
penDetected: boolean;
|
|
@@ -86,18 +87,18 @@ export declare const actionLinkToElement: {
|
|
|
86
87
|
exportScale: number;
|
|
87
88
|
currentItemStrokeColor: string;
|
|
88
89
|
currentItemBackgroundColor: string;
|
|
89
|
-
currentItemFillStyle: import("
|
|
90
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
90
91
|
currentItemStrokeWidth: number;
|
|
91
|
-
currentItemStrokeStyle: import("
|
|
92
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
92
93
|
currentItemRoughness: number;
|
|
93
94
|
currentItemOpacity: number;
|
|
94
95
|
currentItemFontFamily: number;
|
|
95
96
|
currentItemFontSize: number;
|
|
96
97
|
currentItemTextAlign: string;
|
|
97
|
-
currentItemStartArrowhead: import("
|
|
98
|
-
currentItemEndArrowhead: import("
|
|
98
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
99
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
99
100
|
currentHoveredFontFamily: number | null;
|
|
100
|
-
currentItemRoundness: import("
|
|
101
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
101
102
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
102
103
|
viewBackgroundColor: string;
|
|
103
104
|
scrollX: number;
|
|
@@ -110,14 +111,14 @@ export declare const actionLinkToElement: {
|
|
|
110
111
|
zoom: Readonly<{
|
|
111
112
|
value: import("../types").NormalizedZoomValue;
|
|
112
113
|
}>;
|
|
113
|
-
openMenu: "
|
|
114
|
+
openMenu: "shape" | "canvas" | null;
|
|
114
115
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
115
116
|
openSidebar: {
|
|
116
117
|
name: string;
|
|
117
118
|
tab?: string | undefined;
|
|
118
119
|
} | null;
|
|
119
120
|
defaultSidebarDockedPreference: boolean;
|
|
120
|
-
lastPointerDownWith: import("
|
|
121
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
121
122
|
selectedElementIds: Readonly<{
|
|
122
123
|
[id: string]: true;
|
|
123
124
|
}>;
|
|
@@ -135,7 +136,7 @@ export declare const actionLinkToElement: {
|
|
|
135
136
|
duration?: number | undefined;
|
|
136
137
|
} | null;
|
|
137
138
|
zenModeEnabled: boolean;
|
|
138
|
-
theme: import("
|
|
139
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
139
140
|
gridSize: number;
|
|
140
141
|
gridStep: number;
|
|
141
142
|
gridModeEnabled: boolean;
|
|
@@ -156,7 +157,7 @@ export declare const actionLinkToElement: {
|
|
|
156
157
|
[id: string]: true;
|
|
157
158
|
}> | undefined;
|
|
158
159
|
username?: string | null | undefined;
|
|
159
|
-
userState?: import("
|
|
160
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
160
161
|
color?: {
|
|
161
162
|
background: string;
|
|
162
163
|
stroke: string;
|
|
@@ -173,7 +174,7 @@ export declare const actionLinkToElement: {
|
|
|
173
174
|
open: boolean;
|
|
174
175
|
panels: number;
|
|
175
176
|
};
|
|
176
|
-
currentChartType: import("
|
|
177
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
177
178
|
pasteDialog: {
|
|
178
179
|
shown: false;
|
|
179
180
|
data: null;
|
|
@@ -182,8 +183,8 @@ export declare const actionLinkToElement: {
|
|
|
182
183
|
data: import("../charts").Spreadsheet;
|
|
183
184
|
};
|
|
184
185
|
pendingImageElementId: string | null;
|
|
185
|
-
showHyperlinkPopup: false | "
|
|
186
|
-
selectedLinearElement: import("
|
|
186
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
187
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
187
188
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
188
189
|
originSnapOffset: {
|
|
189
190
|
x: number;
|
|
@@ -209,7 +210,7 @@ export declare const actionLinkToElement: {
|
|
|
209
210
|
elements?: undefined;
|
|
210
211
|
app?: undefined;
|
|
211
212
|
};
|
|
212
|
-
predicate: (elements: readonly import("
|
|
213
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
213
214
|
trackEvent: false;
|
|
214
215
|
} & {
|
|
215
216
|
keyTest?: undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ExcalidrawElement } from "
|
|
2
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
3
|
export declare const actionToggleElementLock: {
|
|
4
4
|
name: "toggleElementLock";
|
|
5
5
|
label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
|
|
@@ -8,10 +8,10 @@ export declare const actionToggleElementLock: {
|
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
10
|
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
|
-
perform: (elements: readonly import("
|
|
12
|
-
elements: import("
|
|
11
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
|
|
12
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
13
13
|
appState: {
|
|
14
|
-
selectedLinearElement: import("
|
|
14
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
15
15
|
contextMenu: {
|
|
16
16
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
17
17
|
top: number;
|
|
@@ -24,17 +24,17 @@ export declare const actionToggleElementLock: {
|
|
|
24
24
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
25
25
|
errorMessage: import("react").ReactNode;
|
|
26
26
|
activeEmbeddable: {
|
|
27
|
-
element: import("
|
|
27
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
28
28
|
state: "hover" | "active";
|
|
29
29
|
} | null;
|
|
30
|
-
newElement: import("
|
|
31
|
-
resizingElement: import("
|
|
32
|
-
multiElement: import("
|
|
33
|
-
selectionElement: import("
|
|
30
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
31
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
33
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
34
34
|
isBindingEnabled: boolean;
|
|
35
|
-
startBoundElement: import("
|
|
36
|
-
suggestedBindings: import("
|
|
37
|
-
frameToHighlight: import("
|
|
35
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
36
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
37
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
38
38
|
frameRendering: {
|
|
39
39
|
enabled: boolean;
|
|
40
40
|
name: boolean;
|
|
@@ -42,12 +42,13 @@ export declare const actionToggleElementLock: {
|
|
|
42
42
|
clip: boolean;
|
|
43
43
|
};
|
|
44
44
|
editingFrame: string | null;
|
|
45
|
-
elementsToHighlight: import("
|
|
46
|
-
editingTextElement: import("
|
|
47
|
-
editingLinearElement: import("
|
|
45
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
46
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
47
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
48
48
|
activeTool: {
|
|
49
49
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
50
50
|
locked: boolean;
|
|
51
|
+
fromSelection: boolean;
|
|
51
52
|
} & import("../types").ActiveTool;
|
|
52
53
|
penMode: boolean;
|
|
53
54
|
penDetected: boolean;
|
|
@@ -57,18 +58,18 @@ export declare const actionToggleElementLock: {
|
|
|
57
58
|
exportScale: number;
|
|
58
59
|
currentItemStrokeColor: string;
|
|
59
60
|
currentItemBackgroundColor: string;
|
|
60
|
-
currentItemFillStyle: import("
|
|
61
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
61
62
|
currentItemStrokeWidth: number;
|
|
62
|
-
currentItemStrokeStyle: import("
|
|
63
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
63
64
|
currentItemRoughness: number;
|
|
64
65
|
currentItemOpacity: number;
|
|
65
66
|
currentItemFontFamily: number;
|
|
66
67
|
currentItemFontSize: number;
|
|
67
68
|
currentItemTextAlign: string;
|
|
68
|
-
currentItemStartArrowhead: import("
|
|
69
|
-
currentItemEndArrowhead: import("
|
|
69
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
70
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
70
71
|
currentHoveredFontFamily: number | null;
|
|
71
|
-
currentItemRoundness: import("
|
|
72
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
72
73
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
73
74
|
viewBackgroundColor: string;
|
|
74
75
|
scrollX: number;
|
|
@@ -81,7 +82,7 @@ export declare const actionToggleElementLock: {
|
|
|
81
82
|
zoom: Readonly<{
|
|
82
83
|
value: import("../types").NormalizedZoomValue;
|
|
83
84
|
}>;
|
|
84
|
-
openMenu: "
|
|
85
|
+
openMenu: "shape" | "canvas" | null;
|
|
85
86
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
86
87
|
openSidebar: {
|
|
87
88
|
name: string;
|
|
@@ -99,7 +100,7 @@ export declare const actionToggleElementLock: {
|
|
|
99
100
|
sourceElementId: string;
|
|
100
101
|
} | null;
|
|
101
102
|
defaultSidebarDockedPreference: boolean;
|
|
102
|
-
lastPointerDownWith: import("
|
|
103
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
103
104
|
selectedElementIds: Readonly<{
|
|
104
105
|
[id: string]: true;
|
|
105
106
|
}>;
|
|
@@ -117,7 +118,7 @@ export declare const actionToggleElementLock: {
|
|
|
117
118
|
duration?: number | undefined;
|
|
118
119
|
} | null;
|
|
119
120
|
zenModeEnabled: boolean;
|
|
120
|
-
theme: import("
|
|
121
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
121
122
|
gridSize: number;
|
|
122
123
|
gridStep: number;
|
|
123
124
|
gridModeEnabled: boolean;
|
|
@@ -138,7 +139,7 @@ export declare const actionToggleElementLock: {
|
|
|
138
139
|
[id: string]: true;
|
|
139
140
|
}> | undefined;
|
|
140
141
|
username?: string | null | undefined;
|
|
141
|
-
userState?: import("
|
|
142
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
142
143
|
color?: {
|
|
143
144
|
background: string;
|
|
144
145
|
stroke: string;
|
|
@@ -155,7 +156,7 @@ export declare const actionToggleElementLock: {
|
|
|
155
156
|
open: boolean;
|
|
156
157
|
panels: number;
|
|
157
158
|
};
|
|
158
|
-
currentChartType: import("
|
|
159
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
159
160
|
pasteDialog: {
|
|
160
161
|
shown: false;
|
|
161
162
|
data: null;
|
|
@@ -164,7 +165,7 @@ export declare const actionToggleElementLock: {
|
|
|
164
165
|
data: import("../charts").Spreadsheet;
|
|
165
166
|
};
|
|
166
167
|
pendingImageElementId: string | null;
|
|
167
|
-
showHyperlinkPopup: false | "
|
|
168
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
168
169
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
169
170
|
originSnapOffset: {
|
|
170
171
|
x: number;
|
|
@@ -194,15 +195,14 @@ export declare const actionToggleElementLock: {
|
|
|
194
195
|
};
|
|
195
196
|
export declare const actionUnlockAllElements: {
|
|
196
197
|
name: "unlockAllElements";
|
|
197
|
-
paletteName: string;
|
|
198
198
|
trackEvent: {
|
|
199
199
|
category: "canvas";
|
|
200
200
|
};
|
|
201
201
|
viewMode: false;
|
|
202
202
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
203
203
|
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
204
|
-
perform: (elements: readonly import("
|
|
205
|
-
elements: import("
|
|
204
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
205
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
206
206
|
appState: {
|
|
207
207
|
selectedElementIds: {
|
|
208
208
|
[k: string]: true;
|
|
@@ -219,17 +219,17 @@ export declare const actionUnlockAllElements: {
|
|
|
219
219
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
220
220
|
errorMessage: import("react").ReactNode;
|
|
221
221
|
activeEmbeddable: {
|
|
222
|
-
element: import("
|
|
222
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
223
223
|
state: "hover" | "active";
|
|
224
224
|
} | null;
|
|
225
|
-
newElement: import("
|
|
226
|
-
resizingElement: import("
|
|
227
|
-
multiElement: import("
|
|
228
|
-
selectionElement: import("
|
|
225
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
226
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
227
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
228
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
229
229
|
isBindingEnabled: boolean;
|
|
230
|
-
startBoundElement: import("
|
|
231
|
-
suggestedBindings: import("
|
|
232
|
-
frameToHighlight: import("
|
|
230
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
231
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
232
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
233
233
|
frameRendering: {
|
|
234
234
|
enabled: boolean;
|
|
235
235
|
name: boolean;
|
|
@@ -237,12 +237,13 @@ export declare const actionUnlockAllElements: {
|
|
|
237
237
|
clip: boolean;
|
|
238
238
|
};
|
|
239
239
|
editingFrame: string | null;
|
|
240
|
-
elementsToHighlight: import("
|
|
241
|
-
editingTextElement: import("
|
|
242
|
-
editingLinearElement: import("
|
|
240
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
241
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
242
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
243
243
|
activeTool: {
|
|
244
244
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
245
245
|
locked: boolean;
|
|
246
|
+
fromSelection: boolean;
|
|
246
247
|
} & import("../types").ActiveTool;
|
|
247
248
|
penMode: boolean;
|
|
248
249
|
penDetected: boolean;
|
|
@@ -252,18 +253,18 @@ export declare const actionUnlockAllElements: {
|
|
|
252
253
|
exportScale: number;
|
|
253
254
|
currentItemStrokeColor: string;
|
|
254
255
|
currentItemBackgroundColor: string;
|
|
255
|
-
currentItemFillStyle: import("
|
|
256
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
256
257
|
currentItemStrokeWidth: number;
|
|
257
|
-
currentItemStrokeStyle: import("
|
|
258
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
258
259
|
currentItemRoughness: number;
|
|
259
260
|
currentItemOpacity: number;
|
|
260
261
|
currentItemFontFamily: number;
|
|
261
262
|
currentItemFontSize: number;
|
|
262
263
|
currentItemTextAlign: string;
|
|
263
|
-
currentItemStartArrowhead: import("
|
|
264
|
-
currentItemEndArrowhead: import("
|
|
264
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
265
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
265
266
|
currentHoveredFontFamily: number | null;
|
|
266
|
-
currentItemRoundness: import("
|
|
267
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
267
268
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
268
269
|
viewBackgroundColor: string;
|
|
269
270
|
scrollX: number;
|
|
@@ -276,7 +277,7 @@ export declare const actionUnlockAllElements: {
|
|
|
276
277
|
zoom: Readonly<{
|
|
277
278
|
value: import("../types").NormalizedZoomValue;
|
|
278
279
|
}>;
|
|
279
|
-
openMenu: "
|
|
280
|
+
openMenu: "shape" | "canvas" | null;
|
|
280
281
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
281
282
|
openSidebar: {
|
|
282
283
|
name: string;
|
|
@@ -294,7 +295,7 @@ export declare const actionUnlockAllElements: {
|
|
|
294
295
|
sourceElementId: string;
|
|
295
296
|
} | null;
|
|
296
297
|
defaultSidebarDockedPreference: boolean;
|
|
297
|
-
lastPointerDownWith: import("
|
|
298
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
298
299
|
hoveredElementIds: Readonly<{
|
|
299
300
|
[id: string]: true;
|
|
300
301
|
}>;
|
|
@@ -309,7 +310,7 @@ export declare const actionUnlockAllElements: {
|
|
|
309
310
|
duration?: number | undefined;
|
|
310
311
|
} | null;
|
|
311
312
|
zenModeEnabled: boolean;
|
|
312
|
-
theme: import("
|
|
313
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
313
314
|
gridSize: number;
|
|
314
315
|
gridStep: number;
|
|
315
316
|
gridModeEnabled: boolean;
|
|
@@ -330,7 +331,7 @@ export declare const actionUnlockAllElements: {
|
|
|
330
331
|
[id: string]: true;
|
|
331
332
|
}> | undefined;
|
|
332
333
|
username?: string | null | undefined;
|
|
333
|
-
userState?: import("
|
|
334
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
334
335
|
color?: {
|
|
335
336
|
background: string;
|
|
336
337
|
stroke: string;
|
|
@@ -347,7 +348,7 @@ export declare const actionUnlockAllElements: {
|
|
|
347
348
|
open: boolean;
|
|
348
349
|
panels: number;
|
|
349
350
|
};
|
|
350
|
-
currentChartType: import("
|
|
351
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
351
352
|
pasteDialog: {
|
|
352
353
|
shown: false;
|
|
353
354
|
data: null;
|
|
@@ -356,8 +357,8 @@ export declare const actionUnlockAllElements: {
|
|
|
356
357
|
data: import("../charts").Spreadsheet;
|
|
357
358
|
};
|
|
358
359
|
pendingImageElementId: string | null;
|
|
359
|
-
showHyperlinkPopup: false | "
|
|
360
|
-
selectedLinearElement: import("
|
|
360
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
361
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
361
362
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
362
363
|
originSnapOffset: {
|
|
363
364
|
x: number;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ExcalidrawProps } from "../types";
|
|
3
|
-
import type { MarkRequired } from "../utility-types";
|
|
4
|
-
import type { ExcalidrawElement, ExcalidrawIframeLikeElement, IframeData } from "./types";
|
|
5
|
-
type IframeDataWithSandbox = MarkRequired<IframeData, "sandbox">;
|
|
6
|
-
export declare const createSrcDoc: (body: string) => string;
|
|
7
|
-
export declare const getEmbedLink: (link: string | null | undefined) => IframeDataWithSandbox | null;
|
|
8
|
-
export declare const createPlaceholderEmbeddableLabel: (element: ExcalidrawIframeLikeElement) => ExcalidrawElement;
|
|
9
2
|
export declare const actionSetEmbeddableAsActiveTool: {
|
|
10
3
|
name: "setEmbeddableAsActiveTool";
|
|
11
4
|
trackEvent: {
|
|
@@ -13,12 +6,13 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
13
6
|
};
|
|
14
7
|
target: string;
|
|
15
8
|
label: string;
|
|
16
|
-
perform: (elements: readonly import("
|
|
17
|
-
elements: readonly import("
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
10
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
18
11
|
appState: {
|
|
19
12
|
activeTool: {
|
|
20
13
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
21
14
|
locked: boolean;
|
|
15
|
+
fromSelection: boolean;
|
|
22
16
|
} & import("../types").ActiveTool;
|
|
23
17
|
contextMenu: {
|
|
24
18
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -32,17 +26,17 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
32
26
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
33
27
|
errorMessage: import("react").ReactNode;
|
|
34
28
|
activeEmbeddable: {
|
|
35
|
-
element: import("
|
|
29
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
36
30
|
state: "hover" | "active";
|
|
37
31
|
} | null;
|
|
38
|
-
newElement: import("
|
|
39
|
-
resizingElement: import("
|
|
40
|
-
multiElement: import("
|
|
41
|
-
selectionElement: import("
|
|
32
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
33
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
34
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
35
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
36
|
isBindingEnabled: boolean;
|
|
43
|
-
startBoundElement: import("
|
|
44
|
-
suggestedBindings: import("
|
|
45
|
-
frameToHighlight: import("
|
|
37
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
38
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
39
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
46
40
|
frameRendering: {
|
|
47
41
|
enabled: boolean;
|
|
48
42
|
name: boolean;
|
|
@@ -50,9 +44,9 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
50
44
|
clip: boolean;
|
|
51
45
|
};
|
|
52
46
|
editingFrame: string | null;
|
|
53
|
-
elementsToHighlight: import("
|
|
54
|
-
editingTextElement: import("
|
|
55
|
-
editingLinearElement: import("
|
|
47
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
48
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
49
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
56
50
|
penMode: boolean;
|
|
57
51
|
penDetected: boolean;
|
|
58
52
|
exportBackground: boolean;
|
|
@@ -61,18 +55,18 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
61
55
|
exportScale: number;
|
|
62
56
|
currentItemStrokeColor: string;
|
|
63
57
|
currentItemBackgroundColor: string;
|
|
64
|
-
currentItemFillStyle: import("
|
|
58
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
65
59
|
currentItemStrokeWidth: number;
|
|
66
|
-
currentItemStrokeStyle: import("
|
|
60
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
67
61
|
currentItemRoughness: number;
|
|
68
62
|
currentItemOpacity: number;
|
|
69
63
|
currentItemFontFamily: number;
|
|
70
64
|
currentItemFontSize: number;
|
|
71
65
|
currentItemTextAlign: string;
|
|
72
|
-
currentItemStartArrowhead: import("
|
|
73
|
-
currentItemEndArrowhead: import("
|
|
66
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
67
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
74
68
|
currentHoveredFontFamily: number | null;
|
|
75
|
-
currentItemRoundness: import("
|
|
69
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
76
70
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
77
71
|
viewBackgroundColor: string;
|
|
78
72
|
scrollX: number;
|
|
@@ -85,7 +79,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
85
79
|
zoom: Readonly<{
|
|
86
80
|
value: import("../types").NormalizedZoomValue;
|
|
87
81
|
}>;
|
|
88
|
-
openMenu: "
|
|
82
|
+
openMenu: "shape" | "canvas" | null;
|
|
89
83
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
90
84
|
openSidebar: {
|
|
91
85
|
name: string;
|
|
@@ -103,7 +97,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
103
97
|
sourceElementId: string;
|
|
104
98
|
} | null;
|
|
105
99
|
defaultSidebarDockedPreference: boolean;
|
|
106
|
-
lastPointerDownWith: import("
|
|
100
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
107
101
|
selectedElementIds: Readonly<{
|
|
108
102
|
[id: string]: true;
|
|
109
103
|
}>;
|
|
@@ -121,7 +115,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
121
115
|
duration?: number | undefined;
|
|
122
116
|
} | null;
|
|
123
117
|
zenModeEnabled: boolean;
|
|
124
|
-
theme: import("
|
|
118
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
125
119
|
gridSize: number;
|
|
126
120
|
gridStep: number;
|
|
127
121
|
gridModeEnabled: boolean;
|
|
@@ -142,7 +136,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
142
136
|
[id: string]: true;
|
|
143
137
|
}> | undefined;
|
|
144
138
|
username?: string | null | undefined;
|
|
145
|
-
userState?: import("
|
|
139
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
146
140
|
color?: {
|
|
147
141
|
background: string;
|
|
148
142
|
stroke: string;
|
|
@@ -159,7 +153,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
159
153
|
open: boolean;
|
|
160
154
|
panels: number;
|
|
161
155
|
};
|
|
162
|
-
currentChartType: import("
|
|
156
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
163
157
|
pasteDialog: {
|
|
164
158
|
shown: false;
|
|
165
159
|
data: null;
|
|
@@ -168,8 +162,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
168
162
|
data: import("../charts").Spreadsheet;
|
|
169
163
|
};
|
|
170
164
|
pendingImageElementId: string | null;
|
|
171
|
-
showHyperlinkPopup: false | "
|
|
172
|
-
selectedLinearElement: import("
|
|
165
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
166
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
173
167
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
174
168
|
originSnapOffset: {
|
|
175
169
|
x: number;
|
|
@@ -196,6 +190,3 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
196
190
|
} & {
|
|
197
191
|
keyTest?: undefined;
|
|
198
192
|
};
|
|
199
|
-
export declare const maybeParseEmbedSrc: (str: string) => string;
|
|
200
|
-
export declare const embeddableURLValidator: (url: string | null | undefined, validateEmbeddable: ExcalidrawProps["validateEmbeddable"]) => boolean;
|
|
201
|
-
export {};
|