@zsviczian/excalidraw 0.17.1-obsidian-19 → 0.17.1-obsidian-21
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/excalidraw.development.js +267 -92
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +1103 -854
- package/dist/styles.production.css +16 -15
- package/package.json +5 -3
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +20 -5
- package/types/excalidraw/actions/actionAlign.d.ts +39 -27
- package/types/excalidraw/actions/actionBoundText.d.ts +20 -10
- package/types/excalidraw/actions/actionCanvas.d.ts +148 -52
- package/types/excalidraw/actions/actionClipboard.d.ts +72 -30
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +25 -9
- package/types/excalidraw/actions/actionDistribute.d.ts +10 -8
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +7 -7
- package/types/excalidraw/actions/actionElementLock.d.ts +24 -11
- package/types/excalidraw/actions/actionExport.d.ts +85 -32
- package/types/excalidraw/actions/actionFinalize.d.ts +19 -8
- package/types/excalidraw/actions/actionFlip.d.ts +13 -11
- package/types/excalidraw/actions/actionFrame.d.ts +30 -200
- package/types/excalidraw/actions/actionGroup.d.ts +15 -379
- package/types/excalidraw/actions/actionHistory.d.ts +3 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +9 -3
- package/types/excalidraw/actions/actionLink.d.ts +12 -6
- package/types/excalidraw/actions/actionMenu.d.ts +25 -8
- package/types/excalidraw/actions/actionNavigate.d.ts +14 -3
- package/types/excalidraw/actions/actionProperties.d.ts +114 -32
- package/types/excalidraw/actions/actionSelectAll.d.ts +12 -5
- package/types/excalidraw/actions/actionStyles.d.ts +18 -14
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +12 -5
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +12 -6
- package/types/excalidraw/actions/actionToggleStats.d.ts +12 -5
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +12 -5
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -5
- package/types/excalidraw/actions/actionZindex.d.ts +26 -23
- package/types/excalidraw/actions/manager.d.ts +3 -3
- package/types/excalidraw/actions/shortcuts.d.ts +2 -2
- package/types/excalidraw/actions/types.d.ts +10 -8
- package/types/excalidraw/appState.d.ts +4 -4
- package/types/excalidraw/change.d.ts +191 -0
- package/types/excalidraw/clients.d.ts +10 -1
- package/types/excalidraw/components/Actions.d.ts +3 -1
- package/types/excalidraw/components/App.d.ts +23 -9
- package/types/excalidraw/components/Avatar.d.ts +2 -3
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +18 -0
- package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -0
- package/types/excalidraw/components/CommandPalette/types.d.ts +25 -0
- package/types/excalidraw/components/InlineIcon.d.ts +1 -1
- package/types/excalidraw/components/RadioGroup.d.ts +2 -1
- package/types/excalidraw/components/ToolButton.d.ts +1 -0
- package/types/excalidraw/components/UserList.d.ts +3 -7
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -1
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -0
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/types/excalidraw/components/icons.d.ts +26 -1
- package/types/excalidraw/components/main-menu/DefaultItems.d.ts +15 -1
- package/types/excalidraw/constants.d.ts +8 -0
- package/types/excalidraw/data/reconcile.d.ts +6 -0
- package/types/excalidraw/data/restore.d.ts +3 -3
- package/types/excalidraw/data/transform.d.ts +1 -1
- package/types/excalidraw/data/url.d.ts +1 -0
- package/types/excalidraw/deburr.d.ts +1 -0
- package/types/excalidraw/element/binding.d.ts +52 -9
- package/types/excalidraw/element/bounds.d.ts +0 -1
- package/types/excalidraw/element/collision.d.ts +14 -19
- package/types/excalidraw/element/embeddable.d.ts +14 -4
- package/types/excalidraw/element/index.d.ts +0 -1
- package/types/excalidraw/element/linearElementEditor.d.ts +17 -12
- package/types/excalidraw/element/mutateElement.d.ts +1 -2
- package/types/excalidraw/element/newElement.d.ts +1 -1
- package/types/excalidraw/element/resizeElements.d.ts +1 -1
- package/types/excalidraw/element/resizeTest.d.ts +4 -4
- package/types/excalidraw/element/textElement.d.ts +1 -7
- package/types/excalidraw/element/transformHandles.d.ts +22 -4
- package/types/excalidraw/element/typeChecks.d.ts +2 -2
- package/types/excalidraw/element/types.d.ts +22 -6
- package/types/excalidraw/errors.d.ts +3 -0
- package/types/excalidraw/fractionalIndex.d.ts +40 -0
- package/types/excalidraw/frame.d.ts +1 -1
- package/types/excalidraw/groups.d.ts +2 -0
- package/types/excalidraw/history.d.ts +34 -46
- package/types/excalidraw/hooks/useEmitter.d.ts +2 -0
- package/types/excalidraw/hooks/useStableCallback.d.ts +4 -0
- package/types/excalidraw/index.d.ts +3 -1
- package/types/excalidraw/keys.d.ts +1 -0
- package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/types/excalidraw/scene/Scene.d.ts +7 -6
- package/types/excalidraw/scene/types.d.ts +11 -20
- package/types/excalidraw/store.d.ts +99 -0
- package/types/excalidraw/types.d.ts +39 -6
- package/types/excalidraw/utils.d.ts +7 -0
- package/types/excalidraw/webpack.prod.config.d.ts +1 -1
- package/types/excalidraw/zindex.d.ts +2 -2
- package/types/utils/collision.d.ts +4 -0
- package/types/utils/export.d.ts +2 -2
- package/types/utils/geometry/geometry.d.ts +71 -0
- package/types/utils/geometry/shape.d.ts +56 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zsviczian/excalidraw",
|
|
3
|
-
"version": "0.17.1-obsidian-
|
|
3
|
+
"version": "0.17.1-obsidian-21",
|
|
4
4
|
"main": "main.js",
|
|
5
5
|
"types": "types/excalidraw/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
"canvas-roundrect-polyfill": "0.0.1",
|
|
56
56
|
"clsx": "1.1.1",
|
|
57
57
|
"cross-env": "7.0.3",
|
|
58
|
+
"fractional-indexing": "3.2.0",
|
|
59
|
+
"fuzzy": "0.1.3",
|
|
58
60
|
"image-blob-reduce": "3.0.1",
|
|
59
61
|
"jotai": "1.13.1",
|
|
60
62
|
"lodash.throttle": "4.1.1",
|
|
@@ -82,6 +84,8 @@
|
|
|
82
84
|
"@babel/preset-react": "7.18.6",
|
|
83
85
|
"@babel/preset-typescript": "7.18.6",
|
|
84
86
|
"@size-limit/preset-big-lib": "9.0.0",
|
|
87
|
+
"@testing-library/jest-dom": "5.16.2",
|
|
88
|
+
"@testing-library/react": "12.1.5",
|
|
85
89
|
"@types/pako": "1.0.3",
|
|
86
90
|
"@types/pica": "5.1.3",
|
|
87
91
|
"@types/resize-observer-browser": "0.1.7",
|
|
@@ -104,8 +108,6 @@
|
|
|
104
108
|
"sass-loader": "13.0.2",
|
|
105
109
|
"size-limit": "9.0.0",
|
|
106
110
|
"style-loader": "3.3.3",
|
|
107
|
-
"@testing-library/jest-dom": "5.16.2",
|
|
108
|
-
"@testing-library/react": "12.1.5",
|
|
109
111
|
"ts-loader": "9.3.1",
|
|
110
112
|
"typescript": "4.9.4",
|
|
111
113
|
"rimraf": "^5.0.5",
|
|
@@ -3,8 +3,8 @@ export declare const actionAddToLibrary: {
|
|
|
3
3
|
trackEvent: {
|
|
4
4
|
category: "element";
|
|
5
5
|
};
|
|
6
|
-
perform: (elements: readonly import("../element/types").
|
|
7
|
-
|
|
6
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
|
|
7
|
+
storeAction: import("../store").StoreActionType;
|
|
8
8
|
appState: {
|
|
9
9
|
toast: {
|
|
10
10
|
message: string;
|
|
@@ -88,6 +88,8 @@ export declare const actionAddToLibrary: {
|
|
|
88
88
|
} | {
|
|
89
89
|
name: "ttd";
|
|
90
90
|
tab: "mermaid" | "text-to-diagram";
|
|
91
|
+
} | {
|
|
92
|
+
name: "commandPalette";
|
|
91
93
|
} | null;
|
|
92
94
|
defaultSidebarDockedPreference: boolean;
|
|
93
95
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -129,6 +131,9 @@ export declare const actionAddToLibrary: {
|
|
|
129
131
|
id?: string | undefined;
|
|
130
132
|
socketId?: import("../types").SocketId | undefined;
|
|
131
133
|
isCurrentUser?: boolean | undefined;
|
|
134
|
+
isInCall?: boolean | undefined;
|
|
135
|
+
isSpeaking?: boolean | undefined;
|
|
136
|
+
isMuted?: boolean | undefined;
|
|
132
137
|
}>>;
|
|
133
138
|
showStats: boolean;
|
|
134
139
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -184,7 +189,7 @@ export declare const actionAddToLibrary: {
|
|
|
184
189
|
followedBy: Set<import("../types").SocketId>;
|
|
185
190
|
};
|
|
186
191
|
} | {
|
|
187
|
-
|
|
192
|
+
storeAction: import("../store").StoreActionType;
|
|
188
193
|
appState: {
|
|
189
194
|
errorMessage: any;
|
|
190
195
|
contextMenu: {
|
|
@@ -265,6 +270,8 @@ export declare const actionAddToLibrary: {
|
|
|
265
270
|
} | {
|
|
266
271
|
name: "ttd";
|
|
267
272
|
tab: "mermaid" | "text-to-diagram";
|
|
273
|
+
} | {
|
|
274
|
+
name: "commandPalette";
|
|
268
275
|
} | null;
|
|
269
276
|
defaultSidebarDockedPreference: boolean;
|
|
270
277
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -311,6 +318,9 @@ export declare const actionAddToLibrary: {
|
|
|
311
318
|
id?: string | undefined;
|
|
312
319
|
socketId?: import("../types").SocketId | undefined;
|
|
313
320
|
isCurrentUser?: boolean | undefined;
|
|
321
|
+
isInCall?: boolean | undefined;
|
|
322
|
+
isSpeaking?: boolean | undefined;
|
|
323
|
+
isMuted?: boolean | undefined;
|
|
314
324
|
}>>;
|
|
315
325
|
showStats: boolean;
|
|
316
326
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -366,7 +376,7 @@ export declare const actionAddToLibrary: {
|
|
|
366
376
|
followedBy: Set<import("../types").SocketId>;
|
|
367
377
|
};
|
|
368
378
|
}> | {
|
|
369
|
-
|
|
379
|
+
storeAction: import("../store").StoreActionType;
|
|
370
380
|
appState: {
|
|
371
381
|
errorMessage: string;
|
|
372
382
|
contextMenu: {
|
|
@@ -447,6 +457,8 @@ export declare const actionAddToLibrary: {
|
|
|
447
457
|
} | {
|
|
448
458
|
name: "ttd";
|
|
449
459
|
tab: "mermaid" | "text-to-diagram";
|
|
460
|
+
} | {
|
|
461
|
+
name: "commandPalette";
|
|
450
462
|
} | null;
|
|
451
463
|
defaultSidebarDockedPreference: boolean;
|
|
452
464
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -493,6 +505,9 @@ export declare const actionAddToLibrary: {
|
|
|
493
505
|
id?: string | undefined;
|
|
494
506
|
socketId?: import("../types").SocketId | undefined;
|
|
495
507
|
isCurrentUser?: boolean | undefined;
|
|
508
|
+
isInCall?: boolean | undefined;
|
|
509
|
+
isSpeaking?: boolean | undefined;
|
|
510
|
+
isMuted?: boolean | undefined;
|
|
496
511
|
}>>;
|
|
497
512
|
showStats: boolean;
|
|
498
513
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -548,7 +563,7 @@ export declare const actionAddToLibrary: {
|
|
|
548
563
|
followedBy: Set<import("../types").SocketId>;
|
|
549
564
|
};
|
|
550
565
|
};
|
|
551
|
-
|
|
566
|
+
label: string;
|
|
552
567
|
} & {
|
|
553
568
|
keyTest?: undefined;
|
|
554
569
|
};
|
|
@@ -1,79 +1,89 @@
|
|
|
1
1
|
import { ExcalidrawElement } from "../element/types";
|
|
2
|
-
import { AppClassProperties, AppState } from "../types";
|
|
2
|
+
import { AppClassProperties, AppState, UIAppState } from "../types";
|
|
3
3
|
export declare const actionAlignTop: {
|
|
4
4
|
name: "alignTop";
|
|
5
|
+
label: string;
|
|
6
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
trackEvent: {
|
|
6
8
|
category: "element";
|
|
7
9
|
};
|
|
8
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
9
|
-
perform: (elements: readonly
|
|
10
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: UIAppState, _: unknown, app: AppClassProperties) => boolean;
|
|
11
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
10
12
|
appState: Readonly<AppState>;
|
|
11
13
|
elements: ExcalidrawElement[];
|
|
12
|
-
|
|
14
|
+
storeAction: import("../store").StoreActionType;
|
|
13
15
|
};
|
|
14
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
16
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
17
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
} & {
|
|
17
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
19
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
20
|
};
|
|
19
21
|
export declare const actionAlignBottom: {
|
|
20
22
|
name: "alignBottom";
|
|
23
|
+
label: string;
|
|
24
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
21
25
|
trackEvent: {
|
|
22
26
|
category: "element";
|
|
23
27
|
};
|
|
24
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
25
|
-
perform: (elements: readonly
|
|
28
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: UIAppState, _: unknown, app: AppClassProperties) => boolean;
|
|
29
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
26
30
|
appState: Readonly<AppState>;
|
|
27
31
|
elements: ExcalidrawElement[];
|
|
28
|
-
|
|
32
|
+
storeAction: import("../store").StoreActionType;
|
|
29
33
|
};
|
|
30
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
34
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
31
35
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
36
|
} & {
|
|
33
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
37
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
34
38
|
};
|
|
35
39
|
export declare const actionAlignLeft: {
|
|
36
40
|
name: "alignLeft";
|
|
41
|
+
label: string;
|
|
42
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
37
43
|
trackEvent: {
|
|
38
44
|
category: "element";
|
|
39
45
|
};
|
|
40
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
41
|
-
perform: (elements: readonly
|
|
46
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: UIAppState, _: unknown, app: AppClassProperties) => boolean;
|
|
47
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
42
48
|
appState: Readonly<AppState>;
|
|
43
49
|
elements: ExcalidrawElement[];
|
|
44
|
-
|
|
50
|
+
storeAction: import("../store").StoreActionType;
|
|
45
51
|
};
|
|
46
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
52
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
47
53
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
54
|
} & {
|
|
49
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
55
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
50
56
|
};
|
|
51
57
|
export declare const actionAlignRight: {
|
|
52
58
|
name: "alignRight";
|
|
59
|
+
label: string;
|
|
60
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
53
61
|
trackEvent: {
|
|
54
62
|
category: "element";
|
|
55
63
|
};
|
|
56
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
57
|
-
perform: (elements: readonly
|
|
64
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: UIAppState, _: unknown, app: AppClassProperties) => boolean;
|
|
65
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
58
66
|
appState: Readonly<AppState>;
|
|
59
67
|
elements: ExcalidrawElement[];
|
|
60
|
-
|
|
68
|
+
storeAction: import("../store").StoreActionType;
|
|
61
69
|
};
|
|
62
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
70
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
63
71
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
64
72
|
} & {
|
|
65
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
73
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
66
74
|
};
|
|
67
75
|
export declare const actionAlignVerticallyCentered: {
|
|
68
76
|
name: "alignVerticallyCentered";
|
|
77
|
+
label: string;
|
|
78
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
69
79
|
trackEvent: {
|
|
70
80
|
category: "element";
|
|
71
81
|
};
|
|
72
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
73
|
-
perform: (elements: readonly
|
|
82
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: UIAppState, _: unknown, app: AppClassProperties) => boolean;
|
|
83
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
74
84
|
appState: Readonly<AppState>;
|
|
75
85
|
elements: ExcalidrawElement[];
|
|
76
|
-
|
|
86
|
+
storeAction: import("../store").StoreActionType;
|
|
77
87
|
};
|
|
78
88
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
79
89
|
} & {
|
|
@@ -81,14 +91,16 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
81
91
|
};
|
|
82
92
|
export declare const actionAlignHorizontallyCentered: {
|
|
83
93
|
name: "alignHorizontallyCentered";
|
|
94
|
+
label: string;
|
|
95
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
84
96
|
trackEvent: {
|
|
85
97
|
category: "element";
|
|
86
98
|
};
|
|
87
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
88
|
-
perform: (elements: readonly
|
|
99
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: UIAppState, _: unknown, app: AppClassProperties) => boolean;
|
|
100
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
89
101
|
appState: Readonly<AppState>;
|
|
90
102
|
elements: ExcalidrawElement[];
|
|
91
|
-
|
|
103
|
+
storeAction: import("../store").StoreActionType;
|
|
92
104
|
};
|
|
93
105
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
94
106
|
} & {
|
|
@@ -3,27 +3,27 @@ import { AppState } from "../types";
|
|
|
3
3
|
import { Mutable } from "../utility-types";
|
|
4
4
|
export declare const actionUnbindText: {
|
|
5
5
|
name: "unbindText";
|
|
6
|
-
|
|
6
|
+
label: string;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
10
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
|
-
perform: (elements: readonly
|
|
12
|
-
elements: readonly
|
|
11
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
12
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
|
-
|
|
14
|
+
storeAction: import("../store").StoreActionType;
|
|
15
15
|
};
|
|
16
16
|
} & {
|
|
17
17
|
keyTest?: undefined;
|
|
18
18
|
};
|
|
19
19
|
export declare const actionBindText: {
|
|
20
20
|
name: "bindText";
|
|
21
|
-
|
|
21
|
+
label: string;
|
|
22
22
|
trackEvent: {
|
|
23
23
|
category: "element";
|
|
24
24
|
};
|
|
25
25
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
26
|
-
perform: (elements: readonly
|
|
26
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
27
27
|
elements: ExcalidrawElement[];
|
|
28
28
|
appState: {
|
|
29
29
|
selectedElementIds: {
|
|
@@ -108,6 +108,8 @@ export declare const actionBindText: {
|
|
|
108
108
|
} | {
|
|
109
109
|
name: "ttd";
|
|
110
110
|
tab: "mermaid" | "text-to-diagram";
|
|
111
|
+
} | {
|
|
112
|
+
name: "commandPalette";
|
|
111
113
|
} | null;
|
|
112
114
|
defaultSidebarDockedPreference: boolean;
|
|
113
115
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -151,6 +153,9 @@ export declare const actionBindText: {
|
|
|
151
153
|
id?: string | undefined;
|
|
152
154
|
socketId?: import("../types").SocketId | undefined;
|
|
153
155
|
isCurrentUser?: boolean | undefined;
|
|
156
|
+
isInCall?: boolean | undefined;
|
|
157
|
+
isSpeaking?: boolean | undefined;
|
|
158
|
+
isMuted?: boolean | undefined;
|
|
154
159
|
}>>;
|
|
155
160
|
showStats: boolean;
|
|
156
161
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -205,19 +210,19 @@ export declare const actionBindText: {
|
|
|
205
210
|
userToFollow: import("../types").UserToFollow | null;
|
|
206
211
|
followedBy: Set<import("../types").SocketId>;
|
|
207
212
|
};
|
|
208
|
-
|
|
213
|
+
storeAction: import("../store").StoreActionType;
|
|
209
214
|
};
|
|
210
215
|
} & {
|
|
211
216
|
keyTest?: undefined;
|
|
212
217
|
};
|
|
213
218
|
export declare const actionWrapTextInContainer: {
|
|
214
219
|
name: "wrapTextInContainer";
|
|
215
|
-
|
|
220
|
+
label: string;
|
|
216
221
|
trackEvent: {
|
|
217
222
|
category: "element";
|
|
218
223
|
};
|
|
219
224
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
220
|
-
perform: (elements: readonly
|
|
225
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
221
226
|
elements: readonly ExcalidrawElement[];
|
|
222
227
|
appState: {
|
|
223
228
|
selectedElementIds: Mutable<Readonly<{
|
|
@@ -302,6 +307,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
302
307
|
} | {
|
|
303
308
|
name: "ttd";
|
|
304
309
|
tab: "mermaid" | "text-to-diagram";
|
|
310
|
+
} | {
|
|
311
|
+
name: "commandPalette";
|
|
305
312
|
} | null;
|
|
306
313
|
defaultSidebarDockedPreference: boolean;
|
|
307
314
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
@@ -345,6 +352,9 @@ export declare const actionWrapTextInContainer: {
|
|
|
345
352
|
id?: string | undefined;
|
|
346
353
|
socketId?: import("../types").SocketId | undefined;
|
|
347
354
|
isCurrentUser?: boolean | undefined;
|
|
355
|
+
isInCall?: boolean | undefined;
|
|
356
|
+
isSpeaking?: boolean | undefined;
|
|
357
|
+
isMuted?: boolean | undefined;
|
|
348
358
|
}>>;
|
|
349
359
|
showStats: boolean;
|
|
350
360
|
currentChartType: import("../element/types").ChartType;
|
|
@@ -399,7 +409,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
399
409
|
userToFollow: import("../types").UserToFollow | null;
|
|
400
410
|
followedBy: Set<import("../types").SocketId>;
|
|
401
411
|
};
|
|
402
|
-
|
|
412
|
+
storeAction: import("../store").StoreActionType;
|
|
403
413
|
};
|
|
404
414
|
} & {
|
|
405
415
|
keyTest?: undefined;
|