viral-viewer-2 6.5.0 → 6.5.1
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 +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -23278,9 +23278,9 @@ class O2 {
|
|
|
23278
23278
|
}
|
|
23279
23279
|
worldToClient2(e) {
|
|
23280
23280
|
if (this.camera) {
|
|
23281
|
-
e.project(this.camera);
|
|
23282
|
-
|
|
23283
|
-
return new G(
|
|
23281
|
+
this.camera.updateMatrixWorld(!0), e.project(this.camera);
|
|
23282
|
+
let t = this.viralViewerApi.viralRenderer.renderer.domElement.clientWidth / 2, i = this.viralViewerApi.viralRenderer.renderer.domElement.clientHeight / 2, s = e.x * t + t, r = -(e.y * i) + i;
|
|
23283
|
+
return new G(s, r, 0);
|
|
23284
23284
|
}
|
|
23285
23285
|
return null;
|
|
23286
23286
|
}
|