endset_three_editor 0.7.3 → 0.7.4
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/three-editor.es.js
CHANGED
|
@@ -2292,7 +2292,7 @@ const I = {
|
|
|
2292
2292
|
selectedObject: null
|
|
2293
2293
|
};
|
|
2294
2294
|
let Nt = !1, He = !1, Me = null, Te = null;
|
|
2295
|
-
const To = 16755200, Hs =
|
|
2295
|
+
const To = 16755200, Hs = 26367;
|
|
2296
2296
|
let as = [], Et = [], Ct = !0, Fe = null, ls = null, Dt = null, Re = [];
|
|
2297
2297
|
const ze = /* @__PURE__ */ new Map();
|
|
2298
2298
|
let Ht, Wt = null, ft = null, pt = null;
|
|
@@ -2316,8 +2316,8 @@ function Po() {
|
|
|
2316
2316
|
const r = new lo(I.renderer);
|
|
2317
2317
|
r.addPass(new Ao(I.scene, I.camera)), r.addPass(new co());
|
|
2318
2318
|
const e = window.innerWidth * window.devicePixelRatio, t = window.innerWidth * window.devicePixelRatio * window.innerHeight * window.devicePixelRatio, s = e / 1920, o = Math.round(
|
|
2319
|
-
|
|
2320
|
-
), a = t > 25e6 ?
|
|
2319
|
+
1.5 * Math.min(Math.max(s, 0.5), 3)
|
|
2320
|
+
), a = t > 25e6 ? 2 : t > 12e6 ? 1.5 : 2;
|
|
2321
2321
|
console.log(
|
|
2322
2322
|
`[OutlinePass] totalPx=${t}, downSample=${a}, dpr=${window.devicePixelRatio}, thickness=${o}`
|
|
2323
2323
|
);
|
|
@@ -2329,7 +2329,7 @@ function Po() {
|
|
|
2329
2329
|
I.scene,
|
|
2330
2330
|
I.camera
|
|
2331
2331
|
);
|
|
2332
|
-
l.edgeStrength =
|
|
2332
|
+
l.edgeStrength = 6, l.edgeGlow = 0.8, l.edgeThickness = Math.min(o, 4), l.visibleEdgeColor.set(Hs), l.hiddenEdgeColor.set(Hs), l.downSampleRatio = a, l.pulsePeriod = 2, r.addPass(l), Me = r, Te = l;
|
|
2333
2333
|
}
|
|
2334
2334
|
function Lo() {
|
|
2335
2335
|
I.scene = new R.Scene(), I.scene.name = "sl_scene", new R.TextureLoader().load(
|
|
@@ -2504,7 +2504,7 @@ function bn(r) {
|
|
|
2504
2504
|
t.name && t.name.startsWith("DataPanel_") && (t.visible = !0);
|
|
2505
2505
|
}), gn(e), setTimeout(() => {
|
|
2506
2506
|
Go(e);
|
|
2507
|
-
},
|
|
2507
|
+
}, 200));
|
|
2508
2508
|
}
|
|
2509
2509
|
function zo(r) {
|
|
2510
2510
|
if (He) {
|