@myoc/excalidraw 0.19.522 → 0.19.524

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +123 -1
  2. package/dist/dev/{chunk-BCNQXIBK.js → chunk-3SND5YQP.js} +50 -6
  3. package/dist/dev/chunk-3SND5YQP.js.map +7 -0
  4. package/dist/dev/{chunk-6T5HZJCI.js → chunk-W3K3P2GO.js} +2 -2
  5. package/dist/dev/data/{image-NFLICJEW.js → image-F4TDOTKO.js} +3 -3
  6. package/dist/dev/index.css +774 -622
  7. package/dist/dev/index.css.map +3 -3
  8. package/dist/dev/index.js +11072 -10660
  9. package/dist/dev/index.js.map +4 -4
  10. package/dist/dev/subset-shared.chunk.js +1 -1
  11. package/dist/dev/subset-worker.chunk.js +1 -1
  12. package/dist/prod/{chunk-SZWH77NQ.js → chunk-GPFWSM2Y.js} +1 -1
  13. package/dist/prod/chunk-H5UC5NY3.js +4 -0
  14. package/dist/prod/data/image-FQV7KQIF.js +1 -0
  15. package/dist/prod/index.css +1 -1
  16. package/dist/prod/index.js +16 -16
  17. package/dist/prod/subset-shared.chunk.js +1 -1
  18. package/dist/prod/subset-worker.chunk.js +1 -1
  19. package/dist/types/excalidraw/actions/actionCanvas.d.ts +6 -6
  20. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  21. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  22. package/dist/types/excalidraw/actions/types.d.ts +1 -1
  23. package/dist/types/excalidraw/components/Actions.d.ts +1 -2
  24. package/dist/types/excalidraw/components/App.d.ts +9 -3
  25. package/dist/types/excalidraw/components/MobileToolbar.d.ts +3 -1
  26. package/dist/types/excalidraw/components/Toolbar.d.ts +3 -1
  27. package/dist/types/excalidraw/components/Tools.d.ts +9 -4
  28. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +0 -2
  29. package/dist/types/excalidraw/types.d.ts +9 -1
  30. package/dist/types/excalidraw/viewport.d.ts +7 -1
  31. package/package.json +4 -4
  32. package/dist/dev/chunk-BCNQXIBK.js.map +0 -7
  33. package/dist/prod/chunk-66O5T5YX.js +0 -4
  34. package/dist/prod/data/image-AAJBLI3M.js +0 -1
  35. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +0 -191
  36. /package/dist/dev/{chunk-6T5HZJCI.js.map → chunk-W3K3P2GO.js.map} +0 -0
  37. /package/dist/dev/data/{image-NFLICJEW.js.map → image-F4TDOTKO.js.map} +0 -0
