viral-viewer-2 6.6.6 → 6.6.7

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.
@@ -30,6 +30,7 @@ export declare class ViralInstancedMesh extends InstancedMesh {
30
30
  reverseToOriginal(reverseHoverMeshes?: boolean, reverseSelectMeshes?: boolean, reverseInstanceData?: boolean): void;
31
31
  getDistinctNumbers(numbers: number[]): number[];
32
32
  private _edgeLines;
33
+ private _edgeGroup;
33
34
  enableEdge(material: LineBasicMaterial): void;
34
35
  disableEdge(): void;
35
36
  }
package/dist/index.mjs CHANGED
@@ -24581,7 +24581,7 @@ class j2 extends fe {
24581
24581
  }
24582
24582
  }
24583
24583
  const K2 = {
24584
- background: "#e2e6dc",
24584
+ background: "#ffffff",
24585
24585
  primary: "#17312c",
24586
24586
  secondary: "#56b77e",
24587
24587
  accent: "#f2735b",
@@ -34775,7 +34775,7 @@ class lv extends Vp {
34775
34775
  * @param _host share the same logic with parent, when we push temp mesh into scene, we must binding original viral instanced mesh to host to recall/ reprogress later
34776
34776
  */
34777
34777
  constructor(e, t, i) {
34778
- super(e, t, i), this._originMesh = null, this._isOrigin = !0, this.overrideHoverMeshes = [], this.overrideSelectMeshes = [], this._tempHoveredIndexs = [], this.hoveredIndexs = new Rl(), this._tempSelectedIndexs = [], this.selectedIndexs = new Rl(), this._edgeLines = null;
34778
+ super(e, t, i), this._originMesh = null, this._isOrigin = !0, this.overrideHoverMeshes = [], this.overrideSelectMeshes = [], this._tempHoveredIndexs = [], this.hoveredIndexs = new Rl(), this._tempSelectedIndexs = [], this.selectedIndexs = new Rl(), this._edgeLines = null, this._edgeGroup = new pr();
34779
34779
  }
34780
34780
  hideAts(e) {
34781
34781
  if (this._isOrigin && (this._originMesh = this.clone(), this._originMesh.instanceColor = this.instanceColor, this._originMesh.instanceMatrix = this.instanceMatrix, this._isOrigin = !1), e.length > 0) {
@@ -34916,22 +34916,25 @@ class lv extends Vp {
34916
34916
  }
34917
34917
  enableEdge(e) {
34918
34918
  if (this._edgeLines)
34919
- this._edgeLines.visible = !0;
34919
+ this._edgeLines.visible = !0, this._edgeGroup.children.forEach((t) => {
34920
+ t.visible = !0;
34921
+ });
34920
34922
  else {
34921
34923
  const t = new Ba(this.geometry);
34922
34924
  this._edgeLines = new Bs(t, e);
34923
- const i = new pr();
34924
- for (let n = 0; n < this.count; n++) {
34925
- const r = new wt();
34926
- this.getMatrixAt(n, r);
34927
- const o = this._edgeLines.clone();
34928
- o.applyMatrix4(r), i.add(o);
34925
+ for (let i = 0; i < this.count; i++) {
34926
+ const n = new wt();
34927
+ this.getMatrixAt(i, n);
34928
+ const r = this._edgeLines.clone();
34929
+ r.applyMatrix4(n), this._edgeGroup.add(r);
34929
34930
  }
34930
- this.add(i);
34931
+ this.add(this._edgeGroup);
34931
34932
  }
34932
34933
  }
34933
34934
  disableEdge() {
34934
- this._edgeLines && (this._edgeLines.visible = !1);
34935
+ this._edgeLines && (this._edgeLines.visible = !1), this._edgeGroup.children.forEach((e) => {
34936
+ e.visible = !1;
34937
+ });
34935
34938
  }
34936
34939
  //#endregion
34937
34940
  }
@@ -42340,7 +42343,7 @@ class sR {
42340
42343
  "position:absolute; right:10px; top:10px; display:flex"
42341
42344
  );
42342
42345
  const t = document.createElement("div");
42343
- t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" style="fill:#e2e6dc;cursor: pointer; filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));" height="20px" viewBox="0 0 576 512"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"/></svg>', t.addEventListener("click", (n) => {
42346
+ t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" style="fill:#ffffff;cursor: pointer; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));" height="20px" viewBox="0 0 576 512"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"/></svg>', t.addEventListener("click", (n) => {
42344
42347
  this.handleClick();
42345
42348
  }), e.appendChild(t);
42346
42349
  const i = document.createElement("div");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viral-viewer-2",
3
- "version": "6.6.6",
3
+ "version": "6.6.7",
4
4
  "description": "",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",