@excalidraw/math 0.18.0-7b8a5f54c → 0.18.0-8608d7b
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 +58 -61
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +1 -1
- package/dist/types/common/src/constants.d.ts +23 -4
- package/dist/types/common/src/utils.d.ts +3 -0
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +4 -4
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +4 -1
- package/dist/types/element/src/store.d.ts +3 -2
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +18 -3
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +12 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +81 -15
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +36 -6
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +18 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +12 -2
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionExport.d.ts +54 -9
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +12 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +24 -4
- package/dist/types/excalidraw/actions/actionGroup.d.ts +12 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +7 -2
- package/dist/types/excalidraw/actions/actionLink.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +18 -3
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +12 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +107 -23
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +6 -1
- 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 +4 -0
- package/dist/types/excalidraw/clipboard.d.ts +64 -1
- package/dist/types/excalidraw/components/Actions.d.ts +17 -3
- package/dist/types/excalidraw/components/App.d.ts +18 -11
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -0
- 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/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -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/PropertiesPopover.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- 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 -0
- package/dist/types/excalidraw/components/shapes.d.ts +129 -1
- package/dist/types/excalidraw/data/blob.d.ts +3 -7
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/types.d.ts +10 -1
- package/dist/types/math/src/segment.d.ts +1 -0
- package/package.json +2 -2
|
@@ -8,6 +8,7 @@ export declare const isChrome: boolean;
|
|
|
8
8
|
export declare const isSafari: boolean;
|
|
9
9
|
export declare const isIOS: boolean;
|
|
10
10
|
export declare const isBrave: () => boolean;
|
|
11
|
+
export declare const isMobile: boolean;
|
|
11
12
|
export declare const supportsResizeObserver: boolean;
|
|
12
13
|
export declare const APP_NAME = "Excalidraw";
|
|
13
14
|
export declare const TEXT_AUTOWRAP_THRESHOLD = 36;
|
|
@@ -86,10 +87,12 @@ export declare const ENV: {
|
|
|
86
87
|
PRODUCTION: string;
|
|
87
88
|
};
|
|
88
89
|
export declare const CLASSES: {
|
|
90
|
+
SIDEBAR: string;
|
|
89
91
|
SHAPE_ACTIONS_MENU: string;
|
|
90
92
|
ZOOM_ACTIONS: string;
|
|
91
93
|
SEARCH_MENU_INPUT_WRAPPER: string;
|
|
92
94
|
CONVERT_ELEMENT_TYPE_POPUP: string;
|
|
95
|
+
SHAPE_ACTIONS_THEME_SCOPE: string;
|
|
93
96
|
};
|
|
94
97
|
export declare const CJK_HAND_DRAWN_FALLBACK_FONT = "Xiaolai";
|
|
95
98
|
export declare const WINDOWS_EMOJI_FALLBACK_FONT = "Segoe UI Emoji";
|
|
@@ -175,6 +178,14 @@ export declare const IMAGE_MIME_TYPES: {
|
|
|
175
178
|
readonly avif: "image/avif";
|
|
176
179
|
readonly jfif: "image/jfif";
|
|
177
180
|
};
|
|
181
|
+
export declare const STRING_MIME_TYPES: {
|
|
182
|
+
readonly text: "text/plain";
|
|
183
|
+
readonly html: "text/html";
|
|
184
|
+
readonly json: "application/json";
|
|
185
|
+
readonly excalidraw: "application/vnd.excalidraw+json";
|
|
186
|
+
readonly excalidrawlib: "application/vnd.excalidrawlib+json";
|
|
187
|
+
readonly excalidrawlibIds: "application/vnd.excalidrawlib.ids+json";
|
|
188
|
+
};
|
|
178
189
|
export declare const MIME_TYPES: {
|
|
179
190
|
readonly svg: "image/svg+xml";
|
|
180
191
|
readonly png: "image/png";
|
|
@@ -185,14 +196,15 @@ export declare const MIME_TYPES: {
|
|
|
185
196
|
readonly ico: "image/x-icon";
|
|
186
197
|
readonly avif: "image/avif";
|
|
187
198
|
readonly jfif: "image/jfif";
|
|
199
|
+
readonly "excalidraw.svg": "image/svg+xml";
|
|
200
|
+
readonly "excalidraw.png": "image/png";
|
|
201
|
+
readonly binary: "application/octet-stream";
|
|
188
202
|
readonly text: "text/plain";
|
|
189
203
|
readonly html: "text/html";
|
|
190
204
|
readonly json: "application/json";
|
|
191
205
|
readonly excalidraw: "application/vnd.excalidraw+json";
|
|
192
206
|
readonly excalidrawlib: "application/vnd.excalidrawlib+json";
|
|
193
|
-
readonly
|
|
194
|
-
readonly "excalidraw.png": "image/png";
|
|
195
|
-
readonly binary: "application/octet-stream";
|
|
207
|
+
readonly excalidrawlibIds: "application/vnd.excalidrawlib.ids+json";
|
|
196
208
|
};
|
|
197
209
|
export declare const ALLOWED_PASTE_MIME_TYPES: readonly ["text/plain", "text/html", ...("image/svg+xml" | "image/png" | "image/jpeg" | "image/gif" | "image/webp" | "image/bmp" | "image/x-icon" | "image/avif" | "image/jfif")[]];
|
|
198
210
|
export declare const EXPORT_IMAGE_TYPES: {
|
|
@@ -227,9 +239,12 @@ export declare const URL_HASH_KEYS: {
|
|
|
227
239
|
readonly addLibrary: "addLibrary";
|
|
228
240
|
};
|
|
229
241
|
export declare const DEFAULT_UI_OPTIONS: AppProps["UIOptions"];
|
|
230
|
-
export declare const
|
|
242
|
+
export declare const MQ_MAX_MOBILE = 599;
|
|
231
243
|
export declare const MQ_MAX_WIDTH_LANDSCAPE = 1000;
|
|
232
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;
|
|
233
248
|
export declare const MQ_RIGHT_SIDEBAR_MIN_WIDTH = 1229;
|
|
234
249
|
export declare const MAX_DECIMALS_FOR_SVG_EXPORT = 2;
|
|
235
250
|
export declare const EXPORT_SCALES: number[];
|
|
@@ -342,3 +357,7 @@ export declare enum UserIdleState {
|
|
|
342
357
|
* the start and end points)
|
|
343
358
|
*/
|
|
344
359
|
export declare const LINE_POLYGON_POINT_MERGE_DISTANCE = 20;
|
|
360
|
+
export declare const DOUBLE_TAP_POSITION_THRESHOLD = 35;
|
|
361
|
+
export declare const MOBILE_ACTION_BUTTON_BG: {
|
|
362
|
+
readonly background: "var(--mobile-action-button-bg)";
|
|
363
|
+
};
|
|
@@ -17,6 +17,8 @@ export declare const getFontString: ({ fontSize, fontFamily, }: {
|
|
|
17
17
|
fontSize: number;
|
|
18
18
|
fontFamily: FontFamilyValues;
|
|
19
19
|
}) => FontString;
|
|
20
|
+
/** executes callback in the frame that's after the current one */
|
|
21
|
+
export declare const nextAnimationFrame: (cb: () => any) => Promise<void>;
|
|
20
22
|
export declare const debounce: <T extends any[]>(fn: (...args: T) => void, timeout: number) => {
|
|
21
23
|
(...args: T): void;
|
|
22
24
|
flush(): void;
|
|
@@ -264,4 +266,5 @@ export declare const castArray: <T>(value: T | T[]) => T[];
|
|
|
264
266
|
export declare const isReadonlyArray: (value?: any) => value is readonly any[];
|
|
265
267
|
export declare const sizeOf: (value: readonly unknown[] | Readonly<Map<string, unknown>> | Readonly<Record<string, unknown>> | ReadonlySet<unknown>) => number;
|
|
266
268
|
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;
|
|
267
270
|
export {};
|
|
@@ -74,7 +74,7 @@ export interface BoundingBox {
|
|
|
74
74
|
width: number;
|
|
75
75
|
height: number;
|
|
76
76
|
}
|
|
77
|
-
export declare const getCommonBoundingBox: (elements: ExcalidrawElement[] | readonly NonDeleted<ExcalidrawElement>[]) => BoundingBox;
|
|
77
|
+
export declare const getCommonBoundingBox: (elements: readonly ExcalidrawElement[] | readonly NonDeleted<ExcalidrawElement>[]) => BoundingBox;
|
|
78
78
|
/**
|
|
79
79
|
* returns scene coords of user's editor viewport (visible canvas area) bounds
|
|
80
80
|
*/
|
|
@@ -32,13 +32,13 @@ export declare class Delta<T> {
|
|
|
32
32
|
/**
|
|
33
33
|
* Merges two deltas into a new one.
|
|
34
34
|
*/
|
|
35
|
-
static merge<T>(delta1: Delta<T>, delta2: Delta<T>): Delta<T>;
|
|
35
|
+
static merge<T>(delta1: Delta<T>, delta2: Delta<T>, delta3?: Delta<T>): Delta<T>;
|
|
36
36
|
/**
|
|
37
37
|
* Merges deleted and inserted object partials.
|
|
38
38
|
*/
|
|
39
39
|
static mergeObjects<T extends {
|
|
40
40
|
[key: string]: unknown;
|
|
41
|
-
}>(prev: T, added: T, removed
|
|
41
|
+
}>(prev: T, added: T, removed?: T): T;
|
|
42
42
|
/**
|
|
43
43
|
* Merges deleted and inserted array partials.
|
|
44
44
|
*/
|
|
@@ -105,7 +105,7 @@ export interface DeltaContainer<T> {
|
|
|
105
105
|
*
|
|
106
106
|
* @returns a tuple of the next object `T` with applied `Delta`s, and `boolean`, indicating whether the applied deltas resulted in a visible change.
|
|
107
107
|
*/
|
|
108
|
-
applyTo(previous: T, ...options: unknown[]): [T, boolean
|
|
108
|
+
applyTo(previous: T, ...options: unknown[]): [T, boolean];
|
|
109
109
|
/**
|
|
110
110
|
* Squashes the current delta with the given one.
|
|
111
111
|
*/
|
|
@@ -164,6 +164,7 @@ export declare class ElementsDelta implements DeltaContainer<SceneElementsMap> {
|
|
|
164
164
|
private static satisfiesRemoval;
|
|
165
165
|
private static satisfiesUpdate;
|
|
166
166
|
private static satisfiesCommmonInvariants;
|
|
167
|
+
private static satisfiesUniqueInvariants;
|
|
167
168
|
private static validate;
|
|
168
169
|
/**
|
|
169
170
|
* Calculates the `Delta`s between the previous and next set of elements.
|
|
@@ -223,6 +224,5 @@ export declare class ElementsDelta implements DeltaContainer<SceneElementsMap> {
|
|
|
223
224
|
*/
|
|
224
225
|
private static postProcess;
|
|
225
226
|
private static stripIrrelevantProps;
|
|
226
|
-
private static stripVersionProps;
|
|
227
227
|
}
|
|
228
228
|
export {};
|
|
@@ -38,6 +38,7 @@ export * from "./image";
|
|
|
38
38
|
export * from "./linearElementEditor";
|
|
39
39
|
export * from "./mutateElement";
|
|
40
40
|
export * from "./newElement";
|
|
41
|
+
export * from "./positionElementsOnGrid";
|
|
41
42
|
export * from "./renderElement";
|
|
42
43
|
export * from "./resizeElements";
|
|
43
44
|
export * from "./resizeTest";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type GlobalPoint } from "@excalidraw/math";
|
|
1
2
|
import type { AppState, StaticCanvasAppState, InteractiveCanvasAppState, ElementsPendingErasure, PendingExcalidrawElements } from "@excalidraw/excalidraw/types";
|
|
2
3
|
import type { StaticCanvasRenderConfig, RenderableElementsMap, InteractiveCanvasRenderConfig } from "@excalidraw/excalidraw/scene/types";
|
|
3
|
-
import type { ExcalidrawElement, ExcalidrawTextElement, NonDeletedExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawImageElement, ExcalidrawFrameLikeElement, NonDeletedSceneElementsMap } from "./types";
|
|
4
|
+
import type { ExcalidrawElement, ExcalidrawTextElement, NonDeletedExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawImageElement, ExcalidrawFrameLikeElement, NonDeletedSceneElementsMap, ElementsMap } from "./types";
|
|
4
5
|
import type { RoughCanvas } from "roughjs/bin/canvas";
|
|
5
6
|
export declare const IMAGE_INVERT_FILTER = "invert(100%) hue-rotate(180deg) saturate(1.25)";
|
|
6
7
|
export declare const getRenderOpacity: (element: ExcalidrawElement, containingFrame: ExcalidrawFrameLikeElement | null, elementsPendingErasure: ElementsPendingErasure, pendingNodes: Readonly<PendingExcalidrawElements> | null, globalAlpha?: number) => number;
|
|
@@ -26,3 +27,5 @@ export declare const pathsCache: WeakMap<ExcalidrawFreeDrawElement, Path2D>;
|
|
|
26
27
|
export declare function generateFreeDrawShape(element: ExcalidrawFreeDrawElement): Path2D;
|
|
27
28
|
export declare function getFreeDrawPath2D(element: ExcalidrawFreeDrawElement): Path2D | undefined;
|
|
28
29
|
export declare function getFreeDrawSvgPath(element: ExcalidrawFreeDrawElement): string;
|
|
30
|
+
export declare function getFreedrawOutlineAsSegments(element: ExcalidrawFreeDrawElement, points: [number, number][], elementsMap: ElementsMap): import("@excalidraw/math").LineSegment<GlobalPoint>[];
|
|
31
|
+
export declare function getFreedrawOutlinePoints(element: ExcalidrawFreeDrawElement): [number, number][];
|
|
@@ -171,9 +171,9 @@ export declare class StoreDelta {
|
|
|
171
171
|
*/
|
|
172
172
|
static load({ id, elements: { added, removed, updated }, appState: { delta: appStateDelta }, }: DTO<StoreDelta>): StoreDelta;
|
|
173
173
|
/**
|
|
174
|
-
* Squash the passed
|
|
174
|
+
* Squash the passed deltas into the aggregated delta instance.
|
|
175
175
|
*/
|
|
176
|
-
squash(
|
|
176
|
+
static squash(...deltas: StoreDelta[]): StoreDelta;
|
|
177
177
|
/**
|
|
178
178
|
* Inverse store delta, creates new instance of `StoreDelta`.
|
|
179
179
|
*/
|
|
@@ -186,6 +186,7 @@ export declare class StoreDelta {
|
|
|
186
186
|
* Apply latest (remote) changes to the delta, creates new instance of `StoreDelta`.
|
|
187
187
|
*/
|
|
188
188
|
static applyLatestChanges(delta: StoreDelta, prevElements: SceneElementsMap, nextElements: SceneElementsMap, modifierOptions?: "deleted" | "inserted"): StoreDelta;
|
|
189
|
+
static empty(): StoreDelta;
|
|
189
190
|
isEmpty(): boolean;
|
|
190
191
|
}
|
|
191
192
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { type Radians } from "@excalidraw/math";
|
|
1
2
|
import type { AppState } from "@excalidraw/excalidraw/types";
|
|
2
3
|
import type { ExtractSetType } from "@excalidraw/common/utility-types";
|
|
3
|
-
import type { Radians } from "@excalidraw/math";
|
|
4
4
|
import type { Scene } from "./Scene";
|
|
5
5
|
import type { MaybeTransformHandleType } from "./transformHandles";
|
|
6
6
|
import type { ElementsMap, ExcalidrawElement, ExcalidrawElementType, ExcalidrawTextContainer, ExcalidrawTextElement, ExcalidrawTextElementWithContainer, NonDeletedExcalidrawElement } from "./types";
|
|
@@ -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;
|
|
@@ -77,7 +81,7 @@ export declare const actionAddToLibrary: {
|
|
|
77
81
|
value: import("../types").NormalizedZoomValue;
|
|
78
82
|
}>;
|
|
79
83
|
openMenu: "canvas" | "shape" | null;
|
|
80
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
84
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
81
85
|
openSidebar: {
|
|
82
86
|
name: string;
|
|
83
87
|
tab?: string | undefined;
|
|
@@ -173,6 +177,7 @@ export declare const actionAddToLibrary: {
|
|
|
173
177
|
lockedMultiSelections: {
|
|
174
178
|
[groupId: string]: true;
|
|
175
179
|
};
|
|
180
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
176
181
|
};
|
|
177
182
|
} | {
|
|
178
183
|
captureUpdate: "EVENTUALLY";
|
|
@@ -211,6 +216,10 @@ export declare const actionAddToLibrary: {
|
|
|
211
216
|
locked: boolean;
|
|
212
217
|
fromSelection: boolean;
|
|
213
218
|
} & import("../types").ActiveTool;
|
|
219
|
+
preferredSelectionTool: {
|
|
220
|
+
type: "selection" | "lasso";
|
|
221
|
+
initialized: boolean;
|
|
222
|
+
};
|
|
214
223
|
penMode: boolean;
|
|
215
224
|
penDetected: boolean;
|
|
216
225
|
exportBackground: boolean;
|
|
@@ -244,7 +253,7 @@ export declare const actionAddToLibrary: {
|
|
|
244
253
|
value: import("../types").NormalizedZoomValue;
|
|
245
254
|
}>;
|
|
246
255
|
openMenu: "canvas" | "shape" | null;
|
|
247
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
256
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
248
257
|
openSidebar: {
|
|
249
258
|
name: string;
|
|
250
259
|
tab?: string | undefined;
|
|
@@ -345,6 +354,7 @@ export declare const actionAddToLibrary: {
|
|
|
345
354
|
lockedMultiSelections: {
|
|
346
355
|
[groupId: string]: true;
|
|
347
356
|
};
|
|
357
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
348
358
|
};
|
|
349
359
|
}> | {
|
|
350
360
|
captureUpdate: "EVENTUALLY";
|
|
@@ -383,6 +393,10 @@ export declare const actionAddToLibrary: {
|
|
|
383
393
|
locked: boolean;
|
|
384
394
|
fromSelection: boolean;
|
|
385
395
|
} & import("../types").ActiveTool;
|
|
396
|
+
preferredSelectionTool: {
|
|
397
|
+
type: "selection" | "lasso";
|
|
398
|
+
initialized: boolean;
|
|
399
|
+
};
|
|
386
400
|
penMode: boolean;
|
|
387
401
|
penDetected: boolean;
|
|
388
402
|
exportBackground: boolean;
|
|
@@ -416,7 +430,7 @@ export declare const actionAddToLibrary: {
|
|
|
416
430
|
value: import("../types").NormalizedZoomValue;
|
|
417
431
|
}>;
|
|
418
432
|
openMenu: "canvas" | "shape" | null;
|
|
419
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
433
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
420
434
|
openSidebar: {
|
|
421
435
|
name: string;
|
|
422
436
|
tab?: string | undefined;
|
|
@@ -517,6 +531,7 @@ export declare const actionAddToLibrary: {
|
|
|
517
531
|
lockedMultiSelections: {
|
|
518
532
|
[groupId: string]: true;
|
|
519
533
|
};
|
|
534
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
520
535
|
};
|
|
521
536
|
};
|
|
522
537
|
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;
|
|
@@ -97,7 +101,7 @@ export declare const actionBindText: {
|
|
|
97
101
|
value: import("../types").NormalizedZoomValue;
|
|
98
102
|
}>;
|
|
99
103
|
openMenu: "canvas" | "shape" | null;
|
|
100
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
104
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
101
105
|
openSidebar: {
|
|
102
106
|
name: string;
|
|
103
107
|
tab?: string | undefined;
|
|
@@ -195,6 +199,7 @@ export declare const actionBindText: {
|
|
|
195
199
|
lockedMultiSelections: {
|
|
196
200
|
[groupId: string]: true;
|
|
197
201
|
};
|
|
202
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
198
203
|
};
|
|
199
204
|
captureUpdate: "IMMEDIATELY";
|
|
200
205
|
};
|
|
@@ -248,6 +253,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
248
253
|
locked: boolean;
|
|
249
254
|
fromSelection: boolean;
|
|
250
255
|
} & import("../types").ActiveTool;
|
|
256
|
+
preferredSelectionTool: {
|
|
257
|
+
type: "selection" | "lasso";
|
|
258
|
+
initialized: boolean;
|
|
259
|
+
};
|
|
251
260
|
penMode: boolean;
|
|
252
261
|
penDetected: boolean;
|
|
253
262
|
exportBackground: boolean;
|
|
@@ -281,7 +290,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
281
290
|
value: import("../types").NormalizedZoomValue;
|
|
282
291
|
}>;
|
|
283
292
|
openMenu: "canvas" | "shape" | null;
|
|
284
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
293
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
285
294
|
openSidebar: {
|
|
286
295
|
name: string;
|
|
287
296
|
tab?: string | undefined;
|
|
@@ -379,6 +388,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
379
388
|
lockedMultiSelections: {
|
|
380
389
|
[groupId: string]: true;
|
|
381
390
|
};
|
|
391
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
382
392
|
};
|
|
383
393
|
captureUpdate: "IMMEDIATELY";
|
|
384
394
|
};
|