@awesome-flow/noise 0.12.0 → 0.14.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/abstract/index.cjs +1 -1
- package/dist/abstract/index.d.cts +2 -2
- package/dist/abstract/index.d.mts +2 -2
- package/dist/abstract/index.mjs +1 -1
- package/dist/{abstract-DQyDnRw-.mjs → abstract-2JON8rzd.mjs} +553 -320
- package/dist/abstract-2JON8rzd.mjs.map +1 -0
- package/dist/{abstract-ed4ZdB8H.cjs → abstract-B_pVp8sm.cjs} +553 -320
- package/dist/abstract-B_pVp8sm.cjs.map +1 -0
- package/dist/generators-1ateTPw4.cjs +697 -0
- package/dist/generators-1ateTPw4.cjs.map +1 -0
- package/dist/generators-C4lV1Acx.mjs +638 -0
- package/dist/generators-C4lV1Acx.mjs.map +1 -0
- package/dist/{groups-DF2FTSBC.cjs → groups-Bd_YqsSe.cjs} +10 -2
- package/dist/groups-Bd_YqsSe.cjs.map +1 -0
- package/dist/{groups-BiuJL0DE.mjs → groups-QnZwWs5K.mjs} +10 -2
- package/dist/groups-QnZwWs5K.mjs.map +1 -0
- package/dist/{index-DQ5-4LVA.d.mts → index-BF4lvH9m.d.mts} +7 -7
- package/dist/{index-Bxg8IB-v.d.cts.map → index-BF4lvH9m.d.mts.map} +1 -1
- package/dist/index-BbHM1kxc.d.cts.map +1 -1
- package/dist/index-Bgmf14d3.d.cts +43 -0
- package/dist/{index-BwLhWefF.d.cts.map → index-Bgmf14d3.d.cts.map} +1 -1
- package/dist/{index-BhJiS2YS.d.mts → index-Bq5dqoNQ.d.mts} +109 -143
- package/dist/index-Bq5dqoNQ.d.mts.map +1 -0
- package/dist/{index-CDJdO0Cl.d.mts → index-BvYuyqpe.d.mts} +5 -5
- package/dist/index-BvYuyqpe.d.mts.map +1 -0
- package/dist/index-C0hF9uhX.d.mts.map +1 -1
- package/dist/{index-Bxg8IB-v.d.cts → index-CBbjO4LA.d.cts} +7 -7
- package/dist/{index-DQ5-4LVA.d.mts.map → index-CBbjO4LA.d.cts.map} +1 -1
- package/dist/{index-BGF1mgi8.d.mts → index-CYv9fQPE.d.mts} +23 -23
- package/dist/{index-BGF1mgi8.d.mts.map → index-CYv9fQPE.d.mts.map} +1 -1
- package/dist/{index-NvNXQIOG.d.mts → index-C_YCQJAR.d.mts} +21 -21
- package/dist/{index-CiHIo5l6.d.cts.map → index-C_YCQJAR.d.mts.map} +1 -1
- package/dist/{index-CiHIo5l6.d.cts → index-Cq4cX7_1.d.cts} +21 -21
- package/dist/{index-NvNXQIOG.d.mts.map → index-Cq4cX7_1.d.cts.map} +1 -1
- package/dist/{index-Rk69VHHb.d.cts → index-CsaYSseO.d.cts} +23 -23
- package/dist/{index-Rk69VHHb.d.cts.map → index-CsaYSseO.d.cts.map} +1 -1
- package/dist/{index-B09XEo3I.d.cts → index-DD7w4U2L.d.cts} +109 -143
- package/dist/index-DD7w4U2L.d.cts.map +1 -0
- package/dist/{index-CBvjQM3o.d.cts → index-DGy2GCvU.d.cts} +5 -5
- package/dist/index-DGy2GCvU.d.cts.map +1 -0
- package/dist/{index-BgWB8f25.d.cts → index-DNxXxhXh.d.cts} +13 -13
- package/dist/{index-BgWB8f25.d.cts.map → index-DNxXxhXh.d.cts.map} +1 -1
- package/dist/index-PUkjAp6D.d.mts +43 -0
- package/dist/{index-CkAu8Jje.d.mts.map → index-PUkjAp6D.d.mts.map} +1 -1
- package/dist/{index-aAcFA6x8.d.mts → index-iThYgph-.d.mts} +13 -13
- package/dist/{index-aAcFA6x8.d.mts.map → index-iThYgph-.d.mts.map} +1 -1
- package/dist/modifiers-Buu-9KXs.cjs +721 -0
- package/dist/modifiers-Buu-9KXs.cjs.map +1 -0
- package/dist/modifiers-DQcS3gLS.mjs +668 -0
- package/dist/modifiers-DQcS3gLS.mjs.map +1 -0
- package/dist/{module-group-template-CE4b0J24.d.cts → module-group-template-C6pYnpOd.d.cts} +3 -4
- package/dist/module-group-template-C6pYnpOd.d.cts.map +1 -0
- package/dist/{module-group-template-D5doDEoa.d.mts → module-group-template-DFt0ldxW.d.mts} +3 -4
- package/dist/module-group-template-DFt0ldxW.d.mts.map +1 -0
- package/dist/modules/index.cjs +2 -0
- package/dist/modules/index.cjs.map +1 -1
- package/dist/modules/index.mjs +2 -0
- package/dist/modules/index.mjs.map +1 -1
- package/dist/node-props-CoXzPLD6.d.cts.map +1 -1
- package/dist/node-props-GcUBDDY0.d.mts.map +1 -1
- package/dist/nodes/generators/index.cjs +1 -1
- package/dist/nodes/generators/index.d.cts +1 -1
- package/dist/nodes/generators/index.d.mts +1 -1
- package/dist/nodes/generators/index.mjs +1 -1
- package/dist/nodes/groups/index.cjs +1 -1
- package/dist/nodes/groups/index.d.cts +1 -1
- package/dist/nodes/groups/index.d.mts +1 -1
- package/dist/nodes/groups/index.mjs +1 -1
- package/dist/nodes/index.cjs +6 -6
- package/dist/nodes/index.d.cts +6 -6
- package/dist/nodes/index.d.mts +6 -6
- package/dist/nodes/index.mjs +6 -6
- package/dist/nodes/modifiers/index.cjs +1 -1
- package/dist/nodes/modifiers/index.d.cts +1 -1
- package/dist/nodes/modifiers/index.d.mts +1 -1
- package/dist/nodes/modifiers/index.mjs +1 -1
- package/dist/nodes/output/index.cjs +1 -1
- package/dist/nodes/output/index.d.cts +1 -1
- package/dist/nodes/output/index.d.mts +1 -1
- package/dist/nodes/output/index.mjs +1 -1
- package/dist/nodes/selectors/index.cjs +1 -1
- package/dist/nodes/selectors/index.d.cts +1 -1
- package/dist/nodes/selectors/index.d.mts +1 -1
- package/dist/nodes/selectors/index.mjs +1 -1
- package/dist/nodes/transformers/index.cjs +1 -1
- package/dist/nodes/transformers/index.d.cts +1 -1
- package/dist/nodes/transformers/index.d.mts +1 -1
- package/dist/nodes/transformers/index.mjs +1 -1
- package/dist/{position-grid-template-FY_7BJcV.d.mts → position-grid-template-BDMWIHUn.d.mts} +9 -10
- package/dist/position-grid-template-BDMWIHUn.d.mts.map +1 -0
- package/dist/{position-grid-template-Da_-z-NN.d.cts → position-grid-template-DckkGHAX.d.cts} +9 -10
- package/dist/position-grid-template-DckkGHAX.d.cts.map +1 -0
- package/dist/selectors-BC2RDFCB.mjs +178 -0
- package/dist/selectors-BC2RDFCB.mjs.map +1 -0
- package/dist/selectors-CRgS2O53.cjs +189 -0
- package/dist/selectors-CRgS2O53.cjs.map +1 -0
- package/dist/templates/generators/index.cjs +1 -1
- package/dist/templates/generators/index.d.cts +1 -1
- package/dist/templates/generators/index.d.mts +1 -1
- package/dist/templates/generators/index.mjs +1 -1
- package/dist/templates/groups/index.cjs +1 -1
- package/dist/templates/groups/index.d.cts +1 -1
- package/dist/templates/groups/index.d.mts +1 -1
- package/dist/templates/groups/index.mjs +1 -1
- package/dist/templates/index.cjs +1 -1
- package/dist/templates/index.d.cts +3 -3
- package/dist/templates/index.d.mts +3 -3
- package/dist/templates/index.mjs +1 -1
- package/dist/templates/modifiers/index.cjs +1 -1
- package/dist/templates/modifiers/index.d.cts +1 -1
- package/dist/templates/modifiers/index.d.mts +1 -1
- package/dist/templates/modifiers/index.mjs +1 -1
- package/dist/templates/output/index.cjs +1 -1
- package/dist/templates/output/index.d.cts +1 -1
- package/dist/templates/output/index.d.mts +1 -1
- package/dist/templates/output/index.mjs +1 -1
- package/dist/templates/selectors/index.cjs +1 -1
- package/dist/templates/selectors/index.d.cts +1 -1
- package/dist/templates/selectors/index.d.mts +1 -1
- package/dist/templates/selectors/index.mjs +1 -1
- package/dist/templates/transformers/index.cjs +1 -1
- package/dist/templates/transformers/index.d.cts +1 -1
- package/dist/templates/transformers/index.d.mts +1 -1
- package/dist/templates/transformers/index.mjs +1 -1
- package/dist/transformers-BvmiSDwZ.mjs +443 -0
- package/dist/transformers-BvmiSDwZ.mjs.map +1 -0
- package/dist/transformers-ob-K3S2I.cjs +472 -0
- package/dist/transformers-ob-K3S2I.cjs.map +1 -0
- package/package.json +27 -37
- package/dist/abstract-DQyDnRw-.mjs.map +0 -1
- package/dist/abstract-ed4ZdB8H.cjs.map +0 -1
- package/dist/generators-BF_0y3pd.cjs +0 -337
- package/dist/generators-BF_0y3pd.cjs.map +0 -1
- package/dist/generators-DSwgPqW2.mjs +0 -278
- package/dist/generators-DSwgPqW2.mjs.map +0 -1
- package/dist/groups-BiuJL0DE.mjs.map +0 -1
- package/dist/groups-DF2FTSBC.cjs.map +0 -1
- package/dist/index-B09XEo3I.d.cts.map +0 -1
- package/dist/index-BhJiS2YS.d.mts.map +0 -1
- package/dist/index-BwLhWefF.d.cts +0 -43
- package/dist/index-CBvjQM3o.d.cts.map +0 -1
- package/dist/index-CDJdO0Cl.d.mts.map +0 -1
- package/dist/index-CkAu8Jje.d.mts +0 -43
- package/dist/modifiers-BLV074OG.cjs +0 -406
- package/dist/modifiers-BLV074OG.cjs.map +0 -1
- package/dist/modifiers-I7YC0m3o.mjs +0 -353
- package/dist/modifiers-I7YC0m3o.mjs.map +0 -1
- package/dist/module-group-template-CE4b0J24.d.cts.map +0 -1
- package/dist/module-group-template-D5doDEoa.d.mts.map +0 -1
- package/dist/position-grid-template-Da_-z-NN.d.cts.map +0 -1
- package/dist/position-grid-template-FY_7BJcV.d.mts.map +0 -1
- package/dist/selectors-35pwVJ7Z.cjs +0 -92
- package/dist/selectors-35pwVJ7Z.cjs.map +0 -1
- package/dist/selectors-BHPJTidb.mjs +0 -81
- package/dist/selectors-BHPJTidb.mjs.map +0 -1
- package/dist/transformers-D9B9IjR_.mjs +0 -197
- package/dist/transformers-D9B9IjR_.mjs.map +0 -1
- package/dist/transformers-D9SfPky8.cjs +0 -226
- package/dist/transformers-D9SfPky8.cjs.map +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
const require_generators = require('./generators-
|
|
2
|
-
const require_groups = require('./groups-
|
|
3
|
-
const require_modifiers = require('./modifiers-
|
|
4
|
-
const require_selectors = require('./selectors-
|
|
5
|
-
const require_transformers = require('./transformers-
|
|
1
|
+
const require_generators = require('./generators-1ateTPw4.cjs');
|
|
2
|
+
const require_groups = require('./groups-Bd_YqsSe.cjs');
|
|
3
|
+
const require_modifiers = require('./modifiers-Buu-9KXs.cjs');
|
|
4
|
+
const require_selectors = require('./selectors-CRgS2O53.cjs');
|
|
5
|
+
const require_transformers = require('./transformers-ob-K3S2I.cjs');
|
|
6
6
|
const require_modules_index = require('./modules/index.cjs');
|
|
7
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
7
8
|
let _awesome_flow_core_components = require("@awesome-flow/core/components");
|
|
8
9
|
let _awesome_flow_core_layout = require("@awesome-flow/core/layout");
|
|
9
10
|
let react = require("react");
|
|
@@ -41,101 +42,333 @@ let NoiseSourceControlHandle = /* @__PURE__ */ function(NoiseSourceControlHandle
|
|
|
41
42
|
|
|
42
43
|
//#endregion
|
|
43
44
|
//#region src/nodes/output/noise-logger-node.tsx
|
|
44
|
-
function NoiseLoggerNode(
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
45
|
+
function NoiseLoggerNode(t0) {
|
|
46
|
+
const $ = (0, react_compiler_runtime.c)(27);
|
|
47
|
+
const { id, selected, data, type } = t0;
|
|
48
|
+
const context = (0, _awesome_flow_core_hooks.useNodeContext)(id)?.incoming?.["noise"];
|
|
49
|
+
let T0;
|
|
50
|
+
let T1;
|
|
51
|
+
let t1;
|
|
52
|
+
let t2;
|
|
53
|
+
let t3;
|
|
54
|
+
let t4;
|
|
55
|
+
let t5;
|
|
56
|
+
let t6;
|
|
57
|
+
let t7;
|
|
58
|
+
if ($[0] !== context || $[1] !== data || $[2] !== id || $[3] !== selected || $[4] !== type) {
|
|
59
|
+
const noise = context?.filter(_temp$1).flatMap(_temp2$1) || [];
|
|
60
|
+
T1 = _awesome_flow_core_layout.NodeContainer;
|
|
61
|
+
t2 = id;
|
|
62
|
+
t3 = selected;
|
|
63
|
+
t4 = data;
|
|
64
|
+
t5 = type;
|
|
65
|
+
t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Text, { children: ["Size: ", noise?.length || 0] });
|
|
66
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
67
|
+
t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Divider, { h: 5 });
|
|
68
|
+
$[14] = t7;
|
|
69
|
+
} else t7 = $[14];
|
|
70
|
+
T0 = _mantine_core.Stack;
|
|
71
|
+
t1 = noise?.map(_temp3$1);
|
|
72
|
+
$[0] = context;
|
|
73
|
+
$[1] = data;
|
|
74
|
+
$[2] = id;
|
|
75
|
+
$[3] = selected;
|
|
76
|
+
$[4] = type;
|
|
77
|
+
$[5] = T0;
|
|
78
|
+
$[6] = T1;
|
|
79
|
+
$[7] = t1;
|
|
80
|
+
$[8] = t2;
|
|
81
|
+
$[9] = t3;
|
|
82
|
+
$[10] = t4;
|
|
83
|
+
$[11] = t5;
|
|
84
|
+
$[12] = t6;
|
|
85
|
+
$[13] = t7;
|
|
86
|
+
} else {
|
|
87
|
+
T0 = $[5];
|
|
88
|
+
T1 = $[6];
|
|
89
|
+
t1 = $[7];
|
|
90
|
+
t2 = $[8];
|
|
91
|
+
t3 = $[9];
|
|
92
|
+
t4 = $[10];
|
|
93
|
+
t5 = $[11];
|
|
94
|
+
t6 = $[12];
|
|
95
|
+
t7 = $[13];
|
|
96
|
+
}
|
|
97
|
+
let t8;
|
|
98
|
+
if ($[15] !== T0 || $[16] !== t1) {
|
|
99
|
+
t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(T0, { children: t1 });
|
|
100
|
+
$[15] = T0;
|
|
101
|
+
$[16] = t1;
|
|
102
|
+
$[17] = t8;
|
|
103
|
+
} else t8 = $[17];
|
|
104
|
+
let t9;
|
|
105
|
+
if ($[18] !== T1 || $[19] !== t2 || $[20] !== t3 || $[21] !== t4 || $[22] !== t5 || $[23] !== t6 || $[24] !== t7 || $[25] !== t8) {
|
|
106
|
+
t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(T1, {
|
|
107
|
+
id: t2,
|
|
108
|
+
selected: t3,
|
|
109
|
+
data: t4,
|
|
110
|
+
type: t5,
|
|
111
|
+
children: [
|
|
112
|
+
t6,
|
|
113
|
+
t7,
|
|
114
|
+
t8
|
|
115
|
+
]
|
|
116
|
+
});
|
|
117
|
+
$[18] = T1;
|
|
118
|
+
$[19] = t2;
|
|
119
|
+
$[20] = t3;
|
|
120
|
+
$[21] = t4;
|
|
121
|
+
$[22] = t5;
|
|
122
|
+
$[23] = t6;
|
|
123
|
+
$[24] = t7;
|
|
124
|
+
$[25] = t8;
|
|
125
|
+
$[26] = t9;
|
|
126
|
+
} else t9 = $[26];
|
|
127
|
+
return t9;
|
|
128
|
+
}
|
|
129
|
+
function _temp3$1(v, i) {
|
|
130
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Text, { children: [
|
|
131
|
+
v.position?.x,
|
|
132
|
+
":",
|
|
133
|
+
v.position?.y,
|
|
134
|
+
":",
|
|
135
|
+
v.position?.z,
|
|
136
|
+
": ",
|
|
137
|
+
v.value
|
|
138
|
+
] }, i);
|
|
139
|
+
}
|
|
140
|
+
function _temp2$1(c_0) {
|
|
141
|
+
return c_0.computed.noise;
|
|
142
|
+
}
|
|
143
|
+
function _temp$1(c) {
|
|
144
|
+
return c.computed?.noise;
|
|
65
145
|
}
|
|
66
146
|
var noise_logger_node_default = (0, react.memo)(NoiseLoggerNode);
|
|
67
147
|
|
|
68
148
|
//#endregion
|
|
69
149
|
//#region src/nodes/output/noise-output-node.tsx
|
|
70
|
-
function NoiseOutputNode(
|
|
150
|
+
function NoiseOutputNode(t0) {
|
|
151
|
+
const $ = (0, react_compiler_runtime.c)(12);
|
|
152
|
+
const { id, selected, data, type } = t0;
|
|
71
153
|
const context = (0, _awesome_flow_core_hooks.useNodeContext)(id);
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
data,
|
|
76
|
-
type,
|
|
77
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_awesome_flow_core_components.HandlesIncomingDataStatus, {
|
|
154
|
+
let t1;
|
|
155
|
+
if ($[0] !== data.handles || $[1] !== id) {
|
|
156
|
+
t1 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_awesome_flow_core_components.HandlesIncomingDataStatus, {
|
|
78
157
|
nodeId: id,
|
|
79
158
|
handles: data.handles
|
|
80
|
-
})
|
|
159
|
+
});
|
|
160
|
+
$[0] = data.handles;
|
|
161
|
+
$[1] = id;
|
|
162
|
+
$[2] = t1;
|
|
163
|
+
} else t1 = $[2];
|
|
164
|
+
const t2 = context?.computed?.noise?.length || 0;
|
|
165
|
+
let t3;
|
|
166
|
+
if ($[3] !== t2) {
|
|
167
|
+
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Text, {
|
|
81
168
|
mt: 5,
|
|
82
|
-
children: ["Noise points: ",
|
|
83
|
-
})
|
|
84
|
-
|
|
169
|
+
children: ["Noise points: ", t2]
|
|
170
|
+
});
|
|
171
|
+
$[3] = t2;
|
|
172
|
+
$[4] = t3;
|
|
173
|
+
} else t3 = $[4];
|
|
174
|
+
let t4;
|
|
175
|
+
if ($[5] !== data || $[6] !== id || $[7] !== selected || $[8] !== t1 || $[9] !== t3 || $[10] !== type) {
|
|
176
|
+
t4 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_awesome_flow_core_layout.NodeContainer, {
|
|
177
|
+
id,
|
|
178
|
+
selected,
|
|
179
|
+
data,
|
|
180
|
+
type,
|
|
181
|
+
children: [t1, t3]
|
|
182
|
+
});
|
|
183
|
+
$[5] = data;
|
|
184
|
+
$[6] = id;
|
|
185
|
+
$[7] = selected;
|
|
186
|
+
$[8] = t1;
|
|
187
|
+
$[9] = t3;
|
|
188
|
+
$[10] = type;
|
|
189
|
+
$[11] = t4;
|
|
190
|
+
} else t4 = $[11];
|
|
191
|
+
return t4;
|
|
85
192
|
}
|
|
86
193
|
var noise_output_node_default = (0, react.memo)(NoiseOutputNode);
|
|
87
194
|
|
|
88
195
|
//#endregion
|
|
89
196
|
//#region src/nodes/output/noise-texture-data-node.tsx
|
|
90
|
-
function NoiseTextureDataNode(
|
|
197
|
+
function NoiseTextureDataNode(t0) {
|
|
198
|
+
const $ = (0, react_compiler_runtime.c)(19);
|
|
199
|
+
const { id, selected, data, type } = t0;
|
|
91
200
|
const context = (0, _awesome_flow_core_hooks.useNodeContext)(id)?.computed;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
201
|
+
const t1 = context?.textureResolutionX;
|
|
202
|
+
const t2 = context?.textureResolutionY;
|
|
203
|
+
let t3;
|
|
204
|
+
if ($[0] !== t1 || $[1] !== t2) {
|
|
205
|
+
t3 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Group, { children: [
|
|
206
|
+
"Resolution: ",
|
|
207
|
+
t1,
|
|
208
|
+
"x",
|
|
209
|
+
t2
|
|
210
|
+
] });
|
|
211
|
+
$[0] = t1;
|
|
212
|
+
$[1] = t2;
|
|
213
|
+
$[2] = t3;
|
|
214
|
+
} else t3 = $[2];
|
|
215
|
+
const t4 = context?.textureData?.length || 0;
|
|
216
|
+
let t5;
|
|
217
|
+
if ($[3] !== t4) {
|
|
218
|
+
t5 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Group, { children: ["Input Length: ", t4] });
|
|
219
|
+
$[3] = t4;
|
|
220
|
+
$[4] = t5;
|
|
221
|
+
} else t5 = $[4];
|
|
222
|
+
const t6 = context?.textureResolutionX;
|
|
223
|
+
const t7 = context?.textureResolutionY;
|
|
224
|
+
const t8 = context?.textureData?.length || 0;
|
|
225
|
+
let t9;
|
|
226
|
+
if ($[5] !== t6 || $[6] !== t7 || $[7] !== t8) {
|
|
227
|
+
t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Group, { children: [
|
|
228
|
+
"Output Length (",
|
|
229
|
+
t6,
|
|
230
|
+
"*",
|
|
231
|
+
t7,
|
|
232
|
+
"*4): ",
|
|
233
|
+
t8
|
|
234
|
+
] });
|
|
235
|
+
$[5] = t6;
|
|
236
|
+
$[6] = t7;
|
|
237
|
+
$[7] = t8;
|
|
238
|
+
$[8] = t9;
|
|
239
|
+
} else t9 = $[8];
|
|
240
|
+
let t10;
|
|
241
|
+
if ($[9] !== t3 || $[10] !== t5 || $[11] !== t9) {
|
|
242
|
+
t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Stack, { children: [
|
|
243
|
+
t3,
|
|
244
|
+
t5,
|
|
245
|
+
t9
|
|
246
|
+
] });
|
|
247
|
+
$[9] = t3;
|
|
248
|
+
$[10] = t5;
|
|
249
|
+
$[11] = t9;
|
|
250
|
+
$[12] = t10;
|
|
251
|
+
} else t10 = $[12];
|
|
252
|
+
let t11;
|
|
253
|
+
if ($[13] !== data || $[14] !== id || $[15] !== selected || $[16] !== t10 || $[17] !== type) {
|
|
254
|
+
t11 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_awesome_flow_core_layout.NodeContainer, {
|
|
255
|
+
id,
|
|
256
|
+
selected,
|
|
257
|
+
data,
|
|
258
|
+
type,
|
|
259
|
+
children: t10
|
|
260
|
+
});
|
|
261
|
+
$[13] = data;
|
|
262
|
+
$[14] = id;
|
|
263
|
+
$[15] = selected;
|
|
264
|
+
$[16] = t10;
|
|
265
|
+
$[17] = type;
|
|
266
|
+
$[18] = t11;
|
|
267
|
+
} else t11 = $[18];
|
|
268
|
+
return t11;
|
|
115
269
|
}
|
|
116
270
|
var noise_texture_data_node_default = (0, react.memo)(NoiseTextureDataNode);
|
|
117
271
|
|
|
118
272
|
//#endregion
|
|
119
273
|
//#region src/nodes/output/positions-logger-node.tsx
|
|
120
|
-
function PositionsLoggerNode(
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
274
|
+
function PositionsLoggerNode(t0) {
|
|
275
|
+
const $ = (0, react_compiler_runtime.c)(27);
|
|
276
|
+
const { id, selected, data, type } = t0;
|
|
277
|
+
const incoming = (0, _awesome_flow_core_hooks.useNodeContext)(id)?.incoming["position"];
|
|
278
|
+
let T0;
|
|
279
|
+
let T1;
|
|
280
|
+
let t1;
|
|
281
|
+
let t2;
|
|
282
|
+
let t3;
|
|
283
|
+
let t4;
|
|
284
|
+
let t5;
|
|
285
|
+
let t6;
|
|
286
|
+
let t7;
|
|
287
|
+
if ($[0] !== data || $[1] !== id || $[2] !== incoming || $[3] !== selected || $[4] !== type) {
|
|
288
|
+
const positions = incoming?.filter(_temp).flatMap(_temp2);
|
|
289
|
+
T1 = _awesome_flow_core_layout.NodeContainer;
|
|
290
|
+
t2 = id;
|
|
291
|
+
t3 = selected;
|
|
292
|
+
t4 = data;
|
|
293
|
+
t5 = type;
|
|
294
|
+
t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Text, { children: ["Size: ", positions?.length || 0] });
|
|
295
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
296
|
+
t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Divider, { h: 5 });
|
|
297
|
+
$[14] = t7;
|
|
298
|
+
} else t7 = $[14];
|
|
299
|
+
T0 = _mantine_core.Stack;
|
|
300
|
+
t1 = positions?.map(_temp3);
|
|
301
|
+
$[0] = data;
|
|
302
|
+
$[1] = id;
|
|
303
|
+
$[2] = incoming;
|
|
304
|
+
$[3] = selected;
|
|
305
|
+
$[4] = type;
|
|
306
|
+
$[5] = T0;
|
|
307
|
+
$[6] = T1;
|
|
308
|
+
$[7] = t1;
|
|
309
|
+
$[8] = t2;
|
|
310
|
+
$[9] = t3;
|
|
311
|
+
$[10] = t4;
|
|
312
|
+
$[11] = t5;
|
|
313
|
+
$[12] = t6;
|
|
314
|
+
$[13] = t7;
|
|
315
|
+
} else {
|
|
316
|
+
T0 = $[5];
|
|
317
|
+
T1 = $[6];
|
|
318
|
+
t1 = $[7];
|
|
319
|
+
t2 = $[8];
|
|
320
|
+
t3 = $[9];
|
|
321
|
+
t4 = $[10];
|
|
322
|
+
t5 = $[11];
|
|
323
|
+
t6 = $[12];
|
|
324
|
+
t7 = $[13];
|
|
325
|
+
}
|
|
326
|
+
let t8;
|
|
327
|
+
if ($[15] !== T0 || $[16] !== t1) {
|
|
328
|
+
t8 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(T0, { children: t1 });
|
|
329
|
+
$[15] = T0;
|
|
330
|
+
$[16] = t1;
|
|
331
|
+
$[17] = t8;
|
|
332
|
+
} else t8 = $[17];
|
|
333
|
+
let t9;
|
|
334
|
+
if ($[18] !== T1 || $[19] !== t2 || $[20] !== t3 || $[21] !== t4 || $[22] !== t5 || $[23] !== t6 || $[24] !== t7 || $[25] !== t8) {
|
|
335
|
+
t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(T1, {
|
|
336
|
+
id: t2,
|
|
337
|
+
selected: t3,
|
|
338
|
+
data: t4,
|
|
339
|
+
type: t5,
|
|
340
|
+
children: [
|
|
341
|
+
t6,
|
|
342
|
+
t7,
|
|
343
|
+
t8
|
|
344
|
+
]
|
|
345
|
+
});
|
|
346
|
+
$[18] = T1;
|
|
347
|
+
$[19] = t2;
|
|
348
|
+
$[20] = t3;
|
|
349
|
+
$[21] = t4;
|
|
350
|
+
$[22] = t5;
|
|
351
|
+
$[23] = t6;
|
|
352
|
+
$[24] = t7;
|
|
353
|
+
$[25] = t8;
|
|
354
|
+
$[26] = t9;
|
|
355
|
+
} else t9 = $[26];
|
|
356
|
+
return t9;
|
|
357
|
+
}
|
|
358
|
+
function _temp3(v, i) {
|
|
359
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_mantine_core.Text, { children: [
|
|
360
|
+
v.x,
|
|
361
|
+
":",
|
|
362
|
+
v.y,
|
|
363
|
+
":",
|
|
364
|
+
v.z
|
|
365
|
+
] }, i);
|
|
366
|
+
}
|
|
367
|
+
function _temp2(p_0) {
|
|
368
|
+
return p_0.computed.positions;
|
|
369
|
+
}
|
|
370
|
+
function _temp(p) {
|
|
371
|
+
return !!p.computed?.positions?.length;
|
|
139
372
|
}
|
|
140
373
|
var positions_logger_node_default = (0, react.memo)(PositionsLoggerNode);
|
|
141
374
|
|
|
@@ -170,8 +403,8 @@ var IncomingPropertyValueMiddleware = class {
|
|
|
170
403
|
var NoiseBillowNodeTemplateFactory = class {
|
|
171
404
|
template = {
|
|
172
405
|
id: _awesome_flow_core_utils.IDGenerator.template(),
|
|
173
|
-
type:
|
|
174
|
-
group:
|
|
406
|
+
type: "noise-billow",
|
|
407
|
+
group: "Noise Generators",
|
|
175
408
|
data: {
|
|
176
409
|
title: "Billow Noise",
|
|
177
410
|
frequency: .1,
|
|
@@ -186,7 +419,7 @@ var NoiseBillowNodeTemplateFactory = class {
|
|
|
186
419
|
connection: "target"
|
|
187
420
|
}, {
|
|
188
421
|
position: _xyflow_system.Position.Right,
|
|
189
|
-
dataType:
|
|
422
|
+
dataType: "module",
|
|
190
423
|
connection: "source"
|
|
191
424
|
}]
|
|
192
425
|
};
|
|
@@ -205,12 +438,12 @@ var NoiseBillowNodeTemplateFactory = class {
|
|
|
205
438
|
//#region src/templates/generators/noise-checkerboard-template.ts
|
|
206
439
|
var NoiseCheckerboardNodeTemplateFactory = class {
|
|
207
440
|
template = {
|
|
208
|
-
type:
|
|
209
|
-
group:
|
|
441
|
+
type: "noise-checkerboard",
|
|
442
|
+
group: "Noise Generators",
|
|
210
443
|
data: { title: "Checkerboard Noise" },
|
|
211
444
|
handles: [{
|
|
212
445
|
position: _xyflow_system.Position.Right,
|
|
213
|
-
dataType:
|
|
446
|
+
dataType: "module",
|
|
214
447
|
connection: "source"
|
|
215
448
|
}]
|
|
216
449
|
};
|
|
@@ -228,8 +461,8 @@ var NoiseCheckerboardNodeTemplateFactory = class {
|
|
|
228
461
|
//#region src/templates/generators/noise-const-template.ts
|
|
229
462
|
var NoiseConstNodeTemplateFactory = class {
|
|
230
463
|
template = {
|
|
231
|
-
type:
|
|
232
|
-
group:
|
|
464
|
+
type: "noise-constant",
|
|
465
|
+
group: "Noise Generators",
|
|
233
466
|
data: {
|
|
234
467
|
title: "Const Value Noise",
|
|
235
468
|
noise: 0,
|
|
@@ -238,7 +471,7 @@ var NoiseConstNodeTemplateFactory = class {
|
|
|
238
471
|
},
|
|
239
472
|
handles: [{
|
|
240
473
|
position: _xyflow_system.Position.Right,
|
|
241
|
-
dataType:
|
|
474
|
+
dataType: "module",
|
|
242
475
|
connection: "source"
|
|
243
476
|
}]
|
|
244
477
|
};
|
|
@@ -259,8 +492,8 @@ var NoiseConstNodeTemplateFactory = class {
|
|
|
259
492
|
//#region src/templates/generators/noise-cylinders-template.ts
|
|
260
493
|
var NoiseCylindersNodeTemplateFactory = class {
|
|
261
494
|
template = {
|
|
262
|
-
type:
|
|
263
|
-
group:
|
|
495
|
+
type: "noise-cylinders",
|
|
496
|
+
group: "Noise Generators",
|
|
264
497
|
data: {
|
|
265
498
|
title: "Cylinders Noise",
|
|
266
499
|
frequency: .1
|
|
@@ -271,7 +504,7 @@ var NoiseCylindersNodeTemplateFactory = class {
|
|
|
271
504
|
connection: "target"
|
|
272
505
|
}, {
|
|
273
506
|
position: _xyflow_system.Position.Right,
|
|
274
|
-
dataType:
|
|
507
|
+
dataType: "module",
|
|
275
508
|
connection: "source"
|
|
276
509
|
}]
|
|
277
510
|
};
|
|
@@ -290,8 +523,8 @@ var NoiseCylindersNodeTemplateFactory = class {
|
|
|
290
523
|
//#region src/templates/generators/noise-perlin-template.ts
|
|
291
524
|
var NoisePerlinNodeTemplateFactory = class {
|
|
292
525
|
template = {
|
|
293
|
-
type:
|
|
294
|
-
group:
|
|
526
|
+
type: "noise-perlin",
|
|
527
|
+
group: "Noise Generators",
|
|
295
528
|
data: {
|
|
296
529
|
title: "Perlin Noise",
|
|
297
530
|
frequency: .1,
|
|
@@ -306,7 +539,7 @@ var NoisePerlinNodeTemplateFactory = class {
|
|
|
306
539
|
connection: "target"
|
|
307
540
|
}, {
|
|
308
541
|
position: _xyflow_system.Position.Right,
|
|
309
|
-
dataType:
|
|
542
|
+
dataType: "module",
|
|
310
543
|
connection: "source"
|
|
311
544
|
}]
|
|
312
545
|
};
|
|
@@ -325,8 +558,8 @@ var NoisePerlinNodeTemplateFactory = class {
|
|
|
325
558
|
//#region src/templates/generators/noise-ridgedmulti-template.ts
|
|
326
559
|
var NoiseRidgedMultiNodeTemplateFactory = class {
|
|
327
560
|
template = {
|
|
328
|
-
type:
|
|
329
|
-
group:
|
|
561
|
+
type: "noise-ridged-multi",
|
|
562
|
+
group: "Noise Generators",
|
|
330
563
|
data: {
|
|
331
564
|
title: "Ridged Multi Noise",
|
|
332
565
|
frequency: .1,
|
|
@@ -342,7 +575,7 @@ var NoiseRidgedMultiNodeTemplateFactory = class {
|
|
|
342
575
|
connection: "target"
|
|
343
576
|
}, {
|
|
344
577
|
position: _xyflow_system.Position.Right,
|
|
345
|
-
dataType:
|
|
578
|
+
dataType: "module",
|
|
346
579
|
connection: "source"
|
|
347
580
|
}]
|
|
348
581
|
};
|
|
@@ -361,8 +594,8 @@ var NoiseRidgedMultiNodeTemplateFactory = class {
|
|
|
361
594
|
//#region src/templates/generators/noise-spheres-template.ts
|
|
362
595
|
var NoiseSpheresNodeTemplateFactory = class {
|
|
363
596
|
template = {
|
|
364
|
-
type:
|
|
365
|
-
group:
|
|
597
|
+
type: "noise-spheres",
|
|
598
|
+
group: "Noise Generators",
|
|
366
599
|
data: {
|
|
367
600
|
title: "Spheres Noise",
|
|
368
601
|
frequency: .1
|
|
@@ -373,7 +606,7 @@ var NoiseSpheresNodeTemplateFactory = class {
|
|
|
373
606
|
connection: "target"
|
|
374
607
|
}, {
|
|
375
608
|
position: _xyflow_system.Position.Right,
|
|
376
|
-
dataType:
|
|
609
|
+
dataType: "module",
|
|
377
610
|
connection: "source"
|
|
378
611
|
}]
|
|
379
612
|
};
|
|
@@ -392,8 +625,8 @@ var NoiseSpheresNodeTemplateFactory = class {
|
|
|
392
625
|
//#region src/templates/generators/noise-voronoi-template.ts
|
|
393
626
|
var NoiseVoronoiNodeTemplateFactory = class {
|
|
394
627
|
template = {
|
|
395
|
-
type:
|
|
396
|
-
group:
|
|
628
|
+
type: "noise-voronoi",
|
|
629
|
+
group: "Noise Generators",
|
|
397
630
|
data: {
|
|
398
631
|
title: "Voronoi Noise",
|
|
399
632
|
frequency: .1,
|
|
@@ -407,7 +640,7 @@ var NoiseVoronoiNodeTemplateFactory = class {
|
|
|
407
640
|
connection: "target"
|
|
408
641
|
}, {
|
|
409
642
|
position: _xyflow_system.Position.Right,
|
|
410
|
-
dataType:
|
|
643
|
+
dataType: "module",
|
|
411
644
|
connection: "source"
|
|
412
645
|
}]
|
|
413
646
|
};
|
|
@@ -426,8 +659,8 @@ var NoiseVoronoiNodeTemplateFactory = class {
|
|
|
426
659
|
//#region src/templates/generators/position-const-template.ts
|
|
427
660
|
var PositionConstNodeTemplateFactory = class {
|
|
428
661
|
template = {
|
|
429
|
-
type:
|
|
430
|
-
group:
|
|
662
|
+
type: "position",
|
|
663
|
+
group: "Positions",
|
|
431
664
|
data: {
|
|
432
665
|
title: "Position Output",
|
|
433
666
|
position: {
|
|
@@ -438,7 +671,7 @@ var PositionConstNodeTemplateFactory = class {
|
|
|
438
671
|
},
|
|
439
672
|
handles: [{
|
|
440
673
|
position: _xyflow_system.Position.Right,
|
|
441
|
-
dataType:
|
|
674
|
+
dataType: "position",
|
|
442
675
|
connection: "source"
|
|
443
676
|
}]
|
|
444
677
|
};
|
|
@@ -460,8 +693,8 @@ var PositionConstNodeTemplateFactory = class {
|
|
|
460
693
|
//#region src/templates/generators/position-grid-template.ts
|
|
461
694
|
var PositionGridNodeTemplateFactory = class {
|
|
462
695
|
template = {
|
|
463
|
-
type:
|
|
464
|
-
group:
|
|
696
|
+
type: "grid",
|
|
697
|
+
group: "Positions",
|
|
465
698
|
data: {
|
|
466
699
|
title: "Grid Output",
|
|
467
700
|
center: {
|
|
@@ -473,7 +706,7 @@ var PositionGridNodeTemplateFactory = class {
|
|
|
473
706
|
},
|
|
474
707
|
handles: [{
|
|
475
708
|
position: _xyflow_system.Position.Right,
|
|
476
|
-
dataType:
|
|
709
|
+
dataType: "position",
|
|
477
710
|
connection: "source"
|
|
478
711
|
}]
|
|
479
712
|
};
|
|
@@ -504,7 +737,7 @@ var PositionGridNodeTemplateFactory = class {
|
|
|
504
737
|
var ModuleGroupNodeTemplateFactory = class {
|
|
505
738
|
template = {
|
|
506
739
|
id: _awesome_flow_core_utils.IDGenerator.template(),
|
|
507
|
-
type:
|
|
740
|
+
type: "group-module",
|
|
508
741
|
group: _awesome_flow_core_abstract.CoreTemplateGroup.groups,
|
|
509
742
|
data: {
|
|
510
743
|
title: "Modules Group",
|
|
@@ -520,22 +753,22 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
520
753
|
},
|
|
521
754
|
handles: [{
|
|
522
755
|
position: _xyflow_system.Position.Bottom,
|
|
523
|
-
dataType:
|
|
756
|
+
dataType: "module",
|
|
524
757
|
connection: "target",
|
|
525
758
|
maxConnections: 1,
|
|
526
759
|
hideOnCollapse: true
|
|
527
760
|
}, {
|
|
528
761
|
position: _xyflow_system.Position.Right,
|
|
529
|
-
dataType:
|
|
762
|
+
dataType: "module",
|
|
530
763
|
connection: "source"
|
|
531
764
|
}]
|
|
532
765
|
};
|
|
533
766
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
534
767
|
shouldRun(context) {
|
|
535
|
-
return !!context.incoming[
|
|
768
|
+
return !!context.incoming["module"];
|
|
536
769
|
},
|
|
537
770
|
action: (context) => {
|
|
538
|
-
context.computed = { module: context.incoming[
|
|
771
|
+
context.computed = { module: context.incoming["module"].computed?.module };
|
|
539
772
|
},
|
|
540
773
|
cleanup: (context) => {
|
|
541
774
|
context.computed = null;
|
|
@@ -547,26 +780,26 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
547
780
|
//#region src/templates/modifiers/noise-abs-template.ts
|
|
548
781
|
var NoiseAbsNodeTemplateFactory = class {
|
|
549
782
|
template = {
|
|
550
|
-
type:
|
|
551
|
-
group:
|
|
783
|
+
type: "noise-abs",
|
|
784
|
+
group: "Noise Modifiers",
|
|
552
785
|
data: { title: "Abs Noise" },
|
|
553
786
|
handles: [{
|
|
554
787
|
position: _xyflow_system.Position.Left,
|
|
555
|
-
dataType:
|
|
788
|
+
dataType: "module",
|
|
556
789
|
connection: "target",
|
|
557
790
|
maxConnections: 1
|
|
558
791
|
}, {
|
|
559
792
|
position: _xyflow_system.Position.Right,
|
|
560
|
-
dataType:
|
|
793
|
+
dataType: "module",
|
|
561
794
|
connection: "source"
|
|
562
795
|
}]
|
|
563
796
|
};
|
|
564
797
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
565
798
|
shouldRun(context) {
|
|
566
|
-
return !!context.incoming[
|
|
799
|
+
return !!context.incoming["module"];
|
|
567
800
|
},
|
|
568
801
|
action(context) {
|
|
569
|
-
const module = context.incoming[
|
|
802
|
+
const module = context.incoming["module"].computed?.module;
|
|
570
803
|
if (module) if (context.computed?.module) context.computed.module.sourceModule = module;
|
|
571
804
|
else context.computed = { module: new libnoise_simplex_ts.Abs(module) };
|
|
572
805
|
},
|
|
@@ -580,8 +813,8 @@ var NoiseAbsNodeTemplateFactory = class {
|
|
|
580
813
|
//#region src/templates/modifiers/noise-clamp-template.ts
|
|
581
814
|
var NoiseClampNodeTemplateFactory = class {
|
|
582
815
|
template = {
|
|
583
|
-
type:
|
|
584
|
-
group:
|
|
816
|
+
type: "noise-clamp",
|
|
817
|
+
group: "Noise Modifiers",
|
|
585
818
|
data: {
|
|
586
819
|
title: "Clamp Noise",
|
|
587
820
|
lowerBound: -1,
|
|
@@ -589,21 +822,21 @@ var NoiseClampNodeTemplateFactory = class {
|
|
|
589
822
|
},
|
|
590
823
|
handles: [{
|
|
591
824
|
position: _xyflow_system.Position.Left,
|
|
592
|
-
dataType:
|
|
825
|
+
dataType: "module",
|
|
593
826
|
connection: "target",
|
|
594
827
|
maxConnections: 1
|
|
595
828
|
}, {
|
|
596
829
|
position: _xyflow_system.Position.Right,
|
|
597
|
-
dataType:
|
|
830
|
+
dataType: "module",
|
|
598
831
|
connection: "source"
|
|
599
832
|
}]
|
|
600
833
|
};
|
|
601
834
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
602
835
|
shouldRun(context) {
|
|
603
|
-
return !!context.incoming[
|
|
836
|
+
return !!context.incoming["module"];
|
|
604
837
|
},
|
|
605
838
|
action(context) {
|
|
606
|
-
const module = context.incoming[
|
|
839
|
+
const module = context.incoming["module"].computed?.module;
|
|
607
840
|
if (module) {
|
|
608
841
|
const clampModule = context.computed?.module;
|
|
609
842
|
if (clampModule) {
|
|
@@ -630,41 +863,41 @@ let NoiseCombineType = /* @__PURE__ */ function(NoiseCombineType) {
|
|
|
630
863
|
return NoiseCombineType;
|
|
631
864
|
}({});
|
|
632
865
|
const noiseCombineModuleMap = {
|
|
633
|
-
[
|
|
634
|
-
[
|
|
635
|
-
[
|
|
636
|
-
[
|
|
637
|
-
[
|
|
866
|
+
["add"]: libnoise_simplex_ts.Add,
|
|
867
|
+
["max"]: libnoise_simplex_ts.Max,
|
|
868
|
+
["min"]: libnoise_simplex_ts.Min,
|
|
869
|
+
["multiply"]: libnoise_simplex_ts.Multiply,
|
|
870
|
+
["power"]: libnoise_simplex_ts.Power
|
|
638
871
|
};
|
|
639
872
|
|
|
640
873
|
//#endregion
|
|
641
874
|
//#region src/templates/modifiers/noise-combine-template.ts
|
|
642
875
|
var NoiseCombineNodeTemplateFactory = class {
|
|
643
876
|
template = {
|
|
644
|
-
type:
|
|
645
|
-
group:
|
|
877
|
+
type: "noise-combiner",
|
|
878
|
+
group: "Noise Modifiers",
|
|
646
879
|
data: {
|
|
647
880
|
title: "Combine Noise",
|
|
648
|
-
operation:
|
|
881
|
+
operation: "add"
|
|
649
882
|
},
|
|
650
883
|
handles: [{
|
|
651
884
|
position: _xyflow_system.Position.Left,
|
|
652
|
-
dataType:
|
|
885
|
+
dataType: "module",
|
|
653
886
|
connection: "target",
|
|
654
887
|
minConnections: 2,
|
|
655
888
|
maxConnections: 2
|
|
656
889
|
}, {
|
|
657
890
|
position: _xyflow_system.Position.Right,
|
|
658
|
-
dataType:
|
|
891
|
+
dataType: "module",
|
|
659
892
|
connection: "source"
|
|
660
893
|
}]
|
|
661
894
|
};
|
|
662
895
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
663
896
|
shouldRun(context) {
|
|
664
|
-
return context.incoming[
|
|
897
|
+
return context.incoming["module"]?.length === 2;
|
|
665
898
|
},
|
|
666
899
|
action(context) {
|
|
667
|
-
const incoming = context.incoming[
|
|
900
|
+
const incoming = context.incoming["module"];
|
|
668
901
|
const ModuleFactory = noiseCombineModuleMap[context.data.operation];
|
|
669
902
|
context.computed = { module: new ModuleFactory(incoming[0].computed?.module, incoming[1].computed?.module) };
|
|
670
903
|
},
|
|
@@ -678,29 +911,29 @@ var NoiseCombineNodeTemplateFactory = class {
|
|
|
678
911
|
//#region src/templates/modifiers/noise-curve-template.ts
|
|
679
912
|
var NoiseCurveNodeTemplateFactory = class {
|
|
680
913
|
template = {
|
|
681
|
-
type:
|
|
682
|
-
group:
|
|
914
|
+
type: "noise-curve",
|
|
915
|
+
group: "Noise Modifiers",
|
|
683
916
|
data: {
|
|
684
917
|
title: "Noise Curve",
|
|
685
918
|
points: []
|
|
686
919
|
},
|
|
687
920
|
handles: [{
|
|
688
921
|
position: _xyflow_system.Position.Left,
|
|
689
|
-
dataType:
|
|
922
|
+
dataType: "module",
|
|
690
923
|
connection: "target",
|
|
691
924
|
maxConnections: 1
|
|
692
925
|
}, {
|
|
693
926
|
position: _xyflow_system.Position.Right,
|
|
694
|
-
dataType:
|
|
927
|
+
dataType: "module",
|
|
695
928
|
connection: "source"
|
|
696
929
|
}]
|
|
697
930
|
};
|
|
698
931
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
699
932
|
shouldRun(context) {
|
|
700
|
-
return !!context.incoming[
|
|
933
|
+
return !!context.incoming["module"];
|
|
701
934
|
},
|
|
702
935
|
action(context) {
|
|
703
|
-
const module = context.incoming[
|
|
936
|
+
const module = context.incoming["module"].computed?.module;
|
|
704
937
|
if (module) context.computed = { module: new libnoise_simplex_ts.Curve(module, context.data.points.map((p) => new libnoise_simplex_ts.Tuple(p.input, p.output))) };
|
|
705
938
|
},
|
|
706
939
|
cleanup(context) {
|
|
@@ -713,29 +946,29 @@ var NoiseCurveNodeTemplateFactory = class {
|
|
|
713
946
|
//#region src/templates/modifiers/noise-exponent-template.ts
|
|
714
947
|
var NoiseExponentNodeTemplateFactory = class {
|
|
715
948
|
template = {
|
|
716
|
-
type:
|
|
717
|
-
group:
|
|
949
|
+
type: "noise-exponent",
|
|
950
|
+
group: "Noise Modifiers",
|
|
718
951
|
data: {
|
|
719
952
|
title: "Noise Exponent",
|
|
720
953
|
exponent: 1
|
|
721
954
|
},
|
|
722
955
|
handles: [{
|
|
723
956
|
position: _xyflow_system.Position.Left,
|
|
724
|
-
dataType:
|
|
957
|
+
dataType: "module",
|
|
725
958
|
connection: "target",
|
|
726
959
|
maxConnections: 1
|
|
727
960
|
}, {
|
|
728
961
|
position: _xyflow_system.Position.Right,
|
|
729
|
-
dataType:
|
|
962
|
+
dataType: "module",
|
|
730
963
|
connection: "source"
|
|
731
964
|
}]
|
|
732
965
|
};
|
|
733
966
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
734
967
|
shouldRun(context) {
|
|
735
|
-
return !!context.incoming[
|
|
968
|
+
return !!context.incoming["module"];
|
|
736
969
|
},
|
|
737
970
|
action(context) {
|
|
738
|
-
const module = context.incoming[
|
|
971
|
+
const module = context.incoming["module"].computed?.module;
|
|
739
972
|
if (context.computed?.module) context.computed.module.exponent = context.data.exponent;
|
|
740
973
|
else if (module) context.computed = { module: new libnoise_simplex_ts.Exponent(module, context.data.exponent) };
|
|
741
974
|
},
|
|
@@ -749,26 +982,26 @@ var NoiseExponentNodeTemplateFactory = class {
|
|
|
749
982
|
//#region src/templates/modifiers/noise-invert-template.ts
|
|
750
983
|
var NoiseInvertNodeTemplateFactory = class {
|
|
751
984
|
template = {
|
|
752
|
-
type:
|
|
753
|
-
group:
|
|
985
|
+
type: "noise-invert",
|
|
986
|
+
group: "Noise Modifiers",
|
|
754
987
|
data: { title: "Invert Noise" },
|
|
755
988
|
handles: [{
|
|
756
989
|
position: _xyflow_system.Position.Left,
|
|
757
|
-
dataType:
|
|
990
|
+
dataType: "module",
|
|
758
991
|
connection: "target",
|
|
759
992
|
maxConnections: 1
|
|
760
993
|
}, {
|
|
761
994
|
position: _xyflow_system.Position.Right,
|
|
762
|
-
dataType:
|
|
995
|
+
dataType: "module",
|
|
763
996
|
connection: "source"
|
|
764
997
|
}]
|
|
765
998
|
};
|
|
766
999
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
767
1000
|
shouldRun(context) {
|
|
768
|
-
return !!context.incoming[
|
|
1001
|
+
return !!context.incoming["module"];
|
|
769
1002
|
},
|
|
770
1003
|
action(context) {
|
|
771
|
-
const module = context.incoming[
|
|
1004
|
+
const module = context.incoming["module"].computed?.module;
|
|
772
1005
|
if (context.computed?.module) context.computed.module.sourceModule = module;
|
|
773
1006
|
else if (module) context.computed = { module: new libnoise_simplex_ts.Invert(module) };
|
|
774
1007
|
},
|
|
@@ -783,8 +1016,8 @@ var NoiseInvertNodeTemplateFactory = class {
|
|
|
783
1016
|
var NoiseNormalizeNodeTemplateFactory = class {
|
|
784
1017
|
template = {
|
|
785
1018
|
id: _awesome_flow_core_utils.IDGenerator.template(),
|
|
786
|
-
type:
|
|
787
|
-
group:
|
|
1019
|
+
type: "noise-normalize",
|
|
1020
|
+
group: "Noise Modifiers",
|
|
788
1021
|
data: {
|
|
789
1022
|
title: "Normalize Noise",
|
|
790
1023
|
intervalStart: -1,
|
|
@@ -792,21 +1025,21 @@ var NoiseNormalizeNodeTemplateFactory = class {
|
|
|
792
1025
|
},
|
|
793
1026
|
handles: [{
|
|
794
1027
|
position: _xyflow_system.Position.Left,
|
|
795
|
-
dataType:
|
|
1028
|
+
dataType: "module",
|
|
796
1029
|
connection: "target",
|
|
797
1030
|
maxConnections: 1
|
|
798
1031
|
}, {
|
|
799
1032
|
position: _xyflow_system.Position.Right,
|
|
800
|
-
dataType:
|
|
1033
|
+
dataType: "module",
|
|
801
1034
|
connection: "source"
|
|
802
1035
|
}]
|
|
803
1036
|
};
|
|
804
1037
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
805
1038
|
shouldRun(context) {
|
|
806
|
-
return !!context.incoming[
|
|
1039
|
+
return !!context.incoming["module"];
|
|
807
1040
|
},
|
|
808
1041
|
action(context) {
|
|
809
|
-
const module = context.incoming[
|
|
1042
|
+
const module = context.incoming["module"].computed?.module;
|
|
810
1043
|
if (module) context.computed = { module: new require_modules_index.NormalizeNoiseModule(module, context.data.intervalStart, context.data.intervalEnd) };
|
|
811
1044
|
},
|
|
812
1045
|
cleanup(context) {
|
|
@@ -819,8 +1052,8 @@ var NoiseNormalizeNodeTemplateFactory = class {
|
|
|
819
1052
|
//#region src/templates/modifiers/noise-scalebias-template.ts
|
|
820
1053
|
var NoiseScaleBiasNodeTemplateFactory = class {
|
|
821
1054
|
template = {
|
|
822
|
-
type:
|
|
823
|
-
group:
|
|
1055
|
+
type: "noise-scale-bias",
|
|
1056
|
+
group: "Noise Modifiers",
|
|
824
1057
|
data: {
|
|
825
1058
|
title: "Scale/Bias Noise",
|
|
826
1059
|
scale: 1,
|
|
@@ -828,21 +1061,21 @@ var NoiseScaleBiasNodeTemplateFactory = class {
|
|
|
828
1061
|
},
|
|
829
1062
|
handles: [{
|
|
830
1063
|
position: _xyflow_system.Position.Left,
|
|
831
|
-
dataType:
|
|
1064
|
+
dataType: "module",
|
|
832
1065
|
connection: "target",
|
|
833
1066
|
maxConnections: 1
|
|
834
1067
|
}, {
|
|
835
1068
|
position: _xyflow_system.Position.Right,
|
|
836
|
-
dataType:
|
|
1069
|
+
dataType: "module",
|
|
837
1070
|
connection: "source"
|
|
838
1071
|
}]
|
|
839
1072
|
};
|
|
840
1073
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
841
1074
|
shouldRun(context) {
|
|
842
|
-
return !!context.incoming[
|
|
1075
|
+
return !!context.incoming["module"];
|
|
843
1076
|
},
|
|
844
1077
|
action(context) {
|
|
845
|
-
const module = context.incoming[
|
|
1078
|
+
const module = context.incoming["module"].computed?.module;
|
|
846
1079
|
if (context.computed?.module) {
|
|
847
1080
|
context.computed.module.sourceModule = module;
|
|
848
1081
|
context.computed.module.scale = context.data.scale;
|
|
@@ -859,29 +1092,29 @@ var NoiseScaleBiasNodeTemplateFactory = class {
|
|
|
859
1092
|
//#region src/templates/modifiers/noise-terrace-template.ts
|
|
860
1093
|
var NoiseTerraceNodeTemplateFactory = class {
|
|
861
1094
|
template = {
|
|
862
|
-
type:
|
|
863
|
-
group:
|
|
1095
|
+
type: "noise-terrace",
|
|
1096
|
+
group: "Noise Modifiers",
|
|
864
1097
|
data: {
|
|
865
1098
|
title: "Noise Terrace",
|
|
866
1099
|
points: []
|
|
867
1100
|
},
|
|
868
1101
|
handles: [{
|
|
869
1102
|
position: _xyflow_system.Position.Left,
|
|
870
|
-
dataType:
|
|
1103
|
+
dataType: "module",
|
|
871
1104
|
connection: "target",
|
|
872
1105
|
maxConnections: 1
|
|
873
1106
|
}, {
|
|
874
1107
|
position: _xyflow_system.Position.Right,
|
|
875
|
-
dataType:
|
|
1108
|
+
dataType: "module",
|
|
876
1109
|
connection: "source"
|
|
877
1110
|
}]
|
|
878
1111
|
};
|
|
879
1112
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
880
1113
|
shouldRun(context) {
|
|
881
|
-
return !!context.incoming[
|
|
1114
|
+
return !!context.incoming["module"];
|
|
882
1115
|
},
|
|
883
1116
|
action(context) {
|
|
884
|
-
const module = context.incoming[
|
|
1117
|
+
const module = context.incoming["module"].computed?.module;
|
|
885
1118
|
if (module) context.computed = { module: new libnoise_simplex_ts.Terrace(module, context.data.points) };
|
|
886
1119
|
},
|
|
887
1120
|
cleanup(context) {
|
|
@@ -894,12 +1127,12 @@ var NoiseTerraceNodeTemplateFactory = class {
|
|
|
894
1127
|
//#region src/templates/output/noise-logger-template.ts
|
|
895
1128
|
var NoiseLoggerNodeTemplateFactory = class {
|
|
896
1129
|
template = {
|
|
897
|
-
type:
|
|
898
|
-
group:
|
|
1130
|
+
type: "noise-logger",
|
|
1131
|
+
group: "Output",
|
|
899
1132
|
data: { title: "Noise Logger" },
|
|
900
1133
|
handles: [{
|
|
901
1134
|
position: _xyflow_system.Position.Left,
|
|
902
|
-
dataType:
|
|
1135
|
+
dataType: "noise",
|
|
903
1136
|
connection: "target"
|
|
904
1137
|
}]
|
|
905
1138
|
};
|
|
@@ -909,32 +1142,32 @@ var NoiseLoggerNodeTemplateFactory = class {
|
|
|
909
1142
|
//#region src/templates/output/noise-output-template.ts
|
|
910
1143
|
var NoiseOutputNodeTemplateFactory = class {
|
|
911
1144
|
template = {
|
|
912
|
-
type:
|
|
913
|
-
group:
|
|
1145
|
+
type: "noise-output",
|
|
1146
|
+
group: "Output",
|
|
914
1147
|
data: { title: "Noise Output" },
|
|
915
1148
|
handles: [
|
|
916
1149
|
{
|
|
917
1150
|
position: _xyflow_system.Position.Left,
|
|
918
|
-
dataType:
|
|
1151
|
+
dataType: "position",
|
|
919
1152
|
connection: "target"
|
|
920
1153
|
},
|
|
921
1154
|
{
|
|
922
1155
|
position: _xyflow_system.Position.Left,
|
|
923
|
-
dataType:
|
|
1156
|
+
dataType: "module",
|
|
924
1157
|
connection: "target",
|
|
925
1158
|
maxConnections: 1
|
|
926
1159
|
},
|
|
927
1160
|
{
|
|
928
1161
|
position: _xyflow_system.Position.Right,
|
|
929
|
-
dataType:
|
|
1162
|
+
dataType: "noise",
|
|
930
1163
|
connection: "source"
|
|
931
1164
|
}
|
|
932
1165
|
]
|
|
933
1166
|
};
|
|
934
1167
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
935
1168
|
action: (context) => {
|
|
936
|
-
const incomingPositions = context.incoming[
|
|
937
|
-
const incomingModule = context.incoming[
|
|
1169
|
+
const incomingPositions = context.incoming["position"];
|
|
1170
|
+
const incomingModule = context.incoming["module"];
|
|
938
1171
|
if (incomingPositions?.length && incomingModule?.computed?.module) {
|
|
939
1172
|
const { module } = incomingModule.computed;
|
|
940
1173
|
const noise = [];
|
|
@@ -961,26 +1194,26 @@ var NoiseOutputNodeTemplateFactory = class {
|
|
|
961
1194
|
//#region src/templates/output/noise-texture-data-template.ts
|
|
962
1195
|
var NoiseTextureDataTemplateFactory = class {
|
|
963
1196
|
template = {
|
|
964
|
-
type:
|
|
965
|
-
group:
|
|
1197
|
+
type: "texture-data",
|
|
1198
|
+
group: "Output",
|
|
966
1199
|
data: { title: "Texture Data" },
|
|
967
1200
|
handles: [{
|
|
968
1201
|
position: _xyflow_system.Position.Left,
|
|
969
|
-
dataType:
|
|
1202
|
+
dataType: "noise",
|
|
970
1203
|
connection: "target",
|
|
971
1204
|
maxConnections: 1
|
|
972
1205
|
}, {
|
|
973
1206
|
position: _xyflow_system.Position.Right,
|
|
974
|
-
dataType:
|
|
1207
|
+
dataType: "texture-data",
|
|
975
1208
|
connection: "source"
|
|
976
1209
|
}]
|
|
977
1210
|
};
|
|
978
1211
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
979
1212
|
shouldRun: (context) => {
|
|
980
|
-
return !!context.incoming[
|
|
1213
|
+
return !!context.incoming["noise"]?.computed?.noise.length;
|
|
981
1214
|
},
|
|
982
1215
|
action: (context) => {
|
|
983
|
-
const noise = context.incoming[
|
|
1216
|
+
const noise = context.incoming["noise"]?.computed?.noise;
|
|
984
1217
|
const size = Math.ceil(Math.sqrt(noise.length));
|
|
985
1218
|
const colors = noise.flatMap((n) => [
|
|
986
1219
|
n.value * 255,
|
|
@@ -1006,12 +1239,12 @@ var NoiseTextureDataTemplateFactory = class {
|
|
|
1006
1239
|
//#region src/templates/output/position-logger-template.ts
|
|
1007
1240
|
var PositionLoggerNodeTemplateFactory = class {
|
|
1008
1241
|
template = {
|
|
1009
|
-
type:
|
|
1010
|
-
group:
|
|
1242
|
+
type: "position-logger",
|
|
1243
|
+
group: "Positions",
|
|
1011
1244
|
data: { title: "Position Logger" },
|
|
1012
1245
|
handles: [{
|
|
1013
1246
|
position: _xyflow_system.Position.Left,
|
|
1014
|
-
dataType:
|
|
1247
|
+
dataType: "position",
|
|
1015
1248
|
connection: "target"
|
|
1016
1249
|
}]
|
|
1017
1250
|
};
|
|
@@ -1021,24 +1254,24 @@ var PositionLoggerNodeTemplateFactory = class {
|
|
|
1021
1254
|
//#region src/templates/selectors/noise-blend-template.ts
|
|
1022
1255
|
var NoiseBlendNodeTemplateFactory = class {
|
|
1023
1256
|
template = {
|
|
1024
|
-
type:
|
|
1025
|
-
group:
|
|
1257
|
+
type: "noise-blend",
|
|
1258
|
+
group: "Noise Selectors",
|
|
1026
1259
|
data: { title: "Noise Blend" },
|
|
1027
1260
|
handles: [
|
|
1028
1261
|
{
|
|
1029
1262
|
position: _xyflow_system.Position.Left,
|
|
1030
|
-
dataType:
|
|
1263
|
+
dataType: "module",
|
|
1031
1264
|
connection: "target",
|
|
1032
1265
|
label: "Source Modules",
|
|
1033
|
-
dataId:
|
|
1266
|
+
dataId: "source",
|
|
1034
1267
|
groupBy: "dataId",
|
|
1035
1268
|
maxConnections: 2,
|
|
1036
1269
|
minConnections: 2
|
|
1037
1270
|
},
|
|
1038
1271
|
{
|
|
1039
1272
|
position: _xyflow_system.Position.Left,
|
|
1040
|
-
dataType:
|
|
1041
|
-
dataId:
|
|
1273
|
+
dataType: "module",
|
|
1274
|
+
dataId: "control",
|
|
1042
1275
|
groupBy: "dataId",
|
|
1043
1276
|
connection: "target",
|
|
1044
1277
|
label: "Control Module",
|
|
@@ -1046,19 +1279,19 @@ var NoiseBlendNodeTemplateFactory = class {
|
|
|
1046
1279
|
},
|
|
1047
1280
|
{
|
|
1048
1281
|
position: _xyflow_system.Position.Right,
|
|
1049
|
-
dataType:
|
|
1050
|
-
dataId:
|
|
1282
|
+
dataType: "module",
|
|
1283
|
+
dataId: "output",
|
|
1051
1284
|
connection: "source"
|
|
1052
1285
|
}
|
|
1053
1286
|
]
|
|
1054
1287
|
};
|
|
1055
1288
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
1056
1289
|
shouldRun: (context) => {
|
|
1057
|
-
return context.incoming[
|
|
1290
|
+
return context.incoming["source"]?.length === 2 && !!context.incoming["control"];
|
|
1058
1291
|
},
|
|
1059
1292
|
action: (context) => {
|
|
1060
|
-
const incomingSources = context.incoming[
|
|
1061
|
-
const incomingControl = context.incoming[
|
|
1293
|
+
const incomingSources = context.incoming["source"];
|
|
1294
|
+
const incomingControl = context.incoming["control"];
|
|
1062
1295
|
if (context.computed?.module) {
|
|
1063
1296
|
context.computed.module.controlModule = incomingControl.computed.module;
|
|
1064
1297
|
context.computed.module.sourceModuleA = incomingSources[0].computed.module;
|
|
@@ -1075,8 +1308,8 @@ var NoiseBlendNodeTemplateFactory = class {
|
|
|
1075
1308
|
//#region src/templates/selectors/noise-select-template.ts
|
|
1076
1309
|
var NoiseSelectNodeTemplateFactory = class {
|
|
1077
1310
|
template = {
|
|
1078
|
-
type:
|
|
1079
|
-
group:
|
|
1311
|
+
type: "noise-select",
|
|
1312
|
+
group: "Noise Selectors",
|
|
1080
1313
|
data: {
|
|
1081
1314
|
title: "Noise Select",
|
|
1082
1315
|
edgeFalloff: 0,
|
|
@@ -1086,8 +1319,8 @@ var NoiseSelectNodeTemplateFactory = class {
|
|
|
1086
1319
|
handles: [
|
|
1087
1320
|
{
|
|
1088
1321
|
position: _xyflow_system.Position.Left,
|
|
1089
|
-
dataType:
|
|
1090
|
-
dataId:
|
|
1322
|
+
dataType: "module",
|
|
1323
|
+
dataId: "source",
|
|
1091
1324
|
groupBy: "dataId",
|
|
1092
1325
|
connection: "target",
|
|
1093
1326
|
label: "Source Modules",
|
|
@@ -1096,8 +1329,8 @@ var NoiseSelectNodeTemplateFactory = class {
|
|
|
1096
1329
|
},
|
|
1097
1330
|
{
|
|
1098
1331
|
position: _xyflow_system.Position.Left,
|
|
1099
|
-
dataType:
|
|
1100
|
-
dataId:
|
|
1332
|
+
dataType: "module",
|
|
1333
|
+
dataId: "control",
|
|
1101
1334
|
groupBy: "dataId",
|
|
1102
1335
|
connection: "target",
|
|
1103
1336
|
label: "Control Module",
|
|
@@ -1105,19 +1338,19 @@ var NoiseSelectNodeTemplateFactory = class {
|
|
|
1105
1338
|
},
|
|
1106
1339
|
{
|
|
1107
1340
|
position: _xyflow_system.Position.Right,
|
|
1108
|
-
dataType:
|
|
1109
|
-
dataId:
|
|
1341
|
+
dataType: "module",
|
|
1342
|
+
dataId: "output",
|
|
1110
1343
|
connection: "source"
|
|
1111
1344
|
}
|
|
1112
1345
|
]
|
|
1113
1346
|
};
|
|
1114
1347
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
1115
1348
|
shouldRun: (context) => {
|
|
1116
|
-
return context.incoming[
|
|
1349
|
+
return context.incoming["source"]?.length === 2 && !!context.incoming["control"];
|
|
1117
1350
|
},
|
|
1118
1351
|
action: (context) => {
|
|
1119
|
-
const incomingSources = context.incoming[
|
|
1120
|
-
const incomingControl = context.incoming[
|
|
1352
|
+
const incomingSources = context.incoming["source"];
|
|
1353
|
+
const incomingControl = context.incoming["control"];
|
|
1121
1354
|
if (context.computed?.module) {
|
|
1122
1355
|
context.computed.module.controlModule = incomingControl.computed.module;
|
|
1123
1356
|
context.computed.module.sourceModuleA = incomingSources[0].computed.module;
|
|
@@ -1137,16 +1370,16 @@ var NoiseSelectNodeTemplateFactory = class {
|
|
|
1137
1370
|
//#region src/templates/transformers/noise-displace-template.ts
|
|
1138
1371
|
var NoiseDisplaceNodeTemplateFactory = class {
|
|
1139
1372
|
template = {
|
|
1140
|
-
type:
|
|
1141
|
-
group:
|
|
1373
|
+
type: "noise-displace",
|
|
1374
|
+
group: "Noise Transformers",
|
|
1142
1375
|
data: { title: "Noise Displace" },
|
|
1143
1376
|
handles: [
|
|
1144
1377
|
{
|
|
1145
1378
|
position: _xyflow_system.Position.Left,
|
|
1146
1379
|
connection: "target",
|
|
1147
1380
|
label: "Source Module",
|
|
1148
|
-
dataType:
|
|
1149
|
-
dataId:
|
|
1381
|
+
dataType: "module",
|
|
1382
|
+
dataId: "source",
|
|
1150
1383
|
groupBy: "dataId",
|
|
1151
1384
|
maxConnections: 1
|
|
1152
1385
|
},
|
|
@@ -1154,8 +1387,8 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
1154
1387
|
position: _xyflow_system.Position.Left,
|
|
1155
1388
|
connection: "target",
|
|
1156
1389
|
label: "X Module",
|
|
1157
|
-
dataType:
|
|
1158
|
-
dataId:
|
|
1390
|
+
dataType: "module",
|
|
1391
|
+
dataId: "x-module",
|
|
1159
1392
|
groupBy: "dataId",
|
|
1160
1393
|
maxConnections: 1
|
|
1161
1394
|
},
|
|
@@ -1163,8 +1396,8 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
1163
1396
|
position: _xyflow_system.Position.Left,
|
|
1164
1397
|
connection: "target",
|
|
1165
1398
|
label: "Y Module",
|
|
1166
|
-
dataType:
|
|
1167
|
-
dataId:
|
|
1399
|
+
dataType: "module",
|
|
1400
|
+
dataId: "y-module",
|
|
1168
1401
|
groupBy: "dataId",
|
|
1169
1402
|
maxConnections: 1
|
|
1170
1403
|
},
|
|
@@ -1172,28 +1405,28 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
1172
1405
|
position: _xyflow_system.Position.Left,
|
|
1173
1406
|
connection: "target",
|
|
1174
1407
|
label: "Z Module",
|
|
1175
|
-
dataType:
|
|
1176
|
-
dataId:
|
|
1408
|
+
dataType: "module",
|
|
1409
|
+
dataId: "z-module",
|
|
1177
1410
|
groupBy: "dataId",
|
|
1178
1411
|
maxConnections: 1
|
|
1179
1412
|
},
|
|
1180
1413
|
{
|
|
1181
1414
|
position: _xyflow_system.Position.Right,
|
|
1182
|
-
dataType:
|
|
1183
|
-
dataId:
|
|
1415
|
+
dataType: "module",
|
|
1416
|
+
dataId: "output",
|
|
1184
1417
|
connection: "source"
|
|
1185
1418
|
}
|
|
1186
1419
|
]
|
|
1187
1420
|
};
|
|
1188
1421
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
1189
1422
|
shouldRun: (context) => {
|
|
1190
|
-
return !!context.incoming[
|
|
1423
|
+
return !!context.incoming["source"]?.computed?.module && !!context.incoming["x-module"]?.computed?.module && !!context.incoming["y-module"]?.computed?.module && !!context.incoming["z-module"]?.computed?.module;
|
|
1191
1424
|
},
|
|
1192
1425
|
action: (context) => {
|
|
1193
|
-
const sourceModule = context.incoming[
|
|
1194
|
-
const xModule = context.incoming[
|
|
1195
|
-
const yModule = context.incoming[
|
|
1196
|
-
const zModule = context.incoming[
|
|
1426
|
+
const sourceModule = context.incoming["source"].computed.module;
|
|
1427
|
+
const xModule = context.incoming["x-module"].computed.module;
|
|
1428
|
+
const yModule = context.incoming["y-module"].computed.module;
|
|
1429
|
+
const zModule = context.incoming["z-module"].computed.module;
|
|
1197
1430
|
const hasModules = !!sourceModule && !!xModule && !!yModule && !!zModule;
|
|
1198
1431
|
if (context.computed?.module) {
|
|
1199
1432
|
if (hasModules) {
|
|
@@ -1214,8 +1447,8 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
1214
1447
|
//#region src/templates/transformers/noise-rotate-point-template.ts
|
|
1215
1448
|
var NoiseRotatePointNodeTemplateFactory = class {
|
|
1216
1449
|
template = {
|
|
1217
|
-
type:
|
|
1218
|
-
group:
|
|
1450
|
+
type: "noise-rotate-point",
|
|
1451
|
+
group: "Noise Transformers",
|
|
1219
1452
|
data: {
|
|
1220
1453
|
title: "Noise Rotate Point",
|
|
1221
1454
|
xAngle: 0,
|
|
@@ -1224,22 +1457,22 @@ var NoiseRotatePointNodeTemplateFactory = class {
|
|
|
1224
1457
|
},
|
|
1225
1458
|
handles: [{
|
|
1226
1459
|
position: _xyflow_system.Position.Left,
|
|
1227
|
-
dataType:
|
|
1460
|
+
dataType: "module",
|
|
1228
1461
|
connection: "target",
|
|
1229
1462
|
label: "Source Module",
|
|
1230
1463
|
maxConnections: 1
|
|
1231
1464
|
}, {
|
|
1232
1465
|
position: _xyflow_system.Position.Right,
|
|
1233
|
-
dataType:
|
|
1466
|
+
dataType: "module",
|
|
1234
1467
|
connection: "source"
|
|
1235
1468
|
}]
|
|
1236
1469
|
};
|
|
1237
1470
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
1238
1471
|
shouldRun: (context) => {
|
|
1239
|
-
return !!context.incoming[
|
|
1472
|
+
return !!context.incoming["module"]?.computed?.module;
|
|
1240
1473
|
},
|
|
1241
1474
|
action: (context) => {
|
|
1242
|
-
const sourceModule = context.incoming[
|
|
1475
|
+
const sourceModule = context.incoming["module"].computed.module;
|
|
1243
1476
|
const { xAngle, yAngle, zAngle } = context.data;
|
|
1244
1477
|
if (context.computed?.module) {
|
|
1245
1478
|
context.computed.module.sourceModule = sourceModule;
|
|
@@ -1258,8 +1491,8 @@ var NoiseRotatePointNodeTemplateFactory = class {
|
|
|
1258
1491
|
//#region src/templates/transformers/noise-scale-point-template.ts
|
|
1259
1492
|
var NoiseScalePointNodeTemplateFactory = class {
|
|
1260
1493
|
template = {
|
|
1261
|
-
type:
|
|
1262
|
-
group:
|
|
1494
|
+
type: "noise-scale-point",
|
|
1495
|
+
group: "Noise Transformers",
|
|
1263
1496
|
data: {
|
|
1264
1497
|
title: "Noise Scale Point",
|
|
1265
1498
|
xScale: 1,
|
|
@@ -1268,22 +1501,22 @@ var NoiseScalePointNodeTemplateFactory = class {
|
|
|
1268
1501
|
},
|
|
1269
1502
|
handles: [{
|
|
1270
1503
|
position: _xyflow_system.Position.Left,
|
|
1271
|
-
dataType:
|
|
1504
|
+
dataType: "module",
|
|
1272
1505
|
connection: "target",
|
|
1273
1506
|
label: "Source Module",
|
|
1274
1507
|
maxConnections: 1
|
|
1275
1508
|
}, {
|
|
1276
1509
|
position: _xyflow_system.Position.Right,
|
|
1277
|
-
dataType:
|
|
1510
|
+
dataType: "module",
|
|
1278
1511
|
connection: "source"
|
|
1279
1512
|
}]
|
|
1280
1513
|
};
|
|
1281
1514
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
1282
1515
|
shouldRun: (context) => {
|
|
1283
|
-
return !!context.incoming[
|
|
1516
|
+
return !!context.incoming["module"]?.computed?.module;
|
|
1284
1517
|
},
|
|
1285
1518
|
action: (context) => {
|
|
1286
|
-
const sourceModule = context.incoming[
|
|
1519
|
+
const sourceModule = context.incoming["module"].computed.module;
|
|
1287
1520
|
const { xScale, yScale, zScale } = context.data;
|
|
1288
1521
|
if (context.computed?.module) {
|
|
1289
1522
|
context.computed.module.sourceModule = sourceModule;
|
|
@@ -1302,8 +1535,8 @@ var NoiseScalePointNodeTemplateFactory = class {
|
|
|
1302
1535
|
//#region src/templates/transformers/noise-translate-point-template.ts
|
|
1303
1536
|
var NoiseTranslatePointNodeTemplateFactory = class {
|
|
1304
1537
|
template = {
|
|
1305
|
-
type:
|
|
1306
|
-
group:
|
|
1538
|
+
type: "noise-translate-point",
|
|
1539
|
+
group: "Noise Transformers",
|
|
1307
1540
|
data: {
|
|
1308
1541
|
title: "Noise Translate Point",
|
|
1309
1542
|
translateX: 0,
|
|
@@ -1312,22 +1545,22 @@ var NoiseTranslatePointNodeTemplateFactory = class {
|
|
|
1312
1545
|
},
|
|
1313
1546
|
handles: [{
|
|
1314
1547
|
position: _xyflow_system.Position.Left,
|
|
1315
|
-
dataType:
|
|
1548
|
+
dataType: "module",
|
|
1316
1549
|
connection: "target",
|
|
1317
1550
|
label: "Source Module",
|
|
1318
1551
|
maxConnections: 1
|
|
1319
1552
|
}, {
|
|
1320
1553
|
position: _xyflow_system.Position.Right,
|
|
1321
|
-
dataType:
|
|
1554
|
+
dataType: "module",
|
|
1322
1555
|
connection: "source"
|
|
1323
1556
|
}]
|
|
1324
1557
|
};
|
|
1325
1558
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create({
|
|
1326
1559
|
shouldRun: (context) => {
|
|
1327
|
-
return !!context.incoming[
|
|
1560
|
+
return !!context.incoming["module"]?.computed?.module;
|
|
1328
1561
|
},
|
|
1329
1562
|
action: (context) => {
|
|
1330
|
-
const sourceModule = context.incoming[
|
|
1563
|
+
const sourceModule = context.incoming["module"].computed.module;
|
|
1331
1564
|
const { translateX, translateY, translateZ } = context.data;
|
|
1332
1565
|
if (context.computed?.module) {
|
|
1333
1566
|
context.computed.module.sourceModule = sourceModule;
|
|
@@ -1346,8 +1579,8 @@ var NoiseTranslatePointNodeTemplateFactory = class {
|
|
|
1346
1579
|
//#region src/templates/transformers/noise-turbulence-template.ts
|
|
1347
1580
|
var NoiseTurbulenceNodeTemplateFactory = class {
|
|
1348
1581
|
template = {
|
|
1349
|
-
type:
|
|
1350
|
-
group:
|
|
1582
|
+
type: "noise-turbulence",
|
|
1583
|
+
group: "Noise Transformers",
|
|
1351
1584
|
data: {
|
|
1352
1585
|
title: "Noise Turbulence",
|
|
1353
1586
|
frequency: 1,
|
|
@@ -1358,7 +1591,7 @@ var NoiseTurbulenceNodeTemplateFactory = class {
|
|
|
1358
1591
|
handles: [
|
|
1359
1592
|
{
|
|
1360
1593
|
position: _xyflow_system.Position.Left,
|
|
1361
|
-
dataType:
|
|
1594
|
+
dataType: "module",
|
|
1362
1595
|
connection: "target",
|
|
1363
1596
|
label: "Source Module",
|
|
1364
1597
|
maxConnections: 1
|
|
@@ -1371,18 +1604,18 @@ var NoiseTurbulenceNodeTemplateFactory = class {
|
|
|
1371
1604
|
},
|
|
1372
1605
|
{
|
|
1373
1606
|
position: _xyflow_system.Position.Right,
|
|
1374
|
-
dataType:
|
|
1607
|
+
dataType: "module",
|
|
1375
1608
|
connection: "source"
|
|
1376
1609
|
}
|
|
1377
1610
|
]
|
|
1378
1611
|
};
|
|
1379
1612
|
pipeline = _awesome_ecs_core_factories.PipelineFactory.create(new IncomingPropertyValueMiddleware(), {
|
|
1380
1613
|
shouldRun: (context) => {
|
|
1381
|
-
return !!context.incoming[
|
|
1614
|
+
return !!context.incoming["module"]?.computed?.module;
|
|
1382
1615
|
},
|
|
1383
1616
|
action: (context) => {
|
|
1384
1617
|
const { properties } = context;
|
|
1385
|
-
const incoming = context.incoming[
|
|
1618
|
+
const incoming = context.incoming["module"].computed.module;
|
|
1386
1619
|
if (context.computed?.module) {
|
|
1387
1620
|
context.computed.module.sourceModule = incoming;
|
|
1388
1621
|
context.computed.module.frequency = properties.frequency;
|
|
@@ -1434,70 +1667,70 @@ let NoiseNodeType = /* @__PURE__ */ function(NoiseNodeType) {
|
|
|
1434
1667
|
return NoiseNodeType;
|
|
1435
1668
|
}({});
|
|
1436
1669
|
const noiseNodeTypes = {
|
|
1437
|
-
[
|
|
1438
|
-
[
|
|
1439
|
-
[
|
|
1440
|
-
[
|
|
1441
|
-
[
|
|
1442
|
-
[
|
|
1443
|
-
[
|
|
1444
|
-
[
|
|
1445
|
-
[
|
|
1446
|
-
[
|
|
1447
|
-
[
|
|
1448
|
-
[
|
|
1449
|
-
[
|
|
1450
|
-
[
|
|
1451
|
-
[
|
|
1452
|
-
[
|
|
1453
|
-
[
|
|
1454
|
-
[
|
|
1455
|
-
[
|
|
1456
|
-
[
|
|
1457
|
-
[
|
|
1458
|
-
[
|
|
1459
|
-
[
|
|
1460
|
-
[
|
|
1461
|
-
[
|
|
1462
|
-
[
|
|
1463
|
-
[
|
|
1464
|
-
[
|
|
1465
|
-
[
|
|
1466
|
-
[
|
|
1467
|
-
[
|
|
1670
|
+
["group-module"]: require_groups.module_group_node_default,
|
|
1671
|
+
["position"]: require_generators.position_const_node_default,
|
|
1672
|
+
["grid"]: require_generators.position_grid_node_default,
|
|
1673
|
+
["noise-output"]: noise_output_node_default,
|
|
1674
|
+
["texture-data"]: noise_texture_data_node_default,
|
|
1675
|
+
["noise-logger"]: noise_logger_node_default,
|
|
1676
|
+
["position-logger"]: positions_logger_node_default,
|
|
1677
|
+
["noise-constant"]: require_generators.noise_const_node_default,
|
|
1678
|
+
["noise-billow"]: require_generators.noise_billow_node_default,
|
|
1679
|
+
["noise-checkerboard"]: require_generators.noise_checkerboard_node_default,
|
|
1680
|
+
["noise-cylinders"]: require_generators.noise_cylinders_node_default,
|
|
1681
|
+
["noise-perlin"]: require_generators.noise_perlin_node_default,
|
|
1682
|
+
["noise-ridged-multi"]: require_generators.noise_ridgedmulti_node_default,
|
|
1683
|
+
["noise-spheres"]: require_generators.noise_spheres_node_default,
|
|
1684
|
+
["noise-voronoi"]: require_generators.noise_voronoi_node_default,
|
|
1685
|
+
["noise-combiner"]: require_modifiers.noise_combine_node_default,
|
|
1686
|
+
["noise-clamp"]: require_modifiers.noise_clamp_node_default,
|
|
1687
|
+
["noise-abs"]: require_modifiers.noise_abs_node_default,
|
|
1688
|
+
["noise-normalize"]: require_modifiers.noise_normalize_node_default,
|
|
1689
|
+
["noise-curve"]: require_modifiers.noise_curve_node_default,
|
|
1690
|
+
["noise-exponent"]: require_modifiers.noise_exponent_node_default,
|
|
1691
|
+
["noise-invert"]: require_modifiers.noise_invert_node_default,
|
|
1692
|
+
["noise-scale-bias"]: require_modifiers.noise_scale_bias_node_default,
|
|
1693
|
+
["noise-terrace"]: require_modifiers.noise_terrace_node_default,
|
|
1694
|
+
["noise-blend"]: require_selectors.noise_blend_node_default,
|
|
1695
|
+
["noise-select"]: require_selectors.noise_select_node_default,
|
|
1696
|
+
["noise-displace"]: require_transformers.noise_displace_node_default,
|
|
1697
|
+
["noise-rotate-point"]: require_transformers.noise_rotate_point_node_default,
|
|
1698
|
+
["noise-scale-point"]: require_transformers.noise_scale_point_node_default,
|
|
1699
|
+
["noise-translate-point"]: require_transformers.noise_translate_point_node_default,
|
|
1700
|
+
["noise-turbulence"]: require_transformers.noise_turbulence_node_default
|
|
1468
1701
|
};
|
|
1469
1702
|
const noiseNodeTemplates = {
|
|
1470
|
-
[
|
|
1471
|
-
[
|
|
1472
|
-
[
|
|
1473
|
-
[
|
|
1474
|
-
[
|
|
1475
|
-
[
|
|
1476
|
-
[
|
|
1477
|
-
[
|
|
1478
|
-
[
|
|
1479
|
-
[
|
|
1480
|
-
[
|
|
1481
|
-
[
|
|
1482
|
-
[
|
|
1483
|
-
[
|
|
1484
|
-
[
|
|
1485
|
-
[
|
|
1486
|
-
[
|
|
1487
|
-
[
|
|
1488
|
-
[
|
|
1489
|
-
[
|
|
1490
|
-
[
|
|
1491
|
-
[
|
|
1492
|
-
[
|
|
1493
|
-
[
|
|
1494
|
-
[
|
|
1495
|
-
[
|
|
1496
|
-
[
|
|
1497
|
-
[
|
|
1498
|
-
[
|
|
1499
|
-
[
|
|
1500
|
-
[
|
|
1703
|
+
["noise-output"]: new NoiseOutputNodeTemplateFactory(),
|
|
1704
|
+
["noise-billow"]: new NoiseBillowNodeTemplateFactory(),
|
|
1705
|
+
["noise-checkerboard"]: new NoiseCheckerboardNodeTemplateFactory(),
|
|
1706
|
+
["noise-normalize"]: new NoiseNormalizeNodeTemplateFactory(),
|
|
1707
|
+
["noise-logger"]: new NoiseLoggerNodeTemplateFactory(),
|
|
1708
|
+
["noise-constant"]: new NoiseConstNodeTemplateFactory(),
|
|
1709
|
+
["position"]: new PositionConstNodeTemplateFactory(),
|
|
1710
|
+
["position-logger"]: new PositionLoggerNodeTemplateFactory(),
|
|
1711
|
+
["grid"]: new PositionGridNodeTemplateFactory(),
|
|
1712
|
+
["texture-data"]: new NoiseTextureDataTemplateFactory(),
|
|
1713
|
+
["noise-cylinders"]: new NoiseCylindersNodeTemplateFactory(),
|
|
1714
|
+
["noise-perlin"]: new NoisePerlinNodeTemplateFactory(),
|
|
1715
|
+
["noise-ridged-multi"]: new NoiseRidgedMultiNodeTemplateFactory(),
|
|
1716
|
+
["noise-spheres"]: new NoiseSpheresNodeTemplateFactory(),
|
|
1717
|
+
["noise-voronoi"]: new NoiseVoronoiNodeTemplateFactory(),
|
|
1718
|
+
["noise-combiner"]: new NoiseCombineNodeTemplateFactory(),
|
|
1719
|
+
["noise-clamp"]: new NoiseClampNodeTemplateFactory(),
|
|
1720
|
+
["noise-abs"]: new NoiseAbsNodeTemplateFactory(),
|
|
1721
|
+
["noise-curve"]: new NoiseCurveNodeTemplateFactory(),
|
|
1722
|
+
["noise-exponent"]: new NoiseExponentNodeTemplateFactory(),
|
|
1723
|
+
["noise-invert"]: new NoiseInvertNodeTemplateFactory(),
|
|
1724
|
+
["noise-scale-bias"]: new NoiseScaleBiasNodeTemplateFactory(),
|
|
1725
|
+
["noise-terrace"]: new NoiseTerraceNodeTemplateFactory(),
|
|
1726
|
+
["noise-blend"]: new NoiseBlendNodeTemplateFactory(),
|
|
1727
|
+
["noise-select"]: new NoiseSelectNodeTemplateFactory(),
|
|
1728
|
+
["noise-displace"]: new NoiseDisplaceNodeTemplateFactory(),
|
|
1729
|
+
["noise-rotate-point"]: new NoiseRotatePointNodeTemplateFactory(),
|
|
1730
|
+
["noise-scale-point"]: new NoiseScalePointNodeTemplateFactory(),
|
|
1731
|
+
["noise-translate-point"]: new NoiseTranslatePointNodeTemplateFactory(),
|
|
1732
|
+
["noise-turbulence"]: new NoiseTurbulenceNodeTemplateFactory(),
|
|
1733
|
+
["group-module"]: new ModuleGroupNodeTemplateFactory()
|
|
1501
1734
|
};
|
|
1502
1735
|
|
|
1503
1736
|
//#endregion
|
|
@@ -1765,4 +1998,4 @@ Object.defineProperty(exports, 'positions_logger_node_default', {
|
|
|
1765
1998
|
return positions_logger_node_default;
|
|
1766
1999
|
}
|
|
1767
2000
|
});
|
|
1768
|
-
//# sourceMappingURL=abstract-
|
|
2001
|
+
//# sourceMappingURL=abstract-B_pVp8sm.cjs.map
|