@awesome-flow/noise 0.7.0 → 0.8.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 (77) hide show
  1. package/dist/abstract/index.cjs +8 -3469
  2. package/dist/abstract/index.d.cts +2 -2
  3. package/dist/abstract/index.d.ts +2 -2
  4. package/dist/abstract/index.js +15 -3508
  5. package/dist/chunk-2Y22M2Y4.js +0 -0
  6. package/dist/chunk-4PQ4USYV.cjs +1 -0
  7. package/dist/chunk-5ELMFIRV.js +0 -0
  8. package/dist/chunk-ACWBUUZ7.cjs +1376 -0
  9. package/dist/chunk-BG6U3TYO.js +1376 -0
  10. package/dist/chunk-D5JM4EYQ.cjs +305 -0
  11. package/dist/chunk-DWSACR65.js +305 -0
  12. package/dist/chunk-FFQRP23R.cjs +1 -0
  13. package/dist/chunk-JACBT4MS.cjs +1 -0
  14. package/dist/chunk-KHIIB5TH.js +93 -0
  15. package/dist/chunk-M67JHEU2.cjs +93 -0
  16. package/dist/chunk-N6YNJKLS.cjs +1 -0
  17. package/dist/chunk-PS5VUND5.js +348 -0
  18. package/dist/chunk-Q5FVGKKM.cjs +1 -0
  19. package/dist/chunk-RDQ4BOOV.js +522 -0
  20. package/dist/chunk-RKTZQUWR.cjs +348 -0
  21. package/dist/chunk-RVWCBH7K.js +0 -0
  22. package/dist/chunk-SD3T3LFY.js +0 -0
  23. package/dist/chunk-SGHEOOLW.js +19 -0
  24. package/dist/chunk-TOYKGWYO.js +0 -0
  25. package/dist/chunk-TZCT2GZV.cjs +522 -0
  26. package/dist/chunk-UNMRBZ5X.cjs +19 -0
  27. package/dist/chunk-WOJTKQKO.cjs +1 -0
  28. package/dist/chunk-XZQQ6N3L.js +0 -0
  29. package/dist/modules/index.cjs +4 -42
  30. package/dist/modules/index.js +3 -15
  31. package/dist/nodes/generators/index.cjs +13 -335
  32. package/dist/nodes/generators/index.d.cts +7 -7
  33. package/dist/nodes/generators/index.d.ts +7 -7
  34. package/dist/nodes/generators/index.js +12 -299
  35. package/dist/nodes/groups/index.cjs +4 -111
  36. package/dist/nodes/groups/index.d.cts +2 -2
  37. package/dist/nodes/groups/index.d.ts +2 -2
  38. package/dist/nodes/groups/index.js +2 -88
  39. package/dist/nodes/index.cjs +75 -3425
  40. package/dist/nodes/index.js +37 -3397
  41. package/dist/nodes/modifiers/index.cjs +4 -1459
  42. package/dist/nodes/modifiers/index.d.cts +6 -6
  43. package/dist/nodes/modifiers/index.d.ts +6 -6
  44. package/dist/nodes/modifiers/index.js +11 -1479
  45. package/dist/nodes/output/index.cjs +8 -1335
  46. package/dist/nodes/output/index.d.cts +3 -3
  47. package/dist/nodes/output/index.d.ts +3 -3
  48. package/dist/nodes/output/index.js +10 -1361
  49. package/dist/nodes/selectors/index.cjs +8 -1317
  50. package/dist/nodes/selectors/index.d.cts +1 -1
  51. package/dist/nodes/selectors/index.d.ts +1 -1
  52. package/dist/nodes/selectors/index.js +8 -1343
  53. package/dist/nodes/transformers/index.cjs +8 -331
  54. package/dist/nodes/transformers/index.d.cts +5 -5
  55. package/dist/nodes/transformers/index.d.ts +5 -5
  56. package/dist/nodes/transformers/index.js +6 -311
  57. package/dist/templates/generators/index.cjs +8 -1199
  58. package/dist/templates/generators/index.d.cts +5 -5
  59. package/dist/templates/generators/index.d.ts +5 -5
  60. package/dist/templates/generators/index.js +17 -1226
  61. package/dist/templates/groups/index.cjs +8 -1199
  62. package/dist/templates/groups/index.js +8 -1226
  63. package/dist/templates/index.cjs +77 -1263
  64. package/dist/templates/index.js +43 -1226
  65. package/dist/templates/modifiers/index.cjs +8 -1199
  66. package/dist/templates/modifiers/index.d.cts +9 -9
  67. package/dist/templates/modifiers/index.d.ts +9 -9
  68. package/dist/templates/modifiers/index.js +16 -1226
  69. package/dist/templates/output/index.cjs +8 -1199
  70. package/dist/templates/output/index.d.cts +3 -3
  71. package/dist/templates/output/index.d.ts +3 -3
  72. package/dist/templates/output/index.js +11 -1226
  73. package/dist/templates/selectors/index.cjs +8 -1199
  74. package/dist/templates/selectors/index.js +9 -1226
  75. package/dist/templates/transformers/index.cjs +8 -1199
  76. package/dist/templates/transformers/index.js +12 -1226
  77. package/package.json +30 -20
