viral-viewer-2 6.7.5 → 6.7.6
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 +4 -10
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -137,7 +137,7 @@ class Em {
|
|
|
137
137
|
}
|
|
138
138
|
class Ix {
|
|
139
139
|
constructor(e, t) {
|
|
140
|
-
this.elementData = e, this.root = new Em(), this.root = t;
|
|
140
|
+
this.elementData = e, this.root = new Em(), t && (this.root = t);
|
|
141
141
|
}
|
|
142
142
|
// Build the suffix trie with all text values from the data
|
|
143
143
|
buildSuffixTrie() {
|
|
@@ -44489,12 +44489,7 @@ class g3 {
|
|
|
44489
44489
|
);
|
|
44490
44490
|
}
|
|
44491
44491
|
addData(e) {
|
|
44492
|
-
this.
|
|
44493
|
-
[e],
|
|
44494
|
-
(t) => {
|
|
44495
|
-
this.dataTree.push(new Ix([e], t));
|
|
44496
|
-
}
|
|
44497
|
-
);
|
|
44492
|
+
this.dataTree.push(new Ix([e]));
|
|
44498
44493
|
}
|
|
44499
44494
|
getElementData(e, t) {
|
|
44500
44495
|
let i = this.dataTree[e];
|
|
@@ -45560,6 +45555,7 @@ class N3 {
|
|
|
45560
45555
|
i.set(r, n), n += r.length;
|
|
45561
45556
|
}), i;
|
|
45562
45557
|
}
|
|
45558
|
+
//TODO: this action cause freeze ui, switch to worker
|
|
45563
45559
|
generateMergeModel() {
|
|
45564
45560
|
this.isGeneratingMergeModel = !0;
|
|
45565
45561
|
let e = performance.now();
|
|
@@ -45661,9 +45657,7 @@ class z3 {
|
|
|
45661
45657
|
this.planeEdges && this.viralViewerApi.viralScene.scene.remove(this.planeEdges);
|
|
45662
45658
|
const e = new Zt().setFromObject(
|
|
45663
45659
|
this.viralViewerApi.viralScene.mergedModel
|
|
45664
|
-
), t = e.min, i = e.max
|
|
45665
|
-
//! we plus 1 to avoid z fighting
|
|
45666
|
-
const n = [
|
|
45660
|
+
), t = e.min, i = e.max, n = [
|
|
45667
45661
|
new In(new H(1, 0, 0), Math.abs(t.x)),
|
|
45668
45662
|
// Left (-X)
|
|
45669
45663
|
new In(new H(-1, 0, 0), Math.abs(i.x)),
|
package/dist/types.d.ts
CHANGED