@awesome-flow/ecs 0.14.0 → 0.15.0
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/canvas/index.cjs +1 -1
- package/dist/canvas/index.d.cts +1 -1
- package/dist/canvas/index.d.mts +1 -1
- package/dist/canvas/index.mjs +1 -1
- package/dist/{canvas-C4nDXlkK.mjs → canvas-B21OqInM.mjs} +71 -71
- package/dist/canvas-B21OqInM.mjs.map +1 -0
- package/dist/{canvas-DlWcWu05.cjs → canvas-CC3xvbbA.cjs} +70 -70
- package/dist/canvas-CC3xvbbA.cjs.map +1 -0
- package/dist/context/index.cjs +18 -14
- package/dist/context/index.cjs.map +1 -1
- package/dist/context/index.d.cts +1 -1
- package/dist/context/index.d.mts +1 -1
- package/dist/context/index.mjs +18 -14
- package/dist/context/index.mjs.map +1 -1
- package/dist/{entity-component-inspector-VlwcaUqy.cjs → entity-component-inspector-7f3SijXE.cjs} +2 -2
- package/dist/{entity-component-inspector-VlwcaUqy.cjs.map → entity-component-inspector-7f3SijXE.cjs.map} +1 -1
- package/dist/{entity-component-inspector-CNaN8Scf.mjs → entity-component-inspector-BKpliIkt.mjs} +2 -2
- package/dist/{entity-component-inspector-CNaN8Scf.mjs.map → entity-component-inspector-BKpliIkt.mjs.map} +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/id-generator-C2_8g29M.cjs.map +1 -1
- package/dist/id-generator-DDsv3NdX.mjs.map +1 -1
- package/dist/{index-_BgjSgkQ.d.mts → index-BGxRtxzm.d.mts} +6 -9
- package/dist/index-BGxRtxzm.d.mts.map +1 -0
- package/dist/{index-CNCqWBLh.d.cts → index-BabUtsGu.d.mts} +10 -9
- package/dist/index-BabUtsGu.d.mts.map +1 -0
- package/dist/{index-B9WbxxFC.d.mts → index-BfZT1xsF.d.mts} +3 -3
- package/dist/index-BfZT1xsF.d.mts.map +1 -0
- package/dist/{index-t3_yRTa6.d.cts → index-CbjlHvOZ.d.cts} +3 -3
- package/dist/index-CbjlHvOZ.d.cts.map +1 -0
- package/dist/{index-BTs_8SY-.d.cts → index-Cet6AhTm.d.cts} +3 -4
- package/dist/index-Cet6AhTm.d.cts.map +1 -0
- package/dist/{index-DGjpWDlm.d.cts → index-D5HuA6I5.d.mts} +22 -15
- package/dist/index-D5HuA6I5.d.mts.map +1 -0
- package/dist/{index-DCOd7jg-.d.mts → index-DRUvPELK.d.cts} +22 -15
- package/dist/index-DRUvPELK.d.cts.map +1 -0
- package/dist/{index-CyeezgDI.d.mts → index-DoQL-Kim.d.mts} +3 -4
- package/dist/index-DoQL-Kim.d.mts.map +1 -0
- package/dist/{index-YNgbjS9S.d.cts → index-DwEO6FDo.d.cts} +6 -9
- package/dist/index-DwEO6FDo.d.cts.map +1 -0
- package/dist/{index-C-TDFHpq.d.mts → index-N2r0CM_0.d.cts} +10 -9
- package/dist/index-N2r0CM_0.d.cts.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +8 -8
- package/dist/index.d.mts +8 -8
- package/dist/index.mjs +3 -3
- package/dist/inspectors/index.cjs +1 -1
- package/dist/inspectors/index.d.cts +1 -1
- package/dist/inspectors/index.d.mts +1 -1
- package/dist/inspectors/index.mjs +1 -1
- package/dist/{node-props-BtAkmdqr.d.mts → node-props-Bryks8-5.d.cts} +3 -3
- package/dist/{node-props-BtAkmdqr.d.mts.map → node-props-Bryks8-5.d.cts.map} +1 -1
- package/dist/{node-props-DkuSwMA0.d.cts → node-props-Cusf_qtn.d.mts} +3 -3
- package/dist/{node-props-DkuSwMA0.d.cts.map → node-props-Cusf_qtn.d.mts.map} +1 -1
- package/dist/{node-systems-module-CPDV8u8O.d.mts → node-systems-module-BiefT_Cv.d.cts} +5 -5
- package/dist/node-systems-module-BiefT_Cv.d.cts.map +1 -0
- package/dist/{node-systems-module-CzkoMbdF.d.cts → node-systems-module-EYtTf6Re.d.mts} +5 -5
- package/dist/node-systems-module-EYtTf6Re.d.mts.map +1 -0
- package/dist/{node-types-BRcpbaeR.mjs → node-types-DV97CoAJ.mjs} +176 -99
- package/dist/node-types-DV97CoAJ.mjs.map +1 -0
- package/dist/{node-types-D_NfbsUT.cjs → node-types-Z4QaJir-.cjs} +175 -98
- package/dist/node-types-Z4QaJir-.cjs.map +1 -0
- package/dist/nodes/index.cjs +1 -1
- package/dist/nodes/index.d.cts +2 -2
- package/dist/nodes/index.d.mts +2 -2
- package/dist/nodes/index.mjs +1 -1
- package/dist/{template-tool-nodes-B7sT2iRc.d.cts → template-tool-nodes-CiwTFU-N.d.cts} +2 -2
- package/dist/{template-tool-nodes-B7sT2iRc.d.cts.map → template-tool-nodes-CiwTFU-N.d.cts.map} +1 -1
- package/dist/{template-tool-nodes-BwavFwMh.d.mts → template-tool-nodes-DWhekyQg.d.mts} +2 -2
- package/dist/{template-tool-nodes-BwavFwMh.d.mts.map → template-tool-nodes-DWhekyQg.d.mts.map} +1 -1
- package/dist/templates/index.cjs +1 -1
- package/dist/templates/index.d.cts +1 -1
- package/dist/templates/index.d.mts +1 -1
- package/dist/templates/index.mjs +1 -1
- package/package.json +13 -14
- package/dist/canvas-C4nDXlkK.mjs.map +0 -1
- package/dist/canvas-DlWcWu05.cjs.map +0 -1
- package/dist/index-B9WbxxFC.d.mts.map +0 -1
- package/dist/index-BTs_8SY-.d.cts.map +0 -1
- package/dist/index-C-TDFHpq.d.mts.map +0 -1
- package/dist/index-CNCqWBLh.d.cts.map +0 -1
- package/dist/index-CyeezgDI.d.mts.map +0 -1
- package/dist/index-DCOd7jg-.d.mts.map +0 -1
- package/dist/index-DGjpWDlm.d.cts.map +0 -1
- package/dist/index-YNgbjS9S.d.cts.map +0 -1
- package/dist/index-_BgjSgkQ.d.mts.map +0 -1
- package/dist/index-t3_yRTa6.d.cts.map +0 -1
- package/dist/node-systems-module-CPDV8u8O.d.mts.map +0 -1
- package/dist/node-systems-module-CzkoMbdF.d.cts.map +0 -1
- package/dist/node-types-BRcpbaeR.mjs.map +0 -1
- package/dist/node-types-D_NfbsUT.cjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const require_id_generator = require('./id-generator-C2_8g29M.cjs');
|
|
2
|
-
const require_entity_component_inspector = require('./entity-component-inspector-
|
|
2
|
+
const require_entity_component_inspector = require('./entity-component-inspector-7f3SijXE.cjs');
|
|
3
3
|
let react_compiler_runtime = require("react/compiler-runtime");
|
|
4
|
-
let _mantine_core = require("@mantine/core");
|
|
5
4
|
let react = require("react");
|
|
6
5
|
let _awesome_flow_core_layout = require("@awesome-flow/core/layout");
|
|
6
|
+
let _mantine_core = require("@mantine/core");
|
|
7
7
|
let _xyflow_react = require("@xyflow/react");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
let _awesome_flow_core_hooks = require("@awesome-flow/core/hooks");
|
|
@@ -65,7 +65,7 @@ function useEntity(proxy) {
|
|
|
65
65
|
}
|
|
66
66
|
let t1;
|
|
67
67
|
if ($[0] !== bridge.entityRepository || $[1] !== proxy) {
|
|
68
|
-
t1 = bridge.entityRepository.
|
|
68
|
+
t1 = bridge.entityRepository.getEntity(proxy);
|
|
69
69
|
$[0] = bridge.entityRepository;
|
|
70
70
|
$[1] = proxy;
|
|
71
71
|
$[2] = t1;
|
|
@@ -86,7 +86,7 @@ function useEntityList(type) {
|
|
|
86
86
|
if (type !== void 0) {
|
|
87
87
|
let t1;
|
|
88
88
|
if ($[0] !== bridge.entityRepository || $[1] !== type) {
|
|
89
|
-
t1 = bridge.entityRepository.
|
|
89
|
+
t1 = bridge.entityRepository.getEntities(type);
|
|
90
90
|
$[0] = bridge.entityRepository;
|
|
91
91
|
$[1] = type;
|
|
92
92
|
$[2] = t1;
|
|
@@ -477,46 +477,88 @@ var formatter_camel_case_default = (0, react.memo)(CamelCaseFormatter);
|
|
|
477
477
|
//#endregion
|
|
478
478
|
//#region src/components/entity-component-list.tsx
|
|
479
479
|
function EntityComponentList(props) {
|
|
480
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
480
|
+
const $ = (0, react_compiler_runtime.c)(20);
|
|
481
|
+
let T0;
|
|
482
|
+
let T1;
|
|
483
|
+
let T2;
|
|
481
484
|
let t0;
|
|
482
|
-
if ($[0] !== props.entity.components) {
|
|
483
|
-
t0 = Array.from(props.entity.components.values());
|
|
484
|
-
$[0] = props.entity.components;
|
|
485
|
-
$[1] = t0;
|
|
486
|
-
} else t0 = $[1];
|
|
487
|
-
const components = t0;
|
|
488
485
|
let t1;
|
|
489
|
-
|
|
490
|
-
|
|
486
|
+
let t2;
|
|
487
|
+
let t3;
|
|
488
|
+
if ($[0] !== props.entity) {
|
|
489
|
+
const components = listComponents(props.entity);
|
|
490
|
+
T2 = _mantine_core.Accordion.Item;
|
|
491
|
+
t1 = "components";
|
|
492
|
+
t2 = "components";
|
|
493
|
+
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Accordion.Control, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Badge, {
|
|
491
494
|
fullWidth: true,
|
|
492
495
|
variant: "light",
|
|
493
496
|
rightSection: components.length,
|
|
494
497
|
children: "Components"
|
|
495
498
|
}) });
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
$[
|
|
503
|
-
$[
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
$[
|
|
512
|
-
$[
|
|
513
|
-
$[
|
|
514
|
-
|
|
515
|
-
|
|
499
|
+
T1 = _mantine_core.Accordion.Panel;
|
|
500
|
+
T0 = _mantine_core.Stack;
|
|
501
|
+
t0 = components.map(_temp$4);
|
|
502
|
+
$[0] = props.entity;
|
|
503
|
+
$[1] = T0;
|
|
504
|
+
$[2] = T1;
|
|
505
|
+
$[3] = T2;
|
|
506
|
+
$[4] = t0;
|
|
507
|
+
$[5] = t1;
|
|
508
|
+
$[6] = t2;
|
|
509
|
+
$[7] = t3;
|
|
510
|
+
} else {
|
|
511
|
+
T0 = $[1];
|
|
512
|
+
T1 = $[2];
|
|
513
|
+
T2 = $[3];
|
|
514
|
+
t0 = $[4];
|
|
515
|
+
t1 = $[5];
|
|
516
|
+
t2 = $[6];
|
|
517
|
+
t3 = $[7];
|
|
518
|
+
}
|
|
519
|
+
let t4;
|
|
520
|
+
if ($[8] !== T0 || $[9] !== t0) {
|
|
521
|
+
t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(T0, { children: t0 });
|
|
522
|
+
$[8] = T0;
|
|
523
|
+
$[9] = t0;
|
|
524
|
+
$[10] = t4;
|
|
525
|
+
} else t4 = $[10];
|
|
526
|
+
let t5;
|
|
527
|
+
if ($[11] !== T1 || $[12] !== t4) {
|
|
528
|
+
t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(T1, { children: t4 });
|
|
529
|
+
$[11] = T1;
|
|
530
|
+
$[12] = t4;
|
|
531
|
+
$[13] = t5;
|
|
532
|
+
} else t5 = $[13];
|
|
533
|
+
let t6;
|
|
534
|
+
if ($[14] !== T2 || $[15] !== t1 || $[16] !== t2 || $[17] !== t3 || $[18] !== t5) {
|
|
535
|
+
t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(T2, {
|
|
536
|
+
value: t2,
|
|
537
|
+
children: [t3, t5]
|
|
538
|
+
}, t1);
|
|
539
|
+
$[14] = T2;
|
|
540
|
+
$[15] = t1;
|
|
541
|
+
$[16] = t2;
|
|
542
|
+
$[17] = t3;
|
|
543
|
+
$[18] = t5;
|
|
544
|
+
$[19] = t6;
|
|
545
|
+
} else t6 = $[19];
|
|
546
|
+
return t6;
|
|
516
547
|
}
|
|
517
548
|
function _temp$4(c, i) {
|
|
518
549
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_entity_component_inspector.entity_component_inspector_default, { component: c }, i);
|
|
519
550
|
}
|
|
551
|
+
function listComponents(entity) {
|
|
552
|
+
const components = [];
|
|
553
|
+
for (const [field, value] of Object.entries(entity)) {
|
|
554
|
+
if (field === "identity") continue;
|
|
555
|
+
if (isComponent(value)) components.push(value);
|
|
556
|
+
}
|
|
557
|
+
return components;
|
|
558
|
+
}
|
|
559
|
+
function isComponent(value) {
|
|
560
|
+
return typeof value === "object" && value !== null && "componentType" in value && "isSerializable" in value;
|
|
561
|
+
}
|
|
520
562
|
var entity_component_list_default = (0, react.memo)(EntityComponentList);
|
|
521
563
|
|
|
522
564
|
//#endregion
|
|
@@ -538,10 +580,10 @@ function EntityProxyList(props) {
|
|
|
538
580
|
const bridge = useEcsBridge();
|
|
539
581
|
useBridgeStoreVersion("proxies");
|
|
540
582
|
let t0;
|
|
541
|
-
if ($[0] !== bridge.entityProxyRepository || $[1] !== props.entity.
|
|
542
|
-
t0 = Array.from(bridge.entityProxyRepository.
|
|
583
|
+
if ($[0] !== bridge.entityProxyRepository || $[1] !== props.entity.identity.proxy) {
|
|
584
|
+
t0 = Array.from(bridge.entityProxyRepository.getAllProxies(props.entity.identity.proxy).values()).flat().map(_temp$3);
|
|
543
585
|
$[0] = bridge.entityProxyRepository;
|
|
544
|
-
$[1] = props.entity.
|
|
586
|
+
$[1] = props.entity.identity.proxy;
|
|
545
587
|
$[2] = t0;
|
|
546
588
|
} else t0 = $[2];
|
|
547
589
|
const items = t0;
|
|
@@ -594,10 +636,10 @@ function EntitySubscriptionList(props) {
|
|
|
594
636
|
const bridge = useEcsBridge();
|
|
595
637
|
useBridgeStoreVersion("subscriptions");
|
|
596
638
|
let t0;
|
|
597
|
-
if ($[0] !== bridge.entityEventsManager || $[1] !== props.entity.
|
|
598
|
-
t0 = bridge.entityEventsManager.getSubscriptionsForEntity(props.entity.
|
|
639
|
+
if ($[0] !== bridge.entityEventsManager || $[1] !== props.entity.identity.proxy) {
|
|
640
|
+
t0 = bridge.entityEventsManager.getSubscriptionsForEntity(props.entity.identity.proxy);
|
|
599
641
|
$[0] = bridge.entityEventsManager;
|
|
600
|
-
$[1] = props.entity.
|
|
642
|
+
$[1] = props.entity.identity.proxy;
|
|
601
643
|
$[2] = t0;
|
|
602
644
|
} else t0 = $[2];
|
|
603
645
|
const subscriptions = t0;
|
|
@@ -681,13 +723,13 @@ function EntityLayout(t0) {
|
|
|
681
723
|
const $ = (0, react_compiler_runtime.c)(8);
|
|
682
724
|
const { entity } = t0;
|
|
683
725
|
let t1;
|
|
684
|
-
if ($[0] !== entity.
|
|
726
|
+
if ($[0] !== entity.identity.proxy.entityUid) {
|
|
685
727
|
t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Group, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Badge, {
|
|
686
728
|
variant: "outline",
|
|
687
729
|
color: "orange",
|
|
688
|
-
children: entity.
|
|
689
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(entity_update_counter_default, { entityUid: entity.
|
|
690
|
-
$[0] = entity.
|
|
730
|
+
children: entity.identity.proxy.entityUid
|
|
731
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(entity_update_counter_default, { entityUid: entity.identity.proxy.entityUid })] });
|
|
732
|
+
$[0] = entity.identity.proxy.entityUid;
|
|
691
733
|
$[1] = t1;
|
|
692
734
|
} else t1 = $[1];
|
|
693
735
|
let t2;
|
|
@@ -722,11 +764,12 @@ function EntityLayout(t0) {
|
|
|
722
764
|
//#endregion
|
|
723
765
|
//#region src/nodes/node-entity.tsx
|
|
724
766
|
function EntityNode(t0) {
|
|
725
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
767
|
+
const $ = (0, react_compiler_runtime.c)(17);
|
|
726
768
|
const { id, data, selected, type } = t0;
|
|
727
769
|
const entity = useEntity(data.entity);
|
|
728
|
-
const entityType = entity?.
|
|
770
|
+
const entityType = entity?.identity.proxy.entityType ?? data.entity?.entityType ?? data.entityType;
|
|
729
771
|
const pending = data.spawnStatus === "queued" && !entity;
|
|
772
|
+
const missingScheduler = data.spawnStatus === "missing-scheduler";
|
|
730
773
|
const t1 = entityType ?? data.title;
|
|
731
774
|
let t2;
|
|
732
775
|
if ($[0] !== t1) {
|
|
@@ -745,13 +788,13 @@ function EntityNode(t0) {
|
|
|
745
788
|
$[3] = t3;
|
|
746
789
|
} else t3 = $[3];
|
|
747
790
|
let t4;
|
|
748
|
-
if ($[4] !== data.entity || $[5] !== entity || $[6] !== pending) {
|
|
791
|
+
if ($[4] !== data.entity || $[5] !== entity || $[6] !== missingScheduler || $[7] !== pending) {
|
|
749
792
|
t4 = !entity && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Stack, {
|
|
750
793
|
gap: "xs",
|
|
751
794
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Badge, {
|
|
752
795
|
variant: "light",
|
|
753
796
|
color: pending ? "yellow" : "gray",
|
|
754
|
-
children: pending ? "upsert queued" : "no entity bound"
|
|
797
|
+
children: pending ? "upsert queued" : missingScheduler ? "scheduler missing" : "no entity bound"
|
|
755
798
|
}), data.entity && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Text, {
|
|
756
799
|
size: "xs",
|
|
757
800
|
c: "dimmed",
|
|
@@ -765,11 +808,12 @@ function EntityNode(t0) {
|
|
|
765
808
|
});
|
|
766
809
|
$[4] = data.entity;
|
|
767
810
|
$[5] = entity;
|
|
768
|
-
$[6] =
|
|
769
|
-
$[7] =
|
|
770
|
-
|
|
811
|
+
$[6] = missingScheduler;
|
|
812
|
+
$[7] = pending;
|
|
813
|
+
$[8] = t4;
|
|
814
|
+
} else t4 = $[8];
|
|
771
815
|
let t5;
|
|
772
|
-
if ($[
|
|
816
|
+
if ($[9] !== data || $[10] !== id || $[11] !== selected || $[12] !== t2 || $[13] !== t3 || $[14] !== t4 || $[15] !== type) {
|
|
773
817
|
t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_awesome_flow_core_layout.NodeContainer, {
|
|
774
818
|
id,
|
|
775
819
|
selected,
|
|
@@ -778,15 +822,15 @@ function EntityNode(t0) {
|
|
|
778
822
|
type,
|
|
779
823
|
children: [t3, t4]
|
|
780
824
|
});
|
|
781
|
-
$[
|
|
782
|
-
$[
|
|
783
|
-
$[
|
|
784
|
-
$[
|
|
785
|
-
$[
|
|
786
|
-
$[
|
|
787
|
-
$[
|
|
788
|
-
$[
|
|
789
|
-
} else t5 = $[
|
|
825
|
+
$[9] = data;
|
|
826
|
+
$[10] = id;
|
|
827
|
+
$[11] = selected;
|
|
828
|
+
$[12] = t2;
|
|
829
|
+
$[13] = t3;
|
|
830
|
+
$[14] = t4;
|
|
831
|
+
$[15] = type;
|
|
832
|
+
$[16] = t5;
|
|
833
|
+
} else t5 = $[16];
|
|
790
834
|
return t5;
|
|
791
835
|
}
|
|
792
836
|
|
|
@@ -920,8 +964,8 @@ var node_scheduler_default = (0, react.memo)(SchedulerNode);
|
|
|
920
964
|
//#endregion
|
|
921
965
|
//#region src/nodes/node-scope-group.tsx
|
|
922
966
|
function ScopeGroupNode(t0) {
|
|
923
|
-
const $ = (0, react_compiler_runtime.c)(
|
|
924
|
-
const { id, selected, data, type, width, height } = t0;
|
|
967
|
+
const $ = (0, react_compiler_runtime.c)(45);
|
|
968
|
+
const { id, selected, data, type, width, height, positionAbsoluteX, positionAbsoluteY } = t0;
|
|
925
969
|
let t1;
|
|
926
970
|
if ($[0] !== data || $[1] !== height || $[2] !== id || $[3] !== width) {
|
|
927
971
|
t1 = {
|
|
@@ -936,7 +980,7 @@ function ScopeGroupNode(t0) {
|
|
|
936
980
|
$[3] = width;
|
|
937
981
|
$[4] = t1;
|
|
938
982
|
} else t1 = $[4];
|
|
939
|
-
const { groupNodes, groupData, onCollapsed } = (0, _awesome_flow_core_hooks.useGroupNode)(t1);
|
|
983
|
+
const { groupNodes, groupData, onCollapsed, isDropTarget } = (0, _awesome_flow_core_hooks.useGroupNode)(t1);
|
|
940
984
|
const t2 = data.initialSize?.width || 320;
|
|
941
985
|
const t3 = data.initialSize?.height || 220;
|
|
942
986
|
let t4;
|
|
@@ -1010,44 +1054,74 @@ function ScopeGroupNode(t0) {
|
|
|
1010
1054
|
} else t10 = $[21];
|
|
1011
1055
|
const title = t10;
|
|
1012
1056
|
let t11;
|
|
1013
|
-
if ($[22] !==
|
|
1014
|
-
t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_awesome_flow_core_layout.
|
|
1057
|
+
if ($[22] !== height || $[23] !== positionAbsoluteX || $[24] !== positionAbsoluteY || $[25] !== width) {
|
|
1058
|
+
t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_awesome_flow_core_layout.GroupBackdrop, {
|
|
1059
|
+
x: positionAbsoluteX,
|
|
1060
|
+
y: positionAbsoluteY,
|
|
1061
|
+
width,
|
|
1062
|
+
height
|
|
1063
|
+
});
|
|
1064
|
+
$[22] = height;
|
|
1065
|
+
$[23] = positionAbsoluteX;
|
|
1066
|
+
$[24] = positionAbsoluteY;
|
|
1067
|
+
$[25] = width;
|
|
1068
|
+
$[26] = t11;
|
|
1069
|
+
} else t11 = $[26];
|
|
1070
|
+
let t12;
|
|
1071
|
+
if ($[27] !== isDropTarget) {
|
|
1072
|
+
t12 = isDropTarget && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1073
|
+
className: "flowGroupDropTarget",
|
|
1074
|
+
"aria-hidden": "true"
|
|
1075
|
+
});
|
|
1076
|
+
$[27] = isDropTarget;
|
|
1077
|
+
$[28] = t12;
|
|
1078
|
+
} else t12 = $[28];
|
|
1079
|
+
let t13;
|
|
1080
|
+
if ($[29] !== groupData || $[30] !== id || $[31] !== selected || $[32] !== title || $[33] !== type) {
|
|
1081
|
+
t13 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_awesome_flow_core_layout.NodeContainer, {
|
|
1015
1082
|
id,
|
|
1016
1083
|
selected,
|
|
1017
1084
|
data: groupData,
|
|
1018
1085
|
title,
|
|
1019
1086
|
type
|
|
1020
1087
|
});
|
|
1021
|
-
$[
|
|
1022
|
-
$[
|
|
1023
|
-
$[
|
|
1024
|
-
$[
|
|
1025
|
-
$[
|
|
1026
|
-
$[
|
|
1027
|
-
} else
|
|
1028
|
-
const
|
|
1029
|
-
let
|
|
1030
|
-
if ($[
|
|
1031
|
-
|
|
1088
|
+
$[29] = groupData;
|
|
1089
|
+
$[30] = id;
|
|
1090
|
+
$[31] = selected;
|
|
1091
|
+
$[32] = title;
|
|
1092
|
+
$[33] = type;
|
|
1093
|
+
$[34] = t13;
|
|
1094
|
+
} else t13 = $[34];
|
|
1095
|
+
const t14 = selected && !data.isCollapsed;
|
|
1096
|
+
let t15;
|
|
1097
|
+
if ($[35] !== id || $[36] !== size.height || $[37] !== size.width || $[38] !== t14) {
|
|
1098
|
+
t15 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_xyflow_react.NodeResizer, {
|
|
1032
1099
|
nodeId: id,
|
|
1033
1100
|
minWidth: size.width,
|
|
1034
1101
|
minHeight: size.height,
|
|
1035
|
-
isVisible:
|
|
1102
|
+
isVisible: t14
|
|
1036
1103
|
});
|
|
1037
|
-
$[
|
|
1038
|
-
$[
|
|
1039
|
-
$[
|
|
1040
|
-
$[
|
|
1041
|
-
$[
|
|
1042
|
-
} else
|
|
1043
|
-
let
|
|
1044
|
-
if ($[
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1104
|
+
$[35] = id;
|
|
1105
|
+
$[36] = size.height;
|
|
1106
|
+
$[37] = size.width;
|
|
1107
|
+
$[38] = t14;
|
|
1108
|
+
$[39] = t15;
|
|
1109
|
+
} else t15 = $[39];
|
|
1110
|
+
let t16;
|
|
1111
|
+
if ($[40] !== t11 || $[41] !== t12 || $[42] !== t13 || $[43] !== t15) {
|
|
1112
|
+
t16 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
1113
|
+
t11,
|
|
1114
|
+
t12,
|
|
1115
|
+
t13,
|
|
1116
|
+
t15
|
|
1117
|
+
] });
|
|
1118
|
+
$[40] = t11;
|
|
1119
|
+
$[41] = t12;
|
|
1120
|
+
$[42] = t13;
|
|
1121
|
+
$[43] = t15;
|
|
1122
|
+
$[44] = t16;
|
|
1123
|
+
} else t16 = $[44];
|
|
1124
|
+
return t16;
|
|
1051
1125
|
}
|
|
1052
1126
|
var node_scope_group_default = (0, react.memo)(ScopeGroupNode);
|
|
1053
1127
|
|
|
@@ -1119,7 +1193,7 @@ function SystemsModuleLayout(props) {
|
|
|
1119
1193
|
const { module } = props;
|
|
1120
1194
|
const runtimeContext = module.runtimeContext;
|
|
1121
1195
|
const systemsModule = runtimeContext?.systemsModule ?? module;
|
|
1122
|
-
const error = runtimeContext?.
|
|
1196
|
+
const error = runtimeContext?.dispatch?.error;
|
|
1123
1197
|
let t0;
|
|
1124
1198
|
if ($[0] !== systemsModule.builder.pipelines) {
|
|
1125
1199
|
t0 = systemsModule.builder.pipelines.get(_awesome_ecs_abstract_systems.SystemType.initialize);
|
|
@@ -1150,7 +1224,7 @@ function SystemsModuleLayout(props) {
|
|
|
1150
1224
|
const sync = t3;
|
|
1151
1225
|
let t4;
|
|
1152
1226
|
if ($[8] !== error) {
|
|
1153
|
-
t4 = error && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Text, { children: ["Error: ", error] });
|
|
1227
|
+
t4 = error && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Text, { children: ["Error: ", formatError(error)] });
|
|
1154
1228
|
$[8] = error;
|
|
1155
1229
|
$[9] = t4;
|
|
1156
1230
|
} else t4 = $[9];
|
|
@@ -1213,6 +1287,9 @@ function SystemsModuleLayout(props) {
|
|
|
1213
1287
|
} else t10 = $[25];
|
|
1214
1288
|
return t10;
|
|
1215
1289
|
}
|
|
1290
|
+
function formatError(error) {
|
|
1291
|
+
return error instanceof Error ? error.message : String(error);
|
|
1292
|
+
}
|
|
1216
1293
|
|
|
1217
1294
|
//#endregion
|
|
1218
1295
|
//#region src/nodes/node-systems-module.tsx
|
|
@@ -1415,7 +1492,7 @@ function UpdateQueueNode(t0) {
|
|
|
1415
1492
|
fullWidth: true,
|
|
1416
1493
|
color: "orange",
|
|
1417
1494
|
variant: "transparent",
|
|
1418
|
-
children: "
|
|
1495
|
+
children: "Dirty Updates"
|
|
1419
1496
|
});
|
|
1420
1497
|
$[2] = t2;
|
|
1421
1498
|
} else t2 = $[2];
|
|
@@ -1424,7 +1501,7 @@ function UpdateQueueNode(t0) {
|
|
|
1424
1501
|
if ($[3] !== t3) {
|
|
1425
1502
|
t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Badge, {
|
|
1426
1503
|
variant: "light",
|
|
1427
|
-
children: ["
|
|
1504
|
+
children: ["dirty ", t3]
|
|
1428
1505
|
});
|
|
1429
1506
|
$[3] = t3;
|
|
1430
1507
|
$[4] = t4;
|
|
@@ -1434,7 +1511,7 @@ function UpdateQueueNode(t0) {
|
|
|
1434
1511
|
t5 = !queue && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Text, {
|
|
1435
1512
|
size: "xs",
|
|
1436
1513
|
c: "dimmed",
|
|
1437
|
-
children: "No
|
|
1514
|
+
children: "No runtime scheduler connected."
|
|
1438
1515
|
});
|
|
1439
1516
|
$[5] = queue;
|
|
1440
1517
|
$[6] = t5;
|
|
@@ -1565,7 +1642,7 @@ var TelemetryNodeTemplate = class {
|
|
|
1565
1642
|
template = createToolTemplate("telemetry-node", "Telemetry");
|
|
1566
1643
|
};
|
|
1567
1644
|
var UpdateQueueNodeTemplate = class {
|
|
1568
|
-
template = createToolTemplate("update-queue-node", "
|
|
1645
|
+
template = createToolTemplate("update-queue-node", "Dirty Updates");
|
|
1569
1646
|
};
|
|
1570
1647
|
|
|
1571
1648
|
//#endregion
|
|
@@ -1816,4 +1893,4 @@ Object.defineProperty(exports, 'useUpdateQueue', {
|
|
|
1816
1893
|
return useUpdateQueue;
|
|
1817
1894
|
}
|
|
1818
1895
|
});
|
|
1819
|
-
//# sourceMappingURL=node-types-
|
|
1896
|
+
//# sourceMappingURL=node-types-Z4QaJir-.cjs.map
|