@@ -1,191 +0,0 @@
1
- export declare const actionToggleZenMode: {
2
- name: "zenMode";
3
- label: string;
4
- icon: import("react/jsx-runtime").JSX.Element;
5
- viewMode: true;
6
- trackEvent: {
7
- category: "canvas";
8
- predicate: (appState: Readonly<import("../types").AppState>) => boolean;
9
- };
10
- perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
11
- appState: {
12
- zenModeEnabled: boolean;
13
- contextMenu: {
14
- items: import("../components/ContextMenu").ContextMenuItems;
15
- top: number;
16
- left: number;
17
- } | null;
18
- showWelcomeScreen: boolean;
19
- isLoading: boolean;
20
- myocSimplifiedMode: boolean;
21
- dontResizeLimitMBs: number;
22
- hideMainMenus: boolean;
23
- wheelZoomsOnDefault?: boolean;
24
- arrangeConfiguration: {
25
- algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
26
- gap: number;
27
- };
28
- normaliseConfiguration: {
29
- mode: import("../types").NormaliseMode;
30
- metric: import("../types").NormaliseMetric;
31
- };
32
- errorMessage: React.ReactNode;
33
- activeEmbeddable: {
34
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
35
- state: "hover" | "active";
36
- } | null;
37
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
38
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
39
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
40
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
41
- isBindingEnabled: boolean;
42
- boxSelectionMode: import("../types").BoxSelectionMode;
43
- bindingPreference: "enabled" | "disabled";
44
- isMidpointSnappingEnabled: boolean;
45
- suggestedBinding: {
46
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
47
- midPoint?: import("@excalidraw/math").GlobalPoint;
48
- } | null;
49
- hoveredArrowTextAnchor: {
50
- elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
51
- anchor: "start" | "end" | "label";
52
- } | null;
53
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
54
- frameRendering: {
55
- enabled: boolean;
56
- name: boolean;
57
- outline: boolean;
58
- clip: boolean;
59
- };
60
- editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
61
- elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
62
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
63
- activeTool: {
64
- lastActiveTool: import("../types").ActiveTool | null;
65
- locked: boolean;
66
- fromSelection: boolean;
67
- } & import("../types").ActiveTool;
68
- preferredSelectionTool: {
69
- type: "selection" | "lasso";
70
- initialized: boolean;
71
- };
72
- penMode: boolean;
73
- penDetected: boolean;
74
- exportBackground: boolean;
75
- exportEmbedScene: boolean;
76
- exportWithDarkMode: boolean;
77
- exportScale: number;
78
- currentItemStrokeColor: string;
79
- currentItemBackgroundColor: string;
80
- currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
81
- currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
82
- currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
83
- currentItemRoughness: number;
84
- currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
85
- currentItemOpacity: number;
86
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
87
- currentItemFontSize: number;
88
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
89
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
90
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
91
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
92
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
93
- currentItemArrowType: "sharp" | "round" | "elbow";
94
- viewBackgroundColor: string;
95
- scrollX: number;
96
- scrollY: number;
97
- scrollConstraints: import("../types").ScrollConstraints | null;
98
- cursorButton: "up" | "down";
99
- scrolledOutside: boolean;
100
- name: string | null;
101
- isResizing: boolean;
102
- isRotating: boolean;
103
- zoom: import("../types").Zoom;
104
- openMenu: "canvas" | null;
105
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
106
- openSidebar: {
107
- name: import("../types").SidebarName;
108
- tab?: import("../types").SidebarTabName;
109
- } | null;
110
- openDialog: null | {
111
- name: "imageExport" | "help" | "jsonExport";
112
- } | {
113
- name: "settings";
114
- } | {
115
- name: "elementLinkSelector";
116
- sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
117
- } | {
118
- name: "charts";
119
- data: import("../charts").Spreadsheet;
120
- rawText: string;
121
- };
122
- defaultSidebarDockedPreference: boolean;
123
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
124
- selectedElementIds: Readonly<{
125
- [id: string]: true;
126
- }>;
127
- hoveredElementIds: Readonly<{
128
- [id: string]: true;
129
- }>;
130
- previousSelectedElementIds: {
131
- [id: string]: true;
132
- };
133
- selectedElementsAreBeingDragged: boolean;
134
- shouldCacheIgnoreZoom: boolean;
135
- toast: {
136
- message: React.ReactNode;
137
- closable?: boolean;
138
- duration?: number;
139
- } | null;
140
- theme: import("@excalidraw/element/types").Theme;
141
- gridSize: number;
142
- gridStep: number;
143
- gridModeEnabled: boolean;
144
- viewModeEnabled: boolean;
145
- viewModeOnly: boolean;
146
- selectedGroupIds: {
147
- [groupId: string]: boolean;
148
- };
149
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
150
- width: number;
151
- height: number;
152
- offsetTop: number;
153
- offsetLeft: number;
154
- fileHandle: FileSystemFileHandle | null;
155
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
156
- stats: {
157
- open: boolean;
158
- panels: number;
159
- };
160
- showHyperlinkPopup: false | "info" | "editor";
161
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
162
- snapLines: readonly import("../snapping").SnapLine[];
163
- originSnapOffset: {
164
- x: number;
165
- y: number;
166
- } | null;
167
- objectsSnapModeEnabled: boolean;
168
- isCropping: boolean;
169
- croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
170
- searchMatches: Readonly<{
171
- focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
172
- matches: readonly import("../types").SearchMatch[];
173
- }> | null;
174
- activeLockedId: string | null;
175
- lockedMultiSelections: {
176
- [groupId: string]: true;
177
- };
178
- bindMode: import("@excalidraw/element/types").BindMode;
179
- colorTopPicks: {
180
- elementStroke: readonly string[] | null;
181
- elementBackground: readonly string[] | null;
182
- bucketFill: readonly string[] | null;
183
- };
184
- };
185
- captureUpdate: "EVENTUALLY";
186
- };
187
- checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
188
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
189
- } & {
190
- keyTest?: undefined;
191
- };