@nous-excalidraw/excalidraw 0.18.9-beta.0 → 0.18.9-beta.2
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-DREFPI7Y.js → chunk-CYLA22NC.js} +2 -2
- package/dist/dev/{chunk-DREFPI7Y.js.map → chunk-CYLA22NC.js.map} +1 -1
- package/dist/dev/{chunk-ZSYXJOY3.js → chunk-DSYRTCAK.js} +3 -3
- package/dist/dev/components/TTDDialog/{CodeMirrorEditor-EGNDHP4F.js → CodeMirrorEditor-T4CL43BJ.js} +2 -2
- package/dist/dev/data/{image-K5NKXL4T.js → image-OB55CB4R.js} +3 -3
- package/dist/dev/index.js +37 -28
- package/dist/dev/index.js.map +3 -3
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-VOAH27GI.js → chunk-CR4SD7AI.js} +1 -1
- package/dist/prod/{chunk-DBI7PSQN.js → chunk-HFHOWOFT.js} +2 -2
- package/dist/prod/components/TTDDialog/{CodeMirrorEditor-UDWN352X.js → CodeMirrorEditor-KIQDCIKP.js} +1 -1
- package/dist/prod/data/image-5LSIY7YB.js +1 -0
- package/dist/prod/index.js +24 -24
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/element/src/frame.d.ts +3 -0
- package/dist/types/element/src/resizeElements.d.ts +2 -1
- package/dist/types/element/src/selection.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +5 -5
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionExport.d.ts +5 -5
- package/dist/types/excalidraw/actions/actionGroup.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +5 -5
- package/dist/types/excalidraw/data/blob.d.ts +10 -10
- package/dist/types/excalidraw/data/json.d.ts +5 -5
- package/package.json +4 -4
- package/dist/prod/data/image-GG4MMUAU.js +0 -1
- /package/dist/dev/{chunk-ZSYXJOY3.js.map → chunk-DSYRTCAK.js.map} +0 -0
- /package/dist/dev/components/TTDDialog/{CodeMirrorEditor-EGNDHP4F.js.map → CodeMirrorEditor-T4CL43BJ.js.map} +0 -0
- /package/dist/dev/data/{image-K5NKXL4T.js.map → image-OB55CB4R.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", DEV: true };
|
|
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", DEV: true };
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
5
|
define_import_meta_env_default
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=chunk-
|
|
7
|
+
//# sourceMappingURL=chunk-CYLA22NC.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["<define:import.meta.env>"],
|
|
4
4
|
"sourcesContent": [""],
|
|
5
|
-
"mappings": ";AAAA,uCAAC,MAAO,eAAc,6BAA8B,2CAA0C,8BAA+B,gDAA+C,sBAAuB,oCAAmC,0BAA2B,gFAA+E,wBAAyB,yBAAwB,kBAAmB,+BAA8B,mBAAoB,yBAAwB,qBAAsB,yBAAwB,0BAA2B,mRAA0S,kCAAmC,IAAG,0BAA2B,QAAO,cAAe,SAAQ,eAAgB,QAAO,mDAAoD,IAAG,2BAA4B,QAAO,wBAAyB,QAAO,qBAAsB,SAAQ,iCAAkC,wZAAuZ,iCAAkC,IAAG,UAAW,+BAA8B,aAAc,
|
|
5
|
+
"mappings": ";AAAA,uCAAC,MAAO,eAAc,6BAA8B,2CAA0C,8BAA+B,gDAA+C,sBAAuB,oCAAmC,0BAA2B,gFAA+E,wBAAyB,yBAAwB,kBAAmB,+BAA8B,mBAAoB,yBAAwB,qBAAsB,yBAAwB,0BAA2B,mRAA0S,kCAAmC,IAAG,0BAA2B,QAAO,cAAe,SAAQ,eAAgB,QAAO,mDAAoD,IAAG,2BAA4B,QAAO,wBAAyB,QAAO,qBAAsB,SAAQ,iCAAkC,wZAAuZ,iCAAkC,IAAG,UAAW,+BAA8B,aAAc,iBAAgB,KAAM,KAAI;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
define_import_meta_env_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CYLA22NC.js";
|
|
4
4
|
import {
|
|
5
5
|
__publicField
|
|
6
6
|
} from "./chunk-XDFCUUT6.js";
|
|
@@ -5092,7 +5092,7 @@ var parseFileContents = async (blob) => {
|
|
|
5092
5092
|
let contents;
|
|
5093
5093
|
if (blob.type === MIME_TYPES6.png) {
|
|
5094
5094
|
try {
|
|
5095
|
-
return await (await import("./data/image-
|
|
5095
|
+
return await (await import("./data/image-OB55CB4R.js")).decodePngMetadata(blob);
|
|
5096
5096
|
} catch (error) {
|
|
5097
5097
|
if (error.message === "INVALID") {
|
|
5098
5098
|
throw new ImageSceneDataError(
|
|
@@ -5526,4 +5526,4 @@ export {
|
|
|
5526
5526
|
createFile,
|
|
5527
5527
|
normalizeFile
|
|
5528
5528
|
};
|
|
5529
|
-
//# sourceMappingURL=chunk-
|
|
5529
|
+
//# sourceMappingURL=chunk-DSYRTCAK.js.map
|
package/dist/dev/components/TTDDialog/{CodeMirrorEditor-EGNDHP4F.js → CodeMirrorEditor-T4CL43BJ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../chunk-
|
|
1
|
+
import "../../chunk-CYLA22NC.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-T4CL43BJ.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-DSYRTCAK.js";
|
|
6
|
+
import "../chunk-CYLA22NC.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-OB55CB4R.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-DSYRTCAK.js";
|
|
69
69
|
import {
|
|
70
70
|
define_import_meta_env_default
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-CYLA22NC.js";
|
|
72
72
|
import {
|
|
73
73
|
en_default
|
|
74
74
|
} from "./chunk-4JOINNOK.js";
|
|
@@ -119,7 +119,6 @@ import {
|
|
|
119
119
|
KEYS as KEYS55,
|
|
120
120
|
APP_NAME as APP_NAME2,
|
|
121
121
|
CURSOR_TYPE as CURSOR_TYPE4,
|
|
122
|
-
DEFAULT_TRANSFORM_HANDLE_SPACING as DEFAULT_TRANSFORM_HANDLE_SPACING3,
|
|
123
122
|
DEFAULT_MAX_IMAGE_WIDTH_OR_HEIGHT,
|
|
124
123
|
DEFAULT_VERTICAL_ALIGN,
|
|
125
124
|
DRAGGING_THRESHOLD as DRAGGING_THRESHOLD3,
|
|
@@ -205,6 +204,7 @@ import {
|
|
|
205
204
|
import {
|
|
206
205
|
getObservedAppState,
|
|
207
206
|
getCommonBounds as getCommonBounds11,
|
|
207
|
+
getCommonSelectionBounds as getCommonSelectionBounds2,
|
|
208
208
|
getElementAbsoluteCoords as getElementAbsoluteCoords9,
|
|
209
209
|
bindOrUnbindBindingElements as bindOrUnbindBindingElements2,
|
|
210
210
|
fixBindingsAfterDeletion as fixBindingsAfterDeletion2,
|
|
@@ -9640,7 +9640,7 @@ var exportCanvas = async (type, elements, appState, files, {
|
|
|
9640
9640
|
let blob = canvasToBlob(tempCanvas);
|
|
9641
9641
|
if (appState.exportEmbedScene) {
|
|
9642
9642
|
blob = blob.then(
|
|
9643
|
-
(blob2) => import("./data/image-
|
|
9643
|
+
(blob2) => import("./data/image-OB55CB4R.js").then(
|
|
9644
9644
|
({ encodePngMetadata: encodePngMetadata2 }) => encodePngMetadata2({
|
|
9645
9645
|
blob: blob2,
|
|
9646
9646
|
metadata: serializeAsJSON(elements, appState, files, "local")
|
|
@@ -19345,7 +19345,7 @@ import {
|
|
|
19345
19345
|
} from "@nous-excalidraw/math";
|
|
19346
19346
|
|
|
19347
19347
|
// ../element/src/frame.ts
|
|
19348
|
-
import { arrayToMap as arrayToMap19 } from "@nous-excalidraw/common";
|
|
19348
|
+
import { arrayToMap as arrayToMap19, sizeOf as sizeOf2 } from "@nous-excalidraw/common";
|
|
19349
19349
|
import { isPointWithinBounds as isPointWithinBounds2, pointFrom as pointFrom16 } from "@nous-excalidraw/math";
|
|
19350
19350
|
|
|
19351
19351
|
// ../utils/src/bbox.ts
|
|
@@ -28464,7 +28464,7 @@ var TTDDialogInput = ({
|
|
|
28464
28464
|
setShowSpinner(true);
|
|
28465
28465
|
}
|
|
28466
28466
|
}, SPINNER_DELAY_MS);
|
|
28467
|
-
import("./components/TTDDialog/CodeMirrorEditor-
|
|
28467
|
+
import("./components/TTDDialog/CodeMirrorEditor-T4CL43BJ.js").then((mod) => {
|
|
28468
28468
|
if (!cancelled) {
|
|
28469
28469
|
setEditorState({ type: "ready", component: mod.default });
|
|
28470
28470
|
}
|
|
@@ -35156,7 +35156,6 @@ import {
|
|
|
35156
35156
|
import {
|
|
35157
35157
|
arrayToMap as arrayToMap26,
|
|
35158
35158
|
BIND_MODE_TIMEOUT,
|
|
35159
|
-
DEFAULT_TRANSFORM_HANDLE_SPACING as DEFAULT_TRANSFORM_HANDLE_SPACING2,
|
|
35160
35159
|
FRAME_STYLE as FRAME_STYLE3,
|
|
35161
35160
|
getFontString as getFontString11,
|
|
35162
35161
|
getFeatureFlag as getFeatureFlag3,
|
|
@@ -35200,7 +35199,12 @@ import {
|
|
|
35200
35199
|
isSelectedViaGroup,
|
|
35201
35200
|
selectGroupsFromGivenElements as selectGroupsFromGivenElements3
|
|
35202
35201
|
} from "@nous-excalidraw/element";
|
|
35203
|
-
import {
|
|
35202
|
+
import {
|
|
35203
|
+
getCommonBounds as getCommonBounds9,
|
|
35204
|
+
getCommonSelectionBounds,
|
|
35205
|
+
getElementAbsoluteCoords as getElementAbsoluteCoords7,
|
|
35206
|
+
getElementSelectionCoords
|
|
35207
|
+
} from "@nous-excalidraw/element";
|
|
35204
35208
|
import {
|
|
35205
35209
|
getGlobalFixedPointForBindableElement as getGlobalFixedPointForBindableElement2,
|
|
35206
35210
|
isFocusPointVisible
|
|
@@ -35955,7 +35959,7 @@ var renderSelectionBorder = (context, appState, elementProperties) => {
|
|
|
35955
35959
|
} = elementProperties;
|
|
35956
35960
|
const elementWidth = x2 - x1;
|
|
35957
35961
|
const elementHeight = y2 - y1;
|
|
35958
|
-
const padding = elementProperties.padding ??
|
|
35962
|
+
const padding = elementProperties.padding ?? 0;
|
|
35959
35963
|
const linePadding = padding / appState.zoom.value;
|
|
35960
35964
|
const lineWidth = 8 / appState.zoom.value;
|
|
35961
35965
|
const spaceWidth = 4 / appState.zoom.value;
|
|
@@ -36030,10 +36034,9 @@ var getTextHoverUnderlineLocalY = (element, zoom) => {
|
|
|
36030
36034
|
var renderHoverOutlineElement = (context, appState, element, elementsMap) => {
|
|
36031
36035
|
const hoverStrokePx = isFrameLikeElement14(element) ? HOVER_OUTLINE_STROKE_PX_FRAME : HOVER_OUTLINE_STROKE_PX_OTHER;
|
|
36032
36036
|
const lineWidthScene = hoverStrokePx / appState.zoom.value;
|
|
36033
|
-
const [x1, y1, x2, y2, cx, cy] =
|
|
36037
|
+
const [x1, y1, x2, y2, cx, cy] = getElementSelectionCoords(
|
|
36034
36038
|
element,
|
|
36035
|
-
elementsMap
|
|
36036
|
-
true
|
|
36039
|
+
elementsMap
|
|
36037
36040
|
);
|
|
36038
36041
|
const width = x2 - x1;
|
|
36039
36042
|
const height = y2 - y1;
|
|
@@ -36205,10 +36208,9 @@ var buildElementSelectionBorders = ({
|
|
|
36205
36208
|
}
|
|
36206
36209
|
}
|
|
36207
36210
|
if (selectionColors.length) {
|
|
36208
|
-
const [x1, y1, x2, y2, cx, cy] =
|
|
36211
|
+
const [x1, y1, x2, y2, cx, cy] = getElementSelectionCoords(
|
|
36209
36212
|
element,
|
|
36210
|
-
elementsMap
|
|
36211
|
-
true
|
|
36213
|
+
elementsMap
|
|
36212
36214
|
);
|
|
36213
36215
|
selections.push({
|
|
36214
36216
|
angle: element.angle,
|
|
@@ -36221,13 +36223,16 @@ var buildElementSelectionBorders = ({
|
|
|
36221
36223
|
cx,
|
|
36222
36224
|
cy,
|
|
36223
36225
|
activeEmbeddable: !isEmbeddableElement4(element) && appState.activeEmbeddable?.element === element && appState.activeEmbeddable.state === "active",
|
|
36224
|
-
padding:
|
|
36226
|
+
padding: 0
|
|
36225
36227
|
});
|
|
36226
36228
|
}
|
|
36227
36229
|
}
|
|
36228
36230
|
const addSelectionForGroupId = (groupId) => {
|
|
36229
36231
|
const groupElements = getElementsInGroup8(elementsMap, groupId);
|
|
36230
|
-
const [x1, y1, x2, y2] =
|
|
36232
|
+
const [x1, y1, x2, y2] = getCommonSelectionBounds(
|
|
36233
|
+
groupElements,
|
|
36234
|
+
elementsMap
|
|
36235
|
+
);
|
|
36231
36236
|
selections.push({
|
|
36232
36237
|
angle: 0,
|
|
36233
36238
|
x1,
|
|
@@ -36238,7 +36243,8 @@ var buildElementSelectionBorders = ({
|
|
|
36238
36243
|
dashed: true,
|
|
36239
36244
|
cx: x1 + (x2 - x1) / 2,
|
|
36240
36245
|
cy: y1 + (y2 - y1) / 2,
|
|
36241
|
-
activeEmbeddable: false
|
|
36246
|
+
activeEmbeddable: false,
|
|
36247
|
+
padding: 0
|
|
36242
36248
|
});
|
|
36243
36249
|
};
|
|
36244
36250
|
for (const groupId of getSelectedGroupIds3(appState)) {
|
|
@@ -36951,9 +36957,11 @@ var _renderInteractiveScene = ({
|
|
|
36951
36957
|
}
|
|
36952
36958
|
}
|
|
36953
36959
|
} else if (selectedElements.length > 1 && !appState.isRotating && !selectedElements.some((el) => el.locked)) {
|
|
36954
|
-
const dashedLinePadding = DEFAULT_TRANSFORM_HANDLE_SPACING2 * 2 / appState.zoom.value;
|
|
36955
36960
|
context.fillStyle = "#fff";
|
|
36956
|
-
const [x1, y1, x2, y2] =
|
|
36961
|
+
const [x1, y1, x2, y2] = getCommonSelectionBounds(
|
|
36962
|
+
selectedElements,
|
|
36963
|
+
elementsMap
|
|
36964
|
+
);
|
|
36957
36965
|
const initialLineDash = context.getLineDash();
|
|
36958
36966
|
context.setLineDash([2 / appState.zoom.value]);
|
|
36959
36967
|
const lineWidth = context.lineWidth;
|
|
@@ -36961,10 +36969,10 @@ var _renderInteractiveScene = ({
|
|
|
36961
36969
|
context.strokeStyle = selectionColor;
|
|
36962
36970
|
strokeRectWithRotation_simple(
|
|
36963
36971
|
context,
|
|
36964
|
-
x1
|
|
36965
|
-
y1
|
|
36966
|
-
x2 - x1
|
|
36967
|
-
y2 - y1
|
|
36972
|
+
x1,
|
|
36973
|
+
y1,
|
|
36974
|
+
x2 - x1,
|
|
36975
|
+
y2 - y1,
|
|
36968
36976
|
(x1 + x2) / 2,
|
|
36969
36977
|
(y1 + y2) / 2,
|
|
36970
36978
|
0
|
|
@@ -38166,7 +38174,6 @@ var App = class _App extends React46.Component {
|
|
|
38166
38174
|
this.updateFrameHoverStateFromSceneCoords(p.x, p.y);
|
|
38167
38175
|
},
|
|
38168
38176
|
onPointerDown: (event) => this.handleCanvasPointerDown(event),
|
|
38169
|
-
onWheel: (event) => this.handleWheel(event),
|
|
38170
38177
|
onContextMenu: this.handleCanvasContextMenu,
|
|
38171
38178
|
onDoubleClick: () => {
|
|
38172
38179
|
this.setState({
|
|
@@ -45383,9 +45390,11 @@ var App = class _App extends React46.Component {
|
|
|
45383
45390
|
DEFAULT_COLLISION_THRESHOLD / this.state.zoom.value,
|
|
45384
45391
|
1
|
|
45385
45392
|
);
|
|
45386
|
-
const
|
|
45387
|
-
|
|
45388
|
-
|
|
45393
|
+
const [x1, y1, x2, y2] = getCommonSelectionBounds2(
|
|
45394
|
+
selectedElements,
|
|
45395
|
+
this.scene.getNonDeletedElementsMap()
|
|
45396
|
+
);
|
|
45397
|
+
return point.x > x1 - threshold && point.x < x2 + threshold && point.y > y1 - threshold && point.y < y2 + threshold;
|
|
45389
45398
|
}
|
|
45390
45399
|
getCurrentItemRoundness(elementType) {
|
|
45391
45400
|
return this.state.currentItemRoundness === "round" ? {
|