@awesome-flow/noise 0.6.0 → 0.7.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.
Files changed (59) hide show
  1. package/dist/abstract/index.cjs +663 -734
  2. package/dist/abstract/index.d.cts +6 -12
  3. package/dist/abstract/index.d.ts +6 -12
  4. package/dist/abstract/index.js +449 -522
  5. package/dist/{index-BungWYrh.d.cts → index-CfiOpOzX.d.cts} +1 -1
  6. package/dist/{index-DsQSjZC5.d.ts → index-mlK0X4O1.d.ts} +1 -1
  7. package/dist/modules/index.cjs +4 -30
  8. package/dist/modules/index.d.cts +2 -10
  9. package/dist/modules/index.d.ts +2 -10
  10. package/dist/modules/index.js +2 -17
  11. package/dist/{node-props-BbqbXDXn.d.cts → node-props-CAV2WNDN.d.cts} +3 -7
  12. package/dist/{node-props-BbqbXDXn.d.ts → node-props-CAV2WNDN.d.ts} +3 -7
  13. package/dist/nodes/generators/index.cjs +71 -114
  14. package/dist/nodes/generators/index.d.cts +3 -8
  15. package/dist/nodes/generators/index.d.ts +3 -8
  16. package/dist/nodes/generators/index.js +47 -79
  17. package/dist/nodes/index.cjs +604 -675
  18. package/dist/nodes/index.d.cts +3 -6
  19. package/dist/nodes/index.d.ts +3 -6
  20. package/dist/nodes/index.js +394 -466
  21. package/dist/nodes/modifiers/index.cjs +37 -52
  22. package/dist/nodes/modifiers/index.d.cts +2 -5
  23. package/dist/nodes/modifiers/index.d.ts +2 -5
  24. package/dist/nodes/modifiers/index.js +23 -38
  25. package/dist/nodes/output/index.cjs +239 -285
  26. package/dist/nodes/output/index.js +252 -290
  27. package/dist/nodes/selectors/index.cjs +230 -280
  28. package/dist/nodes/selectors/index.d.cts +2 -5
  29. package/dist/nodes/selectors/index.d.ts +2 -5
  30. package/dist/nodes/selectors/index.js +248 -290
  31. package/dist/nodes/transformers/index.cjs +10 -10
  32. package/dist/nodes/transformers/index.d.cts +2 -5
  33. package/dist/nodes/transformers/index.d.ts +2 -5
  34. package/dist/nodes/transformers/index.js +5 -5
  35. package/dist/templates/generators/index.cjs +201 -253
  36. package/dist/templates/generators/index.d.cts +3 -10
  37. package/dist/templates/generators/index.d.ts +3 -10
  38. package/dist/templates/generators/index.js +236 -279
  39. package/dist/templates/groups/index.cjs +201 -251
  40. package/dist/templates/groups/index.js +236 -278
  41. package/dist/templates/index.cjs +201 -253
  42. package/dist/templates/index.d.cts +4 -7
  43. package/dist/templates/index.d.ts +4 -7
  44. package/dist/templates/index.js +236 -279
  45. package/dist/templates/modifiers/index.cjs +201 -251
  46. package/dist/templates/modifiers/index.d.cts +2 -5
  47. package/dist/templates/modifiers/index.d.ts +2 -5
  48. package/dist/templates/modifiers/index.js +236 -278
  49. package/dist/templates/output/index.cjs +201 -251
  50. package/dist/templates/output/index.js +236 -278
  51. package/dist/templates/selectors/index.cjs +201 -251
  52. package/dist/templates/selectors/index.d.cts +2 -5
  53. package/dist/templates/selectors/index.d.ts +2 -5
  54. package/dist/templates/selectors/index.js +236 -278
  55. package/dist/templates/transformers/index.cjs +201 -251
  56. package/dist/templates/transformers/index.d.cts +3 -6
  57. package/dist/templates/transformers/index.d.ts +3 -6
  58. package/dist/templates/transformers/index.js +236 -278
  59. package/package.json +6 -4
