@myoc/excalidraw 0.18.18 → 0.18.20

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.
Files changed (96) hide show
  1. package/dist/dev/chunk-5IFOUNFV.js +5684 -0
  2. package/dist/dev/chunk-5IFOUNFV.js.map +7 -0
  3. package/dist/dev/{chunk-WUH7JFG4.js → chunk-GR6GZQQD.js} +2 -2
  4. package/dist/dev/data/{image-BBHDGXQ3.js → image-QMTJGSU7.js} +3 -3
  5. package/dist/dev/index.css +4 -0
  6. package/dist/dev/index.css.map +2 -2
  7. package/dist/dev/index.js +6058 -4026
  8. package/dist/dev/index.js.map +4 -4
  9. package/dist/dev/subset-shared.chunk.js +1 -1
  10. package/dist/dev/subset-worker.chunk.js +1 -1
  11. package/dist/prod/{chunk-4Z2WWUCC.js → chunk-PPT7KBS3.js} +1 -1
  12. package/dist/prod/chunk-SHSFPXHA.js +4 -0
  13. package/dist/prod/data/image-TZAIFXB2.js +1 -0
  14. package/dist/prod/index.css +1 -1
  15. package/dist/prod/index.js +24 -17
  16. package/dist/prod/subset-shared.chunk.js +1 -1
  17. package/dist/prod/subset-worker.chunk.js +1 -1
  18. package/dist/types/common/src/constants.d.ts +2 -1
  19. package/dist/types/common/src/points.d.ts +1 -1
  20. package/dist/types/common/src/utils.d.ts +2 -2
  21. package/dist/types/element/src/Scene.d.ts +1 -1
  22. package/dist/types/element/src/align.d.ts +2 -1
  23. package/dist/types/element/src/binding.d.ts +4 -0
  24. package/dist/types/element/src/bounds.d.ts +3 -1
  25. package/dist/types/element/src/distribute.d.ts +2 -1
  26. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  27. package/dist/types/element/src/frame.d.ts +2 -2
  28. package/dist/types/element/src/groups.d.ts +1 -0
  29. package/dist/types/element/src/heading.d.ts +2 -2
  30. package/dist/types/element/src/linearElementEditor.d.ts +3 -5
  31. package/dist/types/element/src/resizeTest.d.ts +2 -2
  32. package/dist/types/element/src/selection.d.ts +1 -1
  33. package/dist/types/element/src/shape.d.ts +2 -2
  34. package/dist/types/element/src/shapes.d.ts +8 -8
  35. package/dist/types/element/src/store.d.ts +3 -2
  36. package/dist/types/element/src/utils.d.ts +11 -5
  37. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -15
  38. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  39. package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
  40. package/dist/types/excalidraw/actions/actionBoundText.d.ts +8 -10
  41. package/dist/types/excalidraw/actions/actionCanvas.d.ts +63 -75
  42. package/dist/types/excalidraw/actions/actionClipboard.d.ts +31 -36
  43. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +4 -5
  44. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +17 -20
  45. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  46. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  47. package/dist/types/excalidraw/actions/actionElementLink.d.ts +3 -4
  48. package/dist/types/excalidraw/actions/actionElementLock.d.ts +10 -12
  49. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +4 -5
  50. package/dist/types/excalidraw/actions/actionExport.d.ts +121 -130
  51. package/dist/types/excalidraw/actions/actionFinalize.d.ts +11 -12
  52. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  53. package/dist/types/excalidraw/actions/actionFrame.d.ts +66 -70
  54. package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -16
  55. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +85 -55
  56. package/dist/types/excalidraw/actions/actionLink.d.ts +5 -6
  57. package/dist/types/excalidraw/actions/actionMenu.d.ts +13 -16
  58. package/dist/types/excalidraw/actions/actionNavigate.d.ts +8 -10
  59. package/dist/types/excalidraw/actions/actionProperties.d.ts +63 -78
  60. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -8
  61. package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
  62. package/dist/types/excalidraw/actions/actionStyles.d.ts +8 -9
  63. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -7
  64. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +6 -7
  65. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +5 -6
  66. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +6 -7
  67. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -7
  68. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +6 -7
  69. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  70. package/dist/types/excalidraw/appState.d.ts +21 -21
  71. package/dist/types/excalidraw/components/Actions.d.ts +0 -4
  72. package/dist/types/excalidraw/components/App.d.ts +12 -6
  73. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  74. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  75. package/dist/types/excalidraw/components/shapes.d.ts +1 -1
  76. package/dist/types/excalidraw/data/blob.d.ts +1 -1
  77. package/dist/types/excalidraw/index.d.ts +1 -0
  78. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  79. package/dist/types/excalidraw/types.d.ts +2 -4
  80. package/dist/types/math/src/angle.d.ts +1 -1
  81. package/dist/types/math/src/curve.d.ts +1 -1
  82. package/dist/types/math/src/ellipse.d.ts +3 -3
  83. package/dist/types/math/src/point.d.ts +2 -2
  84. package/dist/types/math/src/polygon.d.ts +2 -2
  85. package/dist/types/math/src/rectangle.d.ts +2 -0
  86. package/dist/types/math/src/segment.d.ts +5 -5
  87. package/dist/types/math/src/utils.d.ts +0 -2
  88. package/dist/types/utils/src/shape.d.ts +12 -12
  89. package/package.json +4 -1
  90. package/dist/dev/chunk-MAGRVBVM.js +0 -23870
  91. package/dist/dev/chunk-MAGRVBVM.js.map +0 -7
  92. package/dist/prod/chunk-YBT3HBS6.js +0 -33
  93. package/dist/prod/data/image-JFILZTP3.js +0 -1
  94. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  95. /package/dist/dev/{chunk-WUH7JFG4.js.map → chunk-GR6GZQQD.js.map} +0 -0
  96. /package/dist/dev/data/{image-BBHDGXQ3.js.map → image-QMTJGSU7.js.map} +0 -0
