viral-viewer-2 6.3.3 → 6.3.4
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/index.mjs +15 -9
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -36644,11 +36644,20 @@ class Q2 {
|
|
|
36644
36644
|
-(2 * T) / 2,
|
|
36645
36645
|
2 * T / 2,
|
|
36646
36646
|
-(2 * T) / 2
|
|
36647
|
-
)), await ((u = this.viralViewerApi.viralCamera.cameraControls) == null ? void 0 : u.fitToBox(
|
|
36647
|
+
)), await ((u = this.viralViewerApi.viralCamera.cameraControls) == null ? void 0 : u.fitToBox(
|
|
36648
|
+
new Ai(x, w),
|
|
36649
|
+
!1
|
|
36650
|
+
));
|
|
36648
36651
|
let S = new Y();
|
|
36649
|
-
(f = this.viralViewerApi.viralCamera.cameraControls) == null || f.getPosition(
|
|
36652
|
+
(f = this.viralViewerApi.viralCamera.cameraControls) == null || f.getPosition(
|
|
36653
|
+
S
|
|
36654
|
+
);
|
|
36650
36655
|
var o = S.distanceTo(E);
|
|
36651
|
-
if (await ((g = this.viralViewerApi.viralCamera.cameraControls) == null ? void 0 : g.setPosition(
|
|
36656
|
+
if (await ((g = this.viralViewerApi.viralCamera.cameraControls) == null ? void 0 : g.setPosition(
|
|
36657
|
+
S.x,
|
|
36658
|
+
S.y + o,
|
|
36659
|
+
S.z
|
|
36660
|
+
)), m) {
|
|
36652
36661
|
let O = m.Data[0][0];
|
|
36653
36662
|
if (O) {
|
|
36654
36663
|
let k = await this.getMaterials(
|
|
@@ -36660,12 +36669,9 @@ class Q2 {
|
|
|
36660
36669
|
t,
|
|
36661
36670
|
m.Data[1],
|
|
36662
36671
|
(F, W) => {
|
|
36663
|
-
F.length > 0 && this._loadElementStandaloneWorker.loadElement(
|
|
36664
|
-
|
|
36665
|
-
|
|
36666
|
-
W == m.Data[1].length - 1 && s();
|
|
36667
|
-
}
|
|
36668
|
-
);
|
|
36672
|
+
W == m.Data[1].length - 1 && F.length == 0 && s(), F.length > 0 && this._loadElementStandaloneWorker.loadElement(F, () => {
|
|
36673
|
+
W == m.Data[1].length - 1 && s();
|
|
36674
|
+
});
|
|
36669
36675
|
}
|
|
36670
36676
|
));
|
|
36671
36677
|
}
|