@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
  }
@@ -92,51 +82,20 @@ var NoiseSourceControlHandle = /* @__PURE__ */ ((NoiseSourceControlHandle2) => {
92
82
  return NoiseSourceControlHandle2;
93
83
  })(NoiseSourceControlHandle || {});
94
84
 
95
- // src/nodes/generators/noise-simplex-node.tsx
96
- import { NodeContainer } from "@awesome-flow/core/layout";
97
- import { useEffect, useMemo } from "react";
98
- import { useUpdateNodeComputedData } from "@awesome-flow/core/hooks";
99
-
100
- // src/modules/simplex-module.ts
101
- import Module from "libnoise-ts/module/Module";
102
- import { createNoise3D } from "simplex-noise";
103
- var SimplexModule = class extends Module {
104
- noise;
105
- constructor(random) {
106
- super();
107
- this.noise = createNoise3D(random);
108
- }
109
- getValue(x, y, z) {
110
- return this.noise(x, y, z);
111
- }
112
- };
113
-
114
- // src/nodes/generators/noise-simplex-node.tsx
115
- import { jsx } from "react/jsx-runtime";
116
- function NoiseSimplexNode({ id, selected, data, type }) {
117
- const updateComputedData = useUpdateNodeComputedData();
118
- const module = useMemo(() => new SimplexModule(), []);
119
- useEffect(() => {
120
- updateComputedData(id, { module });
121
- }, []);
122
- return /* @__PURE__ */ jsx(NodeContainer, { id, selected, data, type });
123
- }
124
- var noise_simplex_node_default = NoiseSimplexNode;
125
-
126
85
  // src/nodes/generators/position-const-node.tsx
127
- import { NodeContainer as NodeContainer2 } from "@awesome-flow/core/layout";
128
- import { useEffect as useEffect2, useState } from "react";
86
+ import { NodeContainer } from "@awesome-flow/core/layout";
87
+ import { useEffect, useState } from "react";
129
88
  import { Group, NumberInput, Stack } from "@mantine/core";
