@dwelle/excalidraw 0.5.0-2aec728 → 0.5.0-2dbdd6f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/{chunk-M4JV7MPJ.js → chunk-EWKWI3K7.js} +12 -4
- package/dist/dev/chunk-EWKWI3K7.js.map +7 -0
- package/dist/dev/{chunk-K532CM3P.js → chunk-JBODKHIT.js} +420 -153
- package/dist/dev/chunk-JBODKHIT.js.map +7 -0
- package/dist/dev/{chunk-M2XQF7GS.js → chunk-NYLL7DNJ.js} +2 -2
- package/dist/dev/components/TTDDialog/CodeMirrorEditor-PY5ZVWKQ.js +259 -0
- package/dist/dev/components/TTDDialog/CodeMirrorEditor-PY5ZVWKQ.js.map +7 -0
- package/dist/dev/data/{image-2KXEDCIH.js → image-WSL7K3G4.js} +3 -3
- package/dist/dev/index.css +99 -22
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +1469 -408
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-RZ6RNZOE.js → en-A3UOWEYW.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-33L4EPXN.js +34 -0
- package/dist/prod/{chunk-GYMRTBHM.js → chunk-DF5Y7EC7.js} +5 -5
- package/dist/prod/{chunk-V7CARC7D.js → chunk-ZV7TQH6J.js} +1 -1
- package/dist/prod/components/TTDDialog/CodeMirrorEditor-M5ZUJBXD.js +1 -0
- package/dist/prod/data/image-57VVPCM3.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +32 -24
- package/dist/prod/locales/{en-XBJ4S4YK.js → en-QI57FMQH.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/element/src/arrowheads.d.ts +3 -0
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/linearElementEditor.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +5 -1
- package/dist/types/element/src/shape.d.ts +1 -1
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/textWrapping.d.ts +26 -0
- package/dist/types/element/src/types.d.ts +4 -1
- package/dist/types/element/src/utils.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +10 -10
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionExport.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionGroup.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +2 -1
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +11 -0
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/icons.d.ts +17 -8
- package/dist/types/excalidraw/data/blob.d.ts +2 -2
- package/dist/types/excalidraw/data/json.d.ts +1 -1
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +3 -2
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +5 -1
- package/dist/types/math/src/point.d.ts +1 -1
- package/package.json +7 -2
- package/dist/dev/chunk-K532CM3P.js.map +0 -7
- package/dist/dev/chunk-M4JV7MPJ.js.map +0 -7
- package/dist/prod/chunk-FARSR7T2.js +0 -33
- package/dist/prod/data/image-P4TPEGR7.js +0 -1
- /package/dist/dev/{chunk-M2XQF7GS.js.map → chunk-NYLL7DNJ.js.map} +0 -0
- /package/dist/dev/data/{image-2KXEDCIH.js.map → image-WSL7K3G4.js.map} +0 -0
- /package/dist/dev/locales/{en-RZ6RNZOE.js.map → en-A3UOWEYW.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A,B,C,D,E,F,G,H,I,J,K,L,M,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-
|
|
1
|
+
import{A,B,C,D,E,F,G,H,I,J,K,L,M,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-DF5Y7EC7.js";import"../chunk-SRAX5OIU.js";export{f as alerts,e as buttons,l as canvasError,G as chat,s as clearCanvasDialog,C as colorPicker,A as colors,K as commandPalette,v as confirmDialog,M as default,i as element,b as elementLink,x as encrypted,p as errorDialog,m as errorSplash,g as errors,q as exportDialog,I as fontList,j as headings,r as helpDialog,k as hints,w as imageExportDialog,L as keys,a as labels,c as library,E as mermaid,D as overwriteConfirm,t as publishDialog,u as publishSuccessDialog,H as quickSearch,o as roomDialog,d as search,n as shareDialog,y as stats,z as toast,h as toolBar,F as ttd,J as userList,B as welcomeScreen};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-ZV7TQH6J.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-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-ZV7TQH6J.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};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Arrowhead, AnyArrowhead } from "./types";
|
|
2
|
+
export declare const normalizeArrowhead: (arrowhead: AnyArrowhead | null | undefined) => Arrowhead | null;
|
|
3
|
+
export declare const getArrowheadForPicker: (arrowhead: AnyArrowhead | null | undefined) => Arrowhead | null;
|
|
@@ -43,7 +43,7 @@ export declare const getBoundsFromPoints: (points: ExcalidrawFreeDrawElement["po
|
|
|
43
43
|
export declare const getArrowheadSize: (arrowhead: Arrowhead) => number;
|
|
44
44
|
/** @returns number in degrees */
|
|
45
45
|
export declare const getArrowheadAngle: (arrowhead: Arrowhead) => Degrees;
|
|
46
|
-
export declare const getArrowheadPoints: (element: ExcalidrawLinearElement, shape: Drawable[], position: "start" | "end", arrowhead: Arrowhead) => number[] | null;
|
|
46
|
+
export declare const getArrowheadPoints: (element: ExcalidrawLinearElement, shape: Drawable[], position: "start" | "end", arrowhead: Arrowhead, offsetMultiplier?: number) => number[] | null;
|
|
47
47
|
export declare const getElementBounds: (element: ExcalidrawElement, elementsMap: ElementsMap, nonRotated?: boolean) => Bounds;
|
|
48
48
|
export declare const getCommonBounds: (elements: ElementsMapOrArray, elementsMap?: ElementsMap) => Bounds;
|
|
49
49
|
export declare const getDraggedElementsBounds: (elements: ExcalidrawElement[], dragOffset: {
|
|
@@ -55,8 +55,8 @@ export declare class LinearElementEditor {
|
|
|
55
55
|
x: number;
|
|
56
56
|
y: number;
|
|
57
57
|
}, appState: AppState, elementsMap: ElementsMap) => GlobalPoint | null;
|
|
58
|
-
static isSegmentTooShort<P extends GlobalPoint | LocalPoint>(element: NonDeleted<ExcalidrawLinearElement>, startPoint: P, endPoint: P, index: number, zoom: Zoom): boolean;
|
|
59
|
-
static getSegmentMidPoint(element: NonDeleted<ExcalidrawLinearElement>, index: number): GlobalPoint;
|
|
58
|
+
static isSegmentTooShort<P extends GlobalPoint | LocalPoint>(element: NonDeleted<ExcalidrawLinearElement>, startPoint: P, endPoint: P, index: number, zoom: Zoom, elementsMap: ElementsMap): boolean;
|
|
59
|
+
static getSegmentMidPoint(element: NonDeleted<ExcalidrawLinearElement>, index: number, elementsMap: ElementsMap): GlobalPoint;
|
|
60
60
|
static getSegmentMidPointIndex(linearElementEditor: LinearElementEditor, appState: AppState, midPoint: GlobalPoint, elementsMap: ElementsMap): number;
|
|
61
61
|
static handlePointerDown(event: React.PointerEvent<HTMLElement>, app: AppClassProperties, store: Store, scenePointer: {
|
|
62
62
|
x: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppState, InteractiveCanvasAppState } from "@excalidraw/excalidraw/types";
|
|
2
2
|
import { LinearElementEditor } from "./linearElementEditor";
|
|
3
|
-
import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, NonDeletedExcalidrawElement } from "./types";
|
|
3
|
+
import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, NonDeleted, NonDeletedExcalidrawElement } from "./types";
|
|
4
4
|
/**
|
|
5
5
|
* Frames and their containing elements are not to be selected at the same time.
|
|
6
6
|
* Given an array of selected elements, if there are frames and their containing elements
|
|
@@ -32,3 +32,7 @@ export declare const getSelectionStateForElements: (targetElements: readonly Exc
|
|
|
32
32
|
editingGroupId: AppState["editingGroupId"];
|
|
33
33
|
selectedLinearElement: LinearElementEditor | null;
|
|
34
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Returns editing or single-selected text element, if any.
|
|
37
|
+
*/
|
|
38
|
+
export declare const getActiveTextElement: (selectedElements: readonly NonDeleted<ExcalidrawElement>[], appState: Pick<AppState, "editingTextElement">) => import("./types").ExcalidrawTextElement | null;
|
|
@@ -27,7 +27,7 @@ export declare class ShapeCache {
|
|
|
27
27
|
} | null) => ((T["type"] extends keyof ElementShapes ? ElementShapes[T["type"]] | undefined : ElementShape | undefined) & {}) | (T["type"] extends keyof ElementShapes ? ElementShapes[T["type"]] : Drawable | null);
|
|
28
28
|
}
|
|
29
29
|
export declare const generateRoughOptions: (element: ExcalidrawElement, continuousPath?: boolean, isDarkMode?: boolean) => Options;
|
|
30
|
-
export declare const generateLinearCollisionShape: (element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement) => {
|
|
30
|
+
export declare const generateLinearCollisionShape: (element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement, elementsMap: ElementsMap) => {
|
|
31
31
|
op: string;
|
|
32
32
|
data: number[];
|
|
33
33
|
}[];
|
|
@@ -31,7 +31,7 @@ export declare const suppportsHorizontalAlign: (selectedElements: NonDeletedExca
|
|
|
31
31
|
declare const VALID_CONTAINER_TYPES: Set<string>;
|
|
32
32
|
export declare const isValidTextContainer: (element: {
|
|
33
33
|
type: ExcalidrawElementType;
|
|
34
|
-
}) =>
|
|
34
|
+
}) => element is ExcalidrawTextContainer;
|
|
35
35
|
export declare const computeContainerDimensionForBoundText: (dimension: number, containerType: ExtractSetType<typeof VALID_CONTAINER_TYPES>) => number;
|
|
36
36
|
export declare const getBoundTextMaxWidth: (container: ExcalidrawElement, boundTextElement: ExcalidrawTextElement | null) => number;
|
|
37
37
|
export declare const getBoundTextMaxHeight: (container: ExcalidrawElement, boundTextElement: ExcalidrawTextElementWithContainer) => number;
|
|
@@ -5,9 +5,35 @@ import type { FontString } from "./types";
|
|
|
5
5
|
export declare const containsCJK: (text: string) => boolean;
|
|
6
6
|
/**
|
|
7
7
|
* Breaks the line into the tokens based on the found line break opporutnities.
|
|
8
|
+
*
|
|
9
|
+
* Note: tokenization normalizes to NFC first so decomposed graphemes are treated as
|
|
10
|
+
* their composed variants for wrapping. Any code that needs exact source offsets should
|
|
11
|
+
* keep in mind that this assumes the input text is already NFC-normalized.
|
|
8
12
|
*/
|
|
9
13
|
export declare const parseTokens: (line: string) => string[];
|
|
10
14
|
/**
|
|
11
15
|
* Wraps the original text into the lines based on the given width.
|
|
16
|
+
*
|
|
17
|
+
* This is a convenience adapter over `getWrappedTextLines()` for call sites
|
|
18
|
+
* that only need the rendered wrapped string and not the source offsets.
|
|
12
19
|
*/
|
|
13
20
|
export declare const wrapText: (text: string, font: FontString, maxWidth: number) => string;
|
|
21
|
+
/**
|
|
22
|
+
* A single rendered visual line produced from the original text.
|
|
23
|
+
*
|
|
24
|
+
* `start` and `end` are end-exclusive code-unit offsets into the original text, and do
|
|
25
|
+
* not include synthetic soft line breaks inserted by this module. If trailing whitespace
|
|
26
|
+
* was trimmed away at a wrap boundary, `end` points to the last rendered character.
|
|
27
|
+
*/
|
|
28
|
+
export type WrappedTextLine = {
|
|
29
|
+
text: string;
|
|
30
|
+
start: number;
|
|
31
|
+
end: number;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Returns the rendered visual lines together with their source offsets.
|
|
35
|
+
*
|
|
36
|
+
* This is the source-of-truth wrapping pipeline for callers that need more than the
|
|
37
|
+
* final wrapped string, for example caret placement or future editor/rich-text mapping.
|
|
38
|
+
*/
|
|
39
|
+
export declare const getWrappedTextLines: (text: string, font: FontString, maxWidth: number) => WrappedTextLine[];
|
|
@@ -208,7 +208,10 @@ export type PointsPositionUpdates = Map<Index, {
|
|
|
208
208
|
point: LocalPoint;
|
|
209
209
|
isDragging?: boolean;
|
|
210
210
|
}>;
|
|
211
|
-
export type
|
|
211
|
+
export type CardinalityArrowhead = "cardinality_one" | "cardinality_many" | "cardinality_one_or_many" | "cardinality_exactly_one" | "cardinality_zero_or_one" | "cardinality_zero_or_many";
|
|
212
|
+
export type ArrowheadLegacy = "dot" | "crowfoot_one" | "crowfoot_many" | "crowfoot_one_or_many";
|
|
213
|
+
export type Arrowhead = "arrow" | "bar" | "circle" | "circle_outline" | "triangle" | "triangle_outline" | "diamond" | "diamond_outline" | CardinalityArrowhead;
|
|
214
|
+
export type AnyArrowhead = Arrowhead | ArrowheadLegacy;
|
|
212
215
|
export type ExcalidrawLinearElement = _ExcalidrawElementBase & Readonly<{
|
|
213
216
|
type: "line" | "arrow";
|
|
214
217
|
points: readonly LocalPoint[];
|
|
@@ -8,7 +8,7 @@ import type { ElementsMap, ExcalidrawArrowElement, ExcalidrawBindableElement, Ex
|
|
|
8
8
|
* @param element The linear element to deconstruct
|
|
9
9
|
* @returns The rotated in components.
|
|
10
10
|
*/
|
|
11
|
-
export declare function deconstructLinearOrFreeDrawElement(element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
|
|
11
|
+
export declare function deconstructLinearOrFreeDrawElement(element: ExcalidrawLinearElement | ExcalidrawFreeDrawElement, elementsMap: ElementsMap): [LineSegment<GlobalPoint>[], Curve<GlobalPoint>[]];
|
|
12
12
|
/**
|
|
13
13
|
* Get the building components of a rectanguloid element in the form of
|
|
14
14
|
* line segments and curves **unrotated**.
|
|
@@ -42,7 +42,7 @@ export declare const actionAddToLibrary: {
|
|
|
42
42
|
};
|
|
43
43
|
editingFrame: string | null;
|
|
44
44
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
45
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
45
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
46
46
|
activeTool: {
|
|
47
47
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
48
48
|
locked: boolean;
|
|
@@ -197,7 +197,7 @@ export declare const actionAddToLibrary: {
|
|
|
197
197
|
};
|
|
198
198
|
editingFrame: string | null;
|
|
199
199
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
200
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
200
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
201
201
|
activeTool: {
|
|
202
202
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
203
203
|
locked: boolean;
|
|
@@ -357,7 +357,7 @@ export declare const actionAddToLibrary: {
|
|
|
357
357
|
};
|
|
358
358
|
editingFrame: string | null;
|
|
359
359
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
360
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
360
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
361
361
|
activeTool: {
|
|
362
362
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
363
363
|
locked: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement } from "@excalidraw/element/types";
|
|
2
2
|
import type { Mutable } from "@excalidraw/common/utility-types";
|
|
3
3
|
import type { AppState } from "../types";
|
|
4
4
|
export declare const actionUnbindText: {
|
|
@@ -62,7 +62,7 @@ export declare const actionBindText: {
|
|
|
62
62
|
};
|
|
63
63
|
editingFrame: string | null;
|
|
64
64
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
65
|
-
editingTextElement:
|
|
65
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
66
66
|
activeTool: {
|
|
67
67
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
68
68
|
locked: boolean;
|
|
@@ -234,7 +234,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
234
234
|
};
|
|
235
235
|
editingFrame: string | null;
|
|
236
236
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
237
|
-
editingTextElement:
|
|
237
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
238
238
|
activeTool: {
|
|
239
239
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
240
240
|
locked: boolean;
|
|
@@ -70,7 +70,7 @@ export declare const actionClearCanvas: {
|
|
|
70
70
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
71
71
|
editingFrame: string | null;
|
|
72
72
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
73
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
73
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
74
74
|
preferredSelectionTool: {
|
|
75
75
|
type: "selection" | "lasso";
|
|
76
76
|
initialized: boolean;
|
|
@@ -256,7 +256,7 @@ export declare const actionResetZoom: {
|
|
|
256
256
|
};
|
|
257
257
|
editingFrame: string | null;
|
|
258
258
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
259
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
259
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
260
260
|
activeTool: {
|
|
261
261
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
262
262
|
locked: boolean;
|
|
@@ -433,7 +433,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
433
433
|
};
|
|
434
434
|
editingFrame: string | null;
|
|
435
435
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
436
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
436
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
437
437
|
activeTool: {
|
|
438
438
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
439
439
|
locked: boolean;
|
|
@@ -606,7 +606,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
606
606
|
};
|
|
607
607
|
editingFrame: string | null;
|
|
608
608
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
609
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
609
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
610
610
|
activeTool: {
|
|
611
611
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
612
612
|
locked: boolean;
|
|
@@ -776,7 +776,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
776
776
|
};
|
|
777
777
|
editingFrame: string | null;
|
|
778
778
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
779
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
779
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
780
780
|
activeTool: {
|
|
781
781
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
782
782
|
locked: boolean;
|
|
@@ -950,7 +950,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
950
950
|
};
|
|
951
951
|
editingFrame: string | null;
|
|
952
952
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
953
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
953
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
954
954
|
activeTool: {
|
|
955
955
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
956
956
|
locked: boolean;
|
|
@@ -1125,7 +1125,7 @@ export declare const actionZoomToFit: {
|
|
|
1125
1125
|
};
|
|
1126
1126
|
editingFrame: string | null;
|
|
1127
1127
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1128
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1128
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1129
1129
|
activeTool: {
|
|
1130
1130
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1131
1131
|
locked: boolean;
|
|
@@ -1300,7 +1300,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1300
1300
|
};
|
|
1301
1301
|
editingFrame: string | null;
|
|
1302
1302
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1303
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1303
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1304
1304
|
preferredSelectionTool: {
|
|
1305
1305
|
type: "selection" | "lasso";
|
|
1306
1306
|
initialized: boolean;
|
|
@@ -1466,7 +1466,7 @@ export declare const actionToggleLassoTool: {
|
|
|
1466
1466
|
};
|
|
1467
1467
|
editingFrame: string | null;
|
|
1468
1468
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1469
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1469
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1470
1470
|
preferredSelectionTool: {
|
|
1471
1471
|
type: "selection" | "lasso";
|
|
1472
1472
|
initialized: boolean;
|
|
@@ -1631,7 +1631,7 @@ export declare const actionToggleHandTool: {
|
|
|
1631
1631
|
};
|
|
1632
1632
|
editingFrame: string | null;
|
|
1633
1633
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1634
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
1634
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1635
1635
|
preferredSelectionTool: {
|
|
1636
1636
|
type: "selection" | "lasso";
|
|
1637
1637
|
initialized: boolean;
|
|
@@ -43,7 +43,7 @@ export declare const actionPaste: {
|
|
|
43
43
|
};
|
|
44
44
|
editingFrame: string | null;
|
|
45
45
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
46
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
46
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
47
47
|
activeTool: {
|
|
48
48
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
49
|
locked: boolean;
|
|
@@ -253,7 +253,7 @@ export declare const actionCopyAsPng: {
|
|
|
253
253
|
};
|
|
254
254
|
editingFrame: string | null;
|
|
255
255
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
256
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
256
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
257
257
|
activeTool: {
|
|
258
258
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
259
259
|
locked: boolean;
|
|
@@ -44,7 +44,7 @@ export declare const actionToggleCropEditor: {
|
|
|
44
44
|
};
|
|
45
45
|
editingFrame: string | null;
|
|
46
46
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
47
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
48
48
|
activeTool: {
|
|
49
49
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
50
50
|
locked: boolean;
|
|
@@ -45,7 +45,7 @@ export declare const actionDeleteSelected: {
|
|
|
45
45
|
};
|
|
46
46
|
editingFrame: string | null;
|
|
47
47
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
48
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
48
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
49
49
|
activeTool: {
|
|
50
50
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
51
|
locked: boolean;
|
|
@@ -238,7 +238,7 @@ export declare const actionDeleteSelected: {
|
|
|
238
238
|
};
|
|
239
239
|
editingFrame: string | null;
|
|
240
240
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
241
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
241
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
242
242
|
activeTool: {
|
|
243
243
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
244
244
|
locked: boolean;
|
|
@@ -404,7 +404,7 @@ export declare const actionDeleteSelected: {
|
|
|
404
404
|
};
|
|
405
405
|
editingFrame: string | null;
|
|
406
406
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
407
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
407
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
408
408
|
preferredSelectionTool: {
|
|
409
409
|
type: "selection" | "lasso";
|
|
410
410
|
initialized: boolean;
|
|
@@ -73,7 +73,7 @@ export declare const actionLinkToElement: {
|
|
|
73
73
|
};
|
|
74
74
|
editingFrame: string | null;
|
|
75
75
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
76
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
76
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
77
77
|
activeTool: {
|
|
78
78
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
79
79
|
locked: boolean;
|
|
@@ -55,7 +55,7 @@ export declare const actionToggleElementLock: {
|
|
|
55
55
|
};
|
|
56
56
|
editingFrame: string | null;
|
|
57
57
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
58
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
58
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
59
59
|
activeTool: {
|
|
60
60
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
61
61
|
locked: boolean;
|
|
@@ -226,7 +226,7 @@ export declare const actionUnlockAllElements: {
|
|
|
226
226
|
};
|
|
227
227
|
editingFrame: string | null;
|
|
228
228
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
229
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
229
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
230
230
|
activeTool: {
|
|
231
231
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
232
232
|
locked: boolean;
|
|
@@ -46,7 +46,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
46
46
|
};
|
|
47
47
|
editingFrame: string | null;
|
|
48
48
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
49
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
49
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
50
50
|
preferredSelectionTool: {
|
|
51
51
|
type: "selection" | "lasso";
|
|
52
52
|
initialized: boolean;
|
|
@@ -61,7 +61,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
61
61
|
};
|
|
62
62
|
editingFrame: string | null;
|
|
63
63
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
64
|
-
editingTextElement:
|
|
64
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
65
65
|
activeTool: {
|
|
66
66
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
67
67
|
locked: boolean;
|
|
@@ -202,6 +202,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
202
202
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
203
203
|
toast: {
|
|
204
204
|
message: string;
|
|
205
|
+
duration: number;
|
|
205
206
|
};
|
|
206
207
|
contextMenu: {
|
|
207
208
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -236,7 +237,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
236
237
|
};
|
|
237
238
|
editingFrame: string | null;
|
|
238
239
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
239
|
-
editingTextElement:
|
|
240
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
240
241
|
activeTool: {
|
|
241
242
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
242
243
|
locked: boolean;
|
|
@@ -394,7 +395,7 @@ export declare const actionLoadScene: {
|
|
|
394
395
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
395
396
|
editingFrame: string | null;
|
|
396
397
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
397
|
-
editingTextElement:
|
|
398
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
398
399
|
activeTool: {
|
|
399
400
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
400
401
|
locked: boolean;
|
|
@@ -546,7 +547,7 @@ export declare const actionLoadScene: {
|
|
|
546
547
|
};
|
|
547
548
|
editingFrame: string | null;
|
|
548
549
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
549
|
-
editingTextElement:
|
|
550
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
550
551
|
activeTool: {
|
|
551
552
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
552
553
|
locked: boolean;
|
|
@@ -43,7 +43,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
43
43
|
};
|
|
44
44
|
editingFrame: string | null;
|
|
45
45
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
46
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
46
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
47
47
|
activeTool: {
|
|
48
48
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
49
|
locked: boolean;
|
|
@@ -219,7 +219,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
219
219
|
};
|
|
220
220
|
editingFrame: string | null;
|
|
221
221
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
222
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
222
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
223
223
|
activeTool: {
|
|
224
224
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
225
225
|
locked: boolean;
|
|
@@ -393,7 +393,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
393
393
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
394
394
|
editingFrame: string | null;
|
|
395
395
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
396
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
396
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
397
397
|
activeTool: {
|
|
398
398
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
399
399
|
locked: boolean;
|
|
@@ -572,7 +572,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
572
572
|
};
|
|
573
573
|
editingFrame: string | null;
|
|
574
574
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
575
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
575
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
576
576
|
preferredSelectionTool: {
|
|
577
577
|
type: "selection" | "lasso";
|
|
578
578
|
initialized: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
2
|
import type { AppClassProperties, AppState } from "../types";
|
|
3
3
|
export declare const actionGroup: {
|
|
4
4
|
name: "group";
|
|
@@ -49,7 +49,7 @@ export declare const actionGroup: {
|
|
|
49
49
|
};
|
|
50
50
|
editingFrame: string | null;
|
|
51
51
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
52
|
-
editingTextElement:
|
|
52
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
53
53
|
activeTool: {
|
|
54
54
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
55
55
|
locked: boolean;
|
|
@@ -224,7 +224,7 @@ export declare const actionUngroup: {
|
|
|
224
224
|
};
|
|
225
225
|
editingFrame: string | null;
|
|
226
226
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
227
|
-
editingTextElement:
|
|
227
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
228
228
|
activeTool: {
|
|
229
229
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
230
230
|
locked: boolean;
|
|
@@ -76,7 +76,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
76
76
|
};
|
|
77
77
|
editingFrame: string | null;
|
|
78
78
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
79
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
79
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
80
80
|
activeTool: {
|
|
81
81
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
82
82
|
locked: boolean;
|
|
@@ -40,7 +40,7 @@ export declare const actionLink: {
|
|
|
40
40
|
};
|
|
41
41
|
editingFrame: string | null;
|
|
42
42
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
43
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
43
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
44
44
|
activeTool: {
|
|
45
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
46
|
locked: boolean;
|
|
@@ -47,7 +47,7 @@ export declare const actionShortcuts: {
|
|
|
47
47
|
};
|
|
48
48
|
editingFrame: string | null;
|
|
49
49
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
50
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
50
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
51
51
|
activeTool: {
|
|
52
52
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
53
53
|
locked: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LinearElementEditor } from "@excalidraw/element";
|
|
2
|
-
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
|
|
2
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
4
4
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
5
|
-
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T,
|
|
5
|
+
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, elementPredicate: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
6
6
|
export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
|
|
7
7
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
8
8
|
};
|
|
@@ -69,7 +69,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
69
69
|
};
|
|
70
70
|
editingFrame: string | null;
|
|
71
71
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
72
|
-
editingTextElement:
|
|
72
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
73
73
|
activeTool: {
|
|
74
74
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
75
75
|
locked: boolean;
|
|
@@ -240,7 +240,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
240
240
|
};
|
|
241
241
|
editingFrame: string | null;
|
|
242
242
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
243
|
-
editingTextElement:
|
|
243
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
244
244
|
activeTool: {
|
|
245
245
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
246
246
|
locked: boolean;
|
|
@@ -47,7 +47,7 @@ export declare const actionSelectAll: {
|
|
|
47
47
|
};
|
|
48
48
|
editingFrame: string | null;
|
|
49
49
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
50
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
50
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
51
51
|
activeTool: {
|
|
52
52
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
53
53
|
locked: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ExcalidrawTextElement } from "@excalidraw/element/types";
|
|
1
2
|
export declare let copiedStyles: string;
|
|
2
3
|
export declare const actionCopyStyles: {
|
|
3
4
|
name: "copyStyles";
|
|
@@ -44,7 +45,7 @@ export declare const actionCopyStyles: {
|
|
|
44
45
|
};
|
|
45
46
|
editingFrame: string | null;
|
|
46
47
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
|
-
editingTextElement:
|
|
48
|
+
editingTextElement: ExcalidrawTextElement | null;
|
|
48
49
|
activeTool: {
|
|
49
50
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
50
51
|
locked: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
2
|
export declare const actionTextAutoResize: {
|
|
3
3
|
name: "autoResize";
|
|
4
4
|
label: string;
|
|
@@ -6,8 +6,8 @@ export declare const actionTextAutoResize: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
predicate: (elements: readonly
|
|
10
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>,
|
|
9
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: unknown) => boolean;
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, targetElement: unknown) => {
|
|
11
11
|
appState: Readonly<import("../types").AppState>;
|
|
12
12
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
13
13
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -41,7 +41,7 @@ export declare const actionToggleArrowBinding: {
|
|
|
41
41
|
};
|
|
42
42
|
editingFrame: string | null;
|
|
43
43
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
44
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
44
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
45
45
|
activeTool: {
|
|
46
46
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
47
|
locked: boolean;
|