viral-viewer-2 6.3.0 → 6.3.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/components/loader/viral-revit.loader.d.ts +2 -2
- package/dist/index.mjs +146 -144
- package/dist/threejs-addon/n8ao/post-processing.d.ts +109 -109
- package/package.json +1 -1
- package/dist/components/animation/viral-animation.js +0 -71
- package/dist/components/animation/viral-animation.js.map +0 -1
- package/dist/components/bvh/viral-bvh.js +0 -19
- package/dist/components/bvh/viral-bvh.js.map +0 -1
- package/dist/components/camera/viral-camera.js +0 -207
- package/dist/components/camera/viral-camera.js.map +0 -1
- package/dist/components/compress/viral-compress.processor.js +0 -13
- package/dist/components/compress/viral-compress.processor.js.map +0 -1
- package/dist/components/custom-objects/index.js +0 -6
- package/dist/components/custom-objects/index.js.map +0 -1
- package/dist/components/custom-objects/viral-instanced-mesh.js +0 -203
- package/dist/components/custom-objects/viral-instanced-mesh.js.map +0 -1
- package/dist/components/custom-objects/viral-mesh.js +0 -25
- package/dist/components/custom-objects/viral-mesh.js.map +0 -1
- package/dist/components/data-manager/viral-data-manager.js +0 -35
- package/dist/components/data-manager/viral-data-manager.js.map +0 -1
- package/dist/components/event-handler/base/event-dispatcher.js +0 -35
- package/dist/components/event-handler/base/event-dispatcher.js.map +0 -1
- package/dist/components/event-handler/keyboard/viral-keyboard.js +0 -78
- package/dist/components/event-handler/keyboard/viral-keyboard.js.map +0 -1
- package/dist/components/event-handler/mouse/viral-mouse.js +0 -239
- package/dist/components/event-handler/mouse/viral-mouse.js.map +0 -1
- package/dist/components/event-handler/viral-centralized-event-handler.js +0 -186
- package/dist/components/event-handler/viral-centralized-event-handler.js.map +0 -1
- package/dist/components/event-handler/viral-lifecycle-event-handler.js +0 -55
- package/dist/components/event-handler/viral-lifecycle-event-handler.js.map +0 -1
- package/dist/components/loader/viral-point-cloud.loader.js +0 -33
- package/dist/components/loader/viral-point-cloud.loader.js.map +0 -1
- package/dist/components/loader/viral-revit.loader.js +0 -344
- package/dist/components/loader/viral-revit.loader.js.map +0 -1
- package/dist/components/loader/viral-three.loader.js +0 -20
- package/dist/components/loader/viral-three.loader.js.map +0 -1
- package/dist/components/loader/viral.loader.js +0 -16
- package/dist/components/loader/viral.loader.js.map +0 -1
- package/dist/components/material/viral-material-manager.js +0 -60
- package/dist/components/material/viral-material-manager.js.map +0 -1
- package/dist/components/post-processing/post-processing-renderer.js +0 -46
- package/dist/components/post-processing/post-processing-renderer.js.map +0 -1
- package/dist/components/renderer/viral-renderer.js +0 -55
- package/dist/components/renderer/viral-renderer.js.map +0 -1
- package/dist/components/scene/viral-scene.js +0 -131
- package/dist/components/scene/viral-scene.js.map +0 -1
- package/dist/components/stats/viral-stats.js +0 -17
- package/dist/components/stats/viral-stats.js.map +0 -1
- package/dist/components/visibility-manager/viral-visibility-manager.js +0 -175
- package/dist/components/visibility-manager/viral-visibility-manager.js.map +0 -1
- package/dist/components/worker/base/worker-pool.js +0 -68
- package/dist/components/worker/base/worker-pool.js.map +0 -1
- package/dist/components/worker/base/worker-thread.js +0 -35
- package/dist/components/worker/base/worker-thread.js.map +0 -1
- package/dist/components/worker/fetch-data.worker.js +0 -31
- package/dist/components/worker/fetch-data.worker.js.map +0 -1
- package/dist/components/worker/load-element-by-material-v2.worker.js +0 -80
- package/dist/components/worker/load-element-by-material-v2.worker.js.map +0 -1
- package/dist/components/worker/load-element-by-material.worker.js +0 -59
- package/dist/components/worker/load-element-by-material.worker.js.map +0 -1
- package/dist/components/worker/load-element-standalone.worker.js +0 -109
- package/dist/components/worker/load-element-standalone.worker.js.map +0 -1
- package/dist/components/worker/viral-viewer-2.worker.js +0 -127
- package/dist/components/worker/viral-viewer-2.worker.js.map +0 -1
- package/dist/components/worker/viral-viewer-3.worker.js +0 -82
- package/dist/components/worker/viral-viewer-3.worker.js.map +0 -1
- package/dist/components/worker/viral-viewer.worker.js +0 -107
- package/dist/components/worker/viral-viewer.worker.js.map +0 -1
- package/dist/components/worker-script/fetch-data-worker.script.js +0 -56
- package/dist/components/worker-script/fetch-data-worker.script.js.map +0 -1
- package/dist/components/worker-script/load-element-by-material.script.js +0 -131
- package/dist/components/worker-script/load-element-by-material.script.js.map +0 -1
- package/dist/components/worker-script/load-element-standalone.script.js +0 -34172
- package/dist/components/worker-script/load-element-standalone.script.js.map +0 -1
- package/dist/components/worker-script/load-model-worker-2.script.js +0 -2704
- package/dist/components/worker-script/load-model-worker-2.script.js.map +0 -1
- package/dist/components/worker-script/load-model-worker.script.js +0 -148
- package/dist/components/worker-script/load-model-worker.script.js.map +0 -1
- package/dist/components/worker-script/material-aproach/load-element-by-material-instanced-mesh.script.js +0 -34152
- package/dist/components/worker-script/material-aproach/load-element-by-material-instanced-mesh.script.js.map +0 -1
- package/dist/components/worker-script/material-aproach/load-element-by-material-mesh.script.js +0 -127
- package/dist/components/worker-script/material-aproach/load-element-by-material-mesh.script.js.map +0 -1
- package/dist/components/worker-script/threejs.types.js +0 -34162
- package/dist/components/worker-script/threejs.types.js.map +0 -1
- package/dist/const/colors.js +0 -39
- package/dist/const/colors.js.map +0 -1
- package/dist/const/fonts.js +0 -17
- package/dist/const/fonts.js.map +0 -1
- package/dist/const/icons.js +0 -11
- package/dist/const/icons.js.map +0 -1
- package/dist/gui/context-menu/viral-context-menu.js +0 -78
- package/dist/gui/context-menu/viral-context-menu.js.map +0 -1
- package/dist/gui/draggable-modal/viral-draggable-modal.js +0 -167
- package/dist/gui/draggable-modal/viral-draggable-modal.js.map +0 -1
- package/dist/gui/fonts/fonts.js +0 -20
- package/dist/gui/fonts/fonts.js.map +0 -1
- package/dist/gui/navigation-cube/components/cube-camera.js +0 -74
- package/dist/gui/navigation-cube/components/cube-camera.js.map +0 -1
- package/dist/gui/navigation-cube/components/cube-renderer.js +0 -31
- package/dist/gui/navigation-cube/components/cube-renderer.js.map +0 -1
- package/dist/gui/navigation-cube/components/cube-scene.js +0 -546
- package/dist/gui/navigation-cube/components/cube-scene.js.map +0 -1
- package/dist/gui/navigation-cube/components/cube.mouse.js +0 -109
- package/dist/gui/navigation-cube/components/cube.mouse.js.map +0 -1
- package/dist/gui/navigation-cube/viral-navigation-cube.js +0 -50
- package/dist/gui/navigation-cube/viral-navigation-cube.js.map +0 -1
- package/dist/gui/spinner/viral-spinner.js +0 -102
- package/dist/gui/spinner/viral-spinner.js.map +0 -1
- package/dist/gui/tools/tools/viral-tool-ambient-occlusion.js +0 -25
- package/dist/gui/tools/tools/viral-tool-ambient-occlusion.js.map +0 -1
- package/dist/gui/tools/tools/viral-tool-dark-mode.js +0 -21
- package/dist/gui/tools/tools/viral-tool-dark-mode.js.map +0 -1
- package/dist/gui/tools/tools/viral-tool-elevation.js +0 -30
- package/dist/gui/tools/tools/viral-tool-elevation.js.map +0 -1
- package/dist/gui/tools/tools/viral-tool-export-scene.js +0 -36
- package/dist/gui/tools/tools/viral-tool-export-scene.js.map +0 -1
- package/dist/gui/tools/tools/viral-tool-measure.js +0 -243
- package/dist/gui/tools/tools/viral-tool-measure.js.map +0 -1
- package/dist/gui/tools/tools/viral-tool-sunlight.js +0 -46
- package/dist/gui/tools/tools/viral-tool-sunlight.js.map +0 -1
- package/dist/gui/tools/viral-tools.js +0 -213
- package/dist/gui/tools/viral-tools.js.map +0 -1
- package/dist/index.js +0 -21
- package/dist/index.js.map +0 -1
- package/dist/services/local-storage.service.js +0 -57
- package/dist/services/local-storage.service.js.map +0 -1
- package/dist/threejs-addon/n8ao/n8ao.js +0 -1952
- package/dist/threejs-addon/n8ao/n8ao.js.map +0 -1
- package/dist/threejs-addon/n8ao/post-processing.js +0 -15145
- package/dist/threejs-addon/n8ao/post-processing.js.map +0 -1
- package/dist/threejs-addon/stats.js +0 -102
- package/dist/threejs-addon/stats.js.map +0 -1
- package/dist/types.js +0 -173
- package/dist/types.js.map +0 -1
- package/dist/utils/html.js +0 -12
- package/dist/utils/html.js.map +0 -1
- package/dist/utils/index.js +0 -10
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/log.js +0 -14
- package/dist/utils/log.js.map +0 -1
- package/dist/utils/threejs.js +0 -44
- package/dist/utils/threejs.js.map +0 -1
- package/dist/viral-viewer-api.js +0 -76
- package/dist/viral-viewer-api.js.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1213,7 +1213,7 @@ const xb = 0, sy = 1, ry = 2, {
|
|
|
1213
1213
|
Z_MEM_ERROR: oy,
|
|
1214
1214
|
Z_BUF_ERROR: _b,
|
|
1215
1215
|
Z_DEFLATED: wp
|
|
1216
|
-
} = Zl, Gh = 16180, _p = 16181, Mp = 16182, Sp = 16183, Ap = 16184, Tp = 16185, Ep = 16186, Pp = 16187, Cp = 16188, Rp = 16189, Lh = 16190, Os = 16191, xu = 16192, Lp = 16193, vu = 16194, Ip = 16195, Dp = 16196, Op = 16197, Np = 16198, pc = 16199, mc = 16200, Bp = 16201, zp = 16202, Up = 16203, kp = 16204, Fp = 16205, bu = 16206, Xp = 16207, Vp = 16208,
|
|
1216
|
+
} = Zl, Gh = 16180, _p = 16181, Mp = 16182, Sp = 16183, Ap = 16184, Tp = 16185, Ep = 16186, Pp = 16187, Cp = 16188, Rp = 16189, Lh = 16190, Os = 16191, xu = 16192, Lp = 16193, vu = 16194, Ip = 16195, Dp = 16196, Op = 16197, Np = 16198, pc = 16199, mc = 16200, Bp = 16201, zp = 16202, Up = 16203, kp = 16204, Fp = 16205, bu = 16206, Xp = 16207, Vp = 16208, Pi = 16209, ly = 16210, cy = 16211, Mb = 852, Sb = 592, Ab = 15, Tb = Ab, Hp = (n) => (n >>> 24 & 255) + (n >>> 8 & 65280) + ((n & 65280) << 8) + ((n & 255) << 24);
|
|
1217
1217
|
function Eb() {
|
|
1218
1218
|
this.strm = null, this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
1219
1219
|
}
|
|
@@ -1298,15 +1298,15 @@ const Cb = (n) => {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
if (t.head && (t.head.done = !1), !(t.wrap & 1) || /* check if zlib header allowed */
|
|
1300
1300
|
(((u & 255) << 8) + (u >> 8)) % 31) {
|
|
1301
|
-
n.msg = "incorrect header check", t.mode =
|
|
1301
|
+
n.msg = "incorrect header check", t.mode = Pi;
|
|
1302
1302
|
break;
|
|
1303
1303
|
}
|
|
1304
1304
|
if ((u & 15) !== wp) {
|
|
1305
|
-
n.msg = "unknown compression method", t.mode =
|
|
1305
|
+
n.msg = "unknown compression method", t.mode = Pi;
|
|
1306
1306
|
break;
|
|
1307
1307
|
}
|
|
1308
1308
|
if (u >>>= 4, f -= 4, F = (u & 15) + 8, t.wbits === 0 && (t.wbits = F), F > 15 || F > t.wbits) {
|
|
1309
|
-
n.msg = "invalid window size", t.mode =
|
|
1309
|
+
n.msg = "invalid window size", t.mode = Pi;
|
|
1310
1310
|
break;
|
|
1311
1311
|
}
|
|
1312
1312
|
t.dmax = 1 << t.wbits, t.flags = 0, n.adler = t.check = 1, t.mode = u & 512 ? Rp : Os, u = 0, f = 0;
|
|
@@ -1318,11 +1318,11 @@ const Cb = (n) => {
|
|
|
1318
1318
|
l--, u += i[r++] << f, f += 8;
|
|
1319
1319
|
}
|
|
1320
1320
|
if (t.flags = u, (t.flags & 255) !== wp) {
|
|
1321
|
-
n.msg = "unknown compression method", t.mode =
|
|
1321
|
+
n.msg = "unknown compression method", t.mode = Pi;
|
|
1322
1322
|
break;
|
|
1323
1323
|
}
|
|
1324
1324
|
if (t.flags & 57344) {
|
|
1325
|
-
n.msg = "unknown header flags set", t.mode =
|
|
1325
|
+
n.msg = "unknown header flags set", t.mode = Pi;
|
|
1326
1326
|
break;
|
|
1327
1327
|
}
|
|
1328
1328
|
t.head && (t.head.text = u >> 8 & 1), t.flags & 512 && t.wrap & 4 && (B[0] = u & 255, B[1] = u >>> 8 & 255, t.check = rn(t.check, B, 2, 0)), u = 0, f = 0, t.mode = Mp;
|
|
@@ -1398,7 +1398,7 @@ const Cb = (n) => {
|
|
|
1398
1398
|
l--, u += i[r++] << f, f += 8;
|
|
1399
1399
|
}
|
|
1400
1400
|
if (t.wrap & 4 && u !== (t.check & 65535)) {
|
|
1401
|
-
n.msg = "header crc mismatch", t.mode =
|
|
1401
|
+
n.msg = "header crc mismatch", t.mode = Pi;
|
|
1402
1402
|
break;
|
|
1403
1403
|
}
|
|
1404
1404
|
u = 0, f = 0;
|
|
@@ -1443,7 +1443,7 @@ const Cb = (n) => {
|
|
|
1443
1443
|
t.mode = Dp;
|
|
1444
1444
|
break;
|
|
1445
1445
|
case 3:
|
|
1446
|
-
n.msg = "invalid block type", t.mode =
|
|
1446
|
+
n.msg = "invalid block type", t.mode = Pi;
|
|
1447
1447
|
}
|
|
1448
1448
|
u >>>= 2, f -= 2;
|
|
1449
1449
|
break;
|
|
@@ -1454,7 +1454,7 @@ const Cb = (n) => {
|
|
|
1454
1454
|
l--, u += i[r++] << f, f += 8;
|
|
1455
1455
|
}
|
|
1456
1456
|
if ((u & 65535) !== (u >>> 16 ^ 65535)) {
|
|
1457
|
-
n.msg = "invalid stored block lengths", t.mode =
|
|
1457
|
+
n.msg = "invalid stored block lengths", t.mode = Pi;
|
|
1458
1458
|
break;
|
|
1459
1459
|
}
|
|
1460
1460
|
if (t.length = u & 65535, u = 0, f = 0, t.mode = vu, e === fc)
|
|
@@ -1477,7 +1477,7 @@ const Cb = (n) => {
|
|
|
1477
1477
|
l--, u += i[r++] << f, f += 8;
|
|
1478
1478
|
}
|
|
1479
1479
|
if (t.nlen = (u & 31) + 257, u >>>= 5, f -= 5, t.ndist = (u & 31) + 1, u >>>= 5, f -= 5, t.ncode = (u & 15) + 4, u >>>= 4, f -= 4, t.nlen > 286 || t.ndist > 30) {
|
|
1480
|
-
n.msg = "too many length or distance symbols", t.mode =
|
|
1480
|
+
n.msg = "too many length or distance symbols", t.mode = Pi;
|
|
1481
1481
|
break;
|
|
1482
1482
|
}
|
|
1483
1483
|
t.have = 0, t.mode = Op;
|
|
@@ -1493,7 +1493,7 @@ const Cb = (n) => {
|
|
|
1493
1493
|
for (; t.have < 19; )
|
|
1494
1494
|
t.lens[le[t.have++]] = 0;
|
|
1495
1495
|
if (t.lencode = t.lendyn, t.lenbits = 7, X = { bits: t.lenbits }, W = Sl(xb, t.lens, 0, 19, t.lencode, 0, t.work, X), t.lenbits = X.bits, W) {
|
|
1496
|
-
n.msg = "invalid code lengths set", t.mode =
|
|
1496
|
+
n.msg = "invalid code lengths set", t.mode = Pi;
|
|
1497
1497
|
break;
|
|
1498
1498
|
}
|
|
1499
1499
|
t.have = 0, t.mode = Np;
|
|
@@ -1514,7 +1514,7 @@ const Cb = (n) => {
|
|
|
1514
1514
|
l--, u += i[r++] << f, f += 8;
|
|
1515
1515
|
}
|
|
1516
1516
|
if (u >>>= v, f -= v, t.have === 0) {
|
|
1517
|
-
n.msg = "invalid bit length repeat", t.mode =
|
|
1517
|
+
n.msg = "invalid bit length repeat", t.mode = Pi;
|
|
1518
1518
|
break;
|
|
1519
1519
|
}
|
|
1520
1520
|
F = t.lens[t.have - 1], x = 3 + (u & 3), u >>>= 2, f -= 2;
|
|
@@ -1534,25 +1534,25 @@ const Cb = (n) => {
|
|
|
1534
1534
|
u >>>= v, f -= v, F = 0, x = 11 + (u & 127), u >>>= 7, f -= 7;
|
|
1535
1535
|
}
|
|
1536
1536
|
if (t.have + x > t.nlen + t.ndist) {
|
|
1537
|
-
n.msg = "invalid bit length repeat", t.mode =
|
|
1537
|
+
n.msg = "invalid bit length repeat", t.mode = Pi;
|
|
1538
1538
|
break;
|
|
1539
1539
|
}
|
|
1540
1540
|
for (; x--; )
|
|
1541
1541
|
t.lens[t.have++] = F;
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
|
-
if (t.mode ===
|
|
1544
|
+
if (t.mode === Pi)
|
|
1545
1545
|
break;
|
|
1546
1546
|
if (t.lens[256] === 0) {
|
|
1547
|
-
n.msg = "invalid code -- missing end-of-block", t.mode =
|
|
1547
|
+
n.msg = "invalid code -- missing end-of-block", t.mode = Pi;
|
|
1548
1548
|
break;
|
|
1549
1549
|
}
|
|
1550
1550
|
if (t.lenbits = 9, X = { bits: t.lenbits }, W = Sl(sy, t.lens, 0, t.nlen, t.lencode, 0, t.work, X), t.lenbits = X.bits, W) {
|
|
1551
|
-
n.msg = "invalid literal/lengths set", t.mode =
|
|
1551
|
+
n.msg = "invalid literal/lengths set", t.mode = Pi;
|
|
1552
1552
|
break;
|
|
1553
1553
|
}
|
|
1554
1554
|
if (t.distbits = 6, t.distcode = t.distdyn, X = { bits: t.distbits }, W = Sl(ry, t.lens, t.nlen, t.ndist, t.distcode, 0, t.work, X), t.distbits = X.bits, W) {
|
|
1555
|
-
n.msg = "invalid distances set", t.mode =
|
|
1555
|
+
n.msg = "invalid distances set", t.mode = Pi;
|
|
1556
1556
|
break;
|
|
1557
1557
|
}
|
|
1558
1558
|
if (t.mode = pc, e === fc)
|
|
@@ -1586,7 +1586,7 @@ const Cb = (n) => {
|
|
|
1586
1586
|
break;
|
|
1587
1587
|
}
|
|
1588
1588
|
if (C & 64) {
|
|
1589
|
-
n.msg = "invalid literal/length code", t.mode =
|
|
1589
|
+
n.msg = "invalid literal/length code", t.mode = Pi;
|
|
1590
1590
|
break;
|
|
1591
1591
|
}
|
|
1592
1592
|
t.extra = C & 15, t.mode = Bp;
|
|
@@ -1615,7 +1615,7 @@ const Cb = (n) => {
|
|
|
1615
1615
|
u >>>= A, f -= A, t.back += A;
|
|
1616
1616
|
}
|
|
1617
1617
|
if (u >>>= v, f -= v, t.back += v, C & 64) {
|
|
1618
|
-
n.msg = "invalid distance code", t.mode =
|
|
1618
|
+
n.msg = "invalid distance code", t.mode = Pi;
|
|
1619
1619
|
break;
|
|
1620
1620
|
}
|
|
1621
1621
|
t.offset = T, t.extra = C & 15, t.mode = Up;
|
|
@@ -1629,7 +1629,7 @@ const Cb = (n) => {
|
|
|
1629
1629
|
t.offset += u & (1 << t.extra) - 1, u >>>= t.extra, f -= t.extra, t.back += t.extra;
|
|
1630
1630
|
}
|
|
1631
1631
|
if (t.offset > t.dmax) {
|
|
1632
|
-
n.msg = "invalid distance too far back", t.mode =
|
|
1632
|
+
n.msg = "invalid distance too far back", t.mode = Pi;
|
|
1633
1633
|
break;
|
|
1634
1634
|
}
|
|
1635
1635
|
t.mode = kp;
|
|
@@ -1638,7 +1638,7 @@ const Cb = (n) => {
|
|
|
1638
1638
|
break e;
|
|
1639
1639
|
if (x = g - h, t.offset > x) {
|
|
1640
1640
|
if (x = t.offset - x, x > t.whave && t.sane) {
|
|
1641
|
-
n.msg = "invalid distance too far back", t.mode =
|
|
1641
|
+
n.msg = "invalid distance too far back", t.mode = Pi;
|
|
1642
1642
|
break;
|
|
1643
1643
|
}
|
|
1644
1644
|
x > t.wnext ? (x -= t.wnext, w = t.wsize - x) : w = t.wnext - x, x > t.length && (x = t.length), P = t.window;
|
|
@@ -1664,7 +1664,7 @@ const Cb = (n) => {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
if (g -= h, n.total_out += g, t.total += g, t.wrap & 4 && g && (n.adler = t.check = /*UPDATE_CHECK(state.check, put - _out, _out);*/
|
|
1666
1666
|
t.flags ? rn(t.check, s, g, o - g) : Bl(t.check, s, g, o - g)), g = h, t.wrap & 4 && (t.flags ? u : Hp(u)) !== t.check) {
|
|
1667
|
-
n.msg = "incorrect data check", t.mode =
|
|
1667
|
+
n.msg = "incorrect data check", t.mode = Pi;
|
|
1668
1668
|
break;
|
|
1669
1669
|
}
|
|
1670
1670
|
u = 0, f = 0;
|
|
@@ -1678,7 +1678,7 @@ const Cb = (n) => {
|
|
|
1678
1678
|
l--, u += i[r++] << f, f += 8;
|
|
1679
1679
|
}
|
|
1680
1680
|
if (t.wrap & 4 && u !== (t.total & 4294967295)) {
|
|
1681
|
-
n.msg = "incorrect length check", t.mode =
|
|
1681
|
+
n.msg = "incorrect length check", t.mode = Pi;
|
|
1682
1682
|
break;
|
|
1683
1683
|
}
|
|
1684
1684
|
u = 0, f = 0;
|
|
@@ -1687,7 +1687,7 @@ const Cb = (n) => {
|
|
|
1687
1687
|
case Vp:
|
|
1688
1688
|
W = bb;
|
|
1689
1689
|
break e;
|
|
1690
|
-
case
|
|
1690
|
+
case Pi:
|
|
1691
1691
|
W = ay;
|
|
1692
1692
|
break e;
|
|
1693
1693
|
case ly:
|
|
@@ -1696,7 +1696,7 @@ const Cb = (n) => {
|
|
|
1696
1696
|
default:
|
|
1697
1697
|
return $n;
|
|
1698
1698
|
}
|
|
1699
|
-
return n.next_out = o, n.avail_out = h, n.next_in = r, n.avail_in = l, t.hold = u, t.bits = f, (t.wsize || g !== n.avail_out && t.mode <
|
|
1699
|
+
return n.next_out = o, n.avail_out = h, n.next_in = r, n.avail_in = l, t.hold = u, t.bits = f, (t.wsize || g !== n.avail_out && t.mode < Pi && (t.mode < bu || e !== bp)) && py(n, n.output, n.next_out, g - n.avail_out), m -= n.avail_in, g -= n.avail_out, n.total_in += m, n.total_out += g, t.total += g, t.wrap & 4 && g && (n.adler = t.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
|
|
1700
1700
|
t.flags ? rn(t.check, s, g, n.next_out - g) : Bl(t.check, s, g, n.next_out - g)), n.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === Os ? 128 : 0) + (t.mode === pc || t.mode === vu ? 256 : 0), (m === 0 && g === 0 || e === bp) && W === aa && (W = _b), W;
|
|
1701
1701
|
}, Lb = (n) => {
|
|
1702
1702
|
if (pa(n))
|
|
@@ -4762,7 +4762,7 @@ class Y {
|
|
|
4762
4762
|
}
|
|
4763
4763
|
}
|
|
4764
4764
|
const Xu = /* @__PURE__ */ new Y(), Um = /* @__PURE__ */ new Qi();
|
|
4765
|
-
class
|
|
4765
|
+
class Ai {
|
|
4766
4766
|
constructor(e = new Y(1 / 0, 1 / 0, 1 / 0), t = new Y(-1 / 0, -1 / 0, -1 / 0)) {
|
|
4767
4767
|
this.isBox3 = !0, this.min = e, this.max = t;
|
|
4768
4768
|
}
|
|
@@ -4931,7 +4931,7 @@ const Ns = [
|
|
|
4931
4931
|
/* @__PURE__ */ new Y(),
|
|
4932
4932
|
/* @__PURE__ */ new Y(),
|
|
4933
4933
|
/* @__PURE__ */ new Y()
|
|
4934
|
-
], Bs = /* @__PURE__ */ new Y(), Aa = /* @__PURE__ */ new
|
|
4934
|
+
], Bs = /* @__PURE__ */ new Y(), Aa = /* @__PURE__ */ new Ai(), Ta = /* @__PURE__ */ new Y(), Ea = /* @__PURE__ */ new Y(), Pa = /* @__PURE__ */ new Y(), ar = /* @__PURE__ */ new Y(), or = /* @__PURE__ */ new Y(), Vr = /* @__PURE__ */ new Y(), jo = /* @__PURE__ */ new Y(), wc = /* @__PURE__ */ new Y(), _c = /* @__PURE__ */ new Y(), Hr = /* @__PURE__ */ new Y();
|
|
4935
4935
|
function Vu(n, e, t, i, s) {
|
|
4936
4936
|
for (let r = 0, o = n.length - 3; r <= o; r += 3) {
|
|
4937
4937
|
Hr.fromArray(n, r);
|
|
@@ -4941,7 +4941,7 @@ function Vu(n, e, t, i, s) {
|
|
|
4941
4941
|
}
|
|
4942
4942
|
return !0;
|
|
4943
4943
|
}
|
|
4944
|
-
const E1 = /* @__PURE__ */ new
|
|
4944
|
+
const E1 = /* @__PURE__ */ new Ai(), Ko = /* @__PURE__ */ new Y(), Hu = /* @__PURE__ */ new Y();
|
|
4945
4945
|
class gn {
|
|
4946
4946
|
constructor(e = new Y(), t = -1) {
|
|
4947
4947
|
this.center = e, this.radius = t;
|
|
@@ -6631,7 +6631,7 @@ class Tt extends jt {
|
|
|
6631
6631
|
}
|
|
6632
6632
|
}
|
|
6633
6633
|
let z1 = 0;
|
|
6634
|
-
const Qn = /* @__PURE__ */ new ot(), $u = /* @__PURE__ */ new ri(), Da = /* @__PURE__ */ new Y(), zn = /* @__PURE__ */ new
|
|
6634
|
+
const Qn = /* @__PURE__ */ new ot(), $u = /* @__PURE__ */ new ri(), Da = /* @__PURE__ */ new Y(), zn = /* @__PURE__ */ new Ai(), Jo = /* @__PURE__ */ new Ai(), nn = /* @__PURE__ */ new Y();
|
|
6635
6635
|
class Ft extends ga {
|
|
6636
6636
|
constructor() {
|
|
6637
6637
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: z1++ }), this.uuid = Kn(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
|
|
@@ -6711,7 +6711,7 @@ class Ft extends ga {
|
|
|
6711
6711
|
return this.setAttribute("position", new Tt(t, 3)), this;
|
|
6712
6712
|
}
|
|
6713
6713
|
computeBoundingBox() {
|
|
6714
|
-
this.boundingBox === null && (this.boundingBox = new
|
|
6714
|
+
this.boundingBox === null && (this.boundingBox = new Ai());
|
|
6715
6715
|
const e = this.attributes.position, t = this.morphAttributes.position;
|
|
6716
6716
|
if (e && e.isGLBufferAttribute) {
|
|
6717
6717
|
console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".', this), this.boundingBox.set(
|
|
@@ -7123,7 +7123,7 @@ var F1 = `void main() {
|
|
|
7123
7123
|
}`, X1 = `void main() {
|
|
7124
7124
|
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
|
|
7125
7125
|
}`;
|
|
7126
|
-
class
|
|
7126
|
+
class Ri extends ji {
|
|
7127
7127
|
constructor(e) {
|
|
7128
7128
|
super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader = F1, this.fragmentShader = X1, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.forceSinglePass = !0, this.extensions = {
|
|
7129
7129
|
derivatives: !1,
|
|
@@ -7408,7 +7408,7 @@ class H1 extends mn {
|
|
|
7408
7408
|
}
|
|
7409
7409
|
`
|
|
7410
7410
|
)
|
|
7411
|
-
}, s = new Di(5, 5, 5), r = new
|
|
7411
|
+
}, s = new Di(5, 5, 5), r = new Ri({
|
|
7412
7412
|
name: "CubemapFromEquirect",
|
|
7413
7413
|
uniforms: _o(i.uniforms),
|
|
7414
7414
|
vertexShader: i.vertexShader,
|
|
@@ -11605,7 +11605,7 @@ function SS(n, e, t, i, s, r, o) {
|
|
|
11605
11605
|
const A = n.xr.getEnvironmentBlendMode();
|
|
11606
11606
|
A === "additive" ? i.buffers.color.setClear(0, 0, 0, 1, o) : A === "alpha-blend" && i.buffers.color.setClear(0, 0, 0, 0, o), (n.autoClear || C) && n.clear(n.autoClearColor, n.autoClearDepth, n.autoClearStencil), T && (T.isCubeTexture || T.mapping === $l) ? (f === void 0 && (f = new ye(
|
|
11607
11607
|
new Di(1, 1, 1),
|
|
11608
|
-
new
|
|
11608
|
+
new Ri({
|
|
11609
11609
|
name: "BackgroundCubeMaterial",
|
|
11610
11610
|
uniforms: _o(ds.backgroundCube.uniforms),
|
|
11611
11611
|
vertexShader: ds.backgroundCube.vertexShader,
|
|
@@ -11623,7 +11623,7 @@ function SS(n, e, t, i, s, r, o) {
|
|
|
11623
11623
|
}
|
|
11624
11624
|
}), s.update(f)), f.material.uniforms.envMap.value = T, f.material.uniforms.flipEnvMap.value = T.isCubeTexture && T.isRenderTargetTexture === !1 ? -1 : 1, f.material.uniforms.backgroundBlurriness.value = v.backgroundBlurriness, f.material.uniforms.backgroundIntensity.value = v.backgroundIntensity, f.material.toneMapped = oi.getTransfer(T.colorSpace) !== Mi, (m !== T || g !== T.version || x !== n.toneMapping) && (f.material.needsUpdate = !0, m = T, g = T.version, x = n.toneMapping), f.layers.enableAll(), M.unshift(f, f.geometry, f.material, 0, 0, null)) : T && T.isTexture && (u === void 0 && (u = new ye(
|
|
11625
11625
|
new Zs(2, 2),
|
|
11626
|
-
new
|
|
11626
|
+
new Ri({
|
|
11627
11627
|
name: "BackgroundMaterial",
|
|
11628
11628
|
uniforms: _o(ds.background.uniforms),
|
|
11629
11629
|
vertexShader: ds.background.vertexShader,
|
|
@@ -12311,7 +12311,7 @@ function Fc(n, e, t, i, s) {
|
|
|
12311
12311
|
}
|
|
12312
12312
|
function LS(n, e, t) {
|
|
12313
12313
|
const i = new Float32Array(Kr), s = new Y(0, 1, 0);
|
|
12314
|
-
return new
|
|
12314
|
+
return new Ri({
|
|
12315
12315
|
name: "SphericalGaussianBlur",
|
|
12316
12316
|
defines: {
|
|
12317
12317
|
n: Kr,
|
|
@@ -12399,7 +12399,7 @@ function LS(n, e, t) {
|
|
|
12399
12399
|
});
|
|
12400
12400
|
}
|
|
12401
12401
|
function ig() {
|
|
12402
|
-
return new
|
|
12402
|
+
return new Ri({
|
|
12403
12403
|
name: "EquirectangularToCubeUV",
|
|
12404
12404
|
uniforms: {
|
|
12405
12405
|
envMap: { value: null }
|
|
@@ -12434,7 +12434,7 @@ function ig() {
|
|
|
12434
12434
|
});
|
|
12435
12435
|
}
|
|
12436
12436
|
function ng() {
|
|
12437
|
-
return new
|
|
12437
|
+
return new Ri({
|
|
12438
12438
|
name: "CubemapToCubeUV",
|
|
12439
12439
|
uniforms: {
|
|
12440
12440
|
envMap: { value: null },
|
|
@@ -14493,7 +14493,7 @@ void main() {
|
|
|
14493
14493
|
}`;
|
|
14494
14494
|
function uT(n, e, t) {
|
|
14495
14495
|
let i = new Zh();
|
|
14496
|
-
const s = new Te(), r = new Te(), o = new si(), l = new Yy({ depthPacking: Zw }), h = new Gy(), u = {}, f = t.maxTextureSize, m = { [Jn]: qi, [qi]: Jn, [hn]: hn }, g = new
|
|
14496
|
+
const s = new Te(), r = new Te(), o = new si(), l = new Yy({ depthPacking: Zw }), h = new Gy(), u = {}, f = t.maxTextureSize, m = { [Jn]: qi, [qi]: Jn, [hn]: hn }, g = new Ri({
|
|
14497
14497
|
defines: {
|
|
14498
14498
|
VSM_SAMPLES: 8
|
|
14499
14499
|
},
|
|
@@ -16469,7 +16469,7 @@ class Lf {
|
|
|
16469
16469
|
let kt = nt.currentProgram;
|
|
16470
16470
|
bt === !0 && (kt = ne(ie, j, oe));
|
|
16471
16471
|
let di = !1, Vi = !1, en = !1;
|
|
16472
|
-
const gi = kt.getUniforms(),
|
|
16472
|
+
const gi = kt.getUniforms(), Ti = nt.uniforms;
|
|
16473
16473
|
if (Oe.useProgram(kt.program) && (di = !0, Vi = !0, en = !0), ie.id !== W && (W = ie.id, Vi = !0), di || B !== U) {
|
|
16474
16474
|
gi.setValue(ae, "projectionMatrix", U.projectionMatrix), gi.setValue(ae, "viewMatrix", U.matrixWorldInverse);
|
|
16475
16475
|
const qt = gi.map.cameraPosition;
|
|
@@ -16485,7 +16485,7 @@ class Lf {
|
|
|
16485
16485
|
qt && (He.floatVertexTextures ? (qt.boneTexture === null && qt.computeBoneTexture(), gi.setValue(ae, "boneTexture", qt.boneTexture, Ke), gi.setValue(ae, "boneTextureSize", qt.boneTextureSize)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."));
|
|
16486
16486
|
}
|
|
16487
16487
|
const Pn = re.morphAttributes;
|
|
16488
|
-
if ((Pn.position !== void 0 || Pn.normal !== void 0 || Pn.color !== void 0 && He.isWebGL2 === !0) && it.update(oe, re, kt), (Vi || nt.receiveShadow !== oe.receiveShadow) && (nt.receiveShadow = oe.receiveShadow, gi.setValue(ae, "receiveShadow", oe.receiveShadow)), ie.isMeshGouraudMaterial && ie.envMap !== null && (
|
|
16488
|
+
if ((Pn.position !== void 0 || Pn.normal !== void 0 || Pn.color !== void 0 && He.isWebGL2 === !0) && it.update(oe, re, kt), (Vi || nt.receiveShadow !== oe.receiveShadow) && (nt.receiveShadow = oe.receiveShadow, gi.setValue(ae, "receiveShadow", oe.receiveShadow)), ie.isMeshGouraudMaterial && ie.envMap !== null && (Ti.envMap.value = $e, Ti.flipEnvMap.value = $e.isCubeTexture && $e.isRenderTargetTexture === !1 ? -1 : 1), Vi && (gi.setValue(ae, "toneMappingExposure", T.toneMappingExposure), nt.needsLights && Z(Ti, en), pe && ie.fog === !0 && Ie.refreshFogUniforms(Ti, pe), Ie.refreshMaterialUniforms(Ti, ie, me, be, Je), Th.upload(ae, nt.uniformsList, Ti, Ke)), ie.isShaderMaterial && ie.uniformsNeedUpdate === !0 && (Th.upload(ae, nt.uniformsList, Ti, Ke), ie.uniformsNeedUpdate = !1), ie.isSpriteMaterial && gi.setValue(ae, "center", oe.center), gi.setValue(ae, "modelViewMatrix", oe.modelViewMatrix), gi.setValue(ae, "normalMatrix", oe.normalMatrix), gi.setValue(ae, "modelMatrix", oe.matrixWorld), ie.isShaderMaterial || ie.isRawShaderMaterial) {
|
|
16489
16489
|
const qt = ie.uniformsGroups;
|
|
16490
16490
|
for (let Nr = 0, Bo = qt.length; Nr < Bo; Nr++)
|
|
16491
16491
|
if (He.isWebGL2) {
|
|
@@ -16974,7 +16974,7 @@ class qy extends ye {
|
|
|
16974
16974
|
}
|
|
16975
16975
|
computeBoundingBox() {
|
|
16976
16976
|
const e = this.geometry;
|
|
16977
|
-
this.boundingBox === null && (this.boundingBox = new
|
|
16977
|
+
this.boundingBox === null && (this.boundingBox = new Ai()), this.boundingBox.makeEmpty();
|
|
16978
16978
|
const t = e.getAttribute("position");
|
|
16979
16979
|
for (let i = 0; i < t.count; i++)
|
|
16980
16980
|
Ya.fromBufferAttribute(t, i), this.applyBoneTransform(i, Ya), this.boundingBox.expandByPoint(Ya);
|
|
@@ -17142,7 +17142,7 @@ class js extends jt {
|
|
|
17142
17142
|
return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e;
|
|
17143
17143
|
}
|
|
17144
17144
|
}
|
|
17145
|
-
const Ga = /* @__PURE__ */ new ot(), Pg = /* @__PURE__ */ new ot(), Gc = [], Cg = /* @__PURE__ */ new
|
|
17145
|
+
const Ga = /* @__PURE__ */ new ot(), Pg = /* @__PURE__ */ new ot(), Gc = [], Cg = /* @__PURE__ */ new Ai(), ST = /* @__PURE__ */ new ot(), nl = /* @__PURE__ */ new ye(), sl = /* @__PURE__ */ new gn();
|
|
17146
17146
|
class Bf extends ye {
|
|
17147
17147
|
constructor(e, t, i) {
|
|
17148
17148
|
super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new js(new Float32Array(i * 16), 16), this.instanceColor = null, this.count = i, this.boundingBox = null, this.boundingSphere = null;
|
|
@@ -17151,7 +17151,7 @@ class Bf extends ye {
|
|
|
17151
17151
|
}
|
|
17152
17152
|
computeBoundingBox() {
|
|
17153
17153
|
const e = this.geometry, t = this.count;
|
|
17154
|
-
this.boundingBox === null && (this.boundingBox = new
|
|
17154
|
+
this.boundingBox === null && (this.boundingBox = new Ai()), e.boundingBox === null && e.computeBoundingBox(), this.boundingBox.makeEmpty();
|
|
17155
17155
|
for (let i = 0; i < t; i++)
|
|
17156
17156
|
this.getMatrixAt(i, Ga), Cg.copy(e.boundingBox).applyMatrix4(Ga), this.boundingBox.union(Cg);
|
|
17157
17157
|
}
|
|
@@ -19576,7 +19576,7 @@ class sE extends ji {
|
|
|
19576
19576
|
return super.copy(e), this.color.copy(e.color), this.fog = e.fog, this;
|
|
19577
19577
|
}
|
|
19578
19578
|
}
|
|
19579
|
-
class sx extends
|
|
19579
|
+
class sx extends Ri {
|
|
19580
19580
|
constructor(e) {
|
|
19581
19581
|
super(e), this.isRawShaderMaterial = !0, this.type = "RawShaderMaterial";
|
|
19582
19582
|
}
|
|
@@ -20884,7 +20884,7 @@ class ep extends nr {
|
|
|
20884
20884
|
ShadowMaterial: sE,
|
|
20885
20885
|
SpriteMaterial: Xh,
|
|
20886
20886
|
RawShaderMaterial: sx,
|
|
20887
|
-
ShaderMaterial:
|
|
20887
|
+
ShaderMaterial: Ri,
|
|
20888
20888
|
PointsMaterial: zf,
|
|
20889
20889
|
MeshPhysicalMaterial: ir,
|
|
20890
20890
|
MeshStandardMaterial: tc,
|
|
@@ -21923,7 +21923,7 @@ const YE = {
|
|
|
21923
21923
|
Quaternion: Qi,
|
|
21924
21924
|
Matrix4: ot,
|
|
21925
21925
|
Spherical: fx,
|
|
21926
|
-
Box3:
|
|
21926
|
+
Box3: Ai,
|
|
21927
21927
|
Sphere: gn,
|
|
21928
21928
|
Raycaster: nc,
|
|
21929
21929
|
MathUtils: Ef
|
|
@@ -21972,7 +21972,7 @@ class GE {
|
|
|
21972
21972
|
focusModelByName(e = "Viral Model") {
|
|
21973
21973
|
var t = this.viralViewerApi.viralScene.scene.getObjectByName(e);
|
|
21974
21974
|
if (t && this.cameraControls) {
|
|
21975
|
-
var i = new
|
|
21975
|
+
var i = new Ai().setFromObject(t);
|
|
21976
21976
|
console.log(i), this.cameraControls.fitToBox(i, !0);
|
|
21977
21977
|
}
|
|
21978
21978
|
}
|
|
@@ -22243,7 +22243,7 @@ class WE {
|
|
|
22243
22243
|
}
|
|
22244
22244
|
//#endregion
|
|
22245
22245
|
}
|
|
22246
|
-
const Wr = new nc(), Mn = new Y(), ur = new Y(),
|
|
22246
|
+
const Wr = new nc(), Mn = new Y(), ur = new Y(), Ci = new Qi(), $g = {
|
|
22247
22247
|
X: new Y(1, 0, 0),
|
|
22248
22248
|
Y: new Y(0, 1, 0),
|
|
22249
22249
|
Z: new Y(0, 0, 1)
|
|
@@ -22298,7 +22298,7 @@ class QE extends ri {
|
|
|
22298
22298
|
const o = gd(this._plane, Wr, !0);
|
|
22299
22299
|
if (o) {
|
|
22300
22300
|
if (this.pointEnd.copy(o.point).sub(this.worldPositionStart), i === "translate")
|
|
22301
|
-
this._offset.copy(this.pointEnd).sub(this.pointStart), r === "local" && t !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), t.indexOf("X") === -1 && (this._offset.x = 0), t.indexOf("Y") === -1 && (this._offset.y = 0), t.indexOf("Z") === -1 && (this._offset.z = 0), r === "local" && t !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), s.position.copy(this._offset).add(this._positionStart), this.translationSnap && (r === "local" && (s.position.applyQuaternion(
|
|
22301
|
+
this._offset.copy(this.pointEnd).sub(this.pointStart), r === "local" && t !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), t.indexOf("X") === -1 && (this._offset.x = 0), t.indexOf("Y") === -1 && (this._offset.y = 0), t.indexOf("Z") === -1 && (this._offset.z = 0), r === "local" && t !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), s.position.copy(this._offset).add(this._positionStart), this.translationSnap && (r === "local" && (s.position.applyQuaternion(Ci.copy(this._quaternionStart).invert()), t.search("X") !== -1 && (s.position.x = Math.round(s.position.x / this.translationSnap) * this.translationSnap), t.search("Y") !== -1 && (s.position.y = Math.round(s.position.y / this.translationSnap) * this.translationSnap), t.search("Z") !== -1 && (s.position.z = Math.round(s.position.z / this.translationSnap) * this.translationSnap), s.position.applyQuaternion(this._quaternionStart)), r === "world" && (s.parent && s.position.add(Mn.setFromMatrixPosition(s.parent.matrixWorld)), t.search("X") !== -1 && (s.position.x = Math.round(s.position.x / this.translationSnap) * this.translationSnap), t.search("Y") !== -1 && (s.position.y = Math.round(s.position.y / this.translationSnap) * this.translationSnap), t.search("Z") !== -1 && (s.position.z = Math.round(s.position.z / this.translationSnap) * this.translationSnap), s.parent && s.position.sub(Mn.setFromMatrixPosition(s.parent.matrixWorld))));
|
|
22302
22302
|
else if (i === "scale") {
|
|
22303
22303
|
if (t.search("XYZ") !== -1) {
|
|
22304
22304
|
let l = this.pointEnd.length() / this.pointStart.length();
|
|
@@ -22309,7 +22309,7 @@ class QE extends ri {
|
|
|
22309
22309
|
} else if (i === "rotate") {
|
|
22310
22310
|
this._offset.copy(this.pointEnd).sub(this.pointStart);
|
|
22311
22311
|
const l = 20 / this.worldPosition.distanceTo(Mn.setFromMatrixPosition(this.camera.matrixWorld));
|
|
22312
|
-
t === "E" ? (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1) : t === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(Mn.copy(this.rotationAxis).cross(this.eye)) * l) : (t === "X" || t === "Y" || t === "Z") && (this.rotationAxis.copy($g[t]), Mn.copy($g[t]), r === "local" && Mn.applyQuaternion(this.worldQuaternion), this.rotationAngle = this._offset.dot(Mn.cross(this.eye).normalize()) * l), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), r === "local" && t !== "E" && t !== "XYZE" ? (s.quaternion.copy(this._quaternionStart), s.quaternion.multiply(
|
|
22312
|
+
t === "E" ? (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1) : t === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(Mn.copy(this.rotationAxis).cross(this.eye)) * l) : (t === "X" || t === "Y" || t === "Z") && (this.rotationAxis.copy($g[t]), Mn.copy($g[t]), r === "local" && Mn.applyQuaternion(this.worldQuaternion), this.rotationAngle = this._offset.dot(Mn.cross(this.eye).normalize()) * l), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), r === "local" && t !== "E" && t !== "XYZE" ? (s.quaternion.copy(this._quaternionStart), s.quaternion.multiply(Ci.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), s.quaternion.copy(Ci.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), s.quaternion.multiply(this._quaternionStart).normalize());
|
|
22313
22313
|
}
|
|
22314
22314
|
this.dispatchEvent(md), this.dispatchEvent(t0);
|
|
22315
22315
|
}
|
|
@@ -22650,10 +22650,10 @@ class JE extends ri {
|
|
|
22650
22650
|
o.visible = !0, o.rotation.set(0, 0, 0), o.position.copy(this.worldPosition);
|
|
22651
22651
|
let l;
|
|
22652
22652
|
if (this.camera.isOrthographicCamera ? l = (this.camera.top - this.camera.bottom) / this.camera.zoom : l = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7), o.scale.set(1, 1, 1).multiplyScalar(l * this.size / 4), o.tag === "helper") {
|
|
22653
|
-
o.visible = !1, o.name === "AXIS" ? (o.visible = !!this.axis, this.axis === "X" && (
|
|
22653
|
+
o.visible = !1, o.name === "AXIS" ? (o.visible = !!this.axis, this.axis === "X" && (Ci.setFromEuler(sh.set(0, 0, 0)), o.quaternion.copy(i).multiply(Ci), Math.abs(bi.copy(bl).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Y" && (Ci.setFromEuler(sh.set(0, 0, Math.PI / 2)), o.quaternion.copy(i).multiply(Ci), Math.abs(bi.copy(Zr).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Z" && (Ci.setFromEuler(sh.set(0, Math.PI / 2, 0)), o.quaternion.copy(i).multiply(Ci), Math.abs(bi.copy(wl).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "XYZE" && (Ci.setFromEuler(sh.set(0, Math.PI / 2, 0)), bi.copy(this.rotationAxis), o.quaternion.setFromRotationMatrix(n0.lookAt(i0, bi, Zr)), o.quaternion.multiply(Ci), o.visible = this.dragging), this.axis === "E" && (o.visible = !1)) : o.name === "START" ? (o.position.copy(this.worldPositionStart), o.visible = this.dragging) : o.name === "END" ? (o.position.copy(this.worldPosition), o.visible = this.dragging) : o.name === "DELTA" ? (o.position.copy(this.worldPositionStart), o.quaternion.copy(this.worldQuaternionStart), Mn.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), Mn.applyQuaternion(this.worldQuaternionStart.clone().invert()), o.scale.copy(Mn), o.visible = this.dragging) : (o.quaternion.copy(i), this.dragging ? o.position.copy(this.worldPositionStart) : o.position.copy(this.worldPosition), this.axis && (o.visible = this.axis.search(o.name) !== -1));
|
|
22654
22654
|
continue;
|
|
22655
22655
|
}
|
|
22656
|
-
o.quaternion.copy(i), this.mode === "translate" || this.mode === "scale" ? (o.name === "X" && Math.abs(bi.copy(bl).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Y" && Math.abs(bi.copy(Zr).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Z" && Math.abs(bi.copy(wl).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XY" && Math.abs(bi.copy(wl).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "YZ" && Math.abs(bi.copy(bl).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XZ" && Math.abs(bi.copy(Zr).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1)) : this.mode === "rotate" && (rh.copy(i), bi.copy(this.eye).applyQuaternion(
|
|
22656
|
+
o.quaternion.copy(i), this.mode === "translate" || this.mode === "scale" ? (o.name === "X" && Math.abs(bi.copy(bl).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Y" && Math.abs(bi.copy(Zr).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Z" && Math.abs(bi.copy(wl).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XY" && Math.abs(bi.copy(wl).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "YZ" && Math.abs(bi.copy(bl).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XZ" && Math.abs(bi.copy(Zr).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1)) : this.mode === "rotate" && (rh.copy(i), bi.copy(this.eye).applyQuaternion(Ci.copy(i).invert()), o.name.search("E") !== -1 && o.quaternion.setFromRotationMatrix(n0.lookAt(this.eye, i0, Zr)), o.name === "X" && (Ci.setFromAxisAngle(bl, Math.atan2(-bi.y, bi.z)), Ci.multiplyQuaternions(rh, Ci), o.quaternion.copy(Ci)), o.name === "Y" && (Ci.setFromAxisAngle(Zr, Math.atan2(bi.x, bi.z)), Ci.multiplyQuaternions(rh, Ci), o.quaternion.copy(Ci)), o.name === "Z" && (Ci.setFromAxisAngle(wl, Math.atan2(bi.y, bi.x)), Ci.multiplyQuaternions(rh, Ci), o.quaternion.copy(Ci))), o.visible = o.visible && (o.name.indexOf("X") === -1 || this.showX), o.visible = o.visible && (o.name.indexOf("Y") === -1 || this.showY), o.visible = o.visible && (o.name.indexOf("Z") === -1 || this.showZ), o.visible = o.visible && (o.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), o.material._color = o.material._color || o.material.color.clone(), o.material._opacity = o.material._opacity || o.material.opacity, o.material.color.copy(o.material._color), o.material.opacity = o.material._opacity, this.enabled && this.axis && (o.name === this.axis || this.axis.split("").some(function(h) {
|
|
22657
22657
|
return o.name === h;
|
|
22658
22658
|
})) && (o.material.color.setHex(16776960), o.material.opacity = 1);
|
|
22659
22659
|
}
|
|
@@ -23253,7 +23253,7 @@ var mx = class gx {
|
|
|
23253
23253
|
* @return {Material} The cloned material.
|
|
23254
23254
|
*/
|
|
23255
23255
|
cloneMaterial(n) {
|
|
23256
|
-
if (!(n instanceof
|
|
23256
|
+
if (!(n instanceof Ri))
|
|
23257
23257
|
return n.clone();
|
|
23258
23258
|
const e = n.uniforms, t = /* @__PURE__ */ new Map();
|
|
23259
23259
|
for (const s in e) {
|
|
@@ -24409,7 +24409,7 @@ class p2 extends sc {
|
|
|
24409
24409
|
format: THREE.RedFormat,
|
|
24410
24410
|
type: THREE.FloatType
|
|
24411
24411
|
});*/
|
|
24412
|
-
new T1(this.width / 2, this.height / 2, 2), this.depthDownsampleTarget.texture[0].format = Sy, this.depthDownsampleTarget.texture[0].type = gs, this.depthDownsampleTarget.texture[0].minFilter = hi, this.depthDownsampleTarget.texture[0].magFilter = hi, this.depthDownsampleTarget.texture[0].depthBuffer = !1, this.depthDownsampleTarget.texture[1].format = An, this.depthDownsampleTarget.texture[1].type = er, this.depthDownsampleTarget.texture[1].minFilter = hi, this.depthDownsampleTarget.texture[1].magFilter = hi, this.depthDownsampleTarget.texture[1].depthBuffer = !1, this.depthDownsampleQuad = new oh(new
|
|
24412
|
+
new T1(this.width / 2, this.height / 2, 2), this.depthDownsampleTarget.texture[0].format = Sy, this.depthDownsampleTarget.texture[0].type = gs, this.depthDownsampleTarget.texture[0].minFilter = hi, this.depthDownsampleTarget.texture[0].magFilter = hi, this.depthDownsampleTarget.texture[0].depthBuffer = !1, this.depthDownsampleTarget.texture[1].format = An, this.depthDownsampleTarget.texture[1].type = er, this.depthDownsampleTarget.texture[1].minFilter = hi, this.depthDownsampleTarget.texture[1].magFilter = hi, this.depthDownsampleTarget.texture[1].depthBuffer = !1, this.depthDownsampleQuad = new oh(new Ri(d2))) : (this.depthDownsampleTarget && (this.depthDownsampleTarget.dispose(), this.depthDownsampleTarget = null), this.depthDownsampleQuad && (this.depthDownsampleQuad.dispose(), this.depthDownsampleQuad = null));
|
|
24413
24413
|
}
|
|
24414
24414
|
configureSampleDependentPasses() {
|
|
24415
24415
|
this.configureAOPass(this.configuration.logarithmicDepthBuffer), this.configureDenoisePass(this.configuration.logarithmicDepthBuffer);
|
|
@@ -24421,7 +24421,7 @@ class p2 extends sc {
|
|
|
24421
24421
|
};
|
|
24422
24422
|
t.fragmentShader = t.fragmentShader.replace("16", this.configuration.aoSamples).replace("16.0", this.configuration.aoSamples + ".0"), e && (t.fragmentShader = `#define LOGDEPTH
|
|
24423
24423
|
` + t.fragmentShader), this.configuration.halfRes && (t.fragmentShader = `#define HALFRES
|
|
24424
|
-
` + t.fragmentShader), this.effectShaderQuad ? (this.effectShaderQuad.material.dispose(), this.effectShaderQuad.material = new
|
|
24424
|
+
` + t.fragmentShader), this.effectShaderQuad ? (this.effectShaderQuad.material.dispose(), this.effectShaderQuad.material = new Ri(t)) : this.effectShaderQuad = new oh(new Ri(t));
|
|
24425
24425
|
}
|
|
24426
24426
|
configureDenoisePass(e = !1) {
|
|
24427
24427
|
this.samplesDenoise = this.generateDenoiseSamples(this.configuration.denoiseSamples, 11);
|
|
@@ -24429,7 +24429,7 @@ class p2 extends sc {
|
|
|
24429
24429
|
...u2
|
|
24430
24430
|
};
|
|
24431
24431
|
t.fragmentShader = t.fragmentShader.replace("16", this.configuration.denoiseSamples), e && (t.fragmentShader = `#define LOGDEPTH
|
|
24432
|
-
` + t.fragmentShader), this.poissonBlurQuad ? (this.poissonBlurQuad.material.dispose(), this.poissonBlurQuad.material = new
|
|
24432
|
+
` + t.fragmentShader), this.poissonBlurQuad ? (this.poissonBlurQuad.material.dispose(), this.poissonBlurQuad.material = new Ri(t)) : this.poissonBlurQuad = new oh(new Ri(t));
|
|
24433
24433
|
}
|
|
24434
24434
|
configureEffectCompositer(e = !1) {
|
|
24435
24435
|
const t = {
|
|
@@ -24437,7 +24437,7 @@ class p2 extends sc {
|
|
|
24437
24437
|
};
|
|
24438
24438
|
e && (t.fragmentShader = `#define LOGDEPTH
|
|
24439
24439
|
` + t.fragmentShader), this.configuration.halfRes && this.configuration.depthAwareUpsampling && (t.fragmentShader = `#define HALFRES
|
|
24440
|
-
` + t.fragmentShader), this.effectCompositerQuad ? (this.effectCompositerQuad.material.dispose(), this.effectCompositerQuad.material = new
|
|
24440
|
+
` + t.fragmentShader), this.effectCompositerQuad ? (this.effectCompositerQuad.material.dispose(), this.effectCompositerQuad.material = new Ri(t)) : this.effectCompositerQuad = new oh(new Ri(t));
|
|
24441
24441
|
}
|
|
24442
24442
|
/**
|
|
24443
24443
|
*
|
|
@@ -24569,7 +24569,7 @@ const m2 = {
|
|
|
24569
24569
|
};
|
|
24570
24570
|
class vx extends sc {
|
|
24571
24571
|
constructor(e, t) {
|
|
24572
|
-
super(), this.textureID = t !== void 0 ? t : "tDiffuse", e instanceof
|
|
24572
|
+
super(), this.textureID = t !== void 0 ? t : "tDiffuse", e instanceof Ri ? (this.uniforms = e.uniforms, this.material = e) : e && (this.uniforms = Pl.clone(e.uniforms), this.material = new Ri({
|
|
24573
24573
|
name: e.name !== void 0 ? e.name : "unspecified",
|
|
24574
24574
|
defines: Object.assign({}, e.defines),
|
|
24575
24575
|
uniforms: this.uniforms,
|
|
@@ -25126,17 +25126,17 @@ class x2 extends sc {
|
|
|
25126
25126
|
const r = new Image();
|
|
25127
25127
|
r.src = this.getSearchTexture(), r.onload = function() {
|
|
25128
25128
|
i.searchTexture.needsUpdate = !0;
|
|
25129
|
-
}, this.searchTexture = new Ni(), this.searchTexture.name = "SMAAPass.search", this.searchTexture.image = r, this.searchTexture.magFilter = hi, this.searchTexture.minFilter = hi, this.searchTexture.generateMipmaps = !1, this.searchTexture.flipY = !1, this.uniformsEdges = Pl.clone(lh.uniforms), this.uniformsEdges.resolution.value.set(1 / e, 1 / t), this.materialEdges = new
|
|
25129
|
+
}, this.searchTexture = new Ni(), this.searchTexture.name = "SMAAPass.search", this.searchTexture.image = r, this.searchTexture.magFilter = hi, this.searchTexture.minFilter = hi, this.searchTexture.generateMipmaps = !1, this.searchTexture.flipY = !1, this.uniformsEdges = Pl.clone(lh.uniforms), this.uniformsEdges.resolution.value.set(1 / e, 1 / t), this.materialEdges = new Ri({
|
|
25130
25130
|
defines: Object.assign({}, lh.defines),
|
|
25131
25131
|
uniforms: this.uniformsEdges,
|
|
25132
25132
|
vertexShader: lh.vertexShader,
|
|
25133
25133
|
fragmentShader: lh.fragmentShader
|
|
25134
|
-
}), this.uniformsWeights = Pl.clone(ch.uniforms), this.uniformsWeights.resolution.value.set(1 / e, 1 / t), this.uniformsWeights.tDiffuse.value = this.edgesRT.texture, this.uniformsWeights.tArea.value = this.areaTexture, this.uniformsWeights.tSearch.value = this.searchTexture, this.materialWeights = new
|
|
25134
|
+
}), this.uniformsWeights = Pl.clone(ch.uniforms), this.uniformsWeights.resolution.value.set(1 / e, 1 / t), this.uniformsWeights.tDiffuse.value = this.edgesRT.texture, this.uniformsWeights.tArea.value = this.areaTexture, this.uniformsWeights.tSearch.value = this.searchTexture, this.materialWeights = new Ri({
|
|
25135
25135
|
defines: Object.assign({}, ch.defines),
|
|
25136
25136
|
uniforms: this.uniformsWeights,
|
|
25137
25137
|
vertexShader: ch.vertexShader,
|
|
25138
25138
|
fragmentShader: ch.fragmentShader
|
|
25139
|
-
}), this.uniformsBlend = Pl.clone(xd.uniforms), this.uniformsBlend.resolution.value.set(1 / e, 1 / t), this.uniformsBlend.tDiffuse.value = this.weightsRT.texture, this.materialBlend = new
|
|
25139
|
+
}), this.uniformsBlend = Pl.clone(xd.uniforms), this.uniformsBlend.resolution.value.set(1 / e, 1 / t), this.uniformsBlend.tDiffuse.value = this.weightsRT.texture, this.materialBlend = new Ri({
|
|
25140
25140
|
uniforms: this.uniformsBlend,
|
|
25141
25141
|
vertexShader: xd.vertexShader,
|
|
25142
25142
|
fragmentShader: xd.fragmentShader
|
|
@@ -26584,7 +26584,7 @@ Zn.d = (n, e) => {
|
|
|
26584
26584
|
var ti = {};
|
|
26585
26585
|
(() => {
|
|
26586
26586
|
Zn.d(ti, { HY: () => u, K8: () => i, vF: () => M, jM: () => v, st: () => C, J7: () => wt, KV: () => at, Tl: () => Ze, gv: () => ae, LR: () => de, C9: () => G, zF: () => et, XL: () => rt, uv: () => Ke, vs: () => $, YJ: () => J, i9: () => h, uD: () => l, lV: () => r, Sp: () => s, RJ: () => Gn, SB: () => Yn, TL: () => T, oe: () => A, AB: () => o, dZ: () => O, Gf: () => Le, gK: () => k, BT: () => B, bt: () => F, sX: () => W });
|
|
26587
|
-
const n = (e = { AdditiveBlending: () => Hd, Box3: () =>
|
|
26587
|
+
const n = (e = { AdditiveBlending: () => Hd, Box3: () => Ai, BufferAttribute: () => jt, BufferGeometry: () => Ft, CanvasTexture: () => Kd, Color: () => pt, DataTexture: () => po, EventDispatcher: () => ga, Frustum: () => Zh, LessEqualDepth: () => Ih, LineBasicMaterial: () => es, LineSegments: () => ua, LinearFilter: () => Xi, Matrix4: () => ot, NearestFilter: () => hi, NoBlending: () => vs, Object3D: () => ri, Points: () => Uf, RGBAFormat: () => An, RawShaderMaterial: () => sx, Scene: () => ca, ShaderMaterial: () => Ri, Sphere: () => gn, Texture: () => Ni, Uint8BufferAttribute: () => B1, Vector2: () => Te, Vector3: () => Y, Vector4: () => si, WebGLRenderTarget: () => mn }, t = {}, Zn.d(t, e), t);
|
|
26588
26588
|
var e, t, i, s, r, o, l, h;
|
|
26589
26589
|
class u extends n.ShaderMaterial {
|
|
26590
26590
|
constructor() {
|
|
@@ -27699,8 +27699,8 @@ var ti = {};
|
|
|
27699
27699
|
const { offset: Ye, boundingBox: $e, tightBoundingBox: ft } = function(At) {
|
|
27700
27700
|
const Lt = new n.Vector3(At.boundingBox.lx, At.boundingBox.ly, At.boundingBox.lz), yt = new n.Vector3(At.boundingBox.ux, At.boundingBox.uy, At.boundingBox.uz), nt = new n.Box3(Lt, yt), Ot = nt.clone(), bt = Lt.clone();
|
|
27701
27701
|
if (At.tightBoundingBox) {
|
|
27702
|
-
const { lx: kt, ly: di, lz: Vi, ux: en, uy: gi, uz:
|
|
27703
|
-
Ot.min.set(kt, di, Vi), Ot.max.set(en, gi,
|
|
27702
|
+
const { lx: kt, ly: di, lz: Vi, ux: en, uy: gi, uz: Ti } = At.tightBoundingBox;
|
|
27703
|
+
Ot.min.set(kt, di, Vi), Ot.max.set(en, gi, Ti);
|
|
27704
27704
|
}
|
|
27705
27705
|
return nt.min.sub(bt), nt.max.sub(bt), Ot.min.sub(bt), Ot.max.sub(bt), { offset: bt, boundingBox: nt, tightBoundingBox: Ot };
|
|
27706
27706
|
}(we), ct = new dt({ getUrl: oe, version: we.version, boundingBox: $e, scale: we.scale, xhrRequest: pe }), Ve = new et(ct, $e, ft, Ye, pe);
|
|
@@ -27711,8 +27711,8 @@ var ti = {};
|
|
|
27711
27711
|
return Ot.hasChildren = !0, Ot.spacing = At.spacing, nt.upTo("1.5") ? Ot.numPoints = Lt.hierarchy[0][1] : Ot.numPoints = 0, At.root = Ot, yt.r = Ot, At.root.load();
|
|
27712
27712
|
}(Ve, we, Et, Rt).then(() => (Rt.upTo("1.4") && function(At, Lt, yt) {
|
|
27713
27713
|
for (let nt = 1; nt < Lt.hierarchy.length; nt++) {
|
|
27714
|
-
const [Ot, bt] = Lt.hierarchy[nt], { index: kt, parentName: di, level: Vi } = ii(Ot), en = yt[di], gi = Oe(en.boundingBox, kt),
|
|
27715
|
-
|
|
27714
|
+
const [Ot, bt] = Lt.hierarchy[nt], { index: kt, parentName: di, level: Vi } = ii(Ot), en = yt[di], gi = Oe(en.boundingBox, kt), Ti = new rt(Ot, At, gi);
|
|
27715
|
+
Ti.level = Vi, Ti.numPoints = bt, Ti.spacing = At.spacing / Math.pow(2, Ti.level), yt[Ot] = Ti, en.addChild(Ti);
|
|
27716
27716
|
}
|
|
27717
27717
|
}(Ve, we, Et), Ve.nodes = Et, Ve));
|
|
27718
27718
|
};
|
|
@@ -29789,8 +29789,8 @@ function D2() {
|
|
|
29789
29789
|
return this.multiplyMatrices(a, this);
|
|
29790
29790
|
}
|
|
29791
29791
|
multiplyMatrices(a, d) {
|
|
29792
|
-
const p = a.elements, _ = d.elements, S = this.elements, R = p[0], I = p[4], D = p[8], N = p[12], z = p[1], H = p[5], q = p[9], K = p[13], ge = p[2], xe = p[6], ze = p[10], Ce = p[14], ht = p[3], Qe = p[7], Ct = p[11], Pt = p[15], xt = _[0], vt = _[4], ai = _[8], xi = _[12], Vt = _[1], Gt = _[5], fi = _[9],
|
|
29793
|
-
return S[0] = R * xt + I * Vt + D * tn + N * oc, S[4] = R * vt + I * Gt + D * Ii + N * lc, S[8] = R * ai + I * fi + D * Nn + N * cc, S[12] = R * xi + I *
|
|
29792
|
+
const p = a.elements, _ = d.elements, S = this.elements, R = p[0], I = p[4], D = p[8], N = p[12], z = p[1], H = p[5], q = p[9], K = p[13], ge = p[2], xe = p[6], ze = p[10], Ce = p[14], ht = p[3], Qe = p[7], Ct = p[11], Pt = p[15], xt = _[0], vt = _[4], ai = _[8], xi = _[12], Vt = _[1], Gt = _[5], fi = _[9], Ei = _[13], tn = _[2], Ii = _[6], Nn = _[10], Ds = _[14], oc = _[3], lc = _[7], cc = _[11], hc = _[15];
|
|
29793
|
+
return S[0] = R * xt + I * Vt + D * tn + N * oc, S[4] = R * vt + I * Gt + D * Ii + N * lc, S[8] = R * ai + I * fi + D * Nn + N * cc, S[12] = R * xi + I * Ei + D * Ds + N * hc, S[1] = z * xt + H * Vt + q * tn + K * oc, S[5] = z * vt + H * Gt + q * Ii + K * lc, S[9] = z * ai + H * fi + q * Nn + K * cc, S[13] = z * xi + H * Ei + q * Ds + K * hc, S[2] = ge * xt + xe * Vt + ze * tn + Ce * oc, S[6] = ge * vt + xe * Gt + ze * Ii + Ce * lc, S[10] = ge * ai + xe * fi + ze * Nn + Ce * cc, S[14] = ge * xi + xe * Ei + ze * Ds + Ce * hc, S[3] = ht * xt + Qe * Vt + Ct * tn + Pt * oc, S[7] = ht * vt + Qe * Gt + Ct * Ii + Pt * lc, S[11] = ht * ai + Qe * fi + Ct * Nn + Pt * cc, S[15] = ht * xi + Qe * Ei + Ct * Ds + Pt * hc, this;
|
|
29794
29794
|
}
|
|
29795
29795
|
multiplyScalar(a) {
|
|
29796
29796
|
const d = this.elements;
|
|
@@ -30330,7 +30330,7 @@ function D2() {
|
|
|
30330
30330
|
}
|
|
30331
30331
|
}
|
|
30332
30332
|
Lt.DEFAULT_UP = /* @__PURE__ */ new $(0, 1, 0), Lt.DEFAULT_MATRIX_AUTO_UPDATE = !0, Lt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
30333
|
-
const yt = /* @__PURE__ */ new $(), nt = /* @__PURE__ */ new $(), Ot = /* @__PURE__ */ new $(), bt = /* @__PURE__ */ new $(), kt = /* @__PURE__ */ new $(), di = /* @__PURE__ */ new $(), Vi = /* @__PURE__ */ new $(), en = /* @__PURE__ */ new $(), gi = /* @__PURE__ */ new $(),
|
|
30333
|
+
const yt = /* @__PURE__ */ new $(), nt = /* @__PURE__ */ new $(), Ot = /* @__PURE__ */ new $(), bt = /* @__PURE__ */ new $(), kt = /* @__PURE__ */ new $(), di = /* @__PURE__ */ new $(), Vi = /* @__PURE__ */ new $(), en = /* @__PURE__ */ new $(), gi = /* @__PURE__ */ new $(), Ti = /* @__PURE__ */ new $();
|
|
30334
30334
|
let Pn = !1;
|
|
30335
30335
|
class qt {
|
|
30336
30336
|
constructor(a = new $(), d = new $(), p = new $()) {
|
|
@@ -30444,8 +30444,8 @@ function D2() {
|
|
|
30444
30444
|
const q = D * H - z * N;
|
|
30445
30445
|
if (q <= 0 && D >= 0 && z <= 0)
|
|
30446
30446
|
return R = D / (D - z), d.copy(p).addScaledVector(kt, R);
|
|
30447
|
-
|
|
30448
|
-
const K = kt.dot(
|
|
30447
|
+
Ti.subVectors(a, S);
|
|
30448
|
+
const K = kt.dot(Ti), ge = di.dot(Ti);
|
|
30449
30449
|
if (ge >= 0 && K <= ge)
|
|
30450
30450
|
return d.copy(S);
|
|
30451
30451
|
const xe = K * N - D * ge;
|
|
@@ -31232,8 +31232,8 @@ function D2() {
|
|
|
31232
31232
|
const H = new $(), q = new $(), K = new $(), ge = new _e(), xe = new _e(), ze = new _e(), Ce = new $(), ht = new $();
|
|
31233
31233
|
function Qe(Vt, Gt, fi) {
|
|
31234
31234
|
H.fromArray(_, Vt * 3), q.fromArray(_, Gt * 3), K.fromArray(_, fi * 3), ge.fromArray(R, Vt * 2), xe.fromArray(R, Gt * 2), ze.fromArray(R, fi * 2), q.sub(H), K.sub(H), xe.sub(ge), ze.sub(ge);
|
|
31235
|
-
const
|
|
31236
|
-
isFinite(
|
|
31235
|
+
const Ei = 1 / (xe.x * ze.y - ze.x * xe.y);
|
|
31236
|
+
isFinite(Ei) && (Ce.copy(q).multiplyScalar(ze.y).addScaledVector(K, -xe.y).multiplyScalar(Ei), ht.copy(K).multiplyScalar(xe.x).addScaledVector(q, -ze.x).multiplyScalar(Ei), N[Vt].add(Ce), N[Gt].add(Ce), N[fi].add(Ce), z[Vt].add(ht), z[Gt].add(ht), z[fi].add(ht));
|
|
31237
31237
|
}
|
|
31238
31238
|
let Ct = this.groups;
|
|
31239
31239
|
Ct.length === 0 && (Ct = [{
|
|
@@ -31241,8 +31241,8 @@ function D2() {
|
|
|
31241
31241
|
count: p.length
|
|
31242
31242
|
}]);
|
|
31243
31243
|
for (let Vt = 0, Gt = Ct.length; Vt < Gt; ++Vt) {
|
|
31244
|
-
const fi = Ct[Vt],
|
|
31245
|
-
for (let Ii =
|
|
31244
|
+
const fi = Ct[Vt], Ei = fi.start, tn = fi.count;
|
|
31245
|
+
for (let Ii = Ei, Nn = Ei + tn; Ii < Nn; Ii += 3)
|
|
31246
31246
|
Qe(p[Ii + 0], p[Ii + 1], p[Ii + 2]);
|
|
31247
31247
|
}
|
|
31248
31248
|
const Pt = new $(), xt = new $(), vt = new $(), ai = new $();
|
|
@@ -31250,12 +31250,12 @@ function D2() {
|
|
|
31250
31250
|
vt.fromArray(S, Vt * 3), ai.copy(vt);
|
|
31251
31251
|
const Gt = N[Vt];
|
|
31252
31252
|
Pt.copy(Gt), Pt.sub(vt.multiplyScalar(vt.dot(Gt))).normalize(), xt.crossVectors(ai, Gt);
|
|
31253
|
-
const
|
|
31254
|
-
D[Vt * 4] = Pt.x, D[Vt * 4 + 1] = Pt.y, D[Vt * 4 + 2] = Pt.z, D[Vt * 4 + 3] =
|
|
31253
|
+
const Ei = xt.dot(z[Vt]) < 0 ? -1 : 1;
|
|
31254
|
+
D[Vt * 4] = Pt.x, D[Vt * 4 + 1] = Pt.y, D[Vt * 4 + 2] = Pt.z, D[Vt * 4 + 3] = Ei;
|
|
31255
31255
|
}
|
|
31256
31256
|
for (let Vt = 0, Gt = Ct.length; Vt < Gt; ++Vt) {
|
|
31257
|
-
const fi = Ct[Vt],
|
|
31258
|
-
for (let Ii =
|
|
31257
|
+
const fi = Ct[Vt], Ei = fi.start, tn = fi.count;
|
|
31258
|
+
for (let Ii = Ei, Nn = Ei + tn; Ii < Nn; Ii += 3)
|
|
31259
31259
|
xi(p[Ii + 0]), xi(p[Ii + 1]), xi(p[Ii + 2]);
|
|
31260
31260
|
}
|
|
31261
31261
|
}
|
|
@@ -31850,10 +31850,10 @@ function D2() {
|
|
|
31850
31850
|
for (let Qe = 0, Ct = I.length; Qe < Ct; Qe++) {
|
|
31851
31851
|
const Pt = I[Qe], xt = E.getAttribute(Pt), vt = E.morphAttributes[Pt], ai = xt.itemSize, xi = D[Pt], Vt = N[Pt];
|
|
31852
31852
|
for (let Gt = 0; Gt < ai; Gt++) {
|
|
31853
|
-
const fi = H[Gt],
|
|
31854
|
-
if (xi[
|
|
31853
|
+
const fi = H[Gt], Ei = q[Gt];
|
|
31854
|
+
if (xi[Ei](R, xt[fi](Ce)), vt)
|
|
31855
31855
|
for (let tn = 0, Ii = vt.length; tn < Ii; tn++)
|
|
31856
|
-
Vt[tn][
|
|
31856
|
+
Vt[tn][Ei](
|
|
31857
31857
|
R,
|
|
31858
31858
|
vt[tn][fi](Ce)
|
|
31859
31859
|
);
|
|
@@ -34378,8 +34378,8 @@ function Y2() {
|
|
|
34378
34378
|
return this.multiplyMatrices(c, this);
|
|
34379
34379
|
}
|
|
34380
34380
|
multiplyMatrices(c, y) {
|
|
34381
|
-
const b = c.elements, E = y.elements, a = this.elements, d = b[0], p = b[4], _ = b[8], S = b[12], R = b[1], I = b[5], D = b[9], N = b[13], z = b[2], H = b[6], q = b[10], K = b[14], ge = b[3], xe = b[7], ze = b[11], Ce = b[15], ht = E[0], Qe = E[4], Ct = E[8], Pt = E[12], xt = E[1], vt = E[5], ai = E[9], xi = E[13], Vt = E[2], Gt = E[6], fi = E[10],
|
|
34382
|
-
return a[0] = d * ht + p * xt + _ * Vt + S * tn, a[4] = d * Qe + p * vt + _ * Gt + S * Ii, a[8] = d * Ct + p * ai + _ * fi + S * Nn, a[12] = d * Pt + p * xi + _ *
|
|
34381
|
+
const b = c.elements, E = y.elements, a = this.elements, d = b[0], p = b[4], _ = b[8], S = b[12], R = b[1], I = b[5], D = b[9], N = b[13], z = b[2], H = b[6], q = b[10], K = b[14], ge = b[3], xe = b[7], ze = b[11], Ce = b[15], ht = E[0], Qe = E[4], Ct = E[8], Pt = E[12], xt = E[1], vt = E[5], ai = E[9], xi = E[13], Vt = E[2], Gt = E[6], fi = E[10], Ei = E[14], tn = E[3], Ii = E[7], Nn = E[11], Ds = E[15];
|
|
34382
|
+
return a[0] = d * ht + p * xt + _ * Vt + S * tn, a[4] = d * Qe + p * vt + _ * Gt + S * Ii, a[8] = d * Ct + p * ai + _ * fi + S * Nn, a[12] = d * Pt + p * xi + _ * Ei + S * Ds, a[1] = R * ht + I * xt + D * Vt + N * tn, a[5] = R * Qe + I * vt + D * Gt + N * Ii, a[9] = R * Ct + I * ai + D * fi + N * Nn, a[13] = R * Pt + I * xi + D * Ei + N * Ds, a[2] = z * ht + H * xt + q * Vt + K * tn, a[6] = z * Qe + H * vt + q * Gt + K * Ii, a[10] = z * Ct + H * ai + q * fi + K * Nn, a[14] = z * Pt + H * xi + q * Ei + K * Ds, a[3] = ge * ht + xe * xt + ze * Vt + Ce * tn, a[7] = ge * Qe + xe * vt + ze * Gt + Ce * Ii, a[11] = ge * Ct + xe * ai + ze * fi + Ce * Nn, a[15] = ge * Pt + xe * xi + ze * Ei + Ce * Ds, this;
|
|
34383
34383
|
}
|
|
34384
34384
|
multiplyScalar(c) {
|
|
34385
34385
|
const y = this.elements;
|
|
@@ -34919,7 +34919,7 @@ function Y2() {
|
|
|
34919
34919
|
}
|
|
34920
34920
|
}
|
|
34921
34921
|
Lt.DEFAULT_UP = /* @__PURE__ */ new $(0, 1, 0), Lt.DEFAULT_MATRIX_AUTO_UPDATE = !0, Lt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
34922
|
-
const yt = /* @__PURE__ */ new $(), nt = /* @__PURE__ */ new $(), Ot = /* @__PURE__ */ new $(), bt = /* @__PURE__ */ new $(), kt = /* @__PURE__ */ new $(), di = /* @__PURE__ */ new $(), Vi = /* @__PURE__ */ new $(), en = /* @__PURE__ */ new $(), gi = /* @__PURE__ */ new $(),
|
|
34922
|
+
const yt = /* @__PURE__ */ new $(), nt = /* @__PURE__ */ new $(), Ot = /* @__PURE__ */ new $(), bt = /* @__PURE__ */ new $(), kt = /* @__PURE__ */ new $(), di = /* @__PURE__ */ new $(), Vi = /* @__PURE__ */ new $(), en = /* @__PURE__ */ new $(), gi = /* @__PURE__ */ new $(), Ti = /* @__PURE__ */ new $();
|
|
34923
34923
|
let Pn = !1;
|
|
34924
34924
|
class qt {
|
|
34925
34925
|
constructor(c = new $(), y = new $(), b = new $()) {
|
|
@@ -35033,8 +35033,8 @@ function Y2() {
|
|
|
35033
35033
|
const D = _ * I - R * S;
|
|
35034
35034
|
if (D <= 0 && _ >= 0 && R <= 0)
|
|
35035
35035
|
return d = _ / (_ - R), y.copy(b).addScaledVector(kt, d);
|
|
35036
|
-
|
|
35037
|
-
const N = kt.dot(
|
|
35036
|
+
Ti.subVectors(c, a);
|
|
35037
|
+
const N = kt.dot(Ti), z = di.dot(Ti);
|
|
35038
35038
|
if (z >= 0 && N <= z)
|
|
35039
35039
|
return y.copy(a);
|
|
35040
35040
|
const H = N * S - _ * z;
|
|
@@ -36606,66 +36606,68 @@ class Q2 {
|
|
|
36606
36606
|
}
|
|
36607
36607
|
//#endregion
|
|
36608
36608
|
//#region Load standalone worker
|
|
36609
|
-
async loadStandalone(e, t, i) {
|
|
36610
|
-
|
|
36609
|
+
async loadStandalone(e, t, i, s = () => {
|
|
36610
|
+
}) {
|
|
36611
|
+
var o, l, h;
|
|
36611
36612
|
this.viralViewerApi.viralDataManager.workerFetch(
|
|
36612
36613
|
i,
|
|
36613
|
-
(
|
|
36614
|
-
var
|
|
36615
|
-
const
|
|
36616
|
-
this.viralViewerApi.viralDataManager.elementData =
|
|
36614
|
+
(u) => {
|
|
36615
|
+
var g;
|
|
36616
|
+
const f = (g = this.viralViewerApi) == null ? void 0 : g.viralCompressProcessor.pakoUnzip(u), m = JSON.parse(f);
|
|
36617
|
+
this.viralViewerApi.viralDataManager.elementData = m.Data;
|
|
36617
36618
|
}
|
|
36618
36619
|
);
|
|
36619
|
-
let
|
|
36620
|
+
let r = await this.viralViewerApi.viralDataManager.normalFetch(
|
|
36620
36621
|
e
|
|
36621
36622
|
);
|
|
36622
36623
|
try {
|
|
36623
|
-
let
|
|
36624
|
-
-
|
|
36625
|
-
|
|
36626
|
-
|
|
36627
|
-
),
|
|
36628
|
-
-
|
|
36629
|
-
|
|
36630
|
-
|
|
36631
|
-
),
|
|
36632
|
-
|
|
36633
|
-
),
|
|
36634
|
-
|
|
36635
|
-
),
|
|
36636
|
-
|
|
36637
|
-
),
|
|
36638
|
-
if (await ((
|
|
36639
|
-
|
|
36640
|
-
|
|
36641
|
-
|
|
36642
|
-
)), await ((
|
|
36643
|
-
-(2 *
|
|
36644
|
-
2 *
|
|
36645
|
-
-(2 *
|
|
36646
|
-
)),
|
|
36647
|
-
let
|
|
36648
|
-
if (
|
|
36649
|
-
let
|
|
36624
|
+
let u = await r.json(), f = new Y(
|
|
36625
|
+
-u.CameraData.box.min.X,
|
|
36626
|
+
u.CameraData.box.min.Z,
|
|
36627
|
+
u.CameraData.box.min.Y
|
|
36628
|
+
), m = new Y(
|
|
36629
|
+
-u.CameraData.box.max.X,
|
|
36630
|
+
u.CameraData.box.max.Z,
|
|
36631
|
+
u.CameraData.box.max.Y
|
|
36632
|
+
), g = pn.middlePoint(f, m), x = Math.abs(
|
|
36633
|
+
u.CameraData.box.max.X - u.CameraData.box.min.X
|
|
36634
|
+
), w = Math.abs(
|
|
36635
|
+
u.CameraData.box.max.Y - u.CameraData.box.min.Y
|
|
36636
|
+
), P = Math.abs(
|
|
36637
|
+
u.CameraData.box.max.Z - u.CameraData.box.min.Z
|
|
36638
|
+
), M = Math.max(x, w, P);
|
|
36639
|
+
if (await ((o = this.viralViewerApi.viralCamera.cameraControls) == null ? void 0 : o.setTarget(
|
|
36640
|
+
g.x,
|
|
36641
|
+
g.y,
|
|
36642
|
+
g.z
|
|
36643
|
+
)), await ((l = this.viralViewerApi.viralCamera.cameraControls) == null ? void 0 : l.setPosition(
|
|
36644
|
+
-(2 * M) / 2,
|
|
36645
|
+
2 * M / 2,
|
|
36646
|
+
-(2 * M) / 2
|
|
36647
|
+
)), await ((h = this.viralViewerApi.viralCamera.cameraControls) == null ? void 0 : h.fitToBox(new Ai(f, m), !1)), u) {
|
|
36648
|
+
let v = u.Data[0][0];
|
|
36649
|
+
if (v) {
|
|
36650
|
+
let C = await this.getMaterials(
|
|
36650
36651
|
t,
|
|
36651
|
-
|
|
36652
|
-
|
|
36652
|
+
v[0],
|
|
36653
|
+
v[1] - 1
|
|
36653
36654
|
);
|
|
36654
|
-
|
|
36655
|
+
C && (this._loadElementStandaloneWorker.initial(C), await this.getElements(
|
|
36655
36656
|
t,
|
|
36656
|
-
|
|
36657
|
-
(
|
|
36658
|
-
|
|
36659
|
-
|
|
36657
|
+
u.Data[1],
|
|
36658
|
+
(T, A) => {
|
|
36659
|
+
T.length > 0 && this._loadElementStandaloneWorker.loadElement(
|
|
36660
|
+
T,
|
|
36660
36661
|
() => {
|
|
36662
|
+
A == u.Data[1].length - 1 && s();
|
|
36661
36663
|
}
|
|
36662
36664
|
);
|
|
36663
36665
|
}
|
|
36664
36666
|
));
|
|
36665
36667
|
}
|
|
36666
36668
|
}
|
|
36667
|
-
} catch (
|
|
36668
|
-
Sn.error(
|
|
36669
|
+
} catch (u) {
|
|
36670
|
+
Sn.error(u);
|
|
36669
36671
|
}
|
|
36670
36672
|
}
|
|
36671
36673
|
async getMaterials(e, t, i) {
|
|
@@ -36678,7 +36680,7 @@ class Q2 {
|
|
|
36678
36680
|
const h = (f = this.viralViewerApi) == null ? void 0 : f.viralCompressProcessor.pakoUnzip(l);
|
|
36679
36681
|
return JSON.parse(h);
|
|
36680
36682
|
}
|
|
36681
|
-
async getElements(e, t, i = (s) => {
|
|
36683
|
+
async getElements(e, t, i = (s, r) => {
|
|
36682
36684
|
}) {
|
|
36683
36685
|
var s;
|
|
36684
36686
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -36689,7 +36691,7 @@ class Q2 {
|
|
|
36689
36691
|
h
|
|
36690
36692
|
)).arrayBuffer();
|
|
36691
36693
|
const m = (s = this.viralViewerApi) == null ? void 0 : s.viralCompressProcessor.pakoUnzip(f), g = JSON.parse(m);
|
|
36692
|
-
i(g);
|
|
36694
|
+
i(g, r);
|
|
36693
36695
|
}
|
|
36694
36696
|
}
|
|
36695
36697
|
//#endregion
|
|
@@ -38265,7 +38267,7 @@ class AP {
|
|
|
38265
38267
|
}
|
|
38266
38268
|
}
|
|
38267
38269
|
function TP(n, e, t) {
|
|
38268
|
-
const i = e.attributes, s = new
|
|
38270
|
+
const i = e.attributes, s = new Ai();
|
|
38269
38271
|
if (i.POSITION !== void 0) {
|
|
38270
38272
|
const l = t.json.accessors[i.POSITION], h = l.min, u = l.max;
|
|
38271
38273
|
if (h !== void 0 && u !== void 0) {
|
|
@@ -39167,7 +39169,7 @@ class $P {
|
|
|
39167
39169
|
}
|
|
39168
39170
|
const Bi = new $P();
|
|
39169
39171
|
let wr, oo;
|
|
39170
|
-
const Wa = [], fh = /* @__PURE__ */ new Ax(() => new
|
|
39172
|
+
const Wa = [], fh = /* @__PURE__ */ new Ax(() => new Ai());
|
|
39171
39173
|
function JP(n, e, t, i, s, r) {
|
|
39172
39174
|
wr = fh.getPrimitive(), oo = fh.getPrimitive(), Wa.push(wr, oo), Bi.setBuffer(n._roots[e]);
|
|
39173
39175
|
const o = of(0, n.geometry, t, i, s, r);
|
|
@@ -39355,7 +39357,7 @@ function aC(n, e = null) {
|
|
|
39355
39357
|
}
|
|
39356
39358
|
}
|
|
39357
39359
|
}
|
|
39358
|
-
const M0 = /* @__PURE__ */ new
|
|
39360
|
+
const M0 = /* @__PURE__ */ new Ai();
|
|
39359
39361
|
function Or(n, e, t, i) {
|
|
39360
39362
|
return Vn(n, e, M0), t.intersectBox(M0, i);
|
|
39361
39363
|
}
|
|
@@ -39429,7 +39431,7 @@ function cf(n, e, t, i) {
|
|
|
39429
39431
|
return M && C ? M.distance <= C.distance ? M : C : M || C || null;
|
|
39430
39432
|
}
|
|
39431
39433
|
}
|
|
39432
|
-
const xh = /* @__PURE__ */ new
|
|
39434
|
+
const xh = /* @__PURE__ */ new Ai(), ja = /* @__PURE__ */ new os(), Ka = /* @__PURE__ */ new os(), dl = /* @__PURE__ */ new ot(), T0 = /* @__PURE__ */ new wn(), vh = /* @__PURE__ */ new wn();
|
|
39433
39435
|
function fC(n, e, t, i) {
|
|
39434
39436
|
Bi.setBuffer(n._roots[e]);
|
|
39435
39437
|
const s = hf(0, n, t, i);
|
|
@@ -39506,7 +39508,7 @@ function xC(n, e, t, i = {}, s = {}, r = 0, o = 1 / 0) {
|
|
|
39506
39508
|
}
|
|
39507
39509
|
), on.releasePrimitive(g), on.releasePrimitive(x), C === 1 / 0 ? null : (i.point ? i.point.copy(P) : i.point = P.clone(), i.distance = C, i.faceIndex = T, s && (s.point ? s.point.copy(v) : s.point = v.clone(), s.point.applyMatrix4(bh), P.applyMatrix4(bh), s.distance = P.sub(s.point).length(), s.faceIndex = A), i);
|
|
39508
39510
|
}
|
|
39509
|
-
const E0 = new ot(), Pd = /* @__PURE__ */ new
|
|
39511
|
+
const E0 = new ot(), Pd = /* @__PURE__ */ new Ai(), Cd = /* @__PURE__ */ new Ai();
|
|
39510
39512
|
function vC(n, e, t, i) {
|
|
39511
39513
|
let {
|
|
39512
39514
|
intersectsRanges: s,
|
|
@@ -39629,7 +39631,7 @@ function df(n, e, t, i) {
|
|
|
39629
39631
|
return M && C ? M.distance <= C.distance ? M : C : M || C || null;
|
|
39630
39632
|
}
|
|
39631
39633
|
}
|
|
39632
|
-
const wh = /* @__PURE__ */ new
|
|
39634
|
+
const wh = /* @__PURE__ */ new Ai(), $a = /* @__PURE__ */ new os(), Ja = /* @__PURE__ */ new os(), pl = /* @__PURE__ */ new ot(), R0 = /* @__PURE__ */ new wn(), _h = /* @__PURE__ */ new wn();
|
|
39633
39635
|
function SC(n, e, t, i) {
|
|
39634
39636
|
Bi.setBuffer(n._roots[e]);
|
|
39635
39637
|
const s = ff(0, n, t, i);
|
|
@@ -39711,7 +39713,7 @@ function CC(n, e, t, i = {}, s = {}, r = 0, o = 1 / 0) {
|
|
|
39711
39713
|
}
|
|
39712
39714
|
), on.releasePrimitive(g), on.releasePrimitive(x), C === 1 / 0 ? null : (i.point ? i.point.copy(P) : i.point = P.clone(), i.distance = C, i.faceIndex = T, s && (s.point ? s.point.copy(v) : s.point = v.clone(), s.point.applyMatrix4(Mh), P.applyMatrix4(Mh), s.distance = P.sub(s.point).length(), s.faceIndex = A), i);
|
|
39713
39715
|
}
|
|
39714
|
-
const L0 = new ot(), Ld = /* @__PURE__ */ new
|
|
39716
|
+
const L0 = new ot(), Ld = /* @__PURE__ */ new Ai(), Id = /* @__PURE__ */ new Ai();
|
|
39715
39717
|
function RC(n, e, t, i) {
|
|
39716
39718
|
let {
|
|
39717
39719
|
intersectsRanges: s,
|
|
@@ -39754,7 +39756,7 @@ function RC(n, e, t, i) {
|
|
|
39754
39756
|
function LC() {
|
|
39755
39757
|
return typeof SharedArrayBuffer < "u";
|
|
39756
39758
|
}
|
|
39757
|
-
const Sh = /* @__PURE__ */ new wn(), I0 = /* @__PURE__ */ new
|
|
39759
|
+
const Sh = /* @__PURE__ */ new wn(), I0 = /* @__PURE__ */ new Ai();
|
|
39758
39760
|
class rp {
|
|
39759
39761
|
static serialize(e, t = {}) {
|
|
39760
39762
|
t = {
|
|
@@ -39813,7 +39815,7 @@ class rp {
|
|
|
39813
39815
|
[Md]: !1
|
|
39814
39816
|
}, t), t.useSharedArrayBuffer && !LC())
|
|
39815
39817
|
throw new Error("MeshBVH: SharedArrayBuffer is not available.");
|
|
39816
|
-
this.geometry = e, this._roots = null, this._indirectBuffer = null, t[Md] || (QP(this, t), !e.boundingBox && t.setBoundingBox && (e.boundingBox = this.getBoundingBox(new
|
|
39818
|
+
this.geometry = e, this._roots = null, this._indirectBuffer = null, t[Md] || (QP(this, t), !e.boundingBox && t.setBoundingBox && (e.boundingBox = this.getBoundingBox(new Ai())));
|
|
39817
39819
|
const { _indirectBuffer: i } = this;
|
|
39818
39820
|
this.resolveTriangleIndex = t.indirect ? (s) => i[s] : (s) => s;
|
|
39819
39821
|
}
|
|
@@ -40001,7 +40003,7 @@ uniform float opacity;
|
|
|
40001
40003
|
void main() {
|
|
40002
40004
|
gl_FragColor = vec4(color, opacity);
|
|
40003
40005
|
}
|
|
40004
|
-
`, this.outlineMaterial = new
|
|
40006
|
+
`, this.outlineMaterial = new Ri({
|
|
40005
40007
|
uniforms: {
|
|
40006
40008
|
color: { value: new pt(Bt.secondary) },
|
|
40007
40009
|
opacity: { value: 1 },
|
|
@@ -40576,7 +40578,7 @@ class e3 {
|
|
|
40576
40578
|
if (e.activate) {
|
|
40577
40579
|
if (t) {
|
|
40578
40580
|
if (t.visible = !0, this.viralTools.viralViewerApi.viralScene.models.length > 0) {
|
|
40579
|
-
let i = new
|
|
40581
|
+
let i = new Ai().setFromObject(
|
|
40580
40582
|
this.viralTools.viralViewerApi.viralScene.models[0]
|
|
40581
40583
|
);
|
|
40582
40584
|
const s = new Y();
|
|
@@ -40784,7 +40786,7 @@ const i3 = {
|
|
|
40784
40786
|
Quaternion: Qi,
|
|
40785
40787
|
Matrix4: ot,
|
|
40786
40788
|
Spherical: fx,
|
|
40787
|
-
Box3:
|
|
40789
|
+
Box3: Ai,
|
|
40788
40790
|
Sphere: gn,
|
|
40789
40791
|
Raycaster: nc,
|
|
40790
40792
|
MathUtils: Ef
|