endset_three_editor 0.3.4 → 0.3.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/three-editor.es.js
CHANGED
|
@@ -1496,7 +1496,7 @@ function vi() {
|
|
|
1496
1496
|
}), I.scene.add(r.getHelper()), I.transformControls = r;
|
|
1497
1497
|
}
|
|
1498
1498
|
function Mi() {
|
|
1499
|
-
const r = new P.AmbientLight(16777215,
|
|
1499
|
+
const r = new P.AmbientLight(16777215, 1);
|
|
1500
1500
|
I.scene.add(r);
|
|
1501
1501
|
}
|
|
1502
1502
|
function Xn() {
|
|
@@ -1640,7 +1640,7 @@ function Ge(r, e = !1) {
|
|
|
1640
1640
|
I.scene.add(r), r.userData.isMovable && (ji(r), xt()), e && I.mode === "edit" && Qt(r);
|
|
1641
1641
|
}
|
|
1642
1642
|
function Li(r) {
|
|
1643
|
-
I.selectedObject === r && _t(), Si(r), Hi(r), r.parent ? r.parent.remove(r) : I.scene.remove(r), ki(r), xt();
|
|
1643
|
+
I.selectedObject === r && _t(), Si(r), Hi(r), r.userData.helper && I.scene.remove(r.userData.helper), r.parent ? r.parent.remove(r) : I.scene.remove(r), ki(r), xt();
|
|
1644
1644
|
}
|
|
1645
1645
|
function Ni(r) {
|
|
1646
1646
|
const e = I.scene.getObjectByProperty("uuid", r);
|
|
@@ -4166,7 +4166,7 @@ function zo() {
|
|
|
4166
4166
|
}
|
|
4167
4167
|
function Fo() {
|
|
4168
4168
|
const r = new P.DirectionalLight(16777215, 1.5);
|
|
4169
|
-
r.position.set(5, 5, 5), r.name = "平行光", r.userData.isMovable = !0, r.castShadow = !0, r.shadow.mapSize.set(
|
|
4169
|
+
r.position.set(5, 5, 5), r.name = "平行光", r.userData.isMovable = !0, r.castShadow = !0, r.shadow.mapSize.set(2048, 2048);
|
|
4170
4170
|
const e = 15;
|
|
4171
4171
|
r.shadow.camera.left = -e, r.shadow.camera.right = e, r.shadow.camera.top = e, r.shadow.camera.bottom = -e, r.shadow.camera.near = 0.1, r.shadow.camera.far = 30, r.shadow.bias = -1e-3, r.shadow.normalBias = 0.02, r.target.position.set(0, 0, 0);
|
|
4172
4172
|
const t = new P.DirectionalLightHelper(r, 1);
|