@nous-excalidraw/math 0.18.4-beta.1 → 0.18.4-beta.3
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/element/src/typeChecks.d.ts +2 -0
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionExport.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +0 -5
- package/dist/types/excalidraw/data/blob.d.ts +2 -2
- package/dist/types/excalidraw/data/json.d.ts +1 -1
- package/dist/types/excalidraw/types.d.ts +1 -0
- package/package.json +2 -2
|
@@ -31,6 +31,8 @@ export declare const isRectangularElement: (element?: ExcalidrawElement | null)
|
|
|
31
31
|
export declare const isTextBindableContainer: (element: ExcalidrawElement | null, includeLocked?: boolean) => element is ExcalidrawTextContainer;
|
|
32
32
|
export declare const isExcalidrawElement: (element: any) => element is ExcalidrawElement;
|
|
33
33
|
export declare const isFlowchartNodeElement: (element: ExcalidrawElement) => element is ExcalidrawFlowchartNodeElement;
|
|
34
|
+
/** Elements that support an interactive hover outline along their geometry (not frame/image/embed). */
|
|
35
|
+
export declare const isHoverNativeOutlineShapeElement: (element: ExcalidrawElement | null | undefined) => boolean;
|
|
34
36
|
export declare const hasBoundTextElement: (element: ExcalidrawElement | null) => element is MarkNonNullable<ExcalidrawBindableElement, "boundElements">;
|
|
35
37
|
export declare const isBoundToContainer: (element: ExcalidrawElement | null) => element is ExcalidrawTextElementWithContainer;
|
|
36
38
|
export declare const isArrowBoundToElement: (element: ExcalidrawArrowElement) => boolean;
|
|
@@ -104,6 +104,7 @@ export declare const actionClearCanvas: {
|
|
|
104
104
|
shouldCacheIgnoreZoom: boolean;
|
|
105
105
|
exportScale: number;
|
|
106
106
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
107
|
+
selectedElementsAreBeingDragged: boolean;
|
|
107
108
|
bindMode: import("@nous-excalidraw/element/types").BindMode;
|
|
108
109
|
contextMenu: {
|
|
109
110
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -152,7 +153,6 @@ export declare const actionClearCanvas: {
|
|
|
152
153
|
previousSelectedElementIds: {
|
|
153
154
|
[id: string]: true;
|
|
154
155
|
};
|
|
155
|
-
selectedElementsAreBeingDragged: boolean;
|
|
156
156
|
toast: {
|
|
157
157
|
message: React.ReactNode;
|
|
158
158
|
closable?: boolean;
|
|
@@ -159,6 +159,7 @@ export declare const actionLoadScene: {
|
|
|
159
159
|
shouldCacheIgnoreZoom: boolean;
|
|
160
160
|
exportScale: number;
|
|
161
161
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
162
|
+
selectedElementsAreBeingDragged: boolean;
|
|
162
163
|
bindMode: import("@nous-excalidraw/element/types").BindMode;
|
|
163
164
|
gridSize: number;
|
|
164
165
|
contextMenu: {
|
|
@@ -212,7 +213,6 @@ export declare const actionLoadScene: {
|
|
|
212
213
|
previousSelectedElementIds: {
|
|
213
214
|
[id: string]: true;
|
|
214
215
|
};
|
|
215
|
-
selectedElementsAreBeingDragged: boolean;
|
|
216
216
|
toast: {
|
|
217
217
|
message: React.ReactNode;
|
|
218
218
|
closable?: boolean;
|
|
@@ -289,11 +289,6 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
289
289
|
private isDoubleClick;
|
|
290
290
|
private isIframeLikeElementCenter;
|
|
291
291
|
private updateEmbedValidationStatus;
|
|
292
|
-
/**
|
|
293
|
-
* Clip DOM embed/iframes to the axis-aligned intersection with the parent
|
|
294
|
-
* frame so overflow matches static-canvas clipping (rotated embeds: canvas only).
|
|
295
|
-
*/
|
|
296
|
-
private getEmbeddableDomClipStyleWithinFrame;
|
|
297
292
|
private updateEmbeddables;
|
|
298
293
|
private renderEmbeddables;
|
|
299
294
|
private getFrameNameDOMId;
|
|
@@ -97,6 +97,7 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
97
97
|
shouldCacheIgnoreZoom: boolean;
|
|
98
98
|
exportScale: number;
|
|
99
99
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
100
|
+
selectedElementsAreBeingDragged: boolean;
|
|
100
101
|
bindMode: import("@nous-excalidraw/element/types").BindMode;
|
|
101
102
|
gridSize: number;
|
|
102
103
|
contextMenu: {
|
|
@@ -150,7 +151,6 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
150
151
|
previousSelectedElementIds: {
|
|
151
152
|
[id: string]: true;
|
|
152
153
|
};
|
|
153
|
-
selectedElementsAreBeingDragged: boolean;
|
|
154
154
|
toast: {
|
|
155
155
|
message: React.ReactNode;
|
|
156
156
|
closable?: boolean;
|
|
@@ -265,6 +265,7 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
265
265
|
shouldCacheIgnoreZoom: boolean;
|
|
266
266
|
exportScale: number;
|
|
267
267
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
268
|
+
selectedElementsAreBeingDragged: boolean;
|
|
268
269
|
bindMode: import("@nous-excalidraw/element/types").BindMode;
|
|
269
270
|
gridSize: number;
|
|
270
271
|
contextMenu: {
|
|
@@ -318,7 +319,6 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
318
319
|
previousSelectedElementIds: {
|
|
319
320
|
[id: string]: true;
|
|
320
321
|
};
|
|
321
|
-
selectedElementsAreBeingDragged: boolean;
|
|
322
322
|
toast: {
|
|
323
323
|
message: React.ReactNode;
|
|
324
324
|
closable?: boolean;
|
|
@@ -95,6 +95,7 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
95
95
|
shouldCacheIgnoreZoom: boolean;
|
|
96
96
|
exportScale: number;
|
|
97
97
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
98
|
+
selectedElementsAreBeingDragged: boolean;
|
|
98
99
|
bindMode: import("@nous-excalidraw/element/types").BindMode;
|
|
99
100
|
gridSize: number;
|
|
100
101
|
contextMenu: {
|
|
@@ -148,7 +149,6 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
148
149
|
previousSelectedElementIds: {
|
|
149
150
|
[id: string]: true;
|
|
150
151
|
};
|
|
151
|
-
selectedElementsAreBeingDragged: boolean;
|
|
152
152
|
toast: {
|
|
153
153
|
message: React.ReactNode;
|
|
154
154
|
closable?: boolean;
|
|
@@ -155,6 +155,7 @@ export type InteractiveCanvasAppState = Readonly<_CommonCanvasAppState & {
|
|
|
155
155
|
shouldCacheIgnoreZoom: AppState["shouldCacheIgnoreZoom"];
|
|
156
156
|
exportScale: AppState["exportScale"];
|
|
157
157
|
currentItemArrowType: AppState["currentItemArrowType"];
|
|
158
|
+
selectedElementsAreBeingDragged: AppState["selectedElementsAreBeingDragged"];
|
|
158
159
|
}>;
|
|
159
160
|
export type ObservedAppState = ObservedStandaloneAppState & ObservedElementsAppState;
|
|
160
161
|
export type ObservedStandaloneAppState = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nous-excalidraw/math",
|
|
3
|
-
"version": "0.18.4-beta.
|
|
3
|
+
"version": "0.18.4-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/types/math/src/index.d.ts",
|
|
6
6
|
"main": "./dist/prod/index.js",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"build:esm": "rimraf dist && node ../../scripts/buildBase.js && yarn gen:types"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@nous-excalidraw/common": "0.18.4-beta.
|
|
64
|
+
"@nous-excalidraw/common": "0.18.4-beta.3"
|
|
65
65
|
}
|
|
66
66
|
}
|