endset_three_editor 0.5.9 → 0.6.0
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
|
@@ -2297,8 +2297,8 @@ function go() {
|
|
|
2297
2297
|
return n <= 5e6 ? s = Math.min(r, 2) : n <= 12e6 ? s = Math.min(r, 1.5) : n <= 2e7 ? s = Math.min(r, 1.3) : s = Math.min(r, 1), s;
|
|
2298
2298
|
}
|
|
2299
2299
|
function bo() {
|
|
2300
|
-
const r = go(), e =
|
|
2301
|
-
|
|
2300
|
+
const r = go(), e = new w.WebGLRenderer({ antialias: !0, alpha: !0 });
|
|
2301
|
+
e.setSize(b.container.clientWidth, b.container.clientHeight), e.setPixelRatio(r), console.log(`[Renderer] css=${b.container.clientWidth}×${b.container.clientHeight}, dpr=${window.devicePixelRatio}, targetRatio=${r}, antialias=true`), b.container.appendChild(e.domElement), b.renderer = e;
|
|
2302
2302
|
}
|
|
2303
2303
|
function Co() {
|
|
2304
2304
|
if (!b.renderer || !b.scene || !b.camera) return;
|