@@ -1,1230 +1,13 @@
1
- // src/templates/selectors/noise-blend-template.ts
2
- import { Position as Position31 } from "@xyflow/system";
3
-
4
- // src/nodes/generators/position-const-node.tsx
5
- import { NodeContainer } from "@awesome-flow/core/layout";
6
- import { useEffect, useState } from "react";
7
- import { Group, NumberInput, Stack } from "@mantine/core";
8
- import { useUpdateNodeComputedData, useUpdateNodeData } from "@awesome-flow/core/hooks";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
-
11
- // src/nodes/generators/position-grid-node.tsx
12
- import { NodeContainer as NodeContainer2 } from "@awesome-flow/core/layout";
13
- import { useEffect as useEffect2, useState as useState2 } from "react";
14
- import { Group as Group2, NumberInput as NumberInput2, Stack as Stack2 } from "@mantine/core";
15
- import { useUpdateNodeComputedData as useUpdateNodeComputedData2, useUpdateNodeData as useUpdateNodeData2 } from "@awesome-flow/core/hooks";
16
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
17
-
18
- // src/nodes/modifiers/noise-normalize-node.tsx
19
- import { NodeContainer as NodeContainer3, NodeTrackConnections } from "@awesome-flow/core/layout";
20
- import { useEffect as useEffect3, useState as useState3 } from "react";
21
- import { Group as Group3, NumberInput as NumberInput3, Stack as Stack3 } from "@mantine/core";
1
+ import "../../chunk-TOYKGWYO.js";
22
2
  import {
23
- useIncomingComputedData,
24
- useUpdateNodeComputedData as useUpdateNodeComputedData3,
25
- useUpdateNodeData as useUpdateNodeData3
26
- } from "@awesome-flow/core/hooks";
27
-
28
- // src/modules/normalize-noise-module.ts
29
- import { ModifierModule } from "libnoise-simplex-ts";
30
-
31
- // src/nodes/modifiers/noise-normalize-node.tsx
32
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
33
-
34
- // src/nodes/generators/noise-const-node.tsx
35
- import { NodeContainer as NodeContainer4 } from "@awesome-flow/core/layout";
36
- import { useEffect as useEffect4, useMemo, useState as useState4 } from "react";
37
- import { Group as Group4, NumberInput as NumberInput4, Stack as Stack4 } from "@mantine/core";
38
- import { useUpdateNodeComputedData as useUpdateNodeComputedData4, useUpdateNodeData as useUpdateNodeData4 } from "@awesome-flow/core/hooks";
39
- import { Const } from "libnoise-simplex-ts";
40
- import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
41
-
42
- // src/nodes/generators/noise-billow-node.tsx
43
- import { NodeContainer as NodeContainer5, NodeTrackConnections as NodeTrackConnections2 } from "@awesome-flow/core/layout";
44
- import { useCallback, useMemo as useMemo2 } from "react";
45
- import { Billow } from "libnoise-simplex-ts";
46
- import { useUpdateNodeComputedData as useUpdateNodeComputedData5 } from "@awesome-flow/core/hooks";
47
- import { NodePropertyVariables } from "@awesome-flow/core/components";
48
- import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
49
-
50
- // src/nodes/output/noise-logger-node.tsx
51
- import { NodeContainer as NodeContainer6, NodeTrackConnections as NodeTrackConnections3 } from "@awesome-flow/core/layout";
52
- import { useMemo as useMemo3 } from "react";
53
- import { Divider, Stack as Stack5, Text } from "@mantine/core";
54
- import { useIncomingComputedData as useIncomingComputedData2 } from "@awesome-flow/core/hooks";
55
- import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
56
-
57
- // src/nodes/output/noise-raw-texture-node.tsx
58
- import { NodeContainer as NodeContainer7, NodeTrackConnections as NodeTrackConnections4 } from "@awesome-flow/core/layout";
59
- import { useEffect as useEffect5, useMemo as useMemo4, useState as useState5 } from "react";
60
- import { useIncomingComputedData as useIncomingComputedData3, useUpdateNodeComputedData as useUpdateNodeComputedData6 } from "@awesome-flow/core/hooks";
61
- import { Group as Group5, Stack as Stack6 } from "@mantine/core";
62
- import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
63
-
64
- // src/nodes/generators/noise-checkerboard-node.tsx
65
- import { NodeContainer as NodeContainer8 } from "@awesome-flow/core/layout";
66
- import { useEffect as useEffect6, useMemo as useMemo5 } from "react";
67
- import { Checkerboard } from "libnoise-simplex-ts";
68
- import { useUpdateNodeComputedData as useUpdateNodeComputedData7 } from "@awesome-flow/core/hooks";
69
- import { jsx as jsx8 } from "react/jsx-runtime";
70
-
71
- // src/nodes/output/positions-logger-node.tsx
72
- import { NodeContainer as NodeContainer9, NodeTrackConnections as NodeTrackConnections5 } from "@awesome-flow/core/layout";
73
- import { useMemo as useMemo6 } from "react";
74
- import { Divider as Divider2, Stack as Stack7, Text as Text2 } from "@mantine/core";
75
- import { useIncomingComputedData as useIncomingComputedData4 } from "@awesome-flow/core/hooks";
76
- import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
77
-
78
- // src/nodes/generators/noise-cylinders-node.tsx
79
- import { NodeContainer as NodeContainer10, NodeTrackConnections as NodeTrackConnections6 } from "@awesome-flow/core/layout";
80
- import { useCallback as useCallback2, useMemo as useMemo7 } from "react";
81
- import { Cylinders } from "libnoise-simplex-ts";
82
- import { useUpdateNodeComputedData as useUpdateNodeComputedData8 } from "@awesome-flow/core/hooks";
83
- import { NodePropertyVariables as NodePropertyVariables2 } from "@awesome-flow/core/components";
84
- import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
85
-
86
- // src/nodes/generators/noise-perlin-node.tsx
87
- import { NodeContainer as NodeContainer11, NodeTrackConnections as NodeTrackConnections7 } from "@awesome-flow/core/layout";
88
- import { useCallback as useCallback3, useMemo as useMemo8 } from "react";
89
- import { Perlin } from "libnoise-simplex-ts";
90
- import { useUpdateNodeComputedData as useUpdateNodeComputedData9 } from "@awesome-flow/core/hooks";
91
- import { NodePropertyVariables as NodePropertyVariables3 } from "@awesome-flow/core/components";
92
- import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
93
-
94
- // src/nodes/generators/noise-ridgedmulti-node.tsx
95
- import { NodeContainer as NodeContainer12, NodeTrackConnections as NodeTrackConnections8 } from "@awesome-flow/core/layout";
96
- import { useCallback as useCallback4, useMemo as useMemo9 } from "react";
97
- import { RidgedMulti } from "libnoise-simplex-ts";
98
- import { useUpdateNodeComputedData as useUpdateNodeComputedData10 } from "@awesome-flow/core/hooks";
99
- import { NodePropertyVariables as NodePropertyVariables4 } from "@awesome-flow/core/components";
100
- import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
101
-
102
- // src/nodes/generators/noise-spheres-node.tsx
103
- import { NodeContainer as NodeContainer13, NodeTrackConnections as NodeTrackConnections9 } from "@awesome-flow/core/layout";
104
- import { useCallback as useCallback5, useMemo as useMemo10 } from "react";
105
- import { Spheres } from "libnoise-simplex-ts";
106
- import { useUpdateNodeComputedData as useUpdateNodeComputedData11 } from "@awesome-flow/core/hooks";
107
- import { NodePropertyVariables as NodePropertyVariables5 } from "@awesome-flow/core/components";
108
- import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
109
-
110
- // src/nodes/generators/noise-voronoi-node.tsx
111
- import { NodeContainer as NodeContainer14, NodeTrackConnections as NodeTrackConnections10 } from "@awesome-flow/core/layout";
112
- import { useCallback as useCallback6 } from "react";
113
- import { Voronoi } from "libnoise-simplex-ts";
114
- import { useUpdateNodeComputedData as useUpdateNodeComputedData12 } from "@awesome-flow/core/hooks";
115
- import { NodePropertyVariables as NodePropertyVariables6 } from "@awesome-flow/core/components";
116
- import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
117
-
118
- // src/nodes/modifiers/noise-combine-node.tsx
119
- import { NodeCombobox, NodeContainer as NodeContainer15, NodeTrackConnections as NodeTrackConnections11 } from "@awesome-flow/core/layout";
120
- import { useCallback as useCallback7, useEffect as useEffect7 } from "react";
121
- import {
122
- useIncomingComputedData as useIncomingComputedData5,
123
- useUpdateNodeComputedData as useUpdateNodeComputedData13,
124
- useUpdateNodeData as useUpdateNodeData5
125
- } from "@awesome-flow/core/hooks";
126
- import {
127
- IconAsterisk,
128
- IconChevronLeft,
129
- IconChevronRight,
130
- IconChevronUp,
131
- IconPlus
132
- } from "@tabler/icons-react";
133
-
134
- // src/abstract/operations.ts
135
- import { Add, Max, Min, Multiply, Power } from "libnoise-simplex-ts";
136
-
137
- // src/nodes/modifiers/noise-combine-node.tsx
138
- import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
139
-
140
- // src/nodes/modifiers/noise-clamp-node.tsx
141
- import { NodeContainer as NodeContainer16, NodeTrackConnections as NodeTrackConnections12 } from "@awesome-flow/core/layout";
142
- import { useEffect as useEffect8, useState as useState6 } from "react";
143
- import { Group as Group6, NumberInput as NumberInput5, Stack as Stack8 } from "@mantine/core";
144
- import {
145
- useIncomingComputedData as useIncomingComputedData6,
146
- useUpdateNodeComputedData as useUpdateNodeComputedData14,
147
- useUpdateNodeData as useUpdateNodeData6
148
- } from "@awesome-flow/core/hooks";
149
- import { Clamp } from "libnoise-simplex-ts";
150
- import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
151
-
152
- // src/nodes/modifiers/noise-abs-node.tsx
153
- import { NodeContainer as NodeContainer17, NodeTrackConnections as NodeTrackConnections13 } from "@awesome-flow/core/layout";
154
- import { useEffect as useEffect9 } from "react";
155
- import { useIncomingComputedData as useIncomingComputedData7, useUpdateNodeComputedData as useUpdateNodeComputedData15 } from "@awesome-flow/core/hooks";
156
- import { Abs } from "libnoise-simplex-ts";
157
- import { jsx as jsx17 } from "react/jsx-runtime";
158
-
159
- // src/nodes/output/noise-output-node.tsx
160
- import { NodeContainer as NodeContainer18, NodeTrackConnections as NodeTrackConnections14 } from "@awesome-flow/core/layout";
161
- import { useCallback as useCallback8, useState as useState7 } from "react";
162
- import { useUpdateNodeComputedData as useUpdateNodeComputedData16 } from "@awesome-flow/core/hooks";
163
- import { HandlesIncomingDataStatus } from "@awesome-flow/core/components";
164
- import { Text as Text3 } from "@mantine/core";
165
- import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
166
-
167
- // src/nodes/modifiers/noise-curve-node.tsx
168
- import { NodeContainer as NodeContainer19, NodeTrackConnections as NodeTrackConnections15 } from "@awesome-flow/core/layout";
169
- import { ActionIcon, Button, Group as Group7, NumberInput as NumberInput6, Space } from "@mantine/core";
170
- import {
171
- useIncomingComputedData as useIncomingComputedData8,
172
- useUpdateNodeComputedData as useUpdateNodeComputedData17,
173
- useUpdateNodeData as useUpdateNodeData7
174
- } from "@awesome-flow/core/hooks";
175
- import { useCallback as useCallback9, useEffect as useEffect10, useState as useState8 } from "react";
176
- import { Curve, Tuple } from "libnoise-simplex-ts";
177
- import { IconX } from "@tabler/icons-react";
178
- import { randomId } from "@mantine/hooks";
179
- import { NodeState } from "@awesome-flow/core/abstract";
180
- import { Fragment, jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
181
-
182
- // src/nodes/modifiers/noise-exponent-node.tsx
183
- import { NodeContainer as NodeContainer20, NodeTrackConnections as NodeTrackConnections16 } from "@awesome-flow/core/layout";
184
- import { useEffect as useEffect11, useState as useState9 } from "react";
185
- import { Group as Group8, NumberInput as NumberInput7, Stack as Stack9 } from "@mantine/core";
186
- import {
187
- useIncomingComputedData as useIncomingComputedData9,
188
- useUpdateNodeComputedData as useUpdateNodeComputedData18,
189
- useUpdateNodeData as useUpdateNodeData8
190
- } from "@awesome-flow/core/hooks";
191
- import { Exponent } from "libnoise-simplex-ts";
192
- import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
193
-
194
- // src/nodes/modifiers/noise-invert-node.tsx
195
- import { NodeContainer as NodeContainer21, NodeTrackConnections as NodeTrackConnections17 } from "@awesome-flow/core/layout";
196
- import { useEffect as useEffect12 } from "react";
197
- import { useIncomingComputedData as useIncomingComputedData10, useUpdateNodeComputedData as useUpdateNodeComputedData19 } from "@awesome-flow/core/hooks";
198
- import { Invert } from "libnoise-simplex-ts";
199
- import { jsx as jsx21 } from "react/jsx-runtime";
200
-
201
- // src/nodes/modifiers/noise-scale-bias-node.tsx
202
- import { NodeContainer as NodeContainer22, NodeTrackConnections as NodeTrackConnections18 } from "@awesome-flow/core/layout";
203
- import { useEffect as useEffect13, useState as useState10 } from "react";
204
- import { Group as Group9, NumberInput as NumberInput8, Stack as Stack10 } from "@mantine/core";
205
- import {
206
- useIncomingComputedData as useIncomingComputedData11,
207
- useUpdateNodeComputedData as useUpdateNodeComputedData20,
208
- useUpdateNodeData as useUpdateNodeData9
209
- } from "@awesome-flow/core/hooks";
210
- import { ScaleBias } from "libnoise-simplex-ts";
211
- import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
212
-
213
- // src/nodes/modifiers/noise-terrace-node.tsx
214
- import { NodeContainer as NodeContainer23, NodeTrackConnections as NodeTrackConnections19 } from "@awesome-flow/core/layout";
215
- import { ActionIcon as ActionIcon2, Button as Button2, Group as Group10, NumberInput as NumberInput9, Space as Space2 } from "@mantine/core";
216
- import {
217
- useIncomingComputedData as useIncomingComputedData12,
218
- useUpdateNodeComputedData as useUpdateNodeComputedData21,
219
- useUpdateNodeData as useUpdateNodeData10
220
- } from "@awesome-flow/core/hooks";
221
- import { useCallback as useCallback10, useEffect as useEffect14, useState as useState11 } from "react";
222
- import { Terrace } from "libnoise-simplex-ts";
223
- import { IconX as IconX2 } from "@tabler/icons-react";
224
- import { randomId as randomId2 } from "@mantine/hooks";
225
- import { NodeState as NodeState2 } from "@awesome-flow/core/abstract";
226
- import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
227
-
228
- // src/nodes/selectors/noise-blend-node.tsx
229
- import { NodeContainer as NodeContainer24, NodeTrackConnections as NodeTrackConnections20 } from "@awesome-flow/core/layout";
230
- import { useCallback as useCallback11 } from "react";
231
- import { useUpdateNodeComputedData as useUpdateNodeComputedData22 } from "@awesome-flow/core/hooks";
232
- import { Blend } from "libnoise-simplex-ts";
233
- import { HandlesIncomingDataStatus as HandlesIncomingDataStatus2 } from "@awesome-flow/core/components";
234
- import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
235
-
236
- // src/nodes/selectors/noise-select-node.tsx
237
- import { NodeContainer as NodeContainer25, NodeTrackConnections as NodeTrackConnections21 } from "@awesome-flow/core/layout";
238
- import { useCallback as useCallback12, useEffect as useEffect15, useState as useState12 } from "react";
239
- import { useUpdateNodeComputedData as useUpdateNodeComputedData23, useUpdateNodeData as useUpdateNodeData11 } from "@awesome-flow/core/hooks";
240
- import { Select } from "libnoise-simplex-ts";
241
- import { Group as Group11, NumberInput as NumberInput10, Stack as Stack11 } from "@mantine/core";
242
- import { HandlesIncomingDataStatus as HandlesIncomingDataStatus3 } from "@awesome-flow/core/components";
243
- import { jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
244
-
245
- // src/nodes/transformers/noise-displace-node.tsx
246
- import { NodeContainer as NodeContainer26, NodeTrackConnections as NodeTrackConnections22 } from "@awesome-flow/core/layout";
247
- import { useCallback as useCallback13 } from "react";
248
- import { useUpdateNodeComputedData as useUpdateNodeComputedData24 } from "@awesome-flow/core/hooks";
249
- import { Displace } from "libnoise-simplex-ts";
250
- import { HandlesIncomingDataStatus as HandlesIncomingDataStatus4 } from "@awesome-flow/core/components";
251
- import { jsx as jsx26, jsxs as jsxs23 } from "react/jsx-runtime";
252
-
253
- // src/nodes/transformers/noise-rotate-point-node.tsx
254
- import { NodeContainer as NodeContainer27, NodeTrackConnections as NodeTrackConnections23 } from "@awesome-flow/core/layout";
255
- import { useEffect as useEffect16, useState as useState13 } from "react";
256
- import {
257
- useIncomingComputedData as useIncomingComputedData13,
258
- useUpdateNodeComputedData as useUpdateNodeComputedData25,
259
- useUpdateNodeData as useUpdateNodeData12
260
- } from "@awesome-flow/core/hooks";
261
- import { Group as Group12, NumberInput as NumberInput11, Stack as Stack12 } from "@mantine/core";
262
- import { RotatePoint } from "libnoise-simplex-ts";
263
- import { jsx as jsx27, jsxs as jsxs24 } from "react/jsx-runtime";
264
-
265
- // src/nodes/transformers/noise-scale-point-node.tsx
266
- import { NodeContainer as NodeContainer28, NodeTrackConnections as NodeTrackConnections24 } from "@awesome-flow/core/layout";
267
- import { useEffect as useEffect17, useState as useState14 } from "react";
268
- import {
269
- useIncomingComputedData as useIncomingComputedData14,
270
- useUpdateNodeComputedData as useUpdateNodeComputedData26,
271
- useUpdateNodeData as useUpdateNodeData13
272
- } from "@awesome-flow/core/hooks";
273
- import { Group as Group13, NumberInput as NumberInput12, Stack as Stack13 } from "@mantine/core";
274
- import { ScalePoint } from "libnoise-simplex-ts";
275
- import { jsx as jsx28, jsxs as jsxs25 } from "react/jsx-runtime";
276
-
277
- // src/nodes/transformers/noise-translate-point-node.tsx
278
- import { NodeContainer as NodeContainer29, NodeTrackConnections as NodeTrackConnections25 } from "@awesome-flow/core/layout";
279
- import { useEffect as useEffect18, useState as useState15 } from "react";
280
- import {
281
- useIncomingComputedData as useIncomingComputedData15,
282
- useUpdateNodeComputedData as useUpdateNodeComputedData27,
283
- useUpdateNodeData as useUpdateNodeData14
284
- } from "@awesome-flow/core/hooks";
285
- import { Group as Group14, NumberInput as NumberInput13, Stack as Stack14 } from "@mantine/core";
286
- import { TranslatePoint } from "libnoise-simplex-ts";
287
- import { jsx as jsx29, jsxs as jsxs26 } from "react/jsx-runtime";
288
-
289
- // src/nodes/transformers/noise-turbulence-node .tsx
290
- import { NodeContainer as NodeContainer30, NodeTrackConnections as NodeTrackConnections26 } from "@awesome-flow/core/layout";
291
- import { useCallback as useCallback14, useEffect as useEffect19, useState as useState16 } from "react";
292
- import { useIncomingComputedData as useIncomingComputedData16, useUpdateNodeComputedData as useUpdateNodeComputedData28 } from "@awesome-flow/core/hooks";
293
- import { Turbulence } from "libnoise-simplex-ts";
294
- import { NodePropertyVariables as NodePropertyVariables7 } from "@awesome-flow/core/components";
295
- import { jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
296
-
297
- // src/templates/generators/noise-checkerboard-template.ts
298
- import { Position } from "@xyflow/system";
299
- var NoiseCheckerboardNodeTemplateFactory = class {
300
- template = {
301
- type: "noise-checkerboard" /* noiseCheckerboard */,
302
- group: "Noise Generators" /* noiseGenerators */,
303
- data: {
304
- title: "Checkerboard Noise"
305
- },
306
- handles: [
307
- {
308
- position: Position.Right,
309
- dataType: "module" /* module */,
310
- connection: "source"
311
- }
312
- ]
313
- };
314
- };
315
-
316
- // src/templates/generators/noise-const-template.ts
317
- import { Position as Position2 } from "@xyflow/system";
318
- var NoiseConstNodeTemplateFactory = class {
319
- template = {
320
- type: "noise-constant" /* noiseConst */,
321
- group: "Noise Generators" /* noiseGenerators */,
322
- data: {
323
- title: "Const Value Noise",
324
- noise: 0,
325
- min: -1,
326
- max: 1
327
- },
328
- handles: [
329
- {
330
- position: Position2.Right,
331
- dataType: "module" /* module */,
332
- connection: "source"
333
- }
334
- ]
335
- };
336
- };
337
-
338
- // src/templates/generators/noise-cylinders-template.ts
339
- import { CoreHandleType } from "@awesome-flow/core/abstract";
340
- import { Position as Position3 } from "@xyflow/system";
341
- var NoiseCylindersNodeTemplateFactory = class {
342
- template = {
343
- type: "noise-cylinders" /* noiseCylinders */,
344
- group: "Noise Generators" /* noiseGenerators */,
345
- data: {
346
- title: "Cylinders Noise",
347
- frequency: 0.1
348
- },
349
- handles: [
350
- {
351
- position: Position3.Left,
352
- dataType: CoreHandleType.variableProperty,
353
- connection: "target"
354
- },
355
- {
356
- position: Position3.Right,
357
- dataType: "module" /* module */,
358
- connection: "source"
359
- }
360
- ]
361
- };
362
- };
363
-
364
- // src/templates/generators/noise-perlin-template.ts
365
- import { CoreHandleType as CoreHandleType2 } from "@awesome-flow/core/abstract";
366
- import { Position as Position4 } from "@xyflow/system";
367
- var NoisePerlinNodeTemplateFactory = class {
368
- template = {
369
- type: "noise-perlin" /* noisePerlin */,
370
- group: "Noise Generators" /* noiseGenerators */,
371
- data: {
372
- title: "Perlin Noise",
373
- frequency: 0.1,
374
- lacunarity: 2,
375
- octaves: 5,
376
- persistence: 0.5,
377
- seed: 0
378
- },
379
- handles: [
380
- {
381
- position: Position4.Left,
382
- dataType: CoreHandleType2.variableProperty,
383
- connection: "target"
384
- },
385
- {
386
- position: Position4.Right,
387
- dataType: "module" /* module */,
388
- connection: "source"
389
- }
390
- ]
391
- };
392
- };
393
-
394
- // src/templates/generators/noise-ridgedmulti-template.ts
395
- import { CoreHandleType as CoreHandleType3 } from "@awesome-flow/core/abstract";
396
- import { Position as Position5 } from "@xyflow/system";
397
- var NoiseRidgedMultiNodeTemplateFactory = class {
398
- template = {
399
- type: "noise-ridged-multi" /* noiseRidgedMulti */,
400
- group: "Noise Generators" /* noiseGenerators */,
401
- data: {
402
- title: "Ridged Multi Noise",
403
- frequency: 0.1,
404
- lacunarity: 2,
405
- octaves: 6,
406
- offset: 1,
407
- gain: 2,
408
- seed: 0
409
- },
410
- handles: [
411
- {
412
- position: Position5.Left,
413
- dataType: CoreHandleType3.variableProperty,
414
- connection: "target"
415
- },
416
- {
417
- position: Position5.Right,
418
- dataType: "module" /* module */,
419
- connection: "source"
420
- }
421
- ]
422
- };
423
- };
424
-
425
- // src/templates/generators/noise-spheres-template.ts
426
- import { CoreHandleType as CoreHandleType4 } from "@awesome-flow/core/abstract";
427
- import { Position as Position6 } from "@xyflow/system";
428
- var NoiseSpheresNodeTemplateFactory = class {
429
- template = {
430
- type: "noise-spheres" /* noiseSpheres */,
431
- group: "Noise Generators" /* noiseGenerators */,
432
- data: {
433
- title: "Spheres Noise",
434
- frequency: 0.1
435
- },
436
- handles: [
437
- {
438
- position: Position6.Left,
439
- dataType: CoreHandleType4.variableProperty,
440
- connection: "target"
441
- },
442
- {
443
- position: Position6.Right,
444
- dataType: "module" /* module */,
445
- connection: "source"
446
- }
447
- ]
448
- };
449
- };
450
-
451
- // src/templates/generators/noise-voronoi-template.ts
452
- import { CoreHandleType as CoreHandleType5 } from "@awesome-flow/core/abstract";
453
- import { Position as Position7 } from "@xyflow/system";
454
- var NoiseVoronoiNodeTemplateFactory = class {
455
- template = {
456
- type: "noise-voronoi" /* noiseVoronoi */,
457
- group: "Noise Generators" /* noiseGenerators */,
458
- data: {
459
- title: "Voronoi Noise",
460
- frequency: 0.1,
461
- displacement: 1,
462
- distance: true,
463
- seed: 0
464
- },
465
- handles: [
466
- {
467
- position: Position7.Left,
468
- dataType: CoreHandleType5.variableProperty,
469
- connection: "target"
470
- },
471
- {
472
- position: Position7.Right,
473
- dataType: "module" /* module */,
474
- connection: "source"
475
- }
476
- ]
477
- };
478
- };
479
-
480
- // src/templates/generators/position-const-template.ts
481
- import { Position as Position8 } from "@xyflow/system";
482
- var PositionConstNodeTemplateFactory = class {
483
- template = {
484
- type: "position" /* position */,
485
- group: "Positions" /* positions */,
486
- data: {
487
- title: "Position Output",
488
- position: { x: 0, y: 0, z: 0 }
489
- },
490
- handles: [
491
- {
492
- position: Position8.Right,
493
- dataType: "position" /* position */,
494
- connection: "source"
495
- }
496
- ]
497
- };
498
- };
499
-
500
- // src/templates/generators/position-grid-template.ts
501
- import { Position as Position9 } from "@xyflow/system";
502
- var PositionGridNodeTemplateFactory = class {
503
- template = {
504
- type: "grid" /* grid */,
505
- group: "Positions" /* positions */,
506
- data: {
507
- title: "Grid Output",
508
- center: { x: 0, y: 0, z: 0 },
509
- radius: 1
510
- },
511
- handles: [
512
- {
513
- position: Position9.Right,
514
- dataType: "position" /* position */,
515
- connection: "source"
516
- }
517
- ]
518
- };
519
- };
520
-
521
- // src/templates/modifiers/noise-normalize-template.ts
522
- import { IDGenerator } from "@awesome-flow/core/utils";
523
- import { Position as Position10 } from "@xyflow/system";
524
- var NoiseNormalizeNodeTemplateFactory = class {
525
- template = {
526
- id: IDGenerator.template(),
527
- type: "noise-normalize" /* noiseNormalize */,
528
- group: "Noise Modifiers" /* noiseModifiers */,
529
- data: {
530
- title: "Normalize Noise",
531
- intervalStart: -1,
532
- intervalEnd: 1
533
- },
534
- handles: [
535
- {
536
- position: Position10.Left,
537
- dataType: "module" /* module */,
538
- connection: "target",
539
- maxConnections: 1
540
- },
541
- {
542
- position: Position10.Right,
543
- dataType: "module" /* module */,
544
- connection: "source"
545
- }
546
- ]
547
- };
548
- };
549
-
550
- // src/templates/output/noise-logger-template.ts
551
- import { Position as Position11 } from "@xyflow/system";
552
- var NoiseLoggerNodeTemplateFactory = class {
553
- template = {
554
- type: "noise-logger" /* noiseLogger */,
555
- group: "Output" /* output */,
556
- data: {
557
- title: "Noise Logger"
558
- },
559
- handles: [
560
- {
561
- position: Position11.Left,
562
- dataType: "noise" /* noise */,
563
- connection: "target"
564
- }
565
- ]
566
- };
567
- };
568
-
569
- // src/templates/output/noise-raw-texture-template.ts
570
- import { Position as Position12 } from "@xyflow/system";
571
- var NoiseRawTextureTemplateFactory = class {
572
- template = {
573
- type: "texture-data" /* textureData */,
574
- group: "Output" /* output */,
575
- data: {
576
- title: "Texture Data"
577
- },
578
- handles: [
579
- {
580
- position: Position12.Left,
581
- dataType: "noise" /* noise */,
582
- connection: "target",
583
- maxConnections: 1
584
- },
585
- {
586
- position: Position12.Right,
587
- dataType: "texture" /* texture */,
588
- connection: "source"
589
- }
590
- ]
591
- };
592
- };
593
-
594
- // src/templates/output/position-logger-template.ts
595
- import { Position as Position13 } from "@xyflow/system";
596
- var PositionLoggerNodeTemplateFactory = class {
597
- template = {
598
- type: "position-logger" /* positionLogger */,
599
- group: "Positions" /* positions */,
600
- data: {
601
- title: "Position Logger"
602
- },
603
- handles: [
604
- {
605
- position: Position13.Left,
606
- dataType: "position" /* position */,
607
- connection: "target"
608
- }
609
- ]
610
- };
611
- };
612
-
613
- // src/templates/modifiers/noise-combine-template.ts
614
- import { Position as Position14 } from "@xyflow/system";
615
- var NoiseCombineNodeTemplateFactory = class {
616
- template = {
617
- type: "noise-combiner" /* noiseCombine */,
618
- group: "Noise Modifiers" /* noiseModifiers */,
619
- data: {
620
- title: "Combine Noise",
621
- operation: "add" /* add */
622
- },
623
- handles: [
624
- {
625
- position: Position14.Left,
626
- dataType: "module" /* module */,
627
- connection: "target",
628
- maxConnections: 2
629
- },
630
- {
631
- position: Position14.Right,
632
- dataType: "module" /* module */,
633
- connection: "source"
634
- }
635
- ]
636
- };
637
- };
638
-
639
- // src/templates/modifiers/noise-clamp-template.ts
640
- import { Position as Position15 } from "@xyflow/system";
641
- var NoiseClampNodeTemplateFactory = class {
642
- template = {
643
- type: "noise-clamp" /* noiseClamp */,
644
- group: "Noise Modifiers" /* noiseModifiers */,
645
- data: {
646
- title: "Clamp Noise",
647
- lowerBound: -1,
648
- upperBound: 1
649
- },
650
- handles: [
651
- {
652
- position: Position15.Left,
653
- dataType: "module" /* module */,
654
- connection: "target",
655
- maxConnections: 1
656
- },
657
- {
658
- position: Position15.Right,
659
- dataType: "module" /* module */,
660
- connection: "source"
661
- }
662
- ]
663
- };
664
- };
665
-
666
- // src/templates/modifiers/noise-abs-template.ts
667
- import { Position as Position16 } from "@xyflow/system";
668
- var NoiseAbsNodeTemplateFactory = class {
669
- template = {
670
- type: "noise-abs" /* noiseAbs */,
671
- group: "Noise Modifiers" /* noiseModifiers */,
672
- data: {
673
- title: "Abs Noise"
674
- },
675
- handles: [
676
- {
677
- position: Position16.Left,
678
- dataType: "module" /* module */,
679
- connection: "target",
680
- maxConnections: 1
681
- },
682
- {
683
- position: Position16.Right,
684
- dataType: "module" /* module */,
685
- connection: "source"
686
- }
687
- ]
688
- };
689
- };
690
-
691
- // src/templates/output/noise-output-template.ts
692
- import { Position as Position17 } from "@xyflow/system";
693
- var NoiseOutputNodeTemplateFactory = class {
694
- template = {
695
- type: "noise-output" /* noiseOutput */,
696
- group: "Output" /* output */,
697
- data: {
698
- title: "Noise Output"
699
- },
700
- handles: [
701
- {
702
- position: Position17.Left,
703
- dataType: "position" /* position */,
704
- connection: "target"
705
- },
706
- {
707
- position: Position17.Left,
708
- dataType: "module" /* module */,
709
- connection: "target",
710
- maxConnections: 1
711
- },
712
- {
713
- position: Position17.Right,
714
- dataType: "noise" /* noise */,
715
- connection: "source"
716
- }
717
- ]
718
- };
719
- };
720
-
721
- // src/templates/modifiers/noise-curve-template.ts
722
- import { Position as Position18 } from "@xyflow/system";
723
- var NoiseCurveNodeTemplateFactory = class {
724
- template = {
725
- type: "noise-curve" /* noiseCurve */,
726
- group: "Noise Modifiers" /* noiseModifiers */,
727
- data: {
728
- title: "Noise Curve",
729
- points: []
730
- },
731
- handles: [
732
- {
733
- position: Position18.Left,
734
- dataType: "module" /* module */,
735
- connection: "target",
736
- maxConnections: 1
737
- },
738
- // {
739
- // position: Position.Left,
740
- // dataType: CoreHandleType.variableProperty,
741
- // connection: 'target',
742
- // },
743
- {
744
- position: Position18.Right,
745
- dataType: "module" /* module */,
746
- connection: "source"
747
- }
748
- ]
749
- };
750
- };
751
-
752
- // src/templates/modifiers/noise-exponent-template.ts
753
- import { Position as Position19 } from "@xyflow/system";
754
- var NoiseExponentNodeTemplateFactory = class {
755
- template = {
756
- type: "noise-exponent" /* noiseExponent */,
757
- group: "Noise Modifiers" /* noiseModifiers */,
758
- data: {
759
- title: "Noise Exponent",
760
- exponent: 1
761
- },
762
- handles: [
763
- {
764
- position: Position19.Left,
765
- dataType: "module" /* module */,
766
- connection: "target",
767
- maxConnections: 1
768
- },
769
- {
770
- position: Position19.Right,
771
- dataType: "module" /* module */,
772
- connection: "source"
773
- }
774
- ]
775
- };
776
- };
777
-
778
- // src/templates/modifiers/noise-invert-template.ts
779
- import { Position as Position20 } from "@xyflow/system";
780
- var NoiseInvertNodeTemplateFactory = class {
781
- template = {
782
- type: "noise-invert" /* noiseInvert */,
783
- group: "Noise Modifiers" /* noiseModifiers */,
784
- data: {
785
- title: "Invert Noise"
786
- },
787
- handles: [
788
- {
789
- position: Position20.Left,
790
- dataType: "module" /* module */,
791
- connection: "target",
792
- maxConnections: 1
793
- },
794
- {
795
- position: Position20.Right,
796
- dataType: "module" /* module */,
797
- connection: "source"
798
- }
799
- ]
800
- };
801
- };
802
-
803
- // src/templates/modifiers/noise-scalebias-template.ts
804
- import { Position as Position21 } from "@xyflow/system";
805
- var NoiseScaleBiasNodeTemplateFactory = class {
806
- template = {
807
- type: "noise-scale-bias" /* noiseScaleBias */,
808
- group: "Noise Modifiers" /* noiseModifiers */,
809
- data: {
810
- title: "Scale/Bias Noise",
811
- scale: 1,
812
- bias: 0
813
- },
814
- handles: [
815
- {
816
- position: Position21.Left,
817
- dataType: "module" /* module */,
818
- connection: "target",
819
- maxConnections: 1
820
- },
821
- {
822
- position: Position21.Right,
823
- dataType: "module" /* module */,
824
- connection: "source"
825
- }
826
- ]
827
- };
828
- };
829
-
830
- // src/templates/modifiers/noise-terrace-template.ts
831
- import { Position as Position22 } from "@xyflow/system";
832
- var NoiseTerraceNodeTemplateFactory = class {
833
- template = {
834
- type: "noise-terrace" /* noiseTerrace */,
835
- group: "Noise Modifiers" /* noiseModifiers */,
836
- data: {
837
- title: "Noise Terrace",
838
- points: []
839
- },
840
- handles: [
841
- {
842
- position: Position22.Left,
843
- dataType: "module" /* module */,
844
- connection: "target",
845
- maxConnections: 1
846
- },
847
- {
848
- position: Position22.Right,
849
- dataType: "module" /* module */,
850
- connection: "source"
851
- }
852
- ]
853
- };
854
- };
855
-
856
- // src/templates/selectors/noise-select-template.ts
857
- import { Position as Position23 } from "@xyflow/system";
858
- var NoiseSelectNodeTemplateFactory = class {
859
- template = {
860
- type: "noise-select" /* noiseSelect */,
861
- group: "Noise Selectors" /* noiseSelectors */,
862
- data: {
863
- title: "Noise Select",
864
- edgeFalloff: 0,
865
- lowerBound: -1,
866
- upperBound: 1
867
- },
868
- handles: [
869
- {
870
- position: Position23.Left,
871
- dataType: "module" /* module */,
872
- dataId: "source" /* source */,
873
- connection: "target",
874
- label: "Source Modules",
875
- maxConnections: 2,
876
- minConnections: 2
877
- },
878
- {
879
- position: Position23.Left,
880
- dataType: "module" /* module */,
881
- dataId: "control" /* control */,
882
- connection: "target",
883
- label: "Control Module",
884
- maxConnections: 1
885
- },
886
- {
887
- position: Position23.Right,
888
- dataType: "module" /* module */,
889
- dataId: "output" /* output */,
890
- connection: "source"
891
- }
892
- ]
893
- };
894
- };
895
-
896
- // src/templates/transformers/noise-displace-template.ts
897
- import { Position as Position24 } from "@xyflow/system";
898
- var NoiseDisplaceNodeTemplateFactory = class {
899
- template = {
900
- type: "noise-displace" /* noiseDisplace */,
901
- group: "Noise Transformers" /* noiseTransformers */,
902
- data: {
903
- title: "Noise Displace"
904
- },
905
- handles: [
906
- {
907
- position: Position24.Left,
908
- connection: "target",
909
- label: "Source Module",
910
- dataType: "module" /* module */,
911
- dataId: "source" /* sourceModule */,
912
- maxConnections: 1
913
- },
914
- {
915
- position: Position24.Left,
916
- connection: "target",
917
- label: "X Module",
918
- dataType: "module" /* module */,
919
- dataId: "x-module" /* xModule */,
920
- maxConnections: 1
921
- },
922
- {
923
- position: Position24.Left,
924
- connection: "target",
925
- label: "Y Module",
926
- dataType: "module" /* module */,
927
- dataId: "y-module" /* yModule */,
928
- maxConnections: 1
929
- },
930
- {
931
- position: Position24.Left,
932
- connection: "target",
933
- label: "Z Module",
934
- dataType: "module" /* module */,
935
- dataId: "z-module" /* zModule */,
936
- maxConnections: 1
937
- },
938
- {
939
- position: Position24.Right,
940
- dataType: "module" /* module */,
941
- dataId: "output" /* output */,
942
- connection: "source"
943
- }
944
- ]
945
- };
946
- };
947
-
948
- // src/templates/transformers/noise-rotate-point-template.ts
949
- import { Position as Position25 } from "@xyflow/system";
950
- var NoiseRotatePointNodeTemplateFactory = class {
951
- template = {
952
- type: "noise-rotate-point" /* noiseRotatePoint */,
953
- group: "Noise Transformers" /* noiseTransformers */,
954
- data: {
955
- title: "Noise Rotate Point",
956
- xAngle: 0,
957
- yAngle: 0,
958
- zAngle: 0
959
- },
960
- handles: [
961
- {
962
- position: Position25.Left,
963
- dataType: "module" /* module */,
964
- connection: "target",
965
- label: "Source Module",
966
- maxConnections: 1
967
- },
968
- {
969
- position: Position25.Right,
970
- dataType: "module" /* module */,
971
- connection: "source"
972
- }
973
- ]
974
- };
975
- };
976
-
977
- // src/templates/transformers/noise-scale-point-template.ts
978
- import { Position as Position26 } from "@xyflow/system";
979
- var NoiseScalePointNodeTemplateFactory = class {
980
- template = {
981
- type: "noise-scale-point" /* noiseScalePoint */,
982
- group: "Noise Transformers" /* noiseTransformers */,
983
- data: {
984
- title: "Noise Scale Point",
985
- xScale: 1,
986
- yScale: 1,
987
- zScale: 1
988
- },
989
- handles: [
990
- {
991
- position: Position26.Left,
992
- dataType: "module" /* module */,
993
- connection: "target",
994
- label: "Source Module",
995
- maxConnections: 1
996
- },
997
- {
998
- position: Position26.Right,
999
- dataType: "module" /* module */,
1000
- connection: "source"
1001
- }
1002
- ]
1003
- };
1004
- };
1005
-
1006
- // src/templates/transformers/noise-translate-point-template.ts
1007
- import { Position as Position27 } from "@xyflow/system";
1008
- var NoiseTranslatePointNodeTemplateFactory = class {
1009
- template = {
1010
- type: "noise-translate-point" /* noiseTranslatePoint */,
1011
- group: "Noise Transformers" /* noiseTransformers */,
1012
- data: {
1013
- title: "Noise Translate Point",
1014
- translateX: 0,
1015
- translateY: 0,
1016
- translateZ: 0
1017
- },
1018
- handles: [
1019
- {
1020
- position: Position27.Left,
1021
- dataType: "module" /* module */,
1022
- connection: "target",
1023
- label: "Source Module",
1024
- maxConnections: 1
1025
- },
1026
- {
1027
- position: Position27.Right,
1028
- dataType: "module" /* module */,
1029
- connection: "source"
1030
- }
1031
- ]
1032
- };
1033
- };
1034
-
1035
- // src/templates/transformers/noise-turbulence-template.ts
1036
- import { CoreHandleType as CoreHandleType6 } from "@awesome-flow/core/abstract";
1037
- import { Position as Position28 } from "@xyflow/system";
1038
- var NoiseTurbulenceNodeTemplateFactory = class {
1039
- template = {
1040
- type: "noise-turbulence" /* noiseTurbulence */,
1041
- group: "Noise Transformers" /* noiseTransformers */,
1042
- data: {
1043
- title: "Noise Turbulence",
1044
- frequency: 1,
1045
- power: 1,
1046
- roughness: 1,
1047
- seed: 0
1048
- },
1049
- handles: [
1050
- {
1051
- position: Position28.Left,
1052
- dataType: "module" /* module */,
1053
- connection: "target",
1054
- label: "Source Module",
1055
- maxConnections: 1
1056
- },
1057
- {
1058
- position: Position28.Left,
1059
- dataType: CoreHandleType6.variableProperty,
1060
- label: "Variable Properties",
1061
- connection: "target"
1062
- },
1063
- {
1064
- position: Position28.Right,
1065
- dataType: "module" /* module */,
1066
- connection: "source"
1067
- }
1068
- ]
1069
- };
1070
- };
1071
-
1072
- // src/templates/generators/noise-billow-template.ts
1073
- import { CoreHandleType as CoreHandleType7 } from "@awesome-flow/core/abstract";
1074
- import { IDGenerator as IDGenerator2 } from "@awesome-flow/core/utils";
1075
- import { Position as Position29 } from "@xyflow/system";
1076
- var NoiseBillowNodeTemplateFactory = class {
1077
- template = {
1078
- id: IDGenerator2.template(),
1079
- type: "noise-billow" /* noiseBillow */,
1080
- group: "Noise Generators" /* noiseGenerators */,
1081
- data: {
1082
- title: "Billow Noise",
1083
- frequency: 0.1,
1084
- lacunarity: 2,
1085
- octaves: 5,
1086
- persistence: 0.5,
1087
- seed: 0
1088
- },
1089
- handles: [
1090
- {
1091
- position: Position29.Left,
1092
- dataType: CoreHandleType7.variableProperty,
1093
- connection: "target"
1094
- },
1095
- {
1096
- position: Position29.Right,
1097
- dataType: "module" /* module */,
1098
- connection: "source"
1099
- }
1100
- ]
1101
- };
1102
- };
1103
-
1104
- // src/templates/groups/module-group-template.ts
1105
- import {
1106
- CoreTemplateGroup
1107
- } from "@awesome-flow/core/abstract";
1108
- import { IDGenerator as IDGenerator3 } from "@awesome-flow/core/utils";
1109
- import { Position as Position30 } from "@xyflow/system";
1110
- var ModuleGroupNodeTemplateFactory = class {
1111
- template = {
1112
- id: IDGenerator3.template(),
1113
- type: "group-module" /* groupModule */,
1114
- group: CoreTemplateGroup.groups,
1115
- data: {
1116
- title: "Modules Group",
1117
- isGroup: true,
1118
- initialSize: {
1119
- width: 300,
1120
- height: 200
1121
- },
1122
- collapsedSize: {
1123
- width: 300,
1124
- height: 80
1125
- }
1126
- },
1127
- handles: [
1128
- {
1129
- position: Position30.Bottom,
1130
- dataType: "module" /* module */,
1131
- connection: "target",
1132
- maxConnections: 1,
1133
- hideOnCollapse: true
1134
- },
1135
- {
1136
- position: Position30.Right,
1137
- dataType: "module" /* module */,
1138
- connection: "source"
1139
- }
1140
- ]
1141
- };
1142
- };
1143
-
1144
- // src/nodes/groups/module-group-node.tsx
1145
- import { NodeContainer as NodeContainer31, NodeCollapse, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
1146
- import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
1147
- import { useCallback as useCallback15, useEffect as useEffect20, useMemo as useMemo11 } from "react";
1148
- import { shallow } from "zustand/shallow";
1149
- import { Badge, Group as Group15 } from "@mantine/core";
1150
- import {
1151
- useFlowStore,
1152
- useIncomingComputedData as useIncomingComputedData17,
1153
- useInteractiveStore,
1154
- useUpdateNodeComputedData as useUpdateNodeComputedData29
1155
- } from "@awesome-flow/core/hooks";
1156
- import { jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
1157
-
1158
- // src/abstract/node-types.ts
1159
- var noiseNodeTemplates = {
1160
- ["noise-output" /* noiseOutput */]: new NoiseOutputNodeTemplateFactory(),
1161
- ["noise-billow" /* noiseBillow */]: new NoiseBillowNodeTemplateFactory(),
1162
- ["noise-checkerboard" /* noiseCheckerboard */]: new NoiseCheckerboardNodeTemplateFactory(),
1163
- ["noise-normalize" /* noiseNormalize */]: new NoiseNormalizeNodeTemplateFactory(),
1164
- ["noise-logger" /* noiseLogger */]: new NoiseLoggerNodeTemplateFactory(),
1165
- ["noise-constant" /* noiseConst */]: new NoiseConstNodeTemplateFactory(),
1166
- ["position" /* position */]: new PositionConstNodeTemplateFactory(),
1167
- ["position-logger" /* positionLogger */]: new PositionLoggerNodeTemplateFactory(),
1168
- ["grid" /* grid */]: new PositionGridNodeTemplateFactory(),
1169
- ["texture-data" /* textureData */]: new NoiseRawTextureTemplateFactory(),
1170
- ["noise-cylinders" /* noiseCylinders */]: new NoiseCylindersNodeTemplateFactory(),
1171
- ["noise-perlin" /* noisePerlin */]: new NoisePerlinNodeTemplateFactory(),
1172
- ["noise-ridged-multi" /* noiseRidgedMulti */]: new NoiseRidgedMultiNodeTemplateFactory(),
1173
- ["noise-spheres" /* noiseSpheres */]: new NoiseSpheresNodeTemplateFactory(),
1174
- ["noise-voronoi" /* noiseVoronoi */]: new NoiseVoronoiNodeTemplateFactory(),
1175
- ["noise-combiner" /* noiseCombine */]: new NoiseCombineNodeTemplateFactory(),
1176
- ["noise-clamp" /* noiseClamp */]: new NoiseClampNodeTemplateFactory(),
1177
- ["noise-abs" /* noiseAbs */]: new NoiseAbsNodeTemplateFactory(),
1178
- ["noise-curve" /* noiseCurve */]: new NoiseCurveNodeTemplateFactory(),
1179
- ["noise-exponent" /* noiseExponent */]: new NoiseExponentNodeTemplateFactory(),
1180
- ["noise-invert" /* noiseInvert */]: new NoiseInvertNodeTemplateFactory(),
1181
- ["noise-scale-bias" /* noiseScaleBias */]: new NoiseScaleBiasNodeTemplateFactory(),
1182
- ["noise-terrace" /* noiseTerrace */]: new NoiseTerraceNodeTemplateFactory(),
1183
- ["noise-blend" /* noiseBlend */]: new NoiseBlendNodeTemplateFactory(),
1184
- ["noise-select" /* noiseSelect */]: new NoiseSelectNodeTemplateFactory(),
1185
- ["noise-displace" /* noiseDisplace */]: new NoiseDisplaceNodeTemplateFactory(),
1186
- ["noise-rotate-point" /* noiseRotatePoint */]: new NoiseRotatePointNodeTemplateFactory(),
1187
- ["noise-scale-point" /* noiseScalePoint */]: new NoiseScalePointNodeTemplateFactory(),
1188
- ["noise-translate-point" /* noiseTranslatePoint */]: new NoiseTranslatePointNodeTemplateFactory(),
1189
- ["noise-turbulence" /* noiseTurbulence */]: new NoiseTurbulenceNodeTemplateFactory(),
1190
- ["group-module" /* groupModule */]: new ModuleGroupNodeTemplateFactory()
1191
- };
1192
-
1193
- // src/templates/selectors/noise-blend-template.ts
1194
- var NoiseBlendNodeTemplateFactory = class {
1195
- template = {
1196
- type: "noise-blend" /* noiseBlend */,
1197
- group: "Noise Selectors" /* noiseSelectors */,
1198
- data: {
1199
- title: "Noise Blend"
1200
- },
1201
- handles: [
1202
- {
1203
- position: Position31.Left,
1204
- dataType: "module" /* module */,
1205
- connection: "target",
1206
- label: "Source Modules",
1207
- dataId: "source" /* source */,
1208
- maxConnections: 2,
1209
- minConnections: 2
1210
- },
1211
- {
1212
- position: Position31.Left,
1213
- dataType: "module" /* module */,
1214
- dataId: "control" /* control */,
1215
- connection: "target",
1216
- label: "Control Module",
1217
- maxConnections: 1
1218
- },
1219
- {
1220
- position: Position31.Right,
1221
- dataType: "module" /* module */,
1222
- dataId: "output" /* output */,
1223
- connection: "source"
1224
- }
1225
- ]
1226
- };
1227
- };
3
+ NoiseBlendNodeTemplateFactory,
4
+ NoiseSelectNodeTemplateFactory
5
+ } from "../../chunk-BG6U3TYO.js";
6
+ import "../../chunk-PS5VUND5.js";
7
+ import "../../chunk-DWSACR65.js";
8
+ import "../../chunk-KHIIB5TH.js";
9
+ import "../../chunk-RDQ4BOOV.js";
10
+ import "../../chunk-SGHEOOLW.js";
1228
11
  export {
1229
12
  NoiseBlendNodeTemplateFactory,
1230
13
  NoiseSelectNodeTemplateFactory