viral-viewer-2 6.4.0 → 6.4.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.
Files changed (2) hide show
  1. package/dist/index.mjs +9 -10
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -28561,24 +28561,23 @@ class mP {
28561
28561
  this.viralViewerApi = e, this.potree = new pP(), this.pointClouds = [];
28562
28562
  }
28563
28563
  /**
28564
- *
28564
+ *
28565
28565
  * @param metadataUrl endpoint to download metadata.json
28566
28566
  * @param urlOcbinTree endpoint to download octree.bin
28567
28567
  * @param urlHierarchy endpoint to download hierarchy.bin
28568
- * @param pointBudget
28568
+ * @param pointBudget
28569
28569
  */
28570
28570
  load(e, t, i, s = 2e6, r = (a) => {
28571
28571
  }) {
28572
- this.potree.pointBudget = s, this.potree.loadPointCloudCustom(
28573
- e,
28574
- t,
28575
- i
28576
- ).then((a) => {
28577
- var u;
28572
+ this.potree.pointBudget = s, this.potree.loadPointCloudCustom(e, t, i).then((a) => {
28573
+ var m;
28578
28574
  let l = a.material;
28579
28575
  l.size = 1, l.pointSizeType = fP.ADAPTIVE, l.shape = dP.CIRCLE, l.pointColorType = uP.RGB, l.inputColorEncoding = 1, l.outputColorEncoding = 1, console.log(a.boundingBox);
28580
- let h = new Fo(-Math.PI / 2, 0, 0);
28581
- a.rotation.copy(h), this.viralViewerApi.viralScene.addObject(a), this.pointClouds.push(a), this.viralViewerApi.viralCamera.camera && ((u = this.viralViewerApi.viralCamera.cameraControls) == null || u.fitToBox(a.boundingBox, !0)), r(a);
28576
+ let h = new G(0, -1.5, 3), u = new Fo(-Math.PI / 2, 0, 0), f = new G(2, 2, 2);
28577
+ a.position.copy(h), a.rotation.copy(u), a.scale.copy(f), this.viralViewerApi.viralScene.addModel(a), this.viralViewerApi.viralScene.selectables.push(a), this.pointClouds.push(a), this.viralViewerApi.viralCamera.camera && ((m = this.viralViewerApi.viralCamera.cameraControls) == null || m.fitToBox(
28578
+ a.boundingBox,
28579
+ !0
28580
+ )), r(a);
28582
28581
  });
28583
28582
  }
28584
28583
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viral-viewer-2",
3
- "version": "6.4.0",
3
+ "version": "6.4.1",
4
4
  "description": "",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",