@awesome-flow/noise 0.5.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 +701 -769
  2. package/dist/abstract/index.d.cts +6 -12
  3. package/dist/abstract/index.d.ts +6 -12
  4. package/dist/abstract/index.js +498 -568
  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 +642 -710
  18. package/dist/nodes/index.d.cts +3 -6
  19. package/dist/nodes/index.d.ts +3 -6
  20. package/dist/nodes/index.js +443 -512
  21. package/dist/nodes/modifiers/index.cjs +77 -89
  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 +73 -85
  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
@@ -24,43 +24,33 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  mod
25
25
  ));
26
26
 
27
- // ../../node_modules/fast-deep-equal/index.js
27
+ // ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
28
28
  var require_fast_deep_equal = __commonJS({
29
- "../../node_modules/fast-deep-equal/index.js"(exports, module) {
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
  }
@@ -72,7 +62,7 @@ var require_fast_deep_equal = __commonJS({
72
62
  // src/nodes/generators/noise-billow-node.tsx
73
63
  import { NodeContainer, NodeTrackConnections } from "@awesome-flow/core/layout";
74
64
  import { useCallback, useMemo } from "react";
75
- import { Billow } from "libnoise-ts/module/generator";
65
+ import { Billow } from "libnoise-simplex-ts";
76
66
  import { useUpdateNodeComputedData } from "@awesome-flow/core/hooks";
77
67
  import { NodePropertyVariables } from "@awesome-flow/core/components";
78
68
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -98,7 +88,7 @@ var noise_billow_node_default = NoiseBillowNode;
98
88
  // src/nodes/generators/noise-checkerboard-node.tsx
99
89
  import { NodeContainer as NodeContainer2 } from "@awesome-flow/core/layout";
100
90
  import { useEffect, useMemo as useMemo2 } from "react";
101
- import { Checkerboard } from "libnoise-ts/module/generator";
91
+ import { Checkerboard } from "libnoise-simplex-ts";
102
92
  import { useUpdateNodeComputedData as useUpdateNodeComputedData2 } from "@awesome-flow/core/hooks";
103
93
  import { jsx as jsx2 } from "react/jsx-runtime";
104
94
  function NoiseCheckerboardNode({ id, selected, data, type }) {
@@ -116,7 +106,7 @@ import { NodeContainer as NodeContainer3 } from "@awesome-flow/core/layout";
116
106
  import { useEffect as useEffect2, useMemo as useMemo3, useState } from "react";
117
107
  import { Group, NumberInput, Stack } from "@mantine/core";
118
108
  import { useUpdateNodeComputedData as useUpdateNodeComputedData3, useUpdateNodeData } from "@awesome-flow/core/hooks";
119
- import { Const } from "libnoise-ts/module/generator";
109
+ import { Const } from "libnoise-simplex-ts";
120
110
  import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
121
111
  function NoiseConstNode({ id, selected, data, type }) {
122
112
  const [min, setMin] = useState(data.min);
@@ -156,7 +146,7 @@ var noise_const_node_default = NoiseConstNode;
156
146
  // src/nodes/generators/noise-cylinders-node.tsx
157
147
  import { NodeContainer as NodeContainer4, NodeTrackConnections as NodeTrackConnections2 } from "@awesome-flow/core/layout";
158
148
  import { useCallback as useCallback2, useMemo as useMemo4 } from "react";
159
- import { Cylinders } from "libnoise-ts/module/generator";
149
+ import { Cylinders } from "libnoise-simplex-ts";
160
150
  import { useUpdateNodeComputedData as useUpdateNodeComputedData4 } from "@awesome-flow/core/hooks";
161
151
  import { NodePropertyVariables as NodePropertyVariables2 } from "@awesome-flow/core/components";
162
152
  import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
@@ -182,7 +172,7 @@ var noise_cylinders_node_default = NoiseCylindersNode;
182
172
  // src/nodes/generators/noise-perlin-node.tsx
183
173
  import { NodeContainer as NodeContainer5, NodeTrackConnections as NodeTrackConnections3 } from "@awesome-flow/core/layout";
184
174
  import { useCallback as useCallback3, useMemo as useMemo5 } from "react";
185
- import { Perlin } from "libnoise-ts/module/generator";
175
+ import { Perlin } from "libnoise-simplex-ts";
186
176
  import { useUpdateNodeComputedData as useUpdateNodeComputedData5 } from "@awesome-flow/core/hooks";
187
177
  import { NodePropertyVariables as NodePropertyVariables3 } from "@awesome-flow/core/components";
188
178
  import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
@@ -208,7 +198,7 @@ var noise_perlin_node_default = NoisePerlinNode;
208
198
  // src/nodes/generators/noise-ridgedmulti-node.tsx
209
199
  import { NodeContainer as NodeContainer6, NodeTrackConnections as NodeTrackConnections4 } from "@awesome-flow/core/layout";
210
200
  import { useCallback as useCallback4, useMemo as useMemo6 } from "react";
211
- import { RidgedMulti } from "libnoise-ts/module/generator";
201
+ import { RidgedMulti } from "libnoise-simplex-ts";
212
202
  import { useUpdateNodeComputedData as useUpdateNodeComputedData6 } from "@awesome-flow/core/hooks";
213
203
  import { NodePropertyVariables as NodePropertyVariables4 } from "@awesome-flow/core/components";
214
204
  import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
@@ -226,67 +216,36 @@ function NoiseRidgedMultiNode({ id, selected, data, type }) {
226
216
  }
227
217
  var noise_ridgedmulti_node_default = NoiseRidgedMultiNode;
228
218
 
229
- // src/nodes/generators/noise-simplex-node.tsx
230
- import { NodeContainer as NodeContainer7 } from "@awesome-flow/core/layout";
231
- import { useEffect as useEffect3, useMemo as useMemo7 } from "react";
232
- import { useUpdateNodeComputedData as useUpdateNodeComputedData7 } from "@awesome-flow/core/hooks";
233
-
234
- // src/modules/simplex-module.ts
235
- import Module from "libnoise-ts/module/Module";
236
- import { createNoise3D } from "simplex-noise";
237
- var SimplexModule = class extends Module {
238
- noise;
239
- constructor(random) {
240
- super();
241
- this.noise = createNoise3D(random);
242
- }
243
- getValue(x, y, z) {
244
- return this.noise(x, y, z);
245
- }
246
- };
247
-
248
- // src/nodes/generators/noise-simplex-node.tsx
249
- import { jsx as jsx7 } from "react/jsx-runtime";
250
- function NoiseSimplexNode({ id, selected, data, type }) {
251
- const updateComputedData = useUpdateNodeComputedData7();
252
- const module = useMemo7(() => new SimplexModule(), []);
253
- useEffect3(() => {
254
- updateComputedData(id, { module });
255
- }, []);
256
- return /* @__PURE__ */ jsx7(NodeContainer7, { id, selected, data, type });
257
- }
258
- var noise_simplex_node_default = NoiseSimplexNode;
259
-
260
219
  // src/nodes/generators/noise-spheres-node.tsx
261
- import { NodeContainer as NodeContainer8, NodeTrackConnections as NodeTrackConnections5 } from "@awesome-flow/core/layout";
262
- import { useCallback as useCallback5, useMemo as useMemo8 } from "react";
263
- import { Spheres } from "libnoise-ts/module/generator";
264
- import { useUpdateNodeComputedData as useUpdateNodeComputedData8 } from "@awesome-flow/core/hooks";
220
+ import { NodeContainer as NodeContainer7, NodeTrackConnections as NodeTrackConnections5 } from "@awesome-flow/core/layout";
221
+ import { useCallback as useCallback5, useMemo as useMemo7 } from "react";
222
+ import { Spheres } from "libnoise-simplex-ts";
223
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData7 } from "@awesome-flow/core/hooks";
265
224
  import { NodePropertyVariables as NodePropertyVariables5 } from "@awesome-flow/core/components";
266
- import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
225
+ import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
267
226
  function NoiseSpheresNode({ id, selected, data, type }) {
268
- const updateComputedData = useUpdateNodeComputedData8();
269
- const module = useMemo8(() => new Spheres(), []);
227
+ const updateComputedData = useUpdateNodeComputedData7();
228
+ const module = useMemo7(() => new Spheres(), []);
270
229
  const onPropertiesChange = useCallback5((properties) => {
271
230
  Object.keys(properties).forEach((k) => module[k] = properties[k].value);
272
231
  updateComputedData(id, { module });
273
232
  }, []);
274
- return /* @__PURE__ */ jsxs6(NodeContainer8, { id, selected, data, type, children: [
275
- /* @__PURE__ */ jsx8(NodePropertyVariables5, { data, nodeId: id, onPropertiesChange }),
276
- /* @__PURE__ */ jsx8(NodeTrackConnections5, { handles: data.handles, nodeId: id, type: "target" })
233
+ return /* @__PURE__ */ jsxs6(NodeContainer7, { id, selected, data, type, children: [
234
+ /* @__PURE__ */ jsx7(NodePropertyVariables5, { data, nodeId: id, onPropertiesChange }),
235
+ /* @__PURE__ */ jsx7(NodeTrackConnections5, { handles: data.handles, nodeId: id, type: "target" })
277
236
  ] });
278
237
  }
279
238
  var noise_spheres_node_default = NoiseSpheresNode;
280
239
 
281
240
  // src/nodes/generators/noise-voronoi-node.tsx
282
- import { NodeContainer as NodeContainer9, NodeTrackConnections as NodeTrackConnections6 } from "@awesome-flow/core/layout";
241
+ import { NodeContainer as NodeContainer8, NodeTrackConnections as NodeTrackConnections6 } from "@awesome-flow/core/layout";
283
242
  import { useCallback as useCallback6 } from "react";
284
- import { Voronoi } from "libnoise-ts/module/generator";
285
- import { useUpdateNodeComputedData as useUpdateNodeComputedData9 } from "@awesome-flow/core/hooks";
243
+ import { Voronoi } from "libnoise-simplex-ts";
244
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData8 } from "@awesome-flow/core/hooks";
286
245
  import { NodePropertyVariables as NodePropertyVariables6 } from "@awesome-flow/core/components";
287
- import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
246
+ import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
288
247
  function NoiseVoronoiNode({ id, selected, data, type }) {
289
- const updateComputedData = useUpdateNodeComputedData9();
248
+ const updateComputedData = useUpdateNodeComputedData8();
290
249
  const onPropertiesChange = useCallback6(
291
250
  (properties) => {
292
251
  const module = new Voronoi(
@@ -299,27 +258,27 @@ function NoiseVoronoiNode({ id, selected, data, type }) {
299
258
  },
300
259
  []
301
260
  );
302
- return /* @__PURE__ */ jsxs7(NodeContainer9, { id, selected, data, type, children: [
303
- /* @__PURE__ */ jsx9(NodePropertyVariables6, { data, nodeId: id, onPropertiesChange }),
304
- /* @__PURE__ */ jsx9(NodeTrackConnections6, { handles: data.handles, nodeId: id, type: "target" })
261
+ return /* @__PURE__ */ jsxs7(NodeContainer8, { id, selected, data, type, children: [
262
+ /* @__PURE__ */ jsx8(NodePropertyVariables6, { data, nodeId: id, onPropertiesChange }),
263
+ /* @__PURE__ */ jsx8(NodeTrackConnections6, { handles: data.handles, nodeId: id, type: "target" })
305
264
  ] });
306
265
  }
307
266
  var noise_voronoi_node_default = NoiseVoronoiNode;
308
267
 
309
268
  // src/nodes/generators/position-const-node.tsx
310
- import { NodeContainer as NodeContainer10 } from "@awesome-flow/core/layout";
311
- import { useEffect as useEffect4, useState as useState2 } from "react";
269
+ import { NodeContainer as NodeContainer9 } from "@awesome-flow/core/layout";
270
+ import { useEffect as useEffect3, useState as useState2 } from "react";
312
271
  import { Group as Group2, NumberInput as NumberInput2, Stack as Stack2 } from "@mantine/core";
313
- import { useUpdateNodeComputedData as useUpdateNodeComputedData10, useUpdateNodeData as useUpdateNodeData2 } from "@awesome-flow/core/hooks";
314
- import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
272
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData9, useUpdateNodeData as useUpdateNodeData2 } from "@awesome-flow/core/hooks";
273
+ import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
315
274
  function PositionConstNode({ id, selected, data, type }) {
316
275
  const position = data.position ?? { x: 0, y: 0, z: 0 };
317
276
  const [x, setX] = useState2(position.x);
318
277
  const [y, setY] = useState2(position.y);
319
278
  const [z, setZ] = useState2(position.z);
320
279
  const updateNodeData = useUpdateNodeData2();
321
- const updateComputedData = useUpdateNodeComputedData10();
322
- useEffect4(() => {
280
+ const updateComputedData = useUpdateNodeComputedData9();
281
+ useEffect3(() => {
323
282
  const position2 = { x, y, z };
324
283
  updateNodeData(id, {
325
284
  position: position2
@@ -328,47 +287,47 @@ function PositionConstNode({ id, selected, data, type }) {
328
287
  positions: [position2]
329
288
  });
330
289
  }, [x, y, z]);
331
- return /* @__PURE__ */ jsx10(NodeContainer10, { id, selected, data, type, children: /* @__PURE__ */ jsxs8(Stack2, { children: [
290
+ return /* @__PURE__ */ jsx9(NodeContainer9, { id, selected, data, type, children: /* @__PURE__ */ jsxs8(Stack2, { children: [
332
291
  /* @__PURE__ */ jsxs8(Group2, { children: [
333
292
  "x: ",
334
- /* @__PURE__ */ jsx10(NumberInput2, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
293
+ /* @__PURE__ */ jsx9(NumberInput2, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
335
294
  ] }),
336
295
  /* @__PURE__ */ jsxs8(Group2, { children: [
337
296
  "y: ",
338
- /* @__PURE__ */ jsx10(NumberInput2, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
297
+ /* @__PURE__ */ jsx9(NumberInput2, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
339
298
  ] }),
340
299
  /* @__PURE__ */ jsxs8(Group2, { children: [
341
300
  "z: ",
342
- /* @__PURE__ */ jsx10(NumberInput2, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
301
+ /* @__PURE__ */ jsx9(NumberInput2, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
343
302
  ] })
344
303
  ] }) });
345
304
  }
346
305
  var position_const_node_default = PositionConstNode;
347
306
 
348
307
  // src/nodes/generators/position-grid-node.tsx
349
- import { NodeContainer as NodeContainer11 } from "@awesome-flow/core/layout";
350
- import { useEffect as useEffect5, useState as useState3 } from "react";
308
+ import { NodeContainer as NodeContainer10 } from "@awesome-flow/core/layout";
309
+ import { useEffect as useEffect4, useState as useState3 } from "react";
351
310
  import { Group as Group3, NumberInput as NumberInput3, Stack as Stack3 } from "@mantine/core";
352
- import { useUpdateNodeComputedData as useUpdateNodeComputedData11, useUpdateNodeData as useUpdateNodeData3 } from "@awesome-flow/core/hooks";
353
- import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
311
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData10, useUpdateNodeData as useUpdateNodeData3 } from "@awesome-flow/core/hooks";
312
+ import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
354
313
  function PositionGridNode({ id, selected, data, type }) {
355
314
  const [x, setX] = useState3(data.center?.x);
356
315
  const [y, setY] = useState3(data.center?.y);
357
316
  const [z, setZ] = useState3(data.center?.z);
358
317
  const [radius, setRadius] = useState3(data.radius);
359
318
  const updateNodeData = useUpdateNodeData3();
360
- const updateComputedData = useUpdateNodeComputedData11();
361
- useEffect5(() => {
319
+ const updateComputedData = useUpdateNodeComputedData10();
320
+ useEffect4(() => {
362
321
  updateNodeData(id, {
363
322
  center: { x, y, z }
364
323
  });
365
324
  }, [x, y, z]);
366
- useEffect5(() => {
325
+ useEffect4(() => {
367
326
  updateNodeData(id, {
368
327
  radius
369
328
  });
370
329
  }, [radius]);
371
- useEffect5(() => {
330
+ useEffect4(() => {
372
331
  const positions = [];
373
332
  for (let i = -radius; i < radius; i++) {
374
333
  for (let j = -radius; j < radius; j++) {
@@ -379,40 +338,40 @@ function PositionGridNode({ id, selected, data, type }) {
379
338
  positions
380
339
  });
381
340
  }, [x, y, z, radius]);
382
- return /* @__PURE__ */ jsx11(NodeContainer11, { id, selected, data, type, children: /* @__PURE__ */ jsxs9(Stack3, { children: [
341
+ return /* @__PURE__ */ jsx10(NodeContainer10, { id, selected, data, type, children: /* @__PURE__ */ jsxs9(Stack3, { children: [
383
342
  /* @__PURE__ */ jsxs9(Group3, { children: [
384
343
  "x: ",
385
- /* @__PURE__ */ jsx11(NumberInput3, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
344
+ /* @__PURE__ */ jsx10(NumberInput3, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
386
345
  ] }),
387
346
  /* @__PURE__ */ jsxs9(Group3, { children: [
388
347
  "y: ",
389
- /* @__PURE__ */ jsx11(NumberInput3, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
348
+ /* @__PURE__ */ jsx10(NumberInput3, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
390
349
  ] }),
391
350
  /* @__PURE__ */ jsxs9(Group3, { children: [
392
351
  "z: ",
393
- /* @__PURE__ */ jsx11(NumberInput3, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
352
+ /* @__PURE__ */ jsx10(NumberInput3, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
394
353
  ] }),
395
354
  /* @__PURE__ */ jsxs9(Group3, { children: [
396
355
  "r: ",
397
- /* @__PURE__ */ jsx11(NumberInput3, { size: "xs", w: 100, value: radius, onChange: (e) => setRadius(Number(e)) })
356
+ /* @__PURE__ */ jsx10(NumberInput3, { size: "xs", w: 100, value: radius, onChange: (e) => setRadius(Number(e)) })
398
357
  ] })
399
358
  ] }) });
400
359
  }
401
360
  var position_grid_node_default = PositionGridNode;
402
361
 
403
362
  // src/nodes/groups/module-group-node.tsx
404
- import { NodeContainer as NodeContainer12, NodeCollapse, NodeTrackConnections as NodeTrackConnections7 } from "@awesome-flow/core/layout";
363
+ import { NodeContainer as NodeContainer11, NodeCollapse, NodeTrackConnections as NodeTrackConnections7 } from "@awesome-flow/core/layout";
405
364
  import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
406
- import { useCallback as useCallback7, useEffect as useEffect6, useMemo as useMemo9 } from "react";
365
+ import { useCallback as useCallback7, useEffect as useEffect5, useMemo as useMemo8 } from "react";
407
366
  import { shallow } from "zustand/shallow";
408
367
  import { Badge, Group as Group4 } from "@mantine/core";
409
368
  import {
410
369
  useFlowStore,
411
370
  useIncomingComputedData,
412
371
  useInteractiveStore,
413
- useUpdateNodeComputedData as useUpdateNodeComputedData12
372
+ useUpdateNodeComputedData as useUpdateNodeComputedData11
414
373
  } from "@awesome-flow/core/hooks";
415
- import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
374
+ import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
416
375
  function ModuleGroupNode({
417
376
  id,
418
377
  selected,
@@ -433,10 +392,10 @@ function ModuleGroupNode({
433
392
  useCallback7((state) => state.nodeIntersectionTargets[id], [id]),
434
393
  shallow
435
394
  );
436
- useEffect6(() => {
395
+ useEffect5(() => {
437
396
  updateNodeInternals(id);
438
397
  }, [width, height]);
439
- useEffect6(() => {
398
+ useEffect5(() => {
440
399
  triggerNodeChanges([
441
400
  {
442
401
  id,
@@ -448,33 +407,33 @@ function ModuleGroupNode({
448
407
  const onCollapsed = useCallback7((collapsed) => {
449
408
  setGroupCollapsed(id, collapsed);
450
409
  }, []);
451
- const size = useMemo9(() => {
410
+ const size = useMemo8(() => {
452
411
  return {
453
412
  width: data.initialSize?.width || 100,
454
413
  height: data.initialSize?.height || 50
455
414
  };
456
415
  }, [data.initialSize]);
457
416
  const incomingModules = useIncomingComputedData(id);
458
- const updateComputedData = useUpdateNodeComputedData12();
459
- useEffect6(() => {
417
+ const updateComputedData = useUpdateNodeComputedData11();
418
+ useEffect5(() => {
460
419
  if (incomingModules?.length) {
461
420
  const { module } = incomingModules[0];
462
421
  updateComputedData(id, { module });
463
422
  }
464
423
  }, [incomingModules]);
465
424
  return /* @__PURE__ */ jsxs10(
466
- NodeContainer12,
425
+ NodeContainer11,
467
426
  {
468
427
  id,
469
428
  selected,
470
429
  data,
471
- title: /* @__PURE__ */ jsx12(Group4, { justify: "space-between", children: /* @__PURE__ */ jsxs10(Group4, { gap: "xs", children: [
472
- /* @__PURE__ */ jsx12(Badge, { size: "xs", variant: "outline", radius: "xs", color: "gray", children: groupNodes?.length || 0 }),
473
- /* @__PURE__ */ jsx12(NodeCollapse, { nodeId: id, isCollapsed: data.isCollapsed, onCollapsed })
430
+ title: /* @__PURE__ */ jsx11(Group4, { justify: "space-between", children: /* @__PURE__ */ jsxs10(Group4, { gap: "xs", children: [
431
+ /* @__PURE__ */ jsx11(Badge, { size: "xs", variant: "outline", radius: "xs", color: "gray", children: groupNodes?.length || 0 }),
432
+ /* @__PURE__ */ jsx11(NodeCollapse, { nodeId: id, isCollapsed: data.isCollapsed, onCollapsed })
474
433
  ] }) }),
475
434
  type,
476
435
  children: [
477
- /* @__PURE__ */ jsx12(
436
+ /* @__PURE__ */ jsx11(
478
437
  NodeResizer,
479
438
  {
480
439
  nodeId: id,
@@ -483,7 +442,7 @@ function ModuleGroupNode({
483
442
  isVisible: selected && !data.isCollapsed
484
443
  }
485
444
  ),
486
- /* @__PURE__ */ jsx12(NodeTrackConnections7, { handles: data.handles, nodeId: id, type: "target" })
445
+ /* @__PURE__ */ jsx11(NodeTrackConnections7, { handles: data.handles, nodeId: id, type: "target" })
487
446
  ]
488
447
  }
489
448
  );
@@ -491,51 +450,51 @@ function ModuleGroupNode({
491
450
  var module_group_node_default = ModuleGroupNode;
492
451
 
493
452
  // src/nodes/modifiers/noise-abs-node.tsx
494
- import { NodeContainer as NodeContainer13, NodeTrackConnections as NodeTrackConnections8 } from "@awesome-flow/core/layout";
495
- import { useEffect as useEffect7 } from "react";
496
- import { useIncomingComputedData as useIncomingComputedData2, useUpdateNodeComputedData as useUpdateNodeComputedData13 } from "@awesome-flow/core/hooks";
497
- import { Abs } from "libnoise-ts/module/modifier";
498
- import { jsx as jsx13 } from "react/jsx-runtime";
453
+ import { NodeContainer as NodeContainer12, NodeTrackConnections as NodeTrackConnections8 } from "@awesome-flow/core/layout";
454
+ import { useEffect as useEffect6 } from "react";
455
+ import { useIncomingComputedData as useIncomingComputedData2, useUpdateNodeComputedData as useUpdateNodeComputedData12 } from "@awesome-flow/core/hooks";
456
+ import { Abs } from "libnoise-simplex-ts";
457
+ import { jsx as jsx12 } from "react/jsx-runtime";
499
458
  function NoiseAbsNode({ id, selected, data, type }) {
500
459
  const incoming = useIncomingComputedData2(id);
501
- const updateComputedData = useUpdateNodeComputedData13();
502
- useEffect7(() => {
460
+ const updateComputedData = useUpdateNodeComputedData12();
461
+ useEffect6(() => {
503
462
  if (incoming?.length > 0) {
504
463
  const module = new Abs(incoming[0].module);
505
464
  updateComputedData(id, { module });
506
465
  }
507
466
  }, [incoming]);
508
- return /* @__PURE__ */ jsx13(NodeContainer13, { id, selected, data, type, children: /* @__PURE__ */ jsx13(NodeTrackConnections8, { handles: data.handles, nodeId: id, type: "target" }) });
467
+ return /* @__PURE__ */ jsx12(NodeContainer12, { id, selected, data, type, children: /* @__PURE__ */ jsx12(NodeTrackConnections8, { handles: data.handles, nodeId: id, type: "target" }) });
509
468
  }
510
469
  var noise_abs_node_default = NoiseAbsNode;
511
470
 
512
471
  // src/nodes/modifiers/noise-clamp-node.tsx
513
- import { NodeContainer as NodeContainer14, NodeTrackConnections as NodeTrackConnections9 } from "@awesome-flow/core/layout";
514
- import { useEffect as useEffect8, useState as useState4 } from "react";
472
+ import { NodeContainer as NodeContainer13, NodeTrackConnections as NodeTrackConnections9 } from "@awesome-flow/core/layout";
473
+ import { useEffect as useEffect7, useState as useState4 } from "react";
515
474
  import { Group as Group5, NumberInput as NumberInput4, Stack as Stack4 } from "@mantine/core";
516
475
  import {
517
476
  useIncomingComputedData as useIncomingComputedData3,
518
- useUpdateNodeComputedData as useUpdateNodeComputedData14,
477
+ useUpdateNodeComputedData as useUpdateNodeComputedData13,
519
478
  useUpdateNodeData as useUpdateNodeData4
520
479
  } from "@awesome-flow/core/hooks";
521
- import { Clamp } from "libnoise-ts/module/modifier";
522
- import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
480
+ import { Clamp } from "libnoise-simplex-ts";
481
+ import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
523
482
  function NoiseClampNode({ id, selected, data, type }) {
524
483
  const [lowerBound, setLowerBound] = useState4(data.lowerBound);
525
484
  const [upperBound, setUpperBound] = useState4(data.upperBound);
526
485
  const incoming = useIncomingComputedData3(id);
527
486
  const updateNodeData = useUpdateNodeData4();
528
- const updateComputedData = useUpdateNodeComputedData14();
529
- useEffect8(() => {
487
+ const updateComputedData = useUpdateNodeComputedData13();
488
+ useEffect7(() => {
530
489
  if (incoming?.length) {
531
490
  const module = new Clamp(incoming[0].module, lowerBound, upperBound);
532
491
  updateComputedData(id, { module });
533
492
  }
534
493
  updateNodeData(id, { lowerBound, upperBound });
535
494
  }, [incoming, lowerBound, upperBound]);
536
- return /* @__PURE__ */ jsxs11(NodeContainer14, { id, selected, data, type, children: [
537
- /* @__PURE__ */ jsx14(Stack4, { children: /* @__PURE__ */ jsxs11(Group5, { children: [
538
- /* @__PURE__ */ jsx14(
495
+ return /* @__PURE__ */ jsxs11(NodeContainer13, { id, selected, data, type, children: [
496
+ /* @__PURE__ */ jsx13(Stack4, { children: /* @__PURE__ */ jsxs11(Group5, { children: [
497
+ /* @__PURE__ */ jsx13(
539
498
  NumberInput4,
540
499
  {
541
500
  size: "xs",
@@ -545,7 +504,7 @@ function NoiseClampNode({ id, selected, data, type }) {
545
504
  step: 0.1
546
505
  }
547
506
  ),
548
- /* @__PURE__ */ jsx14(
507
+ /* @__PURE__ */ jsx13(
549
508
  NumberInput4,
550
509
  {
551
510
  size: "xs",
@@ -556,17 +515,17 @@ function NoiseClampNode({ id, selected, data, type }) {
556
515
  }
557
516
  )
558
517
  ] }) }),
559
- /* @__PURE__ */ jsx14(NodeTrackConnections9, { handles: data.handles, nodeId: id, type: "target" })
518
+ /* @__PURE__ */ jsx13(NodeTrackConnections9, { handles: data.handles, nodeId: id, type: "target" })
560
519
  ] });
561
520
  }
562
521
  var noise_clamp_node_default = NoiseClampNode;
563
522
 
564
523
  // src/nodes/modifiers/noise-combine-node.tsx
565
- import { NodeCombobox, NodeContainer as NodeContainer15, NodeTrackConnections as NodeTrackConnections10 } from "@awesome-flow/core/layout";
566
- import { useCallback as useCallback8, useEffect as useEffect9 } from "react";
524
+ import { NodeCombobox, NodeContainer as NodeContainer14, NodeTrackConnections as NodeTrackConnections10 } from "@awesome-flow/core/layout";
525
+ import { useCallback as useCallback8, useEffect as useEffect8 } from "react";
567
526
  import {
568
527
  useIncomingComputedData as useIncomingComputedData4,
569
- useUpdateNodeComputedData as useUpdateNodeComputedData15,
528
+ useUpdateNodeComputedData as useUpdateNodeComputedData14,
570
529
  useUpdateNodeData as useUpdateNodeData5
571
530
  } from "@awesome-flow/core/hooks";
572
531
  import {
@@ -578,7 +537,7 @@ import {
578
537
  } from "@tabler/icons-react";
579
538
 
580
539
  // src/abstract/operations.ts
581
- import { Add, Max, Min, Multiply, Power } from "libnoise-ts/module/combiner";
540
+ import { Add, Max, Min, Multiply, Power } from "libnoise-simplex-ts";
582
541
  var noiseCombineModuleMap = {
583
542
  ["add" /* add */]: Add,
584
543
  ["max" /* max */]: Max,
@@ -588,19 +547,19 @@ var noiseCombineModuleMap = {
588
547
  };
589
548
 
590
549
  // src/nodes/modifiers/noise-combine-node.tsx
591
- import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
550
+ import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
592
551
  var options = {
593
- add: /* @__PURE__ */ jsx15(IconPlus, {}),
594
- min: /* @__PURE__ */ jsx15(IconChevronLeft, {}),
595
- max: /* @__PURE__ */ jsx15(IconChevronRight, {}),
596
- multiply: /* @__PURE__ */ jsx15(IconAsterisk, {}),
597
- power: /* @__PURE__ */ jsx15(IconChevronUp, {})
552
+ add: /* @__PURE__ */ jsx14(IconPlus, {}),
553
+ min: /* @__PURE__ */ jsx14(IconChevronLeft, {}),
554
+ max: /* @__PURE__ */ jsx14(IconChevronRight, {}),
555
+ multiply: /* @__PURE__ */ jsx14(IconAsterisk, {}),
556
+ power: /* @__PURE__ */ jsx14(IconChevronUp, {})
598
557
  };
599
558
  function NoiseCombineNode({ id, selected, data, type }) {
600
559
  const updateNodeData = useUpdateNodeData5();
601
- const updateComputedData = useUpdateNodeComputedData15();
560
+ const updateComputedData = useUpdateNodeComputedData14();
602
561
  const incoming = useIncomingComputedData4(id);
603
- useEffect9(() => {
562
+ useEffect8(() => {
604
563
  const ModuleFactory = noiseCombineModuleMap[data.operation];
605
564
  if (incoming?.length > 1) {
606
565
  const module = new ModuleFactory(incoming[0].module, incoming[1].module);
@@ -610,27 +569,27 @@ function NoiseCombineNode({ id, selected, data, type }) {
610
569
  const onChange = useCallback8((operation) => {
611
570
  updateNodeData(id, { operation });
612
571
  }, []);
613
- return /* @__PURE__ */ jsxs12(NodeContainer15, { id, selected, data, type, children: [
614
- /* @__PURE__ */ jsx15(NodeCombobox, { options, selected: data.operation, onChange, width: 150 }),
615
- /* @__PURE__ */ jsx15(NodeTrackConnections10, { handles: data.handles, nodeId: id, type: "target" })
572
+ return /* @__PURE__ */ jsxs12(NodeContainer14, { id, selected, data, type, children: [
573
+ /* @__PURE__ */ jsx14(NodeCombobox, { options, selected: data.operation, onChange, width: 150 }),
574
+ /* @__PURE__ */ jsx14(NodeTrackConnections10, { handles: data.handles, nodeId: id, type: "target" })
616
575
  ] });
617
576
  }
618
577
  var noise_combine_node_default = NoiseCombineNode;
619
578
 
620
579
  // src/nodes/modifiers/noise-curve-node.tsx
621
- import { NodeContainer as NodeContainer16, NodeTrackConnections as NodeTrackConnections11 } from "@awesome-flow/core/layout";
580
+ import { NodeContainer as NodeContainer15, NodeTrackConnections as NodeTrackConnections11 } from "@awesome-flow/core/layout";
622
581
  import { ActionIcon, Button, Group as Group6, NumberInput as NumberInput5, Space } from "@mantine/core";
623
582
  import {
624
583
  useIncomingComputedData as useIncomingComputedData5,
625
- useUpdateNodeComputedData as useUpdateNodeComputedData16,
584
+ useUpdateNodeComputedData as useUpdateNodeComputedData15,
626
585
  useUpdateNodeData as useUpdateNodeData6
627
586
  } from "@awesome-flow/core/hooks";
628
587
 
629
- // ../../node_modules/@mantine/form/esm/use-form.mjs
588
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/use-form.mjs
630
589
  import { useState as useState8, useCallback as useCallback14 } from "react";
631
590
 
632
- // ../../node_modules/@mantine/form/esm/actions/actions.mjs
633
- import { useLayoutEffect, useEffect as useEffect10 } from "react";
591
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/actions/actions.mjs
592
+ import { useLayoutEffect, useEffect as useEffect9 } from "react";
634
593
  function validateFormName(name) {
635
594
  if (!/^[0-9a-zA-Z-]+$/.test(name)) {
636
595
  throw new Error(
@@ -638,7 +597,7 @@ function validateFormName(name) {
638
597
  );
639
598
  }
640
599
  }
641
- var useIsomorphicEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect10;
600
+ var useIsomorphicEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect9;
642
601
  function useFormEvent(eventKey, handler) {
643
602
  useIsomorphicEffect(() => {
644
603
  if (eventKey) {
@@ -710,7 +669,7 @@ function useFormActions(name, form) {
710
669
  useFormEvent(`mantine-form:${name}:reset-touched`, form.resetTouched);
711
670
  }
712
671
 
713
- // ../../node_modules/@mantine/form/esm/get-input-on-change/get-input-on-change.mjs
672
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/get-input-on-change/get-input-on-change.mjs
714
673
  function getInputOnChange(setValue) {
715
674
  return (val) => {
716
675
  if (!val) {
@@ -734,10 +693,10 @@ function getInputOnChange(setValue) {
734
693
  };
735
694
  }
736
695
 
737
- // ../../node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
738
- import { useState as useState5, useCallback as useCallback9 } from "react";
696
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
697
+ import { useState as useState5, useRef, useCallback as useCallback9 } from "react";
739
698
 
740
- // ../../node_modules/@mantine/form/esm/hooks/use-form-errors/filter-errors/filter-errors.mjs
699
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-errors/filter-errors/filter-errors.mjs
741
700
  function filterErrors(errors) {
742
701
  if (errors === null || typeof errors !== "object") {
743
702
  return {};
@@ -751,18 +710,21 @@ function filterErrors(errors) {
751
710
  }, {});
752
711
  }
753
712
 
754
- // ../../node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
713
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
755
714
  function useFormErrors(initialErrors) {
756
715
  const [errorsState, setErrorsState] = useState5(filterErrors(initialErrors));
716
+ const errorsRef = useRef(errorsState);
757
717
  const setErrors = useCallback9((errors) => {
758
- setErrorsState(
759
- (current) => filterErrors(typeof errors === "function" ? errors(current) : errors)
760
- );
718
+ setErrorsState((current) => {
719
+ const newErrors = filterErrors(typeof errors === "function" ? errors(current) : errors);
720
+ errorsRef.current = newErrors;
721
+ return newErrors;
722
+ });
761
723
  }, []);
762
- const clearErrors = useCallback9(() => setErrorsState({}), []);
724
+ const clearErrors = useCallback9(() => setErrors({}), []);
763
725
  const clearFieldError = useCallback9(
764
726
  (path) => {
765
- if (errorsState[path] === void 0) {
727
+ if (errorsRef.current[path] === void 0) {
766
728
  return;
767
729
  }
768
730
  setErrors((current) => {
@@ -777,7 +739,7 @@ function useFormErrors(initialErrors) {
777
739
  (path, error) => {
778
740
  if (error == null || error === false) {
779
741
  clearFieldError(path);
780
- } else if (errorsState[path] !== error) {
742
+ } else if (errorsRef.current[path] !== error) {
781
743
  setErrors((current) => ({ ...current, [path]: error }));
782
744
  }
783
745
  },
@@ -792,10 +754,10 @@ function useFormErrors(initialErrors) {
792
754
  };
793
755
  }
794
756
 
795
- // ../../node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
757
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
796
758
  import { useCallback as useCallback10 } from "react";
797
759
 
798
- // ../../node_modules/@mantine/form/esm/lists/clear-list-state.mjs
760
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/lists/clear-list-state.mjs
799
761
  function clearListState(field, state) {
800
762
  if (state === null || typeof state !== "object") {
801
763
  return {};
@@ -809,7 +771,7 @@ function clearListState(field, state) {
809
771
  return clone;
810
772
  }
811
773
 
812
- // ../../node_modules/@mantine/form/esm/lists/change-error-indices.mjs
774
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/lists/change-error-indices.mjs
813
775
  function getIndexFromKeyAfterPath(key, path) {
814
776
  const split = key.substring(path.length + 1).split(".")[0];
815
777
  return parseInt(split, 10);
@@ -849,7 +811,7 @@ function changeErrorIndices(path, index, errors, change) {
849
811
  return cloned;
850
812
  }
851
813
 
852
- // ../../node_modules/@mantine/form/esm/lists/reorder-errors.mjs
814
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/lists/reorder-errors.mjs
853
815
  function reorderErrors(path, { from, to }, errors) {
854
816
  const oldKeyStart = `${path}.${from}`;
855
817
  const newKeyStart = `${path}.${to}`;
@@ -877,18 +839,15 @@ function reorderErrors(path, { from, to }, errors) {
877
839
  return clone;
878
840
  }
879
841
 
880
- // ../../node_modules/klona/full/index.mjs
842
+ // ../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/full/index.mjs
881
843
  function set(obj, key, val) {
882
- if (typeof val.value === "object")
883
- val.value = klona(val.value);
844
+ if (typeof val.value === "object") val.value = klona(val.value);
884
845
  if (!val.enumerable || val.get || val.set || !val.configurable || !val.writable || key === "__proto__") {
885
846
  Object.defineProperty(obj, key, val);
886
- } else
887
- obj[key] = val.value;
847
+ } else obj[key] = val.value;
888
848
  }
889
849
  function klona(x) {
890
- if (typeof x !== "object")
891
- return x;
850
+ if (typeof x !== "object") return x;
892
851
  var i = 0, k, list, tmp, str = Object.prototype.toString.call(x);
893
852
  if (str === "[object Object]") {
894
853
  tmp = Object.create(x.__proto__ || null);
@@ -920,15 +879,14 @@ function klona(x) {
920
879
  set(tmp, list[i], Object.getOwnPropertyDescriptor(x, list[i]));
921
880
  }
922
881
  for (i = 0, list = Object.getOwnPropertyNames(x); i < list.length; i++) {
923
- if (Object.hasOwnProperty.call(tmp, k = list[i]) && tmp[k] === x[k])
924
- continue;
882
+ if (Object.hasOwnProperty.call(tmp, k = list[i]) && tmp[k] === x[k]) continue;
925
883
  set(tmp, k, Object.getOwnPropertyDescriptor(x, k));
926
884
  }
927
885
  }
928
886
  return tmp || x;
929
887
  }
930
888
 
931
- // ../../node_modules/@mantine/form/esm/paths/get-splitted-path.mjs
889
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/get-splitted-path.mjs
932
890
  function getSplittedPath(path) {
933
891
  if (typeof path !== "string") {
934
892
  return [];
@@ -936,7 +894,7 @@ function getSplittedPath(path) {
936
894
  return path.split(".");
937
895
  }
938
896
 
939
- // ../../node_modules/@mantine/form/esm/paths/get-path.mjs
897
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/get-path.mjs
940
898
  function getPath(path, values) {
941
899
  const splittedPath = getSplittedPath(path);
942
900
  if (splittedPath.length === 0 || typeof values !== "object" || values === null) {
@@ -952,7 +910,7 @@ function getPath(path, values) {
952
910
  return value;
953
911
  }
954
912
 
955
- // ../../node_modules/@mantine/form/esm/paths/set-path.mjs
913
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/set-path.mjs
956
914
  function setPath(path, value, values) {
957
915
  const splittedPath = getSplittedPath(path);
958
916
  if (splittedPath.length === 0) {
@@ -974,7 +932,7 @@ function setPath(path, value, values) {
974
932
  return cloned;
975
933
  }
976
934
 
977
- // ../../node_modules/@mantine/form/esm/paths/reorder-path.mjs
935
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/reorder-path.mjs
978
936
  function reorderPath(path, { from, to }, values) {
979
937
  const currentValue = getPath(path, values);
980
938
  if (!Array.isArray(currentValue)) {
@@ -987,7 +945,7 @@ function reorderPath(path, { from, to }, values) {
987
945
  return setPath(path, cloned, values);
988
946
  }
989
947
 
990
- // ../../node_modules/@mantine/form/esm/paths/insert-path.mjs
948
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/insert-path.mjs
991
949
  function insertPath(path, value, index, values) {
992
950
  const currentValue = getPath(path, values);
993
951
  if (!Array.isArray(currentValue)) {
@@ -998,7 +956,7 @@ function insertPath(path, value, index, values) {
998
956
  return setPath(path, cloned, values);
999
957
  }
1000
958
 
1001
- // ../../node_modules/@mantine/form/esm/paths/remove-path.mjs
959
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/remove-path.mjs
1002
960
  function removePath(path, index, values) {
1003
961
  const currentValue = getPath(path, values);
1004
962
  if (!Array.isArray(currentValue)) {
@@ -1011,7 +969,7 @@ function removePath(path, index, values) {
1011
969
  );
1012
970
  }
1013
971
 
1014
- // ../../node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
972
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
1015
973
  function useFormList({
1016
974
  $values,
1017
975
  $errors,
@@ -1044,11 +1002,11 @@ function useFormList({
1044
1002
  return { reorderListItem, removeListItem, insertListItem };
1045
1003
  }
1046
1004
 
1047
- // ../../node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
1005
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
1048
1006
  var import_fast_deep_equal = __toESM(require_fast_deep_equal(), 1);
1049
- import { useState as useState6, useRef, useCallback as useCallback11 } from "react";
1007
+ import { useState as useState6, useRef as useRef2, useCallback as useCallback11 } from "react";
1050
1008
 
1051
- // ../../node_modules/@mantine/form/esm/get-status/get-status.mjs
1009
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/get-status/get-status.mjs
1052
1010
  function getStatus(status, path) {
1053
1011
  const paths = Object.keys(status);
1054
1012
  if (typeof path === "string") {
@@ -1058,7 +1016,7 @@ function getStatus(status, path) {
1058
1016
  return paths.some((statusPath) => status[statusPath]);
1059
1017
  }
1060
1018
 
1061
- // ../../node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
1019
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
1062
1020
  function useFormStatus({
1063
1021
  initialDirty,
1064
1022
  initialTouched,
@@ -1067,8 +1025,8 @@ function useFormStatus({
1067
1025
  }) {
1068
1026
  const [touchedState, setTouchedState] = useState6(initialTouched);
1069
1027
  const [dirtyState, setDirtyState] = useState6(initialDirty);
1070
- const touchedRef = useRef(initialTouched);
1071
- const dirtyRef = useRef(initialDirty);
1028
+ const touchedRef = useRef2(initialTouched);
1029
+ const dirtyRef = useRef2(initialDirty);
1072
1030
  const setTouched = useCallback11((values) => {
1073
1031
  const resolvedValues = typeof values === "function" ? values(touchedRef.current) : values;
1074
1032
  touchedRef.current = resolvedValues;
@@ -1162,17 +1120,17 @@ function useFormStatus({
1162
1120
  };
1163
1121
  }
1164
1122
 
1165
- // ../../node_modules/@mantine/form/esm/hooks/use-form-values/use-form-values.mjs
1166
- import { useRef as useRef2, useState as useState7, useCallback as useCallback12 } from "react";
1123
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-values/use-form-values.mjs
1124
+ import { useRef as useRef3, useState as useState7, useCallback as useCallback12 } from "react";
1167
1125
  function useFormValues({
1168
1126
  initialValues,
1169
1127
  onValuesChange,
1170
1128
  mode
1171
1129
  }) {
1172
- const initialized = useRef2(false);
1130
+ const initialized = useRef3(false);
1173
1131
  const [stateValues, setStateValues] = useState7(initialValues || {});
1174
- const refValues = useRef2(stateValues);
1175
- const valuesSnapshot = useRef2(stateValues);
1132
+ const refValues = useRef3(stateValues);
1133
+ const valuesSnapshot = useRef3(stateValues);
1176
1134
  const setValues = useCallback12(
1177
1135
  ({
1178
1136
  values,
@@ -1235,16 +1193,16 @@ function useFormValues({
1235
1193
  };
1236
1194
  }
1237
1195
 
1238
- // ../../node_modules/@mantine/form/esm/hooks/use-form-watch/use-form-watch.mjs
1239
- import { useRef as useRef3, useCallback as useCallback13, useEffect as useEffect11 } from "react";
1196
+ // ../../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
1197
+ import { useRef as useRef4, useCallback as useCallback13, useEffect as useEffect10 } from "react";
1240
1198
  function useFormWatch({
1241
1199
  $status
1242
1200
  }) {
1243
- const subscribers = useRef3(
1201
+ const subscribers = useRef4(
1244
1202
  {}
1245
1203
  );
1246
1204
  const watch = useCallback13((path, callback) => {
1247
- useEffect11(() => {
1205
+ useEffect10(() => {
1248
1206
  subscribers.current[path] = subscribers.current[path] || [];
1249
1207
  subscribers.current[path].push(callback);
1250
1208
  return () => {
@@ -1272,12 +1230,12 @@ function useFormWatch({
1272
1230
  };
1273
1231
  }
1274
1232
 
1275
- // ../../node_modules/@mantine/form/esm/paths/get-data-path.mjs
1233
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/get-data-path.mjs
1276
1234
  function getDataPath(formName, fieldPath) {
1277
1235
  return formName ? `${formName}-${fieldPath.toString()}` : fieldPath.toString();
1278
1236
  }
1279
1237
 
1280
- // ../../node_modules/@mantine/form/esm/validate/validate-values.mjs
1238
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/validate/validate-values.mjs
1281
1239
  function getValidationResults(errors) {
1282
1240
  const filteredErrors = filterErrors(errors);
1283
1241
  return { hasErrors: Object.keys(filteredErrors).length > 0, errors: filteredErrors };
@@ -1315,7 +1273,7 @@ function validateValues(validate, values) {
1315
1273
  return getValidationResults(validateRulesRecord(validate, values));
1316
1274
  }
1317
1275
 
1318
- // ../../node_modules/@mantine/form/esm/validate/validate-field-value.mjs
1276
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/validate/validate-field-value.mjs
1319
1277
  function validateFieldValue(path, rules, values) {
1320
1278
  if (typeof path !== "string") {
1321
1279
  return { hasError: false, error: null };
@@ -1327,10 +1285,10 @@ function validateFieldValue(path, rules, values) {
1327
1285
  return { hasError: !!pathInError, error: pathInError ? results.errors[pathInError] : null };
1328
1286
  }
1329
1287
 
1330
- // ../../node_modules/@mantine/form/esm/form-index.mjs
1288
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/form-index.mjs
1331
1289
  var FORM_INDEX = "__MANTINE_FORM_INDEX__";
1332
1290
 
1333
- // ../../node_modules/@mantine/form/esm/validate/should-validate-on-change.mjs
1291
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/validate/should-validate-on-change.mjs
1334
1292
  function shouldValidateOnChange(path, validateInputOnChange) {
1335
1293
  if (!validateInputOnChange) {
1336
1294
  return false;
@@ -1344,7 +1302,7 @@ function shouldValidateOnChange(path, validateInputOnChange) {
1344
1302
  return false;
1345
1303
  }
1346
1304
 
1347
- // ../../node_modules/@mantine/form/esm/use-form.mjs
1305
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/use-form.mjs
1348
1306
  function useForm({
1349
1307
  name,
1350
1308
  mode = "controlled",
@@ -1533,17 +1491,16 @@ function useForm({
1533
1491
  }
1534
1492
 
1535
1493
  // src/nodes/modifiers/noise-curve-node.tsx
1536
- import { useCallback as useCallback15, useEffect as useEffect12, useState as useState9 } from "react";
1537
- import { Curve } from "libnoise-ts/module/modifier";
1538
- import { Tuple } from "libnoise-ts/util";
1494
+ import { useCallback as useCallback15, useEffect as useEffect11, useState as useState9 } from "react";
1495
+ import { Curve, Tuple } from "libnoise-simplex-ts";
1539
1496
  import { IconX } from "@tabler/icons-react";
1540
1497
  import { randomId } from "@mantine/hooks";
1541
1498
  import { NodeState } from "@awesome-flow/core/abstract";
1542
- import { Fragment, jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
1499
+ import { Fragment, jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
1543
1500
  function NoiseCurveNode({ id, selected, data, type }) {
1544
1501
  const incoming = useIncomingComputedData5(id);
1545
1502
  const updateNodeData = useUpdateNodeData6();
1546
- const updateComputedData = useUpdateNodeComputedData16();
1503
+ const updateComputedData = useUpdateNodeComputedData15();
1547
1504
  const [values, setValues] = useState9([]);
1548
1505
  const form = useForm({
1549
1506
  mode: "uncontrolled",
@@ -1572,11 +1529,11 @@ function NoiseCurveNode({ id, selected, data, type }) {
1572
1529
  form.validate();
1573
1530
  }, [])
1574
1531
  });
1575
- useEffect12(() => {
1532
+ useEffect11(() => {
1576
1533
  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() }));
1577
1534
  form.initialize({ points });
1578
1535
  }, []);
1579
- useEffect12(() => {
1536
+ useEffect11(() => {
1580
1537
  if (incoming?.length && values?.length >= 4) {
1581
1538
  const module = new Curve(
1582
1539
  incoming[0].module,
@@ -1586,7 +1543,7 @@ function NoiseCurveNode({ id, selected, data, type }) {
1586
1543
  }
1587
1544
  }, [values, incoming]);
1588
1545
  const fields = form.getValues().points.map((item, index) => /* @__PURE__ */ jsxs13(Group6, { mt: "xs", children: [
1589
- /* @__PURE__ */ jsx16(
1546
+ /* @__PURE__ */ jsx15(
1590
1547
  NumberInput5,
1591
1548
  {
1592
1549
  size: "xs",
@@ -1597,7 +1554,7 @@ function NoiseCurveNode({ id, selected, data, type }) {
1597
1554
  },
1598
1555
  form.key(`points.${index}.input`)
1599
1556
  ),
1600
- /* @__PURE__ */ jsx16(
1557
+ /* @__PURE__ */ jsx15(
1601
1558
  NumberInput5,
1602
1559
  {
1603
1560
  size: "xs",
@@ -1608,22 +1565,22 @@ function NoiseCurveNode({ id, selected, data, type }) {
1608
1565
  },
1609
1566
  form.key(`points.${index}.output`)
1610
1567
  ),
1611
- data.state === NodeState.edit && values.length > 4 && /* @__PURE__ */ jsx16(
1568
+ data.state === NodeState.edit && values.length > 4 && /* @__PURE__ */ jsx15(
1612
1569
  ActionIcon,
1613
1570
  {
1614
1571
  color: "red",
1615
1572
  variant: "outline",
1616
1573
  size: "sm",
1617
1574
  onClick: () => form.removeListItem("points", index),
1618
- children: /* @__PURE__ */ jsx16(IconX, { size: "1rem" })
1575
+ children: /* @__PURE__ */ jsx15(IconX, { size: "1rem" })
1619
1576
  }
1620
1577
  )
1621
1578
  ] }, item.key));
1622
- return /* @__PURE__ */ jsxs13(NodeContainer16, { id, selected, type, data, children: [
1579
+ return /* @__PURE__ */ jsxs13(NodeContainer15, { id, selected, type, data, children: [
1623
1580
  fields,
1624
1581
  data.state === NodeState.edit && /* @__PURE__ */ jsxs13(Fragment, { children: [
1625
- /* @__PURE__ */ jsx16(Space, { h: 10 }),
1626
- /* @__PURE__ */ jsx16(
1582
+ /* @__PURE__ */ jsx15(Space, { h: 10 }),
1583
+ /* @__PURE__ */ jsx15(
1627
1584
  Button,
1628
1585
  {
1629
1586
  variant: "outline",
@@ -1634,38 +1591,38 @@ function NoiseCurveNode({ id, selected, data, type }) {
1634
1591
  }
1635
1592
  )
1636
1593
  ] }),
1637
- /* @__PURE__ */ jsx16(NodeTrackConnections11, { handles: data.handles, nodeId: id, type: "target" })
1594
+ /* @__PURE__ */ jsx15(NodeTrackConnections11, { handles: data.handles, nodeId: id, type: "target" })
1638
1595
  ] });
1639
1596
  }
1640
1597
  var noise_curve_node_default = NoiseCurveNode;
1641
1598
 
1642
1599
  // src/nodes/modifiers/noise-exponent-node.tsx
1643
- import { NodeContainer as NodeContainer17, NodeTrackConnections as NodeTrackConnections12 } from "@awesome-flow/core/layout";
1644
- import { useEffect as useEffect13, useState as useState10 } from "react";
1600
+ import { NodeContainer as NodeContainer16, NodeTrackConnections as NodeTrackConnections12 } from "@awesome-flow/core/layout";
1601
+ import { useEffect as useEffect12, useState as useState10 } from "react";
1645
1602
  import { Group as Group7, NumberInput as NumberInput6, Stack as Stack5 } from "@mantine/core";
1646
1603
  import {
1647
1604
  useIncomingComputedData as useIncomingComputedData6,
1648
- useUpdateNodeComputedData as useUpdateNodeComputedData17,
1605
+ useUpdateNodeComputedData as useUpdateNodeComputedData16,
1649
1606
  useUpdateNodeData as useUpdateNodeData7
1650
1607
  } from "@awesome-flow/core/hooks";
1651
- import { Exponent } from "libnoise-ts/module/modifier";
1652
- import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
1608
+ import { Exponent } from "libnoise-simplex-ts";
1609
+ import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
1653
1610
  function NoiseExponentNode({ id, selected, data, type }) {
1654
1611
  const [exponent, setExponent] = useState10(data.exponent);
1655
1612
  const incoming = useIncomingComputedData6(id);
1656
1613
  const updateNodeData = useUpdateNodeData7();
1657
- const updateComputedData = useUpdateNodeComputedData17();
1658
- useEffect13(() => {
1614
+ const updateComputedData = useUpdateNodeComputedData16();
1615
+ useEffect12(() => {
1659
1616
  if (incoming?.length > 0) {
1660
1617
  const module = new Exponent(incoming[0].module, exponent);
1661
1618
  updateComputedData(id, { module });
1662
1619
  }
1663
1620
  updateNodeData(id, { exponent });
1664
1621
  }, [incoming, exponent]);
1665
- return /* @__PURE__ */ jsxs14(NodeContainer17, { id, selected, data, type, children: [
1666
- /* @__PURE__ */ jsx17(Stack5, { children: /* @__PURE__ */ jsxs14(Group7, { children: [
1622
+ return /* @__PURE__ */ jsxs14(NodeContainer16, { id, selected, data, type, children: [
1623
+ /* @__PURE__ */ jsx16(Stack5, { children: /* @__PURE__ */ jsxs14(Group7, { children: [
1667
1624
  "Exponent:",
1668
- /* @__PURE__ */ jsx17(
1625
+ /* @__PURE__ */ jsx16(
1669
1626
  NumberInput6,
1670
1627
  {
1671
1628
  size: "xs",
@@ -1675,42 +1632,42 @@ function NoiseExponentNode({ id, selected, data, type }) {
1675
1632
  }
1676
1633
  )
1677
1634
  ] }) }),
1678
- /* @__PURE__ */ jsx17(NodeTrackConnections12, { handles: data.handles, nodeId: id, type: "target" })
1635
+ /* @__PURE__ */ jsx16(NodeTrackConnections12, { handles: data.handles, nodeId: id, type: "target" })
1679
1636
  ] });
1680
1637
  }
1681
1638
  var noise_exponent_node_default = NoiseExponentNode;
1682
1639
 
1683
1640
  // src/nodes/modifiers/noise-invert-node.tsx
1684
- import { NodeContainer as NodeContainer18, NodeTrackConnections as NodeTrackConnections13 } from "@awesome-flow/core/layout";
1685
- import { useEffect as useEffect14 } from "react";
1686
- import { useIncomingComputedData as useIncomingComputedData7, useUpdateNodeComputedData as useUpdateNodeComputedData18 } from "@awesome-flow/core/hooks";
1687
- import { Invert } from "libnoise-ts/module/modifier";
1688
- import { jsx as jsx18 } from "react/jsx-runtime";
1641
+ import { NodeContainer as NodeContainer17, NodeTrackConnections as NodeTrackConnections13 } from "@awesome-flow/core/layout";
1642
+ import { useEffect as useEffect13 } from "react";
1643
+ import { useIncomingComputedData as useIncomingComputedData7, useUpdateNodeComputedData as useUpdateNodeComputedData17 } from "@awesome-flow/core/hooks";
1644
+ import { Invert } from "libnoise-simplex-ts";
1645
+ import { jsx as jsx17 } from "react/jsx-runtime";
1689
1646
  function NoiseInvertNode({ id, selected, data, type }) {
1690
1647
  const incoming = useIncomingComputedData7(id);
1691
- const updateComputedData = useUpdateNodeComputedData18();
1692
- useEffect14(() => {
1648
+ const updateComputedData = useUpdateNodeComputedData17();
1649
+ useEffect13(() => {
1693
1650
  if (incoming?.length > 0) {
1694
1651
  const module = new Invert(incoming[0].module);
1695
1652
  updateComputedData(id, { module });
1696
1653
  }
1697
1654
  }, [incoming]);
1698
- return /* @__PURE__ */ jsx18(NodeContainer18, { id, selected, data, type, children: /* @__PURE__ */ jsx18(NodeTrackConnections13, { handles: data.handles, nodeId: id, type: "target" }) });
1655
+ return /* @__PURE__ */ jsx17(NodeContainer17, { id, selected, data, type, children: /* @__PURE__ */ jsx17(NodeTrackConnections13, { handles: data.handles, nodeId: id, type: "target" }) });
1699
1656
  }
1700
1657
  var noise_invert_node_default = NoiseInvertNode;
1701
1658
 
1702
1659
  // src/nodes/modifiers/noise-normalize-node.tsx
1703
- import { NodeContainer as NodeContainer19, NodeTrackConnections as NodeTrackConnections14 } from "@awesome-flow/core/layout";
1704
- import { useEffect as useEffect15, useState as useState11 } from "react";
1660
+ import { NodeContainer as NodeContainer18, NodeTrackConnections as NodeTrackConnections14 } from "@awesome-flow/core/layout";
1661
+ import { useEffect as useEffect14, useState as useState11 } from "react";
1705
1662
  import { Group as Group8, NumberInput as NumberInput7, Stack as Stack6 } from "@mantine/core";
1706
1663
  import {
1707
1664
  useIncomingComputedData as useIncomingComputedData8,
1708
- useUpdateNodeComputedData as useUpdateNodeComputedData19,
1665
+ useUpdateNodeComputedData as useUpdateNodeComputedData18,
1709
1666
  useUpdateNodeData as useUpdateNodeData8
1710
1667
  } from "@awesome-flow/core/hooks";
1711
1668
 
1712
1669
  // src/modules/normalize-noise-module.ts
1713
- import ModifierModule from "libnoise-ts/module/modifier";
1670
+ import { ModifierModule } from "libnoise-simplex-ts";
1714
1671
  var NormalizeNoiseModule = class extends ModifierModule {
1715
1672
  constructor(source, lowerBound, upperBound) {
1716
1673
  super(source);
@@ -1726,14 +1683,14 @@ function normalize(value, min, max) {
1726
1683
  }
1727
1684
 
1728
1685
  // src/nodes/modifiers/noise-normalize-node.tsx
1729
- import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
1686
+ import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
1730
1687
  function NoiseNormalizeNode({ id, selected, data, type }) {
1731
1688
  const [intervalStart, setIntervalStart] = useState11(data.intervalStart);
1732
1689
  const [intervalEnd, setIntervalEnd] = useState11(data.intervalEnd);
1733
1690
  const incoming = useIncomingComputedData8(id);
1734
1691
  const updateNodeData = useUpdateNodeData8();
1735
- const updateComputedData = useUpdateNodeComputedData19();
1736
- useEffect15(() => {
1692
+ const updateComputedData = useUpdateNodeComputedData18();
1693
+ useEffect14(() => {
1737
1694
  if (incoming?.length) {
1738
1695
  const source = incoming[0].module;
1739
1696
  const module = new NormalizeNoiseModule(source, intervalStart, intervalEnd);
@@ -1741,9 +1698,9 @@ function NoiseNormalizeNode({ id, selected, data, type }) {
1741
1698
  }
1742
1699
  updateNodeData(id, { intervalStart, intervalEnd });
1743
1700
  }, [incoming, intervalStart, intervalEnd]);
1744
- return /* @__PURE__ */ jsxs15(NodeContainer19, { id, selected, data, type, children: [
1745
- /* @__PURE__ */ jsx19(Stack6, { children: /* @__PURE__ */ jsxs15(Group8, { children: [
1746
- /* @__PURE__ */ jsx19(
1701
+ return /* @__PURE__ */ jsxs15(NodeContainer18, { id, selected, data, type, children: [
1702
+ /* @__PURE__ */ jsx18(Stack6, { children: /* @__PURE__ */ jsxs15(Group8, { children: [
1703
+ /* @__PURE__ */ jsx18(
1747
1704
  NumberInput7,
1748
1705
  {
1749
1706
  size: "xs",
@@ -1752,7 +1709,7 @@ function NoiseNormalizeNode({ id, selected, data, type }) {
1752
1709
  onChange: (e) => setIntervalStart(Number(e))
1753
1710
  }
1754
1711
  ),
1755
- /* @__PURE__ */ jsx19(
1712
+ /* @__PURE__ */ jsx18(
1756
1713
  NumberInput7,
1757
1714
  {
1758
1715
  size: "xs",
@@ -1762,40 +1719,40 @@ function NoiseNormalizeNode({ id, selected, data, type }) {
1762
1719
  }
1763
1720
  )
1764
1721
  ] }) }),
1765
- /* @__PURE__ */ jsx19(NodeTrackConnections14, { handles: data.handles, nodeId: id, type: "target" })
1722
+ /* @__PURE__ */ jsx18(NodeTrackConnections14, { handles: data.handles, nodeId: id, type: "target" })
1766
1723
  ] });
1767
1724
  }
1768
1725
  var noise_normalize_node_default = NoiseNormalizeNode;
1769
1726
 
1770
1727
  // src/nodes/modifiers/noise-scale-bias-node.tsx
1771
- import { NodeContainer as NodeContainer20, NodeTrackConnections as NodeTrackConnections15 } from "@awesome-flow/core/layout";
1772
- import { useEffect as useEffect16, useState as useState12 } from "react";
1728
+ import { NodeContainer as NodeContainer19, NodeTrackConnections as NodeTrackConnections15 } from "@awesome-flow/core/layout";
1729
+ import { useEffect as useEffect15, useState as useState12 } from "react";
1773
1730
  import { Group as Group9, NumberInput as NumberInput8, Stack as Stack7 } from "@mantine/core";
1774
1731
  import {
1775
1732
  useIncomingComputedData as useIncomingComputedData9,
1776
- useUpdateNodeComputedData as useUpdateNodeComputedData20,
1733
+ useUpdateNodeComputedData as useUpdateNodeComputedData19,
1777
1734
  useUpdateNodeData as useUpdateNodeData9
1778
1735
  } from "@awesome-flow/core/hooks";
1779
- import { ScaleBias } from "libnoise-ts/module/modifier";
1780
- import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
1736
+ import { ScaleBias } from "libnoise-simplex-ts";
1737
+ import { jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
1781
1738
  function NoiseScaleBiasNode({ id, selected, data, type }) {
1782
1739
  const [scale, setScale] = useState12(data.scale);
1783
1740
  const [bias, setBias] = useState12(data.bias);
1784
1741
  const incoming = useIncomingComputedData9(id);
1785
1742
  const updateNodeData = useUpdateNodeData9();
1786
- const updateComputedData = useUpdateNodeComputedData20();
1787
- useEffect16(() => {
1743
+ const updateComputedData = useUpdateNodeComputedData19();
1744
+ useEffect15(() => {
1788
1745
  if (incoming?.length > 0) {
1789
1746
  const module = new ScaleBias(incoming[0].module, scale, bias);
1790
1747
  updateComputedData(id, { module });
1791
1748
  }
1792
1749
  updateNodeData(id, { scale, bias });
1793
1750
  }, [incoming, scale, bias]);
1794
- return /* @__PURE__ */ jsxs16(NodeContainer20, { id, selected, data, type, children: [
1751
+ return /* @__PURE__ */ jsxs16(NodeContainer19, { id, selected, data, type, children: [
1795
1752
  /* @__PURE__ */ jsxs16(Stack7, { children: [
1796
1753
  /* @__PURE__ */ jsxs16(Group9, { children: [
1797
1754
  "Scale:",
1798
- /* @__PURE__ */ jsx20(
1755
+ /* @__PURE__ */ jsx19(
1799
1756
  NumberInput8,
1800
1757
  {
1801
1758
  size: "xs",
@@ -1808,7 +1765,7 @@ function NoiseScaleBiasNode({ id, selected, data, type }) {
1808
1765
  ] }),
1809
1766
  /* @__PURE__ */ jsxs16(Group9, { children: [
1810
1767
  "Bias:",
1811
- /* @__PURE__ */ jsx20(
1768
+ /* @__PURE__ */ jsx19(
1812
1769
  NumberInput8,
1813
1770
  {
1814
1771
  size: "xs",
@@ -1820,29 +1777,29 @@ function NoiseScaleBiasNode({ id, selected, data, type }) {
1820
1777
  )
1821
1778
  ] })
1822
1779
  ] }),
1823
- /* @__PURE__ */ jsx20(NodeTrackConnections15, { handles: data.handles, nodeId: id, type: "target" })
1780
+ /* @__PURE__ */ jsx19(NodeTrackConnections15, { handles: data.handles, nodeId: id, type: "target" })
1824
1781
  ] });
1825
1782
  }
1826
1783
  var noise_scale_bias_node_default = NoiseScaleBiasNode;
1827
1784
 
1828
1785
  // src/nodes/modifiers/noise-terrace-node.tsx
1829
- import { NodeContainer as NodeContainer21, NodeTrackConnections as NodeTrackConnections16 } from "@awesome-flow/core/layout";
1786
+ import { NodeContainer as NodeContainer20, NodeTrackConnections as NodeTrackConnections16 } from "@awesome-flow/core/layout";
1830
1787
  import { ActionIcon as ActionIcon2, Button as Button2, Group as Group10, NumberInput as NumberInput9, Space as Space2 } from "@mantine/core";
1831
1788
  import {
1832
1789
  useIncomingComputedData as useIncomingComputedData10,
1833
- useUpdateNodeComputedData as useUpdateNodeComputedData21,
1790
+ useUpdateNodeComputedData as useUpdateNodeComputedData20,
1834
1791
  useUpdateNodeData as useUpdateNodeData10
1835
1792
  } from "@awesome-flow/core/hooks";
1836
- import { useCallback as useCallback16, useEffect as useEffect17, useState as useState13 } from "react";
1837
- import { Terrace } from "libnoise-ts/module/modifier";
1793
+ import { useCallback as useCallback16, useEffect as useEffect16, useState as useState13 } from "react";
1794
+ import { Terrace } from "libnoise-simplex-ts";
1838
1795
  import { IconX as IconX2 } from "@tabler/icons-react";
1839
1796
  import { randomId as randomId2 } from "@mantine/hooks";
1840
1797
  import { NodeState as NodeState2 } from "@awesome-flow/core/abstract";
1841
- import { Fragment as Fragment2, jsx as jsx21, jsxs as jsxs17 } from "react/jsx-runtime";
1798
+ import { Fragment as Fragment2, jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
1842
1799
  function NoiseTerraceNode({ id, selected, data, type }) {
1843
1800
  const incoming = useIncomingComputedData10(id);
1844
1801
  const updateNodeData = useUpdateNodeData10();
1845
- const updateComputedData = useUpdateNodeComputedData21();
1802
+ const updateComputedData = useUpdateNodeComputedData20();
1846
1803
  const [values, setValues] = useState13([]);
1847
1804
  const form = useForm({
1848
1805
  mode: "uncontrolled",
@@ -1860,18 +1817,18 @@ function NoiseTerraceNode({ id, selected, data, type }) {
1860
1817
  form.validate();
1861
1818
  }, [])
1862
1819
  });
1863
- useEffect17(() => {
1820
+ useEffect16(() => {
1864
1821
  const points = data.points?.length ? data.points.map((v) => ({ value: v, key: randomId2() })) : [1, 2].map(() => ({ value: 0, key: randomId2() }));
1865
1822
  form.initialize({ points });
1866
1823
  }, []);
1867
- useEffect17(() => {
1824
+ useEffect16(() => {
1868
1825
  if (incoming?.length && values?.length >= 2) {
1869
1826
  const module = new Terrace(incoming[0].module, values);
1870
1827
  updateComputedData(id, { module });
1871
1828
  }
1872
1829
  }, [values, incoming]);
1873
1830
  const fields = form.getValues().points.map((item, index) => /* @__PURE__ */ jsxs17(Group10, { mt: "xs", children: [
1874
- /* @__PURE__ */ jsx21(
1831
+ /* @__PURE__ */ jsx20(
1875
1832
  NumberInput9,
1876
1833
  {
1877
1834
  size: "xs",
@@ -1881,22 +1838,22 @@ function NoiseTerraceNode({ id, selected, data, type }) {
1881
1838
  },
1882
1839
  form.key(`points.${index}.value`)
1883
1840
  ),
1884
- data.state === NodeState2.edit && values.length > 2 && /* @__PURE__ */ jsx21(
1841
+ data.state === NodeState2.edit && values.length > 2 && /* @__PURE__ */ jsx20(
1885
1842
  ActionIcon2,
1886
1843
  {
1887
1844
  color: "red",
1888
1845
  variant: "outline",
1889
1846
  size: "sm",
1890
1847
  onClick: () => form.removeListItem("points", index),
1891
- children: /* @__PURE__ */ jsx21(IconX2, { size: "1rem" })
1848
+ children: /* @__PURE__ */ jsx20(IconX2, { size: "1rem" })
1892
1849
  }
1893
1850
  )
1894
1851
  ] }, item.key));
1895
- return /* @__PURE__ */ jsxs17(NodeContainer21, { id, selected, type, data, children: [
1852
+ return /* @__PURE__ */ jsxs17(NodeContainer20, { id, selected, type, data, children: [
1896
1853
  fields,
1897
1854
  data.state === NodeState2.edit && /* @__PURE__ */ jsxs17(Fragment2, { children: [
1898
- /* @__PURE__ */ jsx21(Space2, { h: 10 }),
1899
- /* @__PURE__ */ jsx21(
1855
+ /* @__PURE__ */ jsx20(Space2, { h: 10 }),
1856
+ /* @__PURE__ */ jsx20(
1900
1857
  Button2,
1901
1858
  {
1902
1859
  variant: "outline",
@@ -1907,27 +1864,27 @@ function NoiseTerraceNode({ id, selected, data, type }) {
1907
1864
  }
1908
1865
  )
1909
1866
  ] }),
1910
- /* @__PURE__ */ jsx21(NodeTrackConnections16, { handles: data.handles, nodeId: id, type: "target" })
1867
+ /* @__PURE__ */ jsx20(NodeTrackConnections16, { handles: data.handles, nodeId: id, type: "target" })
1911
1868
  ] });
1912
1869
  }
1913
1870
  var noise_terrace_node_default = NoiseTerraceNode;
1914
1871
 
1915
1872
  // src/nodes/output/noise-logger-node.tsx
1916
- import { NodeContainer as NodeContainer22, NodeTrackConnections as NodeTrackConnections17 } from "@awesome-flow/core/layout";
1917
- import { useMemo as useMemo10 } from "react";
1873
+ import { NodeContainer as NodeContainer21, NodeTrackConnections as NodeTrackConnections17 } from "@awesome-flow/core/layout";
1874
+ import { useMemo as useMemo9 } from "react";
1918
1875
  import { Divider, Stack as Stack8, Text } from "@mantine/core";
1919
1876
  import { useIncomingComputedData as useIncomingComputedData11 } from "@awesome-flow/core/hooks";
1920
- import { jsx as jsx22, jsxs as jsxs18 } from "react/jsx-runtime";
1877
+ import { jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
1921
1878
  function NoiseLoggerNode({ id, selected, data, type }) {
1922
1879
  const incoming = useIncomingComputedData11(id);
1923
- const noise = useMemo10(() => incoming?.map((p) => p.noise).flat(), [incoming]);
1924
- return /* @__PURE__ */ jsxs18(NodeContainer22, { id, selected, data, type, children: [
1880
+ const noise = useMemo9(() => incoming?.map((p) => p.noise).flat(), [incoming]);
1881
+ return /* @__PURE__ */ jsxs18(NodeContainer21, { id, selected, data, type, children: [
1925
1882
  /* @__PURE__ */ jsxs18(Text, { children: [
1926
1883
  "Size: ",
1927
1884
  noise?.length || 0
1928
1885
  ] }),
1929
- /* @__PURE__ */ jsx22(Divider, { h: 5 }),
1930
- /* @__PURE__ */ jsx22(Stack8, { children: noise?.map((v, i) => /* @__PURE__ */ jsxs18(Text, { children: [
1886
+ /* @__PURE__ */ jsx21(Divider, { h: 5 }),
1887
+ /* @__PURE__ */ jsx21(Stack8, { children: noise?.map((v, i) => /* @__PURE__ */ jsxs18(Text, { children: [
1931
1888
  v.position?.x,
1932
1889
  ":",
1933
1890
  v.position?.y,
@@ -1936,31 +1893,31 @@ function NoiseLoggerNode({ id, selected, data, type }) {
1936
1893
  ": ",
1937
1894
  v.value
1938
1895
  ] }, i)) }),
1939
- /* @__PURE__ */ jsx22(NodeTrackConnections17, { handles: data.handles, nodeId: id, type: "target" })
1896
+ /* @__PURE__ */ jsx21(NodeTrackConnections17, { handles: data.handles, nodeId: id, type: "target" })
1940
1897
  ] });
1941
1898
  }
1942
1899
  var noise_logger_node_default = NoiseLoggerNode;
1943
1900
 
1944
1901
  // src/nodes/output/noise-output-node.tsx
1945
- import { NodeContainer as NodeContainer32, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
1902
+ import { NodeContainer as NodeContainer31, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
1946
1903
  import { useCallback as useCallback21, useState as useState20 } from "react";
1947
- import { useUpdateNodeComputedData as useUpdateNodeComputedData30 } from "@awesome-flow/core/hooks";
1904
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData29 } from "@awesome-flow/core/hooks";
1948
1905
  import { HandlesIncomingDataStatus as HandlesIncomingDataStatus4 } from "@awesome-flow/core/components";
1949
1906
  import { Text as Text3 } from "@mantine/core";
1950
1907
 
1951
1908
  // src/nodes/output/noise-raw-texture-node.tsx
1952
- import { NodeContainer as NodeContainer23, NodeTrackConnections as NodeTrackConnections18 } from "@awesome-flow/core/layout";
1953
- import { useEffect as useEffect18, useMemo as useMemo11, useState as useState14 } from "react";
1954
- import { useIncomingComputedData as useIncomingComputedData12, useUpdateNodeComputedData as useUpdateNodeComputedData22 } from "@awesome-flow/core/hooks";
1909
+ import { NodeContainer as NodeContainer22, NodeTrackConnections as NodeTrackConnections18 } from "@awesome-flow/core/layout";
1910
+ import { useEffect as useEffect17, useMemo as useMemo10, useState as useState14 } from "react";
1911
+ import { useIncomingComputedData as useIncomingComputedData12, useUpdateNodeComputedData as useUpdateNodeComputedData21 } from "@awesome-flow/core/hooks";
1955
1912
  import { Group as Group11, Stack as Stack9 } from "@mantine/core";
1956
- import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
1913
+ import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
1957
1914
  function NoiseRawTextureNode({ id, selected, data, type }) {
1958
- const updateComputedData = useUpdateNodeComputedData22();
1915
+ const updateComputedData = useUpdateNodeComputedData21();
1959
1916
  const [dataLength, setDataLength] = useState14(0);
1960
1917
  const [resolution, setResolution] = useState14(0);
1961
1918
  const incoming = useIncomingComputedData12(id);
1962
- const noise = useMemo11(() => incoming?.map((p) => p.noise).flat(), [incoming]);
1963
- useEffect18(() => {
1919
+ const noise = useMemo10(() => incoming?.map((p) => p.noise).flat(), [incoming]);
1920
+ useEffect17(() => {
1964
1921
  if (noise?.length) {
1965
1922
  const size = Math.ceil(Math.sqrt(noise.length));
1966
1923
  const colors = noise.map((n) => [n.value * 255, n.value * 255, n.value * 255, 255]).flat();
@@ -1968,10 +1925,14 @@ function NoiseRawTextureNode({ id, selected, data, type }) {
1968
1925
  dataArray.set(colors);
1969
1926
  setResolution(size);
1970
1927
  setDataLength(dataArray.length);
1971
- updateComputedData(id, { textureData: dataArray, textureResolution: size });
1928
+ updateComputedData(id, {
1929
+ textureData: dataArray,
1930
+ textureResolutionX: size,
1931
+ textureResolutionY: size
1932
+ });
1972
1933
  }
1973
1934
  }, [noise]);
1974
- return /* @__PURE__ */ jsxs19(NodeContainer23, { id, selected, data, type, children: [
1935
+ return /* @__PURE__ */ jsxs19(NodeContainer22, { id, selected, data, type, children: [
1975
1936
  /* @__PURE__ */ jsxs19(Stack9, { children: [
1976
1937
  /* @__PURE__ */ jsxs19(Group11, { children: [
1977
1938
  "Resolution: ",
@@ -1992,49 +1953,49 @@ function NoiseRawTextureNode({ id, selected, data, type }) {
1992
1953
  dataLength
1993
1954
  ] })
1994
1955
  ] }),
1995
- /* @__PURE__ */ jsx23(NodeTrackConnections18, { handles: data.handles, nodeId: id, type: "target" })
1956
+ /* @__PURE__ */ jsx22(NodeTrackConnections18, { handles: data.handles, nodeId: id, type: "target" })
1996
1957
  ] });
1997
1958
  }
1998
1959
  var noise_raw_texture_node_default = NoiseRawTextureNode;
1999
1960
 
2000
1961
  // src/nodes/output/positions-logger-node.tsx
2001
- import { NodeContainer as NodeContainer24, NodeTrackConnections as NodeTrackConnections19 } from "@awesome-flow/core/layout";
2002
- import { useMemo as useMemo12 } from "react";
1962
+ import { NodeContainer as NodeContainer23, NodeTrackConnections as NodeTrackConnections19 } from "@awesome-flow/core/layout";
1963
+ import { useMemo as useMemo11 } from "react";
2003
1964
  import { Divider as Divider2, Stack as Stack10, Text as Text2 } from "@mantine/core";
2004
1965
  import { useIncomingComputedData as useIncomingComputedData13 } from "@awesome-flow/core/hooks";
2005
- import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
1966
+ import { jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
2006
1967
  function PositionsLoggerNode({ id, selected, data, type }) {
2007
1968
  const incoming = useIncomingComputedData13(id);
2008
- const positions = useMemo12(() => {
1969
+ const positions = useMemo11(() => {
2009
1970
  return incoming?.map((p) => p.positions).flat();
2010
1971
  }, [incoming]);
2011
- return /* @__PURE__ */ jsxs20(NodeContainer24, { id, selected, data, type, children: [
1972
+ return /* @__PURE__ */ jsxs20(NodeContainer23, { id, selected, data, type, children: [
2012
1973
  /* @__PURE__ */ jsxs20(Text2, { children: [
2013
1974
  "Size: ",
2014
1975
  positions?.length || 0
2015
1976
  ] }),
2016
- /* @__PURE__ */ jsx24(Divider2, { h: 5 }),
2017
- /* @__PURE__ */ jsx24(Stack10, { children: positions?.map((v, i) => /* @__PURE__ */ jsxs20(Text2, { children: [
1977
+ /* @__PURE__ */ jsx23(Divider2, { h: 5 }),
1978
+ /* @__PURE__ */ jsx23(Stack10, { children: positions?.map((v, i) => /* @__PURE__ */ jsxs20(Text2, { children: [
2018
1979
  v.x,
2019
1980
  ":",
2020
1981
  v.y,
2021
1982
  ":",
2022
1983
  v.z
2023
1984
  ] }, i)) }),
2024
- /* @__PURE__ */ jsx24(NodeTrackConnections19, { handles: data.handles, nodeId: id, type: "target" })
1985
+ /* @__PURE__ */ jsx23(NodeTrackConnections19, { handles: data.handles, nodeId: id, type: "target" })
2025
1986
  ] });
2026
1987
  }
2027
1988
  var positions_logger_node_default = PositionsLoggerNode;
2028
1989
 
2029
1990
  // src/nodes/selectors/noise-blend-node.tsx
2030
- import { NodeContainer as NodeContainer25, NodeTrackConnections as NodeTrackConnections20 } from "@awesome-flow/core/layout";
1991
+ import { NodeContainer as NodeContainer24, NodeTrackConnections as NodeTrackConnections20 } from "@awesome-flow/core/layout";
2031
1992
  import { useCallback as useCallback17 } from "react";
2032
- import { useUpdateNodeComputedData as useUpdateNodeComputedData23 } from "@awesome-flow/core/hooks";
2033
- import { Blend } from "libnoise-ts/module/selector";
1993
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData22 } from "@awesome-flow/core/hooks";
1994
+ import { Blend } from "libnoise-simplex-ts";
2034
1995
  import { HandlesIncomingDataStatus } from "@awesome-flow/core/components";
2035
- import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
1996
+ import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
2036
1997
  function NoiseBlendNode({ id, selected, data, type }) {
2037
- const updateComputedData = useUpdateNodeComputedData23();
1998
+ const updateComputedData = useUpdateNodeComputedData22();
2038
1999
  const onDataUpdated = useCallback17(
2039
2000
  (incomingData) => {
2040
2001
  const incomingSources = incomingData["source" /* source */];
@@ -2050,8 +2011,8 @@ function NoiseBlendNode({ id, selected, data, type }) {
2050
2011
  },
2051
2012
  []
2052
2013
  );
2053
- return /* @__PURE__ */ jsxs21(NodeContainer25, { id, selected, data, type, children: [
2054
- /* @__PURE__ */ jsx25(
2014
+ return /* @__PURE__ */ jsxs21(NodeContainer24, { id, selected, data, type, children: [
2015
+ /* @__PURE__ */ jsx24(
2055
2016
  HandlesIncomingDataStatus,
2056
2017
  {
2057
2018
  nodeId: id,
@@ -2062,26 +2023,26 @@ function NoiseBlendNode({ id, selected, data, type }) {
2062
2023
  resetComputedData: true
2063
2024
  }
2064
2025
  ),
2065
- /* @__PURE__ */ jsx25(NodeTrackConnections20, { handles: data.handles, nodeId: id, type: "target" })
2026
+ /* @__PURE__ */ jsx24(NodeTrackConnections20, { handles: data.handles, nodeId: id, type: "target" })
2066
2027
  ] });
2067
2028
  }
2068
2029
  var noise_blend_node_default = NoiseBlendNode;
2069
2030
 
2070
2031
  // src/nodes/selectors/noise-select-node.tsx
2071
- import { NodeContainer as NodeContainer26, NodeTrackConnections as NodeTrackConnections21 } from "@awesome-flow/core/layout";
2072
- import { useCallback as useCallback18, useEffect as useEffect19, useState as useState15 } from "react";
2073
- import { useUpdateNodeComputedData as useUpdateNodeComputedData24, useUpdateNodeData as useUpdateNodeData11 } from "@awesome-flow/core/hooks";
2074
- import { Select } from "libnoise-ts/module/selector";
2032
+ import { NodeContainer as NodeContainer25, NodeTrackConnections as NodeTrackConnections21 } from "@awesome-flow/core/layout";
2033
+ import { useCallback as useCallback18, useEffect as useEffect18, useState as useState15 } from "react";
2034
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData23, useUpdateNodeData as useUpdateNodeData11 } from "@awesome-flow/core/hooks";
2035
+ import { Select } from "libnoise-simplex-ts";
2075
2036
  import { Group as Group12, NumberInput as NumberInput10, Stack as Stack11 } from "@mantine/core";
2076
2037
  import { HandlesIncomingDataStatus as HandlesIncomingDataStatus2 } from "@awesome-flow/core/components";
2077
- import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
2038
+ import { jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
2078
2039
  function NoiseSelectNode({ id, selected, data, type }) {
2079
2040
  const [edgeFalloff, setEdgeFalloff] = useState15(data.edgeFalloff);
2080
2041
  const [lowerBound, setLowerBound] = useState15(data.lowerBound);
2081
2042
  const [upperBound, setUpperBound] = useState15(data.upperBound);
2082
2043
  const updateNodeData = useUpdateNodeData11();
2083
- const updateComputedData = useUpdateNodeComputedData24();
2084
- useEffect19(() => {
2044
+ const updateComputedData = useUpdateNodeComputedData23();
2045
+ useEffect18(() => {
2085
2046
  updateNodeData(id, { edgeFalloff, lowerBound, upperBound });
2086
2047
  }, [edgeFalloff, lowerBound, upperBound]);
2087
2048
  const onDataUpdated = useCallback18(
@@ -2102,11 +2063,11 @@ function NoiseSelectNode({ id, selected, data, type }) {
2102
2063
  },
2103
2064
  []
2104
2065
  );
2105
- return /* @__PURE__ */ jsxs22(NodeContainer26, { id, selected, data, type, children: [
2066
+ return /* @__PURE__ */ jsxs22(NodeContainer25, { id, selected, data, type, children: [
2106
2067
  /* @__PURE__ */ jsxs22(Stack11, { children: [
2107
2068
  /* @__PURE__ */ jsxs22(Group12, { children: [
2108
2069
  "Edge Falloff:",
2109
- /* @__PURE__ */ jsx26(
2070
+ /* @__PURE__ */ jsx25(
2110
2071
  NumberInput10,
2111
2072
  {
2112
2073
  size: "xs",
@@ -2119,7 +2080,7 @@ function NoiseSelectNode({ id, selected, data, type }) {
2119
2080
  ] }),
2120
2081
  /* @__PURE__ */ jsxs22(Group12, { children: [
2121
2082
  "Lower Bound:",
2122
- /* @__PURE__ */ jsx26(
2083
+ /* @__PURE__ */ jsx25(
2123
2084
  NumberInput10,
2124
2085
  {
2125
2086
  size: "xs",
@@ -2132,7 +2093,7 @@ function NoiseSelectNode({ id, selected, data, type }) {
2132
2093
  ] }),
2133
2094
  /* @__PURE__ */ jsxs22(Group12, { children: [
2134
2095
  "Upper Bound:",
2135
- /* @__PURE__ */ jsx26(
2096
+ /* @__PURE__ */ jsx25(
2136
2097
  NumberInput10,
2137
2098
  {
2138
2099
  size: "xs",
@@ -2143,7 +2104,7 @@ function NoiseSelectNode({ id, selected, data, type }) {
2143
2104
  }
2144
2105
  )
2145
2106
  ] }),
2146
- /* @__PURE__ */ jsx26(
2107
+ /* @__PURE__ */ jsx25(
2147
2108
  HandlesIncomingDataStatus2,
2148
2109
  {
2149
2110
  nodeId: id,
@@ -2155,20 +2116,20 @@ function NoiseSelectNode({ id, selected, data, type }) {
2155
2116
  }
2156
2117
  )
2157
2118
  ] }),
2158
- /* @__PURE__ */ jsx26(NodeTrackConnections21, { handles: data.handles, nodeId: id, type: "target" })
2119
+ /* @__PURE__ */ jsx25(NodeTrackConnections21, { handles: data.handles, nodeId: id, type: "target" })
2159
2120
  ] });
2160
2121
  }
2161
2122
  var noise_select_node_default = NoiseSelectNode;
2162
2123
 
2163
2124
  // src/nodes/transformers/noise-displace-node.tsx
2164
- import { NodeContainer as NodeContainer27, NodeTrackConnections as NodeTrackConnections22 } from "@awesome-flow/core/layout";
2125
+ import { NodeContainer as NodeContainer26, NodeTrackConnections as NodeTrackConnections22 } from "@awesome-flow/core/layout";
2165
2126
  import { useCallback as useCallback19 } from "react";
2166
- import { useUpdateNodeComputedData as useUpdateNodeComputedData25 } from "@awesome-flow/core/hooks";
2167
- import { Displace } from "libnoise-ts/module/transformer";
2127
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData24 } from "@awesome-flow/core/hooks";
2128
+ import { Displace } from "libnoise-simplex-ts";
2168
2129
  import { HandlesIncomingDataStatus as HandlesIncomingDataStatus3 } from "@awesome-flow/core/components";
2169
- import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
2130
+ import { jsx as jsx26, jsxs as jsxs23 } from "react/jsx-runtime";
2170
2131
  function NoiseDisplaceNode({ id, selected, data, type }) {
2171
- const updateComputedData = useUpdateNodeComputedData25();
2132
+ const updateComputedData = useUpdateNodeComputedData24();
2172
2133
  const onDataUpdated = useCallback19(
2173
2134
  (handleData) => {
2174
2135
  const sourceModule = handleData["source" /* sourceModule */];
@@ -2187,8 +2148,8 @@ function NoiseDisplaceNode({ id, selected, data, type }) {
2187
2148
  },
2188
2149
  []
2189
2150
  );
2190
- return /* @__PURE__ */ jsxs23(NodeContainer27, { id, selected, data, type, children: [
2191
- /* @__PURE__ */ jsx27(
2151
+ return /* @__PURE__ */ jsxs23(NodeContainer26, { id, selected, data, type, children: [
2152
+ /* @__PURE__ */ jsx26(
2192
2153
  HandlesIncomingDataStatus3,
2193
2154
  {
2194
2155
  nodeId: id,
@@ -2199,22 +2160,22 @@ function NoiseDisplaceNode({ id, selected, data, type }) {
2199
2160
  resetComputedData: true
2200
2161
  }
2201
2162
  ),
2202
- /* @__PURE__ */ jsx27(NodeTrackConnections22, { handles: data.handles, nodeId: id, type: "target" })
2163
+ /* @__PURE__ */ jsx26(NodeTrackConnections22, { handles: data.handles, nodeId: id, type: "target" })
2203
2164
  ] });
2204
2165
  }
2205
2166
  var noise_displace_node_default = NoiseDisplaceNode;
2206
2167
 
2207
2168
  // src/nodes/transformers/noise-rotate-point-node.tsx
2208
- import { NodeContainer as NodeContainer28, NodeTrackConnections as NodeTrackConnections23 } from "@awesome-flow/core/layout";
2209
- import { useEffect as useEffect20, useState as useState16 } from "react";
2169
+ import { NodeContainer as NodeContainer27, NodeTrackConnections as NodeTrackConnections23 } from "@awesome-flow/core/layout";
2170
+ import { useEffect as useEffect19, useState as useState16 } from "react";
2210
2171
  import {
2211
2172
  useIncomingComputedData as useIncomingComputedData14,
2212
- useUpdateNodeComputedData as useUpdateNodeComputedData26,
2173
+ useUpdateNodeComputedData as useUpdateNodeComputedData25,
2213
2174
  useUpdateNodeData as useUpdateNodeData12
2214
2175
  } from "@awesome-flow/core/hooks";
2215
2176
  import { Group as Group13, NumberInput as NumberInput11, Stack as Stack12 } from "@mantine/core";
2216
- import { RotatePoint } from "libnoise-ts/module/transformer";
2217
- import { jsx as jsx28, jsxs as jsxs24 } from "react/jsx-runtime";
2177
+ import { RotatePoint } from "libnoise-simplex-ts";
2178
+ import { jsx as jsx27, jsxs as jsxs24 } from "react/jsx-runtime";
2218
2179
  function NoiseRotatePointNode({
2219
2180
  id,
2220
2181
  selected,
@@ -2226,19 +2187,19 @@ function NoiseRotatePointNode({
2226
2187
  const [zAngle, setZAngle] = useState16(data.zAngle);
2227
2188
  const incoming = useIncomingComputedData14(id);
2228
2189
  const updateNodeData = useUpdateNodeData12();
2229
- const updateComputedData = useUpdateNodeComputedData26();
2230
- useEffect20(() => {
2190
+ const updateComputedData = useUpdateNodeComputedData25();
2191
+ useEffect19(() => {
2231
2192
  if (incoming?.length) {
2232
2193
  const module = new RotatePoint(incoming[0].module, xAngle, yAngle, zAngle);
2233
2194
  updateComputedData(id, { module });
2234
2195
  }
2235
2196
  updateNodeData(id, { xAngle, yAngle, zAngle });
2236
2197
  }, [id, updateComputedData, updateNodeData, incoming, xAngle, yAngle, zAngle]);
2237
- return /* @__PURE__ */ jsxs24(NodeContainer28, { id, selected, data, type, children: [
2198
+ return /* @__PURE__ */ jsxs24(NodeContainer27, { id, selected, data, type, children: [
2238
2199
  /* @__PURE__ */ jsxs24(Stack12, { children: [
2239
2200
  /* @__PURE__ */ jsxs24(Group13, { children: [
2240
2201
  "X Angle:",
2241
- /* @__PURE__ */ jsx28(
2202
+ /* @__PURE__ */ jsx27(
2242
2203
  NumberInput11,
2243
2204
  {
2244
2205
  size: "xs",
@@ -2251,7 +2212,7 @@ function NoiseRotatePointNode({
2251
2212
  ] }),
2252
2213
  /* @__PURE__ */ jsxs24(Group13, { children: [
2253
2214
  "Y Angle:",
2254
- /* @__PURE__ */ jsx28(
2215
+ /* @__PURE__ */ jsx27(
2255
2216
  NumberInput11,
2256
2217
  {
2257
2218
  size: "xs",
@@ -2264,7 +2225,7 @@ function NoiseRotatePointNode({
2264
2225
  ] }),
2265
2226
  /* @__PURE__ */ jsxs24(Group13, { children: [
2266
2227
  "Z Angle:",
2267
- /* @__PURE__ */ jsx28(
2228
+ /* @__PURE__ */ jsx27(
2268
2229
  NumberInput11,
2269
2230
  {
2270
2231
  size: "xs",
@@ -2276,22 +2237,22 @@ function NoiseRotatePointNode({
2276
2237
  )
2277
2238
  ] })
2278
2239
  ] }),
2279
- /* @__PURE__ */ jsx28(NodeTrackConnections23, { handles: data.handles, nodeId: id, type: "target" })
2240
+ /* @__PURE__ */ jsx27(NodeTrackConnections23, { handles: data.handles, nodeId: id, type: "target" })
2280
2241
  ] });
2281
2242
  }
2282
2243
  var noise_rotate_point_node_default = NoiseRotatePointNode;
2283
2244
 
2284
2245
  // src/nodes/transformers/noise-scale-point-node.tsx
2285
- import { NodeContainer as NodeContainer29, NodeTrackConnections as NodeTrackConnections24 } from "@awesome-flow/core/layout";
2286
- import { useEffect as useEffect21, useState as useState17 } from "react";
2246
+ import { NodeContainer as NodeContainer28, NodeTrackConnections as NodeTrackConnections24 } from "@awesome-flow/core/layout";
2247
+ import { useEffect as useEffect20, useState as useState17 } from "react";
2287
2248
  import {
2288
2249
  useIncomingComputedData as useIncomingComputedData15,
2289
- useUpdateNodeComputedData as useUpdateNodeComputedData27,
2250
+ useUpdateNodeComputedData as useUpdateNodeComputedData26,
2290
2251
  useUpdateNodeData as useUpdateNodeData13
2291
2252
  } from "@awesome-flow/core/hooks";
2292
2253
  import { Group as Group14, NumberInput as NumberInput12, Stack as Stack13 } from "@mantine/core";
2293
- import { ScalePoint } from "libnoise-ts/module/transformer";
2294
- import { jsx as jsx29, jsxs as jsxs25 } from "react/jsx-runtime";
2254
+ import { ScalePoint } from "libnoise-simplex-ts";
2255
+ import { jsx as jsx28, jsxs as jsxs25 } from "react/jsx-runtime";
2295
2256
  function NoiseScalePointNode({
2296
2257
  id,
2297
2258
  selected,
@@ -2303,19 +2264,19 @@ function NoiseScalePointNode({
2303
2264
  const [zScale, setZScale] = useState17(data.zScale);
2304
2265
  const incoming = useIncomingComputedData15(id);
2305
2266
  const updateNodeData = useUpdateNodeData13();
2306
- const updateComputedData = useUpdateNodeComputedData27();
2307
- useEffect21(() => {
2267
+ const updateComputedData = useUpdateNodeComputedData26();
2268
+ useEffect20(() => {
2308
2269
  if (incoming?.length) {
2309
2270
  const module = new ScalePoint(incoming[0].module, xScale, yScale, zScale);
2310
2271
  updateComputedData(id, { module });
2311
2272
  }
2312
2273
  updateNodeData(id, { xScale, yScale, zScale });
2313
2274
  }, [id, incoming, updateComputedData, updateNodeData, xScale, yScale, zScale]);
2314
- return /* @__PURE__ */ jsxs25(NodeContainer29, { id, selected, data, type, children: [
2275
+ return /* @__PURE__ */ jsxs25(NodeContainer28, { id, selected, data, type, children: [
2315
2276
  /* @__PURE__ */ jsxs25(Stack13, { children: [
2316
2277
  /* @__PURE__ */ jsxs25(Group14, { children: [
2317
2278
  "X Scale:",
2318
- /* @__PURE__ */ jsx29(
2279
+ /* @__PURE__ */ jsx28(
2319
2280
  NumberInput12,
2320
2281
  {
2321
2282
  size: "xs",
@@ -2328,7 +2289,7 @@ function NoiseScalePointNode({
2328
2289
  ] }),
2329
2290
  /* @__PURE__ */ jsxs25(Group14, { children: [
2330
2291
  "Y Scale:",
2331
- /* @__PURE__ */ jsx29(
2292
+ /* @__PURE__ */ jsx28(
2332
2293
  NumberInput12,
2333
2294
  {
2334
2295
  size: "xs",
@@ -2341,7 +2302,7 @@ function NoiseScalePointNode({
2341
2302
  ] }),
2342
2303
  /* @__PURE__ */ jsxs25(Group14, { children: [
2343
2304
  "Z Scale:",
2344
- /* @__PURE__ */ jsx29(
2305
+ /* @__PURE__ */ jsx28(
2345
2306
  NumberInput12,
2346
2307
  {
2347
2308
  size: "xs",
@@ -2353,22 +2314,22 @@ function NoiseScalePointNode({
2353
2314
  )
2354
2315
  ] })
2355
2316
  ] }),
2356
- /* @__PURE__ */ jsx29(NodeTrackConnections24, { handles: data.handles, nodeId: id, type: "target" })
2317
+ /* @__PURE__ */ jsx28(NodeTrackConnections24, { handles: data.handles, nodeId: id, type: "target" })
2357
2318
  ] });
2358
2319
  }
2359
2320
  var noise_scale_point_node_default = NoiseScalePointNode;
2360
2321
 
2361
2322
  // src/nodes/transformers/noise-translate-point-node.tsx
2362
- import { NodeContainer as NodeContainer30, NodeTrackConnections as NodeTrackConnections25 } from "@awesome-flow/core/layout";
2363
- import { useEffect as useEffect22, useState as useState18 } from "react";
2323
+ import { NodeContainer as NodeContainer29, NodeTrackConnections as NodeTrackConnections25 } from "@awesome-flow/core/layout";
2324
+ import { useEffect as useEffect21, useState as useState18 } from "react";
2364
2325
  import {
2365
2326
  useIncomingComputedData as useIncomingComputedData16,
2366
- useUpdateNodeComputedData as useUpdateNodeComputedData28,
2327
+ useUpdateNodeComputedData as useUpdateNodeComputedData27,
2367
2328
  useUpdateNodeData as useUpdateNodeData14
2368
2329
  } from "@awesome-flow/core/hooks";
2369
2330
  import { Group as Group15, NumberInput as NumberInput13, Stack as Stack14 } from "@mantine/core";
2370
- import { TranslatePoint } from "libnoise-ts/module/transformer";
2371
- import { jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
2331
+ import { TranslatePoint } from "libnoise-simplex-ts";
2332
+ import { jsx as jsx29, jsxs as jsxs26 } from "react/jsx-runtime";
2372
2333
  function NoiseTranslatePointNode({
2373
2334
  id,
2374
2335
  selected,
@@ -2380,19 +2341,19 @@ function NoiseTranslatePointNode({
2380
2341
  const [translateZ, setTranslateZ] = useState18(data.translateZ);
2381
2342
  const incoming = useIncomingComputedData16(id);
2382
2343
  const updateNodeData = useUpdateNodeData14();
2383
- const updateComputedData = useUpdateNodeComputedData28();
2384
- useEffect22(() => {
2344
+ const updateComputedData = useUpdateNodeComputedData27();
2345
+ useEffect21(() => {
2385
2346
  if (incoming?.length) {
2386
2347
  const module = new TranslatePoint(incoming[0].module, translateX, translateY, translateZ);
2387
2348
  updateComputedData(id, { module });
2388
2349
  }
2389
2350
  updateNodeData(id, { translateX, translateY, translateZ });
2390
2351
  }, [id, incoming, translateX, translateY, translateZ, updateComputedData, updateNodeData]);
2391
- return /* @__PURE__ */ jsxs26(NodeContainer30, { id, selected, data, type, children: [
2352
+ return /* @__PURE__ */ jsxs26(NodeContainer29, { id, selected, data, type, children: [
2392
2353
  /* @__PURE__ */ jsxs26(Stack14, { children: [
2393
2354
  /* @__PURE__ */ jsxs26(Group15, { children: [
2394
2355
  "Translate X:",
2395
- /* @__PURE__ */ jsx30(
2356
+ /* @__PURE__ */ jsx29(
2396
2357
  NumberInput13,
2397
2358
  {
2398
2359
  size: "xs",
@@ -2405,7 +2366,7 @@ function NoiseTranslatePointNode({
2405
2366
  ] }),
2406
2367
  /* @__PURE__ */ jsxs26(Group15, { children: [
2407
2368
  "Translate Y:",
2408
- /* @__PURE__ */ jsx30(
2369
+ /* @__PURE__ */ jsx29(
2409
2370
  NumberInput13,
2410
2371
  {
2411
2372
  size: "xs",
@@ -2418,7 +2379,7 @@ function NoiseTranslatePointNode({
2418
2379
  ] }),
2419
2380
  /* @__PURE__ */ jsxs26(Group15, { children: [
2420
2381
  "Translate Z:",
2421
- /* @__PURE__ */ jsx30(
2382
+ /* @__PURE__ */ jsx29(
2422
2383
  NumberInput13,
2423
2384
  {
2424
2385
  size: "xs",
@@ -2430,18 +2391,18 @@ function NoiseTranslatePointNode({
2430
2391
  )
2431
2392
  ] })
2432
2393
  ] }),
2433
- /* @__PURE__ */ jsx30(NodeTrackConnections25, { handles: data.handles, nodeId: id, type: "target" })
2394
+ /* @__PURE__ */ jsx29(NodeTrackConnections25, { handles: data.handles, nodeId: id, type: "target" })
2434
2395
  ] });
2435
2396
  }
2436
2397
  var noise_translate_point_node_default = NoiseTranslatePointNode;
2437
2398
 
2438
2399
  // src/nodes/transformers/noise-turbulence-node .tsx
2439
- import { NodeContainer as NodeContainer31, NodeTrackConnections as NodeTrackConnections26 } from "@awesome-flow/core/layout";
2440
- import { useCallback as useCallback20, useEffect as useEffect23, useState as useState19 } from "react";
2441
- import { useIncomingComputedData as useIncomingComputedData17, useUpdateNodeComputedData as useUpdateNodeComputedData29 } from "@awesome-flow/core/hooks";
2442
- import { Turbulence } from "libnoise-ts/module/transformer";
2400
+ import { NodeContainer as NodeContainer30, NodeTrackConnections as NodeTrackConnections26 } from "@awesome-flow/core/layout";
2401
+ import { useCallback as useCallback20, useEffect as useEffect22, useState as useState19 } from "react";
2402
+ import { useIncomingComputedData as useIncomingComputedData17, useUpdateNodeComputedData as useUpdateNodeComputedData28 } from "@awesome-flow/core/hooks";
2403
+ import { Turbulence } from "libnoise-simplex-ts";
2443
2404
  import { NodePropertyVariables as NodePropertyVariables7 } from "@awesome-flow/core/components";
2444
- import { jsx as jsx31, jsxs as jsxs27 } from "react/jsx-runtime";
2405
+ import { jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
2445
2406
  function NoiseTurbulenceNode({
2446
2407
  id,
2447
2408
  selected,
@@ -2450,11 +2411,11 @@ function NoiseTurbulenceNode({
2450
2411
  }) {
2451
2412
  const [properties, setProperties] = useState19(null);
2452
2413
  const incoming = useIncomingComputedData17(id);
2453
- const updateComputedData = useUpdateNodeComputedData29();
2414
+ const updateComputedData = useUpdateNodeComputedData28();
2454
2415
  const onPropertiesChange = useCallback20((props) => {
2455
2416
  setProperties(props);
2456
2417
  }, []);
2457
- useEffect23(() => {
2418
+ useEffect22(() => {
2458
2419
  if (incoming?.length && properties) {
2459
2420
  const module = new Turbulence(
2460
2421
  incoming[0].module,
@@ -2466,9 +2427,9 @@ function NoiseTurbulenceNode({
2466
2427
  updateComputedData(id, { module });
2467
2428
  }
2468
2429
  }, [id, incoming, properties]);
2469
- return /* @__PURE__ */ jsxs27(NodeContainer31, { id, selected, data, type, children: [
2470
- /* @__PURE__ */ jsx31(NodePropertyVariables7, { data, nodeId: id, onPropertiesChange }),
2471
- /* @__PURE__ */ jsx31(NodeTrackConnections26, { handles: data.handles, nodeId: id, type: "target" })
2430
+ return /* @__PURE__ */ jsxs27(NodeContainer30, { id, selected, data, type, children: [
2431
+ /* @__PURE__ */ jsx30(NodePropertyVariables7, { data, nodeId: id, onPropertiesChange }),
2432
+ /* @__PURE__ */ jsx30(NodeTrackConnections26, { handles: data.handles, nodeId: id, type: "target" })
2472
2433
  ] });
2473
2434
  }
2474
2435
  var noise_turbulence_node_default = NoiseTurbulenceNode;
@@ -2601,36 +2562,9 @@ var NoiseRidgedMultiNodeTemplateFactory = class {
2601
2562
  };
2602
2563
  };
2603
2564
 
2604
- // src/templates/generators/noise-simplex-template.ts
2605
- import {
2606
- CoreHandleType as CoreHandleType4
2607
- } from "@awesome-flow/core/abstract";
2608
- import { Position as Position6 } from "@xyflow/system";
2609
- var NoiseSimplexNodeTemplateFactory = class {
2610
- template = {
2611
- type: "noise-simplex" /* noiseSimplex */,
2612
- group: "Noise Generators" /* noiseGenerators */,
2613
- data: {
2614
- title: "Simplex Noise"
2615
- },
2616
- handles: [
2617
- {
2618
- position: Position6.Left,
2619
- dataType: CoreHandleType4.variableProperty,
2620
- connection: "target"
2621
- },
2622
- {
2623
- position: Position6.Right,
2624
- dataType: "module" /* module */,
2625
- connection: "source"
2626
- }
2627
- ]
2628
- };
2629
- };
2630
-
2631
2565
  // src/templates/generators/noise-spheres-template.ts
2632
- import { CoreHandleType as CoreHandleType5 } from "@awesome-flow/core/abstract";
2633
- 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";
2634
2568
  var NoiseSpheresNodeTemplateFactory = class {
2635
2569
  template = {
2636
2570
  type: "noise-spheres" /* noiseSpheres */,
@@ -2641,12 +2575,12 @@ var NoiseSpheresNodeTemplateFactory = class {
2641
2575
  },
2642
2576
  handles: [
2643
2577
  {
2644
- position: Position7.Left,
2645
- dataType: CoreHandleType5.variableProperty,
2578
+ position: Position6.Left,
2579
+ dataType: CoreHandleType4.variableProperty,
2646
2580
  connection: "target"
2647
2581
  },
2648
2582
  {
2649
- position: Position7.Right,
2583
+ position: Position6.Right,
2650
2584
  dataType: "module" /* module */,
2651
2585
  connection: "source"
2652
2586
  }
@@ -2655,8 +2589,8 @@ var NoiseSpheresNodeTemplateFactory = class {
2655
2589
  };
2656
2590
 
2657
2591
  // src/templates/generators/noise-voronoi-template.ts
2658
- import { CoreHandleType as CoreHandleType6 } from "@awesome-flow/core/abstract";
2659
- 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";
2660
2594
  var NoiseVoronoiNodeTemplateFactory = class {
2661
2595
  template = {
2662
2596
  type: "noise-voronoi" /* noiseVoronoi */,
@@ -2670,12 +2604,12 @@ var NoiseVoronoiNodeTemplateFactory = class {
2670
2604
  },
2671
2605
  handles: [
2672
2606
  {
2673
- position: Position8.Left,
2674
- dataType: CoreHandleType6.variableProperty,
2607
+ position: Position7.Left,
2608
+ dataType: CoreHandleType5.variableProperty,
2675
2609
  connection: "target"
2676
2610
  },
2677
2611
  {
2678
- position: Position8.Right,
2612
+ position: Position7.Right,
2679
2613
  dataType: "module" /* module */,
2680
2614
  connection: "source"
2681
2615
  }
@@ -2684,7 +2618,7 @@ var NoiseVoronoiNodeTemplateFactory = class {
2684
2618
  };
2685
2619
 
2686
2620
  // src/templates/generators/position-const-template.ts
2687
- import { Position as Position9 } from "@xyflow/system";
2621
+ import { Position as Position8 } from "@xyflow/system";
2688
2622
  var PositionConstNodeTemplateFactory = class {
2689
2623
  template = {
2690
2624
  type: "position" /* position */,
@@ -2695,7 +2629,7 @@ var PositionConstNodeTemplateFactory = class {
2695
2629
  },
2696
2630
  handles: [
2697
2631
  {
2698
- position: Position9.Right,
2632
+ position: Position8.Right,
2699
2633
  dataType: "position" /* position */,
2700
2634
  connection: "source"
2701
2635
  }
@@ -2704,7 +2638,7 @@ var PositionConstNodeTemplateFactory = class {
2704
2638
  };
2705
2639
 
2706
2640
  // src/templates/generators/position-grid-template.ts
2707
- import { Position as Position10 } from "@xyflow/system";
2641
+ import { Position as Position9 } from "@xyflow/system";
2708
2642
  var PositionGridNodeTemplateFactory = class {
2709
2643
  template = {
2710
2644
  type: "grid" /* grid */,
@@ -2716,7 +2650,7 @@ var PositionGridNodeTemplateFactory = class {
2716
2650
  },
2717
2651
  handles: [
2718
2652
  {
2719
- position: Position10.Right,
2653
+ position: Position9.Right,
2720
2654
  dataType: "position" /* position */,
2721
2655
  connection: "source"
2722
2656
  }
@@ -2726,7 +2660,7 @@ var PositionGridNodeTemplateFactory = class {
2726
2660
 
2727
2661
  // src/templates/modifiers/noise-normalize-template.ts
2728
2662
  import { IDGenerator } from "@awesome-flow/core/utils";
2729
- import { Position as Position11 } from "@xyflow/system";
2663
+ import { Position as Position10 } from "@xyflow/system";
2730
2664
  var NoiseNormalizeNodeTemplateFactory = class {
2731
2665
  template = {
2732
2666
  id: IDGenerator.template(),
@@ -2739,13 +2673,13 @@ var NoiseNormalizeNodeTemplateFactory = class {
2739
2673
  },
2740
2674
  handles: [
2741
2675
  {
2742
- position: Position11.Left,
2676
+ position: Position10.Left,
2743
2677
  dataType: "module" /* module */,
2744
2678
  connection: "target",
2745
2679
  maxConnections: 1
2746
2680
  },
2747
2681
  {
2748
- position: Position11.Right,
2682
+ position: Position10.Right,
2749
2683
  dataType: "module" /* module */,
2750
2684
  connection: "source"
2751
2685
  }
@@ -2754,7 +2688,7 @@ var NoiseNormalizeNodeTemplateFactory = class {
2754
2688
  };
2755
2689
 
2756
2690
  // src/templates/output/noise-logger-template.ts
2757
- import { Position as Position12 } from "@xyflow/system";
2691
+ import { Position as Position11 } from "@xyflow/system";
2758
2692
  var NoiseLoggerNodeTemplateFactory = class {
2759
2693
  template = {
2760
2694
  type: "noise-logger" /* noiseLogger */,
@@ -2764,7 +2698,7 @@ var NoiseLoggerNodeTemplateFactory = class {
2764
2698
  },
2765
2699
  handles: [
2766
2700
  {
2767
- position: Position12.Left,
2701
+ position: Position11.Left,
2768
2702
  dataType: "noise" /* noise */,
2769
2703
  connection: "target"
2770
2704
  }
@@ -2773,7 +2707,7 @@ var NoiseLoggerNodeTemplateFactory = class {
2773
2707
  };
2774
2708
 
2775
2709
  // src/templates/output/noise-raw-texture-template.ts
2776
- import { Position as Position13 } from "@xyflow/system";
2710
+ import { Position as Position12 } from "@xyflow/system";
2777
2711
  var NoiseRawTextureTemplateFactory = class {
2778
2712
  template = {
2779
2713
  type: "texture-data" /* textureData */,
@@ -2783,13 +2717,13 @@ var NoiseRawTextureTemplateFactory = class {
2783
2717
  },
2784
2718
  handles: [
2785
2719
  {
2786
- position: Position13.Left,
2720
+ position: Position12.Left,
2787
2721
  dataType: "noise" /* noise */,
2788
2722
  connection: "target",
2789
2723
  maxConnections: 1
2790
2724
  },
2791
2725
  {
2792
- position: Position13.Right,
2726
+ position: Position12.Right,
2793
2727
  dataType: "texture" /* texture */,
2794
2728
  connection: "source"
2795
2729
  }
@@ -2798,7 +2732,7 @@ var NoiseRawTextureTemplateFactory = class {
2798
2732
  };
2799
2733
 
2800
2734
  // src/templates/output/position-logger-template.ts
2801
- import { Position as Position14 } from "@xyflow/system";
2735
+ import { Position as Position13 } from "@xyflow/system";
2802
2736
  var PositionLoggerNodeTemplateFactory = class {
2803
2737
  template = {
2804
2738
  type: "position-logger" /* positionLogger */,
@@ -2808,7 +2742,7 @@ var PositionLoggerNodeTemplateFactory = class {
2808
2742
  },
2809
2743
  handles: [
2810
2744
  {
2811
- position: Position14.Left,
2745
+ position: Position13.Left,
2812
2746
  dataType: "position" /* position */,
2813
2747
  connection: "target"
2814
2748
  }
@@ -2817,7 +2751,7 @@ var PositionLoggerNodeTemplateFactory = class {
2817
2751
  };
2818
2752
 
2819
2753
  // src/templates/modifiers/noise-combine-template.ts
2820
- import { Position as Position15 } from "@xyflow/system";
2754
+ import { Position as Position14 } from "@xyflow/system";
2821
2755
  var NoiseCombineNodeTemplateFactory = class {
2822
2756
  template = {
2823
2757
  type: "noise-combiner" /* noiseCombine */,
@@ -2828,13 +2762,13 @@ var NoiseCombineNodeTemplateFactory = class {
2828
2762
  },
2829
2763
  handles: [
2830
2764
  {
2831
- position: Position15.Left,
2765
+ position: Position14.Left,
2832
2766
  dataType: "module" /* module */,
2833
2767
  connection: "target",
2834
2768
  maxConnections: 2
2835
2769
  },
2836
2770
  {
2837
- position: Position15.Right,
2771
+ position: Position14.Right,
2838
2772
  dataType: "module" /* module */,
2839
2773
  connection: "source"
2840
2774
  }
@@ -2843,7 +2777,7 @@ var NoiseCombineNodeTemplateFactory = class {
2843
2777
  };
2844
2778
 
2845
2779
  // src/templates/modifiers/noise-clamp-template.ts
2846
- import { Position as Position16 } from "@xyflow/system";
2780
+ import { Position as Position15 } from "@xyflow/system";
2847
2781
  var NoiseClampNodeTemplateFactory = class {
2848
2782
  template = {
2849
2783
  type: "noise-clamp" /* noiseClamp */,
@@ -2855,13 +2789,13 @@ var NoiseClampNodeTemplateFactory = class {
2855
2789
  },
2856
2790
  handles: [
2857
2791
  {
2858
- position: Position16.Left,
2792
+ position: Position15.Left,
2859
2793
  dataType: "module" /* module */,
2860
2794
  connection: "target",
2861
2795
  maxConnections: 1
2862
2796
  },
2863
2797
  {
2864
- position: Position16.Right,
2798
+ position: Position15.Right,
2865
2799
  dataType: "module" /* module */,
2866
2800
  connection: "source"
2867
2801
  }
@@ -2870,7 +2804,7 @@ var NoiseClampNodeTemplateFactory = class {
2870
2804
  };
2871
2805
 
2872
2806
  // src/templates/modifiers/noise-abs-template.ts
2873
- import { Position as Position17 } from "@xyflow/system";
2807
+ import { Position as Position16 } from "@xyflow/system";
2874
2808
  var NoiseAbsNodeTemplateFactory = class {
2875
2809
  template = {
2876
2810
  type: "noise-abs" /* noiseAbs */,
@@ -2880,13 +2814,13 @@ var NoiseAbsNodeTemplateFactory = class {
2880
2814
  },
2881
2815
  handles: [
2882
2816
  {
2883
- position: Position17.Left,
2817
+ position: Position16.Left,
2884
2818
  dataType: "module" /* module */,
2885
2819
  connection: "target",
2886
2820
  maxConnections: 1
2887
2821
  },
2888
2822
  {
2889
- position: Position17.Right,
2823
+ position: Position16.Right,
2890
2824
  dataType: "module" /* module */,
2891
2825
  connection: "source"
2892
2826
  }
@@ -2895,7 +2829,7 @@ var NoiseAbsNodeTemplateFactory = class {
2895
2829
  };
2896
2830
 
2897
2831
  // src/templates/output/noise-output-template.ts
2898
- import { Position as Position18 } from "@xyflow/system";
2832
+ import { Position as Position17 } from "@xyflow/system";
2899
2833
  var NoiseOutputNodeTemplateFactory = class {
2900
2834
  template = {
2901
2835
  type: "noise-output" /* noiseOutput */,
@@ -2905,18 +2839,18 @@ var NoiseOutputNodeTemplateFactory = class {
2905
2839
  },
2906
2840
  handles: [
2907
2841
  {
2908
- position: Position18.Left,
2842
+ position: Position17.Left,
2909
2843
  dataType: "position" /* position */,
2910
2844
  connection: "target"
2911
2845
  },
2912
2846
  {
2913
- position: Position18.Left,
2847
+ position: Position17.Left,
2914
2848
  dataType: "module" /* module */,
2915
2849
  connection: "target",
2916
2850
  maxConnections: 1
2917
2851
  },
2918
2852
  {
2919
- position: Position18.Right,
2853
+ position: Position17.Right,
2920
2854
  dataType: "noise" /* noise */,
2921
2855
  connection: "source"
2922
2856
  }
@@ -2925,8 +2859,7 @@ var NoiseOutputNodeTemplateFactory = class {
2925
2859
  };
2926
2860
 
2927
2861
  // src/templates/modifiers/noise-curve-template.ts
2928
- import { CoreHandleType as CoreHandleType7 } from "@awesome-flow/core/abstract";
2929
- import { Position as Position19 } from "@xyflow/system";
2862
+ import { Position as Position18 } from "@xyflow/system";
2930
2863
  var NoiseCurveNodeTemplateFactory = class {
2931
2864
  template = {
2932
2865
  type: "noise-curve" /* noiseCurve */,
@@ -2937,18 +2870,18 @@ var NoiseCurveNodeTemplateFactory = class {
2937
2870
  },
2938
2871
  handles: [
2939
2872
  {
2940
- position: Position19.Left,
2873
+ position: Position18.Left,
2941
2874
  dataType: "module" /* module */,
2942
2875
  connection: "target",
2943
2876
  maxConnections: 1
2944
2877
  },
2878
+ // {
2879
+ // position: Position.Left,
2880
+ // dataType: CoreHandleType.variableProperty,
2881
+ // connection: 'target',
2882
+ // },
2945
2883
  {
2946
- position: Position19.Left,
2947
- dataType: CoreHandleType7.variableProperty,
2948
- connection: "target"
2949
- },
2950
- {
2951
- position: Position19.Right,
2884
+ position: Position18.Right,
2952
2885
  dataType: "module" /* module */,
2953
2886
  connection: "source"
2954
2887
  }
@@ -2957,7 +2890,7 @@ var NoiseCurveNodeTemplateFactory = class {
2957
2890
  };
2958
2891
 
2959
2892
  // src/templates/modifiers/noise-exponent-template.ts
2960
- import { Position as Position20 } from "@xyflow/system";
2893
+ import { Position as Position19 } from "@xyflow/system";
2961
2894
  var NoiseExponentNodeTemplateFactory = class {
2962
2895
  template = {
2963
2896
  type: "noise-exponent" /* noiseExponent */,
@@ -2968,13 +2901,13 @@ var NoiseExponentNodeTemplateFactory = class {
2968
2901
  },
2969
2902
  handles: [
2970
2903
  {
2971
- position: Position20.Left,
2904
+ position: Position19.Left,
2972
2905
  dataType: "module" /* module */,
2973
2906
  connection: "target",
2974
2907
  maxConnections: 1
2975
2908
  },
2976
2909
  {
2977
- position: Position20.Right,
2910
+ position: Position19.Right,
2978
2911
  dataType: "module" /* module */,
2979
2912
  connection: "source"
2980
2913
  }
@@ -2983,7 +2916,7 @@ var NoiseExponentNodeTemplateFactory = class {
2983
2916
  };
2984
2917
 
2985
2918
  // src/templates/modifiers/noise-invert-template.ts
2986
- import { Position as Position21 } from "@xyflow/system";
2919
+ import { Position as Position20 } from "@xyflow/system";
2987
2920
  var NoiseInvertNodeTemplateFactory = class {
2988
2921
  template = {
2989
2922
  type: "noise-invert" /* noiseInvert */,
@@ -2993,13 +2926,13 @@ var NoiseInvertNodeTemplateFactory = class {
2993
2926
  },
2994
2927
  handles: [
2995
2928
  {
2996
- position: Position21.Left,
2929
+ position: Position20.Left,
2997
2930
  dataType: "module" /* module */,
2998
2931
  connection: "target",
2999
2932
  maxConnections: 1
3000
2933
  },
3001
2934
  {
3002
- position: Position21.Right,
2935
+ position: Position20.Right,
3003
2936
  dataType: "module" /* module */,
3004
2937
  connection: "source"
3005
2938
  }
@@ -3008,7 +2941,7 @@ var NoiseInvertNodeTemplateFactory = class {
3008
2941
  };
3009
2942
 
3010
2943
  // src/templates/modifiers/noise-scalebias-template.ts
3011
- import { Position as Position22 } from "@xyflow/system";
2944
+ import { Position as Position21 } from "@xyflow/system";
3012
2945
  var NoiseScaleBiasNodeTemplateFactory = class {
3013
2946
  template = {
3014
2947
  type: "noise-scale-bias" /* noiseScaleBias */,
@@ -3020,13 +2953,13 @@ var NoiseScaleBiasNodeTemplateFactory = class {
3020
2953
  },
3021
2954
  handles: [
3022
2955
  {
3023
- position: Position22.Left,
2956
+ position: Position21.Left,
3024
2957
  dataType: "module" /* module */,
3025
2958
  connection: "target",
3026
2959
  maxConnections: 1
3027
2960
  },
3028
2961
  {
3029
- position: Position22.Right,
2962
+ position: Position21.Right,
3030
2963
  dataType: "module" /* module */,
3031
2964
  connection: "source"
3032
2965
  }
@@ -3035,7 +2968,7 @@ var NoiseScaleBiasNodeTemplateFactory = class {
3035
2968
  };
3036
2969
 
3037
2970
  // src/templates/modifiers/noise-terrace-template.ts
3038
- import { Position as Position23 } from "@xyflow/system";
2971
+ import { Position as Position22 } from "@xyflow/system";
3039
2972
  var NoiseTerraceNodeTemplateFactory = class {
3040
2973
  template = {
3041
2974
  type: "noise-terrace" /* noiseTerrace */,
@@ -3046,13 +2979,13 @@ var NoiseTerraceNodeTemplateFactory = class {
3046
2979
  },
3047
2980
  handles: [
3048
2981
  {
3049
- position: Position23.Left,
2982
+ position: Position22.Left,
3050
2983
  dataType: "module" /* module */,
3051
2984
  connection: "target",
3052
2985
  maxConnections: 1
3053
2986
  },
3054
2987
  {
3055
- position: Position23.Right,
2988
+ position: Position22.Right,
3056
2989
  dataType: "module" /* module */,
3057
2990
  connection: "source"
3058
2991
  }
@@ -3061,7 +2994,7 @@ var NoiseTerraceNodeTemplateFactory = class {
3061
2994
  };
3062
2995
 
3063
2996
  // src/templates/selectors/noise-blend-template.ts
3064
- import { Position as Position24 } from "@xyflow/system";
2997
+ import { Position as Position23 } from "@xyflow/system";
3065
2998
  var NoiseBlendNodeTemplateFactory = class {
3066
2999
  template = {
3067
3000
  type: "noise-blend" /* noiseBlend */,
@@ -3071,7 +3004,7 @@ var NoiseBlendNodeTemplateFactory = class {
3071
3004
  },
3072
3005
  handles: [
3073
3006
  {
3074
- position: Position24.Left,
3007
+ position: Position23.Left,
3075
3008
  dataType: "module" /* module */,
3076
3009
  connection: "target",
3077
3010
  label: "Source Modules",
@@ -3080,7 +3013,7 @@ var NoiseBlendNodeTemplateFactory = class {
3080
3013
  minConnections: 2
3081
3014
  },
3082
3015
  {
3083
- position: Position24.Left,
3016
+ position: Position23.Left,
3084
3017
  dataType: "module" /* module */,
3085
3018
  dataId: "control" /* control */,
3086
3019
  connection: "target",
@@ -3088,7 +3021,7 @@ var NoiseBlendNodeTemplateFactory = class {
3088
3021
  maxConnections: 1
3089
3022
  },
3090
3023
  {
3091
- position: Position24.Right,
3024
+ position: Position23.Right,
3092
3025
  dataType: "module" /* module */,
3093
3026
  dataId: "output" /* output */,
3094
3027
  connection: "source"
@@ -3098,7 +3031,7 @@ var NoiseBlendNodeTemplateFactory = class {
3098
3031
  };
3099
3032
 
3100
3033
  // src/templates/selectors/noise-select-template.ts
3101
- import { Position as Position25 } from "@xyflow/system";
3034
+ import { Position as Position24 } from "@xyflow/system";
3102
3035
  var NoiseSelectNodeTemplateFactory = class {
3103
3036
  template = {
3104
3037
  type: "noise-select" /* noiseSelect */,
@@ -3111,7 +3044,7 @@ var NoiseSelectNodeTemplateFactory = class {
3111
3044
  },
3112
3045
  handles: [
3113
3046
  {
3114
- position: Position25.Left,
3047
+ position: Position24.Left,
3115
3048
  dataType: "module" /* module */,
3116
3049
  dataId: "source" /* source */,
3117
3050
  connection: "target",
@@ -3120,7 +3053,7 @@ var NoiseSelectNodeTemplateFactory = class {
3120
3053
  minConnections: 2
3121
3054
  },
3122
3055
  {
3123
- position: Position25.Left,
3056
+ position: Position24.Left,
3124
3057
  dataType: "module" /* module */,
3125
3058
  dataId: "control" /* control */,
3126
3059
  connection: "target",
@@ -3128,7 +3061,7 @@ var NoiseSelectNodeTemplateFactory = class {
3128
3061
  maxConnections: 1
3129
3062
  },
3130
3063
  {
3131
- position: Position25.Right,
3064
+ position: Position24.Right,
3132
3065
  dataType: "module" /* module */,
3133
3066
  dataId: "output" /* output */,
3134
3067
  connection: "source"
@@ -3138,7 +3071,7 @@ var NoiseSelectNodeTemplateFactory = class {
3138
3071
  };
3139
3072
 
3140
3073
  // src/templates/transformers/noise-displace-template.ts
3141
- import { Position as Position26 } from "@xyflow/system";
3074
+ import { Position as Position25 } from "@xyflow/system";
3142
3075
  var NoiseDisplaceNodeTemplateFactory = class {
3143
3076
  template = {
3144
3077
  type: "noise-displace" /* noiseDisplace */,
@@ -3148,7 +3081,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3148
3081
  },
3149
3082
  handles: [
3150
3083
  {
3151
- position: Position26.Left,
3084
+ position: Position25.Left,
3152
3085
  connection: "target",
3153
3086
  label: "Source Module",
3154
3087
  dataType: "module" /* module */,
@@ -3156,7 +3089,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3156
3089
  maxConnections: 1
3157
3090
  },
3158
3091
  {
3159
- position: Position26.Left,
3092
+ position: Position25.Left,
3160
3093
  connection: "target",
3161
3094
  label: "X Module",
3162
3095
  dataType: "module" /* module */,
@@ -3164,7 +3097,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3164
3097
  maxConnections: 1
3165
3098
  },
3166
3099
  {
3167
- position: Position26.Left,
3100
+ position: Position25.Left,
3168
3101
  connection: "target",
3169
3102
  label: "Y Module",
3170
3103
  dataType: "module" /* module */,
@@ -3172,7 +3105,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3172
3105
  maxConnections: 1
3173
3106
  },
3174
3107
  {
3175
- position: Position26.Left,
3108
+ position: Position25.Left,
3176
3109
  connection: "target",
3177
3110
  label: "Z Module",
3178
3111
  dataType: "module" /* module */,
@@ -3180,7 +3113,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3180
3113
  maxConnections: 1
3181
3114
  },
3182
3115
  {
3183
- position: Position26.Right,
3116
+ position: Position25.Right,
3184
3117
  dataType: "module" /* module */,
3185
3118
  dataId: "output" /* output */,
3186
3119
  connection: "source"
@@ -3190,7 +3123,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3190
3123
  };
3191
3124
 
3192
3125
  // src/templates/transformers/noise-rotate-point-template.ts
3193
- import { Position as Position27 } from "@xyflow/system";
3126
+ import { Position as Position26 } from "@xyflow/system";
3194
3127
  var NoiseRotatePointNodeTemplateFactory = class {
3195
3128
  template = {
3196
3129
  type: "noise-rotate-point" /* noiseRotatePoint */,
@@ -3203,14 +3136,14 @@ var NoiseRotatePointNodeTemplateFactory = class {
3203
3136
  },
3204
3137
  handles: [
3205
3138
  {
3206
- position: Position27.Left,
3139
+ position: Position26.Left,
3207
3140
  dataType: "module" /* module */,
3208
3141
  connection: "target",
3209
3142
  label: "Source Module",
3210
3143
  maxConnections: 1
3211
3144
  },
3212
3145
  {
3213
- position: Position27.Right,
3146
+ position: Position26.Right,
3214
3147
  dataType: "module" /* module */,
3215
3148
  connection: "source"
3216
3149
  }
@@ -3219,7 +3152,7 @@ var NoiseRotatePointNodeTemplateFactory = class {
3219
3152
  };
3220
3153
 
3221
3154
  // src/templates/transformers/noise-scale-point-template.ts
3222
- import { Position as Position28 } from "@xyflow/system";
3155
+ import { Position as Position27 } from "@xyflow/system";
3223
3156
  var NoiseScalePointNodeTemplateFactory = class {
3224
3157
  template = {
3225
3158
  type: "noise-scale-point" /* noiseScalePoint */,
@@ -3232,14 +3165,14 @@ var NoiseScalePointNodeTemplateFactory = class {
3232
3165
  },
3233
3166
  handles: [
3234
3167
  {
3235
- position: Position28.Left,
3168
+ position: Position27.Left,
3236
3169
  dataType: "module" /* module */,
3237
3170
  connection: "target",
3238
3171
  label: "Source Module",
3239
3172
  maxConnections: 1
3240
3173
  },
3241
3174
  {
3242
- position: Position28.Right,
3175
+ position: Position27.Right,
3243
3176
  dataType: "module" /* module */,
3244
3177
  connection: "source"
3245
3178
  }
@@ -3248,7 +3181,7 @@ var NoiseScalePointNodeTemplateFactory = class {
3248
3181
  };
3249
3182
 
3250
3183
  // src/templates/transformers/noise-translate-point-template.ts
3251
- import { Position as Position29 } from "@xyflow/system";
3184
+ import { Position as Position28 } from "@xyflow/system";
3252
3185
  var NoiseTranslatePointNodeTemplateFactory = class {
3253
3186
  template = {
3254
3187
  type: "noise-translate-point" /* noiseTranslatePoint */,
@@ -3261,14 +3194,14 @@ var NoiseTranslatePointNodeTemplateFactory = class {
3261
3194
  },
3262
3195
  handles: [
3263
3196
  {
3264
- position: Position29.Left,
3197
+ position: Position28.Left,
3265
3198
  dataType: "module" /* module */,
3266
3199
  connection: "target",
3267
3200
  label: "Source Module",
3268
3201
  maxConnections: 1
3269
3202
  },
3270
3203
  {
3271
- position: Position29.Right,
3204
+ position: Position28.Right,
3272
3205
  dataType: "module" /* module */,
3273
3206
  connection: "source"
3274
3207
  }
@@ -3277,8 +3210,8 @@ var NoiseTranslatePointNodeTemplateFactory = class {
3277
3210
  };
3278
3211
 
3279
3212
  // src/templates/transformers/noise-turbulence-template.ts
3280
- import { CoreHandleType as CoreHandleType8 } from "@awesome-flow/core/abstract";
3281
- 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";
3282
3215
  var NoiseTurbulenceNodeTemplateFactory = class {
3283
3216
  template = {
3284
3217
  type: "noise-turbulence" /* noiseTurbulence */,
@@ -3292,20 +3225,20 @@ var NoiseTurbulenceNodeTemplateFactory = class {
3292
3225
  },
3293
3226
  handles: [
3294
3227
  {
3295
- position: Position30.Left,
3228
+ position: Position29.Left,
3296
3229
  dataType: "module" /* module */,
3297
3230
  connection: "target",
3298
3231
  label: "Source Module",
3299
3232
  maxConnections: 1
3300
3233
  },
3301
3234
  {
3302
- position: Position30.Left,
3303
- dataType: CoreHandleType8.variableProperty,
3235
+ position: Position29.Left,
3236
+ dataType: CoreHandleType6.variableProperty,
3304
3237
  label: "Variable Properties",
3305
3238
  connection: "target"
3306
3239
  },
3307
3240
  {
3308
- position: Position30.Right,
3241
+ position: Position29.Right,
3309
3242
  dataType: "module" /* module */,
3310
3243
  connection: "source"
3311
3244
  }
@@ -3314,9 +3247,9 @@ var NoiseTurbulenceNodeTemplateFactory = class {
3314
3247
  };
3315
3248
 
3316
3249
  // src/templates/generators/noise-billow-template.ts
3317
- import { CoreHandleType as CoreHandleType9 } from "@awesome-flow/core/abstract";
3250
+ import { CoreHandleType as CoreHandleType7 } from "@awesome-flow/core/abstract";
3318
3251
  import { IDGenerator as IDGenerator2 } from "@awesome-flow/core/utils";
3319
- import { Position as Position31 } from "@xyflow/system";
3252
+ import { Position as Position30 } from "@xyflow/system";
3320
3253
  var NoiseBillowNodeTemplateFactory = class {
3321
3254
  template = {
3322
3255
  id: IDGenerator2.template(),
@@ -3332,12 +3265,12 @@ var NoiseBillowNodeTemplateFactory = class {
3332
3265
  },
3333
3266
  handles: [
3334
3267
  {
3335
- position: Position31.Left,
3336
- dataType: CoreHandleType9.variableProperty,
3268
+ position: Position30.Left,
3269
+ dataType: CoreHandleType7.variableProperty,
3337
3270
  connection: "target"
3338
3271
  },
3339
3272
  {
3340
- position: Position31.Right,
3273
+ position: Position30.Right,
3341
3274
  dataType: "module" /* module */,
3342
3275
  connection: "source"
3343
3276
  }
@@ -3350,7 +3283,7 @@ import {
3350
3283
  CoreTemplateGroup
3351
3284
  } from "@awesome-flow/core/abstract";
3352
3285
  import { IDGenerator as IDGenerator3 } from "@awesome-flow/core/utils";
3353
- import { Position as Position32 } from "@xyflow/system";
3286
+ import { Position as Position31 } from "@xyflow/system";
3354
3287
  var ModuleGroupNodeTemplateFactory = class {
3355
3288
  template = {
3356
3289
  id: IDGenerator3.template(),
@@ -3370,14 +3303,14 @@ var ModuleGroupNodeTemplateFactory = class {
3370
3303
  },
3371
3304
  handles: [
3372
3305
  {
3373
- position: Position32.Bottom,
3306
+ position: Position31.Bottom,
3374
3307
  dataType: "module" /* module */,
3375
3308
  connection: "target",
3376
3309
  maxConnections: 1,
3377
3310
  hideOnCollapse: true
3378
3311
  },
3379
3312
  {
3380
- position: Position32.Right,
3313
+ position: Position31.Right,
3381
3314
  dataType: "module" /* module */,
3382
3315
  connection: "source"
3383
3316
  }
@@ -3388,7 +3321,6 @@ var ModuleGroupNodeTemplateFactory = class {
3388
3321
  // src/abstract/node-types.ts
3389
3322
  var noiseNodeTemplates = {
3390
3323
  ["noise-output" /* noiseOutput */]: new NoiseOutputNodeTemplateFactory(),
3391
- ["noise-simplex" /* noiseSimplex */]: new NoiseSimplexNodeTemplateFactory(),
3392
3324
  ["noise-billow" /* noiseBillow */]: new NoiseBillowNodeTemplateFactory(),
3393
3325
  ["noise-checkerboard" /* noiseCheckerboard */]: new NoiseCheckerboardNodeTemplateFactory(),
3394
3326
  ["noise-normalize" /* noiseNormalize */]: new NoiseNormalizeNodeTemplateFactory(),
@@ -3422,10 +3354,10 @@ var noiseNodeTemplates = {
3422
3354
  };
3423
3355
 
3424
3356
  // src/nodes/output/noise-output-node.tsx
3425
- import { jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
3357
+ import { jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
3426
3358
  function NoiseOutputNode({ id, selected, data, type }) {
3427
3359
  const [size, setSize] = useState20(0);
3428
- const updateComputedData = useUpdateNodeComputedData30();
3360
+ const updateComputedData = useUpdateNodeComputedData29();
3429
3361
  const onDataUpdated = useCallback21(
3430
3362
  (handleData) => {
3431
3363
  const incomingPositions = handleData["position" /* position */];
@@ -3448,8 +3380,8 @@ function NoiseOutputNode({ id, selected, data, type }) {
3448
3380
  },
3449
3381
  []
3450
3382
  );
3451
- return /* @__PURE__ */ jsxs28(NodeContainer32, { id, selected, data, type, children: [
3452
- /* @__PURE__ */ jsx32(
3383
+ return /* @__PURE__ */ jsxs28(NodeContainer31, { id, selected, data, type, children: [
3384
+ /* @__PURE__ */ jsx31(
3453
3385
  HandlesIncomingDataStatus4,
3454
3386
  {
3455
3387
  nodeId: id,
@@ -3464,7 +3396,7 @@ function NoiseOutputNode({ id, selected, data, type }) {
3464
3396
  "Noise points: ",
3465
3397
  size
3466
3398
  ] }),
3467
- /* @__PURE__ */ jsx32(NodeTrackConnections27, { handles: data.handles, nodeId: id, type: "target" })
3399
+ /* @__PURE__ */ jsx31(NodeTrackConnections27, { handles: data.handles, nodeId: id, type: "target" })
3468
3400
  ] });
3469
3401
  }
3470
3402
  var noise_output_node_default = NoiseOutputNode;
@@ -3492,7 +3424,6 @@ export {
3492
3424
  noise_scale_bias_node_default as NoiseScaleBiasNode,
3493
3425
  noise_scale_point_node_default as NoiseScalePointNode,
3494
3426
  noise_select_node_default as NoiseSelectNode,
3495
- noise_simplex_node_default as NoiseSimplexNode,
3496
3427
  noise_spheres_node_default as NoiseSpheresNode,
3497
3428
  noise_terrace_node_default as NoiseTerraceNode,
3498
3429
  noise_translate_point_node_default as NoiseTranslatePointNode,