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.
- package/dist/index.mjs +9 -10
- 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
|
-
|
|
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.
|
|
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
|
}
|