viral-viewer-2 7.2.6 → 7.2.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.
- package/dist/index.mjs +19 -19
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -48,7 +48,7 @@ class J {
|
|
|
48
48
|
static error(e) {
|
|
49
49
|
console.log(
|
|
50
50
|
`%c ${e}`,
|
|
51
|
-
`color: ${y.
|
|
51
|
+
`color: ${y.secondary}; background: ${y.background}; font-size: 16px;`
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
54
|
static memory(e) {
|
|
@@ -122,7 +122,7 @@ class D {
|
|
|
122
122
|
return new x(s, e.material);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
const Yi = D.hexToRGB(y.
|
|
125
|
+
const Yi = D.hexToRGB(y.secondary), Xi = 0.99;
|
|
126
126
|
class ee extends x {
|
|
127
127
|
constructor(e, t, i) {
|
|
128
128
|
super(e, t), this.globalMaterialIndex = -1, this.workerPool = null, this._depthPrePassMesh = null, this._bufferElements = [], this._colors = null, this._originalColor = null, this._elementMap = /* @__PURE__ */ new Map(), this._isBatching = !1, this._batchQueue = [], this._isProcessingQueue = !1, this._edgeLines = null, this._edgeRanges = /* @__PURE__ */ new Map(), this._edgeThreshold = 60, this._edgeMaterial = null, this._selectedElements = [], this._hidingElements = [], this._isolatingElements = [], this._hiddenSet = /* @__PURE__ */ new Set(), this._isolatedSet = /* @__PURE__ */ new Set(), this._elementOpacityMap = /* @__PURE__ */ new Map(), this._isRGBAMode = !1, this._elementOriginalColors = /* @__PURE__ */ new Map(), this._temporaryColors = /* @__PURE__ */ new Map(), this._isGeneratedLights = !1, this._pointLight = null, this.workerPool = i || null;
|
|
@@ -1180,7 +1180,7 @@ class oe {
|
|
|
1180
1180
|
this._workers.forEach((e) => e.dispose()), this._workers = [], this._free = [], this._busy = {}, this._queue = [];
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
|
-
const Ji = D.hexToRGB(y.
|
|
1183
|
+
const Ji = D.hexToRGB(y.secondary), qe = class qe extends Wt {
|
|
1184
1184
|
constructor(e) {
|
|
1185
1185
|
super(), this.material = e, this.globalMaterialIndex = -1, this._depthPrePassMeshes = [], this._instancedMeshes = /* @__PURE__ */ new Map(), this._bufferElements = [], this._originalColor = null, this._elementMap = /* @__PURE__ */ new Map(), this._originalTransforms = /* @__PURE__ */ new Map(), this._elementOpacity = /* @__PURE__ */ new Map(), this._temporaryColors = /* @__PURE__ */ new Map(), this._selectedElements = [], this._hidingElements = [], this._isolatingElements = [], this._edgeLines = /* @__PURE__ */ new Map(), this._edgeRanges = /* @__PURE__ */ new Map(), this._edgeThreshold = 60, this._edgeMaterial = null, this._isGeneratedLights = !1, this._pointLight = null, this._hiddenSet = /* @__PURE__ */ new Set(), this._isolatedSet = /* @__PURE__ */ new Set(), this.material && "vertexColors" in this.material && (this.material.vertexColors = !0, this.material.needsUpdate = !0);
|
|
1186
1186
|
}
|
|
@@ -3118,7 +3118,7 @@ class ds {
|
|
|
3118
3118
|
transition: background-color 0.2s;
|
|
3119
3119
|
`
|
|
3120
3120
|
), i.addEventListener("mouseenter", () => {
|
|
3121
|
-
i.style.backgroundColor = y.
|
|
3121
|
+
i.style.backgroundColor = y.secondary;
|
|
3122
3122
|
}), i.addEventListener("mouseleave", () => {
|
|
3123
3123
|
i.style.backgroundColor = y.primary;
|
|
3124
3124
|
}), i;
|
|
@@ -3139,7 +3139,7 @@ class ds {
|
|
|
3139
3139
|
background-color: rgba(0, 0, 0, 0.1);
|
|
3140
3140
|
}
|
|
3141
3141
|
.batch-item.selected {
|
|
3142
|
-
border-color: ${y.
|
|
3142
|
+
border-color: ${y.secondary};
|
|
3143
3143
|
background-color: rgba(128, 214, 218, 0.2);
|
|
3144
3144
|
}
|
|
3145
3145
|
.batch-item-title {
|
|
@@ -3338,7 +3338,7 @@ class us {
|
|
|
3338
3338
|
min-width: 80px;
|
|
3339
3339
|
`
|
|
3340
3340
|
), i.addEventListener("mouseenter", () => {
|
|
3341
|
-
i.style.backgroundColor = y.
|
|
3341
|
+
i.style.backgroundColor = y.secondary;
|
|
3342
3342
|
}), i.addEventListener("mouseleave", () => {
|
|
3343
3343
|
i.style.backgroundColor = y.primary;
|
|
3344
3344
|
}), i;
|
|
@@ -3361,7 +3361,7 @@ class us {
|
|
|
3361
3361
|
background-color: rgba(0, 0, 0, 0.1);
|
|
3362
3362
|
}
|
|
3363
3363
|
.instanced-item.selected {
|
|
3364
|
-
border-color: ${y.
|
|
3364
|
+
border-color: ${y.secondary};
|
|
3365
3365
|
background-color: rgba(128, 214, 218, 0.2);
|
|
3366
3366
|
}
|
|
3367
3367
|
.instanced-item-title {
|
|
@@ -3413,7 +3413,7 @@ class us {
|
|
|
3413
3413
|
}
|
|
3414
3414
|
.internal-mesh-item.selected {
|
|
3415
3415
|
background-color: rgba(33, 150, 243, 0.2);
|
|
3416
|
-
border-left-color: ${y.
|
|
3416
|
+
border-left-color: ${y.secondary};
|
|
3417
3417
|
}
|
|
3418
3418
|
`, document.head.appendChild(e);
|
|
3419
3419
|
}
|
|
@@ -3729,7 +3729,7 @@ class ps {
|
|
|
3729
3729
|
transition: background-color 0.2s;
|
|
3730
3730
|
`
|
|
3731
3731
|
), i.addEventListener("mouseenter", () => {
|
|
3732
|
-
i.style.backgroundColor = y.
|
|
3732
|
+
i.style.backgroundColor = y.secondary;
|
|
3733
3733
|
}), i.addEventListener("mouseleave", () => {
|
|
3734
3734
|
i.style.backgroundColor = y.primary;
|
|
3735
3735
|
}), i;
|
|
@@ -7145,7 +7145,7 @@ class an {
|
|
|
7145
7145
|
}
|
|
7146
7146
|
}
|
|
7147
7147
|
const on = {
|
|
7148
|
-
outlineColor: new N(y.
|
|
7148
|
+
outlineColor: new N(y.secondary),
|
|
7149
7149
|
outlineOpacity: 1,
|
|
7150
7150
|
outlineThickness: 2,
|
|
7151
7151
|
selectionAlpha: 0.99,
|
|
@@ -7659,12 +7659,12 @@ class vn extends Ot {
|
|
|
7659
7659
|
}
|
|
7660
7660
|
}
|
|
7661
7661
|
const bn = {
|
|
7662
|
-
outlineColor: new N(y.
|
|
7662
|
+
outlineColor: new N(y.secondary),
|
|
7663
7663
|
outlineOpacity: 1,
|
|
7664
7664
|
outlineThickness: 2,
|
|
7665
7665
|
showOccluded: !0,
|
|
7666
7666
|
occludedOpacity: 0.5
|
|
7667
|
-
}, xt = D.hexToRGB(y.
|
|
7667
|
+
}, xt = D.hexToRGB(y.secondary), jt = `
|
|
7668
7668
|
varying vec2 vUv;
|
|
7669
7669
|
void main() {
|
|
7670
7670
|
vUv = uv;
|
|
@@ -8157,7 +8157,7 @@ class En {
|
|
|
8157
8157
|
t,
|
|
8158
8158
|
// TODO : investigate why this effect when render new model
|
|
8159
8159
|
[this.viralViewerApi.viralScene.outlineModel]
|
|
8160
|
-
), this.outlinePass.edgeStrength = 5, this.outlinePass.edgeGlow = 0.4, this.outlinePass.edgeThickness = 2, this.outlinePass.pulsePeriod = 0, this.outlinePass.visibleEdgeColor.set(y.
|
|
8160
|
+
), this.outlinePass.edgeStrength = 5, this.outlinePass.edgeGlow = 0.4, this.outlinePass.edgeThickness = 2, this.outlinePass.pulsePeriod = 0, this.outlinePass.visibleEdgeColor.set(y.secondary), this.outlinePass.hiddenEdgeColor.set(y.secondary), this.outlinePass.enabled = !1, this.outlinePass.renderToScreen = !1, this.composer.addPass(this.outlinePass);
|
|
8161
8161
|
}
|
|
8162
8162
|
enableOutline() {
|
|
8163
8163
|
this.outlinePass && (this.outlinePass.enabled = !0, this.outlinePass.renderToScreen = !0);
|
|
@@ -8178,7 +8178,7 @@ class En {
|
|
|
8178
8178
|
t,
|
|
8179
8179
|
new H(window.innerWidth, window.innerHeight),
|
|
8180
8180
|
{
|
|
8181
|
-
outlineColor: new N(y.
|
|
8181
|
+
outlineColor: new N(y.secondary),
|
|
8182
8182
|
outlineOpacity: 1,
|
|
8183
8183
|
outlineThickness: 2,
|
|
8184
8184
|
showOccluded: !0,
|
|
@@ -8263,7 +8263,7 @@ class En {
|
|
|
8263
8263
|
this.alphaSelectionOutlinePass = new cn(
|
|
8264
8264
|
new H(window.innerWidth, window.innerHeight),
|
|
8265
8265
|
{
|
|
8266
|
-
outlineColor: new N(y.
|
|
8266
|
+
outlineColor: new N(y.secondary),
|
|
8267
8267
|
outlineOpacity: 1,
|
|
8268
8268
|
outlineThickness: 2
|
|
8269
8269
|
}
|
|
@@ -8499,7 +8499,7 @@ class Cn {
|
|
|
8499
8499
|
//#endregion
|
|
8500
8500
|
addPivotPoint() {
|
|
8501
8501
|
const e = new Lt(1, 16, 16), t = new Y({
|
|
8502
|
-
color: D.hexToThreejsColor(y.
|
|
8502
|
+
color: D.hexToThreejsColor(y.secondary)
|
|
8503
8503
|
// transparent: true,
|
|
8504
8504
|
// opacity: 0.5,
|
|
8505
8505
|
}), i = new x(e, t);
|
|
@@ -8781,7 +8781,7 @@ const Ht = new Float32Array([
|
|
|
8781
8781
|
if (this._boxOutline)
|
|
8782
8782
|
return;
|
|
8783
8783
|
this._outlineMaterial = new Kt({
|
|
8784
|
-
color: D.hexToThreejsColor(y.
|
|
8784
|
+
color: D.hexToThreejsColor(y.secondary),
|
|
8785
8785
|
linewidth: 2,
|
|
8786
8786
|
resolution: new H(window.innerWidth, window.innerHeight),
|
|
8787
8787
|
worldUnits: !1,
|
|
@@ -8798,7 +8798,7 @@ const Ht = new Float32Array([
|
|
|
8798
8798
|
});
|
|
8799
8799
|
this._hitBoxMesh = new x(e, t), this._hitBoxMesh.name = "SectionBoxHit", this._hitBoxMesh.visible = !0, this._hitBoxMesh.renderOrder = -1, this.viralViewerApi.viralScene.addObject(this._hitBoxMesh);
|
|
8800
8800
|
const i = new Y({
|
|
8801
|
-
color: D.hexToThreejsColor(y.
|
|
8801
|
+
color: D.hexToThreejsColor(y.secondary),
|
|
8802
8802
|
transparent: !0,
|
|
8803
8803
|
opacity: 0.15,
|
|
8804
8804
|
side: ae,
|
|
@@ -9864,7 +9864,7 @@ class Tn {
|
|
|
9864
9864
|
}
|
|
9865
9865
|
|
|
9866
9866
|
.close:hover {
|
|
9867
|
-
color: ${y.
|
|
9867
|
+
color: ${y.secondary};
|
|
9868
9868
|
}
|
|
9869
9869
|
::-webkit-scrollbar {
|
|
9870
9870
|
width: 5px;
|