@excalidraw/excalidraw 0.17.1-d2f67e6 → 0.17.1-e63dd02
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/CHANGELOG.md +4 -0
- package/dist/browser/dev/excalidraw-assets-dev/CascadiaCode-Regular-TMZI7IJ5.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/ComicShanns-Regular-6TOETDFT.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/Excalifont-Regular-CPKEUDVM.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/LiberationSans-Regular-ZQD73GJM.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/Virgil-Regular-YHAB2VGJ.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/{chunk-EM6LVGFW.js → chunk-IT7T3AIK.js} +23 -5
- package/dist/browser/dev/excalidraw-assets-dev/chunk-IT7T3AIK.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{chunk-B4UMSLQQ.js → chunk-RNHSD5AR.js} +7451 -2098
- package/dist/browser/dev/excalidraw-assets-dev/chunk-RNHSD5AR.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{dist-6QVAH5JA.js → dist-DNSPZDOZ.js} +31 -19
- package/dist/browser/dev/excalidraw-assets-dev/dist-DNSPZDOZ.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{en-AZFA5HJJ.js → en-XV7OZCPP.js} +6 -2
- package/dist/browser/dev/excalidraw-assets-dev/{image-V7E6IT6R.js → image-77HZYGLG.js} +2 -2
- package/dist/browser/dev/excalidraw-assets-dev/{image-O66MQ7WQ.css → image-WDHYGKKP.css} +1 -1
- package/dist/browser/dev/excalidraw-assets-dev/{image-O66MQ7WQ.css.map → image-WDHYGKKP.css.map} +2 -2
- package/dist/browser/dev/index.css +449 -114
- package/dist/browser/dev/index.css.map +3 -3
- package/dist/browser/dev/index.js +4143 -5956
- package/dist/browser/dev/index.js.map +4 -4
- package/dist/browser/prod/excalidraw-assets/CascadiaCode-Regular-TMZI7IJ5.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/ComicShanns-Regular-6TOETDFT.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/Excalifont-Regular-CPKEUDVM.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/LiberationSans-Regular-ZQD73GJM.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/Virgil-Regular-YHAB2VGJ.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/chunk-OYEADJSR.js +63 -0
- package/dist/browser/prod/excalidraw-assets/{chunk-7DXALCB2.js → chunk-PDYFZJMS.js} +3 -3
- package/dist/browser/prod/excalidraw-assets/dist-NLUQPPQQ.js +7 -0
- package/dist/browser/prod/excalidraw-assets/en-YVAVVILW.js +1 -0
- package/dist/browser/prod/excalidraw-assets/image-X3GFZHNN.js +1 -0
- package/dist/browser/prod/index.css +1 -1
- package/dist/browser/prod/index.js +40 -50
- package/dist/dev/CascadiaCode-Regular-TMZI7IJ5.woff2 +0 -0
- package/dist/dev/ComicShanns-Regular-6TOETDFT.woff2 +0 -0
- package/dist/dev/Excalifont-Regular-CPKEUDVM.woff2 +0 -0
- package/dist/dev/LiberationSans-Regular-ZQD73GJM.woff2 +0 -0
- package/dist/dev/Virgil-Regular-YHAB2VGJ.woff2 +0 -0
- package/dist/dev/{en-EB2MBPAV.json → en-YNVBSAIL.json} +18 -4
- package/dist/dev/index.css +449 -114
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +21626 -18122
- package/dist/dev/index.js.map +4 -4
- package/dist/excalidraw/actions/actionAddToLibrary.d.ts +9 -3
- package/dist/excalidraw/actions/actionBoundText.d.ts +6 -2
- package/dist/excalidraw/actions/actionCanvas.d.ts +36 -12
- package/dist/excalidraw/actions/actionClipboard.d.ts +22 -7
- package/dist/excalidraw/actions/actionDeleteSelected.d.ts +12 -5
- package/dist/excalidraw/actions/actionDeleteSelected.js +24 -5
- package/dist/excalidraw/actions/actionDuplicateSelection.js +1 -2
- package/dist/excalidraw/actions/actionElementLock.d.ts +6 -2
- package/dist/excalidraw/actions/actionExport.d.ts +27 -9
- package/dist/excalidraw/actions/actionFinalize.d.ts +6 -2
- package/dist/excalidraw/actions/actionFinalize.js +2 -2
- package/dist/excalidraw/actions/actionFlip.js +2 -2
- package/dist/excalidraw/actions/actionFrame.d.ts +12 -4
- package/dist/excalidraw/actions/actionGroup.d.ts +6 -2
- package/dist/excalidraw/actions/actionHistory.js +4 -4
- package/dist/excalidraw/actions/actionLinearEditor.d.ts +3 -1
- package/dist/excalidraw/actions/actionLinearEditor.js +3 -2
- package/dist/excalidraw/actions/actionLink.d.ts +3 -1
- package/dist/excalidraw/actions/actionMenu.d.ts +9 -3
- package/dist/excalidraw/actions/actionNavigate.d.ts +6 -2
- package/dist/excalidraw/actions/actionProperties.d.ts +411 -56
- package/dist/excalidraw/actions/actionProperties.js +383 -58
- package/dist/excalidraw/actions/actionSelectAll.d.ts +3 -1
- package/dist/excalidraw/actions/actionStyles.d.ts +3 -1
- package/dist/excalidraw/actions/actionStyles.js +3 -2
- package/dist/excalidraw/actions/actionToggleGridMode.d.ts +3 -1
- package/dist/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +3 -1
- package/dist/excalidraw/actions/actionToggleStats.d.ts +3 -1
- package/dist/excalidraw/actions/actionToggleViewMode.d.ts +3 -1
- package/dist/excalidraw/actions/actionToggleZenMode.d.ts +3 -1
- package/dist/excalidraw/actions/types.d.ts +1 -1
- package/dist/excalidraw/analytics.js +9 -7
- package/dist/excalidraw/appState.d.ts +1 -0
- package/dist/excalidraw/appState.js +9 -1
- package/dist/excalidraw/binaryheap.d.ts +12 -0
- package/dist/excalidraw/binaryheap.js +93 -0
- package/dist/excalidraw/change.d.ts +2 -1
- package/dist/excalidraw/change.js +6 -4
- package/dist/excalidraw/charts.js +0 -10
- package/dist/excalidraw/components/Actions.js +7 -5
- package/dist/excalidraw/components/App.d.ts +5 -9
- package/dist/excalidraw/components/App.js +218 -161
- package/dist/excalidraw/components/ButtonIcon.d.ts +15 -0
- package/dist/excalidraw/components/ButtonIcon.js +8 -0
- package/dist/excalidraw/components/ButtonIconSelect.js +2 -3
- package/dist/excalidraw/components/ButtonSeparator.d.ts +2 -0
- package/dist/excalidraw/components/ButtonSeparator.js +7 -0
- package/dist/excalidraw/components/ColorPicker/ColorPicker.js +47 -79
- package/dist/excalidraw/components/ColorPicker/Picker.js +1 -1
- package/dist/excalidraw/components/FontPicker/FontPicker.d.ts +21 -0
- package/dist/excalidraw/components/FontPicker/FontPicker.js +49 -0
- package/dist/excalidraw/components/FontPicker/FontPickerList.d.ts +25 -0
- package/dist/excalidraw/components/FontPicker/FontPickerList.js +119 -0
- package/dist/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +7 -0
- package/dist/excalidraw/components/FontPicker/FontPickerTrigger.js +13 -0
- package/dist/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +14 -0
- package/dist/excalidraw/components/FontPicker/keyboardNavHandlers.js +38 -0
- package/dist/excalidraw/components/HelpDialog.js +1 -1
- package/dist/excalidraw/components/HintViewer.js +6 -3
- package/dist/excalidraw/components/PropertiesPopover.d.ts +15 -0
- package/dist/excalidraw/components/PropertiesPopover.js +31 -0
- package/dist/excalidraw/components/QuickSearch.d.ts +9 -0
- package/dist/excalidraw/components/QuickSearch.js +8 -0
- package/dist/excalidraw/components/ScrollableList.d.ts +9 -0
- package/dist/excalidraw/components/ScrollableList.js +8 -0
- package/dist/excalidraw/components/Stats/Angle.d.ts +7 -3
- package/dist/excalidraw/components/Stats/Angle.js +39 -31
- package/dist/excalidraw/components/Stats/Dimension.d.ts +6 -3
- package/dist/excalidraw/components/Stats/Dimension.js +51 -49
- package/dist/excalidraw/components/Stats/DragInput.d.ts +15 -6
- package/dist/excalidraw/components/Stats/DragInput.js +59 -26
- package/dist/excalidraw/components/Stats/FontSize.d.ts +8 -4
- package/dist/excalidraw/components/Stats/FontSize.js +39 -36
- package/dist/excalidraw/components/Stats/MultiAngle.d.ts +5 -3
- package/dist/excalidraw/components/Stats/MultiAngle.js +43 -34
- package/dist/excalidraw/components/Stats/MultiDimension.d.ts +5 -3
- package/dist/excalidraw/components/Stats/MultiDimension.js +101 -99
- package/dist/excalidraw/components/Stats/MultiFontSize.d.ts +6 -3
- package/dist/excalidraw/components/Stats/MultiFontSize.js +47 -32
- package/dist/excalidraw/components/Stats/MultiPosition.d.ts +3 -1
- package/dist/excalidraw/components/Stats/MultiPosition.js +52 -48
- package/dist/excalidraw/components/Stats/Position.d.ts +5 -1
- package/dist/excalidraw/components/Stats/Position.js +31 -29
- package/dist/excalidraw/components/Stats/index.js +5 -17
- package/dist/excalidraw/components/Stats/utils.d.ts +14 -3
- package/dist/excalidraw/components/Stats/utils.js +48 -9
- package/dist/excalidraw/components/TTDDialog/common.d.ts +2 -2
- package/dist/excalidraw/components/TTDDialog/common.js +3 -7
- package/dist/excalidraw/components/UserList.js +22 -22
- package/dist/excalidraw/components/canvases/StaticCanvas.js +1 -0
- package/dist/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +12 -3
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +24 -4
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItem.js +55 -14
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItemContent.js +2 -2
- package/dist/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/excalidraw/components/dropdownMenu/common.js +3 -2
- package/dist/excalidraw/components/icons.d.ts +4 -0
- package/dist/excalidraw/components/icons.js +7 -0
- package/dist/excalidraw/components/main-menu/MainMenu.d.ts +12 -3
- package/dist/excalidraw/components/welcome-screen/WelcomeScreen.Center.js +2 -2
- package/dist/excalidraw/components/welcome-screen/WelcomeScreen.Hints.js +3 -3
- package/dist/excalidraw/constants.d.ts +17 -2
- package/dist/excalidraw/constants.js +21 -4
- package/dist/excalidraw/data/reconcile.js +18 -1
- package/dist/excalidraw/data/restore.js +55 -9
- package/dist/excalidraw/data/transform.js +8 -5
- package/dist/excalidraw/element/binding.d.ts +28 -9
- package/dist/excalidraw/element/binding.js +303 -71
- package/dist/excalidraw/element/collision.d.ts +1 -1
- package/dist/excalidraw/element/collision.js +4 -1
- package/dist/excalidraw/element/dragElements.d.ts +2 -2
- package/dist/excalidraw/element/dragElements.js +13 -3
- package/dist/excalidraw/element/embeddable.d.ts +3 -1
- package/dist/excalidraw/element/heading.d.ts +11 -0
- package/dist/excalidraw/element/heading.js +81 -0
- package/dist/excalidraw/element/index.d.ts +1 -1
- package/dist/excalidraw/element/index.js +1 -1
- package/dist/excalidraw/element/linearElementEditor.d.ts +21 -13
- package/dist/excalidraw/element/linearElementEditor.js +133 -56
- package/dist/excalidraw/element/newElement.d.ts +8 -3
- package/dist/excalidraw/element/newElement.js +15 -2
- package/dist/excalidraw/element/resizeElements.d.ts +4 -3
- package/dist/excalidraw/element/resizeElements.js +47 -23
- package/dist/excalidraw/element/routing.d.ts +13 -0
- package/dist/excalidraw/element/routing.js +641 -0
- package/dist/excalidraw/element/textElement.d.ts +3 -26
- package/dist/excalidraw/element/textElement.js +54 -110
- package/dist/excalidraw/element/textWysiwyg.js +39 -47
- package/dist/excalidraw/element/transformHandles.js +7 -2
- package/dist/excalidraw/element/typeChecks.d.ts +5 -2
- package/dist/excalidraw/element/typeChecks.js +17 -0
- package/dist/excalidraw/element/types.d.ts +12 -1
- package/dist/excalidraw/fonts/ExcalidrawFont.d.ts +21 -0
- package/dist/excalidraw/fonts/ExcalidrawFont.js +112 -0
- package/dist/excalidraw/fonts/index.d.ts +58 -0
- package/dist/excalidraw/fonts/index.js +240 -0
- package/dist/excalidraw/fonts/metadata.d.ts +36 -0
- package/dist/excalidraw/fonts/metadata.js +91 -0
- package/dist/excalidraw/fractionalIndex.d.ts +11 -4
- package/dist/excalidraw/fractionalIndex.js +38 -6
- package/dist/excalidraw/frame.d.ts +1 -1
- package/dist/excalidraw/frame.js +3 -3
- package/dist/excalidraw/history.d.ts +4 -3
- package/dist/excalidraw/history.js +8 -8
- package/dist/excalidraw/index.d.ts +1 -1
- package/dist/excalidraw/index.js +3 -3
- package/dist/excalidraw/locales/en.json +18 -4
- package/dist/excalidraw/math.d.ts +43 -0
- package/dist/excalidraw/math.js +110 -0
- package/dist/excalidraw/mermaid.js +4 -3
- package/dist/excalidraw/renderer/interactiveScene.js +33 -17
- package/dist/excalidraw/renderer/renderElement.d.ts +2 -0
- package/dist/excalidraw/renderer/renderElement.js +74 -54
- package/dist/excalidraw/renderer/staticSvgScene.js +2 -1
- package/dist/excalidraw/scene/Scene.js +9 -3
- package/dist/excalidraw/scene/Shape.js +56 -5
- package/dist/excalidraw/scene/comparisons.d.ts +1 -0
- package/dist/excalidraw/scene/comparisons.js +1 -1
- package/dist/excalidraw/scene/export.d.ts +2 -1
- package/dist/excalidraw/scene/export.js +33 -35
- package/dist/excalidraw/scene/types.d.ts +1 -4
- package/dist/excalidraw/shapes.d.ts +8 -0
- package/dist/excalidraw/shapes.js +57 -0
- package/dist/excalidraw/types.d.ts +8 -3
- package/dist/excalidraw/utils.d.ts +11 -1
- package/dist/excalidraw/utils.js +22 -0
- package/dist/prod/CascadiaCode-Regular-TMZI7IJ5.woff2 +0 -0
- package/dist/prod/ComicShanns-Regular-6TOETDFT.woff2 +0 -0
- package/dist/prod/Excalifont-Regular-CPKEUDVM.woff2 +0 -0
- package/dist/prod/LiberationSans-Regular-ZQD73GJM.woff2 +0 -0
- package/dist/prod/Virgil-Regular-YHAB2VGJ.woff2 +0 -0
- package/dist/prod/{en-EB2MBPAV.json → en-YNVBSAIL.json} +18 -4
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +49 -53
- package/dist/utils/export.d.ts +2 -1
- package/dist/utils/export.js +2 -1
- package/dist/utils/geometry/geometry.d.ts +2 -1
- package/dist/utils/geometry/geometry.js +5 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/history.ts +9 -2
- package/package.json +2 -2
- package/dist/browser/dev/Cascadia-CYPE3OJC.woff2 +0 -0
- package/dist/browser/dev/Virgil-UZN6MUT6.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/chunk-B4UMSLQQ.js.map +0 -7
- package/dist/browser/dev/excalidraw-assets-dev/chunk-EM6LVGFW.js.map +0 -7
- package/dist/browser/dev/excalidraw-assets-dev/dist-6QVAH5JA.js.map +0 -7
- package/dist/browser/prod/Cascadia-CYPE3OJC.woff2 +0 -0
- package/dist/browser/prod/Virgil-UZN6MUT6.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/chunk-EGOLGOLD.js +0 -55
- package/dist/browser/prod/excalidraw-assets/dist-567JAXHK.js +0 -7
- package/dist/browser/prod/excalidraw-assets/en-6E7MYLWO.js +0 -1
- package/dist/browser/prod/excalidraw-assets/image-SI7BKULC.js +0 -1
- package/dist/dev/Cascadia-CYPE3OJC.woff2 +0 -0
- package/dist/dev/Virgil-UZN6MUT6.woff2 +0 -0
- package/dist/excalidraw/scene/Fonts.d.ts +0 -19
- package/dist/excalidraw/scene/Fonts.js +0 -66
- package/dist/prod/Cascadia-CYPE3OJC.woff2 +0 -0
- package/dist/prod/Virgil-UZN6MUT6.woff2 +0 -0
- /package/dist/browser/dev/{Assistant-Bold-ZDZZ6JHA.woff2 → excalidraw-assets-dev/Assistant-Bold-ZDZZ6JHA.woff2} +0 -0
- /package/dist/browser/dev/{Assistant-Medium-DZ25RZU3.woff2 → excalidraw-assets-dev/Assistant-Medium-DZ25RZU3.woff2} +0 -0
- /package/dist/browser/dev/{Assistant-Regular-PLF2XOGW.woff2 → excalidraw-assets-dev/Assistant-Regular-PLF2XOGW.woff2} +0 -0
- /package/dist/browser/dev/{Assistant-SemiBold-CZ5MX6FK.woff2 → excalidraw-assets-dev/Assistant-SemiBold-CZ5MX6FK.woff2} +0 -0
- /package/dist/browser/dev/excalidraw-assets-dev/{en-AZFA5HJJ.js.map → en-XV7OZCPP.js.map} +0 -0
- /package/dist/browser/dev/excalidraw-assets-dev/{image-V7E6IT6R.js.map → image-77HZYGLG.js.map} +0 -0
- /package/dist/browser/prod/{Assistant-Bold-ZDZZ6JHA.woff2 → excalidraw-assets/Assistant-Bold-ZDZZ6JHA.woff2} +0 -0
- /package/dist/browser/prod/{Assistant-Medium-DZ25RZU3.woff2 → excalidraw-assets/Assistant-Medium-DZ25RZU3.woff2} +0 -0
- /package/dist/browser/prod/{Assistant-Regular-PLF2XOGW.woff2 → excalidraw-assets/Assistant-Regular-PLF2XOGW.woff2} +0 -0
- /package/dist/browser/prod/{Assistant-SemiBold-CZ5MX6FK.woff2 → excalidraw-assets/Assistant-SemiBold-CZ5MX6FK.woff2} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
3
|
-
import type { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
3
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
4
|
+
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
4
5
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
5
6
|
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
6
7
|
export declare const actionChangeStrokeColor: {
|
|
@@ -46,7 +47,7 @@ export declare const actionChangeFillStyle: {
|
|
|
46
47
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
47
48
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
48
49
|
isBindingEnabled: boolean;
|
|
49
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
50
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
50
51
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
51
52
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
52
53
|
frameRendering: {
|
|
@@ -58,7 +59,7 @@ export declare const actionChangeFillStyle: {
|
|
|
58
59
|
editingFrame: string | null;
|
|
59
60
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
60
61
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
61
|
-
editingLinearElement:
|
|
62
|
+
editingLinearElement: LinearElementEditor | null;
|
|
62
63
|
activeTool: {
|
|
63
64
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
65
|
locked: boolean;
|
|
@@ -80,7 +81,9 @@ export declare const actionChangeFillStyle: {
|
|
|
80
81
|
currentItemTextAlign: string;
|
|
81
82
|
currentItemStartArrowhead: Arrowhead | null;
|
|
82
83
|
currentItemEndArrowhead: Arrowhead | null;
|
|
84
|
+
currentHoveredFontFamily: number | null;
|
|
83
85
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
86
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
84
87
|
viewBackgroundColor: string;
|
|
85
88
|
scrollX: number;
|
|
86
89
|
scrollY: number;
|
|
@@ -93,7 +96,7 @@ export declare const actionChangeFillStyle: {
|
|
|
93
96
|
value: import("../types").NormalizedZoomValue;
|
|
94
97
|
}>;
|
|
95
98
|
openMenu: "canvas" | "shape" | null;
|
|
96
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
99
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
97
100
|
openSidebar: {
|
|
98
101
|
name: string;
|
|
99
102
|
tab?: string | undefined;
|
|
@@ -172,7 +175,7 @@ export declare const actionChangeFillStyle: {
|
|
|
172
175
|
};
|
|
173
176
|
pendingImageElementId: string | null;
|
|
174
177
|
showHyperlinkPopup: false | "info" | "editor";
|
|
175
|
-
selectedLinearElement:
|
|
178
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
176
179
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
177
180
|
originSnapOffset: {
|
|
178
181
|
x: number;
|
|
@@ -213,7 +216,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
213
216
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
214
217
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
215
218
|
isBindingEnabled: boolean;
|
|
216
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
219
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
217
220
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
218
221
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
219
222
|
frameRendering: {
|
|
@@ -225,7 +228,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
225
228
|
editingFrame: string | null;
|
|
226
229
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
227
230
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
228
|
-
editingLinearElement:
|
|
231
|
+
editingLinearElement: LinearElementEditor | null;
|
|
229
232
|
activeTool: {
|
|
230
233
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
231
234
|
locked: boolean;
|
|
@@ -247,7 +250,9 @@ export declare const actionChangeStrokeWidth: {
|
|
|
247
250
|
currentItemTextAlign: string;
|
|
248
251
|
currentItemStartArrowhead: Arrowhead | null;
|
|
249
252
|
currentItemEndArrowhead: Arrowhead | null;
|
|
253
|
+
currentHoveredFontFamily: number | null;
|
|
250
254
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
255
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
251
256
|
viewBackgroundColor: string;
|
|
252
257
|
scrollX: number;
|
|
253
258
|
scrollY: number;
|
|
@@ -260,7 +265,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
260
265
|
value: import("../types").NormalizedZoomValue;
|
|
261
266
|
}>;
|
|
262
267
|
openMenu: "canvas" | "shape" | null;
|
|
263
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
268
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
264
269
|
openSidebar: {
|
|
265
270
|
name: string;
|
|
266
271
|
tab?: string | undefined;
|
|
@@ -339,7 +344,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
339
344
|
};
|
|
340
345
|
pendingImageElementId: string | null;
|
|
341
346
|
showHyperlinkPopup: false | "info" | "editor";
|
|
342
|
-
selectedLinearElement:
|
|
347
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
343
348
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
344
349
|
originSnapOffset: {
|
|
345
350
|
x: number;
|
|
@@ -380,7 +385,7 @@ export declare const actionChangeSloppiness: {
|
|
|
380
385
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
381
386
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
382
387
|
isBindingEnabled: boolean;
|
|
383
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
388
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
384
389
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
385
390
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
386
391
|
frameRendering: {
|
|
@@ -392,7 +397,7 @@ export declare const actionChangeSloppiness: {
|
|
|
392
397
|
editingFrame: string | null;
|
|
393
398
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
394
399
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
395
|
-
editingLinearElement:
|
|
400
|
+
editingLinearElement: LinearElementEditor | null;
|
|
396
401
|
activeTool: {
|
|
397
402
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
398
403
|
locked: boolean;
|
|
@@ -414,7 +419,9 @@ export declare const actionChangeSloppiness: {
|
|
|
414
419
|
currentItemTextAlign: string;
|
|
415
420
|
currentItemStartArrowhead: Arrowhead | null;
|
|
416
421
|
currentItemEndArrowhead: Arrowhead | null;
|
|
422
|
+
currentHoveredFontFamily: number | null;
|
|
417
423
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
424
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
418
425
|
viewBackgroundColor: string;
|
|
419
426
|
scrollX: number;
|
|
420
427
|
scrollY: number;
|
|
@@ -427,7 +434,7 @@ export declare const actionChangeSloppiness: {
|
|
|
427
434
|
value: import("../types").NormalizedZoomValue;
|
|
428
435
|
}>;
|
|
429
436
|
openMenu: "canvas" | "shape" | null;
|
|
430
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
437
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
431
438
|
openSidebar: {
|
|
432
439
|
name: string;
|
|
433
440
|
tab?: string | undefined;
|
|
@@ -506,7 +513,7 @@ export declare const actionChangeSloppiness: {
|
|
|
506
513
|
};
|
|
507
514
|
pendingImageElementId: string | null;
|
|
508
515
|
showHyperlinkPopup: false | "info" | "editor";
|
|
509
|
-
selectedLinearElement:
|
|
516
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
510
517
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
511
518
|
originSnapOffset: {
|
|
512
519
|
x: number;
|
|
@@ -547,7 +554,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
547
554
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
548
555
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
549
556
|
isBindingEnabled: boolean;
|
|
550
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
557
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
551
558
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
552
559
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
553
560
|
frameRendering: {
|
|
@@ -559,7 +566,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
559
566
|
editingFrame: string | null;
|
|
560
567
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
561
568
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
562
|
-
editingLinearElement:
|
|
569
|
+
editingLinearElement: LinearElementEditor | null;
|
|
563
570
|
activeTool: {
|
|
564
571
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
565
572
|
locked: boolean;
|
|
@@ -581,7 +588,9 @@ export declare const actionChangeStrokeStyle: {
|
|
|
581
588
|
currentItemTextAlign: string;
|
|
582
589
|
currentItemStartArrowhead: Arrowhead | null;
|
|
583
590
|
currentItemEndArrowhead: Arrowhead | null;
|
|
591
|
+
currentHoveredFontFamily: number | null;
|
|
584
592
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
593
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
585
594
|
viewBackgroundColor: string;
|
|
586
595
|
scrollX: number;
|
|
587
596
|
scrollY: number;
|
|
@@ -594,7 +603,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
594
603
|
value: import("../types").NormalizedZoomValue;
|
|
595
604
|
}>;
|
|
596
605
|
openMenu: "canvas" | "shape" | null;
|
|
597
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
606
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
598
607
|
openSidebar: {
|
|
599
608
|
name: string;
|
|
600
609
|
tab?: string | undefined;
|
|
@@ -673,7 +682,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
673
682
|
};
|
|
674
683
|
pendingImageElementId: string | null;
|
|
675
684
|
showHyperlinkPopup: false | "info" | "editor";
|
|
676
|
-
selectedLinearElement:
|
|
685
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
677
686
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
678
687
|
originSnapOffset: {
|
|
679
688
|
x: number;
|
|
@@ -714,7 +723,7 @@ export declare const actionChangeOpacity: {
|
|
|
714
723
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
715
724
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
716
725
|
isBindingEnabled: boolean;
|
|
717
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
726
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
718
727
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
719
728
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
720
729
|
frameRendering: {
|
|
@@ -726,7 +735,7 @@ export declare const actionChangeOpacity: {
|
|
|
726
735
|
editingFrame: string | null;
|
|
727
736
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
728
737
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
729
|
-
editingLinearElement:
|
|
738
|
+
editingLinearElement: LinearElementEditor | null;
|
|
730
739
|
activeTool: {
|
|
731
740
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
732
741
|
locked: boolean;
|
|
@@ -748,7 +757,9 @@ export declare const actionChangeOpacity: {
|
|
|
748
757
|
currentItemTextAlign: string;
|
|
749
758
|
currentItemStartArrowhead: Arrowhead | null;
|
|
750
759
|
currentItemEndArrowhead: Arrowhead | null;
|
|
760
|
+
currentHoveredFontFamily: number | null;
|
|
751
761
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
762
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
752
763
|
viewBackgroundColor: string;
|
|
753
764
|
scrollX: number;
|
|
754
765
|
scrollY: number;
|
|
@@ -761,7 +772,7 @@ export declare const actionChangeOpacity: {
|
|
|
761
772
|
value: import("../types").NormalizedZoomValue;
|
|
762
773
|
}>;
|
|
763
774
|
openMenu: "canvas" | "shape" | null;
|
|
764
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
775
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
765
776
|
openSidebar: {
|
|
766
777
|
name: string;
|
|
767
778
|
tab?: string | undefined;
|
|
@@ -840,7 +851,7 @@ export declare const actionChangeOpacity: {
|
|
|
840
851
|
};
|
|
841
852
|
pendingImageElementId: string | null;
|
|
842
853
|
showHyperlinkPopup: false | "info" | "editor";
|
|
843
|
-
selectedLinearElement:
|
|
854
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
844
855
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
845
856
|
originSnapOffset: {
|
|
846
857
|
x: number;
|
|
@@ -881,7 +892,7 @@ export declare const actionChangeFontSize: {
|
|
|
881
892
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
882
893
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
883
894
|
isBindingEnabled: boolean;
|
|
884
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
895
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
885
896
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
886
897
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
887
898
|
frameRendering: {
|
|
@@ -893,7 +904,7 @@ export declare const actionChangeFontSize: {
|
|
|
893
904
|
editingFrame: string | null;
|
|
894
905
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
895
906
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
896
|
-
editingLinearElement:
|
|
907
|
+
editingLinearElement: LinearElementEditor | null;
|
|
897
908
|
activeTool: {
|
|
898
909
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
899
910
|
locked: boolean;
|
|
@@ -915,7 +926,9 @@ export declare const actionChangeFontSize: {
|
|
|
915
926
|
currentItemTextAlign: string;
|
|
916
927
|
currentItemStartArrowhead: Arrowhead | null;
|
|
917
928
|
currentItemEndArrowhead: Arrowhead | null;
|
|
929
|
+
currentHoveredFontFamily: number | null;
|
|
918
930
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
931
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
919
932
|
viewBackgroundColor: string;
|
|
920
933
|
scrollX: number;
|
|
921
934
|
scrollY: number;
|
|
@@ -928,7 +941,7 @@ export declare const actionChangeFontSize: {
|
|
|
928
941
|
value: import("../types").NormalizedZoomValue;
|
|
929
942
|
}>;
|
|
930
943
|
openMenu: "canvas" | "shape" | null;
|
|
931
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
944
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
932
945
|
openSidebar: {
|
|
933
946
|
name: string;
|
|
934
947
|
tab?: string | undefined;
|
|
@@ -1007,7 +1020,7 @@ export declare const actionChangeFontSize: {
|
|
|
1007
1020
|
};
|
|
1008
1021
|
pendingImageElementId: string | null;
|
|
1009
1022
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1010
|
-
selectedLinearElement:
|
|
1023
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1011
1024
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1012
1025
|
originSnapOffset: {
|
|
1013
1026
|
x: number;
|
|
@@ -1049,7 +1062,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1049
1062
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1050
1063
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1051
1064
|
isBindingEnabled: boolean;
|
|
1052
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
1065
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1053
1066
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1054
1067
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1055
1068
|
frameRendering: {
|
|
@@ -1061,7 +1074,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1061
1074
|
editingFrame: string | null;
|
|
1062
1075
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1063
1076
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1064
|
-
editingLinearElement:
|
|
1077
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1065
1078
|
activeTool: {
|
|
1066
1079
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1067
1080
|
locked: boolean;
|
|
@@ -1083,7 +1096,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
1083
1096
|
currentItemTextAlign: string;
|
|
1084
1097
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1085
1098
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1099
|
+
currentHoveredFontFamily: number | null;
|
|
1086
1100
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1101
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1087
1102
|
viewBackgroundColor: string;
|
|
1088
1103
|
scrollX: number;
|
|
1089
1104
|
scrollY: number;
|
|
@@ -1096,7 +1111,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1096
1111
|
value: import("../types").NormalizedZoomValue;
|
|
1097
1112
|
}>;
|
|
1098
1113
|
openMenu: "canvas" | "shape" | null;
|
|
1099
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1114
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1100
1115
|
openSidebar: {
|
|
1101
1116
|
name: string;
|
|
1102
1117
|
tab?: string | undefined;
|
|
@@ -1175,7 +1190,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1175
1190
|
};
|
|
1176
1191
|
pendingImageElementId: string | null;
|
|
1177
1192
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1178
|
-
selectedLinearElement:
|
|
1193
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1179
1194
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1180
1195
|
originSnapOffset: {
|
|
1181
1196
|
x: number;
|
|
@@ -1217,7 +1232,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1217
1232
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1218
1233
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1219
1234
|
isBindingEnabled: boolean;
|
|
1220
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
1235
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1221
1236
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1222
1237
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1223
1238
|
frameRendering: {
|
|
@@ -1229,7 +1244,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1229
1244
|
editingFrame: string | null;
|
|
1230
1245
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1231
1246
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1232
|
-
editingLinearElement:
|
|
1247
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1233
1248
|
activeTool: {
|
|
1234
1249
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1235
1250
|
locked: boolean;
|
|
@@ -1251,7 +1266,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
1251
1266
|
currentItemTextAlign: string;
|
|
1252
1267
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1253
1268
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1269
|
+
currentHoveredFontFamily: number | null;
|
|
1254
1270
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1271
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1255
1272
|
viewBackgroundColor: string;
|
|
1256
1273
|
scrollX: number;
|
|
1257
1274
|
scrollY: number;
|
|
@@ -1264,7 +1281,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1264
1281
|
value: import("../types").NormalizedZoomValue;
|
|
1265
1282
|
}>;
|
|
1266
1283
|
openMenu: "canvas" | "shape" | null;
|
|
1267
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1284
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1268
1285
|
openSidebar: {
|
|
1269
1286
|
name: string;
|
|
1270
1287
|
tab?: string | undefined;
|
|
@@ -1343,7 +1360,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1343
1360
|
};
|
|
1344
1361
|
pendingImageElementId: string | null;
|
|
1345
1362
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1346
|
-
selectedLinearElement:
|
|
1363
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1347
1364
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1348
1365
|
originSnapOffset: {
|
|
1349
1366
|
x: number;
|
|
@@ -1364,9 +1381,170 @@ export declare const actionChangeFontFamily: {
|
|
|
1364
1381
|
label: string;
|
|
1365
1382
|
trackEvent: false;
|
|
1366
1383
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1384
|
+
appState: {
|
|
1385
|
+
currentItemFontFamily: number;
|
|
1386
|
+
currentHoveredFontFamily: number | null;
|
|
1387
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1388
|
+
contextMenu: {
|
|
1389
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1390
|
+
top: number;
|
|
1391
|
+
left: number;
|
|
1392
|
+
} | null;
|
|
1393
|
+
showWelcomeScreen: boolean;
|
|
1394
|
+
isLoading: boolean;
|
|
1395
|
+
errorMessage: import("react").ReactNode;
|
|
1396
|
+
activeEmbeddable: {
|
|
1397
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
1398
|
+
state: "hover" | "active";
|
|
1399
|
+
} | null;
|
|
1400
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1401
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1402
|
+
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1403
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1404
|
+
isBindingEnabled: boolean;
|
|
1405
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1406
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1407
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1408
|
+
frameRendering: {
|
|
1409
|
+
enabled: boolean;
|
|
1410
|
+
name: boolean;
|
|
1411
|
+
outline: boolean;
|
|
1412
|
+
clip: boolean;
|
|
1413
|
+
};
|
|
1414
|
+
editingFrame: string | null;
|
|
1415
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1416
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1417
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1418
|
+
activeTool: {
|
|
1419
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
1420
|
+
locked: boolean;
|
|
1421
|
+
} & import("../types").ActiveTool;
|
|
1422
|
+
penMode: boolean;
|
|
1423
|
+
penDetected: boolean;
|
|
1424
|
+
exportBackground: boolean;
|
|
1425
|
+
exportEmbedScene: boolean;
|
|
1426
|
+
exportWithDarkMode: boolean;
|
|
1427
|
+
exportScale: number;
|
|
1428
|
+
currentItemStrokeColor: string;
|
|
1429
|
+
currentItemBackgroundColor: string;
|
|
1430
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
1431
|
+
currentItemStrokeWidth: number;
|
|
1432
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
1433
|
+
currentItemRoughness: number;
|
|
1434
|
+
currentItemOpacity: number;
|
|
1435
|
+
currentItemFontSize: number;
|
|
1436
|
+
currentItemTextAlign: string;
|
|
1437
|
+
currentItemStartArrowhead: Arrowhead | null;
|
|
1438
|
+
currentItemEndArrowhead: Arrowhead | null;
|
|
1439
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1440
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1441
|
+
viewBackgroundColor: string;
|
|
1442
|
+
scrollX: number;
|
|
1443
|
+
scrollY: number;
|
|
1444
|
+
cursorButton: "up" | "down";
|
|
1445
|
+
scrolledOutside: boolean;
|
|
1446
|
+
name: string | null;
|
|
1447
|
+
isResizing: boolean;
|
|
1448
|
+
isRotating: boolean;
|
|
1449
|
+
zoom: Readonly<{
|
|
1450
|
+
value: import("../types").NormalizedZoomValue;
|
|
1451
|
+
}>;
|
|
1452
|
+
openMenu: "canvas" | "shape" | null;
|
|
1453
|
+
openSidebar: {
|
|
1454
|
+
name: string;
|
|
1455
|
+
tab?: string | undefined;
|
|
1456
|
+
} | null;
|
|
1457
|
+
openDialog: {
|
|
1458
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1459
|
+
} | {
|
|
1460
|
+
name: "settings";
|
|
1461
|
+
source: "settings" | "tool" | "generation";
|
|
1462
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1463
|
+
} | {
|
|
1464
|
+
name: "ttd";
|
|
1465
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1466
|
+
} | {
|
|
1467
|
+
name: "commandPalette";
|
|
1468
|
+
} | null;
|
|
1469
|
+
defaultSidebarDockedPreference: boolean;
|
|
1470
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
1471
|
+
selectedElementIds: Readonly<{
|
|
1472
|
+
[id: string]: true;
|
|
1473
|
+
}>;
|
|
1474
|
+
previousSelectedElementIds: {
|
|
1475
|
+
[id: string]: true;
|
|
1476
|
+
};
|
|
1477
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1478
|
+
shouldCacheIgnoreZoom: boolean;
|
|
1479
|
+
toast: {
|
|
1480
|
+
message: string;
|
|
1481
|
+
closable?: boolean | undefined;
|
|
1482
|
+
duration?: number | undefined;
|
|
1483
|
+
} | null;
|
|
1484
|
+
zenModeEnabled: boolean;
|
|
1485
|
+
theme: import("../element/types").Theme;
|
|
1486
|
+
gridSize: number | null;
|
|
1487
|
+
viewModeEnabled: boolean;
|
|
1488
|
+
selectedGroupIds: {
|
|
1489
|
+
[groupId: string]: boolean;
|
|
1490
|
+
};
|
|
1491
|
+
editingGroupId: string | null;
|
|
1492
|
+
width: number;
|
|
1493
|
+
height: number;
|
|
1494
|
+
offsetTop: number;
|
|
1495
|
+
offsetLeft: number;
|
|
1496
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1497
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1498
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1499
|
+
button?: "up" | "down" | undefined;
|
|
1500
|
+
selectedElementIds?: Readonly<{
|
|
1501
|
+
[id: string]: true;
|
|
1502
|
+
}> | undefined;
|
|
1503
|
+
username?: string | null | undefined;
|
|
1504
|
+
userState?: import("../types").UserIdleState | undefined;
|
|
1505
|
+
color?: {
|
|
1506
|
+
background: string;
|
|
1507
|
+
stroke: string;
|
|
1508
|
+
} | undefined;
|
|
1509
|
+
avatarUrl?: string | undefined;
|
|
1510
|
+
id?: string | undefined;
|
|
1511
|
+
socketId?: import("../types").SocketId | undefined;
|
|
1512
|
+
isCurrentUser?: boolean | undefined;
|
|
1513
|
+
isInCall?: boolean | undefined;
|
|
1514
|
+
isSpeaking?: boolean | undefined;
|
|
1515
|
+
isMuted?: boolean | undefined;
|
|
1516
|
+
}>>;
|
|
1517
|
+
stats: {
|
|
1518
|
+
open: boolean;
|
|
1519
|
+
panels: number;
|
|
1520
|
+
};
|
|
1521
|
+
currentChartType: import("../element/types").ChartType;
|
|
1522
|
+
pasteDialog: {
|
|
1523
|
+
shown: false;
|
|
1524
|
+
data: null;
|
|
1525
|
+
} | {
|
|
1526
|
+
shown: true;
|
|
1527
|
+
data: import("../charts").Spreadsheet;
|
|
1528
|
+
};
|
|
1529
|
+
pendingImageElementId: string | null;
|
|
1530
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1531
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1532
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1533
|
+
originSnapOffset: {
|
|
1534
|
+
x: number;
|
|
1535
|
+
y: number;
|
|
1536
|
+
} | null;
|
|
1537
|
+
objectsSnapModeEnabled: boolean;
|
|
1538
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
1539
|
+
followedBy: Set<import("../types").SocketId>;
|
|
1540
|
+
};
|
|
1541
|
+
storeAction: "none" | "capture";
|
|
1542
|
+
} | {
|
|
1367
1543
|
elements: ExcalidrawElement[];
|
|
1368
1544
|
appState: {
|
|
1369
|
-
currentItemFontFamily:
|
|
1545
|
+
currentItemFontFamily: number;
|
|
1546
|
+
currentHoveredFontFamily: number | null;
|
|
1547
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1370
1548
|
contextMenu: {
|
|
1371
1549
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1372
1550
|
top: number;
|
|
@@ -1384,7 +1562,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1384
1562
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1385
1563
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1386
1564
|
isBindingEnabled: boolean;
|
|
1387
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
1565
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1388
1566
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1389
1567
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1390
1568
|
frameRendering: {
|
|
@@ -1396,7 +1574,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1396
1574
|
editingFrame: string | null;
|
|
1397
1575
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1398
1576
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1399
|
-
editingLinearElement:
|
|
1577
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1400
1578
|
activeTool: {
|
|
1401
1579
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1402
1580
|
locked: boolean;
|
|
@@ -1419,6 +1597,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1419
1597
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1420
1598
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1421
1599
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1600
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1422
1601
|
viewBackgroundColor: string;
|
|
1423
1602
|
scrollX: number;
|
|
1424
1603
|
scrollY: number;
|
|
@@ -1431,7 +1610,6 @@ export declare const actionChangeFontFamily: {
|
|
|
1431
1610
|
value: import("../types").NormalizedZoomValue;
|
|
1432
1611
|
}>;
|
|
1433
1612
|
openMenu: "canvas" | "shape" | null;
|
|
1434
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1435
1613
|
openSidebar: {
|
|
1436
1614
|
name: string;
|
|
1437
1615
|
tab?: string | undefined;
|
|
@@ -1510,7 +1688,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1510
1688
|
};
|
|
1511
1689
|
pendingImageElementId: string | null;
|
|
1512
1690
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1513
|
-
selectedLinearElement:
|
|
1691
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1514
1692
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1515
1693
|
originSnapOffset: {
|
|
1516
1694
|
x: number;
|
|
@@ -1520,9 +1698,9 @@ export declare const actionChangeFontFamily: {
|
|
|
1520
1698
|
userToFollow: import("../types").UserToFollow | null;
|
|
1521
1699
|
followedBy: Set<import("../types").SocketId>;
|
|
1522
1700
|
};
|
|
1523
|
-
storeAction: "
|
|
1701
|
+
storeAction: "update";
|
|
1524
1702
|
};
|
|
1525
|
-
PanelComponent: ({ elements, appState,
|
|
1703
|
+
PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1526
1704
|
} & {
|
|
1527
1705
|
keyTest?: undefined;
|
|
1528
1706
|
};
|
|
@@ -1551,7 +1729,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1551
1729
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1552
1730
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1553
1731
|
isBindingEnabled: boolean;
|
|
1554
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
1732
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1555
1733
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1556
1734
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1557
1735
|
frameRendering: {
|
|
@@ -1563,7 +1741,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1563
1741
|
editingFrame: string | null;
|
|
1564
1742
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1565
1743
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1566
|
-
editingLinearElement:
|
|
1744
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1567
1745
|
activeTool: {
|
|
1568
1746
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1569
1747
|
locked: boolean;
|
|
@@ -1585,7 +1763,9 @@ export declare const actionChangeTextAlign: {
|
|
|
1585
1763
|
currentItemFontSize: number;
|
|
1586
1764
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1587
1765
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1766
|
+
currentHoveredFontFamily: number | null;
|
|
1588
1767
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1768
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1589
1769
|
viewBackgroundColor: string;
|
|
1590
1770
|
scrollX: number;
|
|
1591
1771
|
scrollY: number;
|
|
@@ -1598,7 +1778,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1598
1778
|
value: import("../types").NormalizedZoomValue;
|
|
1599
1779
|
}>;
|
|
1600
1780
|
openMenu: "canvas" | "shape" | null;
|
|
1601
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1781
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1602
1782
|
openSidebar: {
|
|
1603
1783
|
name: string;
|
|
1604
1784
|
tab?: string | undefined;
|
|
@@ -1677,7 +1857,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1677
1857
|
};
|
|
1678
1858
|
pendingImageElementId: string | null;
|
|
1679
1859
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1680
|
-
selectedLinearElement:
|
|
1860
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1681
1861
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1682
1862
|
originSnapOffset: {
|
|
1683
1863
|
x: number;
|
|
@@ -1719,7 +1899,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1719
1899
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1720
1900
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1721
1901
|
isBindingEnabled: boolean;
|
|
1722
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
1902
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1723
1903
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1724
1904
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1725
1905
|
frameRendering: {
|
|
@@ -1731,7 +1911,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1731
1911
|
editingFrame: string | null;
|
|
1732
1912
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1733
1913
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1734
|
-
editingLinearElement:
|
|
1914
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1735
1915
|
activeTool: {
|
|
1736
1916
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1737
1917
|
locked: boolean;
|
|
@@ -1754,7 +1934,9 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1754
1934
|
currentItemTextAlign: string;
|
|
1755
1935
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1756
1936
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1937
|
+
currentHoveredFontFamily: number | null;
|
|
1757
1938
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1939
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1758
1940
|
viewBackgroundColor: string;
|
|
1759
1941
|
scrollX: number;
|
|
1760
1942
|
scrollY: number;
|
|
@@ -1767,7 +1949,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1767
1949
|
value: import("../types").NormalizedZoomValue;
|
|
1768
1950
|
}>;
|
|
1769
1951
|
openMenu: "canvas" | "shape" | null;
|
|
1770
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1952
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1771
1953
|
openSidebar: {
|
|
1772
1954
|
name: string;
|
|
1773
1955
|
tab?: string | undefined;
|
|
@@ -1846,7 +2028,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1846
2028
|
};
|
|
1847
2029
|
pendingImageElementId: string | null;
|
|
1848
2030
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1849
|
-
selectedLinearElement:
|
|
2031
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1850
2032
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1851
2033
|
originSnapOffset: {
|
|
1852
2034
|
x: number;
|
|
@@ -1887,7 +2069,7 @@ export declare const actionChangeRoundness: {
|
|
|
1887
2069
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1888
2070
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1889
2071
|
isBindingEnabled: boolean;
|
|
1890
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
2072
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1891
2073
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1892
2074
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1893
2075
|
frameRendering: {
|
|
@@ -1899,7 +2081,7 @@ export declare const actionChangeRoundness: {
|
|
|
1899
2081
|
editingFrame: string | null;
|
|
1900
2082
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1901
2083
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1902
|
-
editingLinearElement:
|
|
2084
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1903
2085
|
activeTool: {
|
|
1904
2086
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1905
2087
|
locked: boolean;
|
|
@@ -1922,6 +2104,8 @@ export declare const actionChangeRoundness: {
|
|
|
1922
2104
|
currentItemTextAlign: string;
|
|
1923
2105
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1924
2106
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2107
|
+
currentHoveredFontFamily: number | null;
|
|
2108
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1925
2109
|
viewBackgroundColor: string;
|
|
1926
2110
|
scrollX: number;
|
|
1927
2111
|
scrollY: number;
|
|
@@ -1934,7 +2118,7 @@ export declare const actionChangeRoundness: {
|
|
|
1934
2118
|
value: import("../types").NormalizedZoomValue;
|
|
1935
2119
|
}>;
|
|
1936
2120
|
openMenu: "canvas" | "shape" | null;
|
|
1937
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2121
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1938
2122
|
openSidebar: {
|
|
1939
2123
|
name: string;
|
|
1940
2124
|
tab?: string | undefined;
|
|
@@ -2013,7 +2197,7 @@ export declare const actionChangeRoundness: {
|
|
|
2013
2197
|
};
|
|
2014
2198
|
pendingImageElementId: string | null;
|
|
2015
2199
|
showHyperlinkPopup: false | "info" | "editor";
|
|
2016
|
-
selectedLinearElement:
|
|
2200
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
2017
2201
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2018
2202
|
originSnapOffset: {
|
|
2019
2203
|
x: number;
|
|
@@ -2056,7 +2240,177 @@ export declare const actionChangeArrowhead: {
|
|
|
2056
2240
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2057
2241
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2058
2242
|
isBindingEnabled: boolean;
|
|
2059
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
2243
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2244
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
2245
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
2246
|
+
frameRendering: {
|
|
2247
|
+
enabled: boolean;
|
|
2248
|
+
name: boolean;
|
|
2249
|
+
outline: boolean;
|
|
2250
|
+
clip: boolean;
|
|
2251
|
+
};
|
|
2252
|
+
editingFrame: string | null;
|
|
2253
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2254
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2255
|
+
editingLinearElement: LinearElementEditor | null;
|
|
2256
|
+
activeTool: {
|
|
2257
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
2258
|
+
locked: boolean;
|
|
2259
|
+
} & import("../types").ActiveTool;
|
|
2260
|
+
penMode: boolean;
|
|
2261
|
+
penDetected: boolean;
|
|
2262
|
+
exportBackground: boolean;
|
|
2263
|
+
exportEmbedScene: boolean;
|
|
2264
|
+
exportWithDarkMode: boolean;
|
|
2265
|
+
exportScale: number;
|
|
2266
|
+
currentItemStrokeColor: string;
|
|
2267
|
+
currentItemBackgroundColor: string;
|
|
2268
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
2269
|
+
currentItemStrokeWidth: number;
|
|
2270
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
2271
|
+
currentItemRoughness: number;
|
|
2272
|
+
currentItemOpacity: number;
|
|
2273
|
+
currentItemFontFamily: number;
|
|
2274
|
+
currentItemFontSize: number;
|
|
2275
|
+
currentItemTextAlign: string;
|
|
2276
|
+
currentItemStartArrowhead: Arrowhead | null;
|
|
2277
|
+
currentItemEndArrowhead: Arrowhead | null;
|
|
2278
|
+
currentHoveredFontFamily: number | null;
|
|
2279
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
2280
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
2281
|
+
viewBackgroundColor: string;
|
|
2282
|
+
scrollX: number;
|
|
2283
|
+
scrollY: number;
|
|
2284
|
+
cursorButton: "up" | "down";
|
|
2285
|
+
scrolledOutside: boolean;
|
|
2286
|
+
name: string | null;
|
|
2287
|
+
isResizing: boolean;
|
|
2288
|
+
isRotating: boolean;
|
|
2289
|
+
zoom: Readonly<{
|
|
2290
|
+
value: import("../types").NormalizedZoomValue;
|
|
2291
|
+
}>;
|
|
2292
|
+
openMenu: "canvas" | "shape" | null;
|
|
2293
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2294
|
+
openSidebar: {
|
|
2295
|
+
name: string;
|
|
2296
|
+
tab?: string | undefined;
|
|
2297
|
+
} | null;
|
|
2298
|
+
openDialog: {
|
|
2299
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
2300
|
+
} | {
|
|
2301
|
+
name: "settings";
|
|
2302
|
+
source: "settings" | "tool" | "generation";
|
|
2303
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
2304
|
+
} | {
|
|
2305
|
+
name: "ttd";
|
|
2306
|
+
tab: "text-to-diagram" | "mermaid";
|
|
2307
|
+
} | {
|
|
2308
|
+
name: "commandPalette";
|
|
2309
|
+
} | null;
|
|
2310
|
+
defaultSidebarDockedPreference: boolean;
|
|
2311
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
2312
|
+
selectedElementIds: Readonly<{
|
|
2313
|
+
[id: string]: true;
|
|
2314
|
+
}>;
|
|
2315
|
+
previousSelectedElementIds: {
|
|
2316
|
+
[id: string]: true;
|
|
2317
|
+
};
|
|
2318
|
+
selectedElementsAreBeingDragged: boolean;
|
|
2319
|
+
shouldCacheIgnoreZoom: boolean;
|
|
2320
|
+
toast: {
|
|
2321
|
+
message: string;
|
|
2322
|
+
closable?: boolean | undefined;
|
|
2323
|
+
duration?: number | undefined;
|
|
2324
|
+
} | null;
|
|
2325
|
+
zenModeEnabled: boolean;
|
|
2326
|
+
theme: import("../element/types").Theme;
|
|
2327
|
+
gridSize: number | null;
|
|
2328
|
+
viewModeEnabled: boolean;
|
|
2329
|
+
selectedGroupIds: {
|
|
2330
|
+
[groupId: string]: boolean;
|
|
2331
|
+
};
|
|
2332
|
+
editingGroupId: string | null;
|
|
2333
|
+
width: number;
|
|
2334
|
+
height: number;
|
|
2335
|
+
offsetTop: number;
|
|
2336
|
+
offsetLeft: number;
|
|
2337
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2338
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
2339
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2340
|
+
button?: "up" | "down" | undefined;
|
|
2341
|
+
selectedElementIds?: Readonly<{
|
|
2342
|
+
[id: string]: true;
|
|
2343
|
+
}> | undefined;
|
|
2344
|
+
username?: string | null | undefined;
|
|
2345
|
+
userState?: import("../types").UserIdleState | undefined;
|
|
2346
|
+
color?: {
|
|
2347
|
+
background: string;
|
|
2348
|
+
stroke: string;
|
|
2349
|
+
} | undefined;
|
|
2350
|
+
avatarUrl?: string | undefined;
|
|
2351
|
+
id?: string | undefined;
|
|
2352
|
+
socketId?: import("../types").SocketId | undefined;
|
|
2353
|
+
isCurrentUser?: boolean | undefined;
|
|
2354
|
+
isInCall?: boolean | undefined;
|
|
2355
|
+
isSpeaking?: boolean | undefined;
|
|
2356
|
+
isMuted?: boolean | undefined;
|
|
2357
|
+
}>>;
|
|
2358
|
+
stats: {
|
|
2359
|
+
open: boolean;
|
|
2360
|
+
panels: number;
|
|
2361
|
+
};
|
|
2362
|
+
currentChartType: import("../element/types").ChartType;
|
|
2363
|
+
pasteDialog: {
|
|
2364
|
+
shown: false;
|
|
2365
|
+
data: null;
|
|
2366
|
+
} | {
|
|
2367
|
+
shown: true;
|
|
2368
|
+
data: import("../charts").Spreadsheet;
|
|
2369
|
+
};
|
|
2370
|
+
pendingImageElementId: string | null;
|
|
2371
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2372
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
2373
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
2374
|
+
originSnapOffset: {
|
|
2375
|
+
x: number;
|
|
2376
|
+
y: number;
|
|
2377
|
+
} | null;
|
|
2378
|
+
objectsSnapModeEnabled: boolean;
|
|
2379
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
2380
|
+
followedBy: Set<import("../types").SocketId>;
|
|
2381
|
+
};
|
|
2382
|
+
storeAction: "capture";
|
|
2383
|
+
};
|
|
2384
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
2385
|
+
} & {
|
|
2386
|
+
keyTest?: undefined;
|
|
2387
|
+
};
|
|
2388
|
+
export declare const actionChangeArrowType: {
|
|
2389
|
+
name: "changeArrowType";
|
|
2390
|
+
label: string;
|
|
2391
|
+
trackEvent: false;
|
|
2392
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
2393
|
+
elements: ExcalidrawElement[];
|
|
2394
|
+
appState: {
|
|
2395
|
+
currentItemArrowType: any;
|
|
2396
|
+
contextMenu: {
|
|
2397
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
2398
|
+
top: number;
|
|
2399
|
+
left: number;
|
|
2400
|
+
} | null;
|
|
2401
|
+
showWelcomeScreen: boolean;
|
|
2402
|
+
isLoading: boolean;
|
|
2403
|
+
errorMessage: import("react").ReactNode;
|
|
2404
|
+
activeEmbeddable: {
|
|
2405
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
2406
|
+
state: "hover" | "active";
|
|
2407
|
+
} | null;
|
|
2408
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2409
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2410
|
+
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2411
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2412
|
+
isBindingEnabled: boolean;
|
|
2413
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2060
2414
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
2061
2415
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
2062
2416
|
frameRendering: {
|
|
@@ -2068,7 +2422,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2068
2422
|
editingFrame: string | null;
|
|
2069
2423
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2070
2424
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2071
|
-
editingLinearElement:
|
|
2425
|
+
editingLinearElement: LinearElementEditor | null;
|
|
2072
2426
|
activeTool: {
|
|
2073
2427
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2074
2428
|
locked: boolean;
|
|
@@ -2091,6 +2445,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2091
2445
|
currentItemTextAlign: string;
|
|
2092
2446
|
currentItemStartArrowhead: Arrowhead | null;
|
|
2093
2447
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2448
|
+
currentHoveredFontFamily: number | null;
|
|
2094
2449
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
2095
2450
|
viewBackgroundColor: string;
|
|
2096
2451
|
scrollX: number;
|
|
@@ -2104,7 +2459,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2104
2459
|
value: import("../types").NormalizedZoomValue;
|
|
2105
2460
|
}>;
|
|
2106
2461
|
openMenu: "canvas" | "shape" | null;
|
|
2107
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2462
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2108
2463
|
openSidebar: {
|
|
2109
2464
|
name: string;
|
|
2110
2465
|
tab?: string | undefined;
|
|
@@ -2183,7 +2538,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2183
2538
|
};
|
|
2184
2539
|
pendingImageElementId: string | null;
|
|
2185
2540
|
showHyperlinkPopup: false | "info" | "editor";
|
|
2186
|
-
selectedLinearElement:
|
|
2541
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
2187
2542
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2188
2543
|
originSnapOffset: {
|
|
2189
2544
|
x: number;
|