@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.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 s;
20474
- const o = (s = t.material) == null ? void 0 : s.value.advanceCustom;
20475
- let i = {};
20476
- const a = {
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 (i = await o.canDropNode(t, a), o != null && o.canAcceptNode) {
20485
- let l;
20486
- return typeof i == "object" ? l = await (o == null ? void 0 : o.canAcceptNode(i.dragNode, {
20487
- ...a,
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
- })), l;
20489
+ })) : u = await (i == null ? void 0 : i.canAcceptNode(t, {
20490
+ ...s
20491
+ })), u;
20492
20492
  } else
20493
- return i;
20494
- else if (o != null && o.canAcceptNode)
20495
- return await (o == null ? void 0 : o.canAcceptNode(t, {
20496
- ...a
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.11");
55048
+ Z(xNe, "version", "0.3.12");
55049
55049
  export {
55050
55050
  z6 as AdvancePanel,
55051
55051
  F6 as AdvancePanelConfig,