@awesome-flow/noise 0.8.0 → 0.9.1

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.
Files changed (79) hide show
  1. package/dist/abstract/index.cjs +6 -6
  2. package/dist/abstract/index.d.cts +10 -8
  3. package/dist/abstract/index.d.ts +10 -8
  4. package/dist/abstract/index.js +5 -5
  5. package/dist/chunk-4YL2V7SE.js +641 -0
  6. package/dist/chunk-76MMGOOY.cjs +1008 -0
  7. package/dist/{chunk-BG6U3TYO.js → chunk-BE4RLT5P.js} +445 -178
  8. package/dist/chunk-D5QJ3563.cjs +641 -0
  9. package/dist/chunk-EHBNVDTI.js +60 -0
  10. package/dist/chunk-L45ZU7VL.js +1008 -0
  11. package/dist/{chunk-ACWBUUZ7.cjs → chunk-MIYOMNAG.cjs} +467 -200
  12. package/dist/chunk-O5DVJAMK.cjs +974 -0
  13. package/dist/chunk-S2ZGHJ75.js +974 -0
  14. package/dist/chunk-X2GXADE5.cjs +60 -0
  15. package/dist/{index-mlK0X4O1.d.ts → index-DAAmYCPU.d.ts} +1 -1
  16. package/dist/{index-CfiOpOzX.d.cts → index-EzT2GjIx.d.cts} +1 -1
  17. package/dist/{node-props-CAV2WNDN.d.ts → node-props-D8SnrgWa.d.cts} +1 -1
  18. package/dist/{node-props-CAV2WNDN.d.cts → node-props-D8SnrgWa.d.ts} +1 -1
  19. package/dist/nodes/generators/index.cjs +2 -2
  20. package/dist/nodes/generators/index.d.cts +1 -1
  21. package/dist/nodes/generators/index.d.ts +1 -1
  22. package/dist/nodes/generators/index.js +1 -1
  23. package/dist/nodes/groups/index.cjs +2 -2
  24. package/dist/nodes/groups/index.d.cts +1 -1
  25. package/dist/nodes/groups/index.d.ts +1 -1
  26. package/dist/nodes/groups/index.js +1 -1
  27. package/dist/nodes/index.cjs +6 -6
  28. package/dist/nodes/index.d.cts +4 -2
  29. package/dist/nodes/index.d.ts +4 -2
  30. package/dist/nodes/index.js +5 -5
  31. package/dist/nodes/modifiers/index.cjs +2 -2
  32. package/dist/nodes/modifiers/index.d.cts +6 -19
  33. package/dist/nodes/modifiers/index.d.ts +6 -19
  34. package/dist/nodes/modifiers/index.js +1 -1
  35. package/dist/nodes/output/index.cjs +6 -6
  36. package/dist/nodes/output/index.js +5 -5
  37. package/dist/nodes/selectors/index.cjs +6 -6
  38. package/dist/nodes/selectors/index.d.cts +1 -1
  39. package/dist/nodes/selectors/index.d.ts +1 -1
  40. package/dist/nodes/selectors/index.js +5 -5
  41. package/dist/nodes/transformers/index.cjs +2 -2
  42. package/dist/nodes/transformers/index.d.cts +1 -1
  43. package/dist/nodes/transformers/index.d.ts +1 -1
  44. package/dist/nodes/transformers/index.js +1 -1
  45. package/dist/noise-terrace-node-D2ezdTnC.d.cts +22 -0
  46. package/dist/noise-terrace-node-DW81ZQk6.d.ts +22 -0
  47. package/dist/templates/generators/index.cjs +6 -6
  48. package/dist/templates/generators/index.d.cts +1 -1
  49. package/dist/templates/generators/index.d.ts +1 -1
  50. package/dist/templates/generators/index.js +5 -5
  51. package/dist/templates/groups/index.cjs +6 -6
  52. package/dist/templates/groups/index.js +5 -5
  53. package/dist/templates/index.cjs +6 -6
  54. package/dist/templates/index.d.cts +2 -2
  55. package/dist/templates/index.d.ts +2 -2
  56. package/dist/templates/index.js +5 -5
  57. package/dist/templates/modifiers/index.cjs +6 -6
  58. package/dist/templates/modifiers/index.d.cts +1 -1
  59. package/dist/templates/modifiers/index.d.ts +1 -1
  60. package/dist/templates/modifiers/index.js +5 -5
  61. package/dist/templates/output/index.cjs +6 -6
  62. package/dist/templates/output/index.js +5 -5
  63. package/dist/templates/selectors/index.cjs +6 -6
  64. package/dist/templates/selectors/index.d.cts +1 -1
  65. package/dist/templates/selectors/index.d.ts +1 -1
  66. package/dist/templates/selectors/index.js +5 -5
  67. package/dist/templates/transformers/index.cjs +6 -6
  68. package/dist/templates/transformers/index.d.cts +2 -2
  69. package/dist/templates/transformers/index.d.ts +2 -2
  70. package/dist/templates/transformers/index.js +5 -5
  71. package/package.json +15 -14
  72. package/dist/chunk-D5JM4EYQ.cjs +0 -305
  73. package/dist/chunk-DWSACR65.js +0 -305
  74. package/dist/chunk-KHIIB5TH.js +0 -93
  75. package/dist/chunk-M67JHEU2.cjs +0 -93
  76. package/dist/chunk-PS5VUND5.js +0 -348
  77. package/dist/chunk-RDQ4BOOV.js +0 -522
  78. package/dist/chunk-RKTZQUWR.cjs +0 -348
  79. package/dist/chunk-TZCT2GZV.cjs +0 -522
