@excalidraw/math 0.18.0-ec07091 → 0.18.0-f2600fe
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/types/common/src/constants.d.ts +3 -16
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/index.d.ts +1 -0
- package/dist/types/common/src/utils.d.ts +0 -2
- package/dist/types/element/src/resizeTest.d.ts +5 -4
- package/dist/types/element/src/transformHandles.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +18 -9
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +78 -39
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +36 -18
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +19 -10
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionExport.d.ts +54 -27
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionFrame.d.ts +24 -12
- package/dist/types/excalidraw/actions/actionGroup.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionLink.d.ts +4 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -372
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionProperties.d.ts +91 -46
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionStyles.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -3
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -4
- package/dist/types/excalidraw/actions/index.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +5 -2
- package/dist/types/excalidraw/components/Actions.d.ts +13 -3
- package/dist/types/excalidraw/components/App.d.ts +19 -17
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +5 -1
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +13 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
- package/dist/types/excalidraw/index.d.ts +2 -3
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +3 -3
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/types.d.ts +16 -17
- package/package.json +2 -2
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import type { ExcalidrawElement, FontFamilyValues } from "@excalidraw/element/types";
|
|
2
2
|
import type { AppProps, AppState } from "@excalidraw/excalidraw/types";
|
|
3
|
-
export declare const isDarwin: boolean;
|
|
4
|
-
export declare const isWindows: boolean;
|
|
5
|
-
export declare const isAndroid: boolean;
|
|
6
|
-
export declare const isFirefox: boolean;
|
|
7
|
-
export declare const isChrome: boolean;
|
|
8
|
-
export declare const isSafari: boolean;
|
|
9
|
-
export declare const isIOS: boolean;
|
|
10
|
-
export declare const isBrave: () => boolean;
|
|
11
|
-
export declare const isMobile: boolean;
|
|
12
3
|
export declare const supportsResizeObserver: boolean;
|
|
13
4
|
export declare const APP_NAME = "Excalidraw";
|
|
14
5
|
export declare const TEXT_AUTOWRAP_THRESHOLD = 36;
|
|
@@ -239,13 +230,6 @@ export declare const URL_HASH_KEYS: {
|
|
|
239
230
|
readonly addLibrary: "addLibrary";
|
|
240
231
|
};
|
|
241
232
|
export declare const DEFAULT_UI_OPTIONS: AppProps["UIOptions"];
|
|
242
|
-
export declare const MQ_MAX_MOBILE = 599;
|
|
243
|
-
export declare const MQ_MAX_WIDTH_LANDSCAPE = 1000;
|
|
244
|
-
export declare const MQ_MAX_HEIGHT_LANDSCAPE = 500;
|
|
245
|
-
export declare const MQ_MIN_TABLET: number;
|
|
246
|
-
export declare const MQ_MAX_TABLET = 1400;
|
|
247
|
-
export declare const MQ_MIN_WIDTH_DESKTOP = 1440;
|
|
248
|
-
export declare const MQ_RIGHT_SIDEBAR_MIN_WIDTH = 1229;
|
|
249
233
|
export declare const MAX_DECIMALS_FOR_SVG_EXPORT = 2;
|
|
250
234
|
export declare const EXPORT_SCALES: number[];
|
|
251
235
|
export declare const DEFAULT_EXPORT_PADDING = 10;
|
|
@@ -358,3 +342,6 @@ export declare enum UserIdleState {
|
|
|
358
342
|
*/
|
|
359
343
|
export declare const LINE_POLYGON_POINT_MERGE_DISTANCE = 20;
|
|
360
344
|
export declare const DOUBLE_TAP_POSITION_THRESHOLD = 35;
|
|
345
|
+
export declare const MOBILE_ACTION_BUTTON_BG: {
|
|
346
|
+
readonly background: "var(--mobile-action-button-bg)";
|
|
347
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type StylesPanelMode = "compact" | "full" | "mobile";
|
|
2
|
+
export type EditorInterface = Readonly<{
|
|
3
|
+
formFactor: "phone" | "tablet" | "desktop";
|
|
4
|
+
desktopUIMode: "compact" | "full";
|
|
5
|
+
userAgent: Readonly<{
|
|
6
|
+
isMobileDevice: boolean;
|
|
7
|
+
platform: "ios" | "android" | "other" | "unknown";
|
|
8
|
+
}>;
|
|
9
|
+
isTouchScreen: boolean;
|
|
10
|
+
canFitSidebar: boolean;
|
|
11
|
+
isLandscape: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const MQ_MAX_MOBILE = 599;
|
|
14
|
+
export declare const MQ_MAX_WIDTH_LANDSCAPE = 1000;
|
|
15
|
+
export declare const MQ_MAX_HEIGHT_LANDSCAPE = 500;
|
|
16
|
+
export declare const MQ_MIN_TABLET: number;
|
|
17
|
+
export declare const MQ_MAX_TABLET = 1400;
|
|
18
|
+
export declare const MQ_MIN_WIDTH_DESKTOP = 1440;
|
|
19
|
+
export declare const MQ_RIGHT_SIDEBAR_MIN_WIDTH = 1229;
|
|
20
|
+
export declare const isDarwin: boolean;
|
|
21
|
+
export declare const isWindows: boolean;
|
|
22
|
+
export declare const isAndroid: boolean;
|
|
23
|
+
export declare const isFirefox: boolean;
|
|
24
|
+
export declare const isChrome: boolean;
|
|
25
|
+
export declare const isSafari: boolean;
|
|
26
|
+
export declare const isIOS: boolean;
|
|
27
|
+
export declare const isBrave: () => boolean;
|
|
28
|
+
export declare const isMobileBreakpoint: (width: number, height: number) => boolean;
|
|
29
|
+
export declare const isTabletBreakpoint: (editorWidth: number, editorHeight: number) => boolean;
|
|
30
|
+
export declare const getFormFactor: (editorWidth: number, editorHeight: number) => EditorInterface["formFactor"];
|
|
31
|
+
export declare const deriveStylesPanelMode: (editorInterface: EditorInterface) => StylesPanelMode;
|
|
32
|
+
export declare const createUserAgentDescriptor: (userAgentString: string) => EditorInterface["userAgent"];
|
|
33
|
+
export declare const loadDesktopUIModePreference: () => "compact" | "full" | null;
|
|
34
|
+
export declare const setDesktopUIMode: (mode: EditorInterface["desktopUIMode"]) => "compact" | "full" | undefined;
|
|
@@ -96,7 +96,6 @@ export declare const updateActiveTool: (appState: Pick<AppState, "activeTool">,
|
|
|
96
96
|
export declare const isFullScreen: () => boolean;
|
|
97
97
|
export declare const allowFullScreen: () => Promise<void>;
|
|
98
98
|
export declare const exitFullScreen: () => Promise<void>;
|
|
99
|
-
export declare const getShortcutKey: (shortcut: string) => string;
|
|
100
99
|
export declare const viewportCoordsToSceneCoords: ({ clientX, clientY }: {
|
|
101
100
|
clientX: number;
|
|
102
101
|
clientY: number;
|
|
@@ -266,5 +265,4 @@ export declare const castArray: <T>(value: T | T[]) => T[];
|
|
|
266
265
|
export declare const isReadonlyArray: (value?: any) => value is readonly any[];
|
|
267
266
|
export declare const sizeOf: (value: readonly unknown[] | Readonly<Map<string, unknown>> | Readonly<Record<string, unknown>> | ReadonlySet<unknown>) => number;
|
|
268
267
|
export declare const reduceToCommonValue: <T, R = T>(collection: ReadonlySet<T> | readonly T[], getValue?: ((item: T) => R) | undefined) => R | null;
|
|
269
|
-
export declare const isMobileOrTablet: () => boolean;
|
|
270
268
|
export {};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import { type EditorInterface } from "@excalidraw/common";
|
|
1
2
|
import type { GlobalPoint, LocalPoint } from "@excalidraw/math";
|
|
2
|
-
import type { AppState,
|
|
3
|
+
import type { AppState, Zoom } from "@excalidraw/excalidraw/types";
|
|
3
4
|
import type { Bounds } from "./bounds";
|
|
4
5
|
import type { MaybeTransformHandleType } from "./transformHandles";
|
|
5
6
|
import type { ExcalidrawElement, PointerType, NonDeletedExcalidrawElement, ElementsMap } from "./types";
|
|
6
|
-
export declare const resizeTest: <Point extends GlobalPoint | LocalPoint>(element: NonDeletedExcalidrawElement, elementsMap: ElementsMap, appState: AppState, x: number, y: number, zoom: Zoom, pointerType: PointerType,
|
|
7
|
-
export declare const getElementWithTransformHandleType: (elements: readonly NonDeletedExcalidrawElement[], appState: AppState, scenePointerX: number, scenePointerY: number, zoom: Zoom, pointerType: PointerType, elementsMap: ElementsMap,
|
|
7
|
+
export declare const resizeTest: <Point extends GlobalPoint | LocalPoint>(element: NonDeletedExcalidrawElement, elementsMap: ElementsMap, appState: AppState, x: number, y: number, zoom: Zoom, pointerType: PointerType, editorInterface: EditorInterface) => MaybeTransformHandleType;
|
|
8
|
+
export declare const getElementWithTransformHandleType: (elements: readonly NonDeletedExcalidrawElement[], appState: AppState, scenePointerX: number, scenePointerY: number, zoom: Zoom, pointerType: PointerType, elementsMap: ElementsMap, editorInterface: EditorInterface) => {
|
|
8
9
|
element: NonDeletedExcalidrawElement;
|
|
9
10
|
transformHandleType: MaybeTransformHandleType;
|
|
10
11
|
} | null;
|
|
11
|
-
export declare const getTransformHandleTypeFromCoords: <Point extends GlobalPoint | LocalPoint>([x1, y1, x2, y2]: Bounds, scenePointerX: number, scenePointerY: number, zoom: Zoom, pointerType: PointerType,
|
|
12
|
+
export declare const getTransformHandleTypeFromCoords: <Point extends GlobalPoint | LocalPoint>([x1, y1, x2, y2]: Bounds, scenePointerX: number, scenePointerY: number, zoom: Zoom, pointerType: PointerType, editorInterface: EditorInterface) => MaybeTransformHandleType;
|
|
12
13
|
export declare const getCursorForResizingElement: (resizingElement: {
|
|
13
14
|
element?: ExcalidrawElement;
|
|
14
15
|
transformHandleType: MaybeTransformHandleType;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type EditorInterface } from "@excalidraw/common";
|
|
1
2
|
import type { Radians } from "@excalidraw/math";
|
|
2
|
-
import type {
|
|
3
|
+
import type { InteractiveCanvasAppState, Zoom } from "@excalidraw/excalidraw/types";
|
|
3
4
|
import type { Bounds } from "./bounds";
|
|
4
5
|
import type { ElementsMap, ExcalidrawElement, NonDeletedExcalidrawElement, PointerType } from "./types";
|
|
5
6
|
export type TransformHandleDirection = "n" | "s" | "w" | "e" | "nw" | "ne" | "sw" | "se";
|
|
@@ -28,8 +29,8 @@ export declare const OMIT_SIDES_FOR_FRAME: {
|
|
|
28
29
|
w: boolean;
|
|
29
30
|
rotation: boolean;
|
|
30
31
|
};
|
|
31
|
-
export declare const canResizeFromSides: (
|
|
32
|
-
export declare const
|
|
32
|
+
export declare const canResizeFromSides: (editorInterface: EditorInterface) => boolean;
|
|
33
|
+
export declare const getOmitSidesForEditorInterface: (editorInterface: EditorInterface) => {};
|
|
33
34
|
export declare const getTransformHandlesFromCoords: ([x1, y1, x2, y2, cx, cy]: [number, number, number, number, number, number], angle: Radians, zoom: Zoom, pointerType: PointerType, omitSides?: {
|
|
34
35
|
s?: boolean | undefined;
|
|
35
36
|
n?: boolean | undefined;
|
|
@@ -52,4 +53,4 @@ export declare const getTransformHandles: (element: ExcalidrawElement, zoom: Zoo
|
|
|
52
53
|
se?: boolean | undefined;
|
|
53
54
|
rotation?: boolean | undefined;
|
|
54
55
|
}) => TransformHandles;
|
|
55
|
-
export declare const
|
|
56
|
+
export declare const hasBoundingBox: (elements: readonly NonDeletedExcalidrawElement[], appState: InteractiveCanvasAppState, editorInterface: EditorInterface) => boolean;
|
|
@@ -44,6 +44,10 @@ export declare const actionAddToLibrary: {
|
|
|
44
44
|
locked: boolean;
|
|
45
45
|
fromSelection: boolean;
|
|
46
46
|
} & import("../types").ActiveTool;
|
|
47
|
+
preferredSelectionTool: {
|
|
48
|
+
type: "selection" | "lasso";
|
|
49
|
+
initialized: boolean;
|
|
50
|
+
};
|
|
47
51
|
penMode: boolean;
|
|
48
52
|
penDetected: boolean;
|
|
49
53
|
exportBackground: boolean;
|
|
@@ -76,7 +80,7 @@ export declare const actionAddToLibrary: {
|
|
|
76
80
|
zoom: Readonly<{
|
|
77
81
|
value: import("../types").NormalizedZoomValue;
|
|
78
82
|
}>;
|
|
79
|
-
openMenu: "canvas" |
|
|
83
|
+
openMenu: "canvas" | null;
|
|
80
84
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
81
85
|
openSidebar: {
|
|
82
86
|
name: string;
|
|
@@ -153,7 +157,7 @@ export declare const actionAddToLibrary: {
|
|
|
153
157
|
shown: true;
|
|
154
158
|
data: import("../charts").Spreadsheet;
|
|
155
159
|
};
|
|
156
|
-
showHyperlinkPopup: false | "
|
|
160
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
157
161
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
158
162
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
159
163
|
originSnapOffset: {
|
|
@@ -173,7 +177,6 @@ export declare const actionAddToLibrary: {
|
|
|
173
177
|
lockedMultiSelections: {
|
|
174
178
|
[groupId: string]: true;
|
|
175
179
|
};
|
|
176
|
-
stylesPanelMode: "compact" | "full";
|
|
177
180
|
};
|
|
178
181
|
} | {
|
|
179
182
|
captureUpdate: "EVENTUALLY";
|
|
@@ -212,6 +215,10 @@ export declare const actionAddToLibrary: {
|
|
|
212
215
|
locked: boolean;
|
|
213
216
|
fromSelection: boolean;
|
|
214
217
|
} & import("../types").ActiveTool;
|
|
218
|
+
preferredSelectionTool: {
|
|
219
|
+
type: "selection" | "lasso";
|
|
220
|
+
initialized: boolean;
|
|
221
|
+
};
|
|
215
222
|
penMode: boolean;
|
|
216
223
|
penDetected: boolean;
|
|
217
224
|
exportBackground: boolean;
|
|
@@ -244,7 +251,7 @@ export declare const actionAddToLibrary: {
|
|
|
244
251
|
zoom: Readonly<{
|
|
245
252
|
value: import("../types").NormalizedZoomValue;
|
|
246
253
|
}>;
|
|
247
|
-
openMenu: "canvas" |
|
|
254
|
+
openMenu: "canvas" | null;
|
|
248
255
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
249
256
|
openSidebar: {
|
|
250
257
|
name: string;
|
|
@@ -326,7 +333,7 @@ export declare const actionAddToLibrary: {
|
|
|
326
333
|
shown: true;
|
|
327
334
|
data: import("../charts").Spreadsheet;
|
|
328
335
|
};
|
|
329
|
-
showHyperlinkPopup: false | "
|
|
336
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
330
337
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
331
338
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
332
339
|
originSnapOffset: {
|
|
@@ -346,7 +353,6 @@ export declare const actionAddToLibrary: {
|
|
|
346
353
|
lockedMultiSelections: {
|
|
347
354
|
[groupId: string]: true;
|
|
348
355
|
};
|
|
349
|
-
stylesPanelMode: "compact" | "full";
|
|
350
356
|
};
|
|
351
357
|
}> | {
|
|
352
358
|
captureUpdate: "EVENTUALLY";
|
|
@@ -385,6 +391,10 @@ export declare const actionAddToLibrary: {
|
|
|
385
391
|
locked: boolean;
|
|
386
392
|
fromSelection: boolean;
|
|
387
393
|
} & import("../types").ActiveTool;
|
|
394
|
+
preferredSelectionTool: {
|
|
395
|
+
type: "selection" | "lasso";
|
|
396
|
+
initialized: boolean;
|
|
397
|
+
};
|
|
388
398
|
penMode: boolean;
|
|
389
399
|
penDetected: boolean;
|
|
390
400
|
exportBackground: boolean;
|
|
@@ -417,7 +427,7 @@ export declare const actionAddToLibrary: {
|
|
|
417
427
|
zoom: Readonly<{
|
|
418
428
|
value: import("../types").NormalizedZoomValue;
|
|
419
429
|
}>;
|
|
420
|
-
openMenu: "canvas" |
|
|
430
|
+
openMenu: "canvas" | null;
|
|
421
431
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
422
432
|
openSidebar: {
|
|
423
433
|
name: string;
|
|
@@ -499,7 +509,7 @@ export declare const actionAddToLibrary: {
|
|
|
499
509
|
shown: true;
|
|
500
510
|
data: import("../charts").Spreadsheet;
|
|
501
511
|
};
|
|
502
|
-
showHyperlinkPopup: false | "
|
|
512
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
503
513
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
504
514
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
505
515
|
originSnapOffset: {
|
|
@@ -519,7 +529,6 @@ export declare const actionAddToLibrary: {
|
|
|
519
529
|
lockedMultiSelections: {
|
|
520
530
|
[groupId: string]: true;
|
|
521
531
|
};
|
|
522
|
-
stylesPanelMode: "compact" | "full";
|
|
523
532
|
};
|
|
524
533
|
};
|
|
525
534
|
label: string;
|
|
@@ -64,6 +64,10 @@ export declare const actionBindText: {
|
|
|
64
64
|
locked: boolean;
|
|
65
65
|
fromSelection: boolean;
|
|
66
66
|
} & import("../types").ActiveTool;
|
|
67
|
+
preferredSelectionTool: {
|
|
68
|
+
type: "selection" | "lasso";
|
|
69
|
+
initialized: boolean;
|
|
70
|
+
};
|
|
67
71
|
penMode: boolean;
|
|
68
72
|
penDetected: boolean;
|
|
69
73
|
exportBackground: boolean;
|
|
@@ -96,7 +100,7 @@ export declare const actionBindText: {
|
|
|
96
100
|
zoom: Readonly<{
|
|
97
101
|
value: import("../types").NormalizedZoomValue;
|
|
98
102
|
}>;
|
|
99
|
-
openMenu: "canvas" |
|
|
103
|
+
openMenu: "canvas" | null;
|
|
100
104
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
101
105
|
openSidebar: {
|
|
102
106
|
name: string;
|
|
@@ -175,7 +179,7 @@ export declare const actionBindText: {
|
|
|
175
179
|
shown: true;
|
|
176
180
|
data: import("../charts").Spreadsheet;
|
|
177
181
|
};
|
|
178
|
-
showHyperlinkPopup: false | "
|
|
182
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
179
183
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
180
184
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
181
185
|
originSnapOffset: {
|
|
@@ -195,7 +199,6 @@ export declare const actionBindText: {
|
|
|
195
199
|
lockedMultiSelections: {
|
|
196
200
|
[groupId: string]: true;
|
|
197
201
|
};
|
|
198
|
-
stylesPanelMode: "compact" | "full";
|
|
199
202
|
};
|
|
200
203
|
captureUpdate: "IMMEDIATELY";
|
|
201
204
|
};
|
|
@@ -249,6 +252,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
249
252
|
locked: boolean;
|
|
250
253
|
fromSelection: boolean;
|
|
251
254
|
} & import("../types").ActiveTool;
|
|
255
|
+
preferredSelectionTool: {
|
|
256
|
+
type: "selection" | "lasso";
|
|
257
|
+
initialized: boolean;
|
|
258
|
+
};
|
|
252
259
|
penMode: boolean;
|
|
253
260
|
penDetected: boolean;
|
|
254
261
|
exportBackground: boolean;
|
|
@@ -281,7 +288,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
281
288
|
zoom: Readonly<{
|
|
282
289
|
value: import("../types").NormalizedZoomValue;
|
|
283
290
|
}>;
|
|
284
|
-
openMenu: "canvas" |
|
|
291
|
+
openMenu: "canvas" | null;
|
|
285
292
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
286
293
|
openSidebar: {
|
|
287
294
|
name: string;
|
|
@@ -360,7 +367,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
360
367
|
shown: true;
|
|
361
368
|
data: import("../charts").Spreadsheet;
|
|
362
369
|
};
|
|
363
|
-
showHyperlinkPopup: false | "
|
|
370
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
364
371
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
365
372
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
366
373
|
originSnapOffset: {
|
|
@@ -380,7 +387,6 @@ export declare const actionWrapTextInContainer: {
|
|
|
380
387
|
lockedMultiSelections: {
|
|
381
388
|
[groupId: string]: true;
|
|
382
389
|
};
|
|
383
|
-
stylesPanelMode: "compact" | "full";
|
|
384
390
|
};
|
|
385
391
|
captureUpdate: "IMMEDIATELY";
|
|
386
392
|
};
|