130
- import { useUpdateNodeComputedData as useUpdateNodeComputedData2, useUpdateNodeData } from "@awesome-flow/core/hooks";
131
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
89
+ import { useUpdateNodeComputedData, useUpdateNodeData } from "@awesome-flow/core/hooks";
90
+ import { jsx, jsxs } from "react/jsx-runtime";
132
91
  function PositionConstNode({ id, selected, data, type }) {
133
92
  const position = data.position ?? { x: 0, y: 0, z: 0 };
134
93
  const [x, setX] = useState(position.x);
135
94
  const [y, setY] = useState(position.y);
136
95
  const [z, setZ] = useState(position.z);
137
96
  const updateNodeData = useUpdateNodeData();
138
- const updateComputedData = useUpdateNodeComputedData2();
139
- useEffect2(() => {
97
+ const updateComputedData = useUpdateNodeComputedData();
98
+ useEffect(() => {
140
99
  const position2 = { x, y, z };
141
100
  updateNodeData(id, {
142
101
  position: position2
@@ -145,47 +104,47 @@ function PositionConstNode({ id, selected, data, type }) {
145
104
  positions: [position2]
146
105
  });
147
106
  }, [x, y, z]);
148
- return /* @__PURE__ */ jsx2(NodeContainer2, { id, selected, data, type, children: /* @__PURE__ */ jsxs(Stack, { children: [
107
+ return /* @__PURE__ */ jsx(NodeContainer, { id, selected, data, type, children: /* @__PURE__ */ jsxs(Stack, { children: [
149
108
  /* @__PURE__ */ jsxs(Group, { children: [
150
109
  "x: ",
151
- /* @__PURE__ */ jsx2(NumberInput, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
110
+ /* @__PURE__ */ jsx(NumberInput, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
152
111
  ] }),
153
112
  /* @__PURE__ */ jsxs(Group, { children: [
154
113
  "y: ",
155
- /* @__PURE__ */ jsx2(NumberInput, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
114
+ /* @__PURE__ */ jsx(NumberInput, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
156
115
  ] }),
157
116
  /* @__PURE__ */ jsxs(Group, { children: [
158
117
  "z: ",
159
- /* @__PURE__ */ jsx2(NumberInput, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
118
+ /* @__PURE__ */ jsx(NumberInput, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
160
119
  ] })
161
120
  ] }) });
162
121
  }
163
122
  var position_const_node_default = PositionConstNode;
164
123
 
165
124
  // src/nodes/generators/position-grid-node.tsx
166
- import { NodeContainer as NodeContainer3 } from "@awesome-flow/core/layout";
167
- import { useEffect as useEffect3, useState as useState2 } from "react";
125
+ import { NodeContainer as NodeContainer2 } from "@awesome-flow/core/layout";
126
+ import { useEffect as useEffect2, useState as useState2 } from "react";
168
127
  import { Group as Group2, NumberInput as NumberInput2, Stack as Stack2 } from "@mantine/core";
169
- import { useUpdateNodeComputedData as useUpdateNodeComputedData3, useUpdateNodeData as useUpdateNodeData2 } from "@awesome-flow/core/hooks";
170
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
128
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData2, useUpdateNodeData as useUpdateNodeData2 } from "@awesome-flow/core/hooks";
129
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
171
130
  function PositionGridNode({ id, selected, data, type }) {
172
131
  const [x, setX] = useState2(data.center?.x);
173
132
  const [y, setY] = useState2(data.center?.y);
174
133
  const [z, setZ] = useState2(data.center?.z);
175
134
  const [radius, setRadius] = useState2(data.radius);
176
135
  const updateNodeData = useUpdateNodeData2();
177
- const updateComputedData = useUpdateNodeComputedData3();
178
- useEffect3(() => {
136
+ const updateComputedData = useUpdateNodeComputedData2();
137
+ useEffect2(() => {
179
138
  updateNodeData(id, {
180
139
  center: { x, y, z }
181
140
  });
182
141
  }, [x, y, z]);
183
- useEffect3(() => {
142
+ useEffect2(() => {
184
143
  updateNodeData(id, {
185
144
  radius
186
145
  });
187
146
  }, [radius]);
188
- useEffect3(() => {
147
+ useEffect2(() => {
189
148
  const positions = [];
190
149
  for (let i = -radius; i < radius; i++) {
191
150
  for (let j = -radius; j < radius; j++) {
@@ -196,39 +155,39 @@ function PositionGridNode({ id, selected, data, type }) {
196
155
  positions
197
156
  });
198
157
  }, [x, y, z, radius]);
199
- return /* @__PURE__ */ jsx3(NodeContainer3, { id, selected, data, type, children: /* @__PURE__ */ jsxs2(Stack2, { children: [
158
+ return /* @__PURE__ */ jsx2(NodeContainer2, { id, selected, data, type, children: /* @__PURE__ */ jsxs2(Stack2, { children: [
200
159
  /* @__PURE__ */ jsxs2(Group2, { children: [
201
160
  "x: ",
202
- /* @__PURE__ */ jsx3(NumberInput2, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
161
+ /* @__PURE__ */ jsx2(NumberInput2, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
203
162
  ] }),
204
163
  /* @__PURE__ */ jsxs2(Group2, { children: [
205
164
  "y: ",
206
- /* @__PURE__ */ jsx3(NumberInput2, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
165
+ /* @__PURE__ */ jsx2(NumberInput2, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
207
166
  ] }),
208
167
  /* @__PURE__ */ jsxs2(Group2, { children: [
209
168
  "z: ",
210
- /* @__PURE__ */ jsx3(NumberInput2, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
169
+ /* @__PURE__ */ jsx2(NumberInput2, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
211
170
  ] }),
212
171
  /* @__PURE__ */ jsxs2(Group2, { children: [
213
172
  "r: ",
214
- /* @__PURE__ */ jsx3(NumberInput2, { size: "xs", w: 100, value: radius, onChange: (e) => setRadius(Number(e)) })
173
+ /* @__PURE__ */ jsx2(NumberInput2, { size: "xs", w: 100, value: radius, onChange: (e) => setRadius(Number(e)) })
215
174
  ] })
216
175
  ] }) });
217
176
  }
218
177
  var position_grid_node_default = PositionGridNode;
219
178
 
220
179
  // src/nodes/modifiers/noise-normalize-node.tsx
221
- import { NodeContainer as NodeContainer4, NodeTrackConnections } from "@awesome-flow/core/layout";
222
- import { useEffect as useEffect4, useState as useState3 } from "react";
180
+ import { NodeContainer as NodeContainer3, NodeTrackConnections } from "@awesome-flow/core/layout";
181
+ import { useEffect as useEffect3, useState as useState3 } from "react";
223
182
  import { Group as Group3, NumberInput as NumberInput3, Stack as Stack3 } from "@mantine/core";
224
183
  import {
225
184
  useIncomingComputedData,
226
- useUpdateNodeComputedData as useUpdateNodeComputedData4,
185
+ useUpdateNodeComputedData as useUpdateNodeComputedData3,
227
186
  useUpdateNodeData as useUpdateNodeData3
228
187
  } from "@awesome-flow/core/hooks";
229
188
 
230
189
  // src/modules/normalize-noise-module.ts
231
- import ModifierModule from "libnoise-ts/module/modifier";
190
+ import { ModifierModule } from "libnoise-simplex-ts";
232
191
  var NormalizeNoiseModule = class extends ModifierModule {
233
192
  constructor(source, lowerBound, upperBound) {
234
193
  super(source);
@@ -244,14 +203,14 @@ function normalize(value, min, max) {
244
203
  }
245
204
 
246
205
  // src/nodes/modifiers/noise-normalize-node.tsx
247
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
206
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
248
207
  function NoiseNormalizeNode({ id, selected, data, type }) {
249
208
  const [intervalStart, setIntervalStart] = useState3(data.intervalStart);
250
209
  const [intervalEnd, setIntervalEnd] = useState3(data.intervalEnd);
251
210
  const incoming = useIncomingComputedData(id);
252
211
  const updateNodeData = useUpdateNodeData3();
253
- const updateComputedData = useUpdateNodeComputedData4();
254
- useEffect4(() => {
212
+ const updateComputedData = useUpdateNodeComputedData3();
213
+ useEffect3(() => {
255
214
  if (incoming?.length) {
256
215
  const source = incoming[0].module;
257
216
  const module = new NormalizeNoiseModule(source, intervalStart, intervalEnd);
@@ -259,9 +218,9 @@ function NoiseNormalizeNode({ id, selected, data, type }) {
259
218
  }
260
219
  updateNodeData(id, { intervalStart, intervalEnd });
261
220
  }, [incoming, intervalStart, intervalEnd]);
262
- return /* @__PURE__ */ jsxs3(NodeContainer4, { id, selected, data, type, children: [
263
- /* @__PURE__ */ jsx4(Stack3, { children: /* @__PURE__ */ jsxs3(Group3, { children: [
264
- /* @__PURE__ */ jsx4(
221
+ return /* @__PURE__ */ jsxs3(NodeContainer3, { id, selected, data, type, children: [
222
+ /* @__PURE__ */ jsx3(Stack3, { children: /* @__PURE__ */ jsxs3(Group3, { children: [
223
+ /* @__PURE__ */ jsx3(
265
224
  NumberInput3,
266
225
  {
267
226
  size: "xs",
@@ -270,7 +229,7 @@ function NoiseNormalizeNode({ id, selected, data, type }) {
270
229
  onChange: (e) => setIntervalStart(Number(e))
271
230
  }
272
231
  ),
273
- /* @__PURE__ */ jsx4(
232
+ /* @__PURE__ */ jsx3(
274
233
  NumberInput3,
275
234
  {
276
235
  size: "xs",
@@ -280,38 +239,38 @@ function NoiseNormalizeNode({ id, selected, data, type }) {
280
239
  }
281
240
  )
282
241
  ] }) }),
283
- /* @__PURE__ */ jsx4(NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
242
+ /* @__PURE__ */ jsx3(NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
284
243
  ] });
285
244
  }
286
245
  var noise_normalize_node_default = NoiseNormalizeNode;
287
246
 
288
247
  // src/nodes/generators/noise-const-node.tsx
289
- import { NodeContainer as NodeContainer5 } from "@awesome-flow/core/layout";
290
- import { useEffect as useEffect5, useMemo as useMemo2, useState as useState4 } from "react";
248
+ import { NodeContainer as NodeContainer4 } from "@awesome-flow/core/layout";
249
+ import { useEffect as useEffect4, useMemo, useState as useState4 } from "react";
291
250
  import { Group as Group4, NumberInput as NumberInput4, Stack as Stack4 } from "@mantine/core";
292
- import { useUpdateNodeComputedData as useUpdateNodeComputedData5, useUpdateNodeData as useUpdateNodeData4 } from "@awesome-flow/core/hooks";
293
- import { Const } from "libnoise-ts/module/generator";
294
- import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
251
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData4, useUpdateNodeData as useUpdateNodeData4 } from "@awesome-flow/core/hooks";
252
+ import { Const } from "libnoise-simplex-ts";
253
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
295
254
  function NoiseConstNode({ id, selected, data, type }) {
296
255
  const [min, setMin] = useState4(data.min);
297
256
  const [max, setMax] = useState4(data.max);
298
257
  const [noise, setNoise] = useState4(data.noise);
299
258
  const updateNodeData = useUpdateNodeData4();
300
- const updateComputedData = useUpdateNodeComputedData5();
301
- const module = useMemo2(() => new Const(), []);
302
- useEffect5(() => {
259
+ const updateComputedData = useUpdateNodeComputedData4();
260
+ const module = useMemo(() => new Const(), []);
261
+ useEffect4(() => {
303
262
  module.value = noise;
304
263
  updateNodeData(id, { noise, min, max });
305
264
  updateComputedData(id, { module });
306
265
  }, [noise, min, max, module, updateNodeData, id, updateComputedData]);
307
- return /* @__PURE__ */ jsx5(NodeContainer5, { id, selected, data, type, children: /* @__PURE__ */ jsxs4(Stack4, { children: [
266
+ return /* @__PURE__ */ jsx4(NodeContainer4, { id, selected, data, type, children: /* @__PURE__ */ jsxs4(Stack4, { children: [
308
267
  /* @__PURE__ */ jsxs4(Group4, { children: [
309
- /* @__PURE__ */ jsx5(NumberInput4, { size: "xs", w: 100, value: min, onChange: (e) => setMin(Number(e)) }),
310
- /* @__PURE__ */ jsx5(NumberInput4, { size: "xs", w: 100, value: max, onChange: (e) => setMax(Number(e)) })
268
+ /* @__PURE__ */ jsx4(NumberInput4, { size: "xs", w: 100, value: min, onChange: (e) => setMin(Number(e)) }),
269
+ /* @__PURE__ */ jsx4(NumberInput4, { size: "xs", w: 100, value: max, onChange: (e) => setMax(Number(e)) })
311
270
  ] }),
312
271
  /* @__PURE__ */ jsxs4(Group4, { children: [
313
272
  "noise:",
314
- /* @__PURE__ */ jsx5(
273
+ /* @__PURE__ */ jsx4(
315
274
  NumberInput4,
316
275
  {
317
276
  size: "xs",
@@ -328,15 +287,15 @@ function NoiseConstNode({ id, selected, data, type }) {
328
287
  var noise_const_node_default = NoiseConstNode;
329
288
 
330
289
  // src/nodes/generators/noise-billow-node.tsx
331
- import { NodeContainer as NodeContainer6, NodeTrackConnections as NodeTrackConnections2 } from "@awesome-flow/core/layout";
332
- import { useCallback, useMemo as useMemo3 } from "react";
333
- import { Billow } from "libnoise-ts/module/generator";
334
- import { useUpdateNodeComputedData as useUpdateNodeComputedData6 } from "@awesome-flow/core/hooks";
290
+ import { NodeContainer as NodeContainer5, NodeTrackConnections as NodeTrackConnections2 } from "@awesome-flow/core/layout";
291
+ import { useCallback, useMemo as useMemo2 } from "react";
292
+ import { Billow } from "libnoise-simplex-ts";
293
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData5 } from "@awesome-flow/core/hooks";
335
294
  import { NodePropertyVariables } from "@awesome-flow/core/components";
336
- import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
295
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
337
296
  function NoiseBillowNode({ id, selected, data, type }) {
338
- const updateComputedData = useUpdateNodeComputedData6();
339
- const module = useMemo3(() => new Billow(), []);
297
+ const updateComputedData = useUpdateNodeComputedData5();
298
+ const module = useMemo2(() => new Billow(), []);
340
299
  const onPropertiesChange = useCallback(
341
300
  (properties) => {
342
301
  Object.keys(properties).forEach((k) => {
@@ -346,29 +305,29 @@ function NoiseBillowNode({ id, selected, data, type }) {
346
305
  },
347
306
  [id, module, updateComputedData]
348
307
  );
349
- return /* @__PURE__ */ jsxs5(NodeContainer6, { id, selected, data, type, children: [
350
- /* @__PURE__ */ jsx6(NodePropertyVariables, { data, nodeId: id, onPropertiesChange }),
351
- /* @__PURE__ */ jsx6(NodeTrackConnections2, { handles: data.handles, nodeId: id, type: "target" })
308
+ return /* @__PURE__ */ jsxs5(NodeContainer5, { id, selected, data, type, children: [
309
+ /* @__PURE__ */ jsx5(NodePropertyVariables, { data, nodeId: id, onPropertiesChange }),
310
+ /* @__PURE__ */ jsx5(NodeTrackConnections2, { handles: data.handles, nodeId: id, type: "target" })
352
311
  ] });
353
312
  }
354
313
  var noise_billow_node_default = NoiseBillowNode;
355
314
 
356
315
  // src/nodes/output/noise-logger-node.tsx
357
- import { NodeContainer as NodeContainer7, NodeTrackConnections as NodeTrackConnections3 } from "@awesome-flow/core/layout";
358
- import { useMemo as useMemo4 } from "react";
316
+ import { NodeContainer as NodeContainer6, NodeTrackConnections as NodeTrackConnections3 } from "@awesome-flow/core/layout";
317
+ import { useMemo as useMemo3 } from "react";
359
318
  import { Divider, Stack as Stack5, Text } from "@mantine/core";
360
319
  import { useIncomingComputedData as useIncomingComputedData2 } from "@awesome-flow/core/hooks";
361
- import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
320
+ import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
362
321
  function NoiseLoggerNode({ id, selected, data, type }) {
363
322
  const incoming = useIncomingComputedData2(id);
364
- const noise = useMemo4(() => incoming?.map((p) => p.noise).flat(), [incoming]);
365
- return /* @__PURE__ */ jsxs6(NodeContainer7, { id, selected, data, type, children: [
323
+ const noise = useMemo3(() => incoming?.map((p) => p.noise).flat(), [incoming]);
324
+ return /* @__PURE__ */ jsxs6(NodeContainer6, { id, selected, data, type, children: [
366
325
  /* @__PURE__ */ jsxs6(Text, { children: [
367
326
  "Size: ",
368
327
  noise?.length || 0
369
328
  ] }),
370
- /* @__PURE__ */ jsx7(Divider, { h: 5 }),
371
- /* @__PURE__ */ jsx7(Stack5, { children: noise?.map((v, i) => /* @__PURE__ */ jsxs6(Text, { children: [
329
+ /* @__PURE__ */ jsx6(Divider, { h: 5 }),
330
+ /* @__PURE__ */ jsx6(Stack5, { children: noise?.map((v, i) => /* @__PURE__ */ jsxs6(Text, { children: [
372
331
  v.position?.x,
373
332
  ":",
374
333
  v.position?.y,
@@ -377,24 +336,24 @@ function NoiseLoggerNode({ id, selected, data, type }) {
377
336
  ": ",
378
337
  v.value
379
338
  ] }, i)) }),
380
- /* @__PURE__ */ jsx7(NodeTrackConnections3, { handles: data.handles, nodeId: id, type: "target" })
339
+ /* @__PURE__ */ jsx6(NodeTrackConnections3, { handles: data.handles, nodeId: id, type: "target" })
381
340
  ] });
382
341
  }
383
342
  var noise_logger_node_default = NoiseLoggerNode;
384
343
 
385
344
  // src/nodes/output/noise-raw-texture-node.tsx
386
- import { NodeContainer as NodeContainer8, NodeTrackConnections as NodeTrackConnections4 } from "@awesome-flow/core/layout";
387
- import { useEffect as useEffect6, useMemo as useMemo5, useState as useState5 } from "react";
388
- import { useIncomingComputedData as useIncomingComputedData3, useUpdateNodeComputedData as useUpdateNodeComputedData7 } from "@awesome-flow/core/hooks";
345
+ import { NodeContainer as NodeContainer7, NodeTrackConnections as NodeTrackConnections4 } from "@awesome-flow/core/layout";
346
+ import { useEffect as useEffect5, useMemo as useMemo4, useState as useState5 } from "react";
347
+ import { useIncomingComputedData as useIncomingComputedData3, useUpdateNodeComputedData as useUpdateNodeComputedData6 } from "@awesome-flow/core/hooks";
389
348
  import { Group as Group5, Stack as Stack6 } from "@mantine/core";
390
- import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
349
+ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
391
350
  function NoiseRawTextureNode({ id, selected, data, type }) {
392
- const updateComputedData = useUpdateNodeComputedData7();
351
+ const updateComputedData = useUpdateNodeComputedData6();
393
352
  const [dataLength, setDataLength] = useState5(0);
394
353
  const [resolution, setResolution] = useState5(0);
395
354
  const incoming = useIncomingComputedData3(id);
396
- const noise = useMemo5(() => incoming?.map((p) => p.noise).flat(), [incoming]);
397
- useEffect6(() => {
355
+ const noise = useMemo4(() => incoming?.map((p) => p.noise).flat(), [incoming]);
356
+ useEffect5(() => {
398
357
  if (noise?.length) {
399
358
  const size = Math.ceil(Math.sqrt(noise.length));
400
359
  const colors = noise.map((n) => [n.value * 255, n.value * 255, n.value * 255, 255]).flat();
@@ -402,10 +361,14 @@ function NoiseRawTextureNode({ id, selected, data, type }) {
402
361
  dataArray.set(colors);
403
362
  setResolution(size);
404
363
  setDataLength(dataArray.length);
405
- updateComputedData(id, { textureData: dataArray, textureResolution: size });
364
+ updateComputedData(id, {
365
+ textureData: dataArray,
366
+ textureResolutionX: size,
367
+ textureResolutionY: size
368
+ });
406
369
  }
407
370
  }, [noise]);
408
- return /* @__PURE__ */ jsxs7(NodeContainer8, { id, selected, data, type, children: [
371
+ return /* @__PURE__ */ jsxs7(NodeContainer7, { id, selected, data, type, children: [
409
372
  /* @__PURE__ */ jsxs7(Stack6, { children: [
410
373
  /* @__PURE__ */ jsxs7(Group5, { children: [
411
374
  "Resolution: ",
@@ -426,66 +389,66 @@ function NoiseRawTextureNode({ id, selected, data, type }) {
426
389
  dataLength
427
390
  ] })
428
391
  ] }),
429
- /* @__PURE__ */ jsx8(NodeTrackConnections4, { handles: data.handles, nodeId: id, type: "target" })
392
+ /* @__PURE__ */ jsx7(NodeTrackConnections4, { handles: data.handles, nodeId: id, type: "target" })
430
393
  ] });
431
394
  }
432
395
  var noise_raw_texture_node_default = NoiseRawTextureNode;
433
396
 
434
397
  // src/nodes/generators/noise-checkerboard-node.tsx
435
- import { NodeContainer as NodeContainer9 } from "@awesome-flow/core/layout";
436
- import { useEffect as useEffect7, useMemo as useMemo6 } from "react";
437
- import { Checkerboard } from "libnoise-ts/module/generator";
438
- import { useUpdateNodeComputedData as useUpdateNodeComputedData8 } from "@awesome-flow/core/hooks";
439
- import { jsx as jsx9 } from "react/jsx-runtime";
398
+ import { NodeContainer as NodeContainer8 } from "@awesome-flow/core/layout";
399
+ import { useEffect as useEffect6, useMemo as useMemo5 } from "react";
400
+ import { Checkerboard } from "libnoise-simplex-ts";
401
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData7 } from "@awesome-flow/core/hooks";
402
+ import { jsx as jsx8 } from "react/jsx-runtime";
440
403
  function NoiseCheckerboardNode({ id, selected, data, type }) {
441
- const updateComputedData = useUpdateNodeComputedData8();
442
- const module = useMemo6(() => new Checkerboard(), []);
443
- useEffect7(() => {
404
+ const updateComputedData = useUpdateNodeComputedData7();
405
+ const module = useMemo5(() => new Checkerboard(), []);
406
+ useEffect6(() => {
444
407
  updateComputedData(id, { module });
445
408
  }, [id, module, updateComputedData]);
446
- return /* @__PURE__ */ jsx9(NodeContainer9, { id, selected, data, type });
409
+ return /* @__PURE__ */ jsx8(NodeContainer8, { id, selected, data, type });
447
410
  }
448
411
  var noise_checkerboard_node_default = NoiseCheckerboardNode;
449
412
 
450
413
  // src/nodes/output/positions-logger-node.tsx
451
- import { NodeContainer as NodeContainer10, NodeTrackConnections as NodeTrackConnections5 } from "@awesome-flow/core/layout";
452
- import { useMemo as useMemo7 } from "react";
414
+ import { NodeContainer as NodeContainer9, NodeTrackConnections as NodeTrackConnections5 } from "@awesome-flow/core/layout";
415
+ import { useMemo as useMemo6 } from "react";
453
416
  import { Divider as Divider2, Stack as Stack7, Text as Text2 } from "@mantine/core";
454
417
  import { useIncomingComputedData as useIncomingComputedData4 } from "@awesome-flow/core/hooks";
455
- import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
418
+ import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
456
419
  function PositionsLoggerNode({ id, selected, data, type }) {
457
420
  const incoming = useIncomingComputedData4(id);
458
- const positions = useMemo7(() => {
421
+ const positions = useMemo6(() => {
459
422
  return incoming?.map((p) => p.positions).flat();
460
423
  }, [incoming]);
461
- return /* @__PURE__ */ jsxs8(NodeContainer10, { id, selected, data, type, children: [
424
+ return /* @__PURE__ */ jsxs8(NodeContainer9, { id, selected, data, type, children: [
462
425
  /* @__PURE__ */ jsxs8(Text2, { children: [
463
426
  "Size: ",
464
427
  positions?.length || 0
465
428
  ] }),
466
- /* @__PURE__ */ jsx10(Divider2, { h: 5 }),
467
- /* @__PURE__ */ jsx10(Stack7, { children: positions?.map((v, i) => /* @__PURE__ */ jsxs8(Text2, { children: [
429
+ /* @__PURE__ */ jsx9(Divider2, { h: 5 }),
430
+ /* @__PURE__ */ jsx9(Stack7, { children: positions?.map((v, i) => /* @__PURE__ */ jsxs8(Text2, { children: [
468
431
  v.x,
469
432
  ":",
470
433
  v.y,
471
434
  ":",
472
435
  v.z
473
436
  ] }, i)) }),
474
- /* @__PURE__ */ jsx10(NodeTrackConnections5, { handles: data.handles, nodeId: id, type: "target" })
437
+ /* @__PURE__ */ jsx9(NodeTrackConnections5, { handles: data.handles, nodeId: id, type: "target" })
475
438
  ] });
476
439
  }
477
440
  var positions_logger_node_default = PositionsLoggerNode;
478
441
 
479
442
  // src/nodes/generators/noise-cylinders-node.tsx
480
- import { NodeContainer as NodeContainer11, NodeTrackConnections as NodeTrackConnections6 } from "@awesome-flow/core/layout";
481
- import { useCallback as useCallback2, useMemo as useMemo8 } from "react";
482
- import { Cylinders } from "libnoise-ts/module/generator";
483
- import { useUpdateNodeComputedData as useUpdateNodeComputedData9 } from "@awesome-flow/core/hooks";
443
+ import { NodeContainer as NodeContainer10, NodeTrackConnections as NodeTrackConnections6 } from "@awesome-flow/core/layout";
444
+ import { useCallback as useCallback2, useMemo as useMemo7 } from "react";
445
+ import { Cylinders } from "libnoise-simplex-ts";
446
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData8 } from "@awesome-flow/core/hooks";
484
447
  import { NodePropertyVariables as NodePropertyVariables2 } from "@awesome-flow/core/components";
485
- import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
448
+ import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
486
449
  function NoiseCylindersNode({ id, selected, data, type }) {
487
- const updateComputedData = useUpdateNodeComputedData9();
488
- const module = useMemo8(() => new Cylinders(), []);
450
+ const updateComputedData = useUpdateNodeComputedData8();
451
+ const module = useMemo7(() => new Cylinders(), []);
489
452
  const onPropertiesChange = useCallback2(
490
453
  (properties) => {
491
454
  Object.keys(properties).forEach((k) => {
@@ -495,23 +458,23 @@ function NoiseCylindersNode({ id, selected, data, type }) {
495
458
  },
496
459
  [id, module, updateComputedData]
497
460
  );
498
- return /* @__PURE__ */ jsxs9(NodeContainer11, { id, selected, data, type, children: [
499
- /* @__PURE__ */ jsx11(NodePropertyVariables2, { data, nodeId: id, onPropertiesChange }),
500
- /* @__PURE__ */ jsx11(NodeTrackConnections6, { handles: data.handles, nodeId: id, type: "target" })
461
+ return /* @__PURE__ */ jsxs9(NodeContainer10, { id, selected, data, type, children: [
462
+ /* @__PURE__ */ jsx10(NodePropertyVariables2, { data, nodeId: id, onPropertiesChange }),
463
+ /* @__PURE__ */ jsx10(NodeTrackConnections6, { handles: data.handles, nodeId: id, type: "target" })
501
464
  ] });
502
465
  }
503
466
  var noise_cylinders_node_default = NoiseCylindersNode;
504
467
 
505
468
  // src/nodes/generators/noise-perlin-node.tsx
506
- import { NodeContainer as NodeContainer12, NodeTrackConnections as NodeTrackConnections7 } from "@awesome-flow/core/layout";
507
- import { useCallback as useCallback3, useMemo as useMemo9 } from "react";
508
- import { Perlin } from "libnoise-ts/module/generator";
509
- import { useUpdateNodeComputedData as useUpdateNodeComputedData10 } from "@awesome-flow/core/hooks";
469
+ import { NodeContainer as NodeContainer11, NodeTrackConnections as NodeTrackConnections7 } from "@awesome-flow/core/layout";
470
+ import { useCallback as useCallback3, useMemo as useMemo8 } from "react";
471
+ import { Perlin } from "libnoise-simplex-ts";
472
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData9 } from "@awesome-flow/core/hooks";
510
473
  import { NodePropertyVariables as NodePropertyVariables3 } from "@awesome-flow/core/components";
511
- import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
474
+ import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
512
475
  function NoisePerlinNode({ id, selected, data, type }) {
513
- const updateComputedData = useUpdateNodeComputedData10();
514
- const module = useMemo9(() => new Perlin(), []);
476
+ const updateComputedData = useUpdateNodeComputedData9();
477
+ const module = useMemo8(() => new Perlin(), []);
515
478
  const onPropertiesChange = useCallback3(
516
479
  (properties) => {
517
480
  Object.keys(properties).forEach((k) => {
@@ -521,64 +484,64 @@ function NoisePerlinNode({ id, selected, data, type }) {
521
484
  },
522
485
  [id, module, updateComputedData]
523
486
  );
524
- return /* @__PURE__ */ jsxs10(NodeContainer12, { id, selected, data, type, children: [
525
- /* @__PURE__ */ jsx12(NodePropertyVariables3, { data, nodeId: id, onPropertiesChange }),
526
- /* @__PURE__ */ jsx12(NodeTrackConnections7, { handles: data.handles, nodeId: id, type: "target" })
487
+ return /* @__PURE__ */ jsxs10(NodeContainer11, { id, selected, data, type, children: [
488
+ /* @__PURE__ */ jsx11(NodePropertyVariables3, { data, nodeId: id, onPropertiesChange }),
489
+ /* @__PURE__ */ jsx11(NodeTrackConnections7, { handles: data.handles, nodeId: id, type: "target" })
527
490
  ] });
528
491
  }
529
492
  var noise_perlin_node_default = NoisePerlinNode;
530
493
 
531
494
  // src/nodes/generators/noise-ridgedmulti-node.tsx
532
- import { NodeContainer as NodeContainer13, NodeTrackConnections as NodeTrackConnections8 } from "@awesome-flow/core/layout";
533
- import { useCallback as useCallback4, useMemo as useMemo10 } from "react";
534
- import { RidgedMulti } from "libnoise-ts/module/generator";
535
- import { useUpdateNodeComputedData as useUpdateNodeComputedData11 } from "@awesome-flow/core/hooks";
495
+ import { NodeContainer as NodeContainer12, NodeTrackConnections as NodeTrackConnections8 } from "@awesome-flow/core/layout";
496
+ import { useCallback as useCallback4, useMemo as useMemo9 } from "react";
497
+ import { RidgedMulti } from "libnoise-simplex-ts";
498
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData10 } from "@awesome-flow/core/hooks";
536
499
  import { NodePropertyVariables as NodePropertyVariables4 } from "@awesome-flow/core/components";
537
- import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
500
+ import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
538
501
  function NoiseRidgedMultiNode({ id, selected, data, type }) {
539
- const updateComputedData = useUpdateNodeComputedData11();
540
- const module = useMemo10(() => new RidgedMulti(), []);
502
+ const updateComputedData = useUpdateNodeComputedData10();
503
+ const module = useMemo9(() => new RidgedMulti(), []);
541
504
  const onPropertiesChange = useCallback4((properties) => {
542
505
  Object.keys(properties).forEach((k) => module[k] = properties[k].value);
543
506
  updateComputedData(id, { module });
544
507
  }, []);
545
- return /* @__PURE__ */ jsxs11(NodeContainer13, { id, selected, data, type, children: [
546
- /* @__PURE__ */ jsx13(NodePropertyVariables4, { data, nodeId: id, onPropertiesChange }),
547
- /* @__PURE__ */ jsx13(NodeTrackConnections8, { handles: data.handles, nodeId: id, type: "target" })
508
+ return /* @__PURE__ */ jsxs11(NodeContainer12, { id, selected, data, type, children: [
509
+ /* @__PURE__ */ jsx12(NodePropertyVariables4, { data, nodeId: id, onPropertiesChange }),
510
+ /* @__PURE__ */ jsx12(NodeTrackConnections8, { handles: data.handles, nodeId: id, type: "target" })
548
511
  ] });
549
512
  }
550
513
  var noise_ridgedmulti_node_default = NoiseRidgedMultiNode;
551
514
 
552
515
  // src/nodes/generators/noise-spheres-node.tsx
553
- import { NodeContainer as NodeContainer14, NodeTrackConnections as NodeTrackConnections9 } from "@awesome-flow/core/layout";
554
- import { useCallback as useCallback5, useMemo as useMemo11 } from "react";
555
- import { Spheres } from "libnoise-ts/module/generator";
556
- import { useUpdateNodeComputedData as useUpdateNodeComputedData12 } from "@awesome-flow/core/hooks";
516
+ import { NodeContainer as NodeContainer13, NodeTrackConnections as NodeTrackConnections9 } from "@awesome-flow/core/layout";
517
+ import { useCallback as useCallback5, useMemo as useMemo10 } from "react";
518
+ import { Spheres } from "libnoise-simplex-ts";
519
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData11 } from "@awesome-flow/core/hooks";
557
520
  import { NodePropertyVariables as NodePropertyVariables5 } from "@awesome-flow/core/components";
558
- import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
521
+ import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
559
522
  function NoiseSpheresNode({ id, selected, data, type }) {
560
- const updateComputedData = useUpdateNodeComputedData12();
561
- const module = useMemo11(() => new Spheres(), []);
523
+ const updateComputedData = useUpdateNodeComputedData11();
524
+ const module = useMemo10(() => new Spheres(), []);
562
525
  const onPropertiesChange = useCallback5((properties) => {
563
526
  Object.keys(properties).forEach((k) => module[k] = properties[k].value);
564
527
  updateComputedData(id, { module });
565
528
  }, []);
566
- return /* @__PURE__ */ jsxs12(NodeContainer14, { id, selected, data, type, children: [
567
- /* @__PURE__ */ jsx14(NodePropertyVariables5, { data, nodeId: id, onPropertiesChange }),
568
- /* @__PURE__ */ jsx14(NodeTrackConnections9, { handles: data.handles, nodeId: id, type: "target" })
529
+ return /* @__PURE__ */ jsxs12(NodeContainer13, { id, selected, data, type, children: [
530
+ /* @__PURE__ */ jsx13(NodePropertyVariables5, { data, nodeId: id, onPropertiesChange }),
531
+ /* @__PURE__ */ jsx13(NodeTrackConnections9, { handles: data.handles, nodeId: id, type: "target" })
569
532
  ] });
570
533
  }
571
534
  var noise_spheres_node_default = NoiseSpheresNode;
572
535
 
573
536
  // src/nodes/generators/noise-voronoi-node.tsx
574
- import { NodeContainer as NodeContainer15, NodeTrackConnections as NodeTrackConnections10 } from "@awesome-flow/core/layout";
537
+ import { NodeContainer as NodeContainer14, NodeTrackConnections as NodeTrackConnections10 } from "@awesome-flow/core/layout";
575
538
  import { useCallback as useCallback6 } from "react";
576
- import { Voronoi } from "libnoise-ts/module/generator";
577
- import { useUpdateNodeComputedData as useUpdateNodeComputedData13 } from "@awesome-flow/core/hooks";
539
+ import { Voronoi } from "libnoise-simplex-ts";
540
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData12 } from "@awesome-flow/core/hooks";
578
541
  import { NodePropertyVariables as NodePropertyVariables6 } from "@awesome-flow/core/components";
579
- import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
542
+ import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
580
543
  function NoiseVoronoiNode({ id, selected, data, type }) {
581
- const updateComputedData = useUpdateNodeComputedData13();
544
+ const updateComputedData = useUpdateNodeComputedData12();
582
545
  const onPropertiesChange = useCallback6(
583
546
  (properties) => {
584
547
  const module = new Voronoi(
@@ -591,19 +554,19 @@ function NoiseVoronoiNode({ id, selected, data, type }) {
591
554
  },
592
555
  []
593
556
  );
594
- return /* @__PURE__ */ jsxs13(NodeContainer15, { id, selected, data, type, children: [
595
- /* @__PURE__ */ jsx15(NodePropertyVariables6, { data, nodeId: id, onPropertiesChange }),
596
- /* @__PURE__ */ jsx15(NodeTrackConnections10, { handles: data.handles, nodeId: id, type: "target" })
557
+ return /* @__PURE__ */ jsxs13(NodeContainer14, { id, selected, data, type, children: [
558
+ /* @__PURE__ */ jsx14(NodePropertyVariables6, { data, nodeId: id, onPropertiesChange }),
559
+ /* @__PURE__ */ jsx14(NodeTrackConnections10, { handles: data.handles, nodeId: id, type: "target" })
597
560
  ] });
598
561
  }
599
562
  var noise_voronoi_node_default = NoiseVoronoiNode;
600
563
 
601
564
  // src/nodes/modifiers/noise-combine-node.tsx
602
- import { NodeCombobox, NodeContainer as NodeContainer16, NodeTrackConnections as NodeTrackConnections11 } from "@awesome-flow/core/layout";
603
- import { useCallback as useCallback7, useEffect as useEffect8 } from "react";
565
+ import { NodeCombobox, NodeContainer as NodeContainer15, NodeTrackConnections as NodeTrackConnections11 } from "@awesome-flow/core/layout";
566
+ import { useCallback as useCallback7, useEffect as useEffect7 } from "react";
604
567
  import {
605
568
  useIncomingComputedData as useIncomingComputedData5,
606
- useUpdateNodeComputedData as useUpdateNodeComputedData14,
569
+ useUpdateNodeComputedData as useUpdateNodeComputedData13,
607
570
  useUpdateNodeData as useUpdateNodeData5
608
571
  } from "@awesome-flow/core/hooks";
609
572
  import {
@@ -615,7 +578,7 @@ import {
615
578
  } from "@tabler/icons-react";
616
579
 
617
580
  // src/abstract/operations.ts
618
- import { Add, Max, Min, Multiply, Power } from "libnoise-ts/module/combiner";
581
+ import { Add, Max, Min, Multiply, Power } from "libnoise-simplex-ts";
619
582
  var NoiseCombineType = /* @__PURE__ */ ((NoiseCombineType3) => {
620
583
  NoiseCombineType3["add"] = "add";
621
584
  NoiseCombineType3["max"] = "max";
@@ -633,19 +596,19 @@ var noiseCombineModuleMap = {
633
596
  };
634
597
 
635
598
  // src/nodes/modifiers/noise-combine-node.tsx
636
- import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
599
+ import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
637
600
  var options = {
638
- add: /* @__PURE__ */ jsx16(IconPlus, {}),
639
- min: /* @__PURE__ */ jsx16(IconChevronLeft, {}),
640
- max: /* @__PURE__ */ jsx16(IconChevronRight, {}),
641
- multiply: /* @__PURE__ */ jsx16(IconAsterisk, {}),
642
- power: /* @__PURE__ */ jsx16(IconChevronUp, {})
601
+ add: /* @__PURE__ */ jsx15(IconPlus, {}),
602
+ min: /* @__PURE__ */ jsx15(IconChevronLeft, {}),
603
+ max: /* @__PURE__ */ jsx15(IconChevronRight, {}),
604
+ multiply: /* @__PURE__ */ jsx15(IconAsterisk, {}),
605
+ power: /* @__PURE__ */ jsx15(IconChevronUp, {})
643
606
  };
644
607
  function NoiseCombineNode({ id, selected, data, type }) {
645
608
  const updateNodeData = useUpdateNodeData5();
646
- const updateComputedData = useUpdateNodeComputedData14();
609
+ const updateComputedData = useUpdateNodeComputedData13();
647
610
  const incoming = useIncomingComputedData5(id);
648
- useEffect8(() => {
611
+ useEffect7(() => {
649
612
  const ModuleFactory = noiseCombineModuleMap[data.operation];
650
613
  if (incoming?.length > 1) {
651
614
  const module = new ModuleFactory(incoming[0].module, incoming[1].module);
@@ -655,40 +618,40 @@ function NoiseCombineNode({ id, selected, data, type }) {
655
618
  const onChange = useCallback7((operation) => {
656
619
  updateNodeData(id, { operation });
657
620
  }, []);
658
- return /* @__PURE__ */ jsxs14(NodeContainer16, { id, selected, data, type, children: [
659
- /* @__PURE__ */ jsx16(NodeCombobox, { options, selected: data.operation, onChange, width: 150 }),
660
- /* @__PURE__ */ jsx16(NodeTrackConnections11, { handles: data.handles, nodeId: id, type: "target" })
621
+ return /* @__PURE__ */ jsxs14(NodeContainer15, { id, selected, data, type, children: [
622
+ /* @__PURE__ */ jsx15(NodeCombobox, { options, selected: data.operation, onChange, width: 150 }),
623
+ /* @__PURE__ */ jsx15(NodeTrackConnections11, { handles: data.handles, nodeId: id, type: "target" })
661
624
  ] });
662
625
  }
663
626
  var noise_combine_node_default = NoiseCombineNode;
664
627
 
665
628
  // src/nodes/modifiers/noise-clamp-node.tsx
666
- import { NodeContainer as NodeContainer17, NodeTrackConnections as NodeTrackConnections12 } from "@awesome-flow/core/layout";
667
- import { useEffect as useEffect9, useState as useState6 } from "react";
629
+ import { NodeContainer as NodeContainer16, NodeTrackConnections as NodeTrackConnections12 } from "@awesome-flow/core/layout";
630
+ import { useEffect as useEffect8, useState as useState6 } from "react";
668
631
  import { Group as Group6, NumberInput as NumberInput5, Stack as Stack8 } from "@mantine/core";
669
632
  import {
670
633
  useIncomingComputedData as useIncomingComputedData6,
671
- useUpdateNodeComputedData as useUpdateNodeComputedData15,
634
+ useUpdateNodeComputedData as useUpdateNodeComputedData14,
672
635
  useUpdateNodeData as useUpdateNodeData6
673
636
  } from "@awesome-flow/core/hooks";
674
- import { Clamp } from "libnoise-ts/module/modifier";
675
- import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
637
+ import { Clamp } from "libnoise-simplex-ts";
638
+ import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
676
639
  function NoiseClampNode({ id, selected, data, type }) {
677
640
  const [lowerBound, setLowerBound] = useState6(data.lowerBound);
678
641
  const [upperBound, setUpperBound] = useState6(data.upperBound);
679
642
  const incoming = useIncomingComputedData6(id);
680
643
  const updateNodeData = useUpdateNodeData6();
681
- const updateComputedData = useUpdateNodeComputedData15();
682
- useEffect9(() => {
644
+ const updateComputedData = useUpdateNodeComputedData14();
645
+ useEffect8(() => {
683
646
  if (incoming?.length) {
684
647
  const module = new Clamp(incoming[0].module, lowerBound, upperBound);
685
648
  updateComputedData(id, { module });
686
649
  }
687
650
  updateNodeData(id, { lowerBound, upperBound });
688
651
  }, [incoming, lowerBound, upperBound]);
689
- return /* @__PURE__ */ jsxs15(NodeContainer17, { id, selected, data, type, children: [
690
- /* @__PURE__ */ jsx17(Stack8, { children: /* @__PURE__ */ jsxs15(Group6, { children: [
691
- /* @__PURE__ */ jsx17(
652
+ return /* @__PURE__ */ jsxs15(NodeContainer16, { id, selected, data, type, children: [
653
+ /* @__PURE__ */ jsx16(Stack8, { children: /* @__PURE__ */ jsxs15(Group6, { children: [
654
+ /* @__PURE__ */ jsx16(
692
655
  NumberInput5,
693
656
  {
694
657
  size: "xs",
@@ -698,7 +661,7 @@ function NoiseClampNode({ id, selected, data, type }) {
698
661
  step: 0.1
699
662
  }
700
663
  ),
701
- /* @__PURE__ */ jsx17(
664
+ /* @__PURE__ */ jsx16(
702
665
  NumberInput5,
703
666
  {
704
667
  size: "xs",
@@ -709,40 +672,40 @@ function NoiseClampNode({ id, selected, data, type }) {
709
672
  }
710
673
  )
711
674
  ] }) }),
712
- /* @__PURE__ */ jsx17(NodeTrackConnections12, { handles: data.handles, nodeId: id, type: "target" })
675
+ /* @__PURE__ */ jsx16(NodeTrackConnections12, { handles: data.handles, nodeId: id, type: "target" })
713
676
  ] });
714
677
  }
715
678
  var noise_clamp_node_default = NoiseClampNode;
716
679
 
717
680
  // src/nodes/modifiers/noise-abs-node.tsx
718
- import { NodeContainer as NodeContainer18, NodeTrackConnections as NodeTrackConnections13 } from "@awesome-flow/core/layout";
719
- import { useEffect as useEffect10 } from "react";
720
- import { useIncomingComputedData as useIncomingComputedData7, useUpdateNodeComputedData as useUpdateNodeComputedData16 } from "@awesome-flow/core/hooks";
721
- import { Abs } from "libnoise-ts/module/modifier";
722
- import { jsx as jsx18 } from "react/jsx-runtime";
681
+ import { NodeContainer as NodeContainer17, NodeTrackConnections as NodeTrackConnections13 } from "@awesome-flow/core/layout";
682
+ import { useEffect as useEffect9 } from "react";
683
+ import { useIncomingComputedData as useIncomingComputedData7, useUpdateNodeComputedData as useUpdateNodeComputedData15 } from "@awesome-flow/core/hooks";
684
+ import { Abs } from "libnoise-simplex-ts";
685
+ import { jsx as jsx17 } from "react/jsx-runtime";
723
686
  function NoiseAbsNode({ id, selected, data, type }) {
724
687
  const incoming = useIncomingComputedData7(id);
725
- const updateComputedData = useUpdateNodeComputedData16();
726
- useEffect10(() => {
688
+ const updateComputedData = useUpdateNodeComputedData15();
689
+ useEffect9(() => {
727
690
  if (incoming?.length > 0) {
728
691
  const module = new Abs(incoming[0].module);
729
692
  updateComputedData(id, { module });
730
693
  }
731
694
  }, [incoming]);
732
- return /* @__PURE__ */ jsx18(NodeContainer18, { id, selected, data, type, children: /* @__PURE__ */ jsx18(NodeTrackConnections13, { handles: data.handles, nodeId: id, type: "target" }) });
695
+ return /* @__PURE__ */ jsx17(NodeContainer17, { id, selected, data, type, children: /* @__PURE__ */ jsx17(NodeTrackConnections13, { handles: data.handles, nodeId: id, type: "target" }) });
733
696
  }
734
697
  var noise_abs_node_default = NoiseAbsNode;
735
698
 
736
699
  // src/nodes/output/noise-output-node.tsx
737
- import { NodeContainer as NodeContainer19, NodeTrackConnections as NodeTrackConnections14 } from "@awesome-flow/core/layout";
700
+ import { NodeContainer as NodeContainer18, NodeTrackConnections as NodeTrackConnections14 } from "@awesome-flow/core/layout";
738
701
  import { useCallback as useCallback8, useState as useState7 } from "react";
739
- import { useUpdateNodeComputedData as useUpdateNodeComputedData17 } from "@awesome-flow/core/hooks";
702
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData16 } from "@awesome-flow/core/hooks";
740
703
  import { HandlesIncomingDataStatus } from "@awesome-flow/core/components";
741
704
  import { Text as Text3 } from "@mantine/core";
742
- import { jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
705
+ import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
743
706
  function NoiseOutputNode({ id, selected, data, type }) {
744
707
  const [size, setSize] = useState7(0);
745
- const updateComputedData = useUpdateNodeComputedData17();
708
+ const updateComputedData = useUpdateNodeComputedData16();
746
709
  const onDataUpdated = useCallback8(
747
710
  (handleData) => {
748
711
  const incomingPositions = handleData["position" /* position */];
@@ -765,8 +728,8 @@ function NoiseOutputNode({ id, selected, data, type }) {
765
728
  },
766
729
  []
767
730
  );
768
- return /* @__PURE__ */ jsxs16(NodeContainer19, { id, selected, data, type, children: [
769
- /* @__PURE__ */ jsx19(
731
+ return /* @__PURE__ */ jsxs16(NodeContainer18, { id, selected, data, type, children: [
732
+ /* @__PURE__ */ jsx18(
770
733
  HandlesIncomingDataStatus,
771
734
  {
772
735
  nodeId: id,
@@ -781,25 +744,25 @@ function NoiseOutputNode({ id, selected, data, type }) {
781
744
  "Noise points: ",
782
745
  size
783
746
  ] }),
784
- /* @__PURE__ */ jsx19(NodeTrackConnections14, { handles: data.handles, nodeId: id, type: "target" })
747
+ /* @__PURE__ */ jsx18(NodeTrackConnections14, { handles: data.handles, nodeId: id, type: "target" })
785
748
  ] });
786
749
  }
787
750
  var noise_output_node_default = NoiseOutputNode;
788
751
 
789
752
  // src/nodes/modifiers/noise-curve-node.tsx
790
- import { NodeContainer as NodeContainer20, NodeTrackConnections as NodeTrackConnections15 } from "@awesome-flow/core/layout";
753
+ import { NodeContainer as NodeContainer19, NodeTrackConnections as NodeTrackConnections15 } from "@awesome-flow/core/layout";
791
754
  import { ActionIcon, Button, Group as Group7, NumberInput as NumberInput6, Space } from "@mantine/core";
792
755
  import {
793
756
  useIncomingComputedData as useIncomingComputedData8,
794
- useUpdateNodeComputedData as useUpdateNodeComputedData18,
757
+ useUpdateNodeComputedData as useUpdateNodeComputedData17,
795
758
  useUpdateNodeData as useUpdateNodeData7
796
759
  } from "@awesome-flow/core/hooks";
797
760
 
798
- // ../../node_modules/@mantine/form/esm/use-form.mjs
761
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/use-form.mjs
799
762
  import { useState as useState11, useCallback as useCallback14 } from "react";
800
763
 
801
- // ../../node_modules/@mantine/form/esm/actions/actions.mjs
802
- import { useLayoutEffect, useEffect as useEffect11 } from "react";
764
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/actions/actions.mjs
765
+ import { useLayoutEffect, useEffect as useEffect10 } from "react";
803
766
  function validateFormName(name) {
804
767
  if (!/^[0-9a-zA-Z-]+$/.test(name)) {
805
768
  throw new Error(
@@ -807,7 +770,7 @@ function validateFormName(name) {
807
770
  );
808
771
  }
809
772
  }
810
- var useIsomorphicEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect11;
773
+ var useIsomorphicEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect10;
811
774
  function useFormEvent(eventKey, handler) {
812
775
  useIsomorphicEffect(() => {
813
776
  if (eventKey) {
@@ -879,7 +842,7 @@ function useFormActions(name, form) {
879
842
  useFormEvent(`mantine-form:${name}:reset-touched`, form.resetTouched);
880
843
  }
881
844
 
882
- // ../../node_modules/@mantine/form/esm/get-input-on-change/get-input-on-change.mjs
845
+ // ../../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
883
846
  function getInputOnChange(setValue) {
884
847
  return (val) => {
885
848
  if (!val) {
@@ -903,10 +866,10 @@ function getInputOnChange(setValue) {
903
866
  };
904
867
  }
905
868
 
906
- // ../../node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
907
- import { useState as useState8, useCallback as useCallback9 } from "react";
869
+ // ../../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
870
+ import { useState as useState8, useRef, useCallback as useCallback9 } from "react";
908
871
 
909
- // ../../node_modules/@mantine/form/esm/hooks/use-form-errors/filter-errors/filter-errors.mjs
872
+ // ../../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
910
873
  function filterErrors(errors) {
911
874
  if (errors === null || typeof errors !== "object") {
912
875
  return {};
@@ -920,18 +883,21 @@ function filterErrors(errors) {
920
883
  }, {});
921
884
  }
922
885
 
923
- // ../../node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
886
+ // ../../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
924
887
  function useFormErrors(initialErrors) {
925
888
  const [errorsState, setErrorsState] = useState8(filterErrors(initialErrors));
889
+ const errorsRef = useRef(errorsState);
926
890
  const setErrors = useCallback9((errors) => {
927
- setErrorsState(
928
- (current) => filterErrors(typeof errors === "function" ? errors(current) : errors)
929
- );
891
+ setErrorsState((current) => {
892
+ const newErrors = filterErrors(typeof errors === "function" ? errors(current) : errors);
893
+ errorsRef.current = newErrors;
894
+ return newErrors;
895
+ });
930
896
  }, []);
931
- const clearErrors = useCallback9(() => setErrorsState({}), []);
897
+ const clearErrors = useCallback9(() => setErrors({}), []);
932
898
  const clearFieldError = useCallback9(
933
899
  (path) => {
934
- if (errorsState[path] === void 0) {
900
+ if (errorsRef.current[path] === void 0) {
935
901
  return;
936
902
  }
937
903
  setErrors((current) => {
@@ -946,7 +912,7 @@ function useFormErrors(initialErrors) {
946
912
  (path, error) => {
947
913
  if (error == null || error === false) {
948
914
  clearFieldError(path);
949
- } else if (errorsState[path] !== error) {
915
+ } else if (errorsRef.current[path] !== error) {
950
916
  setErrors((current) => ({ ...current, [path]: error }));
951
917
  }
952
918
  },
@@ -961,10 +927,10 @@ function useFormErrors(initialErrors) {
961
927
  };
962
928
  }
963
929
 
964
- // ../../node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
930
+ // ../../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
965
931
  import { useCallback as useCallback10 } from "react";
966
932
 
967
- // ../../node_modules/@mantine/form/esm/lists/clear-list-state.mjs
933
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/lists/clear-list-state.mjs
968
934
  function clearListState(field, state) {
969
935
  if (state === null || typeof state !== "object") {
970
936
  return {};
@@ -978,7 +944,7 @@ function clearListState(field, state) {
978
944
  return clone;
979
945
  }
980
946
 
981
- // ../../node_modules/@mantine/form/esm/lists/change-error-indices.mjs
947
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/lists/change-error-indices.mjs
982
948
  function getIndexFromKeyAfterPath(key, path) {
983
949
  const split = key.substring(path.length + 1).split(".")[0];
984
950
  return parseInt(split, 10);
@@ -1018,7 +984,7 @@ function changeErrorIndices(path, index, errors, change) {
1018
984
  return cloned;
1019
985
  }
1020
986
 
1021
- // ../../node_modules/@mantine/form/esm/lists/reorder-errors.mjs
987
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/lists/reorder-errors.mjs
1022
988
  function reorderErrors(path, { from, to }, errors) {
1023
989
  const oldKeyStart = `${path}.${from}`;
1024
990
  const newKeyStart = `${path}.${to}`;
@@ -1046,18 +1012,15 @@ function reorderErrors(path, { from, to }, errors) {
1046
1012
  return clone;
1047
1013
  }
1048
1014
 
1049
- // ../../node_modules/klona/full/index.mjs
1015
+ // ../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/full/index.mjs
1050
1016
  function set(obj, key, val) {
1051
- if (typeof val.value === "object")
1052
- val.value = klona(val.value);
1017
+ if (typeof val.value === "object") val.value = klona(val.value);
1053
1018
  if (!val.enumerable || val.get || val.set || !val.configurable || !val.writable || key === "__proto__") {
1054
1019
  Object.defineProperty(obj, key, val);
1055
- } else
1056
- obj[key] = val.value;
1020
+ } else obj[key] = val.value;
1057
1021
  }
1058
1022
  function klona(x) {
1059
- if (typeof x !== "object")
1060
- return x;
1023
+ if (typeof x !== "object") return x;
1061
1024
  var i = 0, k, list, tmp, str = Object.prototype.toString.call(x);
1062
1025
  if (str === "[object Object]") {
1063
1026
  tmp = Object.create(x.__proto__ || null);
@@ -1089,15 +1052,14 @@ function klona(x) {
1089
1052
  set(tmp, list[i], Object.getOwnPropertyDescriptor(x, list[i]));
1090
1053
  }
1091
1054
  for (i = 0, list = Object.getOwnPropertyNames(x); i < list.length; i++) {
1092
- if (Object.hasOwnProperty.call(tmp, k = list[i]) && tmp[k] === x[k])
1093
- continue;
1055
+ if (Object.hasOwnProperty.call(tmp, k = list[i]) && tmp[k] === x[k]) continue;
1094
1056
  set(tmp, k, Object.getOwnPropertyDescriptor(x, k));
1095
1057
  }
1096
1058
  }
1097
1059
  return tmp || x;
1098
1060
  }
1099
1061
 
1100
- // ../../node_modules/@mantine/form/esm/paths/get-splitted-path.mjs
1062
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/get-splitted-path.mjs
1101
1063
  function getSplittedPath(path) {
1102
1064
  if (typeof path !== "string") {
1103
1065
  return [];
@@ -1105,7 +1067,7 @@ function getSplittedPath(path) {
1105
1067
  return path.split(".");
1106
1068
  }
1107
1069
 
1108
- // ../../node_modules/@mantine/form/esm/paths/get-path.mjs
1070
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/get-path.mjs
1109
1071
  function getPath(path, values) {
1110
1072
  const splittedPath = getSplittedPath(path);
1111
1073
  if (splittedPath.length === 0 || typeof values !== "object" || values === null) {
@@ -1121,7 +1083,7 @@ function getPath(path, values) {
1121
1083
  return value;
1122
1084
  }
1123
1085
 
1124
- // ../../node_modules/@mantine/form/esm/paths/set-path.mjs
1086
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/set-path.mjs
1125
1087
  function setPath(path, value, values) {
1126
1088
  const splittedPath = getSplittedPath(path);
1127
1089
  if (splittedPath.length === 0) {
@@ -1143,7 +1105,7 @@ function setPath(path, value, values) {
1143
1105
  return cloned;
1144
1106
  }
1145
1107
 
1146
- // ../../node_modules/@mantine/form/esm/paths/reorder-path.mjs
1108
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/reorder-path.mjs
1147
1109
  function reorderPath(path, { from, to }, values) {
1148
1110
  const currentValue = getPath(path, values);
1149
1111
  if (!Array.isArray(currentValue)) {
@@ -1156,7 +1118,7 @@ function reorderPath(path, { from, to }, values) {
1156
1118
  return setPath(path, cloned, values);
1157
1119
  }
1158
1120
 
1159
- // ../../node_modules/@mantine/form/esm/paths/insert-path.mjs
1121
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/insert-path.mjs
1160
1122
  function insertPath(path, value, index, values) {
1161
1123
  const currentValue = getPath(path, values);
1162
1124
  if (!Array.isArray(currentValue)) {
@@ -1167,7 +1129,7 @@ function insertPath(path, value, index, values) {
1167
1129
  return setPath(path, cloned, values);
1168
1130
  }
1169
1131
 
1170
- // ../../node_modules/@mantine/form/esm/paths/remove-path.mjs
1132
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/remove-path.mjs
1171
1133
  function removePath(path, index, values) {
1172
1134
  const currentValue = getPath(path, values);
1173
1135
  if (!Array.isArray(currentValue)) {
@@ -1180,7 +1142,7 @@ function removePath(path, index, values) {
1180
1142
  );
1181
1143
  }
1182
1144
 
1183
- // ../../node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
1145
+ // ../../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
1184
1146
  function useFormList({
1185
1147
  $values,
1186
1148
  $errors,
@@ -1213,11 +1175,11 @@ function useFormList({
1213
1175
  return { reorderListItem, removeListItem, insertListItem };
1214
1176
  }
1215
1177
 
1216
- // ../../node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
1178
+ // ../../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
1217
1179
  var import_fast_deep_equal = __toESM(require_fast_deep_equal(), 1);
1218
- import { useState as useState9, useRef, useCallback as useCallback11 } from "react";
1180
+ import { useState as useState9, useRef as useRef2, useCallback as useCallback11 } from "react";
1219
1181
 
1220
- // ../../node_modules/@mantine/form/esm/get-status/get-status.mjs
1182
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/get-status/get-status.mjs
1221
1183
  function getStatus(status, path) {
1222
1184
  const paths = Object.keys(status);
1223
1185
  if (typeof path === "string") {
@@ -1227,7 +1189,7 @@ function getStatus(status, path) {
1227
1189
  return paths.some((statusPath) => status[statusPath]);
1228
1190
  }
1229
1191
 
1230
- // ../../node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
1192
+ // ../../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
1231
1193
  function useFormStatus({
1232
1194
  initialDirty,
1233
1195
  initialTouched,
@@ -1236,8 +1198,8 @@ function useFormStatus({
1236
1198
  }) {
1237
1199
  const [touchedState, setTouchedState] = useState9(initialTouched);
1238
1200
  const [dirtyState, setDirtyState] = useState9(initialDirty);
1239
- const touchedRef = useRef(initialTouched);
1240
- const dirtyRef = useRef(initialDirty);
1201
+ const touchedRef = useRef2(initialTouched);
1202
+ const dirtyRef = useRef2(initialDirty);
1241
1203
  const setTouched = useCallback11((values) => {
1242
1204
  const resolvedValues = typeof values === "function" ? values(touchedRef.current) : values;
1243
1205
  touchedRef.current = resolvedValues;
@@ -1331,17 +1293,17 @@ function useFormStatus({
1331
1293
  };
1332
1294
  }
1333
1295
 
1334
- // ../../node_modules/@mantine/form/esm/hooks/use-form-values/use-form-values.mjs
1335
- import { useRef as useRef2, useState as useState10, useCallback as useCallback12 } from "react";
1296
+ // ../../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
1297
+ import { useRef as useRef3, useState as useState10, useCallback as useCallback12 } from "react";
1336
1298
  function useFormValues({
1337
1299
  initialValues,
1338
1300
  onValuesChange,
1339
1301
  mode
1340
1302
  }) {
1341
- const initialized = useRef2(false);
1303
+ const initialized = useRef3(false);
1342
1304
  const [stateValues, setStateValues] = useState10(initialValues || {});
1343
- const refValues = useRef2(stateValues);
1344
- const valuesSnapshot = useRef2(stateValues);
1305
+ const refValues = useRef3(stateValues);
1306
+ const valuesSnapshot = useRef3(stateValues);
1345
1307
  const setValues = useCallback12(
1346
1308
  ({
1347
1309
  values,
@@ -1404,16 +1366,16 @@ function useFormValues({
1404
1366
  };
1405
1367
  }
1406
1368
 
1407
- // ../../node_modules/@mantine/form/esm/hooks/use-form-watch/use-form-watch.mjs
1408
- import { useRef as useRef3, useCallback as useCallback13, useEffect as useEffect12 } from "react";
1369
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-watch/use-form-watch.mjs
1370
+ import { useRef as useRef4, useCallback as useCallback13, useEffect as useEffect11 } from "react";
1409
1371
  function useFormWatch({
1410
1372
  $status
1411
1373
  }) {
1412
- const subscribers = useRef3(
1374
+ const subscribers = useRef4(
1413
1375
  {}
1414
1376
  );
1415
1377
  const watch = useCallback13((path, callback) => {
1416
- useEffect12(() => {
1378
+ useEffect11(() => {
1417
1379
  subscribers.current[path] = subscribers.current[path] || [];
1418
1380
  subscribers.current[path].push(callback);
1419
1381
  return () => {
@@ -1441,12 +1403,12 @@ function useFormWatch({
1441
1403
  };
1442
1404
  }
1443
1405
 
1444
- // ../../node_modules/@mantine/form/esm/paths/get-data-path.mjs
1406
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/get-data-path.mjs
1445
1407
  function getDataPath(formName, fieldPath) {
1446
1408
  return formName ? `${formName}-${fieldPath.toString()}` : fieldPath.toString();
1447
1409
  }
1448
1410
 
1449
- // ../../node_modules/@mantine/form/esm/validate/validate-values.mjs
1411
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/validate/validate-values.mjs
1450
1412
  function getValidationResults(errors) {
1451
1413
  const filteredErrors = filterErrors(errors);
1452
1414
  return { hasErrors: Object.keys(filteredErrors).length > 0, errors: filteredErrors };
@@ -1484,7 +1446,7 @@ function validateValues(validate, values) {
1484
1446
  return getValidationResults(validateRulesRecord(validate, values));
1485
1447
  }
1486
1448
 
1487
- // ../../node_modules/@mantine/form/esm/validate/validate-field-value.mjs
1449
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/validate/validate-field-value.mjs
1488
1450
  function validateFieldValue(path, rules, values) {
1489
1451
  if (typeof path !== "string") {
1490
1452
  return { hasError: false, error: null };
@@ -1496,10 +1458,10 @@ function validateFieldValue(path, rules, values) {
1496
1458
  return { hasError: !!pathInError, error: pathInError ? results.errors[pathInError] : null };
1497
1459
  }
1498
1460
 
1499
- // ../../node_modules/@mantine/form/esm/form-index.mjs
1461
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/form-index.mjs
1500
1462
  var FORM_INDEX = "__MANTINE_FORM_INDEX__";
1501
1463
 
1502
- // ../../node_modules/@mantine/form/esm/validate/should-validate-on-change.mjs
1464
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/validate/should-validate-on-change.mjs
1503
1465
  function shouldValidateOnChange(path, validateInputOnChange) {
1504
1466
  if (!validateInputOnChange) {
1505
1467
  return false;
@@ -1513,7 +1475,7 @@ function shouldValidateOnChange(path, validateInputOnChange) {
1513
1475
  return false;
1514
1476
  }
1515
1477
 
1516
- // ../../node_modules/@mantine/form/esm/use-form.mjs
1478
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/use-form.mjs
1517
1479
  function useForm({
1518
1480
  name,
1519
1481
  mode = "controlled",
@@ -1702,17 +1664,16 @@ function useForm({
1702
1664
  }
1703
1665
 
1704
1666
  // src/nodes/modifiers/noise-curve-node.tsx
1705
- import { useCallback as useCallback15, useEffect as useEffect13, useState as useState12 } from "react";
1706
- import { Curve } from "libnoise-ts/module/modifier";
1707
- import { Tuple } from "libnoise-ts/util";
1667
+ import { useCallback as useCallback15, useEffect as useEffect12, useState as useState12 } from "react";
1668
+ import { Curve, Tuple } from "libnoise-simplex-ts";
1708
1669
  import { IconX } from "@tabler/icons-react";
1709
1670
  import { randomId } from "@mantine/hooks";
1710
1671
  import { NodeState } from "@awesome-flow/core/abstract";
1711
- import { Fragment, jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
1672
+ import { Fragment, jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
1712
1673
  function NoiseCurveNode({ id, selected, data, type }) {
1713
1674
  const incoming = useIncomingComputedData8(id);
1714
1675
  const updateNodeData = useUpdateNodeData7();
1715
- const updateComputedData = useUpdateNodeComputedData18();
1676
+ const updateComputedData = useUpdateNodeComputedData17();
1716
1677
  const [values, setValues] = useState12([]);
1717
1678
  const form = useForm({
1718
1679
  mode: "uncontrolled",
@@ -1741,11 +1702,11 @@ function NoiseCurveNode({ id, selected, data, type }) {
1741
1702
  form.validate();
1742
1703
  }, [])
1743
1704
  });
1744
- useEffect13(() => {
1705
+ useEffect12(() => {
1745
1706
  const points = data.points?.length ? data.points.map((v) => ({ input: v.input, output: v.output, key: randomId() })) : [1, 2, 3, 4].map(() => ({ input: 0, output: 0, key: randomId() }));
1746
1707
  form.initialize({ points });
1747
1708
  }, []);
1748
- useEffect13(() => {
1709
+ useEffect12(() => {
1749
1710
  if (incoming?.length && values?.length >= 4) {
1750
1711
  const module = new Curve(
1751
1712
  incoming[0].module,
@@ -1755,7 +1716,7 @@ function NoiseCurveNode({ id, selected, data, type }) {
1755
1716
  }
1756
1717
  }, [values, incoming]);
1757
1718
  const fields = form.getValues().points.map((item, index) => /* @__PURE__ */ jsxs17(Group7, { mt: "xs", children: [
1758
- /* @__PURE__ */ jsx20(
1719
+ /* @__PURE__ */ jsx19(
1759
1720
  NumberInput6,
1760
1721
  {
1761
1722
  size: "xs",
@@ -1766,7 +1727,7 @@ function NoiseCurveNode({ id, selected, data, type }) {
1766
1727
  },
1767
1728
  form.key(`points.${index}.input`)
1768
1729
  ),
1769
- /* @__PURE__ */ jsx20(
1730
+ /* @__PURE__ */ jsx19(
1770
1731
  NumberInput6,
1771
1732
  {
1772
1733
  size: "xs",
@@ -1777,22 +1738,22 @@ function NoiseCurveNode({ id, selected, data, type }) {
1777
1738
  },
1778
1739
  form.key(`points.${index}.output`)
1779
1740
  ),
1780
- data.state === NodeState.edit && values.length > 4 && /* @__PURE__ */ jsx20(
1741
+ data.state === NodeState.edit && values.length > 4 && /* @__PURE__ */ jsx19(
1781
1742
  ActionIcon,
1782
1743
  {
1783
1744
  color: "red",
1784
1745
  variant: "outline",
1785
1746
  size: "sm",
1786
1747
  onClick: () => form.removeListItem("points", index),
1787
- children: /* @__PURE__ */ jsx20(IconX, { size: "1rem" })
1748
+ children: /* @__PURE__ */ jsx19(IconX, { size: "1rem" })
1788
1749
  }
1789
1750
  )
1790
1751
  ] }, item.key));
1791
- return /* @__PURE__ */ jsxs17(NodeContainer20, { id, selected, type, data, children: [
1752
+ return /* @__PURE__ */ jsxs17(NodeContainer19, { id, selected, type, data, children: [
1792
1753
  fields,
1793
1754
  data.state === NodeState.edit && /* @__PURE__ */ jsxs17(Fragment, { children: [
1794
- /* @__PURE__ */ jsx20(Space, { h: 10 }),
1795
- /* @__PURE__ */ jsx20(
1755
+ /* @__PURE__ */ jsx19(Space, { h: 10 }),
1756
+ /* @__PURE__ */ jsx19(
1796
1757
  Button,
1797
1758
  {
1798
1759
  variant: "outline",
@@ -1803,38 +1764,38 @@ function NoiseCurveNode({ id, selected, data, type }) {
1803
1764
  }
1804
1765
  )
1805
1766
  ] }),
1806
- /* @__PURE__ */ jsx20(NodeTrackConnections15, { handles: data.handles, nodeId: id, type: "target" })
1767
+ /* @__PURE__ */ jsx19(NodeTrackConnections15, { handles: data.handles, nodeId: id, type: "target" })
1807
1768
  ] });
1808
1769
  }
1809
1770
  var noise_curve_node_default = NoiseCurveNode;
1810
1771
 
1811
1772
  // src/nodes/modifiers/noise-exponent-node.tsx
1812
- import { NodeContainer as NodeContainer21, NodeTrackConnections as NodeTrackConnections16 } from "@awesome-flow/core/layout";
1813
- import { useEffect as useEffect14, useState as useState13 } from "react";
1773
+ import { NodeContainer as NodeContainer20, NodeTrackConnections as NodeTrackConnections16 } from "@awesome-flow/core/layout";
1774
+ import { useEffect as useEffect13, useState as useState13 } from "react";
1814
1775
  import { Group as Group8, NumberInput as NumberInput7, Stack as Stack9 } from "@mantine/core";
1815
1776
  import {
1816
1777
  useIncomingComputedData as useIncomingComputedData9,
1817
- useUpdateNodeComputedData as useUpdateNodeComputedData19,
1778
+ useUpdateNodeComputedData as useUpdateNodeComputedData18,
1818
1779
  useUpdateNodeData as useUpdateNodeData8
1819
1780
  } from "@awesome-flow/core/hooks";
1820
- import { Exponent } from "libnoise-ts/module/modifier";
1821
- import { jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
1781
+ import { Exponent } from "libnoise-simplex-ts";
1782
+ import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
1822
1783
  function NoiseExponentNode({ id, selected, data, type }) {
1823
1784
  const [exponent, setExponent] = useState13(data.exponent);
1824
1785
  const incoming = useIncomingComputedData9(id);
1825
1786
  const updateNodeData = useUpdateNodeData8();
1826
- const updateComputedData = useUpdateNodeComputedData19();
1827
- useEffect14(() => {
1787
+ const updateComputedData = useUpdateNodeComputedData18();
1788
+ useEffect13(() => {
1828
1789
  if (incoming?.length > 0) {
1829
1790
  const module = new Exponent(incoming[0].module, exponent);
1830
1791
  updateComputedData(id, { module });
1831
1792
  }
1832
1793
  updateNodeData(id, { exponent });
1833
1794
  }, [incoming, exponent]);
1834
- return /* @__PURE__ */ jsxs18(NodeContainer21, { id, selected, data, type, children: [
1835
- /* @__PURE__ */ jsx21(Stack9, { children: /* @__PURE__ */ jsxs18(Group8, { children: [
1795
+ return /* @__PURE__ */ jsxs18(NodeContainer20, { id, selected, data, type, children: [
1796
+ /* @__PURE__ */ jsx20(Stack9, { children: /* @__PURE__ */ jsxs18(Group8, { children: [
1836
1797
  "Exponent:",
1837
- /* @__PURE__ */ jsx21(
1798
+ /* @__PURE__ */ jsx20(
1838
1799
  NumberInput7,
1839
1800
  {
1840
1801
  size: "xs",
@@ -1844,59 +1805,59 @@ function NoiseExponentNode({ id, selected, data, type }) {
1844
1805
  }
1845
1806
  )
1846
1807
  ] }) }),
1847
- /* @__PURE__ */ jsx21(NodeTrackConnections16, { handles: data.handles, nodeId: id, type: "target" })
1808
+ /* @__PURE__ */ jsx20(NodeTrackConnections16, { handles: data.handles, nodeId: id, type: "target" })
1848
1809
  ] });
1849
1810
  }
1850
1811
  var noise_exponent_node_default = NoiseExponentNode;
1851
1812
 
1852
1813
  // src/nodes/modifiers/noise-invert-node.tsx
1853
- import { NodeContainer as NodeContainer22, NodeTrackConnections as NodeTrackConnections17 } from "@awesome-flow/core/layout";
1854
- import { useEffect as useEffect15 } from "react";
1855
- import { useIncomingComputedData as useIncomingComputedData10, useUpdateNodeComputedData as useUpdateNodeComputedData20 } from "@awesome-flow/core/hooks";
1856
- import { Invert } from "libnoise-ts/module/modifier";
1857
- import { jsx as jsx22 } from "react/jsx-runtime";
1814
+ import { NodeContainer as NodeContainer21, NodeTrackConnections as NodeTrackConnections17 } from "@awesome-flow/core/layout";
1815
+ import { useEffect as useEffect14 } from "react";
1816
+ import { useIncomingComputedData as useIncomingComputedData10, useUpdateNodeComputedData as useUpdateNodeComputedData19 } from "@awesome-flow/core/hooks";
1817
+ import { Invert } from "libnoise-simplex-ts";
1818
+ import { jsx as jsx21 } from "react/jsx-runtime";
1858
1819
  function NoiseInvertNode({ id, selected, data, type }) {
1859
1820
  const incoming = useIncomingComputedData10(id);
1860
- const updateComputedData = useUpdateNodeComputedData20();
1861
- useEffect15(() => {
1821
+ const updateComputedData = useUpdateNodeComputedData19();
1822
+ useEffect14(() => {
1862
1823
  if (incoming?.length > 0) {
1863
1824
  const module = new Invert(incoming[0].module);
1864
1825
  updateComputedData(id, { module });
1865
1826
  }
1866
1827
  }, [incoming]);
1867
- return /* @__PURE__ */ jsx22(NodeContainer22, { id, selected, data, type, children: /* @__PURE__ */ jsx22(NodeTrackConnections17, { handles: data.handles, nodeId: id, type: "target" }) });
1828
+ return /* @__PURE__ */ jsx21(NodeContainer21, { id, selected, data, type, children: /* @__PURE__ */ jsx21(NodeTrackConnections17, { handles: data.handles, nodeId: id, type: "target" }) });
1868
1829
  }
1869
1830
  var noise_invert_node_default = NoiseInvertNode;
1870
1831
 
1871
1832
  // src/nodes/modifiers/noise-scale-bias-node.tsx
1872
- import { NodeContainer as NodeContainer23, NodeTrackConnections as NodeTrackConnections18 } from "@awesome-flow/core/layout";
1873
- import { useEffect as useEffect16, useState as useState14 } from "react";
1833
+ import { NodeContainer as NodeContainer22, NodeTrackConnections as NodeTrackConnections18 } from "@awesome-flow/core/layout";
1834
+ import { useEffect as useEffect15, useState as useState14 } from "react";
1874
1835
  import { Group as Group9, NumberInput as NumberInput8, Stack as Stack10 } from "@mantine/core";
1875
1836
  import {
1876
1837
  useIncomingComputedData as useIncomingComputedData11,
1877
- useUpdateNodeComputedData as useUpdateNodeComputedData21,
1838
+ useUpdateNodeComputedData as useUpdateNodeComputedData20,
1878
1839
  useUpdateNodeData as useUpdateNodeData9
1879
1840
  } from "@awesome-flow/core/hooks";
1880
- import { ScaleBias } from "libnoise-ts/module/modifier";
1881
- import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
1841
+ import { ScaleBias } from "libnoise-simplex-ts";
1842
+ import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
1882
1843
  function NoiseScaleBiasNode({ id, selected, data, type }) {
1883
1844
  const [scale, setScale] = useState14(data.scale);
1884
1845
  const [bias, setBias] = useState14(data.bias);
1885
1846
  const incoming = useIncomingComputedData11(id);
1886
1847
  const updateNodeData = useUpdateNodeData9();
1887
- const updateComputedData = useUpdateNodeComputedData21();
1888
- useEffect16(() => {
1848
+ const updateComputedData = useUpdateNodeComputedData20();
1849
+ useEffect15(() => {
1889
1850
  if (incoming?.length > 0) {
1890
1851
  const module = new ScaleBias(incoming[0].module, scale, bias);
1891
1852
  updateComputedData(id, { module });
1892
1853
  }
1893
1854
  updateNodeData(id, { scale, bias });
1894
1855
  }, [incoming, scale, bias]);
1895
- return /* @__PURE__ */ jsxs19(NodeContainer23, { id, selected, data, type, children: [
1856
+ return /* @__PURE__ */ jsxs19(NodeContainer22, { id, selected, data, type, children: [
1896
1857
  /* @__PURE__ */ jsxs19(Stack10, { children: [
1897
1858
  /* @__PURE__ */ jsxs19(Group9, { children: [
1898
1859
  "Scale:",
1899
- /* @__PURE__ */ jsx23(
1860
+ /* @__PURE__ */ jsx22(
1900
1861
  NumberInput8,
1901
1862
  {
1902
1863
  size: "xs",
@@ -1909,7 +1870,7 @@ function NoiseScaleBiasNode({ id, selected, data, type }) {
1909
1870
  ] }),
1910
1871
  /* @__PURE__ */ jsxs19(Group9, { children: [
1911
1872
  "Bias:",
1912
- /* @__PURE__ */ jsx23(
1873
+ /* @__PURE__ */ jsx22(
1913
1874
  NumberInput8,
1914
1875
  {
1915
1876
  size: "xs",
@@ -1921,29 +1882,29 @@ function NoiseScaleBiasNode({ id, selected, data, type }) {
1921
1882
  )
1922
1883
  ] })
1923
1884
  ] }),
1924
- /* @__PURE__ */ jsx23(NodeTrackConnections18, { handles: data.handles, nodeId: id, type: "target" })
1885
+ /* @__PURE__ */ jsx22(NodeTrackConnections18, { handles: data.handles, nodeId: id, type: "target" })
1925
1886
  ] });
1926
1887
  }
1927
1888
  var noise_scale_bias_node_default = NoiseScaleBiasNode;
1928
1889
 
1929
1890
  // src/nodes/modifiers/noise-terrace-node.tsx
1930
- import { NodeContainer as NodeContainer24, NodeTrackConnections as NodeTrackConnections19 } from "@awesome-flow/core/layout";
1891
+ import { NodeContainer as NodeContainer23, NodeTrackConnections as NodeTrackConnections19 } from "@awesome-flow/core/layout";
1931
1892
  import { ActionIcon as ActionIcon2, Button as Button2, Group as Group10, NumberInput as NumberInput9, Space as Space2 } from "@mantine/core";
1932
1893
  import {
1933
1894
  useIncomingComputedData as useIncomingComputedData12,
1934
- useUpdateNodeComputedData as useUpdateNodeComputedData22,
1895
+ useUpdateNodeComputedData as useUpdateNodeComputedData21,
1935
1896
  useUpdateNodeData as useUpdateNodeData10
1936
1897
  } from "@awesome-flow/core/hooks";
1937
- import { useCallback as useCallback16, useEffect as useEffect17, useState as useState15 } from "react";
1938
- import { Terrace } from "libnoise-ts/module/modifier";
1898
+ import { useCallback as useCallback16, useEffect as useEffect16, useState as useState15 } from "react";
1899
+ import { Terrace } from "libnoise-simplex-ts";
1939
1900
  import { IconX as IconX2 } from "@tabler/icons-react";
1940
1901
  import { randomId as randomId2 } from "@mantine/hooks";
1941
1902
  import { NodeState as NodeState2 } from "@awesome-flow/core/abstract";
1942
- import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
1903
+ import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
1943
1904
  function NoiseTerraceNode({ id, selected, data, type }) {
1944
1905
  const incoming = useIncomingComputedData12(id);
1945
1906
  const updateNodeData = useUpdateNodeData10();
1946
- const updateComputedData = useUpdateNodeComputedData22();
1907
+ const updateComputedData = useUpdateNodeComputedData21();
1947
1908
  const [values, setValues] = useState15([]);
1948
1909
  const form = useForm({
1949
1910
  mode: "uncontrolled",
@@ -1961,18 +1922,18 @@ function NoiseTerraceNode({ id, selected, data, type }) {
1961
1922
  form.validate();
1962
1923
  }, [])
1963
1924
  });
1964
- useEffect17(() => {
1925
+ useEffect16(() => {
1965
1926
  const points = data.points?.length ? data.points.map((v) => ({ value: v, key: randomId2() })) : [1, 2].map(() => ({ value: 0, key: randomId2() }));
1966
1927
  form.initialize({ points });
1967
1928
  }, []);
1968
- useEffect17(() => {
1929
+ useEffect16(() => {
1969
1930
  if (incoming?.length && values?.length >= 2) {
1970
1931
  const module = new Terrace(incoming[0].module, values);
1971
1932
  updateComputedData(id, { module });
1972
1933
  }
1973
1934
  }, [values, incoming]);
1974
1935
  const fields = form.getValues().points.map((item, index) => /* @__PURE__ */ jsxs20(Group10, { mt: "xs", children: [
1975
- /* @__PURE__ */ jsx24(
1936
+ /* @__PURE__ */ jsx23(
1976
1937
  NumberInput9,
1977
1938
  {
1978
1939
  size: "xs",
@@ -1982,22 +1943,22 @@ function NoiseTerraceNode({ id, selected, data, type }) {
1982
1943
  },
1983
1944
  form.key(`points.${index}.value`)
1984
1945
  ),
1985
- data.state === NodeState2.edit && values.length > 2 && /* @__PURE__ */ jsx24(
1946
+ data.state === NodeState2.edit && values.length > 2 && /* @__PURE__ */ jsx23(
1986
1947
  ActionIcon2,
1987
1948
  {
1988
1949
  color: "red",
1989
1950
  variant: "outline",
1990
1951
  size: "sm",
1991
1952
  onClick: () => form.removeListItem("points", index),
1992
- children: /* @__PURE__ */ jsx24(IconX2, { size: "1rem" })
1953
+ children: /* @__PURE__ */ jsx23(IconX2, { size: "1rem" })
1993
1954
  }
1994
1955
  )
1995
1956
  ] }, item.key));
1996
- return /* @__PURE__ */ jsxs20(NodeContainer24, { id, selected, type, data, children: [
1957
+ return /* @__PURE__ */ jsxs20(NodeContainer23, { id, selected, type, data, children: [
1997
1958
  fields,
1998
1959
  data.state === NodeState2.edit && /* @__PURE__ */ jsxs20(Fragment2, { children: [
1999
- /* @__PURE__ */ jsx24(Space2, { h: 10 }),
2000
- /* @__PURE__ */ jsx24(
1960
+ /* @__PURE__ */ jsx23(Space2, { h: 10 }),
1961
+ /* @__PURE__ */ jsx23(
2001
1962
  Button2,
2002
1963
  {
2003
1964
  variant: "outline",
@@ -2008,20 +1969,20 @@ function NoiseTerraceNode({ id, selected, data, type }) {
2008
1969
  }
2009
1970
  )
2010
1971
  ] }),
2011
- /* @__PURE__ */ jsx24(NodeTrackConnections19, { handles: data.handles, nodeId: id, type: "target" })
1972
+ /* @__PURE__ */ jsx23(NodeTrackConnections19, { handles: data.handles, nodeId: id, type: "target" })
2012
1973
  ] });
2013
1974
  }
2014
1975
  var noise_terrace_node_default = NoiseTerraceNode;
2015
1976
 
2016
1977
  // src/nodes/selectors/noise-blend-node.tsx
2017
- import { NodeContainer as NodeContainer25, NodeTrackConnections as NodeTrackConnections20 } from "@awesome-flow/core/layout";
1978
+ import { NodeContainer as NodeContainer24, NodeTrackConnections as NodeTrackConnections20 } from "@awesome-flow/core/layout";
2018
1979
  import { useCallback as useCallback17 } from "react";
2019
- import { useUpdateNodeComputedData as useUpdateNodeComputedData23 } from "@awesome-flow/core/hooks";
2020
- import { Blend } from "libnoise-ts/module/selector";
1980
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData22 } from "@awesome-flow/core/hooks";
1981
+ import { Blend } from "libnoise-simplex-ts";
2021
1982
  import { HandlesIncomingDataStatus as HandlesIncomingDataStatus2 } from "@awesome-flow/core/components";
2022
- import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
1983
+ import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
2023
1984
  function NoiseBlendNode({ id, selected, data, type }) {
2024
- const updateComputedData = useUpdateNodeComputedData23();
1985
+ const updateComputedData = useUpdateNodeComputedData22();
2025
1986
  const onDataUpdated = useCallback17(
2026
1987
  (incomingData) => {
2027
1988
  const incomingSources = incomingData["source" /* source */];
@@ -2037,8 +1998,8 @@ function NoiseBlendNode({ id, selected, data, type }) {
2037
1998
  },
2038
1999
  []
2039
2000
  );
2040
- return /* @__PURE__ */ jsxs21(NodeContainer25, { id, selected, data, type, children: [
2041
- /* @__PURE__ */ jsx25(
2001
+ return /* @__PURE__ */ jsxs21(NodeContainer24, { id, selected, data, type, children: [
2002
+ /* @__PURE__ */ jsx24(
2042
2003
  HandlesIncomingDataStatus2,
2043
2004
  {
2044
2005
  nodeId: id,
@@ -2049,26 +2010,26 @@ function NoiseBlendNode({ id, selected, data, type }) {
2049
2010
  resetComputedData: true
2050
2011
  }
2051
2012
  ),
2052
- /* @__PURE__ */ jsx25(NodeTrackConnections20, { handles: data.handles, nodeId: id, type: "target" })
2013
+ /* @__PURE__ */ jsx24(NodeTrackConnections20, { handles: data.handles, nodeId: id, type: "target" })
2053
2014
  ] });
2054
2015
  }
2055
2016
  var noise_blend_node_default = NoiseBlendNode;
2056
2017
 
2057
2018
  // src/nodes/selectors/noise-select-node.tsx
2058
- import { NodeContainer as NodeContainer26, NodeTrackConnections as NodeTrackConnections21 } from "@awesome-flow/core/layout";
2059
- import { useCallback as useCallback18, useEffect as useEffect18, useState as useState16 } from "react";
2060
- import { useUpdateNodeComputedData as useUpdateNodeComputedData24, useUpdateNodeData as useUpdateNodeData11 } from "@awesome-flow/core/hooks";
2061
- import { Select } from "libnoise-ts/module/selector";
2019
+ import { NodeContainer as NodeContainer25, NodeTrackConnections as NodeTrackConnections21 } from "@awesome-flow/core/layout";
2020
+ import { useCallback as useCallback18, useEffect as useEffect17, useState as useState16 } from "react";
2021
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData23, useUpdateNodeData as useUpdateNodeData11 } from "@awesome-flow/core/hooks";
2022
+ import { Select } from "libnoise-simplex-ts";
2062
2023
  import { Group as Group11, NumberInput as NumberInput10, Stack as Stack11 } from "@mantine/core";
2063
2024
  import { HandlesIncomingDataStatus as HandlesIncomingDataStatus3 } from "@awesome-flow/core/components";
2064
- import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
2025
+ import { jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
2065
2026
  function NoiseSelectNode({ id, selected, data, type }) {
2066
2027
  const [edgeFalloff, setEdgeFalloff] = useState16(data.edgeFalloff);
2067
2028
  const [lowerBound, setLowerBound] = useState16(data.lowerBound);
2068
2029
  const [upperBound, setUpperBound] = useState16(data.upperBound);
2069
2030
  const updateNodeData = useUpdateNodeData11();
2070
- const updateComputedData = useUpdateNodeComputedData24();
2071
- useEffect18(() => {
2031
+ const updateComputedData = useUpdateNodeComputedData23();
2032
+ useEffect17(() => {
2072
2033
  updateNodeData(id, { edgeFalloff, lowerBound, upperBound });
2073
2034
  }, [edgeFalloff, lowerBound, upperBound]);
2074
2035
  const onDataUpdated = useCallback18(
@@ -2089,11 +2050,11 @@ function NoiseSelectNode({ id, selected, data, type }) {
2089
2050
  },
2090
2051
  []
2091
2052
  );
2092
- return /* @__PURE__ */ jsxs22(NodeContainer26, { id, selected, data, type, children: [
2053
+ return /* @__PURE__ */ jsxs22(NodeContainer25, { id, selected, data, type, children: [
2093
2054
  /* @__PURE__ */ jsxs22(Stack11, { children: [
2094
2055
  /* @__PURE__ */ jsxs22(Group11, { children: [
2095
2056
  "Edge Falloff:",
2096
- /* @__PURE__ */ jsx26(
2057
+ /* @__PURE__ */ jsx25(
2097
2058
  NumberInput10,
2098
2059
  {
2099
2060
  size: "xs",
@@ -2106,7 +2067,7 @@ function NoiseSelectNode({ id, selected, data, type }) {
2106
2067
  ] }),
2107
2068
  /* @__PURE__ */ jsxs22(Group11, { children: [
2108
2069
  "Lower Bound:",
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(Group11, { children: [
2121
2082
  "Upper Bound:",
2122
- /* @__PURE__ */ jsx26(
2083
+ /* @__PURE__ */ jsx25(
2123
2084
  NumberInput10,
2124
2085
  {
2125
2086
  size: "xs",
@@ -2130,7 +2091,7 @@ function NoiseSelectNode({ id, selected, data, type }) {
2130
2091
  }
2131
2092
  )
2132
2093
  ] }),
2133
- /* @__PURE__ */ jsx26(
2094
+ /* @__PURE__ */ jsx25(
2134
2095
  HandlesIncomingDataStatus3,
2135
2096
  {
2136
2097
  nodeId: id,
@@ -2142,20 +2103,20 @@ function NoiseSelectNode({ id, selected, data, type }) {
2142
2103
  }
2143
2104
  )
2144
2105
  ] }),
2145
- /* @__PURE__ */ jsx26(NodeTrackConnections21, { handles: data.handles, nodeId: id, type: "target" })
2106
+ /* @__PURE__ */ jsx25(NodeTrackConnections21, { handles: data.handles, nodeId: id, type: "target" })
2146
2107
  ] });
2147
2108
  }
2148
2109
  var noise_select_node_default = NoiseSelectNode;
2149
2110
 
2150
2111
  // src/nodes/transformers/noise-displace-node.tsx
2151
- import { NodeContainer as NodeContainer27, NodeTrackConnections as NodeTrackConnections22 } from "@awesome-flow/core/layout";
2112
+ import { NodeContainer as NodeContainer26, NodeTrackConnections as NodeTrackConnections22 } from "@awesome-flow/core/layout";
2152
2113
  import { useCallback as useCallback19 } from "react";
2153
- import { useUpdateNodeComputedData as useUpdateNodeComputedData25 } from "@awesome-flow/core/hooks";
2154
- import { Displace } from "libnoise-ts/module/transformer";
2114
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData24 } from "@awesome-flow/core/hooks";
2115
+ import { Displace } from "libnoise-simplex-ts";
2155
2116
  import { HandlesIncomingDataStatus as HandlesIncomingDataStatus4 } from "@awesome-flow/core/components";
2156
- import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
2117
+ import { jsx as jsx26, jsxs as jsxs23 } from "react/jsx-runtime";
2157
2118
  function NoiseDisplaceNode({ id, selected, data, type }) {
2158
- const updateComputedData = useUpdateNodeComputedData25();
2119
+ const updateComputedData = useUpdateNodeComputedData24();
2159
2120
  const onDataUpdated = useCallback19(
2160
2121
  (handleData) => {
2161
2122
  const sourceModule = handleData["source" /* sourceModule */];
@@ -2174,8 +2135,8 @@ function NoiseDisplaceNode({ id, selected, data, type }) {
2174
2135
  },
2175
2136
  []
2176
2137
  );
2177
- return /* @__PURE__ */ jsxs23(NodeContainer27, { id, selected, data, type, children: [
2178
- /* @__PURE__ */ jsx27(
2138
+ return /* @__PURE__ */ jsxs23(NodeContainer26, { id, selected, data, type, children: [
2139
+ /* @__PURE__ */ jsx26(
2179
2140
  HandlesIncomingDataStatus4,
2180
2141
  {
2181
2142
  nodeId: id,
@@ -2186,22 +2147,22 @@ function NoiseDisplaceNode({ id, selected, data, type }) {
2186
2147
  resetComputedData: true
2187
2148
  }
2188
2149
  ),
2189
- /* @__PURE__ */ jsx27(NodeTrackConnections22, { handles: data.handles, nodeId: id, type: "target" })
2150
+ /* @__PURE__ */ jsx26(NodeTrackConnections22, { handles: data.handles, nodeId: id, type: "target" })
2190
2151
  ] });
2191
2152
  }
2192
2153
  var noise_displace_node_default = NoiseDisplaceNode;
2193
2154
 
2194
2155
  // src/nodes/transformers/noise-rotate-point-node.tsx
2195
- import { NodeContainer as NodeContainer28, NodeTrackConnections as NodeTrackConnections23 } from "@awesome-flow/core/layout";
2196
- import { useEffect as useEffect19, useState as useState17 } from "react";
2156
+ import { NodeContainer as NodeContainer27, NodeTrackConnections as NodeTrackConnections23 } from "@awesome-flow/core/layout";
2157
+ import { useEffect as useEffect18, useState as useState17 } from "react";
2197
2158
  import {
2198
2159
  useIncomingComputedData as useIncomingComputedData13,
2199
- useUpdateNodeComputedData as useUpdateNodeComputedData26,
2160
+ useUpdateNodeComputedData as useUpdateNodeComputedData25,
2200
2161
  useUpdateNodeData as useUpdateNodeData12
2201
2162
  } from "@awesome-flow/core/hooks";
2202
2163
  import { Group as Group12, NumberInput as NumberInput11, Stack as Stack12 } from "@mantine/core";
2203
- import { RotatePoint } from "libnoise-ts/module/transformer";
2204
- import { jsx as jsx28, jsxs as jsxs24 } from "react/jsx-runtime";
2164
+ import { RotatePoint } from "libnoise-simplex-ts";
2165
+ import { jsx as jsx27, jsxs as jsxs24 } from "react/jsx-runtime";
2205
2166
  function NoiseRotatePointNode({
2206
2167
  id,
2207
2168
  selected,
@@ -2213,19 +2174,19 @@ function NoiseRotatePointNode({
2213
2174
  const [zAngle, setZAngle] = useState17(data.zAngle);
2214
2175
  const incoming = useIncomingComputedData13(id);
2215
2176
  const updateNodeData = useUpdateNodeData12();
2216
- const updateComputedData = useUpdateNodeComputedData26();
2217
- useEffect19(() => {
2177
+ const updateComputedData = useUpdateNodeComputedData25();
2178
+ useEffect18(() => {
2218
2179
  if (incoming?.length) {
2219
2180
  const module = new RotatePoint(incoming[0].module, xAngle, yAngle, zAngle);
2220
2181
  updateComputedData(id, { module });
2221
2182
  }
2222
2183
  updateNodeData(id, { xAngle, yAngle, zAngle });
2223
2184
  }, [id, updateComputedData, updateNodeData, incoming, xAngle, yAngle, zAngle]);
2224
- return /* @__PURE__ */ jsxs24(NodeContainer28, { id, selected, data, type, children: [
2185
+ return /* @__PURE__ */ jsxs24(NodeContainer27, { id, selected, data, type, children: [
2225
2186
  /* @__PURE__ */ jsxs24(Stack12, { children: [
2226
2187
  /* @__PURE__ */ jsxs24(Group12, { children: [
2227
2188
  "X Angle:",
2228
- /* @__PURE__ */ jsx28(
2189
+ /* @__PURE__ */ jsx27(
2229
2190
  NumberInput11,
2230
2191
  {
2231
2192
  size: "xs",
@@ -2238,7 +2199,7 @@ function NoiseRotatePointNode({
2238
2199
  ] }),
2239
2200
  /* @__PURE__ */ jsxs24(Group12, { children: [
2240
2201
  "Y 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(Group12, { children: [
2253
2214
  "Z Angle:",
2254
- /* @__PURE__ */ jsx28(
2215
+ /* @__PURE__ */ jsx27(
2255
2216
  NumberInput11,
2256
2217
  {
2257
2218
  size: "xs",
@@ -2263,22 +2224,22 @@ function NoiseRotatePointNode({
2263
2224
  )
2264
2225
  ] })
2265
2226
  ] }),
2266
- /* @__PURE__ */ jsx28(NodeTrackConnections23, { handles: data.handles, nodeId: id, type: "target" })
2227
+ /* @__PURE__ */ jsx27(NodeTrackConnections23, { handles: data.handles, nodeId: id, type: "target" })
2267
2228
  ] });
2268
2229
  }
2269
2230
  var noise_rotate_point_node_default = NoiseRotatePointNode;
2270
2231
 
2271
2232
  // src/nodes/transformers/noise-scale-point-node.tsx
2272
- import { NodeContainer as NodeContainer29, NodeTrackConnections as NodeTrackConnections24 } from "@awesome-flow/core/layout";
2273
- import { useEffect as useEffect20, useState as useState18 } from "react";
2233
+ import { NodeContainer as NodeContainer28, NodeTrackConnections as NodeTrackConnections24 } from "@awesome-flow/core/layout";
2234
+ import { useEffect as useEffect19, useState as useState18 } from "react";
2274
2235
  import {
2275
2236
  useIncomingComputedData as useIncomingComputedData14,
2276
- useUpdateNodeComputedData as useUpdateNodeComputedData27,
2237
+ useUpdateNodeComputedData as useUpdateNodeComputedData26,
2277
2238
  useUpdateNodeData as useUpdateNodeData13
2278
2239
  } from "@awesome-flow/core/hooks";
2279
2240
  import { Group as Group13, NumberInput as NumberInput12, Stack as Stack13 } from "@mantine/core";
2280
- import { ScalePoint } from "libnoise-ts/module/transformer";
2281
- import { jsx as jsx29, jsxs as jsxs25 } from "react/jsx-runtime";
2241
+ import { ScalePoint } from "libnoise-simplex-ts";
2242
+ import { jsx as jsx28, jsxs as jsxs25 } from "react/jsx-runtime";
2282
2243
  function NoiseScalePointNode({
2283
2244
  id,
2284
2245
  selected,
@@ -2290,19 +2251,19 @@ function NoiseScalePointNode({
2290
2251
  const [zScale, setZScale] = useState18(data.zScale);
2291
2252
  const incoming = useIncomingComputedData14(id);
2292
2253
  const updateNodeData = useUpdateNodeData13();
2293
- const updateComputedData = useUpdateNodeComputedData27();
2294
- useEffect20(() => {
2254
+ const updateComputedData = useUpdateNodeComputedData26();
2255
+ useEffect19(() => {
2295
2256
  if (incoming?.length) {
2296
2257
  const module = new ScalePoint(incoming[0].module, xScale, yScale, zScale);
2297
2258
  updateComputedData(id, { module });
2298
2259
  }
2299
2260
  updateNodeData(id, { xScale, yScale, zScale });
2300
2261
  }, [id, incoming, updateComputedData, updateNodeData, xScale, yScale, zScale]);
2301
- return /* @__PURE__ */ jsxs25(NodeContainer29, { id, selected, data, type, children: [
2262
+ return /* @__PURE__ */ jsxs25(NodeContainer28, { id, selected, data, type, children: [
2302
2263
  /* @__PURE__ */ jsxs25(Stack13, { children: [
2303
2264
  /* @__PURE__ */ jsxs25(Group13, { children: [
2304
2265
  "X Scale:",
2305
- /* @__PURE__ */ jsx29(
2266
+ /* @__PURE__ */ jsx28(
2306
2267
  NumberInput12,
2307
2268
  {
2308
2269
  size: "xs",
@@ -2315,7 +2276,7 @@ function NoiseScalePointNode({
2315
2276
  ] }),
2316
2277
  /* @__PURE__ */ jsxs25(Group13, { children: [
2317
2278
  "Y 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(Group13, { children: [
2330
2291
  "Z Scale:",
2331
- /* @__PURE__ */ jsx29(
2292
+ /* @__PURE__ */ jsx28(
2332
2293
  NumberInput12,
2333
2294
  {
2334
2295
  size: "xs",
@@ -2340,22 +2301,22 @@ function NoiseScalePointNode({
2340
2301
  )
2341
2302
  ] })
2342
2303
  ] }),
2343
- /* @__PURE__ */ jsx29(NodeTrackConnections24, { handles: data.handles, nodeId: id, type: "target" })
2304
+ /* @__PURE__ */ jsx28(NodeTrackConnections24, { handles: data.handles, nodeId: id, type: "target" })
2344
2305
  ] });
2345
2306
  }
2346
2307
  var noise_scale_point_node_default = NoiseScalePointNode;
2347
2308
 
2348
2309
  // src/nodes/transformers/noise-translate-point-node.tsx
2349
- import { NodeContainer as NodeContainer30, NodeTrackConnections as NodeTrackConnections25 } from "@awesome-flow/core/layout";
2350
- import { useEffect as useEffect21, useState as useState19 } from "react";
2310
+ import { NodeContainer as NodeContainer29, NodeTrackConnections as NodeTrackConnections25 } from "@awesome-flow/core/layout";
2311
+ import { useEffect as useEffect20, useState as useState19 } from "react";
2351
2312
  import {
2352
2313
  useIncomingComputedData as useIncomingComputedData15,
2353
- useUpdateNodeComputedData as useUpdateNodeComputedData28,
2314
+ useUpdateNodeComputedData as useUpdateNodeComputedData27,
2354
2315
  useUpdateNodeData as useUpdateNodeData14
2355
2316
  } from "@awesome-flow/core/hooks";
2356
2317
  import { Group as Group14, NumberInput as NumberInput13, Stack as Stack14 } from "@mantine/core";
2357
- import { TranslatePoint } from "libnoise-ts/module/transformer";
2358
- import { jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
2318
+ import { TranslatePoint } from "libnoise-simplex-ts";
2319
+ import { jsx as jsx29, jsxs as jsxs26 } from "react/jsx-runtime";
2359
2320
  function NoiseTranslatePointNode({
2360
2321
  id,
2361
2322
  selected,
@@ -2367,19 +2328,19 @@ function NoiseTranslatePointNode({
2367
2328
  const [translateZ, setTranslateZ] = useState19(data.translateZ);
2368
2329
  const incoming = useIncomingComputedData15(id);
2369
2330
  const updateNodeData = useUpdateNodeData14();
2370
- const updateComputedData = useUpdateNodeComputedData28();
2371
- useEffect21(() => {
2331
+ const updateComputedData = useUpdateNodeComputedData27();
2332
+ useEffect20(() => {
2372
2333
  if (incoming?.length) {
2373
2334
  const module = new TranslatePoint(incoming[0].module, translateX, translateY, translateZ);
2374
2335
  updateComputedData(id, { module });
2375
2336
  }
2376
2337
  updateNodeData(id, { translateX, translateY, translateZ });
2377
2338
  }, [id, incoming, translateX, translateY, translateZ, updateComputedData, updateNodeData]);
2378
- return /* @__PURE__ */ jsxs26(NodeContainer30, { id, selected, data, type, children: [
2339
+ return /* @__PURE__ */ jsxs26(NodeContainer29, { id, selected, data, type, children: [
2379
2340
  /* @__PURE__ */ jsxs26(Stack14, { children: [
2380
2341
  /* @__PURE__ */ jsxs26(Group14, { children: [
2381
2342
  "Translate X:",
2382
- /* @__PURE__ */ jsx30(
2343
+ /* @__PURE__ */ jsx29(
2383
2344
  NumberInput13,
2384
2345
  {
2385
2346
  size: "xs",
@@ -2392,7 +2353,7 @@ function NoiseTranslatePointNode({
2392
2353
  ] }),
2393
2354
  /* @__PURE__ */ jsxs26(Group14, { children: [
2394
2355
  "Translate Y:",
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(Group14, { children: [
2407
2368
  "Translate Z:",
2408
- /* @__PURE__ */ jsx30(
2369
+ /* @__PURE__ */ jsx29(
2409
2370
  NumberInput13,
2410
2371
  {
2411
2372
  size: "xs",
@@ -2417,18 +2378,18 @@ function NoiseTranslatePointNode({
2417
2378
  )
2418
2379
  ] })
2419
2380
  ] }),
2420
- /* @__PURE__ */ jsx30(NodeTrackConnections25, { handles: data.handles, nodeId: id, type: "target" })
2381
+ /* @__PURE__ */ jsx29(NodeTrackConnections25, { handles: data.handles, nodeId: id, type: "target" })
2421
2382
  ] });
2422
2383
  }
2423
2384
  var noise_translate_point_node_default = NoiseTranslatePointNode;
2424
2385
 
2425
2386
  // src/nodes/transformers/noise-turbulence-node .tsx
2426
- import { NodeContainer as NodeContainer31, NodeTrackConnections as NodeTrackConnections26 } from "@awesome-flow/core/layout";
2427
- import { useCallback as useCallback20, useEffect as useEffect22, useState as useState20 } from "react";
2428
- import { useIncomingComputedData as useIncomingComputedData16, useUpdateNodeComputedData as useUpdateNodeComputedData29 } from "@awesome-flow/core/hooks";
2429
- import { Turbulence } from "libnoise-ts/module/transformer";
2387
+ import { NodeContainer as NodeContainer30, NodeTrackConnections as NodeTrackConnections26 } from "@awesome-flow/core/layout";
2388
+ import { useCallback as useCallback20, useEffect as useEffect21, useState as useState20 } from "react";
2389
+ import { useIncomingComputedData as useIncomingComputedData16, useUpdateNodeComputedData as useUpdateNodeComputedData28 } from "@awesome-flow/core/hooks";
2390
+ import { Turbulence } from "libnoise-simplex-ts";
2430
2391
  import { NodePropertyVariables as NodePropertyVariables7 } from "@awesome-flow/core/components";
2431
- import { jsx as jsx31, jsxs as jsxs27 } from "react/jsx-runtime";
2392
+ import { jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
2432
2393
  function NoiseTurbulenceNode({
2433
2394
  id,
2434
2395
  selected,
@@ -2437,11 +2398,11 @@ function NoiseTurbulenceNode({
2437
2398
  }) {
2438
2399
  const [properties, setProperties] = useState20(null);
2439
2400
  const incoming = useIncomingComputedData16(id);
2440
- const updateComputedData = useUpdateNodeComputedData29();
2401
+ const updateComputedData = useUpdateNodeComputedData28();
2441
2402
  const onPropertiesChange = useCallback20((props) => {
2442
2403
  setProperties(props);
2443
2404
  }, []);
2444
- useEffect22(() => {
2405
+ useEffect21(() => {
2445
2406
  if (incoming?.length && properties) {
2446
2407
  const module = new Turbulence(
2447
2408
  incoming[0].module,
@@ -2453,9 +2414,9 @@ function NoiseTurbulenceNode({
2453
2414
  updateComputedData(id, { module });
2454
2415
  }
2455
2416
  }, [id, incoming, properties]);
2456
- return /* @__PURE__ */ jsxs27(NodeContainer31, { id, selected, data, type, children: [
2457
- /* @__PURE__ */ jsx31(NodePropertyVariables7, { data, nodeId: id, onPropertiesChange }),
2458
- /* @__PURE__ */ jsx31(NodeTrackConnections26, { handles: data.handles, nodeId: id, type: "target" })
2417
+ return /* @__PURE__ */ jsxs27(NodeContainer30, { id, selected, data, type, children: [
2418
+ /* @__PURE__ */ jsx30(NodePropertyVariables7, { data, nodeId: id, onPropertiesChange }),
2419
+ /* @__PURE__ */ jsx30(NodeTrackConnections26, { handles: data.handles, nodeId: id, type: "target" })
2459
2420
  ] });
2460
2421
  }
2461
2422
  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
  }
@@ -3386,18 +3319,18 @@ var ModuleGroupNodeTemplateFactory = class {
3386
3319
  };
3387
3320
 
3388
3321
  // src/nodes/groups/module-group-node.tsx
3389
- import { NodeContainer as NodeContainer32, NodeCollapse, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
3322
+ import { NodeContainer as NodeContainer31, NodeCollapse, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
3390
3323
  import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
3391
- import { useCallback as useCallback21, useEffect as useEffect23, useMemo as useMemo12 } from "react";
3324
+ import { useCallback as useCallback21, useEffect as useEffect22, useMemo as useMemo11 } from "react";
3392
3325
  import { shallow } from "zustand/shallow";
3393
3326
  import { Badge, Group as Group15 } from "@mantine/core";
3394
3327
  import {
3395
3328
  useFlowStore,
3396
3329
  useIncomingComputedData as useIncomingComputedData17,
3397
3330
  useInteractiveStore,
3398
- useUpdateNodeComputedData as useUpdateNodeComputedData30
3331
+ useUpdateNodeComputedData as useUpdateNodeComputedData29
3399
3332
  } from "@awesome-flow/core/hooks";
3400
- import { jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
3333
+ import { jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
3401
3334
  function ModuleGroupNode({
3402
3335
  id,
3403
3336
  selected,
@@ -3418,10 +3351,10 @@ function ModuleGroupNode({
3418
3351
  useCallback21((state) => state.nodeIntersectionTargets[id], [id]),
3419
3352
  shallow
3420
3353
  );
3421
- useEffect23(() => {
3354
+ useEffect22(() => {
3422
3355
  updateNodeInternals(id);
3423
3356
  }, [width, height]);
3424
- useEffect23(() => {
3357
+ useEffect22(() => {
3425
3358
  triggerNodeChanges([
3426
3359
  {
3427
3360
  id,
@@ -3433,33 +3366,33 @@ function ModuleGroupNode({
3433
3366
  const onCollapsed = useCallback21((collapsed) => {
3434
3367
  setGroupCollapsed(id, collapsed);
3435
3368
  }, []);
3436
- const size = useMemo12(() => {
3369
+ const size = useMemo11(() => {
3437
3370
  return {
3438
3371
  width: data.initialSize?.width || 100,
3439
3372
  height: data.initialSize?.height || 50
3440
3373
  };
3441
3374
  }, [data.initialSize]);
3442
3375
  const incomingModules = useIncomingComputedData17(id);
3443
- const updateComputedData = useUpdateNodeComputedData30();
3444
- useEffect23(() => {
3376
+ const updateComputedData = useUpdateNodeComputedData29();
3377
+ useEffect22(() => {
3445
3378
  if (incomingModules?.length) {
3446
3379
  const { module } = incomingModules[0];
3447
3380
  updateComputedData(id, { module });
3448
3381
  }
3449
3382
  }, [incomingModules]);
3450
3383
  return /* @__PURE__ */ jsxs28(
3451
- NodeContainer32,
3384
+ NodeContainer31,
3452
3385
  {
3453
3386
  id,
3454
3387
  selected,
3455
3388
  data,
3456
- title: /* @__PURE__ */ jsx32(Group15, { justify: "space-between", children: /* @__PURE__ */ jsxs28(Group15, { gap: "xs", children: [
3457
- /* @__PURE__ */ jsx32(Badge, { size: "xs", variant: "outline", radius: "xs", color: "gray", children: groupNodes?.length || 0 }),
3458
- /* @__PURE__ */ jsx32(NodeCollapse, { nodeId: id, isCollapsed: data.isCollapsed, onCollapsed })
3389
+ title: /* @__PURE__ */ jsx31(Group15, { justify: "space-between", children: /* @__PURE__ */ jsxs28(Group15, { gap: "xs", children: [
3390
+ /* @__PURE__ */ jsx31(Badge, { size: "xs", variant: "outline", radius: "xs", color: "gray", children: groupNodes?.length || 0 }),
3391
+ /* @__PURE__ */ jsx31(NodeCollapse, { nodeId: id, isCollapsed: data.isCollapsed, onCollapsed })
3459
3392
  ] }) }),
3460
3393
  type,
3461
3394
  children: [
3462
- /* @__PURE__ */ jsx32(
3395
+ /* @__PURE__ */ jsx31(
3463
3396
  NodeResizer,
3464
3397
  {
3465
3398
  nodeId: id,
@@ -3468,7 +3401,7 @@ function ModuleGroupNode({
3468
3401
  isVisible: selected && !data.isCollapsed
3469
3402
  }
3470
3403
  ),
3471
- /* @__PURE__ */ jsx32(NodeTrackConnections27, { handles: data.handles, nodeId: id, type: "target" })
3404
+ /* @__PURE__ */ jsx31(NodeTrackConnections27, { handles: data.handles, nodeId: id, type: "target" })
3472
3405
  ]
3473
3406
  }
3474
3407
  );
@@ -3485,7 +3418,6 @@ var NoiseNodeType = /* @__PURE__ */ ((NoiseNodeType2) => {
3485
3418
  NoiseNodeType2["noiseLogger"] = "noise-logger";
3486
3419
  NoiseNodeType2["noiseOutput"] = "noise-output";
3487
3420
  NoiseNodeType2["noiseConst"] = "noise-constant";
3488
- NoiseNodeType2["noiseSimplex"] = "noise-simplex";
3489
3421
  NoiseNodeType2["noiseBillow"] = "noise-billow";
3490
3422
  NoiseNodeType2["noiseCheckerboard"] = "noise-checkerboard";
3491
3423
  NoiseNodeType2["noiseNormalize"] = "noise-normalize";
@@ -3521,7 +3453,6 @@ var noiseNodeTypes = {
3521
3453
  ["position-logger" /* positionLogger */]: positions_logger_node_default,
3522
3454
  ["noise-constant" /* noiseConst */]: noise_const_node_default,
3523
3455
  ["noise-billow" /* noiseBillow */]: noise_billow_node_default,
3524
- ["noise-simplex" /* noiseSimplex */]: noise_simplex_node_default,
3525
3456
  ["noise-checkerboard" /* noiseCheckerboard */]: noise_checkerboard_node_default,
3526
3457
  ["noise-cylinders" /* noiseCylinders */]: noise_cylinders_node_default,
3527
3458
  ["noise-perlin" /* noisePerlin */]: noise_perlin_node_default,
@@ -3547,7 +3478,6 @@ var noiseNodeTypes = {
3547
3478
  };
3548
3479
  var noiseNodeTemplates = {
3549
3480
  ["noise-output" /* noiseOutput */]: new NoiseOutputNodeTemplateFactory(),
3550
- ["noise-simplex" /* noiseSimplex */]: new NoiseSimplexNodeTemplateFactory(),
3551
3481
  ["noise-billow" /* noiseBillow */]: new NoiseBillowNodeTemplateFactory(),
3552
3482
  ["noise-checkerboard" /* noiseCheckerboard */]: new NoiseCheckerboardNodeTemplateFactory(),
3553
3483
  ["noise-normalize" /* noiseNormalize */]: new NoiseNormalizeNodeTemplateFactory(),