@@ -1 +1 @@
1
- import{a,b,c,d}from"./chunk-LS7FJGPW.js";import"./chunk-4Z2WWUCC.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
1
+ import{a,b,c,d}from"./chunk-LS7FJGPW.js";import"./chunk-PPT7KBS3.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
@@ -1 +1 @@
1
- import{a as r,c as t}from"./chunk-LS7FJGPW.js";import"./chunk-4Z2WWUCC.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
1
+ import{a as r,c as t}from"./chunk-LS7FJGPW.js";import"./chunk-PPT7KBS3.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
@@ -12,6 +12,7 @@ export declare const supportsResizeObserver: boolean;
12
12
  export declare const APP_NAME = "Excalidraw";
13
13
  export declare const TEXT_AUTOWRAP_THRESHOLD = 36;
14
14
  export declare const DRAGGING_THRESHOLD = 10;
15
+ export declare const MINIMUM_ARROW_SIZE = 20;
15
16
  export declare const LINE_CONFIRM_THRESHOLD = 8;
16
17
  export declare const ELEMENT_SHIFT_TRANSLATE_AMOUNT = 5;
17
18
  export declare const ELEMENT_TRANSLATE_AMOUNT = 1;
@@ -289,7 +290,7 @@ export declare const DEFAULT_SIDEBAR: {
289
290
  readonly name: "default";
290
291
  readonly defaultTab: "library";
291
292
  };
292
- export declare const LIBRARY_DISABLED_TYPES: Set<"embeddable" | "image" | "iframe">;
293
+ export declare const LIBRARY_DISABLED_TYPES: Set<"embeddable" | "iframe" | "image">;
293
294
  export declare const TOOL_TYPE: {
294
295
  readonly selection: "selection";
295
296
  readonly lasso: "lasso";
@@ -5,5 +5,5 @@ export declare const getSizeFromPoints: (points: readonly (GlobalPoint | LocalPo
5
5
  height: number;
6
6
  };
7
7
  /** @arg dimension, 0 for rescaling only x, 1 for y */
8
- export declare const rescalePoints: <Point extends LocalPoint | GlobalPoint>(dimension: 0 | 1, newSize: number, points: readonly Point[], normalize: boolean) => Point[];
8
+ export declare const rescalePoints: <Point extends GlobalPoint | LocalPoint>(dimension: 0 | 1, newSize: number, points: readonly Point[], normalize: boolean) => Point[];
9
9
  export declare const getGridPoint: (x: number, y: number, gridSize: NullableGridSize) => [number, number];
@@ -6,9 +6,9 @@ export declare const setDateTimeForTests: (dateTime: string) => void;
6
6
  export declare const getDateTime: () => string;
7
7
  export declare const capitalizeString: (str: string) => string;
8
8
  export declare const isToolIcon: (target: Element | EventTarget | null) => target is HTMLElement;
9
- export declare const isInputLike: (target: Element | EventTarget | null) => target is HTMLInputElement | HTMLSelectElement | HTMLBRElement | HTMLDivElement | HTMLTextAreaElement;
9
+ export declare const isInputLike: (target: Element | EventTarget | null) => target is HTMLBRElement | HTMLDivElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
10
10
  export declare const isInteractive: (target: Element | EventTarget | null) => boolean;
11
- export declare const isWritableElement: (target: Element | EventTarget | null) => target is HTMLInputElement | HTMLBRElement | HTMLDivElement | HTMLTextAreaElement;
11
+ export declare const isWritableElement: (target: Element | EventTarget | null) => target is HTMLBRElement | HTMLDivElement | HTMLInputElement | HTMLTextAreaElement;
12
12
  export declare const getFontFamilyString: ({ fontFamily, }: {
13
13
  fontFamily: FontFamilyValues;
14
14
  }) => string;
@@ -66,7 +66,7 @@ export declare class Scene {
66
66
  getElementIndex(elementId: string): number;
67
67
  getContainerElement: (element: (ExcalidrawElement & {
68
68
  containerId: ExcalidrawElement["id"] | null;
69
- }) | null) => import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | null;
69
+ }) | null) => import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement | null;
70
70
  getElementsFromId: (id: string) => ExcalidrawElement[];
