@jieyin/editor-sdk-test 1.1.237 → 1.1.238
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/copyDiecuts.worker.js +35 -22
- package/dist/deform.worker.js +390 -373
- package/dist/editor-sdk.es.js +19587 -18874
- package/dist/render.worker.js +6 -4
- package/dist/renderWorker.js +4621 -4652
- package/dist/style.css +1 -1
- package/package.json +3 -1
package/dist/render.worker.js
CHANGED
|
@@ -15,6 +15,7 @@ function hc() {
|
|
|
15
15
|
const Ra = {};
|
|
16
16
|
function Na(...n) {
|
|
17
17
|
const e = "THREE." + n.shift();
|
|
18
|
+
console.log(e, ...n);
|
|
18
19
|
}
|
|
19
20
|
function nu(n) {
|
|
20
21
|
const e = n[0];
|
|
@@ -29,7 +30,7 @@ function Ve(...n) {
|
|
|
29
30
|
const e = "THREE." + n.shift();
|
|
30
31
|
{
|
|
31
32
|
const t = n[0];
|
|
32
|
-
t && t.isStackTrace;
|
|
33
|
+
t && t.isStackTrace ? console.warn(t.getError(e)) : console.warn(e, ...n);
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
function nt(...n) {
|
|
@@ -37,7 +38,7 @@ function nt(...n) {
|
|
|
37
38
|
const e = "THREE." + n.shift();
|
|
38
39
|
{
|
|
39
40
|
const t = n[0];
|
|
40
|
-
t && t.isStackTrace;
|
|
41
|
+
t && t.isStackTrace ? console.error(t.getError(e)) : console.error(e, ...n);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
function js(...n) {
|
|
@@ -27088,7 +27089,8 @@ function Q_(n) {
|
|
|
27088
27089
|
} else f && (y = Ks(s));
|
|
27089
27090
|
if (!y) return;
|
|
27090
27091
|
y.matrixWorldNeedsUpdate = !0, _.add(y), e.push({ psdPartId: t.id, scene: _, camera: h });
|
|
27091
|
-
} catch {
|
|
27092
|
+
} catch (x) {
|
|
27093
|
+
console.error("初始化场景失败:", x);
|
|
27092
27094
|
}
|
|
27093
27095
|
}), e;
|
|
27094
27096
|
}
|
|
@@ -27256,7 +27258,7 @@ self.onmessage = async (n) => {
|
|
|
27256
27258
|
[m]
|
|
27257
27259
|
), a?.close();
|
|
27258
27260
|
} catch (f) {
|
|
27259
|
-
self.postMessage({
|
|
27261
|
+
console.error(`[Worker] 渲染第${t}项失败:`, f), self.postMessage({
|
|
27260
27262
|
type: "renderError",
|
|
27261
27263
|
index: t,
|
|
27262
27264
|
renderId: i,
|