react-os-shell 3.1.0 → 3.2.0
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/{Browser-FO63XIQV.js → Browser-TFQONJQX.js} +4 -4
- package/dist/{Browser-FO63XIQV.js.map → Browser-TFQONJQX.js.map} +1 -1
- package/dist/{Documents-4JRA364C.js → Documents-Z4O2GRZT.js} +3 -3
- package/dist/{Documents-4JRA364C.js.map → Documents-Z4O2GRZT.js.map} +1 -1
- package/dist/Files-WAOETZWW.js +12 -0
- package/dist/{Files-SPOMBGBL.js.map → Files-WAOETZWW.js.map} +1 -1
- package/dist/{Notepad-WSPYRQ4K.js → Notepad-LANT34EE.js} +3 -3
- package/dist/{Notepad-WSPYRQ4K.js.map → Notepad-LANT34EE.js.map} +1 -1
- package/dist/Preview-V7XEP6IS.js +8 -0
- package/dist/{Preview-3RGNW6LO.js.map → Preview-V7XEP6IS.js.map} +1 -1
- package/dist/{Spreadsheet-J2PF7T5E.js → Spreadsheet-H72MNLPY.js} +4 -4
- package/dist/{Spreadsheet-J2PF7T5E.js.map → Spreadsheet-H72MNLPY.js.map} +1 -1
- package/dist/apps/index.js +12 -12
- package/dist/{chunk-Z4AOGID4.js → chunk-2KG5N3NF.js} +3 -3
- package/dist/{chunk-Z4AOGID4.js.map → chunk-2KG5N3NF.js.map} +1 -1
- package/dist/{chunk-EJT5XFIO.js → chunk-BP64T33A.js} +8 -12
- package/dist/chunk-BP64T33A.js.map +1 -0
- package/dist/{chunk-JUGAXFZR.js → chunk-JOS6DJXX.js} +4 -4
- package/dist/{chunk-JUGAXFZR.js.map → chunk-JOS6DJXX.js.map} +1 -1
- package/dist/{chunk-W3IGMW4R.js → chunk-NPUPL2BV.js} +3 -3
- package/dist/{chunk-W3IGMW4R.js.map → chunk-NPUPL2BV.js.map} +1 -1
- package/dist/{chunk-PLYMJPLE.js → chunk-Q3URRVBM.js} +4 -4
- package/dist/{chunk-PLYMJPLE.js.map → chunk-Q3URRVBM.js.map} +1 -1
- package/dist/{chunk-BCU7WB26.js → chunk-S4EUCOF4.js} +4 -4
- package/dist/{chunk-BCU7WB26.js.map → chunk-S4EUCOF4.js.map} +1 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/dist/Files-SPOMBGBL.js +0 -12
- package/dist/Preview-3RGNW6LO.js +0 -8
- package/dist/chunk-EJT5XFIO.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toast_default } from './chunk-VENYVK3L.js';
|
|
2
|
-
import { AboutApp } from './chunk-
|
|
2
|
+
import { AboutApp } from './chunk-S4EUCOF4.js';
|
|
3
3
|
import { WindowTitle, registerModalEscapeInterceptor, getActiveModalId } from './chunk-6OWYD4O6.js';
|
|
4
4
|
import { forwardRef, useRef, useState, useMemo, useEffect, useImperativeHandle, createContext, useContext } from 'react';
|
|
5
5
|
import { createPortal } from 'react-dom';
|
|
@@ -1968,21 +1968,17 @@ function DxfPanel({ url, filename, onDownload, onEmail }) {
|
|
|
1968
1968
|
segs: null,
|
|
1969
1969
|
nodes: null
|
|
1970
1970
|
};
|
|
1971
|
-
|
|
1971
|
+
const Vector3Ctor = camera?.position?.constructor ?? scene?.position?.constructor ?? null;
|
|
1972
1972
|
let ready = false;
|
|
1973
1973
|
const pxFromScene = (sx, sy) => {
|
|
1974
|
-
if (!
|
|
1975
|
-
const v3 = new
|
|
1974
|
+
if (!Vector3Ctor) return { x: 0, y: 0 };
|
|
1975
|
+
const v3 = new Vector3Ctor(sx, sy, 0).project(camera);
|
|
1976
1976
|
const w = canvas.clientWidth, h = canvas.clientHeight;
|
|
1977
1977
|
return { x: (v3.x + 1) / 2 * w, y: (-v3.y + 1) / 2 * h };
|
|
1978
1978
|
};
|
|
1979
1979
|
const MAX_SNAP_SEGS = 4e5;
|
|
1980
|
-
(
|
|
1980
|
+
(() => {
|
|
1981
1981
|
try {
|
|
1982
|
-
THREE = await import(
|
|
1983
|
-
/* @vite-ignore */
|
|
1984
|
-
'three'
|
|
1985
|
-
);
|
|
1986
1982
|
const st = measureRef.current;
|
|
1987
1983
|
if (!st) return;
|
|
1988
1984
|
const segXY = [];
|
|
@@ -4288,6 +4284,6 @@ function ImagePanel({ url, filename, onDownload, onEmail }) {
|
|
|
4288
4284
|
] });
|
|
4289
4285
|
}
|
|
4290
4286
|
|
|
4291
|
-
export { Preview, setPdfPreview };
|
|
4292
|
-
//# sourceMappingURL=chunk-
|
|
4293
|
-
//# sourceMappingURL=chunk-
|
|
4287
|
+
export { ImageAnnotator_default, Preview, setPdfPreview };
|
|
4288
|
+
//# sourceMappingURL=chunk-BP64T33A.js.map
|
|
4289
|
+
//# sourceMappingURL=chunk-BP64T33A.js.map
|