@@ -29,38 +29,28 @@ var require_fast_deep_equal = __commonJS({
29
29
  "../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
30
30
  "use strict";
31
31
  module.exports = function equal(a, b) {
32
- if (a === b)
33
- return true;
32
+ if (a === b) return true;
34
33
  if (a && b && typeof a == "object" && typeof b == "object") {
35
- if (a.constructor !== b.constructor)
36
- return false;
34
+ if (a.constructor !== b.constructor) return false;
37
35
  var length, i, keys;
38
36
  if (Array.isArray(a)) {
39
37
  length = a.length;
40
- if (length != b.length)
41
- return false;
38
+ if (length != b.length) return false;
42
39
  for (i = length; i-- !== 0; )
43
- if (!equal(a[i], b[i]))
44
- return false;
40
+ if (!equal(a[i], b[i])) return false;
45
41
  return true;
46
42
  }
47
- if (a.constructor === RegExp)
48
- return a.source === b.source && a.flags === b.flags;
49
- if (a.valueOf !== Object.prototype.valueOf)
50
- return a.valueOf() === b.valueOf();
51
- if (a.toString !== Object.prototype.toString)
52
- return a.toString() === b.toString();
43
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
44
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
45
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
53
46
  keys = Object.keys(a);
54
47
  length = keys.length;
55
- if (length !== Object.keys(b).length)
56
- return false;
48
+ if (length !== Object.keys(b).length) return false;
57
49
  for (i = length; i-- !== 0; )
58
- if (!Object.prototype.hasOwnProperty.call(b, keys[i]))
59
- return false;
50
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
60
51
  for (i = length; i-- !== 0; ) {
61
52
  var key = keys[i];
62
- if (!equal(a[key], b[key]))
63
- return false;
53
+ if (!equal(a[key], b[key])) return false;
64
54
  }
65
55
  return true;
66
56
  }
@@ -92,51 +82,20 @@ var NoiseSourceControlHandle = /* @__PURE__ */ ((NoiseSourceControlHandle2) => {
92
82
  return NoiseSourceControlHandle2;
93
83
  })(NoiseSourceControlHandle || {});
94
84
 
95
- // src/nodes/generators/noise-simplex-node.tsx
96
- import { NodeContainer } from "@awesome-flow/core/layout";
97
- import { useEffect, useMemo } from "react";
98
- import { useUpdateNodeComputedData } from "@awesome-flow/core/hooks";
99
-
100
- // src/modules/simplex-module.ts
101
- import Module from "libnoise-ts/module/Module";
102
- import { createNoise3D } from "simplex-noise";
103
- var SimplexModule = class extends Module {
104
- noise;
105
- constructor(random) {
106
- super();
107
- this.noise = createNoise3D(random);
108
- }
109
- getValue(x, y, z) {
110
- return this.noise(x, y, z);
111
- }
112
- };
113
-
114
- // src/nodes/generators/noise-simplex-node.tsx
115
- import { jsx } from "react/jsx-runtime";
116
- function NoiseSimplexNode({ id, selected, data, type }) {
117
- const updateComputedData = useUpdateNodeComputedData();
118
- const module = useMemo(() => new SimplexModule(), []);
119
- useEffect(() => {
120
- updateComputedData(id, { module });
121
- }, []);
122
- return /* @__PURE__ */ jsx(NodeContainer, { id, selected, data, type });
123
- }
124
- var noise_simplex_node_default = NoiseSimplexNode;
125
-
126
85
  // src/nodes/generators/position-const-node.tsx
127
- import { NodeContainer as NodeContainer2 } from "@awesome-flow/core/layout";
128
- import { useEffect as useEffect2, useState } from "react";
86
+ import { NodeContainer } from "@awesome-flow/core/layout";
87
+ import { useEffect, useState } from "react";
129
88
  import { Group, NumberInput, Stack } from "@mantine/core";
130
- import { useUpdateNodeComputedData as useUpdateNodeComputedData2, useUpdateNodeData } from "@awesome-flow/core/hooks";
131
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
89
+ import { useUpdateNodeComputedData, useUpdateNodeData } from "@awesome-flow/core/hooks";
90
+ import { jsx, jsxs } from "react/jsx-runtime";
132
91
  function PositionConstNode({ id, selected, data, type }) {
133
92
  const position = data.position ?? { x: 0, y: 0, z: 0 };
134
93
  const [x, setX] = useState(position.x);
135
94
  const [y, setY] = useState(position.y);
136
95
  const [z, setZ] = useState(position.z);
137
96
  const updateNodeData = useUpdateNodeData();
138
- const updateComputedData = useUpdateNodeComputedData2();
139
- useEffect2(() => {
97
+ const updateComputedData = useUpdateNodeComputedData();
98
+ useEffect(() => {
140
99
  const position2 = { x, y, z };
141
100
  updateNodeData(id, {
142
101
  position: position2
@@ -145,47 +104,47 @@ function PositionConstNode({ id, selected, data, type }) {
145
104
  positions: [position2]
146
105
  });
147
106
  }, [x, y, z]);
148
- return /* @__PURE__ */ jsx2(NodeContainer2, { id, selected, data, type, children: /* @__PURE__ */ jsxs(Stack, { children: [
107
+ return /* @__PURE__ */ jsx(NodeContainer, { id, selected, data, type, children: /* @__PURE__ */ jsxs(Stack, { children: [
149
108
  /* @__PURE__ */ jsxs(Group, { children: [
150
109
  "x: ",
151
- /* @__PURE__ */ jsx2(NumberInput, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
110
+ /* @__PURE__ */ jsx(NumberInput, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
152
111
  ] }),
153
112
  /* @__PURE__ */ jsxs(Group, { children: [
154
113
  "y: ",
155
- /* @__PURE__ */ jsx2(NumberInput, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
114
+ /* @__PURE__ */ jsx(NumberInput, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
156
115
  ] }),
157
116
  /* @__PURE__ */ jsxs(Group, { children: [
158
117
  "z: ",
159
- /* @__PURE__ */ jsx2(NumberInput, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
118
+ /* @__PURE__ */ jsx(NumberInput, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
160
119
  ] })
161
120
  ] }) });
162
121
  }
163
122
  var position_const_node_default = PositionConstNode;
164
123
 
165
124
  // src/nodes/generators/position-grid-node.tsx
166
- import { NodeContainer as NodeContainer3 } from "@awesome-flow/core/layout";
167
- import { useEffect as useEffect3, useState as useState2 } from "react";
125
+ import { NodeContainer as NodeContainer2 } from "@awesome-flow/core/layout";
126
+ import { useEffect as useEffect2, useState as useState2 } from "react";
168
127
  import { Group as Group2, NumberInput as NumberInput2, Stack as Stack2 } from "@mantine/core";
169
- import { useUpdateNodeComputedData as useUpdateNodeComputedData3, useUpdateNodeData as useUpdateNodeData2 } from "@awesome-flow/core/hooks";
170
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
128
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData2, useUpdateNodeData as useUpdateNodeData2 } from "@awesome-flow/core/hooks";
129
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
171
130
  function PositionGridNode({ id, selected, data, type }) {
172
131
  const [x, setX] = useState2(data.center?.x);
173
132
  const [y, setY] = useState2(data.center?.y);
174
133
  const [z, setZ] = useState2(data.center?.z);
175
134
  const [radius, setRadius] = useState2(data.radius);
176
135
  const updateNodeData = useUpdateNodeData2();
177
- const updateComputedData = useUpdateNodeComputedData3();
178
- useEffect3(() => {
136
+ const updateComputedData = useUpdateNodeComputedData2();
137
+ useEffect2(() => {
179
138
  updateNodeData(id, {
180
139
  center: { x, y, z }
181
140
  });
182
141
  }, [x, y, z]);
183
- useEffect3(() => {
142
+ useEffect2(() => {
184
143
  updateNodeData(id, {
185
144
  radius
186
145
  });
187
146
  }, [radius]);
188
- useEffect3(() => {
147
+ useEffect2(() => {
189
148
  const positions = [];
190
149
  for (let i = -radius; i < radius; i++) {
191
150
  for (let j = -radius; j < radius; j++) {
@@ -196,39 +155,39 @@ function PositionGridNode({ id, selected, data, type }) {
196
155
  positions
197
156
  });
198
157
  }, [x, y, z, radius]);
199
- return /* @__PURE__ */ jsx3(NodeContainer3, { id, selected, data, type, children: /* @__PURE__ */ jsxs2(Stack2, { children: [
158
+ return /* @__PURE__ */ jsx2(NodeContainer2, { id, selected, data, type, children: /* @__PURE__ */ jsxs2(Stack2, { children: [
200
159
  /* @__PURE__ */ jsxs2(Group2, { children: [
201
160
  "x: ",
202
- /* @__PURE__ */ jsx3(NumberInput2, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
161
+ /* @__PURE__ */ jsx2(NumberInput2, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
203
162
  ] }),
204
163
  /* @__PURE__ */ jsxs2(Group2, { children: [
205
164
  "y: ",
206
- /* @__PURE__ */ jsx3(NumberInput2, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
165
+ /* @__PURE__ */ jsx2(NumberInput2, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
207
166
  ] }),
208
167
  /* @__PURE__ */ jsxs2(Group2, { children: [
209
168
  "z: ",
210
- /* @__PURE__ */ jsx3(NumberInput2, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
169
+ /* @__PURE__ */ jsx2(NumberInput2, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
211
170
  ] }),
212
171
  /* @__PURE__ */ jsxs2(Group2, { children: [
213
172
  "r: ",
214
- /* @__PURE__ */ jsx3(NumberInput2, { size: "xs", w: 100, value: radius, onChange: (e) => setRadius(Number(e)) })
173
+ /* @__PURE__ */ jsx2(NumberInput2, { size: "xs", w: 100, value: radius, onChange: (e) => setRadius(Number(e)) })
215
174
  ] })
216
175
  ] }) });
217
176
  }
218
177
  var position_grid_node_default = PositionGridNode;
219
178
 
220
179
  // src/nodes/modifiers/noise-normalize-node.tsx
221
- import { NodeContainer as NodeContainer4, NodeTrackConnections } from "@awesome-flow/core/layout";
222
- import { useEffect as useEffect4, useState as useState3 } from "react";
180
+ import { NodeContainer as NodeContainer3, NodeTrackConnections } from "@awesome-flow/core/layout";
181
+ import { useEffect as useEffect3, useState as useState3 } from "react";
223
182
  import { Group as Group3, NumberInput as NumberInput3, Stack as Stack3 } from "@mantine/core";
224
183
  import {
225
184
  useIncomingComputedData,
226
- useUpdateNodeComputedData as useUpdateNodeComputedData4,
185
+ useUpdateNodeComputedData as useUpdateNodeComputedData3,
227
186
  useUpdateNodeData as useUpdateNodeData3
228
187
  } from "@awesome-flow/core/hooks";
229
188
 
230
189
  // src/modules/normalize-noise-module.ts
231
- import ModifierModule from "libnoise-ts/module/modifier";
190
+ import { ModifierModule } from "libnoise-simplex-ts";
232
191
  var NormalizeNoiseModule = class extends ModifierModule {
233
192
  constructor(source, lowerBound, upperBound) {
234
193
  super(source);
@@ -244,14 +203,14 @@ function normalize(value, min, max) {
244
203
  }
245
204
 
246
205
  // src/nodes/modifiers/noise-normalize-node.tsx
247
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
206
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
248
207
  function NoiseNormalizeNode({ id, selected, data, type }) {
249
208
  const [intervalStart, setIntervalStart] = useState3(data.intervalStart);
250
209
  const [intervalEnd, setIntervalEnd] = useState3(data.intervalEnd);
251
210
  const incoming = useIncomingComputedData(id);
252
211
  const updateNodeData = useUpdateNodeData3();
253
- const updateComputedData = useUpdateNodeComputedData4();
254
- useEffect4(() => {
212
+ const updateComputedData = useUpdateNodeComputedData3();
213
+ useEffect3(() => {
255
214
  if (incoming?.length) {
256
215
  const source = incoming[0].module;
257
216
  const module = new NormalizeNoiseModule(source, intervalStart, intervalEnd);
@@ -259,9 +218,9 @@ function NoiseNormalizeNode({ id, selected, data, type }) {
259
218
  }
260
219
  updateNodeData(id, { intervalStart, intervalEnd });
261
220
  }, [incoming, intervalStart, intervalEnd]);
262
- return /* @__PURE__ */ jsxs3(NodeContainer4, { id, selected, data, type, children: [
263
- /* @__PURE__ */ jsx4(Stack3, { children: /* @__PURE__ */ jsxs3(Group3, { children: [
264
- /* @__PURE__ */ jsx4(
221
+ return /* @__PURE__ */ jsxs3(NodeContainer3, { id, selected, data, type, children: [
222
+ /* @__PURE__ */ jsx3(Stack3, { children: /* @__PURE__ */ jsxs3(Group3, { children: [
223
+ /* @__PURE__ */ jsx3(
265
224
  NumberInput3,
266
225
  {
267
226
  size: "xs",
@@ -270,7 +229,7 @@ function NoiseNormalizeNode({ id, selected, data, type }) {
270
229
  onChange: (e) => setIntervalStart(Number(e))
271
230
  }
272
231
  ),
273
- /* @__PURE__ */ jsx4(
232
+ /* @__PURE__ */ jsx3(
274
233
  NumberInput3,
275
234
  {
276
235
  size: "xs",
@@ -280,38 +239,38 @@ function NoiseNormalizeNode({ id, selected, data, type }) {
280
239
  }
281
240
  )
282
241
  ] }) }),
283
- /* @__PURE__ */ jsx4(NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
242
+ /* @__PURE__ */ jsx3(NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
284
243
  ] });
285
244
  }
286
245
  var noise_normalize_node_default = NoiseNormalizeNode;
287
246
 
288
247
  // src/nodes/generators/noise-const-node.tsx
289
- import { NodeContainer as NodeContainer5 } from "@awesome-flow/core/layout";
290
- import { useEffect as useEffect5, useMemo as useMemo2, useState as useState4 } from "react";
248
+ import { NodeContainer as NodeContainer4 } from "@awesome-flow/core/layout";
249
+ import { useEffect as useEffect4, useMemo, useState as useState4 } from "react";
291
250
  import { Group as Group4, NumberInput as NumberInput4, Stack as Stack4 } from "@mantine/core";
292
- import { useUpdateNodeComputedData as useUpdateNodeComputedData5, useUpdateNodeData as useUpdateNodeData4 } from "@awesome-flow/core/hooks";
293
- import { Const } from "libnoise-ts/module/generator";
294
- import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
251
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData4, useUpdateNodeData as useUpdateNodeData4 } from "@awesome-flow/core/hooks";
252
+ import { Const } from "libnoise-simplex-ts";
253
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
295
254
  function NoiseConstNode({ id, selected, data, type }) {
296
255
  const [min, setMin] = useState4(data.min);
297
256
  const [max, setMax] = useState4(data.max);
298
257
  const [noise, setNoise] = useState4(data.noise);
299
258
  const updateNodeData = useUpdateNodeData4();
300
- const updateComputedData = useUpdateNodeComputedData5();
301
- const module = useMemo2(() => new Const(), []);
302
- useEffect5(() => {
259
+ const updateComputedData = useUpdateNodeComputedData4();
260
+ const module = useMemo(() => new Const(), []);
261
+ useEffect4(() => {
303
262
  module.value = noise;
304
263
  updateNodeData(id, { noise, min, max });
305
264
  updateComputedData(id, { module });
306
265
  }, [noise, min, max, module, updateNodeData, id, updateComputedData]);
307
- return /* @__PURE__ */ jsx5(NodeContainer5, { id, selected, data, type, children: /* @__PURE__ */ jsxs4(Stack4, { children: [
266
+ return /* @__PURE__ */ jsx4(NodeContainer4, { id, selected, data, type, children: /* @__PURE__ */ jsxs4(Stack4, { children: [
308
267
  /* @__PURE__ */ jsxs4(Group4, { children: [
309
- /* @__PURE__ */ jsx5(NumberInput4, { size: "xs", w: 100, value: min, onChange: (e) => setMin(Number(e)) }),
310
- /* @__PURE__ */ jsx5(NumberInput4, { size: "xs", w: 100, value: max, onChange: (e) => setMax(Number(e)) })
268
+ /* @__PURE__ */ jsx4(NumberInput4, { size: "xs", w: 100, value: min, onChange: (e) => setMin(Number(e)) }),
269
+ /* @__PURE__ */ jsx4(NumberInput4, { size: "xs", w: 100, value: max, onChange: (e) => setMax(Number(e)) })
311
270
  ] }),
312
271
  /* @__PURE__ */ jsxs4(Group4, { children: [
313
272
  "noise:",
314
- /* @__PURE__ */ jsx5(
273
+ /* @__PURE__ */ jsx4(
315
274
  NumberInput4,
316
275
  {
317
276
  size: "xs",
@@ -328,15 +287,15 @@ function NoiseConstNode({ id, selected, data, type }) {
328
287
  var noise_const_node_default = NoiseConstNode;
329
288
 
330
289
  // src/nodes/generators/noise-billow-node.tsx
331
- import { NodeContainer as NodeContainer6, NodeTrackConnections as NodeTrackConnections2 } from "@awesome-flow/core/layout";
332
- import { useCallback, useMemo as useMemo3 } from "react";
333
- import { Billow } from "libnoise-ts/module/generator";
334
- import { useUpdateNodeComputedData as useUpdateNodeComputedData6 } from "@awesome-flow/core/hooks";
290
+ import { NodeContainer as NodeContainer5, NodeTrackConnections as NodeTrackConnections2 } from "@awesome-flow/core/layout";
291
+ import { useCallback, useMemo as useMemo2 } from "react";
292
+ import { Billow } from "libnoise-simplex-ts";
293
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData5 } from "@awesome-flow/core/hooks";
335
294
  import { NodePropertyVariables } from "@awesome-flow/core/components";
336
- import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
295
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
337
296
  function NoiseBillowNode({ id, selected, data, type }) {
338
- const updateComputedData = useUpdateNodeComputedData6();
339
- const module = useMemo3(() => new Billow(), []);
297
+ const updateComputedData = useUpdateNodeComputedData5();
298
+ const module = useMemo2(() => new Billow(), []);
340
299
  const onPropertiesChange = useCallback(
341
300
  (properties) => {
342
301
  Object.keys(properties).forEach((k) => {
@@ -346,29 +305,29 @@ function NoiseBillowNode({ id, selected, data, type }) {
346
305
  },
347
306
  [id, module, updateComputedData]
348
307
  );
349
- return /* @__PURE__ */ jsxs5(NodeContainer6, { id, selected, data, type, children: [
350
- /* @__PURE__ */ jsx6(NodePropertyVariables, { data, nodeId: id, onPropertiesChange }),
351
- /* @__PURE__ */ jsx6(NodeTrackConnections2, { handles: data.handles, nodeId: id, type: "target" })
308
+ return /* @__PURE__ */ jsxs5(NodeContainer5, { id, selected, data, type, children: [
309
+ /* @__PURE__ */ jsx5(NodePropertyVariables, { data, nodeId: id, onPropertiesChange }),
310
+ /* @__PURE__ */ jsx5(NodeTrackConnections2, { handles: data.handles, nodeId: id, type: "target" })
352
311
  ] });
353
312
  }
354
313
  var noise_billow_node_default = NoiseBillowNode;
355
314
 
356
315
  // src/nodes/output/noise-logger-node.tsx
357
- import { NodeContainer as NodeContainer7, NodeTrackConnections as NodeTrackConnections3 } from "@awesome-flow/core/layout";
358
- import { useMemo as useMemo4 } from "react";
316
+ import { NodeContainer as NodeContainer6, NodeTrackConnections as NodeTrackConnections3 } from "@awesome-flow/core/layout";
317
+ import { useMemo as useMemo3 } from "react";
359
318
  import { Divider, Stack as Stack5, Text } from "@mantine/core";
360
319
  import { useIncomingComputedData as useIncomingComputedData2 } from "@awesome-flow/core/hooks";
361
- import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
320
+ import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
362
321
  function NoiseLoggerNode({ id, selected, data, type }) {
363
322
  const incoming = useIncomingComputedData2(id);
364
- const noise = useMemo4(() => incoming?.map((p) => p.noise).flat(), [incoming]);
365
- return /* @__PURE__ */ jsxs6(NodeContainer7, { id, selected, data, type, children: [
323
+ const noise = useMemo3(() => incoming?.map((p) => p.noise).flat(), [incoming]);
324
+ return /* @__PURE__ */ jsxs6(NodeContainer6, { id, selected, data, type, children: [
366
325
  /* @__PURE__ */ jsxs6(Text, { children: [
367
326
  "Size: ",
368
327
  noise?.length || 0
369
328
  ] }),
370
- /* @__PURE__ */ jsx7(Divider, { h: 5 }),
371
- /* @__PURE__ */ jsx7(Stack5, { children: noise?.map((v, i) => /* @__PURE__ */ jsxs6(Text, { children: [
329
+ /* @__PURE__ */ jsx6(Divider, { h: 5 }),
330
+ /* @__PURE__ */ jsx6(Stack5, { children: noise?.map((v, i) => /* @__PURE__ */ jsxs6(Text, { children: [
372
331
  v.position?.x,
373
332
  ":",
374
333
  v.position?.y,
@@ -377,24 +336,24 @@ function NoiseLoggerNode({ id, selected, data, type }) {
377
336
  ": ",
378
337
  v.value
379
338
  ] }, i)) }),
380
- /* @__PURE__ */ jsx7(NodeTrackConnections3, { handles: data.handles, nodeId: id, type: "target" })
339
+ /* @__PURE__ */ jsx6(NodeTrackConnections3, { handles: data.handles, nodeId: id, type: "target" })
381
340
  ] });
382
341
  }
383
342
  var noise_logger_node_default = NoiseLoggerNode;
384
343
 
385
344
  // src/nodes/output/noise-raw-texture-node.tsx
386
- import { NodeContainer as NodeContainer8, NodeTrackConnections as NodeTrackConnections4 } from "@awesome-flow/core/layout";
387
- import { useEffect as useEffect6, useMemo as useMemo5, useState as useState5 } from "react";
388
- import { useIncomingComputedData as useIncomingComputedData3, useUpdateNodeComputedData as useUpdateNodeComputedData7 } from "@awesome-flow/core/hooks";
345
+ import { NodeContainer as NodeContainer7, NodeTrackConnections as NodeTrackConnections4 } from "@awesome-flow/core/layout";
346
+ import { useEffect as useEffect5, useMemo as useMemo4, useState as useState5 } from "react";
347
+ import { useIncomingComputedData as useIncomingComputedData3, useUpdateNodeComputedData as useUpdateNodeComputedData6 } from "@awesome-flow/core/hooks";
389
348
  import { Group as Group5, Stack as Stack6 } from "@mantine/core";
390
- import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
349
+ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
391
350
  function NoiseRawTextureNode({ id, selected, data, type }) {
392
- const updateComputedData = useUpdateNodeComputedData7();
351
+ const updateComputedData = useUpdateNodeComputedData6();
393
352
  const [dataLength, setDataLength] = useState5(0);
394
353
  const [resolution, setResolution] = useState5(0);
395
354
  const incoming = useIncomingComputedData3(id);
396
- const noise = useMemo5(() => incoming?.map((p) => p.noise).flat(), [incoming]);
397
- useEffect6(() => {
355
+ const noise = useMemo4(() => incoming?.map((p) => p.noise).flat(), [incoming]);
356
+ useEffect5(() => {
398
357
  if (noise?.length) {
399
358
  const size = Math.ceil(Math.sqrt(noise.length));
400
359
  const colors = noise.map((n) => [n.value * 255, n.value * 255, n.value * 255, 255]).flat();
@@ -402,10 +361,14 @@ function NoiseRawTextureNode({ id, selected, data, type }) {
402
361
  dataArray.set(colors);
403
362
  setResolution(size);
404
363
  setDataLength(dataArray.length);
405
- updateComputedData(id, { textureData: dataArray, textureResolution: size });
364
+ updateComputedData(id, {
365
+ textureData: dataArray,
366
+ textureResolutionX: size,
367
+ textureResolutionY: size
368
+ });
406
369
  }
407
370
  }, [noise]);
408
- return /* @__PURE__ */ jsxs7(NodeContainer8, { id, selected, data, type, children: [
371
+ return /* @__PURE__ */ jsxs7(NodeContainer7, { id, selected, data, type, children: [
409
372
  /* @__PURE__ */ jsxs7(Stack6, { children: [
410
373
  /* @__PURE__ */ jsxs7(Group5, { children: [
411
374
  "Resolution: ",
@@ -426,66 +389,66 @@ function NoiseRawTextureNode({ id, selected, data, type }) {
426
389
  dataLength
427
390
  ] })
428
391
  ] }),
429
- /* @__PURE__ */ jsx8(NodeTrackConnections4, { handles: data.handles, nodeId: id, type: "target" })
392
+ /* @__PURE__ */ jsx7(NodeTrackConnections4, { handles: data.handles, nodeId: id, type: "target" })
430
393
  ] });
431
394
  }
432
395
  var noise_raw_texture_node_default = NoiseRawTextureNode;
433
396
 
434
397
  // src/nodes/generators/noise-checkerboard-node.tsx
435
- import { NodeContainer as NodeContainer9 } from "@awesome-flow/core/layout";
436
- import { useEffect as useEffect7, useMemo as useMemo6 } from "react";
437
- import { Checkerboard } from "libnoise-ts/module/generator";
438
- import { useUpdateNodeComputedData as useUpdateNodeComputedData8 } from "@awesome-flow/core/hooks";
439
- import { jsx as jsx9 } from "react/jsx-runtime";
398
+ import { NodeContainer as NodeContainer8 } from "@awesome-flow/core/layout";
399
+ import { useEffect as useEffect6, useMemo as useMemo5 } from "react";
400
+ import { Checkerboard } from "libnoise-simplex-ts";
401
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData7 } from "@awesome-flow/core/hooks";
402
+ import { jsx as jsx8 } from "react/jsx-runtime";
440
403
  function NoiseCheckerboardNode({ id, selected, data, type }) {
441
- const updateComputedData = useUpdateNodeComputedData8();
442
- const module = useMemo6(() => new Checkerboard(), []);
443
- useEffect7(() => {
404
+ const updateComputedData = useUpdateNodeComputedData7();
405
+ const module = useMemo5(() => new Checkerboard(), []);
406
+ useEffect6(() => {
444
407
  updateComputedData(id, { module });
445
408
  }, [id, module, updateComputedData]);
446
- return /* @__PURE__ */ jsx9(NodeContainer9, { id, selected, data, type });
409
+ return /* @__PURE__ */ jsx8(NodeContainer8, { id, selected, data, type });
447
410
  }
448
411
  var noise_checkerboard_node_default = NoiseCheckerboardNode;
449
412
 
450
413
  // src/nodes/output/positions-logger-node.tsx
451
- import { NodeContainer as NodeContainer10, NodeTrackConnections as NodeTrackConnections5 } from "@awesome-flow/core/layout";
452
- import { useMemo as useMemo7 } from "react";
414
+ import { NodeContainer as NodeContainer9, NodeTrackConnections as NodeTrackConnections5 } from "@awesome-flow/core/layout";
415
+ import { useMemo as useMemo6 } from "react";
453
416
  import { Divider as Divider2, Stack as Stack7, Text as Text2 } from "@mantine/core";
454
417
  import { useIncomingComputedData as useIncomingComputedData4 } from "@awesome-flow/core/hooks";
455
- import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
418
+ import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
456
419
  function PositionsLoggerNode({ id, selected, data, type }) {
457
420
  const incoming = useIncomingComputedData4(id);
458
- const positions = useMemo7(() => {
421
+ const positions = useMemo6(() => {
459
422
  return incoming?.map((p) => p.positions).flat();
460
423
  }, [incoming]);
461
- return /* @__PURE__ */ jsxs8(NodeContainer10, { id, selected, data, type, children: [
424
+ return /* @__PURE__ */ jsxs8(NodeContainer9, { id, selected, data, type, children: [
462
425
  /* @__PURE__ */ jsxs8(Text2, { children: [
463
426
  "Size: ",
464
427
  positions?.length || 0
465
428
  ] }),
466
- /* @__PURE__ */ jsx10(Divider2, { h: 5 }),
467
- /* @__PURE__ */ jsx10(Stack7, { children: positions?.map((v, i) => /* @__PURE__ */ jsxs8(Text2, { children: [
429
+ /* @__PURE__ */ jsx9(Divider2, { h: 5 }),
430
+ /* @__PURE__ */ jsx9(Stack7, { children: positions?.map((v, i) => /* @__PURE__ */ jsxs8(Text2, { children: [
468
431
  v.x,
469
432
  ":",
470
433
  v.y,
471
434
  ":",
472
435
  v.z
473
436
  ] }, i)) }),
474
- /* @__PURE__ */ jsx10(NodeTrackConnections5, { handles: data.handles, nodeId: id, type: "target" })
437
+ /* @__PURE__ */ jsx9(NodeTrackConnections5, { handles: data.handles, nodeId: id, type: "target" })
475
438
  ] });
476
439
  }
477
440
  var positions_logger_node_default = PositionsLoggerNode;
478
441
 
479
442
  // src/nodes/generators/noise-cylinders-node.tsx
480
- import { NodeContainer as NodeContainer11, NodeTrackConnections as NodeTrackConnections6 } from "@awesome-flow/core/layout";
481
- import { useCallback as useCallback2, useMemo as useMemo8 } from "react";
482
- import { Cylinders } from "libnoise-ts/module/generator";
483
- import { useUpdateNodeComputedData as useUpdateNodeComputedData9 } from "@awesome-flow/core/hooks";
443
+ import { NodeContainer as NodeContainer10, NodeTrackConnections as NodeTrackConnections6 } from "@awesome-flow/core/layout";
444
+ import { useCallback as useCallback2, useMemo as useMemo7 } from "react";
445
+ import { Cylinders } from "libnoise-simplex-ts";
446
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData8 } from "@awesome-flow/core/hooks";
484
447
  import { NodePropertyVariables as NodePropertyVariables2 } from "@awesome-flow/core/components";
485
- import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
448
+ import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
486
449
  function NoiseCylindersNode({ id, selected, data, type }) {
487
- const updateComputedData = useUpdateNodeComputedData9();
488
- const module = useMemo8(() => new Cylinders(), []);
450
+ const updateComputedData = useUpdateNodeComputedData8();
451
+ const module = useMemo7(() => new Cylinders(), []);
489
452
  const onPropertiesChange = useCallback2(
490
453
  (properties) => {
491
454
  Object.keys(properties).forEach((k) => {
@@ -495,23 +458,23 @@ function NoiseCylindersNode({ id, selected, data, type }) {
495
458
  },
496
459
  [id, module, updateComputedData]
497
460
  );
498
- return /* @__PURE__ */ jsxs9(NodeContainer11, { id, selected, data, type, children: [
499
- /* @__PURE__ */ jsx11(NodePropertyVariables2, { data, nodeId: id, onPropertiesChange }),
500
- /* @__PURE__ */ jsx11(NodeTrackConnections6, { handles: data.handles, nodeId: id, type: "target" })
461
+ return /* @__PURE__ */ jsxs9(NodeContainer10, { id, selected, data, type, children: [
462
+ /* @__PURE__ */ jsx10(NodePropertyVariables2, { data, nodeId: id, onPropertiesChange }),
463
+ /* @__PURE__ */ jsx10(NodeTrackConnections6, { handles: data.handles, nodeId: id, type: "target" })
501
464
  ] });
502
465
  }
503
466
  var noise_cylinders_node_default = NoiseCylindersNode;
504
467
 
505
468
  // src/nodes/generators/noise-perlin-node.tsx
506
- import { NodeContainer as NodeContainer12, NodeTrackConnections as NodeTrackConnections7 } from "@awesome-flow/core/layout";
507
- import { useCallback as useCallback3, useMemo as useMemo9 } from "react";
508
- import { Perlin } from "libnoise-ts/module/generator";
509
- import { useUpdateNodeComputedData as useUpdateNodeComputedData10 } from "@awesome-flow/core/hooks";
469
+ import { NodeContainer as NodeContainer11, NodeTrackConnections as NodeTrackConnections7 } from "@awesome-flow/core/layout";
470
+ import { useCallback as useCallback3, useMemo as useMemo8 } from "react";
471
+ import { Perlin } from "libnoise-simplex-ts";
472
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData9 } from "@awesome-flow/core/hooks";
510
473
  import { NodePropertyVariables as NodePropertyVariables3 } from "@awesome-flow/core/components";
511
- import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
474
+ import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
512
475
  function NoisePerlinNode({ id, selected, data, type }) {
513
- const updateComputedData = useUpdateNodeComputedData10();
514
- const module = useMemo9(() => new Perlin(), []);
476
+ const updateComputedData = useUpdateNodeComputedData9();
477
+ const module = useMemo8(() => new Perlin(), []);
515
478
  const onPropertiesChange = useCallback3(
516
479
  (properties) => {
517
480
  Object.keys(properties).forEach((k) => {
@@ -521,64 +484,64 @@ function NoisePerlinNode({ id, selected, data, type }) {
521
484
  },
522
485
  [id, module, updateComputedData]
523
486
  );
524
- return /* @__PURE__ */ jsxs10(NodeContainer12, { id, selected, data, type, children: [
525
- /* @__PURE__ */ jsx12(NodePropertyVariables3, { data, nodeId: id, onPropertiesChange }),
526
- /* @__PURE__ */ jsx12(NodeTrackConnections7, { handles: data.handles, nodeId: id, type: "target" })
487
+ return /* @__PURE__ */ jsxs10(NodeContainer11, { id, selected, data, type, children: [
488
+ /* @__PURE__ */ jsx11(NodePropertyVariables3, { data, nodeId: id, onPropertiesChange }),
489
+ /* @__PURE__ */ jsx11(NodeTrackConnections7, { handles: data.handles, nodeId: id, type: "target" })
527
490
  ] });
528
491
  }
529
492
  var noise_perlin_node_default = NoisePerlinNode;
530
493
 
531
494
  // src/nodes/generators/noise-ridgedmulti-node.tsx
532
- import { NodeContainer as NodeContainer13, NodeTrackConnections as NodeTrackConnections8 } from "@awesome-flow/core/layout";
533
- import { useCallback as useCallback4, useMemo as useMemo10 } from "react";
534
- import { RidgedMulti } from "libnoise-ts/module/generator";
535
- import { useUpdateNodeComputedData as useUpdateNodeComputedData11 } from "@awesome-flow/core/hooks";
495
+ import { NodeContainer as NodeContainer12, NodeTrackConnections as NodeTrackConnections8 } from "@awesome-flow/core/layout";
496
+ import { useCallback as useCallback4, useMemo as useMemo9 } from "react";
497
+ import { RidgedMulti } from "libnoise-simplex-ts";
498
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData10 } from "@awesome-flow/core/hooks";
536
499
  import { NodePropertyVariables as NodePropertyVariables4 } from "@awesome-flow/core/components";
537
- import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
500
+ import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
538
501
  function NoiseRidgedMultiNode({ id, selected, data, type }) {
539
- const updateComputedData = useUpdateNodeComputedData11();
540
- const module = useMemo10(() => new RidgedMulti(), []);
502
+ const updateComputedData = useUpdateNodeComputedData10();
503
+ const module = useMemo9(() => new RidgedMulti(), []);
541
504
  const onPropertiesChange = useCallback4((properties) => {
542
505
  Object.keys(properties).forEach((k) => module[k] = properties[k].value);
543
506
  updateComputedData(id, { module });
544
507
  }, []);
545
- return /* @__PURE__ */ jsxs11(NodeContainer13, { id, selected, data, type, children: [
546
- /* @__PURE__ */ jsx13(NodePropertyVariables4, { data, nodeId: id, onPropertiesChange }),
547
- /* @__PURE__ */ jsx13(NodeTrackConnections8, { handles: data.handles, nodeId: id, type: "target" })
508
+ return /* @__PURE__ */ jsxs11(NodeContainer12, { id, selected, data, type, children: [
509
+ /* @__PURE__ */ jsx12(NodePropertyVariables4, { data, nodeId: id, onPropertiesChange }),
510
+ /* @__PURE__ */ jsx12(NodeTrackConnections8, { handles: data.handles, nodeId: id, type: "target" })
548
511
  ] });
549
512
  }
550
513
  var noise_ridgedmulti_node_default = NoiseRidgedMultiNode;
551
514
 
552
515
  // src/nodes/generators/noise-spheres-node.tsx
553
- import { NodeContainer as NodeContainer14, NodeTrackConnections as NodeTrackConnections9 } from "@awesome-flow/core/layout";
554
- import { useCallback as useCallback5, useMemo as useMemo11 } from "react";
555
- import { Spheres } from "libnoise-ts/module/generator";
556
- import { useUpdateNodeComputedData as useUpdateNodeComputedData12 } from "@awesome-flow/core/hooks";
516
+ import { NodeContainer as NodeContainer13, NodeTrackConnections as NodeTrackConnections9 } from "@awesome-flow/core/layout";
517
+ import { useCallback as useCallback5, useMemo as useMemo10 } from "react";
518
+ import { Spheres } from "libnoise-simplex-ts";
519
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData11 } from "@awesome-flow/core/hooks";
557
520
  import { NodePropertyVariables as NodePropertyVariables5 } from "@awesome-flow/core/components";
558
- import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
521
+ import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
559
522
  function NoiseSpheresNode({ id, selected, data, type }) {
560
- const updateComputedData = useUpdateNodeComputedData12();
561
- const module = useMemo11(() => new Spheres(), []);
523
+ const updateComputedData = useUpdateNodeComputedData11();
524
+ const module = useMemo10(() => new Spheres(), []);
562
525
  const onPropertiesChange = useCallback5((properties) => {
563
526
  Object.keys(properties).forEach((k) => module[k] = properties[k].value);
564
527
  updateComputedData(id, { module });
565
528
  }, []);
566
- return /* @__PURE__ */ jsxs12(NodeContainer14, { id, selected, data, type, children: [
567
- /* @__PURE__ */ jsx14(NodePropertyVariables5, { data, nodeId: id, onPropertiesChange }),
568
- /* @__PURE__ */ jsx14(NodeTrackConnections9, { handles: data.handles, nodeId: id, type: "target" })
529
+ return /* @__PURE__ */ jsxs12(NodeContainer13, { id, selected, data, type, children: [
530
+ /* @__PURE__ */ jsx13(NodePropertyVariables5, { data, nodeId: id, onPropertiesChange }),
531
+ /* @__PURE__ */ jsx13(NodeTrackConnections9, { handles: data.handles, nodeId: id, type: "target" })
569
532
  ] });
570
533
  }
571
534
  var noise_spheres_node_default = NoiseSpheresNode;
572
535
 
573
536
  // src/nodes/generators/noise-voronoi-node.tsx
574
- import { NodeContainer as NodeContainer15, NodeTrackConnections as NodeTrackConnections10 } from "@awesome-flow/core/layout";
537
+ import { NodeContainer as NodeContainer14, NodeTrackConnections as NodeTrackConnections10 } from "@awesome-flow/core/layout";
575
538
  import { useCallback as useCallback6 } from "react";
576
- import { Voronoi } from "libnoise-ts/module/generator";
577
- import { useUpdateNodeComputedData as useUpdateNodeComputedData13 } from "@awesome-flow/core/hooks";
539
+ import { Voronoi } from "libnoise-simplex-ts";
540
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData12 } from "@awesome-flow/core/hooks";
578
541
  import { NodePropertyVariables as NodePropertyVariables6 } from "@awesome-flow/core/components";
579
- import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
542
+ import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
580
543
  function NoiseVoronoiNode({ id, selected, data, type }) {
581
- const updateComputedData = useUpdateNodeComputedData13();
544
+ const updateComputedData = useUpdateNodeComputedData12();
582
545
  const onPropertiesChange = useCallback6(
583
546
  (properties) => {
584
547
  const module = new Voronoi(
@@ -591,19 +554,19 @@ function NoiseVoronoiNode({ id, selected, data, type }) {
591
554
  },
592
555
  []
593
556
  );
594
- return /* @__PURE__ */ jsxs13(NodeContainer15, { id, selected, data, type, children: [
595
- /* @__PURE__ */ jsx15(NodePropertyVariables6, { data, nodeId: id, onPropertiesChange }),
596
- /* @__PURE__ */ jsx15(NodeTrackConnections10, { handles: data.handles, nodeId: id, type: "target" })
557
+ return /* @__PURE__ */ jsxs13(NodeContainer14, { id, selected, data, type, children: [
558
+ /* @__PURE__ */ jsx14(NodePropertyVariables6, { data, nodeId: id, onPropertiesChange }),
559
+ /* @__PURE__ */ jsx14(NodeTrackConnections10, { handles: data.handles, nodeId: id, type: "target" })
597
560
  ] });
598
561
  }
599
562
  var noise_voronoi_node_default = NoiseVoronoiNode;
600
563
 
601
564
  // src/nodes/modifiers/noise-combine-node.tsx
602
- import { NodeCombobox, NodeContainer as NodeContainer16, NodeTrackConnections as NodeTrackConnections11 } from "@awesome-flow/core/layout";
603
- import { useCallback as useCallback7, useEffect as useEffect8 } from "react";
565
+ import { NodeCombobox, NodeContainer as NodeContainer15, NodeTrackConnections as NodeTrackConnections11 } from "@awesome-flow/core/layout";
566
+ import { useCallback as useCallback7, useEffect as useEffect7 } from "react";
604
567
  import {
605
568
  useIncomingComputedData as useIncomingComputedData5,
606
- useUpdateNodeComputedData as useUpdateNodeComputedData14,
569
+ useUpdateNodeComputedData as useUpdateNodeComputedData13,
607
570
  useUpdateNodeData as useUpdateNodeData5
608
571
  } from "@awesome-flow/core/hooks";
609
572
  import {
@@ -615,7 +578,7 @@ import {
615
578
  } from "@tabler/icons-react";
616
579
 
617
580
  // src/abstract/operations.ts
618
- import { Add, Max, Min, Multiply, Power } from "libnoise-ts/module/combiner";
581
+ import { Add, Max, Min, Multiply, Power } from "libnoise-simplex-ts";
619
582
  var NoiseCombineType = /* @__PURE__ */ ((NoiseCombineType3) => {
620
583
  NoiseCombineType3["add"] = "add";
621
584
  NoiseCombineType3["max"] = "max";
@@ -633,19 +596,19 @@ var noiseCombineModuleMap = {
633
596
  };
634
597
 
635
598
  // src/nodes/modifiers/noise-combine-node.tsx
636
- import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
599
+ import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
637
600
  var options = {
638
- add: /* @__PURE__ */ jsx16(IconPlus, {}),
639
- min: /* @__PURE__ */ jsx16(IconChevronLeft, {}),
640
- max: /* @__PURE__ */ jsx16(IconChevronRight, {}),
641
- multiply: /* @__PURE__ */ jsx16(IconAsterisk, {}),
642
- power: /* @__PURE__ */ jsx16(IconChevronUp, {})
601
+ add: /* @__PURE__ */ jsx15(IconPlus, {}),
602
+ min: /* @__PURE__ */ jsx15(IconChevronLeft, {}),
603
+ max: /* @__PURE__ */ jsx15(IconChevronRight, {}),
604
+ multiply: /* @__PURE__ */ jsx15(IconAsterisk, {}),
605
+ power: /* @__PURE__ */ jsx15(IconChevronUp, {})
643
606
  };
644
607
  function NoiseCombineNode({ id, selected, data, type }) {
645
608
  const updateNodeData = useUpdateNodeData5();
646
- const updateComputedData = useUpdateNodeComputedData14();
609
+ const updateComputedData = useUpdateNodeComputedData13();
647
610
  const incoming = useIncomingComputedData5(id);
648
- useEffect8(() => {
611
+ useEffect7(() => {
649
612
  const ModuleFactory = noiseCombineModuleMap[data.operation];
650
613
  if (incoming?.length > 1) {
651
614
  const module = new ModuleFactory(incoming[0].module, incoming[1].module);
@@ -655,40 +618,40 @@ function NoiseCombineNode({ id, selected, data, type }) {
655
618
  const onChange = useCallback7((operation) => {
656
619
  updateNodeData(id, { operation });
657
620
  }, []);
658
- return /* @__PURE__ */ jsxs14(NodeContainer16, { id, selected, data, type, children: [
659
- /* @__PURE__ */ jsx16(NodeCombobox, { options, selected: data.operation, onChange, width: 150 }),
660
- /* @__PURE__ */ jsx16(NodeTrackConnections11, { handles: data.handles, nodeId: id, type: "target" })
621
+ return /* @__PURE__ */ jsxs14(NodeContainer15, { id, selected, data, type, children: [
622
+ /* @__PURE__ */ jsx15(NodeCombobox, { options, selected: data.operation, onChange, width: 150 }),
623
+ /* @__PURE__ */ jsx15(NodeTrackConnections11, { handles: data.handles, nodeId: id, type: "target" })
661
624
  ] });
662
625
  }
663
626
  var noise_combine_node_default = NoiseCombineNode;
664
627
 
665
628
  // src/nodes/modifiers/noise-clamp-node.tsx
666
- import { NodeContainer as NodeContainer17, NodeTrackConnections as NodeTrackConnections12 } from "@awesome-flow/core/layout";
667
- import { useEffect as useEffect9, useState as useState6 } from "react";
629
+ import { NodeContainer as NodeContainer16, NodeTrackConnections as NodeTrackConnections12 } from "@awesome-flow/core/layout";
630
+ import { useEffect as useEffect8, useState as useState6 } from "react";
668
631
  import { Group as Group6, NumberInput as NumberInput5, Stack as Stack8 } from "@mantine/core";
669
632
  import {
670
633
  useIncomingComputedData as useIncomingComputedData6,
671
- useUpdateNodeComputedData as useUpdateNodeComputedData15,
634
+ useUpdateNodeComputedData as useUpdateNodeComputedData14,
672
635
  useUpdateNodeData as useUpdateNodeData6
673
636
  } from "@awesome-flow/core/hooks";
674
- import { Clamp } from "libnoise-ts/module/modifier";
675
- import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
637
+ import { Clamp } from "libnoise-simplex-ts";
638
+ import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
676
639
  function NoiseClampNode({ id, selected, data, type }) {
677
640
  const [lowerBound, setLowerBound] = useState6(data.lowerBound);
678
641
  const [upperBound, setUpperBound] = useState6(data.upperBound);
679
642
  const incoming = useIncomingComputedData6(id);
680
643
  const updateNodeData = useUpdateNodeData6();
681
- const updateComputedData = useUpdateNodeComputedData15();
682
- useEffect9(() => {
644
+ const updateComputedData = useUpdateNodeComputedData14();
645
+ useEffect8(() => {
683
646
  if (incoming?.length) {
684
647
  const module = new Clamp(incoming[0].module, lowerBound, upperBound);
685
648
  updateComputedData(id, { module });
686
649
  }
687
650
  updateNodeData(id, { lowerBound, upperBound });
688
651
  }, [incoming, lowerBound, upperBound]);
689
- return /* @__PURE__ */ jsxs15(NodeContainer17, { id, selected, data, type, children: [
690
- /* @__PURE__ */ jsx17(Stack8, { children: /* @__PURE__ */ jsxs15(Group6, { children: [
691
- /* @__PURE__ */ jsx17(
652
+ return /* @__PURE__ */ jsxs15(NodeContainer16, { id, selected, data, type, children: [
653
+ /* @__PURE__ */ jsx16(Stack8, { children: /* @__PURE__ */ jsxs15(Group6, { children: [
654
+ /* @__PURE__ */ jsx16(
692
655
  NumberInput5,
693
656
  {
694
657
  size: "xs",
@@ -698,7 +661,7 @@ function NoiseClampNode({ id, selected, data, type }) {
698
661
  step: 0.1
699
662
  }
700
663
  ),
701
- /* @__PURE__ */ jsx17(
664
+ /* @__PURE__ */ jsx16(
702
665
  NumberInput5,
703
666
  {
704
667
  size: "xs",
@@ -709,40 +672,40 @@ function NoiseClampNode({ id, selected, data, type }) {
709
672
  }
710
673
  )
711
674
  ] }) }),
712
- /* @__PURE__ */ jsx17(NodeTrackConnections12, { handles: data.handles, nodeId: id, type: "target" })
675
+ /* @__PURE__ */ jsx16(NodeTrackConnections12, { handles: data.handles, nodeId: id, type: "target" })
713
676
  ] });
714
677
  }
715
678
  var noise_clamp_node_default = NoiseClampNode;
716
679
 
717
680
  // src/nodes/modifiers/noise-abs-node.tsx
718
- import { NodeContainer as NodeContainer18, NodeTrackConnections as NodeTrackConnections13 } from "@awesome-flow/core/layout";
719
- import { useEffect as useEffect10 } from "react";
720
- import { useIncomingComputedData as useIncomingComputedData7, useUpdateNodeComputedData as useUpdateNodeComputedData16 } from "@awesome-flow/core/hooks";
721
- import { Abs } from "libnoise-ts/module/modifier";
722
- import { jsx as jsx18 } from "react/jsx-runtime";
681
+ import { NodeContainer as NodeContainer17, NodeTrackConnections as NodeTrackConnections13 } from "@awesome-flow/core/layout";
682
+ import { useEffect as useEffect9 } from "react";
683
+ import { useIncomingComputedData as useIncomingComputedData7, useUpdateNodeComputedData as useUpdateNodeComputedData15 } from "@awesome-flow/core/hooks";
684
+ import { Abs } from "libnoise-simplex-ts";
685
+ import { jsx as jsx17 } from "react/jsx-runtime";
723
686
  function NoiseAbsNode({ id, selected, data, type }) {
724
687
  const incoming = useIncomingComputedData7(id);
725
- const updateComputedData = useUpdateNodeComputedData16();
726
- useEffect10(() => {
688
+ const updateComputedData = useUpdateNodeComputedData15();
689
+ useEffect9(() => {
727
690
  if (incoming?.length > 0) {
728
691
  const module = new Abs(incoming[0].module);
729
692
  updateComputedData(id, { module });
730
693
  }
731
694
  }, [incoming]);
732
- return /* @__PURE__ */ jsx18(NodeContainer18, { id, selected, data, type, children: /* @__PURE__ */ jsx18(NodeTrackConnections13, { handles: data.handles, nodeId: id, type: "target" }) });
695
+ return /* @__PURE__ */ jsx17(NodeContainer17, { id, selected, data, type, children: /* @__PURE__ */ jsx17(NodeTrackConnections13, { handles: data.handles, nodeId: id, type: "target" }) });
733
696
  }
734
697
  var noise_abs_node_default = NoiseAbsNode;
735
698
 
736
699
  // src/nodes/output/noise-output-node.tsx
737
- import { NodeContainer as NodeContainer19, NodeTrackConnections as NodeTrackConnections14 } from "@awesome-flow/core/layout";
700
+ import { NodeContainer as NodeContainer18, NodeTrackConnections as NodeTrackConnections14 } from "@awesome-flow/core/layout";
738
701
  import { useCallback as useCallback8, useState as useState7 } from "react";
739
- import { useUpdateNodeComputedData as useUpdateNodeComputedData17 } from "@awesome-flow/core/hooks";
702
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData16 } from "@awesome-flow/core/hooks";
740
703
  import { HandlesIncomingDataStatus } from "@awesome-flow/core/components";
741
704
  import { Text as Text3 } from "@mantine/core";
742
- import { jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
705
+ import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
743
706
  function NoiseOutputNode({ id, selected, data, type }) {
744
707
  const [size, setSize] = useState7(0);
745
- const updateComputedData = useUpdateNodeComputedData17();
708
+ const updateComputedData = useUpdateNodeComputedData16();
746
709
  const onDataUpdated = useCallback8(
747
710
  (handleData) => {
748
711
  const incomingPositions = handleData["position" /* position */];
@@ -765,8 +728,8 @@ function NoiseOutputNode({ id, selected, data, type }) {
765
728
  },
766
729
  []
767
730
  );
768
- return /* @__PURE__ */ jsxs16(NodeContainer19, { id, selected, data, type, children: [
769
- /* @__PURE__ */ jsx19(
731
+ return /* @__PURE__ */ jsxs16(NodeContainer18, { id, selected, data, type, children: [
732
+ /* @__PURE__ */ jsx18(
770
733
  HandlesIncomingDataStatus,
771
734
  {
772
735
  nodeId: id,
@@ -781,17 +744,17 @@ function NoiseOutputNode({ id, selected, data, type }) {
781
744
  "Noise points: ",
782
745
  size
783
746
  ] }),
784
- /* @__PURE__ */ jsx19(NodeTrackConnections14, { handles: data.handles, nodeId: id, type: "target" })
747
+ /* @__PURE__ */ jsx18(NodeTrackConnections14, { handles: data.handles, nodeId: id, type: "target" })
785
748
  ] });
786
749
  }
787
750
  var noise_output_node_default = NoiseOutputNode;
788
751
 
789
752
  // src/nodes/modifiers/noise-curve-node.tsx
790
- import { NodeContainer as NodeContainer20, NodeTrackConnections as NodeTrackConnections15 } from "@awesome-flow/core/layout";
753
+ import { NodeContainer as NodeContainer19, NodeTrackConnections as NodeTrackConnections15 } from "@awesome-flow/core/layout";
791
754
  import { ActionIcon, Button, Group as Group7, NumberInput as NumberInput6, Space } from "@mantine/core";
792
755
  import {
793
756
  useIncomingComputedData as useIncomingComputedData8,
794
- useUpdateNodeComputedData as useUpdateNodeComputedData18,
757
+ useUpdateNodeComputedData as useUpdateNodeComputedData17,
795
758
  useUpdateNodeData as useUpdateNodeData7
796
759
  } from "@awesome-flow/core/hooks";
797
760
 
@@ -799,7 +762,7 @@ import {
799
762
  import { useState as useState11, useCallback as useCallback14 } from "react";
800
763
 
801
764
  // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/actions/actions.mjs
802
- import { useLayoutEffect, useEffect as useEffect11 } from "react";
765
+ import { useLayoutEffect, useEffect as useEffect10 } from "react";
803
766
  function validateFormName(name) {
804
767
  if (!/^[0-9a-zA-Z-]+$/.test(name)) {
805
768
  throw new Error(
@@ -807,7 +770,7 @@ function validateFormName(name) {
807
770
  );
808
771
  }
809
772
  }
810
- var useIsomorphicEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect11;
773
+ var useIsomorphicEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect10;
811
774
  function useFormEvent(eventKey, handler) {
812
775
  useIsomorphicEffect(() => {
813
776
  if (eventKey) {
@@ -1051,16 +1014,13 @@ function reorderErrors(path, { from, to }, errors) {
1051
1014
 
1052
1015
  // ../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/full/index.mjs
1053
1016
  function set(obj, key, val) {
1054
- if (typeof val.value === "object")
1055
- val.value = klona(val.value);
1017
+ if (typeof val.value === "object") val.value = klona(val.value);
1056
1018
  if (!val.enumerable || val.get || val.set || !val.configurable || !val.writable || key === "__proto__") {
1057
1019
  Object.defineProperty(obj, key, val);
1058
- } else
1059
- obj[key] = val.value;
1020
+ } else obj[key] = val.value;
1060
1021
  }
1061
1022
  function klona(x) {
1062
- if (typeof x !== "object")
1063
- return x;
1023
+ if (typeof x !== "object") return x;
1064
1024
  var i = 0, k, list, tmp, str = Object.prototype.toString.call(x);
1065
1025
  if (str === "[object Object]") {
1066
1026
  tmp = Object.create(x.__proto__ || null);
@@ -1092,8 +1052,7 @@ function klona(x) {
1092
1052
  set(tmp, list[i], Object.getOwnPropertyDescriptor(x, list[i]));
1093
1053
  }
1094
1054
  for (i = 0, list = Object.getOwnPropertyNames(x); i < list.length; i++) {
1095
- if (Object.hasOwnProperty.call(tmp, k = list[i]) && tmp[k] === x[k])
1096
- continue;
1055
+ if (Object.hasOwnProperty.call(tmp, k = list[i]) && tmp[k] === x[k]) continue;
1097
1056
  set(tmp, k, Object.getOwnPropertyDescriptor(x, k));
1098
1057
  }
1099
1058
  }
@@ -1408,7 +1367,7 @@ function useFormValues({
1408
1367
  }
1409
1368
 
1410
1369
  // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-watch/use-form-watch.mjs
1411
- import { useRef as useRef4, useCallback as useCallback13, useEffect as useEffect12 } from "react";
1370
+ import { useRef as useRef4, useCallback as useCallback13, useEffect as useEffect11 } from "react";
1412
1371
  function useFormWatch({
1413
1372
  $status
1414
1373
  }) {
@@ -1416,7 +1375,7 @@ function useFormWatch({
1416
1375
  {}
1417
1376
  );
1418
1377
  const watch = useCallback13((path, callback) => {
1419
- useEffect12(() => {
1378
+ useEffect11(() => {
1420
1379
  subscribers.current[path] = subscribers.current[path] || [];
1421
1380
  subscribers.current[path].push(callback);
1422
1381
  return () => {
@@ -1705,17 +1664,16 @@ function useForm({
1705
1664
  }
1706
1665
 
1707
1666
  // src/nodes/modifiers/noise-curve-node.tsx
1708
- import { useCallback as useCallback15, useEffect as useEffect13, useState as useState12 } from "react";
1709
- import { Curve } from "libnoise-ts/module/modifier";
1710
- import { Tuple } from "libnoise-ts/util";
1667
+ import { useCallback as useCallback15, useEffect as useEffect12, useState as useState12 } from "react";
1668
+ import { Curve, Tuple } from "libnoise-simplex-ts";
1711
1669
  import { IconX } from "@tabler/icons-react";
1712
1670
  import { randomId } from "@mantine/hooks";
1713
1671
  import { NodeState } from "@awesome-flow/core/abstract";
1714
- import { Fragment, jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
1672
+ import { Fragment, jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
1715
1673
  function NoiseCurveNode({ id, selected, data, type }) {
1716
1674
  const incoming = useIncomingComputedData8(id);
1717
1675
  const updateNodeData = useUpdateNodeData7();
1718
- const updateComputedData = useUpdateNodeComputedData18();
1676
+ const updateComputedData = useUpdateNodeComputedData17();
1719
1677
  const [values, setValues] = useState12([]);
1720
1678
  const form = useForm({
1721
1679
  mode: "uncontrolled",
@@ -1744,11 +1702,11 @@ function NoiseCurveNode({ id, selected, data, type }) {
1744
1702
  form.validate();
1745
1703
  }, [])
1746
1704
  });
1747
- useEffect13(() => {
1705
+ useEffect12(() => {
1748
1706
  const points = data.points?.length ? data.points.map((v) => ({ input: v.input, output: v.output, key: randomId() })) : [1, 2, 3, 4].map(() => ({ input: 0, output: 0, key: randomId() }));
1749
1707
  form.initialize({ points });
1750
1708
  }, []);
1751
- useEffect13(() => {
1709
+ useEffect12(() => {
1752
1710
  if (incoming?.length && values?.length >= 4) {
1753
1711
  const module = new Curve(
1754
1712
  incoming[0].module,
@@ -1758,7 +1716,7 @@ function NoiseCurveNode({ id, selected, data, type }) {
1758
1716
  }
1759
1717
  }, [values, incoming]);
1760
1718
  const fields = form.getValues().points.map((item, index) => /* @__PURE__ */ jsxs17(Group7, { mt: "xs", children: [
1761
- /* @__PURE__ */ jsx20(
1719
+ /* @__PURE__ */ jsx19(
1762
1720
  NumberInput6,
1763
1721
  {
1764
1722
  size: "xs",
@@ -1769,7 +1727,7 @@ function NoiseCurveNode({ id, selected, data, type }) {
1769
1727
  },
1770
1728
  form.key(`points.${index}.input`)
1771
1729
  ),
1772
- /* @__PURE__ */ jsx20(
1730
+ /* @__PURE__ */ jsx19(
1773
1731
  NumberInput6,
1774
1732
  {
1775
1733
  size: "xs",
@@ -1780,22 +1738,22 @@ function NoiseCurveNode({ id, selected, data, type }) {
1780
1738
  },
1781
1739
  form.key(`points.${index}.output`)
1782
1740
  ),
1783
- data.state === NodeState.edit && values.length > 4 && /* @__PURE__ */ jsx20(
1741
+ data.state === NodeState.edit && values.length > 4 && /* @__PURE__ */ jsx19(
1784
1742
  ActionIcon,
1785
1743
  {
1786
1744
  color: "red",
1787
1745
  variant: "outline",
1788
1746
  size: "sm",
1789
1747
  onClick: () => form.removeListItem("points", index),
1790
- children: /* @__PURE__ */ jsx20(IconX, { size: "1rem" })
1748
+ children: /* @__PURE__ */ jsx19(IconX, { size: "1rem" })
1791
1749
  }
1792
1750
  )
1793
1751
  ] }, item.key));
1794
- return /* @__PURE__ */ jsxs17(NodeContainer20, { id, selected, type, data, children: [
1752
+ return /* @__PURE__ */ jsxs17(NodeContainer19, { id, selected, type, data, children: [
1795
1753
  fields,
1796
1754
  data.state === NodeState.edit && /* @__PURE__ */ jsxs17(Fragment, { children: [
1797
- /* @__PURE__ */ jsx20(Space, { h: 10 }),
1798
- /* @__PURE__ */ jsx20(
1755
+ /* @__PURE__ */ jsx19(Space, { h: 10 }),
1756
+ /* @__PURE__ */ jsx19(
1799
1757
  Button,
1800
1758
  {
1801
1759
  variant: "outline",
@@ -1806,38 +1764,38 @@ function NoiseCurveNode({ id, selected, data, type }) {
1806
1764
  }
1807
1765
  )
1808
1766
  ] }),
1809
- /* @__PURE__ */ jsx20(NodeTrackConnections15, { handles: data.handles, nodeId: id, type: "target" })
1767
+ /* @__PURE__ */ jsx19(NodeTrackConnections15, { handles: data.handles, nodeId: id, type: "target" })
1810
1768
  ] });
1811
1769
  }
1812
1770
  var noise_curve_node_default = NoiseCurveNode;
1813
1771
 
1814
1772
  // src/nodes/modifiers/noise-exponent-node.tsx
1815
- import { NodeContainer as NodeContainer21, NodeTrackConnections as NodeTrackConnections16 } from "@awesome-flow/core/layout";
1816
- import { useEffect as useEffect14, useState as useState13 } from "react";
1773
+ import { NodeContainer as NodeContainer20, NodeTrackConnections as NodeTrackConnections16 } from "@awesome-flow/core/layout";
1774
+ import { useEffect as useEffect13, useState as useState13 } from "react";
1817
1775
  import { Group as Group8, NumberInput as NumberInput7, Stack as Stack9 } from "@mantine/core";
1818
1776
  import {
1819
1777
  useIncomingComputedData as useIncomingComputedData9,
1820
- useUpdateNodeComputedData as useUpdateNodeComputedData19,
1778
+ useUpdateNodeComputedData as useUpdateNodeComputedData18,
1821
1779
  useUpdateNodeData as useUpdateNodeData8
1822
1780
  } from "@awesome-flow/core/hooks";
1823
- import { Exponent } from "libnoise-ts/module/modifier";
1824
- import { jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
1781
+ import { Exponent } from "libnoise-simplex-ts";
1782
+ import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
1825
1783
  function NoiseExponentNode({ id, selected, data, type }) {
1826
1784
  const [exponent, setExponent] = useState13(data.exponent);
1827
1785
  const incoming = useIncomingComputedData9(id);
1828
1786
  const updateNodeData = useUpdateNodeData8();
1829
- const updateComputedData = useUpdateNodeComputedData19();
1830
- useEffect14(() => {
1787
+ const updateComputedData = useUpdateNodeComputedData18();
1788
+ useEffect13(() => {
1831
1789
  if (incoming?.length > 0) {
1832
1790
  const module = new Exponent(incoming[0].module, exponent);
1833
1791
  updateComputedData(id, { module });
1834
1792
  }
1835
1793
  updateNodeData(id, { exponent });
1836
1794
  }, [incoming, exponent]);
1837
- return /* @__PURE__ */ jsxs18(NodeContainer21, { id, selected, data, type, children: [
1838
- /* @__PURE__ */ jsx21(Stack9, { children: /* @__PURE__ */ jsxs18(Group8, { children: [
1795
+ return /* @__PURE__ */ jsxs18(NodeContainer20, { id, selected, data, type, children: [
1796
+ /* @__PURE__ */ jsx20(Stack9, { children: /* @__PURE__ */ jsxs18(Group8, { children: [
1839
1797
  "Exponent:",
1840
- /* @__PURE__ */ jsx21(
1798
+ /* @__PURE__ */ jsx20(
1841
1799
  NumberInput7,
1842
1800
  {
1843
1801
  size: "xs",
@@ -1847,59 +1805,59 @@ function NoiseExponentNode({ id, selected, data, type }) {
1847
1805
  }
1848
1806
  )
1849
1807
  ] }) }),
1850
- /* @__PURE__ */ jsx21(NodeTrackConnections16, { handles: data.handles, nodeId: id, type: "target" })
1808
+ /* @__PURE__ */ jsx20(NodeTrackConnections16, { handles: data.handles, nodeId: id, type: "target" })
1851
1809
  ] });
1852
1810
  }
1853
1811
  var noise_exponent_node_default = NoiseExponentNode;
1854
1812
 
1855
1813
  // src/nodes/modifiers/noise-invert-node.tsx
1856
- import { NodeContainer as NodeContainer22, NodeTrackConnections as NodeTrackConnections17 } from "@awesome-flow/core/layout";
1857
- import { useEffect as useEffect15 } from "react";
1858
- import { useIncomingComputedData as useIncomingComputedData10, useUpdateNodeComputedData as useUpdateNodeComputedData20 } from "@awesome-flow/core/hooks";
1859
- import { Invert } from "libnoise-ts/module/modifier";
1860
- import { jsx as jsx22 } from "react/jsx-runtime";
1814
+ import { NodeContainer as NodeContainer21, NodeTrackConnections as NodeTrackConnections17 } from "@awesome-flow/core/layout";
1815
+ import { useEffect as useEffect14 } from "react";
1816
+ import { useIncomingComputedData as useIncomingComputedData10, useUpdateNodeComputedData as useUpdateNodeComputedData19 } from "@awesome-flow/core/hooks";
1817
+ import { Invert } from "libnoise-simplex-ts";
1818
+ import { jsx as jsx21 } from "react/jsx-runtime";
1861
1819
  function NoiseInvertNode({ id, selected, data, type }) {
1862
1820
  const incoming = useIncomingComputedData10(id);
1863
- const updateComputedData = useUpdateNodeComputedData20();
1864
- useEffect15(() => {
1821
+ const updateComputedData = useUpdateNodeComputedData19();
1822
+ useEffect14(() => {
1865
1823
  if (incoming?.length > 0) {
1866
1824
  const module = new Invert(incoming[0].module);
1867
1825
  updateComputedData(id, { module });
1868
1826
  }
1869
1827
  }, [incoming]);
1870
- return /* @__PURE__ */ jsx22(NodeContainer22, { id, selected, data, type, children: /* @__PURE__ */ jsx22(NodeTrackConnections17, { handles: data.handles, nodeId: id, type: "target" }) });
1828
+ return /* @__PURE__ */ jsx21(NodeContainer21, { id, selected, data, type, children: /* @__PURE__ */ jsx21(NodeTrackConnections17, { handles: data.handles, nodeId: id, type: "target" }) });
1871
1829
  }
1872
1830
  var noise_invert_node_default = NoiseInvertNode;
1873
1831
 
1874
1832
  // src/nodes/modifiers/noise-scale-bias-node.tsx
1875
- import { NodeContainer as NodeContainer23, NodeTrackConnections as NodeTrackConnections18 } from "@awesome-flow/core/layout";
1876
- import { useEffect as useEffect16, useState as useState14 } from "react";
1833
+ import { NodeContainer as NodeContainer22, NodeTrackConnections as NodeTrackConnections18 } from "@awesome-flow/core/layout";
1834
+ import { useEffect as useEffect15, useState as useState14 } from "react";
1877
1835
  import { Group as Group9, NumberInput as NumberInput8, Stack as Stack10 } from "@mantine/core";
1878
1836
  import {
1879
1837
  useIncomingComputedData as useIncomingComputedData11,
1880
- useUpdateNodeComputedData as useUpdateNodeComputedData21,
1838
+ useUpdateNodeComputedData as useUpdateNodeComputedData20,
1881
1839
  useUpdateNodeData as useUpdateNodeData9
1882
1840
  } from "@awesome-flow/core/hooks";
1883
- import { ScaleBias } from "libnoise-ts/module/modifier";
1884
- import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
1841
+ import { ScaleBias } from "libnoise-simplex-ts";
1842
+ import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
1885
1843
  function NoiseScaleBiasNode({ id, selected, data, type }) {
1886
1844
  const [scale, setScale] = useState14(data.scale);
1887
1845
  const [bias, setBias] = useState14(data.bias);
1888
1846
  const incoming = useIncomingComputedData11(id);
1889
1847
  const updateNodeData = useUpdateNodeData9();
1890
- const updateComputedData = useUpdateNodeComputedData21();
1891
- useEffect16(() => {
1848
+ const updateComputedData = useUpdateNodeComputedData20();
1849
+ useEffect15(() => {
1892
1850
  if (incoming?.length > 0) {
1893
1851
  const module = new ScaleBias(incoming[0].module, scale, bias);
1894
1852
  updateComputedData(id, { module });
1895
1853
  }
1896
1854
  updateNodeData(id, { scale, bias });
1897
1855
  }, [incoming, scale, bias]);
1898
- return /* @__PURE__ */ jsxs19(NodeContainer23, { id, selected, data, type, children: [
1856
+ return /* @__PURE__ */ jsxs19(NodeContainer22, { id, selected, data, type, children: [
1899
1857
  /* @__PURE__ */ jsxs19(Stack10, { children: [
1900
1858
  /* @__PURE__ */ jsxs19(Group9, { children: [
1901
1859
  "Scale:",
1902
- /* @__PURE__ */ jsx23(
1860
+ /* @__PURE__ */ jsx22(
1903
1861
  NumberInput8,
1904
1862
  {
1905
1863
  size: "xs",
@@ -1912,7 +1870,7 @@ function NoiseScaleBiasNode({ id, selected, data, type }) {
1912
1870
  ] }),
1913
1871
  /* @__PURE__ */ jsxs19(Group9, { children: [
1914
1872
  "Bias:",
1915
- /* @__PURE__ */ jsx23(
1873
+ /* @__PURE__ */ jsx22(
1916
1874
  NumberInput8,
1917
1875
  {
1918
1876
  size: "xs",
@@ -1924,29 +1882,29 @@ function NoiseScaleBiasNode({ id, selected, data, type }) {
1924
1882
  )
1925
1883
  ] })
1926
1884
  ] }),
1927
- /* @__PURE__ */ jsx23(NodeTrackConnections18, { handles: data.handles, nodeId: id, type: "target" })
1885
+ /* @__PURE__ */ jsx22(NodeTrackConnections18, { handles: data.handles, nodeId: id, type: "target" })
1928
1886
  ] });
1929
1887
  }
1930
1888
  var noise_scale_bias_node_default = NoiseScaleBiasNode;
1931
1889
 
1932
1890
  // src/nodes/modifiers/noise-terrace-node.tsx
1933
- import { NodeContainer as NodeContainer24, NodeTrackConnections as NodeTrackConnections19 } from "@awesome-flow/core/layout";
1891
+ import { NodeContainer as NodeContainer23, NodeTrackConnections as NodeTrackConnections19 } from "@awesome-flow/core/layout";
1934
1892
  import { ActionIcon as ActionIcon2, Button as Button2, Group as Group10, NumberInput as NumberInput9, Space as Space2 } from "@mantine/core";
1935
1893
  import {
1936
1894
  useIncomingComputedData as useIncomingComputedData12,
1937
- useUpdateNodeComputedData as useUpdateNodeComputedData22,
1895
+ useUpdateNodeComputedData as useUpdateNodeComputedData21,
1938
1896
  useUpdateNodeData as useUpdateNodeData10
1939
1897
  } from "@awesome-flow/core/hooks";
1940
- import { useCallback as useCallback16, useEffect as useEffect17, useState as useState15 } from "react";
1941
- import { Terrace } from "libnoise-ts/module/modifier";
1898
+ import { useCallback as useCallback16, useEffect as useEffect16, useState as useState15 } from "react";
1899
+ import { Terrace } from "libnoise-simplex-ts";
1942
1900
  import { IconX as IconX2 } from "@tabler/icons-react";
1943
1901
  import { randomId as randomId2 } from "@mantine/hooks";
1944
1902
  import { NodeState as NodeState2 } from "@awesome-flow/core/abstract";
1945
- import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
1903
+ import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
1946
1904
  function NoiseTerraceNode({ id, selected, data, type }) {
1947
1905
  const incoming = useIncomingComputedData12(id);
1948
1906
  const updateNodeData = useUpdateNodeData10();
1949
- const updateComputedData = useUpdateNodeComputedData22();
1907
+ const updateComputedData = useUpdateNodeComputedData21();
1950
1908
  const [values, setValues] = useState15([]);
1951
1909
  const form = useForm({
1952
1910
  mode: "uncontrolled",
@@ -1964,18 +1922,18 @@ function NoiseTerraceNode({ id, selected, data, type }) {
1964
1922
  form.validate();
1965
1923
  }, [])
1966
1924
  });
1967
- useEffect17(() => {
1925
+ useEffect16(() => {
1968
1926
  const points = data.points?.length ? data.points.map((v) => ({ value: v, key: randomId2() })) : [1, 2].map(() => ({ value: 0, key: randomId2() }));
1969
1927
  form.initialize({ points });
1970
1928
  }, []);
1971
- useEffect17(() => {
1929
+ useEffect16(() => {
1972
1930
  if (incoming?.length && values?.length >= 2) {
1973
1931
  const module = new Terrace(incoming[0].module, values);
1974
1932
  updateComputedData(id, { module });
1975
1933
  }
1976
1934
  }, [values, incoming]);
1977
1935
  const fields = form.getValues().points.map((item, index) => /* @__PURE__ */ jsxs20(Group10, { mt: "xs", children: [
1978
- /* @__PURE__ */ jsx24(
1936
+ /* @__PURE__ */ jsx23(
1979
1937
  NumberInput9,
1980
1938
  {
1981
1939
  size: "xs",
@@ -1985,22 +1943,22 @@ function NoiseTerraceNode({ id, selected, data, type }) {
1985
1943
  },
1986
1944
  form.key(`points.${index}.value`)
1987
1945
  ),
1988
- data.state === NodeState2.edit && values.length > 2 && /* @__PURE__ */ jsx24(
1946
+ data.state === NodeState2.edit && values.length > 2 && /* @__PURE__ */ jsx23(
1989
1947
  ActionIcon2,
1990
1948
  {
1991
1949
  color: "red",
1992
1950
  variant: "outline",
1993
1951
  size: "sm",
1994
1952
  onClick: () => form.removeListItem("points", index),
1995
- children: /* @__PURE__ */ jsx24(IconX2, { size: "1rem" })
1953
+ children: /* @__PURE__ */ jsx23(IconX2, { size: "1rem" })
1996
1954
  }
1997
1955
  )
1998
1956
  ] }, item.key));
1999
- return /* @__PURE__ */ jsxs20(NodeContainer24, { id, selected, type, data, children: [
1957
+ return /* @__PURE__ */ jsxs20(NodeContainer23, { id, selected, type, data, children: [
2000
1958
  fields,
2001
1959
  data.state === NodeState2.edit && /* @__PURE__ */ jsxs20(Fragment2, { children: [
2002
- /* @__PURE__ */ jsx24(Space2, { h: 10 }),
2003
- /* @__PURE__ */ jsx24(
1960
+ /* @__PURE__ */ jsx23(Space2, { h: 10 }),
1961
+ /* @__PURE__ */ jsx23(
2004
1962
  Button2,
2005
1963
  {
2006
1964
  variant: "outline",
@@ -2011,20 +1969,20 @@ function NoiseTerraceNode({ id, selected, data, type }) {
2011
1969
  }
2012
1970
  )
2013
1971
  ] }),
2014
- /* @__PURE__ */ jsx24(NodeTrackConnections19, { handles: data.handles, nodeId: id, type: "target" })
1972
+ /* @__PURE__ */ jsx23(NodeTrackConnections19, { handles: data.handles, nodeId: id, type: "target" })
2015
1973
  ] });
2016
1974
  }
2017
1975
  var noise_terrace_node_default = NoiseTerraceNode;
2018
1976
 
2019
1977
  // src/nodes/selectors/noise-blend-node.tsx
2020
- import { NodeContainer as NodeContainer25, NodeTrackConnections as NodeTrackConnections20 } from "@awesome-flow/core/layout";
1978
+ import { NodeContainer as NodeContainer24, NodeTrackConnections as NodeTrackConnections20 } from "@awesome-flow/core/layout";
2021
1979
  import { useCallback as useCallback17 } from "react";
2022
- import { useUpdateNodeComputedData as useUpdateNodeComputedData23 } from "@awesome-flow/core/hooks";
2023
- import { Blend } from "libnoise-ts/module/selector";
1980
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData22 } from "@awesome-flow/core/hooks";
1981
+ import { Blend } from "libnoise-simplex-ts";
2024
1982
  import { HandlesIncomingDataStatus as HandlesIncomingDataStatus2 } from "@awesome-flow/core/components";
2025
- import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
1983
+ import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
2026
1984
  function NoiseBlendNode({ id, selected, data, type }) {
2027
- const updateComputedData = useUpdateNodeComputedData23();
1985
+ const updateComputedData = useUpdateNodeComputedData22();
2028
1986
  const onDataUpdated = useCallback17(
2029
1987
  (incomingData) => {
2030
1988
  const incomingSources = incomingData["source" /* source */];
@@ -2040,8 +1998,8 @@ function NoiseBlendNode({ id, selected, data, type }) {
2040
1998
  },
2041
1999
  []
2042
2000
  );
2043
- return /* @__PURE__ */ jsxs21(NodeContainer25, { id, selected, data, type, children: [
2044
- /* @__PURE__ */ jsx25(
2001
+ return /* @__PURE__ */ jsxs21(NodeContainer24, { id, selected, data, type, children: [
2002
+ /* @__PURE__ */ jsx24(
2045
2003
  HandlesIncomingDataStatus2,
2046
2004
  {
2047
2005
  nodeId: id,
@@ -2052,26 +2010,26 @@ function NoiseBlendNode({ id, selected, data, type }) {
2052
2010
  resetComputedData: true
2053
2011
  }
2054
2012
  ),
2055
- /* @__PURE__ */ jsx25(NodeTrackConnections20, { handles: data.handles, nodeId: id, type: "target" })
2013
+ /* @__PURE__ */ jsx24(NodeTrackConnections20, { handles: data.handles, nodeId: id, type: "target" })
2056
2014
  ] });
2057
2015
  }
2058
2016
  var noise_blend_node_default = NoiseBlendNode;
2059
2017
 
2060
2018
  // src/nodes/selectors/noise-select-node.tsx
2061
- import { NodeContainer as NodeContainer26, NodeTrackConnections as NodeTrackConnections21 } from "@awesome-flow/core/layout";
2062
- import { useCallback as useCallback18, useEffect as useEffect18, useState as useState16 } from "react";
2063
- import { useUpdateNodeComputedData as useUpdateNodeComputedData24, useUpdateNodeData as useUpdateNodeData11 } from "@awesome-flow/core/hooks";
2064
- import { Select } from "libnoise-ts/module/selector";
2019
+ import { NodeContainer as NodeContainer25, NodeTrackConnections as NodeTrackConnections21 } from "@awesome-flow/core/layout";
2020
+ import { useCallback as useCallback18, useEffect as useEffect17, useState as useState16 } from "react";
2021
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData23, useUpdateNodeData as useUpdateNodeData11 } from "@awesome-flow/core/hooks";
2022
+ import { Select } from "libnoise-simplex-ts";
2065
2023
  import { Group as Group11, NumberInput as NumberInput10, Stack as Stack11 } from "@mantine/core";
2066
2024
  import { HandlesIncomingDataStatus as HandlesIncomingDataStatus3 } from "@awesome-flow/core/components";
2067
- import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
2025
+ import { jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
2068
2026
  function NoiseSelectNode({ id, selected, data, type }) {
2069
2027
  const [edgeFalloff, setEdgeFalloff] = useState16(data.edgeFalloff);
2070
2028
  const [lowerBound, setLowerBound] = useState16(data.lowerBound);
2071
2029
  const [upperBound, setUpperBound] = useState16(data.upperBound);
2072
2030
  const updateNodeData = useUpdateNodeData11();
2073
- const updateComputedData = useUpdateNodeComputedData24();
2074
- useEffect18(() => {
2031
+ const updateComputedData = useUpdateNodeComputedData23();
2032
+ useEffect17(() => {
2075
2033
  updateNodeData(id, { edgeFalloff, lowerBound, upperBound });
2076
2034
  }, [edgeFalloff, lowerBound, upperBound]);
2077
2035
  const onDataUpdated = useCallback18(
@@ -2092,11 +2050,11 @@ function NoiseSelectNode({ id, selected, data, type }) {
2092
2050
  },
2093
2051
  []
2094
2052
  );
2095
- return /* @__PURE__ */ jsxs22(NodeContainer26, { id, selected, data, type, children: [
2053
+ return /* @__PURE__ */ jsxs22(NodeContainer25, { id, selected, data, type, children: [
2096
2054
  /* @__PURE__ */ jsxs22(Stack11, { children: [
2097
2055
  /* @__PURE__ */ jsxs22(Group11, { children: [
2098
2056
  "Edge Falloff:",
2099
- /* @__PURE__ */ jsx26(
2057
+ /* @__PURE__ */ jsx25(
2100
2058
  NumberInput10,
2101
2059
  {
2102
2060
  size: "xs",
@@ -2109,7 +2067,7 @@ function NoiseSelectNode({ id, selected, data, type }) {
2109
2067
  ] }),
2110
2068
  /* @__PURE__ */ jsxs22(Group11, { children: [
2111
2069
  "Lower Bound:",
2112
- /* @__PURE__ */ jsx26(
2070
+ /* @__PURE__ */ jsx25(
2113
2071
  NumberInput10,
2114
2072
  {
2115
2073
  size: "xs",
@@ -2122,7 +2080,7 @@ function NoiseSelectNode({ id, selected, data, type }) {
2122
2080
  ] }),
2123
2081
  /* @__PURE__ */ jsxs22(Group11, { children: [
2124
2082
  "Upper Bound:",
2125
- /* @__PURE__ */ jsx26(
2083
+ /* @__PURE__ */ jsx25(
2126
2084
  NumberInput10,
2127
2085
  {
2128
2086
  size: "xs",
@@ -2133,7 +2091,7 @@ function NoiseSelectNode({ id, selected, data, type }) {
2133
2091
  }
2134
2092
  )
2135
2093
  ] }),
2136
- /* @__PURE__ */ jsx26(
2094
+ /* @__PURE__ */ jsx25(
2137
2095
  HandlesIncomingDataStatus3,
2138
2096
  {
2139
2097
  nodeId: id,
@@ -2145,20 +2103,20 @@ function NoiseSelectNode({ id, selected, data, type }) {
2145
2103
  }
2146
2104
  )
2147
2105
  ] }),
2148
- /* @__PURE__ */ jsx26(NodeTrackConnections21, { handles: data.handles, nodeId: id, type: "target" })
2106
+ /* @__PURE__ */ jsx25(NodeTrackConnections21, { handles: data.handles, nodeId: id, type: "target" })
2149
2107
  ] });
2150
2108
  }
2151
2109
  var noise_select_node_default = NoiseSelectNode;
2152
2110
 
2153
2111
  // src/nodes/transformers/noise-displace-node.tsx
2154
- import { NodeContainer as NodeContainer27, NodeTrackConnections as NodeTrackConnections22 } from "@awesome-flow/core/layout";
2112
+ import { NodeContainer as NodeContainer26, NodeTrackConnections as NodeTrackConnections22 } from "@awesome-flow/core/layout";
2155
2113
  import { useCallback as useCallback19 } from "react";
2156
- import { useUpdateNodeComputedData as useUpdateNodeComputedData25 } from "@awesome-flow/core/hooks";
2157
- import { Displace } from "libnoise-ts/module/transformer";
2114
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData24 } from "@awesome-flow/core/hooks";
2115
+ import { Displace } from "libnoise-simplex-ts";
2158
2116
  import { HandlesIncomingDataStatus as HandlesIncomingDataStatus4 } from "@awesome-flow/core/components";
2159
- import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
2117
+ import { jsx as jsx26, jsxs as jsxs23 } from "react/jsx-runtime";
2160
2118
  function NoiseDisplaceNode({ id, selected, data, type }) {
2161
- const updateComputedData = useUpdateNodeComputedData25();
2119
+ const updateComputedData = useUpdateNodeComputedData24();
2162
2120
  const onDataUpdated = useCallback19(
2163
2121
  (handleData) => {
2164
2122
  const sourceModule = handleData["source" /* sourceModule */];
@@ -2177,8 +2135,8 @@ function NoiseDisplaceNode({ id, selected, data, type }) {
2177
2135
  },
2178
2136
  []
2179
2137
  );
2180
- return /* @__PURE__ */ jsxs23(NodeContainer27, { id, selected, data, type, children: [
2181
- /* @__PURE__ */ jsx27(
2138
+ return /* @__PURE__ */ jsxs23(NodeContainer26, { id, selected, data, type, children: [
2139
+ /* @__PURE__ */ jsx26(
2182
2140
  HandlesIncomingDataStatus4,
2183
2141
  {
2184
2142
  nodeId: id,
@@ -2189,22 +2147,22 @@ function NoiseDisplaceNode({ id, selected, data, type }) {
2189
2147
  resetComputedData: true
2190
2148
  }
2191
2149
  ),
2192
- /* @__PURE__ */ jsx27(NodeTrackConnections22, { handles: data.handles, nodeId: id, type: "target" })
2150
+ /* @__PURE__ */ jsx26(NodeTrackConnections22, { handles: data.handles, nodeId: id, type: "target" })
2193
2151
  ] });
2194
2152
  }
2195
2153
  var noise_displace_node_default = NoiseDisplaceNode;
2196
2154
 
2197
2155
  // src/nodes/transformers/noise-rotate-point-node.tsx
2198
- import { NodeContainer as NodeContainer28, NodeTrackConnections as NodeTrackConnections23 } from "@awesome-flow/core/layout";
2199
- import { useEffect as useEffect19, useState as useState17 } from "react";
2156
+ import { NodeContainer as NodeContainer27, NodeTrackConnections as NodeTrackConnections23 } from "@awesome-flow/core/layout";
2157
+ import { useEffect as useEffect18, useState as useState17 } from "react";
2200
2158
  import {
2201
2159
  useIncomingComputedData as useIncomingComputedData13,
2202
- useUpdateNodeComputedData as useUpdateNodeComputedData26,
2160
+ useUpdateNodeComputedData as useUpdateNodeComputedData25,
2203
2161
  useUpdateNodeData as useUpdateNodeData12
2204
2162
  } from "@awesome-flow/core/hooks";
2205
2163
  import { Group as Group12, NumberInput as NumberInput11, Stack as Stack12 } from "@mantine/core";
2206
- import { RotatePoint } from "libnoise-ts/module/transformer";
2207
- import { jsx as jsx28, jsxs as jsxs24 } from "react/jsx-runtime";
2164
+ import { RotatePoint } from "libnoise-simplex-ts";
2165
+ import { jsx as jsx27, jsxs as jsxs24 } from "react/jsx-runtime";
2208
2166
  function NoiseRotatePointNode({
2209
2167
  id,
2210
2168
  selected,
@@ -2216,19 +2174,19 @@ function NoiseRotatePointNode({
2216
2174
  const [zAngle, setZAngle] = useState17(data.zAngle);
2217
2175
  const incoming = useIncomingComputedData13(id);
2218
2176
  const updateNodeData = useUpdateNodeData12();
2219
- const updateComputedData = useUpdateNodeComputedData26();
2220
- useEffect19(() => {
2177
+ const updateComputedData = useUpdateNodeComputedData25();
2178
+ useEffect18(() => {
2221
2179
  if (incoming?.length) {
2222
2180
  const module = new RotatePoint(incoming[0].module, xAngle, yAngle, zAngle);
2223
2181
  updateComputedData(id, { module });
2224
2182
  }
2225
2183
  updateNodeData(id, { xAngle, yAngle, zAngle });
2226
2184
  }, [id, updateComputedData, updateNodeData, incoming, xAngle, yAngle, zAngle]);
2227
- return /* @__PURE__ */ jsxs24(NodeContainer28, { id, selected, data, type, children: [
2185
+ return /* @__PURE__ */ jsxs24(NodeContainer27, { id, selected, data, type, children: [
2228
2186
  /* @__PURE__ */ jsxs24(Stack12, { children: [
2229
2187
  /* @__PURE__ */ jsxs24(Group12, { children: [
2230
2188
  "X Angle:",
2231
- /* @__PURE__ */ jsx28(
2189
+ /* @__PURE__ */ jsx27(
2232
2190
  NumberInput11,
2233
2191
  {
2234
2192
  size: "xs",
@@ -2241,7 +2199,7 @@ function NoiseRotatePointNode({
2241
2199
  ] }),
2242
2200
  /* @__PURE__ */ jsxs24(Group12, { children: [
2243
2201
  "Y Angle:",
2244
- /* @__PURE__ */ jsx28(
2202
+ /* @__PURE__ */ jsx27(
2245
2203
  NumberInput11,
2246
2204
  {
2247
2205
  size: "xs",
@@ -2254,7 +2212,7 @@ function NoiseRotatePointNode({
2254
2212
  ] }),
2255
2213
  /* @__PURE__ */ jsxs24(Group12, { children: [
2256
2214
  "Z Angle:",
2257
- /* @__PURE__ */ jsx28(
2215
+ /* @__PURE__ */ jsx27(
2258
2216
  NumberInput11,
2259
2217
  {
2260
2218
  size: "xs",
@@ -2266,22 +2224,22 @@ function NoiseRotatePointNode({
2266
2224
  )
2267
2225
  ] })
2268
2226
  ] }),
2269
- /* @__PURE__ */ jsx28(NodeTrackConnections23, { handles: data.handles, nodeId: id, type: "target" })
2227
+ /* @__PURE__ */ jsx27(NodeTrackConnections23, { handles: data.handles, nodeId: id, type: "target" })
2270
2228
  ] });
2271
2229
  }
2272
2230
  var noise_rotate_point_node_default = NoiseRotatePointNode;
2273
2231
 
2274
2232
  // src/nodes/transformers/noise-scale-point-node.tsx
2275
- import { NodeContainer as NodeContainer29, NodeTrackConnections as NodeTrackConnections24 } from "@awesome-flow/core/layout";
2276
- import { useEffect as useEffect20, useState as useState18 } from "react";
2233
+ import { NodeContainer as NodeContainer28, NodeTrackConnections as NodeTrackConnections24 } from "@awesome-flow/core/layout";
2234
+ import { useEffect as useEffect19, useState as useState18 } from "react";
2277
2235
  import {
2278
2236
  useIncomingComputedData as useIncomingComputedData14,
2279
- useUpdateNodeComputedData as useUpdateNodeComputedData27,
2237
+ useUpdateNodeComputedData as useUpdateNodeComputedData26,
2280
2238
  useUpdateNodeData as useUpdateNodeData13
2281
2239
  } from "@awesome-flow/core/hooks";
2282
2240
  import { Group as Group13, NumberInput as NumberInput12, Stack as Stack13 } from "@mantine/core";
2283
- import { ScalePoint } from "libnoise-ts/module/transformer";
2284
- import { jsx as jsx29, jsxs as jsxs25 } from "react/jsx-runtime";
2241
+ import { ScalePoint } from "libnoise-simplex-ts";
2242
+ import { jsx as jsx28, jsxs as jsxs25 } from "react/jsx-runtime";
2285
2243
  function NoiseScalePointNode({
2286
2244
  id,
2287
2245
  selected,
@@ -2293,19 +2251,19 @@ function NoiseScalePointNode({
2293
2251
  const [zScale, setZScale] = useState18(data.zScale);
2294
2252
  const incoming = useIncomingComputedData14(id);
2295
2253
  const updateNodeData = useUpdateNodeData13();
2296
- const updateComputedData = useUpdateNodeComputedData27();
2297
- useEffect20(() => {
2254
+ const updateComputedData = useUpdateNodeComputedData26();
2255
+ useEffect19(() => {
2298
2256
  if (incoming?.length) {
2299
2257
  const module = new ScalePoint(incoming[0].module, xScale, yScale, zScale);
2300
2258
  updateComputedData(id, { module });
2301
2259
  }
2302
2260
  updateNodeData(id, { xScale, yScale, zScale });
2303
2261
  }, [id, incoming, updateComputedData, updateNodeData, xScale, yScale, zScale]);
2304
- return /* @__PURE__ */ jsxs25(NodeContainer29, { id, selected, data, type, children: [
2262
+ return /* @__PURE__ */ jsxs25(NodeContainer28, { id, selected, data, type, children: [
2305
2263
  /* @__PURE__ */ jsxs25(Stack13, { children: [
2306
2264
  /* @__PURE__ */ jsxs25(Group13, { children: [
2307
2265
  "X Scale:",
2308
- /* @__PURE__ */ jsx29(
2266
+ /* @__PURE__ */ jsx28(
2309
2267
  NumberInput12,
2310
2268
  {
2311
2269
  size: "xs",
@@ -2318,7 +2276,7 @@ function NoiseScalePointNode({
2318
2276
  ] }),
2319
2277
  /* @__PURE__ */ jsxs25(Group13, { children: [
2320
2278
  "Y Scale:",
2321
- /* @__PURE__ */ jsx29(
2279
+ /* @__PURE__ */ jsx28(
2322
2280
  NumberInput12,
2323
2281
  {
2324
2282
  size: "xs",
@@ -2331,7 +2289,7 @@ function NoiseScalePointNode({
2331
2289
  ] }),
2332
2290
  /* @__PURE__ */ jsxs25(Group13, { children: [
2333
2291
  "Z Scale:",
2334
- /* @__PURE__ */ jsx29(
2292
+ /* @__PURE__ */ jsx28(
2335
2293
  NumberInput12,
2336
2294
  {
2337
2295
  size: "xs",
@@ -2343,22 +2301,22 @@ function NoiseScalePointNode({
2343
2301
  )
2344
2302
  ] })
2345
2303
  ] }),
2346
- /* @__PURE__ */ jsx29(NodeTrackConnections24, { handles: data.handles, nodeId: id, type: "target" })
2304
+ /* @__PURE__ */ jsx28(NodeTrackConnections24, { handles: data.handles, nodeId: id, type: "target" })
2347
2305
  ] });
2348
2306
  }
2349
2307
  var noise_scale_point_node_default = NoiseScalePointNode;
2350
2308
 
2351
2309
  // src/nodes/transformers/noise-translate-point-node.tsx
2352
- import { NodeContainer as NodeContainer30, NodeTrackConnections as NodeTrackConnections25 } from "@awesome-flow/core/layout";
2353
- import { useEffect as useEffect21, useState as useState19 } from "react";
2310
+ import { NodeContainer as NodeContainer29, NodeTrackConnections as NodeTrackConnections25 } from "@awesome-flow/core/layout";
2311
+ import { useEffect as useEffect20, useState as useState19 } from "react";
2354
2312
  import {
2355
2313
  useIncomingComputedData as useIncomingComputedData15,
2356
- useUpdateNodeComputedData as useUpdateNodeComputedData28,
2314
+ useUpdateNodeComputedData as useUpdateNodeComputedData27,
2357
2315
  useUpdateNodeData as useUpdateNodeData14
2358
2316
  } from "@awesome-flow/core/hooks";
2359
2317
  import { Group as Group14, NumberInput as NumberInput13, Stack as Stack14 } from "@mantine/core";
2360
- import { TranslatePoint } from "libnoise-ts/module/transformer";
2361
- import { jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
2318
+ import { TranslatePoint } from "libnoise-simplex-ts";
2319
+ import { jsx as jsx29, jsxs as jsxs26 } from "react/jsx-runtime";
2362
2320
  function NoiseTranslatePointNode({
2363
2321
  id,
2364
2322
  selected,
@@ -2370,19 +2328,19 @@ function NoiseTranslatePointNode({
2370
2328
  const [translateZ, setTranslateZ] = useState19(data.translateZ);
2371
2329
  const incoming = useIncomingComputedData15(id);
2372
2330
  const updateNodeData = useUpdateNodeData14();
2373
- const updateComputedData = useUpdateNodeComputedData28();
2374
- useEffect21(() => {
2331
+ const updateComputedData = useUpdateNodeComputedData27();
2332
+ useEffect20(() => {
2375
2333
  if (incoming?.length) {
2376
2334
  const module = new TranslatePoint(incoming[0].module, translateX, translateY, translateZ);
2377
2335
  updateComputedData(id, { module });
2378
2336
  }
2379
2337
  updateNodeData(id, { translateX, translateY, translateZ });
2380
2338
  }, [id, incoming, translateX, translateY, translateZ, updateComputedData, updateNodeData]);
2381
- return /* @__PURE__ */ jsxs26(NodeContainer30, { id, selected, data, type, children: [
2339
+ return /* @__PURE__ */ jsxs26(NodeContainer29, { id, selected, data, type, children: [
2382
2340
  /* @__PURE__ */ jsxs26(Stack14, { children: [
2383
2341
  /* @__PURE__ */ jsxs26(Group14, { children: [
2384
2342
  "Translate X:",
2385
- /* @__PURE__ */ jsx30(
2343
+ /* @__PURE__ */ jsx29(
2386
2344
  NumberInput13,
2387
2345
  {
2388
2346
  size: "xs",
@@ -2395,7 +2353,7 @@ function NoiseTranslatePointNode({
2395
2353
  ] }),
2396
2354
  /* @__PURE__ */ jsxs26(Group14, { children: [
2397
2355
  "Translate Y:",
2398
- /* @__PURE__ */ jsx30(
2356
+ /* @__PURE__ */ jsx29(
2399
2357
  NumberInput13,
2400
2358
  {
2401
2359
  size: "xs",
@@ -2408,7 +2366,7 @@ function NoiseTranslatePointNode({
2408
2366
  ] }),
2409
2367
  /* @__PURE__ */ jsxs26(Group14, { children: [
2410
2368
  "Translate Z:",
2411
- /* @__PURE__ */ jsx30(
2369
+ /* @__PURE__ */ jsx29(
2412
2370
  NumberInput13,
2413
2371
  {
2414
2372
  size: "xs",
@@ -2420,18 +2378,18 @@ function NoiseTranslatePointNode({
2420
2378
  )
2421
2379
  ] })
2422
2380
  ] }),
2423
- /* @__PURE__ */ jsx30(NodeTrackConnections25, { handles: data.handles, nodeId: id, type: "target" })
2381
+ /* @__PURE__ */ jsx29(NodeTrackConnections25, { handles: data.handles, nodeId: id, type: "target" })
2424
2382
  ] });
2425
2383
  }
2426
2384
  var noise_translate_point_node_default = NoiseTranslatePointNode;
2427
2385
 
2428
2386
  // src/nodes/transformers/noise-turbulence-node .tsx
2429
- import { NodeContainer as NodeContainer31, NodeTrackConnections as NodeTrackConnections26 } from "@awesome-flow/core/layout";
2430
- import { useCallback as useCallback20, useEffect as useEffect22, useState as useState20 } from "react";
2431
- import { useIncomingComputedData as useIncomingComputedData16, useUpdateNodeComputedData as useUpdateNodeComputedData29 } from "@awesome-flow/core/hooks";
2432
- import { Turbulence } from "libnoise-ts/module/transformer";
2387
+ import { NodeContainer as NodeContainer30, NodeTrackConnections as NodeTrackConnections26 } from "@awesome-flow/core/layout";
2388
+ import { useCallback as useCallback20, useEffect as useEffect21, useState as useState20 } from "react";
2389
+ import { useIncomingComputedData as useIncomingComputedData16, useUpdateNodeComputedData as useUpdateNodeComputedData28 } from "@awesome-flow/core/hooks";
2390
+ import { Turbulence } from "libnoise-simplex-ts";
2433
2391
  import { NodePropertyVariables as NodePropertyVariables7 } from "@awesome-flow/core/components";
2434
- import { jsx as jsx31, jsxs as jsxs27 } from "react/jsx-runtime";
2392
+ import { jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
2435
2393
  function NoiseTurbulenceNode({
2436
2394
  id,
2437
2395
  selected,
@@ -2440,11 +2398,11 @@ function NoiseTurbulenceNode({
2440
2398
  }) {
2441
2399
  const [properties, setProperties] = useState20(null);
2442
2400
  const incoming = useIncomingComputedData16(id);
2443
- const updateComputedData = useUpdateNodeComputedData29();
2401
+ const updateComputedData = useUpdateNodeComputedData28();
2444
2402
  const onPropertiesChange = useCallback20((props) => {
2445
2403
  setProperties(props);
2446
2404
  }, []);
2447
- useEffect22(() => {
2405
+ useEffect21(() => {
2448
2406
  if (incoming?.length && properties) {
2449
2407
  const module = new Turbulence(
2450
2408
  incoming[0].module,
@@ -2456,9 +2414,9 @@ function NoiseTurbulenceNode({
2456
2414
  updateComputedData(id, { module });
2457
2415
  }
2458
2416
  }, [id, incoming, properties]);
2459
- return /* @__PURE__ */ jsxs27(NodeContainer31, { id, selected, data, type, children: [
2460
- /* @__PURE__ */ jsx31(NodePropertyVariables7, { data, nodeId: id, onPropertiesChange }),
2461
- /* @__PURE__ */ jsx31(NodeTrackConnections26, { handles: data.handles, nodeId: id, type: "target" })
2417
+ return /* @__PURE__ */ jsxs27(NodeContainer30, { id, selected, data, type, children: [
2418
+ /* @__PURE__ */ jsx30(NodePropertyVariables7, { data, nodeId: id, onPropertiesChange }),
2419
+ /* @__PURE__ */ jsx30(NodeTrackConnections26, { handles: data.handles, nodeId: id, type: "target" })
2462
2420
  ] });
2463
2421
  }
2464
2422
  var noise_turbulence_node_default = NoiseTurbulenceNode;
@@ -2604,36 +2562,9 @@ var NoiseRidgedMultiNodeTemplateFactory = class {
2604
2562
  };
2605
2563
  };
2606
2564
 
2607
- // src/templates/generators/noise-simplex-template.ts
2608
- import {
2609
- CoreHandleType as CoreHandleType4
2610
- } from "@awesome-flow/core/abstract";
2611
- import { Position as Position6 } from "@xyflow/system";
2612
- var NoiseSimplexNodeTemplateFactory = class {
2613
- template = {
2614
- type: "noise-simplex" /* noiseSimplex */,
2615
- group: "Noise Generators" /* noiseGenerators */,
2616
- data: {
2617
- title: "Simplex Noise"
2618
- },
2619
- handles: [
2620
- {
2621
- position: Position6.Left,
2622
- dataType: CoreHandleType4.variableProperty,
2623
- connection: "target"
2624
- },
2625
- {
2626
- position: Position6.Right,
2627
- dataType: "module" /* module */,
2628
- connection: "source"
2629
- }
2630
- ]
2631
- };
2632
- };
2633
-
2634
2565
  // src/templates/generators/noise-spheres-template.ts
2635
- import { CoreHandleType as CoreHandleType5 } from "@awesome-flow/core/abstract";
2636
- import { Position as Position7 } from "@xyflow/system";
2566
+ import { CoreHandleType as CoreHandleType4 } from "@awesome-flow/core/abstract";
2567
+ import { Position as Position6 } from "@xyflow/system";
2637
2568
  var NoiseSpheresNodeTemplateFactory = class {
2638
2569
  template = {
2639
2570
  type: "noise-spheres" /* noiseSpheres */,
@@ -2644,12 +2575,12 @@ var NoiseSpheresNodeTemplateFactory = class {
2644
2575
  },
2645
2576
  handles: [
2646
2577
  {
2647
- position: Position7.Left,
2648
- dataType: CoreHandleType5.variableProperty,
2578
+ position: Position6.Left,
2579
+ dataType: CoreHandleType4.variableProperty,
2649
2580
  connection: "target"
2650
2581
  },
2651
2582
  {
2652
- position: Position7.Right,
2583
+ position: Position6.Right,
2653
2584
  dataType: "module" /* module */,
2654
2585
  connection: "source"
2655
2586
  }
@@ -2658,8 +2589,8 @@ var NoiseSpheresNodeTemplateFactory = class {
2658
2589
  };
2659
2590
 
2660
2591
  // src/templates/generators/noise-voronoi-template.ts
2661
- import { CoreHandleType as CoreHandleType6 } from "@awesome-flow/core/abstract";
2662
- import { Position as Position8 } from "@xyflow/system";
2592
+ import { CoreHandleType as CoreHandleType5 } from "@awesome-flow/core/abstract";
2593
+ import { Position as Position7 } from "@xyflow/system";
2663
2594
  var NoiseVoronoiNodeTemplateFactory = class {
2664
2595
  template = {
2665
2596
  type: "noise-voronoi" /* noiseVoronoi */,
@@ -2673,12 +2604,12 @@ var NoiseVoronoiNodeTemplateFactory = class {
2673
2604
  },
2674
2605
  handles: [
2675
2606
  {
2676
- position: Position8.Left,
2677
- dataType: CoreHandleType6.variableProperty,
2607
+ position: Position7.Left,
2608
+ dataType: CoreHandleType5.variableProperty,
2678
2609
  connection: "target"
2679
2610
  },
2680
2611
  {
2681
- position: Position8.Right,
2612
+ position: Position7.Right,
2682
2613
  dataType: "module" /* module */,
2683
2614
  connection: "source"
2684
2615
  }
@@ -2687,7 +2618,7 @@ var NoiseVoronoiNodeTemplateFactory = class {
2687
2618
  };
2688
2619
 
2689
2620
  // src/templates/generators/position-const-template.ts
2690
- import { Position as Position9 } from "@xyflow/system";
2621
+ import { Position as Position8 } from "@xyflow/system";
2691
2622
  var PositionConstNodeTemplateFactory = class {
2692
2623
  template = {
2693
2624
  type: "position" /* position */,
@@ -2698,7 +2629,7 @@ var PositionConstNodeTemplateFactory = class {
2698
2629
  },
2699
2630
  handles: [
2700
2631
  {
2701
- position: Position9.Right,
2632
+ position: Position8.Right,
2702
2633
  dataType: "position" /* position */,
2703
2634
  connection: "source"
2704
2635
  }
@@ -2707,7 +2638,7 @@ var PositionConstNodeTemplateFactory = class {
2707
2638
  };
2708
2639
 
2709
2640
  // src/templates/generators/position-grid-template.ts
2710
- import { Position as Position10 } from "@xyflow/system";
2641
+ import { Position as Position9 } from "@xyflow/system";
2711
2642
  var PositionGridNodeTemplateFactory = class {
2712
2643
  template = {
2713
2644
  type: "grid" /* grid */,
@@ -2719,7 +2650,7 @@ var PositionGridNodeTemplateFactory = class {
2719
2650
  },
2720
2651
  handles: [
2721
2652
  {
2722
- position: Position10.Right,
2653
+ position: Position9.Right,
2723
2654
  dataType: "position" /* position */,
2724
2655
  connection: "source"
2725
2656
  }
@@ -2729,7 +2660,7 @@ var PositionGridNodeTemplateFactory = class {
2729
2660
 
2730
2661
  // src/templates/modifiers/noise-normalize-template.ts
2731
2662
  import { IDGenerator } from "@awesome-flow/core/utils";
2732
- import { Position as Position11 } from "@xyflow/system";
2663
+ import { Position as Position10 } from "@xyflow/system";
2733
2664
  var NoiseNormalizeNodeTemplateFactory = class {
2734
2665
  template = {
2735
2666
  id: IDGenerator.template(),
@@ -2742,13 +2673,13 @@ var NoiseNormalizeNodeTemplateFactory = class {
2742
2673
  },
2743
2674
  handles: [
2744
2675
  {
2745
- position: Position11.Left,
2676
+ position: Position10.Left,
2746
2677
  dataType: "module" /* module */,
2747
2678
  connection: "target",
2748
2679
  maxConnections: 1
2749
2680
  },
2750
2681
  {
2751
- position: Position11.Right,
2682
+ position: Position10.Right,
2752
2683
  dataType: "module" /* module */,
2753
2684
  connection: "source"
2754
2685
  }
@@ -2757,7 +2688,7 @@ var NoiseNormalizeNodeTemplateFactory = class {
2757
2688
  };
2758
2689
 
2759
2690
  // src/templates/output/noise-logger-template.ts
2760
- import { Position as Position12 } from "@xyflow/system";
2691
+ import { Position as Position11 } from "@xyflow/system";
2761
2692
  var NoiseLoggerNodeTemplateFactory = class {
2762
2693
  template = {
2763
2694
  type: "noise-logger" /* noiseLogger */,
@@ -2767,7 +2698,7 @@ var NoiseLoggerNodeTemplateFactory = class {
2767
2698
  },
2768
2699
  handles: [
2769
2700
  {
2770
- position: Position12.Left,
2701
+ position: Position11.Left,
2771
2702
  dataType: "noise" /* noise */,
2772
2703
  connection: "target"
2773
2704
  }
@@ -2776,7 +2707,7 @@ var NoiseLoggerNodeTemplateFactory = class {
2776
2707
  };
2777
2708
 
2778
2709
  // src/templates/output/noise-raw-texture-template.ts
2779
- import { Position as Position13 } from "@xyflow/system";
2710
+ import { Position as Position12 } from "@xyflow/system";
2780
2711
  var NoiseRawTextureTemplateFactory = class {
2781
2712
  template = {
2782
2713
  type: "texture-data" /* textureData */,
@@ -2786,13 +2717,13 @@ var NoiseRawTextureTemplateFactory = class {
2786
2717
  },
2787
2718
  handles: [
2788
2719
  {
2789
- position: Position13.Left,
2720
+ position: Position12.Left,
2790
2721
  dataType: "noise" /* noise */,
2791
2722
  connection: "target",
2792
2723
  maxConnections: 1
2793
2724
  },
2794
2725
  {
2795
- position: Position13.Right,
2726
+ position: Position12.Right,
2796
2727
  dataType: "texture" /* texture */,
2797
2728
  connection: "source"
2798
2729
  }
@@ -2801,7 +2732,7 @@ var NoiseRawTextureTemplateFactory = class {
2801
2732
  };
2802
2733
 
2803
2734
  // src/templates/output/position-logger-template.ts
2804
- import { Position as Position14 } from "@xyflow/system";
2735
+ import { Position as Position13 } from "@xyflow/system";
2805
2736
  var PositionLoggerNodeTemplateFactory = class {
2806
2737
  template = {
2807
2738
  type: "position-logger" /* positionLogger */,
@@ -2811,7 +2742,7 @@ var PositionLoggerNodeTemplateFactory = class {
2811
2742
  },
2812
2743
  handles: [
2813
2744
  {
2814
- position: Position14.Left,
2745
+ position: Position13.Left,
2815
2746
  dataType: "position" /* position */,
2816
2747
  connection: "target"
2817
2748
  }
@@ -2820,7 +2751,7 @@ var PositionLoggerNodeTemplateFactory = class {
2820
2751
  };
2821
2752
 
2822
2753
  // src/templates/modifiers/noise-combine-template.ts
2823
- import { Position as Position15 } from "@xyflow/system";
2754
+ import { Position as Position14 } from "@xyflow/system";
2824
2755
  var NoiseCombineNodeTemplateFactory = class {
2825
2756
  template = {
2826
2757
  type: "noise-combiner" /* noiseCombine */,
@@ -2831,13 +2762,13 @@ var NoiseCombineNodeTemplateFactory = class {
2831
2762
  },
2832
2763
  handles: [
2833
2764
  {
2834
- position: Position15.Left,
2765
+ position: Position14.Left,
2835
2766
  dataType: "module" /* module */,
2836
2767
  connection: "target",
2837
2768
  maxConnections: 2
2838
2769
  },
2839
2770
  {
2840
- position: Position15.Right,
2771
+ position: Position14.Right,
2841
2772
  dataType: "module" /* module */,
2842
2773
  connection: "source"
2843
2774
  }
@@ -2846,7 +2777,7 @@ var NoiseCombineNodeTemplateFactory = class {
2846
2777
  };
2847
2778
 
2848
2779
  // src/templates/modifiers/noise-clamp-template.ts
2849
- import { Position as Position16 } from "@xyflow/system";
2780
+ import { Position as Position15 } from "@xyflow/system";
2850
2781
  var NoiseClampNodeTemplateFactory = class {
2851
2782
  template = {
2852
2783
  type: "noise-clamp" /* noiseClamp */,
@@ -2858,13 +2789,13 @@ var NoiseClampNodeTemplateFactory = class {
2858
2789
  },
2859
2790
  handles: [
2860
2791
  {
2861
- position: Position16.Left,
2792
+ position: Position15.Left,
2862
2793
  dataType: "module" /* module */,
2863
2794
  connection: "target",
2864
2795
  maxConnections: 1
2865
2796
  },
2866
2797
  {
2867
- position: Position16.Right,
2798
+ position: Position15.Right,
2868
2799
  dataType: "module" /* module */,
2869
2800
  connection: "source"
2870
2801
  }
@@ -2873,7 +2804,7 @@ var NoiseClampNodeTemplateFactory = class {
2873
2804
  };
2874
2805
 
2875
2806
  // src/templates/modifiers/noise-abs-template.ts
2876
- import { Position as Position17 } from "@xyflow/system";
2807
+ import { Position as Position16 } from "@xyflow/system";
2877
2808
  var NoiseAbsNodeTemplateFactory = class {
2878
2809
  template = {
2879
2810
  type: "noise-abs" /* noiseAbs */,
@@ -2883,13 +2814,13 @@ var NoiseAbsNodeTemplateFactory = class {
2883
2814
  },
2884
2815
  handles: [
2885
2816
  {
2886
- position: Position17.Left,
2817
+ position: Position16.Left,
2887
2818
  dataType: "module" /* module */,
2888
2819
  connection: "target",
2889
2820
  maxConnections: 1
2890
2821
  },
2891
2822
  {
2892
- position: Position17.Right,
2823
+ position: Position16.Right,
2893
2824
  dataType: "module" /* module */,
2894
2825
  connection: "source"
2895
2826
  }
@@ -2898,7 +2829,7 @@ var NoiseAbsNodeTemplateFactory = class {
2898
2829
  };
2899
2830
 
2900
2831
  // src/templates/output/noise-output-template.ts
2901
- import { Position as Position18 } from "@xyflow/system";
2832
+ import { Position as Position17 } from "@xyflow/system";
2902
2833
  var NoiseOutputNodeTemplateFactory = class {
2903
2834
  template = {
2904
2835
  type: "noise-output" /* noiseOutput */,
@@ -2908,18 +2839,18 @@ var NoiseOutputNodeTemplateFactory = class {
2908
2839
  },
2909
2840
  handles: [
2910
2841
  {
2911
- position: Position18.Left,
2842
+ position: Position17.Left,
2912
2843
  dataType: "position" /* position */,
2913
2844
  connection: "target"
2914
2845
  },
2915
2846
  {
2916
- position: Position18.Left,
2847
+ position: Position17.Left,
2917
2848
  dataType: "module" /* module */,
2918
2849
  connection: "target",
2919
2850
  maxConnections: 1
2920
2851
  },
2921
2852
  {
2922
- position: Position18.Right,
2853
+ position: Position17.Right,
2923
2854
  dataType: "noise" /* noise */,
2924
2855
  connection: "source"
2925
2856
  }
@@ -2928,8 +2859,7 @@ var NoiseOutputNodeTemplateFactory = class {
2928
2859
  };
2929
2860
 
2930
2861
  // src/templates/modifiers/noise-curve-template.ts
2931
- import { CoreHandleType as CoreHandleType7 } from "@awesome-flow/core/abstract";
2932
- import { Position as Position19 } from "@xyflow/system";
2862
+ import { Position as Position18 } from "@xyflow/system";
2933
2863
  var NoiseCurveNodeTemplateFactory = class {
2934
2864
  template = {
2935
2865
  type: "noise-curve" /* noiseCurve */,
@@ -2940,18 +2870,18 @@ var NoiseCurveNodeTemplateFactory = class {
2940
2870
  },
2941
2871
  handles: [
2942
2872
  {
2943
- position: Position19.Left,
2873
+ position: Position18.Left,
2944
2874
  dataType: "module" /* module */,
2945
2875
  connection: "target",
2946
2876
  maxConnections: 1
2947
2877
  },
2878
+ // {
2879
+ // position: Position.Left,
2880
+ // dataType: CoreHandleType.variableProperty,
2881
+ // connection: 'target',
2882
+ // },
2948
2883
  {
2949
- position: Position19.Left,
2950
- dataType: CoreHandleType7.variableProperty,
2951
- connection: "target"
2952
- },
2953
- {
2954
- position: Position19.Right,
2884
+ position: Position18.Right,
2955
2885
  dataType: "module" /* module */,
2956
2886
  connection: "source"
2957
2887
  }
@@ -2960,7 +2890,7 @@ var NoiseCurveNodeTemplateFactory = class {
2960
2890
  };
2961
2891
 
2962
2892
  // src/templates/modifiers/noise-exponent-template.ts
2963
- import { Position as Position20 } from "@xyflow/system";
2893
+ import { Position as Position19 } from "@xyflow/system";
2964
2894
  var NoiseExponentNodeTemplateFactory = class {
2965
2895
  template = {
2966
2896
  type: "noise-exponent" /* noiseExponent */,
@@ -2971,13 +2901,13 @@ var NoiseExponentNodeTemplateFactory = class {
2971
2901
  },
2972
2902
  handles: [
2973
2903
  {
2974
- position: Position20.Left,
2904
+ position: Position19.Left,
2975
2905
  dataType: "module" /* module */,
2976
2906
  connection: "target",
2977
2907
  maxConnections: 1
2978
2908
  },
2979
2909
  {
2980
- position: Position20.Right,
2910
+ position: Position19.Right,
2981
2911
  dataType: "module" /* module */,
2982
2912
  connection: "source"
2983
2913
  }
@@ -2986,7 +2916,7 @@ var NoiseExponentNodeTemplateFactory = class {
2986
2916
  };
2987
2917
 
2988
2918
  // src/templates/modifiers/noise-invert-template.ts
2989
- import { Position as Position21 } from "@xyflow/system";
2919
+ import { Position as Position20 } from "@xyflow/system";
2990
2920
  var NoiseInvertNodeTemplateFactory = class {
2991
2921
  template = {
2992
2922
  type: "noise-invert" /* noiseInvert */,
@@ -2996,13 +2926,13 @@ var NoiseInvertNodeTemplateFactory = class {
2996
2926
  },
2997
2927
  handles: [
2998
2928
  {
2999
- position: Position21.Left,
2929
+ position: Position20.Left,
3000
2930
  dataType: "module" /* module */,
3001
2931
  connection: "target",
3002
2932
  maxConnections: 1
3003
2933
  },
3004
2934
  {
3005
- position: Position21.Right,
2935
+ position: Position20.Right,
3006
2936
  dataType: "module" /* module */,
3007
2937
  connection: "source"
3008
2938
  }
@@ -3011,7 +2941,7 @@ var NoiseInvertNodeTemplateFactory = class {
3011
2941
  };
3012
2942
 
3013
2943
  // src/templates/modifiers/noise-scalebias-template.ts
3014
- import { Position as Position22 } from "@xyflow/system";
2944
+ import { Position as Position21 } from "@xyflow/system";
3015
2945
  var NoiseScaleBiasNodeTemplateFactory = class {
3016
2946
  template = {
3017
2947
  type: "noise-scale-bias" /* noiseScaleBias */,
@@ -3023,13 +2953,13 @@ var NoiseScaleBiasNodeTemplateFactory = class {
3023
2953
  },
3024
2954
  handles: [
3025
2955
  {
3026
- position: Position22.Left,
2956
+ position: Position21.Left,
3027
2957
  dataType: "module" /* module */,
3028
2958
  connection: "target",
3029
2959
  maxConnections: 1
3030
2960
  },
3031
2961
  {
3032
- position: Position22.Right,
2962
+ position: Position21.Right,
3033
2963
  dataType: "module" /* module */,
3034
2964
  connection: "source"
3035
2965
  }
@@ -3038,7 +2968,7 @@ var NoiseScaleBiasNodeTemplateFactory = class {
3038
2968
  };
3039
2969
 
3040
2970
  // src/templates/modifiers/noise-terrace-template.ts
3041
- import { Position as Position23 } from "@xyflow/system";
2971
+ import { Position as Position22 } from "@xyflow/system";
3042
2972
  var NoiseTerraceNodeTemplateFactory = class {
3043
2973
  template = {
3044
2974
  type: "noise-terrace" /* noiseTerrace */,
@@ -3049,13 +2979,13 @@ var NoiseTerraceNodeTemplateFactory = class {
3049
2979
  },
3050
2980
  handles: [
3051
2981
  {
3052
- position: Position23.Left,
2982
+ position: Position22.Left,
3053
2983
  dataType: "module" /* module */,
3054
2984
  connection: "target",
3055
2985
  maxConnections: 1
3056
2986
  },
3057
2987
  {
3058
- position: Position23.Right,
2988
+ position: Position22.Right,
3059
2989
  dataType: "module" /* module */,
3060
2990
  connection: "source"
3061
2991
  }
@@ -3064,7 +2994,7 @@ var NoiseTerraceNodeTemplateFactory = class {
3064
2994
  };
3065
2995
 
3066
2996
  // src/templates/selectors/noise-blend-template.ts
3067
- import { Position as Position24 } from "@xyflow/system";
2997
+ import { Position as Position23 } from "@xyflow/system";
3068
2998
  var NoiseBlendNodeTemplateFactory = class {
3069
2999
  template = {
3070
3000
  type: "noise-blend" /* noiseBlend */,
@@ -3074,7 +3004,7 @@ var NoiseBlendNodeTemplateFactory = class {
3074
3004
  },
3075
3005
  handles: [
3076
3006
  {
3077
- position: Position24.Left,
3007
+ position: Position23.Left,
3078
3008
  dataType: "module" /* module */,
3079
3009
  connection: "target",
3080
3010
  label: "Source Modules",
@@ -3083,7 +3013,7 @@ var NoiseBlendNodeTemplateFactory = class {
3083
3013
  minConnections: 2
3084
3014
  },
3085
3015
  {
3086
- position: Position24.Left,
3016
+ position: Position23.Left,
3087
3017
  dataType: "module" /* module */,
3088
3018
  dataId: "control" /* control */,
3089
3019
  connection: "target",
@@ -3091,7 +3021,7 @@ var NoiseBlendNodeTemplateFactory = class {
3091
3021
  maxConnections: 1
3092
3022
  },
3093
3023
  {
3094
- position: Position24.Right,
3024
+ position: Position23.Right,
3095
3025
  dataType: "module" /* module */,
3096
3026
  dataId: "output" /* output */,
3097
3027
  connection: "source"
@@ -3101,7 +3031,7 @@ var NoiseBlendNodeTemplateFactory = class {
3101
3031
  };
3102
3032
 
3103
3033
  // src/templates/selectors/noise-select-template.ts
3104
- import { Position as Position25 } from "@xyflow/system";
3034
+ import { Position as Position24 } from "@xyflow/system";
3105
3035
  var NoiseSelectNodeTemplateFactory = class {
3106
3036
  template = {
3107
3037
  type: "noise-select" /* noiseSelect */,
@@ -3114,7 +3044,7 @@ var NoiseSelectNodeTemplateFactory = class {
3114
3044
  },
3115
3045
  handles: [
3116
3046
  {
3117
- position: Position25.Left,
3047
+ position: Position24.Left,
3118
3048
  dataType: "module" /* module */,
3119
3049
  dataId: "source" /* source */,
3120
3050
  connection: "target",
@@ -3123,7 +3053,7 @@ var NoiseSelectNodeTemplateFactory = class {
3123
3053
  minConnections: 2
3124
3054
  },
3125
3055
  {
3126
- position: Position25.Left,
3056
+ position: Position24.Left,
3127
3057
  dataType: "module" /* module */,
3128
3058
  dataId: "control" /* control */,
3129
3059
  connection: "target",
@@ -3131,7 +3061,7 @@ var NoiseSelectNodeTemplateFactory = class {
3131
3061
  maxConnections: 1
3132
3062
  },
3133
3063
  {
3134
- position: Position25.Right,
3064
+ position: Position24.Right,
3135
3065
  dataType: "module" /* module */,
3136
3066
  dataId: "output" /* output */,
3137
3067
  connection: "source"
@@ -3141,7 +3071,7 @@ var NoiseSelectNodeTemplateFactory = class {
3141
3071
  };
3142
3072
 
3143
3073
  // src/templates/transformers/noise-displace-template.ts
3144
- import { Position as Position26 } from "@xyflow/system";
3074
+ import { Position as Position25 } from "@xyflow/system";
3145
3075
  var NoiseDisplaceNodeTemplateFactory = class {
3146
3076
  template = {
3147
3077
  type: "noise-displace" /* noiseDisplace */,
@@ -3151,7 +3081,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3151
3081
  },
3152
3082
  handles: [
3153
3083
  {
3154
- position: Position26.Left,
3084
+ position: Position25.Left,
3155
3085
  connection: "target",
3156
3086
  label: "Source Module",
3157
3087
  dataType: "module" /* module */,
@@ -3159,7 +3089,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3159
3089
  maxConnections: 1
3160
3090
  },
3161
3091
  {
3162
- position: Position26.Left,
3092
+ position: Position25.Left,
3163
3093
  connection: "target",
3164
3094
  label: "X Module",
3165
3095
  dataType: "module" /* module */,
@@ -3167,7 +3097,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3167
3097
  maxConnections: 1
3168
3098
  },
3169
3099
  {
3170
- position: Position26.Left,
3100
+ position: Position25.Left,
3171
3101
  connection: "target",
3172
3102
  label: "Y Module",
3173
3103
  dataType: "module" /* module */,
@@ -3175,7 +3105,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3175
3105
  maxConnections: 1
3176
3106
  },
3177
3107
  {
3178
- position: Position26.Left,
3108
+ position: Position25.Left,
3179
3109
  connection: "target",
3180
3110
  label: "Z Module",
3181
3111
  dataType: "module" /* module */,
@@ -3183,7 +3113,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3183
3113
  maxConnections: 1
3184
3114
  },
3185
3115
  {
3186
- position: Position26.Right,
3116
+ position: Position25.Right,
3187
3117
  dataType: "module" /* module */,
3188
3118
  dataId: "output" /* output */,
3189
3119
  connection: "source"
@@ -3193,7 +3123,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3193
3123
  };
3194
3124
 
3195
3125
  // src/templates/transformers/noise-rotate-point-template.ts
3196
- import { Position as Position27 } from "@xyflow/system";
3126
+ import { Position as Position26 } from "@xyflow/system";
3197
3127
  var NoiseRotatePointNodeTemplateFactory = class {
3198
3128
  template = {
3199
3129
  type: "noise-rotate-point" /* noiseRotatePoint */,
@@ -3206,14 +3136,14 @@ var NoiseRotatePointNodeTemplateFactory = class {
3206
3136
  },
3207
3137
  handles: [
3208
3138
  {
3209
- position: Position27.Left,
3139
+ position: Position26.Left,
3210
3140
  dataType: "module" /* module */,
3211
3141
  connection: "target",
3212
3142
  label: "Source Module",
3213
3143
  maxConnections: 1
3214
3144
  },
3215
3145
  {
3216
- position: Position27.Right,
3146
+ position: Position26.Right,
3217
3147
  dataType: "module" /* module */,
3218
3148
  connection: "source"
3219
3149
  }
@@ -3222,7 +3152,7 @@ var NoiseRotatePointNodeTemplateFactory = class {
3222
3152
  };
3223
3153
 
3224
3154
  // src/templates/transformers/noise-scale-point-template.ts
3225
- import { Position as Position28 } from "@xyflow/system";
3155
+ import { Position as Position27 } from "@xyflow/system";
3226
3156
  var NoiseScalePointNodeTemplateFactory = class {
3227
3157
  template = {
3228
3158
  type: "noise-scale-point" /* noiseScalePoint */,
@@ -3235,14 +3165,14 @@ var NoiseScalePointNodeTemplateFactory = class {
3235
3165
  },
3236
3166
  handles: [
3237
3167
  {
3238
- position: Position28.Left,
3168
+ position: Position27.Left,
3239
3169
  dataType: "module" /* module */,
3240
3170
  connection: "target",
3241
3171
  label: "Source Module",
3242
3172
  maxConnections: 1
3243
3173
  },
3244
3174
  {
3245
- position: Position28.Right,
3175
+ position: Position27.Right,
3246
3176
  dataType: "module" /* module */,
3247
3177
  connection: "source"
3248
3178
  }
@@ -3251,7 +3181,7 @@ var NoiseScalePointNodeTemplateFactory = class {
3251
3181
  };
3252
3182
 
3253
3183
  // src/templates/transformers/noise-translate-point-template.ts
3254
- import { Position as Position29 } from "@xyflow/system";
3184
+ import { Position as Position28 } from "@xyflow/system";
3255
3185
  var NoiseTranslatePointNodeTemplateFactory = class {
3256
3186
  template = {
3257
3187
  type: "noise-translate-point" /* noiseTranslatePoint */,
@@ -3264,14 +3194,14 @@ var NoiseTranslatePointNodeTemplateFactory = class {
3264
3194
  },
3265
3195
  handles: [
3266
3196
  {
3267
- position: Position29.Left,
3197
+ position: Position28.Left,
3268
3198
  dataType: "module" /* module */,
3269
3199
  connection: "target",
3270
3200
  label: "Source Module",
3271
3201
  maxConnections: 1
3272
3202
  },
3273
3203
  {
3274
- position: Position29.Right,
3204
+ position: Position28.Right,
3275
3205
  dataType: "module" /* module */,
3276
3206
  connection: "source"
3277
3207
  }
@@ -3280,8 +3210,8 @@ var NoiseTranslatePointNodeTemplateFactory = class {
3280
3210
  };
3281
3211
 
3282
3212
  // src/templates/transformers/noise-turbulence-template.ts
3283
- import { CoreHandleType as CoreHandleType8 } from "@awesome-flow/core/abstract";
3284
- import { Position as Position30 } from "@xyflow/system";
3213
+ import { CoreHandleType as CoreHandleType6 } from "@awesome-flow/core/abstract";
3214
+ import { Position as Position29 } from "@xyflow/system";
3285
3215
  var NoiseTurbulenceNodeTemplateFactory = class {
3286
3216
  template = {
3287
3217
  type: "noise-turbulence" /* noiseTurbulence */,
@@ -3295,20 +3225,20 @@ var NoiseTurbulenceNodeTemplateFactory = class {
3295
3225
  },
3296
3226
  handles: [
3297
3227
  {
3298
- position: Position30.Left,
3228
+ position: Position29.Left,
3299
3229
  dataType: "module" /* module */,
3300
3230
  connection: "target",
3301
3231
  label: "Source Module",
3302
3232
  maxConnections: 1
3303
3233
  },
3304
3234
  {
3305
- position: Position30.Left,
3306
- dataType: CoreHandleType8.variableProperty,
3235
+ position: Position29.Left,
3236
+ dataType: CoreHandleType6.variableProperty,
3307
3237
  label: "Variable Properties",
3308
3238
  connection: "target"
3309
3239
  },
3310
3240
  {
3311
- position: Position30.Right,
3241
+ position: Position29.Right,
3312
3242
  dataType: "module" /* module */,
3313
3243
  connection: "source"
3314
3244
  }
@@ -3317,9 +3247,9 @@ var NoiseTurbulenceNodeTemplateFactory = class {
3317
3247
  };
3318
3248
 
3319
3249
  // src/templates/generators/noise-billow-template.ts
3320
- import { CoreHandleType as CoreHandleType9 } from "@awesome-flow/core/abstract";
3250
+ import { CoreHandleType as CoreHandleType7 } from "@awesome-flow/core/abstract";
3321
3251
  import { IDGenerator as IDGenerator2 } from "@awesome-flow/core/utils";
3322
- import { Position as Position31 } from "@xyflow/system";
3252
+ import { Position as Position30 } from "@xyflow/system";
3323
3253
  var NoiseBillowNodeTemplateFactory = class {
3324
3254
  template = {
3325
3255
  id: IDGenerator2.template(),
@@ -3335,12 +3265,12 @@ var NoiseBillowNodeTemplateFactory = class {
3335
3265
  },
3336
3266
  handles: [
3337
3267
  {
3338
- position: Position31.Left,
3339
- dataType: CoreHandleType9.variableProperty,
3268
+ position: Position30.Left,
3269
+ dataType: CoreHandleType7.variableProperty,
3340
3270
  connection: "target"
3341
3271
  },
3342
3272
  {
3343
- position: Position31.Right,
3273
+ position: Position30.Right,
3344
3274
  dataType: "module" /* module */,
3345
3275
  connection: "source"
3346
3276
  }
@@ -3353,7 +3283,7 @@ import {
3353
3283
  CoreTemplateGroup
3354
3284
  } from "@awesome-flow/core/abstract";
3355
3285
  import { IDGenerator as IDGenerator3 } from "@awesome-flow/core/utils";
3356
- import { Position as Position32 } from "@xyflow/system";
3286
+ import { Position as Position31 } from "@xyflow/system";
3357
3287
  var ModuleGroupNodeTemplateFactory = class {
3358
3288
  template = {
3359
3289
  id: IDGenerator3.template(),
@@ -3373,14 +3303,14 @@ var ModuleGroupNodeTemplateFactory = class {
3373
3303
  },
3374
3304
  handles: [
3375
3305
  {
3376
- position: Position32.Bottom,
3306
+ position: Position31.Bottom,
3377
3307
  dataType: "module" /* module */,
3378
3308
  connection: "target",
3379
3309
  maxConnections: 1,
3380
3310
  hideOnCollapse: true
3381
3311
  },
3382
3312
  {
3383
- position: Position32.Right,
3313
+ position: Position31.Right,
3384
3314
  dataType: "module" /* module */,
3385
3315
  connection: "source"
3386
3316
  }
@@ -3389,18 +3319,18 @@ var ModuleGroupNodeTemplateFactory = class {
3389
3319
  };
3390
3320
 
3391
3321
  // src/nodes/groups/module-group-node.tsx
3392
- import { NodeContainer as NodeContainer32, NodeCollapse, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
3322
+ import { NodeContainer as NodeContainer31, NodeCollapse, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
3393
3323
  import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
3394
- import { useCallback as useCallback21, useEffect as useEffect23, useMemo as useMemo12 } from "react";
3324
+ import { useCallback as useCallback21, useEffect as useEffect22, useMemo as useMemo11 } from "react";
3395
3325
  import { shallow } from "zustand/shallow";
3396
3326
  import { Badge, Group as Group15 } from "@mantine/core";
3397
3327
  import {
3398
3328
  useFlowStore,
3399
3329
  useIncomingComputedData as useIncomingComputedData17,
3400
3330
  useInteractiveStore,
3401
- useUpdateNodeComputedData as useUpdateNodeComputedData30
3331
+ useUpdateNodeComputedData as useUpdateNodeComputedData29
3402
3332
  } from "@awesome-flow/core/hooks";
3403
- import { jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
3333
+ import { jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
3404
3334
  function ModuleGroupNode({
3405
3335
  id,
3406
3336
  selected,
@@ -3421,10 +3351,10 @@ function ModuleGroupNode({
3421
3351
  useCallback21((state) => state.nodeIntersectionTargets[id], [id]),
3422
3352
  shallow
3423
3353
  );
3424
- useEffect23(() => {
3354
+ useEffect22(() => {
3425
3355
  updateNodeInternals(id);
3426
3356
  }, [width, height]);
3427
- useEffect23(() => {
3357
+ useEffect22(() => {
3428
3358
  triggerNodeChanges([
3429
3359
  {
3430
3360
  id,
@@ -3436,33 +3366,33 @@ function ModuleGroupNode({
3436
3366
  const onCollapsed = useCallback21((collapsed) => {
3437
3367
  setGroupCollapsed(id, collapsed);
3438
3368
  }, []);
3439
- const size = useMemo12(() => {
3369
+ const size = useMemo11(() => {
3440
3370
  return {
3441
3371
  width: data.initialSize?.width || 100,
3442
3372
  height: data.initialSize?.height || 50
3443
3373
  };
3444
3374
  }, [data.initialSize]);
3445
3375
  const incomingModules = useIncomingComputedData17(id);
3446
- const updateComputedData = useUpdateNodeComputedData30();
3447
- useEffect23(() => {
3376
+ const updateComputedData = useUpdateNodeComputedData29();
3377
+ useEffect22(() => {
3448
3378
  if (incomingModules?.length) {
3449
3379
  const { module } = incomingModules[0];
3450
3380
  updateComputedData(id, { module });
3451
3381
  }
3452
3382
  }, [incomingModules]);
3453
3383
  return /* @__PURE__ */ jsxs28(
3454
- NodeContainer32,
3384
+ NodeContainer31,
3455
3385
  {
3456
3386
  id,
3457
3387
  selected,
3458
3388
  data,
3459
- title: /* @__PURE__ */ jsx32(Group15, { justify: "space-between", children: /* @__PURE__ */ jsxs28(Group15, { gap: "xs", children: [
3460
- /* @__PURE__ */ jsx32(Badge, { size: "xs", variant: "outline", radius: "xs", color: "gray", children: groupNodes?.length || 0 }),
3461
- /* @__PURE__ */ jsx32(NodeCollapse, { nodeId: id, isCollapsed: data.isCollapsed, onCollapsed })
3389
+ title: /* @__PURE__ */ jsx31(Group15, { justify: "space-between", children: /* @__PURE__ */ jsxs28(Group15, { gap: "xs", children: [
3390
+ /* @__PURE__ */ jsx31(Badge, { size: "xs", variant: "outline", radius: "xs", color: "gray", children: groupNodes?.length || 0 }),
3391
+ /* @__PURE__ */ jsx31(NodeCollapse, { nodeId: id, isCollapsed: data.isCollapsed, onCollapsed })
3462
3392
  ] }) }),
3463
3393
  type,
3464
3394
  children: [
3465
- /* @__PURE__ */ jsx32(
3395
+ /* @__PURE__ */ jsx31(
3466
3396
  NodeResizer,
3467
3397
  {
3468
3398
  nodeId: id,
@@ -3471,7 +3401,7 @@ function ModuleGroupNode({
3471
3401
  isVisible: selected && !data.isCollapsed
3472
3402
  }
3473
3403
  ),
3474
- /* @__PURE__ */ jsx32(NodeTrackConnections27, { handles: data.handles, nodeId: id, type: "target" })
3404
+ /* @__PURE__ */ jsx31(NodeTrackConnections27, { handles: data.handles, nodeId: id, type: "target" })
3475
3405
  ]
3476
3406
  }
3477
3407
  );
@@ -3488,7 +3418,6 @@ var NoiseNodeType = /* @__PURE__ */ ((NoiseNodeType2) => {
3488
3418
  NoiseNodeType2["noiseLogger"] = "noise-logger";
3489
3419
  NoiseNodeType2["noiseOutput"] = "noise-output";
3490
3420
  NoiseNodeType2["noiseConst"] = "noise-constant";
3491
- NoiseNodeType2["noiseSimplex"] = "noise-simplex";
3492
3421
  NoiseNodeType2["noiseBillow"] = "noise-billow";
3493
3422
  NoiseNodeType2["noiseCheckerboard"] = "noise-checkerboard";
3494
3423
  NoiseNodeType2["noiseNormalize"] = "noise-normalize";
@@ -3524,7 +3453,6 @@ var noiseNodeTypes = {
3524
3453
  ["position-logger" /* positionLogger */]: positions_logger_node_default,
3525
3454
  ["noise-constant" /* noiseConst */]: noise_const_node_default,
3526
3455
  ["noise-billow" /* noiseBillow */]: noise_billow_node_default,
3527
- ["noise-simplex" /* noiseSimplex */]: noise_simplex_node_default,
3528
3456
  ["noise-checkerboard" /* noiseCheckerboard */]: noise_checkerboard_node_default,
3529
3457
  ["noise-cylinders" /* noiseCylinders */]: noise_cylinders_node_default,
3530
3458
  ["noise-perlin" /* noisePerlin */]: noise_perlin_node_default,
@@ -3550,7 +3478,6 @@ var noiseNodeTypes = {
3550
3478
  };
3551
3479
  var noiseNodeTemplates = {
3552
3480
  ["noise-output" /* noiseOutput */]: new NoiseOutputNodeTemplateFactory(),
3553
- ["noise-simplex" /* noiseSimplex */]: new NoiseSimplexNodeTemplateFactory(),
3554
3481
  ["noise-billow" /* noiseBillow */]: new NoiseBillowNodeTemplateFactory(),
3555
3482
  ["noise-checkerboard" /* noiseCheckerboard */]: new NoiseCheckerboardNodeTemplateFactory(),
3556
3483
  ["noise-normalize" /* noiseNormalize */]: new NoiseNormalizeNodeTemplateFactory(),