iflow-engine-base 2.1.0 → 2.1.2
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.
|
@@ -182,7 +182,7 @@ class jl {
|
|
|
182
182
|
this.renderer?.dispose();
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
const Ar = { type: "change" }, cr = { type: "start" }, na = { type: "end" }, Yn = new rr(), Cr = new Xi(), Gl = Math.cos(70 * or.DEG2RAD), ve = new J(), Ne =
|
|
185
|
+
const Ar = { type: "change" }, cr = { type: "start" }, na = { type: "end" }, Yn = new rr(), Cr = new Xi(), Gl = Math.cos(70 * or.DEG2RAD), ve = new J(), Ne = 0.25 * Math.PI, fe = {
|
|
186
186
|
NONE: -1,
|
|
187
187
|
ROTATE: 0,
|
|
188
188
|
DOLLY: 1,
|
|
@@ -10031,7 +10031,7 @@ function Bu(o, e, t) {
|
|
|
10031
10031
|
indexes: /* @__PURE__ */ new Map()
|
|
10032
10032
|
}) : (n.find((r) => r.glb == i.glb).meshes.push(i), n.find((r) => r.glb == i.glb).currentIndex += i.geometry.index.count);
|
|
10033
10033
|
let s = n.find((r) => r.glb == i.glb);
|
|
10034
|
-
s.indexes.set(Number(i.name), [s.currentIndex - i.geometry.index.count, s.currentIndex]);
|
|
10034
|
+
s.indexes.has(Number(i.name)) ? s.indexes.get(Number(i.name)).push([s.currentIndex - i.geometry.index.count, s.currentIndex]) : s.indexes.set(Number(i.name), [[s.currentIndex - i.geometry.index.count, s.currentIndex]]);
|
|
10035
10035
|
}), n.forEach((i) => {
|
|
10036
10036
|
let s = e.scene.children.find((r) => r instanceof M.Mesh && r.url == o && r.glb == i.glb);
|
|
10037
10037
|
if (s != null)
|
|
@@ -10045,7 +10045,9 @@ function Bu(o, e, t) {
|
|
|
10045
10045
|
if (h != null) {
|
|
10046
10046
|
let c = 0;
|
|
10047
10047
|
i.indexes.forEach((d) => {
|
|
10048
|
-
|
|
10048
|
+
d.forEach((m) => {
|
|
10049
|
+
h.nodesMap.get(Number(i.meshes[c].name)).indexes == null && (h.nodesMap.get(Number(i.meshes[c].name)).indexes = []), h.nodesMap.get(Number(i.meshes[c].name)).indexes.push([l.index, c++, m[0], m[1]]);
|
|
10050
|
+
});
|
|
10049
10051
|
});
|
|
10050
10052
|
}
|
|
10051
10053
|
}
|
|
@@ -11517,7 +11519,7 @@ function rd(o, e, t) {
|
|
|
11517
11519
|
var x = o.container.clientWidth / o.container.clientHeight, _ = y * 0.6;
|
|
11518
11520
|
e.camera.left = -_ * x, e.camera.right = _ * x, e.camera.top = _, e.camera.bottom = -_, e.camera.zoom = 1, e.camera.updateProjectionMatrix();
|
|
11519
11521
|
}
|
|
11520
|
-
l(e.camera.position, w, o.controls.target.clone(), u);
|
|
11522
|
+
o.controlModule.orbitControls.origin = u.clone(), l(e.camera.position, w, o.controls.target.clone(), u);
|
|
11521
11523
|
}, n.zoomToBox = function(f) {
|
|
11522
11524
|
if (e.camera.isOrthographicCamera) {
|
|
11523
11525
|
let O = function() {
|
|
@@ -18794,7 +18796,7 @@ class kp {
|
|
|
18794
18796
|
// 业务数据
|
|
18795
18797
|
models = [];
|
|
18796
18798
|
reactBoundingClientRect = { left: 0, top: 0 };
|
|
18797
|
-
version = "2.1.
|
|
18799
|
+
version = "2.1.2";
|
|
18798
18800
|
versionEl = null;
|
|
18799
18801
|
// 引擎容器
|
|
18800
18802
|
container;
|