@chamn/engine 0.3.11 → 0.3.12
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/index.cjs +42 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -17
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -20461,7 +20461,7 @@ class xue {
|
|
|
20461
20461
|
}
|
|
20462
20462
|
async canDrag({ dragNode: t, eventObj: n }) {
|
|
20463
20463
|
var o;
|
|
20464
|
-
const r = (o = t.material) == null ? void 0 : o.value.advanceCustom;
|
|
20464
|
+
const r = (o = t == null ? void 0 : t.material) == null ? void 0 : o.value.advanceCustom;
|
|
20465
20465
|
return r != null && r.canDragNode ? r == null ? void 0 : r.canDragNode(t, {
|
|
20466
20466
|
context: this.ctx,
|
|
20467
20467
|
viewPortal: this.getPortalViewCtx(),
|
|
@@ -20470,10 +20470,10 @@ class xue {
|
|
|
20470
20470
|
}) : !0;
|
|
20471
20471
|
}
|
|
20472
20472
|
async canDrop({ dragNode: t, dropNode: n, eventObj: r }) {
|
|
20473
|
-
var
|
|
20474
|
-
const o = (
|
|
20475
|
-
let
|
|
20476
|
-
const
|
|
20473
|
+
var l, c;
|
|
20474
|
+
const o = (l = t == null ? void 0 : t.material) == null ? void 0 : l.value.advanceCustom, i = (c = n.material) == null ? void 0 : c.value.advanceCustom;
|
|
20475
|
+
let a = {};
|
|
20476
|
+
const s = {
|
|
20477
20477
|
dropNode: n,
|
|
20478
20478
|
context: this.ctx,
|
|
20479
20479
|
viewPortal: this.getPortalViewCtx(),
|
|
@@ -20481,19 +20481,19 @@ class xue {
|
|
|
20481
20481
|
extra: r.extraData
|
|
20482
20482
|
};
|
|
20483
20483
|
if (o != null && o.canDropNode)
|
|
20484
|
-
if (
|
|
20485
|
-
let
|
|
20486
|
-
return typeof
|
|
20487
|
-
...
|
|
20488
|
-
...i
|
|
20489
|
-
})) : l = await (o == null ? void 0 : o.canAcceptNode(t, {
|
|
20484
|
+
if (a = await o.canDropNode(t, s), i != null && i.canAcceptNode) {
|
|
20485
|
+
let u;
|
|
20486
|
+
return typeof a == "object" ? u = await (i == null ? void 0 : i.canAcceptNode(a.dragNode, {
|
|
20487
|
+
...s,
|
|
20490
20488
|
...a
|
|
20491
|
-
})),
|
|
20489
|
+
})) : u = await (i == null ? void 0 : i.canAcceptNode(t, {
|
|
20490
|
+
...s
|
|
20491
|
+
})), u;
|
|
20492
20492
|
} else
|
|
20493
|
-
return
|
|
20494
|
-
else if (
|
|
20495
|
-
return await (
|
|
20496
|
-
...
|
|
20493
|
+
return a;
|
|
20494
|
+
else if (i != null && i.canAcceptNode)
|
|
20495
|
+
return await (i == null ? void 0 : i.canAcceptNode(t, {
|
|
20496
|
+
...s
|
|
20497
20497
|
}));
|
|
20498
20498
|
return !0;
|
|
20499
20499
|
}
|
|
@@ -55045,7 +55045,7 @@ class xNe extends R.Component {
|
|
|
55045
55045
|
return /* @__PURE__ */ x.jsx("div", { className: Fe([qle.engineContainer, this.props.className]), style: this.props.style, children: /* @__PURE__ */ x.jsx(Vle, { ref: this.workbenchRef, emitter: this.emitter, ...this.workbenchConfig }) });
|
|
55046
55046
|
}
|
|
55047
55047
|
}
|
|
55048
|
-
Z(xNe, "version", "0.3.
|
|
55048
|
+
Z(xNe, "version", "0.3.12");
|
|
55049
55049
|
export {
|
|
55050
55050
|
z6 as AdvancePanel,
|
|
55051
55051
|
F6 as AdvancePanelConfig,
|