viral-viewer-2 6.5.0 → 6.5.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/index.mjs +6 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -23278,8 +23278,12 @@ class O2 {
|
|
|
23278
23278
|
}
|
|
23279
23279
|
worldToClient2(e) {
|
|
23280
23280
|
if (this.camera) {
|
|
23281
|
-
e.project(this.camera);
|
|
23282
|
-
const t =
|
|
23281
|
+
this.camera.updateMatrixWorld(!0), e.project(this.camera);
|
|
23282
|
+
const t = Math.round(
|
|
23283
|
+
(0.5 + e.x / 2) * (this.viralViewerApi.viralRenderer.renderer.domElement.width / window.devicePixelRatio)
|
|
23284
|
+
), i = Math.round(
|
|
23285
|
+
(0.5 - e.y / 2) * (this.viralViewerApi.viralRenderer.renderer.domElement.height / window.devicePixelRatio)
|
|
23286
|
+
);
|
|
23283
23287
|
return new G(t, i, 0);
|
|
23284
23288
|
}
|
|
23285
23289
|
return null;
|