@nous-excalidraw/excalidraw 0.18.9-beta.21 → 0.18.9-beta.22
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/{chunk-FGNDYJ2B.js → chunk-5ERE5TTW.js} +2 -2
- package/dist/dev/{chunk-6PNL5SR6.js → chunk-DRBGEADH.js} +3 -3
- package/dist/dev/components/TTDDialog/{CodeMirrorEditor-LUWBT76B.js → CodeMirrorEditor-ZR77XBIT.js} +2 -2
- package/dist/dev/data/{image-5IO6LC6F.js → image-QGE3DJEP.js} +3 -3
- package/dist/dev/index.js +5 -36
- package/dist/dev/index.js.map +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-YAGSAM37.js → chunk-JWDEJ6N5.js} +2 -2
- package/dist/prod/{chunk-TFET7NMD.js → chunk-MW6O7B5J.js} +1 -1
- package/dist/prod/components/TTDDialog/{CodeMirrorEditor-QL4RYZUZ.js → CodeMirrorEditor-PQAT7WNN.js} +1 -1
- package/dist/prod/data/image-F5QONZ27.js +1 -0
- package/dist/prod/index.js +4 -4
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/components/App.d.ts +1 -5
- package/dist/types/excalidraw/scene/types.d.ts +0 -3
- package/dist/types/excalidraw/types.d.ts +1 -3
- package/package.json +1 -1
- package/dist/prod/data/image-LRQMDLTI.js +0 -1
- /package/dist/dev/{chunk-FGNDYJ2B.js.map → chunk-5ERE5TTW.js.map} +0 -0
- /package/dist/dev/{chunk-6PNL5SR6.js.map → chunk-DRBGEADH.js.map} +0 -0
- /package/dist/dev/components/TTDDialog/{CodeMirrorEditor-LUWBT76B.js.map → CodeMirrorEditor-ZR77XBIT.js.map} +0 -0
- /package/dist/dev/data/{image-5IO6LC6F.js.map → image-QGE3DJEP.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// <define:import.meta.env>
|
|
2
|
-
var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@nous-excalidraw/excalidraw", PKG_VERSION: "0.18.9-beta.
|
|
2
|
+
var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@nous-excalidraw/excalidraw", PKG_VERSION: "0.18.9-beta.21", DEV: true };
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
5
|
define_import_meta_env_default
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=chunk-
|
|
7
|
+
//# sourceMappingURL=chunk-5ERE5TTW.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
define_import_meta_env_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5ERE5TTW.js";
|
|
4
4
|
import {
|
|
5
5
|
__publicField
|
|
6
6
|
} from "./chunk-XDFCUUT6.js";
|
|
@@ -5112,7 +5112,7 @@ var parseFileContents = async (blob) => {
|
|
|
5112
5112
|
let contents;
|
|
5113
5113
|
if (blob.type === MIME_TYPES6.png) {
|
|
5114
5114
|
try {
|
|
5115
|
-
return await (await import("./data/image-
|
|
5115
|
+
return await (await import("./data/image-QGE3DJEP.js")).decodePngMetadata(blob);
|
|
5116
5116
|
} catch (error) {
|
|
5117
5117
|
if (error.message === "INVALID") {
|
|
5118
5118
|
throw new ImageSceneDataError(
|
|
@@ -5546,4 +5546,4 @@ export {
|
|
|
5546
5546
|
createFile,
|
|
5547
5547
|
normalizeFile
|
|
5548
5548
|
};
|
|
5549
|
-
//# sourceMappingURL=chunk-
|
|
5549
|
+
//# sourceMappingURL=chunk-DRBGEADH.js.map
|
package/dist/dev/components/TTDDialog/{CodeMirrorEditor-LUWBT76B.js → CodeMirrorEditor-ZR77XBIT.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../chunk-
|
|
1
|
+
import "../../chunk-5ERE5TTW.js";
|
|
2
2
|
import "../../chunk-XDFCUUT6.js";
|
|
3
3
|
|
|
4
4
|
// components/TTDDialog/CodeMirrorEditor.tsx
|
|
@@ -256,4 +256,4 @@ var CodeMirrorEditor_default = CodeMirrorEditor;
|
|
|
256
256
|
export {
|
|
257
257
|
CodeMirrorEditor_default as default
|
|
258
258
|
};
|
|
259
|
-
//# sourceMappingURL=CodeMirrorEditor-
|
|
259
|
+
//# sourceMappingURL=CodeMirrorEditor-ZR77XBIT.js.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
decodePngMetadata,
|
|
3
3
|
encodePngMetadata,
|
|
4
4
|
getTEXtChunk
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-DRBGEADH.js";
|
|
6
|
+
import "../chunk-5ERE5TTW.js";
|
|
7
7
|
import "../chunk-XDFCUUT6.js";
|
|
8
8
|
export {
|
|
9
9
|
decodePngMetadata,
|
|
10
10
|
encodePngMetadata,
|
|
11
11
|
getTEXtChunk
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=image-
|
|
13
|
+
//# sourceMappingURL=image-QGE3DJEP.js.map
|
package/dist/dev/index.js
CHANGED
|
@@ -65,10 +65,10 @@ import {
|
|
|
65
65
|
serializeAsJSON,
|
|
66
66
|
serializeLibraryAsJSON,
|
|
67
67
|
strokeRectWithRotation_simple
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-DRBGEADH.js";
|
|
69
69
|
import {
|
|
70
70
|
define_import_meta_env_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-5ERE5TTW.js";
|
|
72
72
|
import {
|
|
73
73
|
en_default
|
|
74
74
|
} from "./chunk-IXBA2ET3.js";
|
|
@@ -9725,7 +9725,7 @@ var exportCanvas = async (type, elements, appState, files, {
|
|
|
9725
9725
|
let blob = canvasToBlob(tempCanvas);
|
|
9726
9726
|
if (appState.exportEmbedScene) {
|
|
9727
9727
|
blob = blob.then(
|
|
9728
|
-
(blob2) => import("./data/image-
|
|
9728
|
+
(blob2) => import("./data/image-QGE3DJEP.js").then(
|
|
9729
9729
|
({ encodePngMetadata: encodePngMetadata2 }) => encodePngMetadata2({
|
|
9730
9730
|
blob: blob2,
|
|
9731
9731
|
metadata: serializeAsJSON(elements, appState, files, "local")
|
|
@@ -28781,7 +28781,7 @@ var TTDDialogInput = ({
|
|
|
28781
28781
|
setShowSpinner(true);
|
|
28782
28782
|
}
|
|
28783
28783
|
}, SPINNER_DELAY_MS);
|
|
28784
|
-
import("./components/TTDDialog/CodeMirrorEditor-
|
|
28784
|
+
import("./components/TTDDialog/CodeMirrorEditor-ZR77XBIT.js").then((mod) => {
|
|
28785
28785
|
if (!cancelled) {
|
|
28786
28786
|
setEditorState({ type: "ready", component: mod.default });
|
|
28787
28787
|
}
|
|
@@ -36945,8 +36945,7 @@ var renderTransformHandles = (context, renderConfig, appState, transformHandles,
|
|
|
36945
36945
|
fillCircle(context, x + width / 2, y + height / 2, width / 2, true);
|
|
36946
36946
|
} else if (CORNER_TRANSFORM_HANDLE_TYPES.has(handleType)) {
|
|
36947
36947
|
const cornerStroke = renderConfig.selectionColor || DEFAULT_SELECTION_COLOR;
|
|
36948
|
-
|
|
36949
|
-
context.fillStyle = isHovered ? cornerStroke : "#ffffff";
|
|
36948
|
+
context.fillStyle = "#ffffff";
|
|
36950
36949
|
context.save();
|
|
36951
36950
|
context.translate(x + width / 2, y + height / 2);
|
|
36952
36951
|
context.rotate(angle);
|
|
@@ -37624,7 +37623,6 @@ var InteractiveCanvas = (props) => {
|
|
|
37624
37623
|
remotePointerUsernames,
|
|
37625
37624
|
remotePointerUserStates,
|
|
37626
37625
|
selectionColor,
|
|
37627
|
-
hoveredCornerTransformHandleType: props.app.hoveredCornerTransformHandleType,
|
|
37628
37626
|
renderScrollbars: props.renderScrollbars,
|
|
37629
37627
|
// NOTE not memoized on so we don't rerender on cursor move
|
|
37630
37628
|
lastViewportPosition: props.app.lastViewportPosition
|
|
@@ -38284,7 +38282,6 @@ var _App = class _App extends React46.Component {
|
|
|
38284
38282
|
__publicField(this, "lastPointerMoveEvent", null);
|
|
38285
38283
|
/** current frame pointer cords */
|
|
38286
38284
|
__publicField(this, "lastPointerMoveCoords", null);
|
|
38287
|
-
__publicField(this, "hoveredCornerTransformHandleType", null);
|
|
38288
38285
|
__publicField(this, "lastCompletedCanvasClicks", []);
|
|
38289
38286
|
/** previous frame pointer coords */
|
|
38290
38287
|
__publicField(this, "previousPointerMoveCoords", null);
|
|
@@ -40856,25 +40853,6 @@ var _App = class _App extends React46.Component {
|
|
|
40856
40853
|
);
|
|
40857
40854
|
return frames.length ? frames[frames.length - 1] : null;
|
|
40858
40855
|
});
|
|
40859
|
-
__publicField(this, "getHoveredCornerTransformHandleType", (handleType) => {
|
|
40860
|
-
if (handleType === "nw" || handleType === "ne" || handleType === "sw" || handleType === "se") {
|
|
40861
|
-
return handleType;
|
|
40862
|
-
}
|
|
40863
|
-
return null;
|
|
40864
|
-
});
|
|
40865
|
-
__publicField(this, "syncHoveredCornerTransformHandleType", (handleType) => {
|
|
40866
|
-
const cornerHandleType = this.getHoveredCornerTransformHandleType(handleType);
|
|
40867
|
-
if (cornerHandleType !== this.hoveredCornerTransformHandleType) {
|
|
40868
|
-
this.hoveredCornerTransformHandleType = cornerHandleType;
|
|
40869
|
-
this.triggerRender(true);
|
|
40870
|
-
}
|
|
40871
|
-
});
|
|
40872
|
-
__publicField(this, "clearHoveredCornerTransformHandleType", () => {
|
|
40873
|
-
if (this.hoveredCornerTransformHandleType !== null) {
|
|
40874
|
-
this.hoveredCornerTransformHandleType = null;
|
|
40875
|
-
this.triggerRender(true);
|
|
40876
|
-
}
|
|
40877
|
-
});
|
|
40878
40856
|
__publicField(this, "clearHoverOutlineIfNeeded", () => {
|
|
40879
40857
|
if (this.state.hoverOutlineElementId != null || this.state.hoveredFrameId != null) {
|
|
40880
40858
|
this.setState({
|
|
@@ -41019,7 +40997,6 @@ var _App = class _App extends React46.Component {
|
|
|
41019
40997
|
}
|
|
41020
40998
|
if (isHoldingSpace || isPanning || isDraggingScrollBar || isHandToolActive(this.state)) {
|
|
41021
40999
|
this.clearHoverOutlineIfNeeded();
|
|
41022
|
-
this.clearHoveredCornerTransformHandleType();
|
|
41023
41000
|
return;
|
|
41024
41001
|
}
|
|
41025
41002
|
const isPointerOverScrollBars = isOverScrollBars(
|
|
@@ -41254,7 +41231,6 @@ var _App = class _App extends React46.Component {
|
|
|
41254
41231
|
}
|
|
41255
41232
|
}
|
|
41256
41233
|
this.clearHoverOutlineIfNeeded();
|
|
41257
|
-
this.clearHoveredCornerTransformHandleType();
|
|
41258
41234
|
return;
|
|
41259
41235
|
}
|
|
41260
41236
|
if (this.state.activeTool.type === "arrow") {
|
|
@@ -41286,7 +41262,6 @@ var _App = class _App extends React46.Component {
|
|
|
41286
41262
|
// over a link/embeddable, we change the cursor
|
|
41287
41263
|
!isLaserTool && this.state.activeTool.type !== "selection" && this.state.activeTool.type !== "lasso" && this.state.activeTool.type !== "text" && this.state.activeTool.type !== "eraser") {
|
|
41288
41264
|
this.clearHoverOutlineIfNeeded();
|
|
41289
|
-
this.clearHoveredCornerTransformHandleType();
|
|
41290
41265
|
return;
|
|
41291
41266
|
}
|
|
41292
41267
|
const elements = this.scene.getNonDeletedElements();
|
|
@@ -41294,7 +41269,6 @@ var _App = class _App extends React46.Component {
|
|
|
41294
41269
|
if (this.isHittingTextAutoResizeHandle(selectedElements, scenePointer)) {
|
|
41295
41270
|
setCursor(this.interactiveCanvas, CURSOR_TYPE4.POINTER);
|
|
41296
41271
|
this.clearHoverOutlineIfNeeded();
|
|
41297
|
-
this.clearHoveredCornerTransformHandleType();
|
|
41298
41272
|
return;
|
|
41299
41273
|
}
|
|
41300
41274
|
if (selectedElements.length === 1 && !isOverScrollBar && !this.state.selectedLinearElement?.isEditing) {
|
|
@@ -41324,9 +41298,6 @@ var _App = class _App extends React46.Component {
|
|
|
41324
41298
|
getCursorForResizingElement(elementWithTransformHandleType)
|
|
41325
41299
|
);
|
|
41326
41300
|
this.clearHoverOutlineIfNeeded();
|
|
41327
|
-
this.syncHoveredCornerTransformHandleType(
|
|
41328
|
-
elementWithTransformHandleType.transformHandleType
|
|
41329
|
-
);
|
|
41330
41301
|
return;
|
|
41331
41302
|
}
|
|
41332
41303
|
}
|
|
@@ -41347,11 +41318,9 @@ var _App = class _App extends React46.Component {
|
|
|
41347
41318
|
})
|
|
41348
41319
|
);
|
|
41349
41320
|
this.clearHoverOutlineIfNeeded();
|
|
41350
|
-
this.syncHoveredCornerTransformHandleType(transformHandleType);
|
|
41351
41321
|
return;
|
|
41352
41322
|
}
|
|
41353
41323
|
}
|
|
41354
|
-
this.clearHoveredCornerTransformHandleType();
|
|
41355
41324
|
if (isEraserActive(this.state)) {
|
|
41356
41325
|
this.clearHoverOutlineIfNeeded();
|
|
41357
41326
|
return;
|