71
71
  mutateElement<TElement extends Mutable<ExcalidrawElement>>(element: TElement, updates: ElementUpdate<TElement>, options?: {
72
72
  informMutation: boolean;
@@ -1,7 +1,8 @@
1
+ import type { AppState } from "@excalidraw/excalidraw/types";
1
2
  import type { Scene } from "./Scene";
2
3
  import type { ExcalidrawElement } from "./types";
3
4
  export interface Alignment {
4
5
  position: "start" | "center" | "end";
5
6
  axis: "x" | "y";
6
7
  }
7
- export declare const alignElements: (selectedElements: ExcalidrawElement[], alignment: Alignment, scene: Scene) => ExcalidrawElement[];
8
+ export declare const alignElements: (selectedElements: ExcalidrawElement[], alignment: Alignment, scene: Scene, appState: Readonly<AppState>) => ExcalidrawElement[];
@@ -19,6 +19,10 @@ export declare const BINDING_HIGHLIGHT_THICKNESS = 10;
19
19
  export declare const bindOrUnbindLinearElement: (linearElement: NonDeleted<ExcalidrawLinearElement>, startBindingElement: ExcalidrawBindableElement | null | "keep", endBindingElement: ExcalidrawBindableElement | null | "keep", scene: Scene) => void;
20
20
  export declare const bindOrUnbindLinearElements: (selectedElements: NonDeleted<ExcalidrawLinearElement>[], isBindingEnabled: boolean, draggingPoints: readonly number[] | null, scene: Scene, zoom?: AppState["zoom"]) => void;
21
21
  export declare const getSuggestedBindingsForArrows: (selectedElements: NonDeleted<ExcalidrawElement>[], elementsMap: NonDeletedSceneElementsMap, zoom: AppState["zoom"]) => SuggestedBinding[];
22
+ export declare const maybeSuggestBindingsForLinearElementAtCoords: (linearElement: NonDeleted<ExcalidrawLinearElement>, pointerCoords: {
23
+ x: number;
24
+ y: number;
25
+ }[], scene: Scene, zoom: AppState["zoom"], oppositeBindingBoundElement?: ExcalidrawBindableElement | null) => ExcalidrawBindableElement[];
22
26
  export declare const maybeBindLinearElement: (linearElement: NonDeleted<ExcalidrawLinearElement>, appState: AppState, pointerCoords: {
23
27
  x: number;
24
28
  y: number;
@@ -44,6 +44,7 @@ export declare const getElementLineSegments: (element: ExcalidrawElement, elemen
44
44
  */
45
45
  export declare const getRectangleBoxAbsoluteCoords: (boxSceneCoords: RectangleBox) => number[];
46
46
  export declare const getDiamondPoints: (element: ExcalidrawElement) => number[];
47
+ export declare const getCubicBezierCurveBound: (p0: GlobalPoint, p1: GlobalPoint, p2: GlobalPoint, p3: GlobalPoint) => Bounds;
47
48
  export declare const getMinMaxXYFromCurvePathOps: (ops: Op[], transformXY?: ((p: GlobalPoint) => GlobalPoint) | undefined) => Bounds;
48
49
  export declare const getBoundsFromPoints: (points: ExcalidrawFreeDrawElement["points"]) => Bounds;
49
50
  /** @returns number in pixels */
@@ -83,5 +84,6 @@ export declare const getCenterForBounds: (bounds: Bounds) => GlobalPoint;
83
84
  * Get the axis-aligned bounding box for a given element
84
85
  */
85
86
  export declare const aabbForElement: (element: Readonly<ExcalidrawElement>, elementsMap: ElementsMap, offset?: [number, number, number, number]) => Bounds;
86
- export declare const pointInsideBounds: <P extends LocalPoint | GlobalPoint>(p: P, bounds: Bounds) => boolean;
87
+ export declare const pointInsideBounds: <P extends GlobalPoint | LocalPoint>(p: P, bounds: Bounds) => boolean;
88
+ export declare const doBoundsIntersect: (bounds1: Bounds | null, bounds2: Bounds | null) => boolean;
87
89
  export declare const elementCenterPoint: (element: ExcalidrawElement, elementsMap: ElementsMap, xOffset?: number, yOffset?: number) => GlobalPoint;
@@ -1,6 +1,7 @@
1
+ import type { AppState } from "@excalidraw/excalidraw/types";
1
2
  import type { ElementsMap, ExcalidrawElement } from "./types";
2
3
  export interface Distribution {
3
4
  space: "between";
4
5
  axis: "x" | "y";
5
6
  }
6
- export declare const distributeElements: (selectedElements: ExcalidrawElement[], elementsMap: ElementsMap, distribution: Distribution) => ExcalidrawElement[];
7
+ export declare const distributeElements: (selectedElements: ExcalidrawElement[], elementsMap: ElementsMap, distribution: Distribution, appState: Readonly<AppState>) => ExcalidrawElement[];
@@ -14,4 +14,4 @@ export declare const updateElbowArrowPoints: (arrow: Readonly<ExcalidrawElbowArr
14
14
  }, options?: {
15
15
  isDragging?: boolean;
16
16
  }) => ElementUpdate<ExcalidrawElbowArrowElement>;
17
- export declare const validateElbowPoints: <P extends LocalPoint | GlobalPoint>(points: readonly P[], tolerance?: number) => boolean;
17
+ export declare const validateElbowPoints: <P extends GlobalPoint | LocalPoint>(points: readonly P[], tolerance?: number) => boolean;
@@ -31,8 +31,8 @@ export declare const getFrameLikeElements: (allElements: ExcalidrawElementsInclu
31
31
  */
32
32
  export declare const getRootElements: (allElements: ExcalidrawElementsIncludingDeleted) => ExcalidrawElement[];
33
33
  export declare const getElementsInResizingFrame: (allElements: ExcalidrawElementsIncludingDeleted, frame: ExcalidrawFrameLikeElement, appState: AppState, elementsMap: ElementsMap) => ExcalidrawElement[];
34
- export declare const getElementsInNewFrame: (elements: ExcalidrawElementsIncludingDeleted, frame: ExcalidrawFrameLikeElement, elementsMap: ElementsMap) => (import("./types").ExcalidrawSelectionElement | import("./types").ExcalidrawRectangleElement | import("./types").ExcalidrawDiamondElement | import("./types").ExcalidrawEllipseElement | import("./types").ExcalidrawTextElement | import("./types").ExcalidrawLinearElement | import("./types").ExcalidrawFreeDrawElement | import("./types").ExcalidrawImageElement | import("./types").ExcalidrawFrameElement | import("./types").ExcalidrawMagicFrameElement | import("./types").ExcalidrawIframeElement | import("./types").ExcalidrawEmbeddableElement)[];
35
- export declare const omitPartialGroups: (elements: ExcalidrawElement[], frame: ExcalidrawFrameLikeElement, allElementsMap: ElementsMap) => (import("./types").ExcalidrawSelectionElement | import("./types").ExcalidrawRectangleElement | import("./types").ExcalidrawDiamondElement | import("./types").ExcalidrawEllipseElement | import("./types").ExcalidrawTextElement | import("./types").ExcalidrawLinearElement | import("./types").ExcalidrawFreeDrawElement | import("./types").ExcalidrawImageElement | import("./types").ExcalidrawFrameElement | import("./types").ExcalidrawMagicFrameElement | import("./types").ExcalidrawIframeElement | import("./types").ExcalidrawEmbeddableElement)[];
34
+ export declare const getElementsInNewFrame: (elements: ExcalidrawElementsIncludingDeleted, frame: ExcalidrawFrameLikeElement, elementsMap: ElementsMap) => (import("./types").ExcalidrawLinearElement | import("./types").ExcalidrawSelectionElement | import("./types").ExcalidrawRectangleElement | import("./types").ExcalidrawDiamondElement | import("./types").ExcalidrawEllipseElement | import("./types").ExcalidrawEmbeddableElement | import("./types").ExcalidrawIframeElement | import("./types").ExcalidrawImageElement | import("./types").ExcalidrawFrameElement | import("./types").ExcalidrawMagicFrameElement | import("./types").ExcalidrawTextElement | import("./types").ExcalidrawFreeDrawElement)[];
35
+ export declare const omitPartialGroups: (elements: ExcalidrawElement[], frame: ExcalidrawFrameLikeElement, allElementsMap: ElementsMap) => (import("./types").ExcalidrawLinearElement | import("./types").ExcalidrawSelectionElement | import("./types").ExcalidrawRectangleElement | import("./types").ExcalidrawDiamondElement | import("./types").ExcalidrawEllipseElement | import("./types").ExcalidrawEmbeddableElement | import("./types").ExcalidrawIframeElement | import("./types").ExcalidrawImageElement | import("./types").ExcalidrawFrameElement | import("./types").ExcalidrawMagicFrameElement | import("./types").ExcalidrawTextElement | import("./types").ExcalidrawFreeDrawElement)[];
36
36
  export declare const getContainingFrame: (element: ExcalidrawElement, elementsMap: ElementsMap) => ExcalidrawFrameLikeElement | null;
37
37
  /** */
38
38
  export declare const filterElementsEligibleAsFrameChildren: (elements: readonly ExcalidrawElement[], frame: ExcalidrawFrameLikeElement) => ExcalidrawElement[];
@@ -31,3 +31,4 @@ export declare const getNonDeletedGroupIds: (elements: ElementsMap) => Set<strin
31
31
  export declare const elementsAreInSameGroup: (elements: readonly ExcalidrawElement[]) => boolean;
32
32
  export declare const isInGroup: (element: NonDeletedExcalidrawElement) => boolean;
33
33
  export declare const getNewGroupIdsForDuplication: (groupIds: ExcalidrawElement["groupIds"], editingGroupId: AppState["editingGroupId"], mapper: (groupId: GroupId) => GroupId) => string[];
34
+ export declare const getSelectedElementsByGroup: (selectedElements: ExcalidrawElement[], elementsMap: ElementsMap, appState: Readonly<AppState>) => ExcalidrawElement[][];
@@ -6,8 +6,8 @@ export declare const HEADING_LEFT: Heading;
6
6
  export declare const HEADING_UP: Heading;
7
7
  export type Heading = [1, 0] | [0, 1] | [-1, 0] | [0, -1];
8
8
  export declare const vectorToHeading: (vec: Vector) => Heading;
9
- export declare const headingForPoint: <P extends LocalPoint | GlobalPoint>(p: P, o: P) => Heading;
10
- export declare const headingForPointIsHorizontal: <P extends LocalPoint | GlobalPoint>(p: P, o: P) => boolean;
9
+ export declare const headingForPoint: <P extends GlobalPoint | LocalPoint>(p: P, o: P) => Heading;
10
+ export declare const headingForPointIsHorizontal: <P extends GlobalPoint | LocalPoint>(p: P, o: P) => boolean;
11
11
  export declare const compareHeading: (a: Heading, b: Heading) => boolean;
12
12
  export declare const headingIsHorizontal: (a: Heading) => boolean;
13
13
  export declare const headingIsVertical: (a: Heading) => boolean;
@@ -39,7 +39,8 @@ export declare class LinearElementEditor {
39
39
  readonly segmentMidPointHoveredCoords: GlobalPoint | null;
40
40
  readonly elbowed: boolean;
41
41
  readonly customLineAngle: number | null;
42
- constructor(element: NonDeleted<ExcalidrawLinearElement>, elementsMap: ElementsMap);
42
+ readonly isEditing: boolean;
43
+ constructor(element: NonDeleted<ExcalidrawLinearElement>, elementsMap: ElementsMap, isEditing?: boolean);
43
44
  static POINT_HANDLE_SIZE: number;
44
45
  /**
45
46
  * @param id the `elementId` from the instance of this class (so that we can
@@ -50,10 +51,7 @@ export declare class LinearElementEditor {
50
51
  /**
51
52
  * @returns whether point was dragged
52
53
  */
53
- static handlePointDragging(event: PointerEvent, app: AppClassProperties, scenePointerX: number, scenePointerY: number, maybeSuggestBinding: (element: NonDeleted<ExcalidrawLinearElement>, pointSceneCoords: {
54
- x: number;
55
- y: number;
56
- }[]) => void, linearElementEditor: LinearElementEditor, scene: Scene): LinearElementEditor | null;
54
+ static handlePointDragging(event: PointerEvent, app: AppClassProperties, scenePointerX: number, scenePointerY: number, linearElementEditor: LinearElementEditor): Pick<AppState, keyof AppState> | null;
57
55
  static handlePointerUp(event: PointerEvent, editingLinearElement: LinearElementEditor, appState: AppState, scene: Scene): LinearElementEditor;
58
56
  static getEditorMidPoints: (element: NonDeleted<ExcalidrawLinearElement>, elementsMap: ElementsMap, appState: InteractiveCanvasAppState) => (GlobalPoint | null)[];
59
57
  static getSegmentMidpointHitCoords: (linearElementEditor: LinearElementEditor, scenePointer: {
@@ -3,12 +3,12 @@ import type { AppState, Device, Zoom } from "@excalidraw/excalidraw/types";
3
3
  import type { Bounds } from "./bounds";
4
4
  import type { MaybeTransformHandleType } from "./transformHandles";
5
5
  import type { ExcalidrawElement, PointerType, NonDeletedExcalidrawElement, ElementsMap } from "./types";
6
- export declare const resizeTest: <Point extends LocalPoint | GlobalPoint>(element: NonDeletedExcalidrawElement, elementsMap: ElementsMap, appState: AppState, x: number, y: number, zoom: Zoom, pointerType: PointerType, device: Device) => MaybeTransformHandleType;
6
+ export declare const resizeTest: <Point extends GlobalPoint | LocalPoint>(element: NonDeletedExcalidrawElement, elementsMap: ElementsMap, appState: AppState, x: number, y: number, zoom: Zoom, pointerType: PointerType, device: Device) => MaybeTransformHandleType;
7
7
  export declare const getElementWithTransformHandleType: (elements: readonly NonDeletedExcalidrawElement[], appState: AppState, scenePointerX: number, scenePointerY: number, zoom: Zoom, pointerType: PointerType, elementsMap: ElementsMap, device: Device) => {
8
8
  element: NonDeletedExcalidrawElement;
9
9
  transformHandleType: MaybeTransformHandleType;
10
10
  } | null;
11
- export declare const getTransformHandleTypeFromCoords: <Point extends LocalPoint | GlobalPoint>([x1, y1, x2, y2]: Bounds, scenePointerX: number, scenePointerY: number, zoom: Zoom, pointerType: PointerType, device: Device) => MaybeTransformHandleType;
11
+ export declare const getTransformHandleTypeFromCoords: <Point extends GlobalPoint | LocalPoint>([x1, y1, x2, y2]: Bounds, scenePointerX: number, scenePointerY: number, zoom: Zoom, pointerType: PointerType, device: Device) => MaybeTransformHandleType;
12
12
  export declare const getCursorForResizingElement: (resizingElement: {
13
13
  element?: ExcalidrawElement;
14
14
  transformHandleType: MaybeTransformHandleType;
@@ -27,12 +27,12 @@ export declare const makeNextSelectedElementIds: (nextSelectedElementIds: AppSta
27
27
  [id: string]: true;
28
28
  }>;
29
29
  export declare const getSelectionStateForElements: (targetElements: readonly ExcalidrawElement[], allElements: readonly NonDeletedExcalidrawElement[], appState: AppState) => {
30
+ editingGroupId: string | null;
30
31
  selectedElementIds: Readonly<{
31
32
  [id: string]: true;
32
33
  }>;
33
34
  selectedGroupIds: {
34
35
  [groupId: string]: boolean;
35
36
  };
36
- editingGroupId: string | null;
37
37
  selectedLinearElement: LinearElementEditor | null;
38
38
  };
@@ -20,7 +20,7 @@ export declare class ShapeCache {
20
20
  * Generates & caches shape for element if not already cached, otherwise
21
21
  * returns cached shape.
22
22
  */
23
- static generateElementShape: <T extends import("./types").ExcalidrawRectangleElement | import("./types").ExcalidrawDiamondElement | import("./types").ExcalidrawEllipseElement | import("./types").ExcalidrawTextElement | ExcalidrawLinearElement | import("./types").ExcalidrawArrowElement | ExcalidrawFreeDrawElement | import("./types").ExcalidrawImageElement | import("./types").ExcalidrawFrameElement | import("./types").ExcalidrawMagicFrameElement | import("./types").ExcalidrawIframeElement | import("./types").ExcalidrawEmbeddableElement>(element: T, renderConfig: {
23
+ static generateElementShape: <T extends ExcalidrawLinearElement | import("./types").ExcalidrawRectangleElement | import("./types").ExcalidrawDiamondElement | import("./types").ExcalidrawEllipseElement | import("./types").ExcalidrawEmbeddableElement | import("./types").ExcalidrawIframeElement | import("./types").ExcalidrawImageElement | import("./types").ExcalidrawFrameElement | import("./types").ExcalidrawMagicFrameElement | import("./types").ExcalidrawTextElement | ExcalidrawFreeDrawElement | import("./types").ExcalidrawArrowElement>(element: T, renderConfig: {
24
24
  isExporting: boolean;
25
25
  canvasBackgroundColor: AppState["viewBackgroundColor"];
26
26
  embedsValidationStatus: EmbedsValidationStatus;
@@ -35,7 +35,7 @@ export declare const generateLinearCollisionShape: (element: ExcalidrawLinearEle
35
35
  * get the pure geometric shape of an excalidraw elementw
36
36
  * which is then used for hit detection
37
37
  */
38
- export declare const getElementShape: <Point extends LocalPoint | GlobalPoint>(element: ExcalidrawElement, elementsMap: ElementsMap) => GeometricShape<Point>;
38
+ export declare const getElementShape: <Point extends GlobalPoint | LocalPoint>(element: ExcalidrawElement, elementsMap: ElementsMap) => GeometricShape<Point>;
39
39
  export declare const toggleLinePolygonState: (element: ExcalidrawLineElement, nextPolygonState: boolean) => {
40
40
  polygon: ExcalidrawLineElement["polygon"];
41
41
  points: ExcalidrawLineElement["points"];
@@ -75,22 +75,22 @@ export declare const SHAPES: readonly [{
75
75
  readonly fillable: false;
76
76
  readonly myocSimplifiedMode: true;
77
77
  }];
78
- export declare const findShapeByKey: (key: string) => "text" | "line" | "arrow" | "selection" | "rectangle" | "diamond" | "ellipse" | "freedraw" | "image" | "eraser" | null;
78
+ export declare const findShapeByKey: (key: string) => "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | null;
79
79
  /**
80
80
  * get the pure geometric shape of an excalidraw elementw
81
81
  * which is then used for hit detection
82
82
  */
83
- export declare const getElementShape: <Point extends LocalPoint | GlobalPoint>(element: ExcalidrawElement, elementsMap: ElementsMap) => GeometricShape<Point>;
84
- export declare const getBoundTextShape: <Point extends LocalPoint | GlobalPoint>(element: ExcalidrawElement, elementsMap: ElementsMap) => GeometricShape<Point> | null;
85
- export declare const getControlPointsForBezierCurve: <P extends LocalPoint | GlobalPoint>(element: NonDeleted<ExcalidrawLinearElement>, endPoint: P) => P[] | null;
86
- export declare const getBezierXY: <P extends LocalPoint | GlobalPoint>(p0: P, p1: P, p2: P, p3: P, t: number) => P;
87
- export declare const getBezierCurveLength: <P extends LocalPoint | GlobalPoint>(element: NonDeleted<ExcalidrawLinearElement>, endPoint: P) => number;
88
- export declare const mapIntervalToBezierT: <P extends LocalPoint | GlobalPoint>(element: NonDeleted<ExcalidrawLinearElement>, endPoint: P, interval: number) => number;
83
+ export declare const getElementShape: <Point extends GlobalPoint | LocalPoint>(element: ExcalidrawElement, elementsMap: ElementsMap) => GeometricShape<Point>;
84
+ export declare const getBoundTextShape: <Point extends GlobalPoint | LocalPoint>(element: ExcalidrawElement, elementsMap: ElementsMap) => GeometricShape<Point> | null;
85
+ export declare const getControlPointsForBezierCurve: <P extends GlobalPoint | LocalPoint>(element: NonDeleted<ExcalidrawLinearElement>, endPoint: P) => P[] | null;
86
+ export declare const getBezierXY: <P extends GlobalPoint | LocalPoint>(p0: P, p1: P, p2: P, p3: P, t: number) => P;
87
+ export declare const getBezierCurveLength: <P extends GlobalPoint | LocalPoint>(element: NonDeleted<ExcalidrawLinearElement>, endPoint: P) => number;
88
+ export declare const mapIntervalToBezierT: <P extends GlobalPoint | LocalPoint>(element: NonDeleted<ExcalidrawLinearElement>, endPoint: P, interval: number) => number;
89
89
  /**
90
90
  * Get the axis-aligned bounding box for a given element
91
91
  */
92
92
  export declare const aabbForElement: (element: Readonly<ExcalidrawElement>, elementsMap: NonDeletedSceneElementsMap, offset?: [number, number, number, number]) => Bounds;
93
- export declare const pointInsideBounds: <P extends LocalPoint | GlobalPoint>(p: P, bounds: Bounds) => boolean;
93
+ export declare const pointInsideBounds: <P extends GlobalPoint | LocalPoint>(p: P, bounds: Bounds) => boolean;
94
94
  export declare const aabbsOverlapping: (a: Bounds, b: Bounds) => boolean;
95
95
  export declare const getCornerRadius: (x: number, element: ExcalidrawElement) => number;
96
96
  export declare const isPathALoop: (points: ExcalidrawLinearElement["points"], zoomValue?: Zoom["value"]) => boolean;
@@ -3,6 +3,7 @@ import type App from "@excalidraw/excalidraw/components/App";
3
3
  import type { DTO, ValueOf } from "@excalidraw/common/utility-types";
4
4
  import type { AppState, ObservedAppState } from "@excalidraw/excalidraw/types";
5
5
  import { ElementsDelta, AppStateDelta } from "./delta";
6
+ import type { ApplyToOptions } from "./delta";
6
7
  import type { ExcalidrawElement, OrderedExcalidrawElement, SceneElementsMap } from "./types";
7
8
  export declare const CaptureUpdateAction: {
8
9
  /**
@@ -176,7 +177,7 @@ export declare class StoreDelta {
176
177
  /**
177
178
  * Apply the delta to the passed elements and appState, does not modify the snapshot.
178
179
  */
179
- static applyTo(delta: StoreDelta, elements: SceneElementsMap, appState: AppState): [SceneElementsMap, AppState, boolean];
180
+ static applyTo(delta: StoreDelta, elements: SceneElementsMap, appState: AppState, options?: ApplyToOptions): [SceneElementsMap, AppState, boolean];
180
181
  /**
181
182
  * Apply latest (remote) changes to the delta, creates new instance of `StoreDelta`.
182
183
  */
@@ -220,7 +221,7 @@ export declare class StoreSnapshot {
220
221
  private maybeCreateElementsSnapshot;
221
222
  private detectChangedAppState;
222
223
  /**
223
- * Detect if there any changed elements.
224
+ * Detect if there are any changed elements.
224
225
  */
225
226
  private detectChangedElements;
226
227
  /**
@@ -2,23 +2,29 @@ import { type GlobalPoint } from "@excalidraw/math";
2
2
  import type { Curve, LineSegment } from "@excalidraw/math";
3
3
  import type { Zoom } from "@excalidraw/excalidraw/types";
4
4
  import type { ExcalidrawDiamondElement, ExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawLinearElement, ExcalidrawRectanguloidElement } from "./types";
5
+ /**
6
+ * Returns the **rotated** components of freedraw, line or arrow elements.
7
+ *
8
+ * @param element The linear element to deconstruct
9
+ * @returns The rotated in components.
10
+ */
5
11
  export declare function deconstructLinearOrFreeDrawElement(element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
6
12
  /**
7
13
  * Get the building components of a rectanguloid element in the form of
8
- * line segments and curves.
14
+ * line segments and curves **unrotated**.
9
15
  *
10
16
  * @param element Target rectanguloid element
11
17
  * @param offset Optional offset to expand the rectanguloid shape
12
- * @returns Tuple of line segments (0) and curves (1)
18
+ * @returns Tuple of **unrotated** line segments (0) and curves (1)
13
19
  */
14
20
  export declare function deconstructRectanguloidElement(element: ExcalidrawRectanguloidElement, offset?: number): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
15
21
  /**
16
- * Get the building components of a diamond element in the form of
17
- * line segments and curves as a tuple, in this order.
22
+ * Get the **unrotated** building components of a diamond element
23
+ * in the form of line segments and curves as a tuple, in this order.
18
24
  *
19
25
  * @param element The element to deconstruct
20
26
  * @param offset An optional offset
21
- * @returns Tuple of line segments (0) and curves (1)
27
+ * @returns Tuple of line **unrotated** segments (0) and curves (1)
22
28
  */
23
29
  export declare function deconstructDiamondElement(element: ExcalidrawDiamondElement, offset?: number): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
24
30
  export declare const isPathALoop: (points: ExcalidrawLinearElement["points"], zoomValue?: Zoom["value"]) => boolean;
@@ -28,7 +28,7 @@ export declare const actionAddToLibrary: {
28
28
  errorMessage: import("react").ReactNode;
29
29
  activeEmbeddable: {
30
30
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
31
- state: "hover" | "active";
31
+ state: "active" | "hover";
32
32
  } | null;
33
33
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
34
34
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -47,7 +47,6 @@ export declare const actionAddToLibrary: {
47
47
  editingFrame: string | null;
48
48
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
49
49
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
50
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
51
50
  activeTool: {
52
51
  lastActiveTool: import("../types").ActiveTool | null;
53
52
  locked: boolean;
@@ -73,7 +72,7 @@ export declare const actionAddToLibrary: {
73
72
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
74
73
  currentHoveredFontFamily: number | null;
75
74
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
76
- currentItemArrowType: "sharp" | "round" | "elbow";
75
+ currentItemArrowType: "round" | "sharp" | "elbow";
77
76
  viewBackgroundColor: string;
78
77
  scrollX: number;
79
78
  scrollY: number;
@@ -95,7 +94,7 @@ export declare const actionAddToLibrary: {
95
94
  name: "imageExport" | "help" | "jsonExport";
96
95
  } | {
97
96
  name: "ttd";
98
- tab: "text-to-diagram" | "mermaid";
97
+ tab: "mermaid" | "text-to-diagram";
99
98
  } | {
100
99
  name: "commandPalette";
101
100
  } | {
@@ -162,7 +161,7 @@ export declare const actionAddToLibrary: {
162
161
  shown: true;
163
162
  data: import("../charts").Spreadsheet;
164
163
  };
165
- showHyperlinkPopup: false | "info" | "editor";
164
+ showHyperlinkPopup: false | "editor" | "info";
166
165
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
167
166
  snapLines: readonly import("../snapping").SnapLine[];
168
167
  originSnapOffset: {
@@ -204,7 +203,7 @@ export declare const actionAddToLibrary: {
204
203
  };
205
204
  activeEmbeddable: {
206
205
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
207
- state: "hover" | "active";
206
+ state: "active" | "hover";
208
207
  } | null;
209
208
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
210
209
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -223,7 +222,6 @@ export declare const actionAddToLibrary: {
223
222
  editingFrame: string | null;
224
223
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
225
224
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
226
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
227
225
  activeTool: {
228
226
  lastActiveTool: import("../types").ActiveTool | null;
229
227
  locked: boolean;
@@ -249,7 +247,7 @@ export declare const actionAddToLibrary: {
249
247
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
250
248
  currentHoveredFontFamily: number | null;
251
249
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
252
- currentItemArrowType: "sharp" | "round" | "elbow";
250
+ currentItemArrowType: "round" | "sharp" | "elbow";
253
251
  viewBackgroundColor: string;
254
252
  scrollX: number;
255
253
  scrollY: number;
@@ -271,7 +269,7 @@ export declare const actionAddToLibrary: {
271
269
  name: "imageExport" | "help" | "jsonExport";
272
270
  } | {
273
271
  name: "ttd";
274
- tab: "text-to-diagram" | "mermaid";
272
+ tab: "mermaid" | "text-to-diagram";
275
273
  } | {
276
274
  name: "commandPalette";
277
275
  } | {
@@ -343,7 +341,7 @@ export declare const actionAddToLibrary: {
343
341
  shown: true;
344
342
  data: import("../charts").Spreadsheet;
345
343
  };
346
- showHyperlinkPopup: false | "info" | "editor";
344
+ showHyperlinkPopup: false | "editor" | "info";
347
345
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
348
346
  snapLines: readonly import("../snapping").SnapLine[];
349
347
  originSnapOffset: {
@@ -385,7 +383,7 @@ export declare const actionAddToLibrary: {
385
383
  };
386
384
  activeEmbeddable: {
387
385
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
388
- state: "hover" | "active";
386
+ state: "active" | "hover";
389
387
  } | null;
390
388
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
391
389
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -404,7 +402,6 @@ export declare const actionAddToLibrary: {
404
402
  editingFrame: string | null;
405
403
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
406
404
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
407
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
408
405
  activeTool: {
409
406
  lastActiveTool: import("../types").ActiveTool | null;
410
407
  locked: boolean;
@@ -430,7 +427,7 @@ export declare const actionAddToLibrary: {
430
427
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
431
428
  currentHoveredFontFamily: number | null;
432
429
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
433
- currentItemArrowType: "sharp" | "round" | "elbow";
430
+ currentItemArrowType: "round" | "sharp" | "elbow";
434
431
  viewBackgroundColor: string;
435
432
  scrollX: number;
436
433
  scrollY: number;
@@ -452,7 +449,7 @@ export declare const actionAddToLibrary: {
452
449
  name: "imageExport" | "help" | "jsonExport";
453
450
  } | {
454
451
  name: "ttd";
455
- tab: "text-to-diagram" | "mermaid";
452
+ tab: "mermaid" | "text-to-diagram";
456
453
  } | {
457
454
  name: "commandPalette";
458
455
  } | {
@@ -524,7 +521,7 @@ export declare const actionAddToLibrary: {
524
521
  shown: true;
525
522
  data: import("../charts").Spreadsheet;
526
523
  };
527
- showHyperlinkPopup: false | "info" | "editor";
524
+ showHyperlinkPopup: false | "editor" | "info";
528
525
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
529
526
  snapLines: readonly import("../snapping").SnapLine[];
530
527
  originSnapOffset: {
@@ -15,10 +15,10 @@ export declare const actionAlignTop: {
15
15
  elements: ExcalidrawElement[];
16
16
  captureUpdate: "IMMEDIATELY";
17
17
  };
18
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
18
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
19
19
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
20
20
  } & {
21
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
21
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
22
22
  };
23
23
  export declare const actionAlignBottom: {
24
24
  name: "alignBottom";
@@ -33,10 +33,10 @@ export declare const actionAlignBottom: {
33
33
  elements: ExcalidrawElement[];
34
34
  captureUpdate: "IMMEDIATELY";
35
35
  };
36
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
36
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
37
37
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
38
38
  } & {
39
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
39
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
40
40
  };
41
41
  export declare const actionAlignLeft: {
42
42
  name: "alignLeft";
@@ -51,10 +51,10 @@ export declare const actionAlignLeft: {
51
51
  elements: ExcalidrawElement[];
52
52
  captureUpdate: "IMMEDIATELY";
53
53
  };
54
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
54
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
55
55
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
56
56
  } & {
57
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
57
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
58
58
  };
59
59
  export declare const actionAlignRight: {
60
60
  name: "alignRight";
@@ -69,10 +69,10 @@ export declare const actionAlignRight: {
69
69
  elements: ExcalidrawElement[];
70
70
  captureUpdate: "IMMEDIATELY";
71
71
  };
72
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
72
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
73
73
  PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
74
74
  } & {
75
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
75
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
76
76
  };
77
77
  export declare const actionAlignVerticallyCentered: {
78
78
  name: "alignVerticallyCentered";
@@ -23,8 +23,8 @@ export declare const actionArrangeElements: {
23
23
  elements: ExcalidrawElement[];
24
24
  captureUpdate: "IMMEDIATELY";
25
25
  };
26
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
26
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
27
27
  PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
28
28
  } & {
29
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
29
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
30
30
  };
@@ -48,7 +48,7 @@ export declare const actionBindText: {
48
48
  errorMessage: import("react").ReactNode;
49
49
  activeEmbeddable: {
50
50
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
51
- state: "hover" | "active";
51
+ state: "active" | "hover";
52
52
  } | null;
53
53
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
54
54
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -67,7 +67,6 @@ export declare const actionBindText: {
67
67
  editingFrame: string | null;
68
68
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
69
69
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
70
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
71
70
  activeTool: {
72
71
  lastActiveTool: import("../types").ActiveTool | null;
73
72
  locked: boolean;
@@ -93,7 +92,7 @@ export declare const actionBindText: {
93
92
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
94
93
  currentHoveredFontFamily: number | null;
95
94
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
96
- currentItemArrowType: "sharp" | "round" | "elbow";
95
+ currentItemArrowType: "round" | "sharp" | "elbow";
97
96
  viewBackgroundColor: string;
98
97
  scrollX: number;
99
98
  scrollY: number;
@@ -115,7 +114,7 @@ export declare const actionBindText: {
115
114
  name: "imageExport" | "help" | "jsonExport";
116
115
  } | {
117
116
  name: "ttd";
118
- tab: "text-to-diagram" | "mermaid";
117
+ tab: "mermaid" | "text-to-diagram";
119
118
  } | {
120
119
  name: "commandPalette";
121
120
  } | {
@@ -184,7 +183,7 @@ export declare const actionBindText: {
184
183
  shown: true;
185
184
  data: import("../charts").Spreadsheet;
186
185
  };
187
- showHyperlinkPopup: false | "info" | "editor";
186
+ showHyperlinkPopup: false | "editor" | "info";
188
187
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
189
188
  snapLines: readonly import("../snapping").SnapLine[];
190
189
  originSnapOffset: {
@@ -241,7 +240,7 @@ export declare const actionWrapTextInContainer: {
241
240
  errorMessage: import("react").ReactNode;
242
241
  activeEmbeddable: {
243
242
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
244
- state: "hover" | "active";
243
+ state: "active" | "hover";
245
244
  } | null;
246
245
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
247
246
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -260,7 +259,6 @@ export declare const actionWrapTextInContainer: {
260
259
  editingFrame: string | null;
261
260
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
262
261
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
263
- editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
264
262
  activeTool: {
265
263
  lastActiveTool: import("../types").ActiveTool | null;
266
264
  locked: boolean;
@@ -286,7 +284,7 @@ export declare const actionWrapTextInContainer: {
286
284
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
287
285
  currentHoveredFontFamily: number | null;
288
286
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
289
- currentItemArrowType: "sharp" | "round" | "elbow";
287
+ currentItemArrowType: "round" | "sharp" | "elbow";
290
288
  viewBackgroundColor: string;
291
289
  scrollX: number;
292
290
  scrollY: number;
@@ -308,7 +306,7 @@ export declare const actionWrapTextInContainer: {
308
306
  name: "imageExport" | "help" | "jsonExport";
309
307
  } | {
310
308
  name: "ttd";
311
- tab: "text-to-diagram" | "mermaid";
309
+ tab: "mermaid" | "text-to-diagram";
312
310
  } | {
313
311
  name: "commandPalette";
314
312
  } | {
@@ -377,7 +375,7 @@ export declare const actionWrapTextInContainer: {
377
375
  shown: true;
378
376
  data: import("../charts").Spreadsheet;
379
377
  };
380
- showHyperlinkPopup: false | "info" | "editor";
378
+ showHyperlinkPopup: false | "editor" | "info";
381
379
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
382
380
  snapLines: readonly import("../snapping").SnapLine[];
383
381
  originSnapOffset: {