@@ -0,0 +1,1008 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
+
3
+ var _chunkUNMRBZ5Xcjs = require('./chunk-UNMRBZ5X.cjs');
4
+
5
+ // src/nodes/modifiers/noise-abs-node.tsx
6
+ var _compilerruntime = require('react/compiler-runtime');
7
+ var _hooks = require('@awesome-flow/core/hooks');
8
+ var _layout = require('@awesome-flow/core/layout');
9
+ var _libnoisesimplexts = require('libnoise-simplex-ts');
10
+ var _react = require('react');
11
+ var _jsxruntime = require('react/jsx-runtime');
12
+ function NoiseAbsNode(t0) {
13
+ const $ = _compilerruntime.c.call(void 0, 14);
14
+ const {
15
+ id,
16
+ selected,
17
+ data,
18
+ type
19
+ } = t0;
20
+ const incoming = _hooks.useIncomingComputedData.call(void 0, id);
21
+ const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
22
+ let t1;
23
+ let t2;
24
+ if ($[0] !== id || $[1] !== incoming || $[2] !== updateComputedData) {
25
+ t1 = () => {
26
+ if (_optionalChain([incoming, 'optionalAccess', _2 => _2.length]) > 0) {
27
+ const module = new (0, _libnoisesimplexts.Abs)(incoming[0].module);
28
+ updateComputedData(id, {
29
+ module
30
+ });
31
+ }
32
+ };
33
+ t2 = [incoming, id, updateComputedData];
34
+ $[0] = id;
35
+ $[1] = incoming;
36
+ $[2] = updateComputedData;
37
+ $[3] = t1;
38
+ $[4] = t2;
39
+ } else {
40
+ t1 = $[3];
41
+ t2 = $[4];
42
+ }
43
+ _react.useEffect.call(void 0, t1, t2);
44
+ let t3;
45
+ if ($[5] !== data.handles || $[6] !== id) {
46
+ t3 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" });
47
+ $[5] = data.handles;
48
+ $[6] = id;
49
+ $[7] = t3;
50
+ } else {
51
+ t3 = $[7];
52
+ }
53
+ let t4;
54
+ if ($[8] !== data || $[9] !== id || $[10] !== selected || $[11] !== t3 || $[12] !== type) {
55
+ t4 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: t3 });
56
+ $[8] = data;
57
+ $[9] = id;
58
+ $[10] = selected;
59
+ $[11] = t3;
60
+ $[12] = type;
61
+ $[13] = t4;
62
+ } else {
63
+ t4 = $[13];
64
+ }
65
+ return t4;
66
+ }
67
+ var noise_abs_node_default = NoiseAbsNode;
68
+
69
+ // src/nodes/modifiers/noise-clamp-node.tsx
70
+
71
+
72
+
73
+ var _core = require('@mantine/core');
74
+
75
+
76
+
77
+ function NoiseClampNode(t0) {
78
+ const $ = _compilerruntime.c.call(void 0, 27);
79
+ const {
80
+ id,
81
+ selected,
82
+ data,
83
+ type
84
+ } = t0;
85
+ const [lowerBound, setLowerBound] = _react.useState.call(void 0, data.lowerBound);
86
+ const [upperBound, setUpperBound] = _react.useState.call(void 0, data.upperBound);
87
+ const incoming = _hooks.useIncomingComputedData.call(void 0, id);
88
+ const updateNodeData = _hooks.useUpdateNodeData.call(void 0, );
89
+ const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
90
+ let t1;
91
+ let t2;
92
+ if ($[0] !== id || $[1] !== incoming || $[2] !== lowerBound || $[3] !== updateComputedData || $[4] !== updateNodeData || $[5] !== upperBound) {
93
+ t1 = () => {
94
+ if (_optionalChain([incoming, 'optionalAccess', _3 => _3.length])) {
95
+ const module = new (0, _libnoisesimplexts.Clamp)(incoming[0].module, lowerBound, upperBound);
96
+ updateComputedData(id, {
97
+ module
98
+ });
99
+ }
100
+ updateNodeData(id, {
101
+ lowerBound,
102
+ upperBound
103
+ });
104
+ };
105
+ t2 = [incoming, lowerBound, upperBound, id, updateComputedData, updateNodeData];
106
+ $[0] = id;
107
+ $[1] = incoming;
108
+ $[2] = lowerBound;
109
+ $[3] = updateComputedData;
110
+ $[4] = updateNodeData;
111
+ $[5] = upperBound;
112
+ $[6] = t1;
113
+ $[7] = t2;
114
+ } else {
115
+ t1 = $[6];
116
+ t2 = $[7];
117
+ }
118
+ _react.useEffect.call(void 0, t1, t2);
119
+ let t3;
120
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
121
+ t3 = (e) => setLowerBound(Number(e));
122
+ $[8] = t3;
123
+ } else {
124
+ t3 = $[8];
125
+ }
126
+ let t4;
127
+ if ($[9] !== lowerBound) {
128
+ t4 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", w: 100, value: lowerBound, onChange: t3, step: 0.1 });
129
+ $[9] = lowerBound;
130
+ $[10] = t4;
131
+ } else {
132
+ t4 = $[10];
133
+ }
134
+ let t5;
135
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
136
+ t5 = (e_0) => setUpperBound(Number(e_0));
137
+ $[11] = t5;
138
+ } else {
139
+ t5 = $[11];
140
+ }
141
+ let t6;
142
+ if ($[12] !== upperBound) {
143
+ t6 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", w: 100, value: upperBound, onChange: t5, step: 0.1 });
144
+ $[12] = upperBound;
145
+ $[13] = t6;
146
+ } else {
147
+ t6 = $[13];
148
+ }
149
+ let t7;
150
+ if ($[14] !== t4 || $[15] !== t6) {
151
+ t7 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Stack, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { children: [
152
+ t4,
153
+ t6
154
+ ] }) });
155
+ $[14] = t4;
156
+ $[15] = t6;
157
+ $[16] = t7;
158
+ } else {
159
+ t7 = $[16];
160
+ }
161
+ let t8;
162
+ if ($[17] !== data.handles || $[18] !== id) {
163
+ t8 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" });
164
+ $[17] = data.handles;
165
+ $[18] = id;
166
+ $[19] = t8;
167
+ } else {
168
+ t8 = $[19];
169
+ }
170
+ let t9;
171
+ if ($[20] !== data || $[21] !== id || $[22] !== selected || $[23] !== t7 || $[24] !== t8 || $[25] !== type) {
172
+ t9 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: [
173
+ t7,
174
+ t8
175
+ ] });
176
+ $[20] = data;
177
+ $[21] = id;
178
+ $[22] = selected;
179
+ $[23] = t7;
180
+ $[24] = t8;
181
+ $[25] = type;
182
+ $[26] = t9;
183
+ } else {
184
+ t9 = $[26];
185
+ }
186
+ return t9;
187
+ }
188
+ var noise_clamp_node_default = NoiseClampNode;
189
+
190
+ // src/nodes/modifiers/noise-combine-node.tsx
191
+
192
+
193
+
194
+ var _iconsreact = require('@tabler/icons-react');
195
+
196
+
197
+ // src/abstract/operations.ts
198
+
199
+ var NoiseCombineType = /* @__PURE__ */ ((NoiseCombineType3) => {
200
+ NoiseCombineType3["add"] = "add";
201
+ NoiseCombineType3["max"] = "max";
202
+ NoiseCombineType3["min"] = "min";
203
+ NoiseCombineType3["multiply"] = "multiply";
204
+ NoiseCombineType3["power"] = "power";
205
+ return NoiseCombineType3;
206
+ })(NoiseCombineType || {});
207
+ var noiseCombineModuleMap = {
208
+ ["add" /* add */]: _libnoisesimplexts.Add,
209
+ ["max" /* max */]: _libnoisesimplexts.Max,
210
+ ["min" /* min */]: _libnoisesimplexts.Min,
211
+ ["multiply" /* multiply */]: _libnoisesimplexts.Multiply,
212
+ ["power" /* power */]: _libnoisesimplexts.Power
213
+ };
214
+
215
+ // src/nodes/modifiers/noise-combine-node.tsx
216
+
217
+ var options = {
218
+ add: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconPlus, {}),
219
+ min: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconChevronLeft, {}),
220
+ max: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconChevronRight, {}),
221
+ multiply: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconAsterisk, {}),
222
+ power: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconChevronUp, {})
223
+ };
224
+ function NoiseCombineNode(t0) {
225
+ const $ = _compilerruntime.c.call(void 0, 22);
226
+ const {
227
+ id,
228
+ selected,
229
+ data,
230
+ type
231
+ } = t0;
232
+ const updateNodeData = _hooks.useUpdateNodeData.call(void 0, );
233
+ const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
234
+ const incoming = _hooks.useIncomingComputedData.call(void 0, id);
235
+ let t1;
236
+ let t2;
237
+ if ($[0] !== data.operation || $[1] !== id || $[2] !== incoming || $[3] !== updateComputedData) {
238
+ t1 = () => {
239
+ const ModuleFactory = noiseCombineModuleMap[data.operation];
240
+ if (_optionalChain([incoming, 'optionalAccess', _4 => _4.length]) > 1) {
241
+ const module = new ModuleFactory(incoming[0].module, incoming[1].module);
242
+ updateComputedData(id, {
243
+ module
244
+ });
245
+ }
246
+ };
247
+ t2 = [data.operation, incoming, id, updateComputedData];
248
+ $[0] = data.operation;
249
+ $[1] = id;
250
+ $[2] = incoming;
251
+ $[3] = updateComputedData;
252
+ $[4] = t1;
253
+ $[5] = t2;
254
+ } else {
255
+ t1 = $[4];
256
+ t2 = $[5];
257
+ }
258
+ _react.useEffect.call(void 0, t1, t2);
259
+ let t3;
260
+ if ($[6] !== id || $[7] !== updateNodeData) {
261
+ t3 = (operation) => {
262
+ updateNodeData(id, {
263
+ operation
264
+ });
265
+ };
266
+ $[6] = id;
267
+ $[7] = updateNodeData;
268
+ $[8] = t3;
269
+ } else {
270
+ t3 = $[8];
271
+ }
272
+ const onChange = t3;
273
+ let t4;
274
+ if ($[9] !== data.operation || $[10] !== onChange) {
275
+ t4 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeCombobox, { options, selected: data.operation, onChange, width: 150 });
276
+ $[9] = data.operation;
277
+ $[10] = onChange;
278
+ $[11] = t4;
279
+ } else {
280
+ t4 = $[11];
281
+ }
282
+ let t5;
283
+ if ($[12] !== data.handles || $[13] !== id) {
284
+ t5 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" });
285
+ $[12] = data.handles;
286
+ $[13] = id;
287
+ $[14] = t5;
288
+ } else {
289
+ t5 = $[14];
290
+ }
291
+ let t6;
292
+ if ($[15] !== data || $[16] !== id || $[17] !== selected || $[18] !== t4 || $[19] !== t5 || $[20] !== type) {
293
+ t6 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: [
294
+ t4,
295
+ t5
296
+ ] });
297
+ $[15] = data;
298
+ $[16] = id;
299
+ $[17] = selected;
300
+ $[18] = t4;
301
+ $[19] = t5;
302
+ $[20] = type;
303
+ $[21] = t6;
304
+ } else {
305
+ t6 = $[21];
306
+ }
307
+ return t6;
308
+ }
309
+ var noise_combine_node_default = NoiseCombineNode;
310
+
311
+ // src/nodes/modifiers/noise-curve-node.tsx
312
+ var _abstract = require('@awesome-flow/core/abstract');
313
+
314
+
315
+
316
+ var _form = require('@mantine/form');
317
+ var _hooks3 = require('@mantine/hooks');
318
+
319
+
320
+
321
+
322
+ function NoiseCurveNode({
323
+ id,
324
+ selected,
325
+ data,
326
+ type
327
+ }) {
328
+ const incoming = _hooks.useIncomingComputedData.call(void 0, id);
329
+ const updateNodeData = _hooks.useUpdateNodeData.call(void 0, );
330
+ const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
331
+ const [values, setValues] = _react.useState.call(void 0, []);
332
+ const initialValues = _react.useMemo.call(void 0, () => {
333
+ return _optionalChain([data, 'access', _5 => _5.points, 'optionalAccess', _6 => _6.length]) ? data.points.map((v) => ({
334
+ input: v.input,
335
+ output: v.output,
336
+ key: _hooks3.randomId.call(void 0, )
337
+ })) : [1, 2, 3, 4].map(() => ({
338
+ input: 0,
339
+ output: 0,
340
+ key: _hooks3.randomId.call(void 0, )
341
+ }));
342
+ }, [data.points]);
343
+ const form = _form.useForm.call(void 0, {
344
+ mode: "uncontrolled",
345
+ initialValues: {
346
+ points: initialValues
347
+ },
348
+ validateInputOnChange: [`points.${_form.FORM_INDEX}.input`],
349
+ clearInputErrorOnChange: true,
350
+ validate: {
351
+ points: {
352
+ input: (value, values2) => {
353
+ const counts = {};
354
+ values2.points.forEach((x) => {
355
+ counts[x.input] = (counts[x.input] || 0) + 1;
356
+ });
357
+ return counts[value] > 1;
358
+ }
359
+ }
360
+ },
361
+ onValuesChange: _react.useCallback.call(void 0,
362
+ (values2) => {
363
+ form.validate();
364
+ if (form.isValid()) {
365
+ const points = values2.points.map((v) => ({
366
+ input: v.input,
367
+ output: v.output
368
+ }));
369
+ setValues(points);
370
+ updateNodeData(id, {
371
+ points
372
+ });
373
+ }
374
+ },
375
+ // eslint-disable-next-line react-compiler/react-compiler
376
+ // eslint-disable-next-line react-hooks/exhaustive-deps
377
+ [id, updateNodeData]
378
+ )
379
+ });
380
+ _react.useEffect.call(void 0, () => {
381
+ if (_optionalChain([incoming, 'optionalAccess', _7 => _7.length]) && _optionalChain([values, 'optionalAccess', _8 => _8.length]) >= 4) {
382
+ const module = new (0, _libnoisesimplexts.Curve)(incoming[0].module, values.map((p) => new (0, _libnoisesimplexts.Tuple)(p.input, p.output)));
383
+ updateComputedData(id, {
384
+ module
385
+ });
386
+ }
387
+ }, [id, values, incoming, updateComputedData]);
388
+ const fields = _react.useMemo.call(void 0, () => values.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { mt: "xs", children: [
389
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", w: 100, placeholder: "Input Value", ...form.getInputProps(`points.${index}.input`), step: 0.1 }, form.key(`points.${index}.input`)),
390
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", w: 100, placeholder: "Output Value", ...form.getInputProps(`points.${index}.output`), step: 0.1 }, form.key(`points.${index}.output`)),
391
+ data.state === _abstract.NodeState.edit && values.length > 4 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.ActionIcon, { color: "red", variant: "outline", size: "sm", onClick: () => form.removeListItem("points", index), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconX, { size: "1rem" }) })
392
+ ] }, item.key)), [data.state, values, form]);
393
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _layout.NodeContainer, { id, selected, type, data, children: [
394
+ fields,
395
+ data.state === _abstract.NodeState.edit && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
396
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Space, { h: 10 }),
397
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Button, { variant: "outline", size: "xs", fullWidth: true, onClick: () => form.insertListItem("points", {
398
+ input: 0,
399
+ output: 0,
400
+ key: _hooks3.randomId.call(void 0, )
401
+ }), children: "Add control point" })
402
+ ] }),
403
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
404
+ ] });
405
+ }
406
+ var noise_curve_node_default = NoiseCurveNode;
407
+
408
+ // src/nodes/modifiers/noise-exponent-node.tsx
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+ function NoiseExponentNode(t0) {
417
+ const $ = _compilerruntime.c.call(void 0, 20);
418
+ const {
419
+ id,
420
+ selected,
421
+ data,
422
+ type
423
+ } = t0;
424
+ const [exponent, setExponent] = _react.useState.call(void 0, data.exponent);
425
+ const incoming = _hooks.useIncomingComputedData.call(void 0, id);
426
+ const updateNodeData = _hooks.useUpdateNodeData.call(void 0, );
427
+ const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
428
+ let t1;
429
+ let t2;
430
+ if ($[0] !== exponent || $[1] !== id || $[2] !== incoming || $[3] !== updateComputedData || $[4] !== updateNodeData) {
431
+ t1 = () => {
432
+ if (_optionalChain([incoming, 'optionalAccess', _9 => _9.length]) > 0) {
433
+ const module = new (0, _libnoisesimplexts.Exponent)(incoming[0].module, exponent);
434
+ updateComputedData(id, {
435
+ module
436
+ });
437
+ }
438
+ updateNodeData(id, {
439
+ exponent
440
+ });
441
+ };
442
+ t2 = [id, incoming, exponent, updateComputedData, updateNodeData];
443
+ $[0] = exponent;
444
+ $[1] = id;
445
+ $[2] = incoming;
446
+ $[3] = updateComputedData;
447
+ $[4] = updateNodeData;
448
+ $[5] = t1;
449
+ $[6] = t2;
450
+ } else {
451
+ t1 = $[5];
452
+ t2 = $[6];
453
+ }
454
+ _react.useEffect.call(void 0, t1, t2);
455
+ let t3;
456
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
457
+ t3 = (e) => setExponent(Number(e));
458
+ $[7] = t3;
459
+ } else {
460
+ t3 = $[7];
461
+ }
462
+ let t4;
463
+ if ($[8] !== exponent) {
464
+ t4 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Stack, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { children: [
465
+ "Exponent:",
466
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", value: exponent, onChange: t3, step: 0.1 })
467
+ ] }) });
468
+ $[8] = exponent;
469
+ $[9] = t4;
470
+ } else {
471
+ t4 = $[9];
472
+ }
473
+ let t5;
474
+ if ($[10] !== data.handles || $[11] !== id) {
475
+ t5 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" });
476
+ $[10] = data.handles;
477
+ $[11] = id;
478
+ $[12] = t5;
479
+ } else {
480
+ t5 = $[12];
481
+ }
482
+ let t6;
483
+ if ($[13] !== data || $[14] !== id || $[15] !== selected || $[16] !== t4 || $[17] !== t5 || $[18] !== type) {
484
+ t6 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: [
485
+ t4,
486
+ t5
487
+ ] });
488
+ $[13] = data;
489
+ $[14] = id;
490
+ $[15] = selected;
491
+ $[16] = t4;
492
+ $[17] = t5;
493
+ $[18] = type;
494
+ $[19] = t6;
495
+ } else {
496
+ t6 = $[19];
497
+ }
498
+ return t6;
499
+ }
500
+ var noise_exponent_node_default = NoiseExponentNode;
501
+
502
+ // src/nodes/modifiers/noise-invert-node.tsx
503
+
504
+
505
+
506
+
507
+
508
+
509
+ function NoiseInvertNode(t0) {
510
+ const $ = _compilerruntime.c.call(void 0, 14);
511
+ const {
512
+ id,
513
+ selected,
514
+ data,
515
+ type
516
+ } = t0;
517
+ const incoming = _hooks.useIncomingComputedData.call(void 0, id);
518
+ const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
519
+ let t1;
520
+ let t2;
521
+ if ($[0] !== id || $[1] !== incoming || $[2] !== updateComputedData) {
522
+ t1 = () => {
523
+ if (_optionalChain([incoming, 'optionalAccess', _10 => _10.length]) > 0) {
524
+ const module = new (0, _libnoisesimplexts.Invert)(incoming[0].module);
525
+ updateComputedData(id, {
526
+ module
527
+ });
528
+ }
529
+ };
530
+ t2 = [id, incoming, updateComputedData];
531
+ $[0] = id;
532
+ $[1] = incoming;
533
+ $[2] = updateComputedData;
534
+ $[3] = t1;
535
+ $[4] = t2;
536
+ } else {
537
+ t1 = $[3];
538
+ t2 = $[4];
539
+ }
540
+ _react.useEffect.call(void 0, t1, t2);
541
+ let t3;
542
+ if ($[5] !== data.handles || $[6] !== id) {
543
+ t3 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" });
544
+ $[5] = data.handles;
545
+ $[6] = id;
546
+ $[7] = t3;
547
+ } else {
548
+ t3 = $[7];
549
+ }
550
+ let t4;
551
+ if ($[8] !== data || $[9] !== id || $[10] !== selected || $[11] !== t3 || $[12] !== type) {
552
+ t4 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: t3 });
553
+ $[8] = data;
554
+ $[9] = id;
555
+ $[10] = selected;
556
+ $[11] = t3;
557
+ $[12] = type;
558
+ $[13] = t4;
559
+ } else {
560
+ t4 = $[13];
561
+ }
562
+ return t4;
563
+ }
564
+ var noise_invert_node_default = NoiseInvertNode;
565
+
566
+ // src/nodes/modifiers/noise-normalize-node.tsx
567
+
568
+
569
+
570
+
571
+
572
+
573
+ function NoiseNormalizeNode(t0) {
574
+ const $ = _compilerruntime.c.call(void 0, 27);
575
+ const {
576
+ id,
577
+ selected,
578
+ data,
579
+ type
580
+ } = t0;
581
+ const [intervalStart, setIntervalStart] = _react.useState.call(void 0, data.intervalStart);
582
+ const [intervalEnd, setIntervalEnd] = _react.useState.call(void 0, data.intervalEnd);
583
+ const incoming = _hooks.useIncomingComputedData.call(void 0, id);
584
+ const updateNodeData = _hooks.useUpdateNodeData.call(void 0, );
585
+ const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
586
+ let t1;
587
+ let t2;
588
+ if ($[0] !== id || $[1] !== incoming || $[2] !== intervalEnd || $[3] !== intervalStart || $[4] !== updateComputedData || $[5] !== updateNodeData) {
589
+ t1 = () => {
590
+ if (_optionalChain([incoming, 'optionalAccess', _11 => _11.length])) {
591
+ const source = incoming[0].module;
592
+ const module = new (0, _chunkUNMRBZ5Xcjs.NormalizeNoiseModule)(source, intervalStart, intervalEnd);
593
+ updateComputedData(id, {
594
+ module
595
+ });
596
+ }
597
+ updateNodeData(id, {
598
+ intervalStart,
599
+ intervalEnd
600
+ });
601
+ };
602
+ t2 = [id, incoming, intervalStart, intervalEnd, updateComputedData, updateNodeData];
603
+ $[0] = id;
604
+ $[1] = incoming;
605
+ $[2] = intervalEnd;
606
+ $[3] = intervalStart;
607
+ $[4] = updateComputedData;
608
+ $[5] = updateNodeData;
609
+ $[6] = t1;
610
+ $[7] = t2;
611
+ } else {
612
+ t1 = $[6];
613
+ t2 = $[7];
614
+ }
615
+ _react.useEffect.call(void 0, t1, t2);
616
+ let t3;
617
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
618
+ t3 = (e) => setIntervalStart(Number(e));
619
+ $[8] = t3;
620
+ } else {
621
+ t3 = $[8];
622
+ }
623
+ let t4;
624
+ if ($[9] !== intervalStart) {
625
+ t4 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", w: 100, value: intervalStart, onChange: t3 });
626
+ $[9] = intervalStart;
627
+ $[10] = t4;
628
+ } else {
629
+ t4 = $[10];
630
+ }
631
+ let t5;
632
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
633
+ t5 = (e_0) => setIntervalEnd(Number(e_0));
634
+ $[11] = t5;
635
+ } else {
636
+ t5 = $[11];
637
+ }
638
+ let t6;
639
+ if ($[12] !== intervalEnd) {
640
+ t6 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", w: 100, value: intervalEnd, onChange: t5 });
641
+ $[12] = intervalEnd;
642
+ $[13] = t6;
643
+ } else {
644
+ t6 = $[13];
645
+ }
646
+ let t7;
647
+ if ($[14] !== t4 || $[15] !== t6) {
648
+ t7 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Stack, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { children: [
649
+ t4,
650
+ t6
651
+ ] }) });
652
+ $[14] = t4;
653
+ $[15] = t6;
654
+ $[16] = t7;
655
+ } else {
656
+ t7 = $[16];
657
+ }
658
+ let t8;
659
+ if ($[17] !== data.handles || $[18] !== id) {
660
+ t8 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" });
661
+ $[17] = data.handles;
662
+ $[18] = id;
663
+ $[19] = t8;
664
+ } else {
665
+ t8 = $[19];
666
+ }
667
+ let t9;
668
+ if ($[20] !== data || $[21] !== id || $[22] !== selected || $[23] !== t7 || $[24] !== t8 || $[25] !== type) {
669
+ t9 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: [
670
+ t7,
671
+ t8
672
+ ] });
673
+ $[20] = data;
674
+ $[21] = id;
675
+ $[22] = selected;
676
+ $[23] = t7;
677
+ $[24] = t8;
678
+ $[25] = type;
679
+ $[26] = t9;
680
+ } else {
681
+ t9 = $[26];
682
+ }
683
+ return t9;
684
+ }
685
+ var noise_normalize_node_default = NoiseNormalizeNode;
686
+
687
+ // src/nodes/modifiers/noise-scale-bias-node.tsx
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+ function NoiseScaleBiasNode(t0) {
696
+ const $ = _compilerruntime.c.call(void 0, 27);
697
+ const {
698
+ id,
699
+ selected,
700
+ data,
701
+ type
702
+ } = t0;
703
+ const [scale, setScale] = _react.useState.call(void 0, data.scale);
704
+ const [bias, setBias] = _react.useState.call(void 0, data.bias);
705
+ const incoming = _hooks.useIncomingComputedData.call(void 0, id);
706
+ const updateNodeData = _hooks.useUpdateNodeData.call(void 0, );
707
+ const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
708
+ let t1;
709
+ let t2;
710
+ if ($[0] !== bias || $[1] !== id || $[2] !== incoming || $[3] !== scale || $[4] !== updateComputedData || $[5] !== updateNodeData) {
711
+ t1 = () => {
712
+ if (_optionalChain([incoming, 'optionalAccess', _12 => _12.length]) > 0) {
713
+ const module = new (0, _libnoisesimplexts.ScaleBias)(incoming[0].module, scale, bias);
714
+ updateComputedData(id, {
715
+ module
716
+ });
717
+ }
718
+ updateNodeData(id, {
719
+ scale,
720
+ bias
721
+ });
722
+ };
723
+ t2 = [id, incoming, scale, bias, updateComputedData, updateNodeData];
724
+ $[0] = bias;
725
+ $[1] = id;
726
+ $[2] = incoming;
727
+ $[3] = scale;
728
+ $[4] = updateComputedData;
729
+ $[5] = updateNodeData;
730
+ $[6] = t1;
731
+ $[7] = t2;
732
+ } else {
733
+ t1 = $[6];
734
+ t2 = $[7];
735
+ }
736
+ _react.useEffect.call(void 0, t1, t2);
737
+ let t3;
738
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
739
+ t3 = (e) => setScale(Number(e));
740
+ $[8] = t3;
741
+ } else {
742
+ t3 = $[8];
743
+ }
744
+ let t4;
745
+ if ($[9] !== scale) {
746
+ t4 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { children: [
747
+ "Scale:",
748
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", w: 100, value: scale, onChange: t3, step: 0.1 })
749
+ ] });
750
+ $[9] = scale;
751
+ $[10] = t4;
752
+ } else {
753
+ t4 = $[10];
754
+ }
755
+ let t5;
756
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
757
+ t5 = (e_0) => setBias(Number(e_0));
758
+ $[11] = t5;
759
+ } else {
760
+ t5 = $[11];
761
+ }
762
+ let t6;
763
+ if ($[12] !== bias) {
764
+ t6 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { children: [
765
+ "Bias:",
766
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", w: 100, value: bias, onChange: t5, step: 0.1 })
767
+ ] });
768
+ $[12] = bias;
769
+ $[13] = t6;
770
+ } else {
771
+ t6 = $[13];
772
+ }
773
+ let t7;
774
+ if ($[14] !== t4 || $[15] !== t6) {
775
+ t7 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Stack, { children: [
776
+ t4,
777
+ t6
778
+ ] });
779
+ $[14] = t4;
780
+ $[15] = t6;
781
+ $[16] = t7;
782
+ } else {
783
+ t7 = $[16];
784
+ }
785
+ let t8;
786
+ if ($[17] !== data.handles || $[18] !== id) {
787
+ t8 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" });
788
+ $[17] = data.handles;
789
+ $[18] = id;
790
+ $[19] = t8;
791
+ } else {
792
+ t8 = $[19];
793
+ }
794
+ let t9;
795
+ if ($[20] !== data || $[21] !== id || $[22] !== selected || $[23] !== t7 || $[24] !== t8 || $[25] !== type) {
796
+ t9 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _layout.NodeContainer, { id, selected, data, type, children: [
797
+ t7,
798
+ t8
799
+ ] });
800
+ $[20] = data;
801
+ $[21] = id;
802
+ $[22] = selected;
803
+ $[23] = t7;
804
+ $[24] = t8;
805
+ $[25] = type;
806
+ $[26] = t9;
807
+ } else {
808
+ t9 = $[26];
809
+ }
810
+ return t9;
811
+ }
812
+ var noise_scale_bias_node_default = _react.memo.call(void 0, NoiseScaleBiasNode);
813
+
814
+ // src/nodes/modifiers/noise-terrace-node.tsx
815
+
816
+
817
+
818
+
819
+
820
+
821
+
822
+
823
+
824
+
825
+
826
+ function NoiseTerraceNode(t0) {
827
+ const $ = _compilerruntime.c.call(void 0, 31);
828
+ const {
829
+ id,
830
+ selected,
831
+ data,
832
+ type
833
+ } = t0;
834
+ const incoming = _hooks.useIncomingComputedData.call(void 0, id);
835
+ const updateNodeData = _hooks.useUpdateNodeData.call(void 0, );
836
+ const updateComputedData = _hooks.useUpdateNodeComputedData.call(void 0, );
837
+ let t1;
838
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
839
+ t1 = [];
840
+ $[0] = t1;
841
+ } else {
842
+ t1 = $[0];
843
+ }
844
+ const [values, setValues] = _react.useState.call(void 0, t1);
845
+ let t2;
846
+ let t3;
847
+ if ($[1] !== data.points) {
848
+ t3 = _optionalChain([data, 'access', _13 => _13.points, 'optionalAccess', _14 => _14.length]) ? data.points.map(_temp) : [1, 2].map(_temp2);
849
+ $[1] = data.points;
850
+ $[2] = t3;
851
+ } else {
852
+ t3 = $[2];
853
+ }
854
+ t2 = t3;
855
+ const initialValues = t2;
856
+ let t4;
857
+ if ($[3] !== initialValues) {
858
+ t4 = {
859
+ points: initialValues
860
+ };
861
+ $[3] = initialValues;
862
+ $[4] = t4;
863
+ } else {
864
+ t4 = $[4];
865
+ }
866
+ let t5;
867
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
868
+ t5 = [`points.${_form.FORM_INDEX}.input`];
869
+ $[5] = t5;
870
+ } else {
871
+ t5 = $[5];
872
+ }
873
+ let t6;
874
+ if ($[6] !== t4) {
875
+ t6 = {
876
+ mode: "uncontrolled",
877
+ initialValues: t4,
878
+ validateInputOnChange: t5,
879
+ clearInputErrorOnChange: true
880
+ };
881
+ $[6] = t4;
882
+ $[7] = t6;
883
+ } else {
884
+ t6 = $[7];
885
+ }
886
+ const form = _form.useForm.call(void 0, t6);
887
+ form.watch("points", (values_0) => {
888
+ if (form.isValid()) {
889
+ const points = values_0.value.map(_temp3);
890
+ setValues(points);
891
+ updateNodeData(id, {
892
+ points
893
+ });
894
+ }
895
+ form.validate();
896
+ });
897
+ let t7;
898
+ let t8;
899
+ if ($[8] !== id || $[9] !== incoming || $[10] !== updateComputedData || $[11] !== values) {
900
+ t7 = () => {
901
+ if (_optionalChain([incoming, 'optionalAccess', _15 => _15.length]) && _optionalChain([values, 'optionalAccess', _16 => _16.length]) >= 2) {
902
+ const module = new (0, _libnoisesimplexts.Terrace)(incoming[0].module, values);
903
+ updateComputedData(id, {
904
+ module
905
+ });
906
+ }
907
+ };
908
+ t8 = [id, values, incoming, updateComputedData];
909
+ $[8] = id;
910
+ $[9] = incoming;
911
+ $[10] = updateComputedData;
912
+ $[11] = values;
913
+ $[12] = t7;
914
+ $[13] = t8;
915
+ } else {
916
+ t7 = $[12];
917
+ t8 = $[13];
918
+ }
919
+ _react.useEffect.call(void 0, t7, t8);
920
+ let t9;
921
+ let t10;
922
+ if ($[14] !== data.state || $[15] !== form) {
923
+ t10 = form.values.points.map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _core.Group, { mt: "xs", children: [
924
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.NumberInput, { size: "xs", placeholder: "Input Value", ...form.getInputProps(`points.${index}.value`), step: 0.1 }, form.key(`points.${index}.value`)),
925
+ data.state === _abstract.NodeState.edit && form.values.points.length > 2 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.ActionIcon, { color: "red", variant: "outline", size: "sm", onClick: () => form.removeListItem("points", index), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _iconsreact.IconX, { size: "1rem" }) })
926
+ ] }, index));
927
+ $[14] = data.state;
928
+ $[15] = form;
929
+ $[16] = t10;
930
+ } else {
931
+ t10 = $[16];
932
+ }
933
+ t9 = t10;
934
+ const fields = t9;
935
+ let t11;
936
+ if ($[17] !== data.state || $[18] !== form) {
937
+ t11 = data.state === _abstract.NodeState.edit && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
938
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Space, { h: 10 }),
939
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _core.Button, { variant: "outline", size: "xs", fullWidth: true, onClick: () => form.insertListItem("points", {
940
+ value: 0,
941
+ key: _hooks3.randomId.call(void 0, )
942
+ }), children: "Add control point" })
943
+ ] });
944
+ $[17] = data.state;
945
+ $[18] = form;
946
+ $[19] = t11;
947
+ } else {
948
+ t11 = $[19];
949
+ }
950
+ let t12;
951
+ if ($[20] !== data.handles || $[21] !== id) {
952
+ t12 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _layout.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" });
953
+ $[20] = data.handles;
954
+ $[21] = id;
955
+ $[22] = t12;
956
+ } else {
957
+ t12 = $[22];
958
+ }
959
+ let t13;
960
+ if ($[23] !== data || $[24] !== fields || $[25] !== id || $[26] !== selected || $[27] !== t11 || $[28] !== t12 || $[29] !== type) {
961
+ t13 = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _layout.NodeContainer, { id, selected, type, data, children: [
962
+ fields,
963
+ t11,
964
+ t12
965
+ ] }) });
966
+ $[23] = data;
967
+ $[24] = fields;
968
+ $[25] = id;
969
+ $[26] = selected;
970
+ $[27] = t11;
971
+ $[28] = t12;
972
+ $[29] = type;
973
+ $[30] = t13;
974
+ } else {
975
+ t13 = $[30];
976
+ }
977
+ return t13;
978
+ }
979
+ function _temp3(v_0) {
980
+ return v_0.value;
981
+ }
982
+ function _temp2() {
983
+ return {
984
+ value: 0,
985
+ key: _hooks3.randomId.call(void 0, )
986
+ };
987
+ }
988
+ function _temp(v) {
989
+ return {
990
+ value: v,
991
+ key: _hooks3.randomId.call(void 0, )
992
+ };
993
+ }
994
+ var noise_terrace_node_default = NoiseTerraceNode;
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+ exports.noise_abs_node_default = noise_abs_node_default; exports.noise_clamp_node_default = noise_clamp_node_default; exports.NoiseCombineType = NoiseCombineType; exports.noiseCombineModuleMap = noiseCombineModuleMap; exports.noise_combine_node_default = noise_combine_node_default; exports.noise_curve_node_default = noise_curve_node_default; exports.noise_exponent_node_default = noise_exponent_node_default; exports.noise_invert_node_default = noise_invert_node_default; exports.noise_normalize_node_default = noise_normalize_node_default; exports.noise_scale_bias_node_default = noise_scale_bias_node_default; exports.noise_terrace_node_default = noise_terrace_node_default;