@excalidraw/element 0.18.0-0457ac9 → 0.18.0-063e025
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.js +1305 -895
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +18 -18
- package/dist/types/common/src/colors.d.ts +1 -1
- package/dist/types/common/src/constants.d.ts +9 -7
- package/dist/types/common/src/utils.d.ts +0 -42
- package/dist/types/element/src/Scene.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +2 -2
- package/dist/types/element/src/binding.d.ts +6 -6
- package/dist/types/element/src/bounds.d.ts +19 -6
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/element/src/comparisons.d.ts +1 -0
- package/dist/types/element/src/distribute.d.ts +2 -2
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/embeddable.d.ts +2 -2
- package/dist/types/element/src/flowchart.d.ts +3 -3
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +4 -4
- package/dist/types/element/src/groups.d.ts +9 -9
- package/dist/types/element/src/index.d.ts +1 -1
- package/dist/types/element/src/linearElementEditor.d.ts +10 -10
- package/dist/types/element/src/newElement.d.ts +1 -0
- package/dist/types/element/src/renderElement.d.ts +0 -3
- package/dist/types/element/src/resizeElements.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +5 -5
- package/dist/types/element/src/textElement.d.ts +7 -7
- package/dist/types/element/src/transform.d.ts +2 -2
- package/dist/types/element/src/typeChecks.d.ts +25 -25
- package/dist/types/element/src/types.d.ts +8 -1
- package/dist/types/element/src/visualdebug.d.ts +1 -2
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +8 -4
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +61 -389
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +8 -4
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +13 -7
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +9 -5
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +8 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +29 -20
- package/dist/types/excalidraw/actions/actionGroup.d.ts +23 -19
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionLink.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionMenu.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +35 -22
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +9 -7
- package/dist/types/excalidraw/actions/actionStyles.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +8 -7
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +8 -7
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -3
- package/dist/types/excalidraw/actions/index.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +4 -4
- package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
- package/dist/types/excalidraw/appState.d.ts +2 -1
- package/dist/types/excalidraw/components/Actions.d.ts +2 -3
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +61 -32
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/Island.d.ts +7 -0
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/dist/types/excalidraw/components/icons.d.ts +2 -0
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +6 -3
- package/dist/types/excalidraw/data/blob.d.ts +8 -4
- package/dist/types/excalidraw/data/index.d.ts +4 -4
- package/dist/types/excalidraw/data/json.d.ts +10 -8
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
- package/dist/types/excalidraw/lasso/index.d.ts +2 -3
- package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -3
- package/dist/types/excalidraw/scene/Renderer.d.ts +12 -11
- package/dist/types/excalidraw/scene/export.d.ts +3 -3
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +1 -3
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/types.d.ts +168 -11
- package/dist/types/excalidraw/viewport.d.ts +316 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
- package/dist/types/laser-pointer/src/index.d.ts +2 -0
- package/dist/types/laser-pointer/src/math.d.ts +16 -0
- package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
- package/dist/types/laser-pointer/src/state.d.ts +35 -0
- package/dist/types/utils/src/export.d.ts +3 -3
- package/dist/types/utils/src/index.d.ts +1 -2
- package/package.json +4 -4
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
- package/dist/types/utils/src/bbox.d.ts +0 -9
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import type { ElementOrToolType } from "@excalidraw/excalidraw/types";
|
|
2
2
|
import type { MarkNonNullable } from "@excalidraw/common/utility-types";
|
|
3
3
|
import type { ExcalidrawElement, ExcalidrawTextElement, ExcalidrawEmbeddableElement, ExcalidrawLinearElement, ExcalidrawBindableElement, ExcalidrawFreeDrawElement, InitializedExcalidrawImageElement, ExcalidrawImageElement, ExcalidrawTextElementWithContainer, ExcalidrawTextContainer, ExcalidrawFrameElement, RoundnessType, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeElement, ExcalidrawIframeLikeElement, ExcalidrawMagicFrameElement, ExcalidrawArrowElement, ExcalidrawElbowArrowElement, ExcalidrawLineElement, ExcalidrawFlowchartNodeElement, ExcalidrawLinearElementSubType } from "./types";
|
|
4
|
-
export declare const isInitializedImageElement: (element:
|
|
5
|
-
export declare const isImageElement: (element:
|
|
6
|
-
export declare const isEmbeddableElement: (element:
|
|
7
|
-
export declare const isIframeElement: (element:
|
|
8
|
-
export declare const isIframeLikeElement: (element:
|
|
9
|
-
export declare const isTextElement: (element:
|
|
10
|
-
export declare const isFrameElement: (element:
|
|
11
|
-
export declare const isMagicFrameElement: (element:
|
|
12
|
-
export declare const isFrameLikeElement: (element:
|
|
13
|
-
export declare const isFreeDrawElement: (element?:
|
|
4
|
+
export declare const isInitializedImageElement: <T extends ExcalidrawElement>(element: T | null) => element is T & InitializedExcalidrawImageElement;
|
|
5
|
+
export declare const isImageElement: <T extends ExcalidrawElement>(element: T | null) => element is T & ExcalidrawImageElement;
|
|
6
|
+
export declare const isEmbeddableElement: <T extends ExcalidrawElement>(element: T | null | undefined) => element is T & ExcalidrawEmbeddableElement;
|
|
7
|
+
export declare const isIframeElement: <T extends ExcalidrawElement>(element: T | null) => element is T & ExcalidrawIframeElement;
|
|
8
|
+
export declare const isIframeLikeElement: <T extends ExcalidrawElement>(element: T | null) => element is T & ExcalidrawIframeLikeElement;
|
|
9
|
+
export declare const isTextElement: <T extends ExcalidrawElement>(element: T | null) => element is T & ExcalidrawTextElement;
|
|
10
|
+
export declare const isFrameElement: <T extends ExcalidrawElement>(element: T | null) => element is T & ExcalidrawFrameElement;
|
|
11
|
+
export declare const isMagicFrameElement: <T extends ExcalidrawElement>(element: T | null) => element is T & ExcalidrawMagicFrameElement;
|
|
12
|
+
export declare const isFrameLikeElement: <T extends ExcalidrawElement>(element: T | null) => element is T & ExcalidrawFrameLikeElement;
|
|
13
|
+
export declare const isFreeDrawElement: <T extends ExcalidrawElement>(element?: T | null) => element is T & ExcalidrawFreeDrawElement;
|
|
14
14
|
export declare const isFreeDrawElementType: (elementType: ExcalidrawElementType) => boolean;
|
|
15
|
-
export declare const isLinearElement: (element?:
|
|
16
|
-
export declare const isLineElement: (element?:
|
|
17
|
-
export declare const isArrowElement: (element?:
|
|
18
|
-
export declare const isElbowArrow: (element?:
|
|
15
|
+
export declare const isLinearElement: <T extends ExcalidrawElement>(element?: T | null) => element is T & ExcalidrawLinearElement;
|
|
16
|
+
export declare const isLineElement: <T extends ExcalidrawElement>(element?: T | null) => element is T & ExcalidrawLineElement;
|
|
17
|
+
export declare const isArrowElement: <T extends ExcalidrawElement>(element?: T | null) => element is T & ExcalidrawArrowElement;
|
|
18
|
+
export declare const isElbowArrow: <T extends ExcalidrawElement>(element?: T) => element is T & ExcalidrawElbowArrowElement;
|
|
19
19
|
/**
|
|
20
20
|
* sharp or curved arrow, but not elbow
|
|
21
21
|
*/
|
|
22
|
-
export declare const isSimpleArrow: (element?:
|
|
23
|
-
export declare const isSharpArrow: (element?:
|
|
24
|
-
export declare const isCurvedArrow: (element?:
|
|
22
|
+
export declare const isSimpleArrow: <T extends ExcalidrawElement>(element?: T) => element is T & ExcalidrawArrowElement;
|
|
23
|
+
export declare const isSharpArrow: <T extends ExcalidrawElement>(element?: T) => element is T & ExcalidrawArrowElement;
|
|
24
|
+
export declare const isCurvedArrow: <T extends ExcalidrawElement>(element?: T) => element is T & ExcalidrawArrowElement;
|
|
25
25
|
export declare const isLinearElementType: (elementType: ElementOrToolType) => boolean;
|
|
26
|
-
export declare const isBindingElement: (element?:
|
|
26
|
+
export declare const isBindingElement: <T extends ExcalidrawElement>(element?: T | null, includeLocked?: boolean) => element is T & ExcalidrawArrowElement;
|
|
27
27
|
export declare const isBindingElementType: (elementType: ElementOrToolType) => boolean;
|
|
28
|
-
export declare const isBindableElement: (element:
|
|
29
|
-
export declare const isRectanguloidElement: (element?:
|
|
30
|
-
export declare const isRectangularElement: (element?:
|
|
31
|
-
export declare const isTextBindableContainer: (element:
|
|
28
|
+
export declare const isBindableElement: <T extends ExcalidrawElement>(element: T | null | undefined, includeLocked?: boolean) => element is T & ExcalidrawBindableElement;
|
|
29
|
+
export declare const isRectanguloidElement: <T extends ExcalidrawElement>(element?: T | null) => element is T & ExcalidrawBindableElement;
|
|
30
|
+
export declare const isRectangularElement: <T extends ExcalidrawElement>(element?: T | null) => element is T & ExcalidrawBindableElement;
|
|
31
|
+
export declare const isTextBindableContainer: <T extends ExcalidrawElement>(element: T | null, includeLocked?: boolean) => element is T & ExcalidrawTextContainer;
|
|
32
32
|
export declare const isExcalidrawElement: (element: any) => element is ExcalidrawElement;
|
|
33
|
-
export declare const isFlowchartNodeElement: (element:
|
|
34
|
-
export declare const hasBoundTextElement: (element:
|
|
35
|
-
export declare const isBoundToContainer: (element:
|
|
33
|
+
export declare const isFlowchartNodeElement: <T extends ExcalidrawElement>(element: T) => element is T & ExcalidrawFlowchartNodeElement;
|
|
34
|
+
export declare const hasBoundTextElement: <T extends ExcalidrawElement>(element: T | null) => element is T & MarkNonNullable<ExcalidrawBindableElement, "boundElements">;
|
|
35
|
+
export declare const isBoundToContainer: <T extends ExcalidrawElement>(element: T | null) => element is T & ExcalidrawTextElementWithContainer;
|
|
36
36
|
export declare const isArrowBoundToElement: (element: ExcalidrawArrowElement) => boolean;
|
|
37
37
|
export declare const isUsingAdaptiveRadius: (type: string) => type is "rectangle" | "embeddable" | "iframe" | "image";
|
|
38
38
|
export declare const isUsingProportionalRadius: (type: string) => type is "line" | "arrow" | "diamond";
|
|
@@ -164,7 +164,7 @@ export type Ordered<TElement extends ExcalidrawElement> = TElement & {
|
|
|
164
164
|
};
|
|
165
165
|
export type OrderedExcalidrawElement = Ordered<ExcalidrawElement>;
|
|
166
166
|
export type NonDeleted<TElement extends ExcalidrawElement> = TElement & {
|
|
167
|
-
isDeleted:
|
|
167
|
+
isDeleted: false;
|
|
168
168
|
};
|
|
169
169
|
export type NonDeletedExcalidrawElement = NonDeleted<ExcalidrawElement>;
|
|
170
170
|
export type ExcalidrawTextElement = _ExcalidrawElementBase & Readonly<{
|
|
@@ -255,11 +255,17 @@ export type ExcalidrawElbowArrowElement = Merge<ExcalidrawArrowElement, {
|
|
|
255
255
|
*/
|
|
256
256
|
endIsSpecial: boolean | null;
|
|
257
257
|
}>;
|
|
258
|
+
export type StrokeVariability = "variable" | "constant";
|
|
259
|
+
export type StrokeOptions = Readonly<{
|
|
260
|
+
variability: StrokeVariability;
|
|
261
|
+
streamline: number;
|
|
262
|
+
}>;
|
|
258
263
|
export type ExcalidrawFreeDrawElement = _ExcalidrawElementBase & Readonly<{
|
|
259
264
|
type: "freedraw";
|
|
260
265
|
points: readonly LocalPoint[];
|
|
261
266
|
pressures: readonly number[];
|
|
262
267
|
simulatePressure: boolean;
|
|
268
|
+
strokeOptions: StrokeOptions;
|
|
263
269
|
}>;
|
|
264
270
|
export type FileId = string & {
|
|
265
271
|
_brand: "FileId";
|
|
@@ -287,6 +293,7 @@ export type SceneElementsMap = Map<ExcalidrawElement["id"], Ordered<ExcalidrawEl
|
|
|
287
293
|
*/
|
|
288
294
|
export type NonDeletedSceneElementsMap = Map<ExcalidrawElement["id"], Ordered<NonDeletedExcalidrawElement>> & MakeBrand<"NonDeletedSceneElementsMap">;
|
|
289
295
|
export type ElementsMapOrArray = readonly ExcalidrawElement[] | Readonly<ElementsMap>;
|
|
296
|
+
export type NonDeletedElementsMapOrArray = readonly NonDeletedExcalidrawElement[] | Readonly<NonDeletedElementsMap | NonDeletedSceneElementsMap>;
|
|
290
297
|
export type ExcalidrawLinearElementSubType = "line" | "sharpArrow" | "curvedArrow" | "elbowArrow";
|
|
291
298
|
export type ConvertibleGenericTypes = "rectangle" | "diamond" | "ellipse";
|
|
292
299
|
export type ConvertibleLinearTypes = ExcalidrawLinearElementSubType;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
|
|
1
|
+
import { type GlobalPoint, type LocalPoint, type LineSegment } from "@excalidraw/math";
|
|
2
2
|
import { type Bounds } from "@excalidraw/common";
|
|
3
3
|
import type { ElementsMap, ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
4
|
import type { Curve } from "@excalidraw/math";
|
|
5
|
-
import type { LineSegment } from "@excalidraw/utils";
|
|
6
5
|
declare global {
|
|
7
6
|
interface Window {
|
|
8
7
|
visualDebug?: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { AppState } from "@excalidraw/excalidraw/types";
|
|
2
2
|
import type { GlobalPoint } from "@excalidraw/math";
|
|
3
3
|
import type { Scene } from "./Scene";
|
|
4
|
-
import type { ExcalidrawArrowElement, ExcalidrawElement, NonDeletedExcalidrawElement, NonDeletedSceneElementsMap,
|
|
4
|
+
import type { ExcalidrawArrowElement, ExcalidrawElement, NonDeletedExcalidrawElement, NonDeletedSceneElementsMap, OrderedExcalidrawElement } from "./types";
|
|
5
5
|
/**
|
|
6
6
|
* Moves the arrow element above any bindable elements it intersects with or
|
|
7
7
|
* hovers over.
|
|
8
8
|
*/
|
|
9
|
-
export declare const moveArrowAboveBindable: (point: GlobalPoint, arrow: ExcalidrawArrowElement, elements: readonly
|
|
9
|
+
export declare const moveArrowAboveBindable: (point: GlobalPoint, arrow: ExcalidrawArrowElement, elements: readonly OrderedExcalidrawElement[], elementsMap: NonDeletedSceneElementsMap, scene: Scene, hit?: NonDeletedExcalidrawElement) => readonly OrderedExcalidrawElement[];
|
|
10
10
|
export declare const moveOneLeft: (allElements: readonly ExcalidrawElement[], appState: AppState, scene: Scene) => readonly ExcalidrawElement[];
|
|
11
11
|
export declare const moveOneRight: (allElements: readonly ExcalidrawElement[], appState: AppState, scene: Scene) => readonly ExcalidrawElement[];
|
|
12
12
|
export declare const moveAllLeft: (allElements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[] | ExcalidrawElement[];
|
|
@@ -41,7 +41,7 @@ export declare const actionAddToLibrary: {
|
|
|
41
41
|
clip: boolean;
|
|
42
42
|
};
|
|
43
43
|
editingFrame: string | null;
|
|
44
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
44
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
45
45
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
46
46
|
activeTool: {
|
|
47
47
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -61,9 +61,10 @@ export declare const actionAddToLibrary: {
|
|
|
61
61
|
currentItemStrokeColor: string;
|
|
62
62
|
currentItemBackgroundColor: string;
|
|
63
63
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
64
|
-
|
|
64
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
65
65
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
66
66
|
currentItemRoughness: number;
|
|
67
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
67
68
|
currentItemOpacity: number;
|
|
68
69
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
69
70
|
currentItemFontSize: number;
|
|
@@ -76,6 +77,7 @@ export declare const actionAddToLibrary: {
|
|
|
76
77
|
viewBackgroundColor: string;
|
|
77
78
|
scrollX: number;
|
|
78
79
|
scrollY: number;
|
|
80
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
79
81
|
cursorButton: "up" | "down";
|
|
80
82
|
scrolledOutside: boolean;
|
|
81
83
|
name: string | null;
|
|
@@ -195,7 +197,7 @@ export declare const actionAddToLibrary: {
|
|
|
195
197
|
clip: boolean;
|
|
196
198
|
};
|
|
197
199
|
editingFrame: string | null;
|
|
198
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
200
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
199
201
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
200
202
|
activeTool: {
|
|
201
203
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -215,9 +217,10 @@ export declare const actionAddToLibrary: {
|
|
|
215
217
|
currentItemStrokeColor: string;
|
|
216
218
|
currentItemBackgroundColor: string;
|
|
217
219
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
218
|
-
|
|
220
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
219
221
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
220
222
|
currentItemRoughness: number;
|
|
223
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
221
224
|
currentItemOpacity: number;
|
|
222
225
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
223
226
|
currentItemFontSize: number;
|
|
@@ -230,6 +233,7 @@ export declare const actionAddToLibrary: {
|
|
|
230
233
|
viewBackgroundColor: string;
|
|
231
234
|
scrollX: number;
|
|
232
235
|
scrollY: number;
|
|
236
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
233
237
|
cursorButton: "up" | "down";
|
|
234
238
|
scrolledOutside: boolean;
|
|
235
239
|
name: string | null;
|
|
@@ -354,7 +358,7 @@ export declare const actionAddToLibrary: {
|
|
|
354
358
|
clip: boolean;
|
|
355
359
|
};
|
|
356
360
|
editingFrame: string | null;
|
|
357
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
361
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
358
362
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
359
363
|
activeTool: {
|
|
360
364
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -374,9 +378,10 @@ export declare const actionAddToLibrary: {
|
|
|
374
378
|
currentItemStrokeColor: string;
|
|
375
379
|
currentItemBackgroundColor: string;
|
|
376
380
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
377
|
-
|
|
381
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
378
382
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
379
383
|
currentItemRoughness: number;
|
|
384
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
380
385
|
currentItemOpacity: number;
|
|
381
386
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
382
387
|
currentItemFontSize: number;
|
|
@@ -389,6 +394,7 @@ export declare const actionAddToLibrary: {
|
|
|
389
394
|
viewBackgroundColor: string;
|
|
390
395
|
scrollX: number;
|
|
391
396
|
scrollY: number;
|
|
397
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
392
398
|
cursorButton: "up" | "down";
|
|
393
399
|
scrolledOutside: boolean;
|
|
394
400
|
name: string | null;
|
|
@@ -11,7 +11,7 @@ export declare const actionAlignTop: {
|
|
|
11
11
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
12
12
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
|
-
elements:
|
|
14
|
+
elements: (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)[];
|
|
15
15
|
captureUpdate: "IMMEDIATELY";
|
|
16
16
|
};
|
|
17
17
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -29,7 +29,7 @@ export declare const actionAlignBottom: {
|
|
|
29
29
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
30
30
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
31
31
|
appState: Readonly<AppState>;
|
|
32
|
-
elements:
|
|
32
|
+
elements: (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)[];
|
|
33
33
|
captureUpdate: "IMMEDIATELY";
|
|
34
34
|
};
|
|
35
35
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -47,7 +47,7 @@ export declare const actionAlignLeft: {
|
|
|
47
47
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
48
48
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
49
49
|
appState: Readonly<AppState>;
|
|
50
|
-
elements:
|
|
50
|
+
elements: (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)[];
|
|
51
51
|
captureUpdate: "IMMEDIATELY";
|
|
52
52
|
};
|
|
53
53
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -65,7 +65,7 @@ export declare const actionAlignRight: {
|
|
|
65
65
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
66
66
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
67
67
|
appState: Readonly<AppState>;
|
|
68
|
-
elements:
|
|
68
|
+
elements: (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)[];
|
|
69
69
|
captureUpdate: "IMMEDIATELY";
|
|
70
70
|
};
|
|
71
71
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -83,7 +83,7 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
83
83
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
84
84
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
85
85
|
appState: Readonly<AppState>;
|
|
86
|
-
elements:
|
|
86
|
+
elements: (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)[];
|
|
87
87
|
captureUpdate: "IMMEDIATELY";
|
|
88
88
|
};
|
|
89
89
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -100,7 +100,7 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
100
100
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
101
101
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
102
102
|
appState: Readonly<AppState>;
|
|
103
|
-
elements:
|
|
103
|
+
elements: (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)[];
|
|
104
104
|
captureUpdate: "IMMEDIATELY";
|
|
105
105
|
};
|
|
106
106
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -61,7 +61,7 @@ export declare const actionBindText: {
|
|
|
61
61
|
clip: boolean;
|
|
62
62
|
};
|
|
63
63
|
editingFrame: string | null;
|
|
64
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
64
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
65
65
|
editingTextElement: ExcalidrawTextElement | null;
|
|
66
66
|
activeTool: {
|
|
67
67
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -81,9 +81,10 @@ export declare const actionBindText: {
|
|
|
81
81
|
currentItemStrokeColor: string;
|
|
82
82
|
currentItemBackgroundColor: string;
|
|
83
83
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
84
|
-
|
|
84
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
85
85
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
86
86
|
currentItemRoughness: number;
|
|
87
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
87
88
|
currentItemOpacity: number;
|
|
88
89
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
89
90
|
currentItemFontSize: number;
|
|
@@ -96,6 +97,7 @@ export declare const actionBindText: {
|
|
|
96
97
|
viewBackgroundColor: string;
|
|
97
98
|
scrollX: number;
|
|
98
99
|
scrollY: number;
|
|
100
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
99
101
|
cursorButton: "up" | "down";
|
|
100
102
|
scrolledOutside: boolean;
|
|
101
103
|
name: string | null;
|
|
@@ -232,7 +234,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
232
234
|
clip: boolean;
|
|
233
235
|
};
|
|
234
236
|
editingFrame: string | null;
|
|
235
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
237
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
236
238
|
editingTextElement: ExcalidrawTextElement | null;
|
|
237
239
|
activeTool: {
|
|
238
240
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -252,9 +254,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
252
254
|
currentItemStrokeColor: string;
|
|
253
255
|
currentItemBackgroundColor: string;
|
|
254
256
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
255
|
-
|
|
257
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
256
258
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
257
259
|
currentItemRoughness: number;
|
|
260
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
258
261
|
currentItemOpacity: number;
|
|
259
262
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
260
263
|
currentItemFontSize: number;
|
|
@@ -267,6 +270,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
267
270
|
viewBackgroundColor: string;
|
|
268
271
|
scrollX: number;
|
|
269
272
|
scrollY: number;
|
|
273
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
270
274
|
cursorButton: "up" | "down";
|
|
271
275
|
scrolledOutside: boolean;
|
|
272
276
|
name: string | null;
|