@chamn/engine 0.3.10 → 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
@@ -16831,6 +16831,7 @@ const kle = (e) => {
16831
16831
  minHeight: "50px",
16832
16832
  width: i,
16833
16833
  height: o,
16834
+ boxSizing: "border-box",
16834
16835
  ...a
16835
16836
  }
16836
16837
  },
@@ -20460,7 +20461,7 @@ class xue {
20460
20461
  }
20461
20462
  async canDrag({ dragNode: t, eventObj: n }) {
20462
20463
  var o;
20463
- 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;
20464
20465
  return r != null && r.canDragNode ? r == null ? void 0 : r.canDragNode(t, {
20465
20466
  context: this.ctx,
20466
20467
  viewPortal: this.getPortalViewCtx(),
@@ -20469,10 +20470,10 @@ class xue {
20469
20470
  }) : !0;
20470
20471
  }
20471
20472
  async canDrop({ dragNode: t, dropNode: n, eventObj: r }) {
20472
- var s;
20473
- const o = (s = t.material) == null ? void 0 : s.value.advanceCustom;
20474
- let i = {};
20475
- 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 = {
20476
20477
  dropNode: n,
20477
20478
  context: this.ctx,
20478
20479
  viewPortal: this.getPortalViewCtx(),
@@ -20480,19 +20481,19 @@ class xue {
20480
20481
  extra: r.extraData
20481
20482
  };
20482
20483
  if (o != null && o.canDropNode)
20483
- if (i = await o.canDropNode(t, a), o != null && o.canAcceptNode) {
20484
- let l;
20485
- return typeof i == "object" ? l = await (o == null ? void 0 : o.canAcceptNode(i.dragNode, {
20486
- ...a,
20487
- ...i
20488
- })) : 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,
20489
20488
  ...a
20490
- })), l;
20489
+ })) : u = await (i == null ? void 0 : i.canAcceptNode(t, {
20490
+ ...s
20491
+ })), u;
20491
20492
  } else
20492
- return i;
20493
- else if (o != null && o.canAcceptNode)
20494
- return await (o == null ? void 0 : o.canAcceptNode(t, {
20495
- ...a
20493
+ return a;
20494
+ else if (i != null && i.canAcceptNode)
20495
+ return await (i == null ? void 0 : i.canAcceptNode(t, {
20496
+ ...s
20496
20497
  }));
20497
20498
  return !0;
20498
20499
  }
@@ -55044,7 +55045,7 @@ class xNe extends R.Component {
55044
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 }) });
55045
55046
  }
55046
55047
  }
55047
- Z(xNe, "version", "0.3.10");
55048
+ Z(xNe, "version", "0.3.12");
55048
55049
  export {
55049
55050
  z6 as AdvancePanel,
55050
55051
  F6 as AdvancePanelConfig,