@awesome-flow/noise 0.3.0 → 0.4.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 (101) hide show
  1. package/dist/abstract/index.cjs +1405 -2078
  2. package/dist/abstract/index.cjs.map +1 -1
  3. package/dist/abstract/index.d.cts +23 -25
  4. package/dist/abstract/index.d.ts +23 -25
  5. package/dist/abstract/index.js +1315 -1996
  6. package/dist/abstract/index.js.map +1 -1
  7. package/dist/index-BungWYrh.d.cts +49 -0
  8. package/dist/index-DsQSjZC5.d.ts +49 -0
  9. package/dist/{node-props-CeZ8Oshz.d.ts → node-props-BbqbXDXn.d.cts} +2 -22
  10. package/dist/{node-props-hKW-_KOU.d.cts → node-props-BbqbXDXn.d.ts} +2 -22
  11. package/dist/nodes/generators/index.cjs +130 -380
  12. package/dist/nodes/generators/index.cjs.map +1 -1
  13. package/dist/nodes/generators/index.d.cts +2 -8
  14. package/dist/nodes/generators/index.d.ts +2 -8
  15. package/dist/nodes/generators/index.js +112 -360
  16. package/dist/nodes/generators/index.js.map +1 -1
  17. package/dist/nodes/groups/index.cjs +25 -13
  18. package/dist/nodes/groups/index.cjs.map +1 -1
  19. package/dist/nodes/groups/index.js +26 -14
  20. package/dist/nodes/groups/index.js.map +1 -1
  21. package/dist/nodes/index.cjs +1654 -988
  22. package/dist/nodes/index.cjs.map +1 -1
  23. package/dist/nodes/index.d.cts +3 -5
  24. package/dist/nodes/index.d.ts +3 -5
  25. package/dist/nodes/index.js +1622 -960
  26. package/dist/nodes/index.js.map +1 -1
  27. package/dist/nodes/modifiers/index.cjs +17 -119
  28. package/dist/nodes/modifiers/index.cjs.map +1 -1
  29. package/dist/nodes/modifiers/index.d.cts +2 -6
  30. package/dist/nodes/modifiers/index.d.ts +2 -6
  31. package/dist/nodes/modifiers/index.js +16 -124
  32. package/dist/nodes/modifiers/index.js.map +1 -1
  33. package/dist/nodes/output/index.cjs +1271 -89
  34. package/dist/nodes/output/index.cjs.map +1 -1
  35. package/dist/nodes/output/index.js +1314 -92
  36. package/dist/nodes/output/index.js.map +1 -1
  37. package/dist/nodes/selectors/index.cjs +1296 -58
  38. package/dist/nodes/selectors/index.cjs.map +1 -1
  39. package/dist/nodes/selectors/index.d.cts +1 -3
  40. package/dist/nodes/selectors/index.d.ts +1 -3
  41. package/dist/nodes/selectors/index.js +1339 -65
  42. package/dist/nodes/selectors/index.js.map +1 -1
  43. package/dist/nodes/transformers/index.cjs +67 -206
  44. package/dist/nodes/transformers/index.cjs.map +1 -1
  45. package/dist/nodes/transformers/index.d.cts +3 -5
  46. package/dist/nodes/transformers/index.d.ts +3 -5
  47. package/dist/nodes/transformers/index.js +54 -193
  48. package/dist/nodes/transformers/index.js.map +1 -1
  49. package/dist/templates/generators/index.cjs +839 -1278
  50. package/dist/templates/generators/index.cjs.map +1 -1
  51. package/dist/templates/generators/index.d.cts +13 -50
  52. package/dist/templates/generators/index.d.ts +13 -50
  53. package/dist/templates/generators/index.js +836 -1280
  54. package/dist/templates/generators/index.js.map +1 -1
  55. package/dist/templates/groups/index.cjs +837 -1272
  56. package/dist/templates/groups/index.cjs.map +1 -1
  57. package/dist/templates/groups/index.d.cts +1 -5
  58. package/dist/templates/groups/index.d.ts +1 -5
  59. package/dist/templates/groups/index.js +835 -1277
  60. package/dist/templates/groups/index.js.map +1 -1
  61. package/dist/templates/index.cjs +839 -1280
  62. package/dist/templates/index.cjs.map +1 -1
  63. package/dist/templates/index.d.cts +4 -7
  64. package/dist/templates/index.d.ts +4 -7
  65. package/dist/templates/index.js +836 -1281
  66. package/dist/templates/index.js.map +1 -1
  67. package/dist/templates/modifiers/index.cjs +841 -1278
  68. package/dist/templates/modifiers/index.cjs.map +1 -1
  69. package/dist/templates/modifiers/index.d.cts +11 -38
  70. package/dist/templates/modifiers/index.d.ts +11 -38
  71. package/dist/templates/modifiers/index.js +838 -1281
  72. package/dist/templates/modifiers/index.js.map +1 -1
  73. package/dist/templates/output/index.cjs +839 -1274
  74. package/dist/templates/output/index.cjs.map +1 -1
  75. package/dist/templates/output/index.d.cts +4 -14
  76. package/dist/templates/output/index.d.ts +4 -14
  77. package/dist/templates/output/index.js +837 -1279
  78. package/dist/templates/output/index.js.map +1 -1
  79. package/dist/templates/selectors/index.cjs +839 -1274
  80. package/dist/templates/selectors/index.cjs.map +1 -1
  81. package/dist/templates/selectors/index.d.cts +3 -9
  82. package/dist/templates/selectors/index.d.ts +3 -9
  83. package/dist/templates/selectors/index.js +837 -1279
  84. package/dist/templates/selectors/index.js.map +1 -1
  85. package/dist/templates/transformers/index.cjs +839 -1274
  86. package/dist/templates/transformers/index.cjs.map +1 -1
  87. package/dist/templates/transformers/index.d.cts +3 -36
  88. package/dist/templates/transformers/index.d.ts +3 -36
  89. package/dist/templates/transformers/index.js +837 -1279
  90. package/dist/templates/transformers/index.js.map +1 -1
  91. package/package.json +3 -3
  92. package/dist/handle-types-D-v5S53h.d.cts +0 -22
  93. package/dist/handle-types-D-v5S53h.d.ts +0 -22
  94. package/dist/layout/index.cjs +0 -164
  95. package/dist/layout/index.cjs.map +0 -1
  96. package/dist/layout/index.d.cts +0 -26
  97. package/dist/layout/index.d.ts +0 -26
  98. package/dist/layout/index.js +0 -136
  99. package/dist/layout/index.js.map +0 -1
  100. package/dist/properties-BxwtU6i9.d.cts +0 -9
  101. package/dist/properties-BxwtU6i9.d.ts +0 -9
@@ -1,6 +1,7 @@
1
1
  // src/templates/generators/noise-billow-template.ts
2
- import { IDGenerator as IDGenerator35 } from "@awesome-flow/core/utils";
3
- import { Position as Position35 } from "@xyflow/system";
2
+ import { CoreHandleType as CoreHandleType9 } from "@awesome-flow/core/abstract";
3
+ import { IDGenerator as IDGenerator3 } from "@awesome-flow/core/utils";
4
+ import { Position as Position32 } from "@xyflow/system";
4
5
 
5
6
  // src/nodes/generators/noise-simplex-node.tsx
6
7
  import { NodeContainer } from "@awesome-flow/core/layout";
@@ -54,101 +55,87 @@ import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
54
55
 
55
56
  // src/nodes/generators/noise-billow-node.tsx
56
57
  import { NodeContainer as NodeContainer6, NodeTrackConnections as NodeTrackConnections2 } from "@awesome-flow/core/layout";
57
- import { useCallback as useCallback2, useMemo as useMemo4 } from "react";
58
+ import { useCallback, useMemo as useMemo3 } from "react";
58
59
  import { Billow } from "libnoise-ts/module/generator";
59
60
  import { useUpdateNodeComputedData as useUpdateNodeComputedData6 } from "@awesome-flow/core/hooks";
60
- import { nodeDataPropertyExcept as nodeDataPropertyExcept2 } from "@awesome-flow/core/abstract";
61
-
62
- // src/layout/node-property-variables.tsx
63
- import { useIncomingNodeData, useUpdateNodeData as useUpdateNodeData5 } from "@awesome-flow/core/hooks";
64
- import { useCallback, useEffect as useEffect6, useMemo as useMemo3, useState as useState5 } from "react";
65
- import { Group as Group5, Stack as Stack5 } from "@mantine/core";
66
- import { getObjectKeys } from "@awesome-flow/core/utils";
67
- import { nodeDataPropertyExcept } from "@awesome-flow/core/abstract";
68
-
69
- // src/layout/node-value-input.tsx
70
- import { Input, NumberInput as NumberInput5, Switch } from "@mantine/core";
71
- import { Fragment, jsx as jsx6 } from "react/jsx-runtime";
72
-
73
- // src/layout/node-property-input.tsx
74
- import { Fragment as Fragment2, jsx as jsx7 } from "react/jsx-runtime";
75
-
76
- // src/layout/node-property-variables.tsx
77
- import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
78
-
79
- // src/nodes/generators/noise-billow-node.tsx
80
- import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
61
+ import { NodePropertyVariables } from "@awesome-flow/core/components";
62
+ import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
81
63
 
82
64
  // src/nodes/output/noise-logger-node.tsx
83
65
  import { NodeContainer as NodeContainer7, NodeTrackConnections as NodeTrackConnections3 } from "@awesome-flow/core/layout";
84
- import { useMemo as useMemo5 } from "react";
85
- import { Divider, Stack as Stack6, Text } from "@mantine/core";
66
+ import { useMemo as useMemo4 } from "react";
67
+ import { Divider, Stack as Stack5, Text } from "@mantine/core";
86
68
  import { useIncomingComputedData as useIncomingComputedData2 } from "@awesome-flow/core/hooks";
87
- import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
69
+ import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
88
70
 
89
71
  // src/nodes/output/noise-raw-texture-node.tsx
90
72
  import { NodeContainer as NodeContainer8, NodeTrackConnections as NodeTrackConnections4 } from "@awesome-flow/core/layout";
91
- import { useEffect as useEffect7, useMemo as useMemo6, useState as useState6 } from "react";
73
+ import { useEffect as useEffect6, useMemo as useMemo5, useState as useState5 } from "react";
92
74
  import { useIncomingComputedData as useIncomingComputedData3, useUpdateNodeComputedData as useUpdateNodeComputedData7 } from "@awesome-flow/core/hooks";
93
- import { Group as Group6, Stack as Stack7 } from "@mantine/core";
94
- import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
75
+ import { Group as Group5, Stack as Stack6 } from "@mantine/core";
76
+ import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
95
77
 
96
78
  // src/nodes/generators/noise-checkerboard-node.tsx
97
79
  import { NodeContainer as NodeContainer9 } from "@awesome-flow/core/layout";
98
- import { useEffect as useEffect8, useMemo as useMemo7 } from "react";
80
+ import { useEffect as useEffect7, useMemo as useMemo6 } from "react";
99
81
  import { Checkerboard } from "libnoise-ts/module/generator";
100
82
  import { useUpdateNodeComputedData as useUpdateNodeComputedData8 } from "@awesome-flow/core/hooks";
101
- import { jsx as jsx12 } from "react/jsx-runtime";
83
+ import { jsx as jsx9 } from "react/jsx-runtime";
102
84
 
103
85
  // src/nodes/output/positions-logger-node.tsx
104
86
  import { NodeContainer as NodeContainer10, NodeTrackConnections as NodeTrackConnections5 } from "@awesome-flow/core/layout";
105
- import { useMemo as useMemo8 } from "react";
106
- import { Divider as Divider2, Stack as Stack8, Text as Text2 } from "@mantine/core";
87
+ import { useMemo as useMemo7 } from "react";
88
+ import { Divider as Divider2, Stack as Stack7, Text as Text2 } from "@mantine/core";
107
89
  import { useIncomingComputedData as useIncomingComputedData4 } from "@awesome-flow/core/hooks";
108
- import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
90
+ import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
109
91
 
110
92
  // src/nodes/generators/noise-cylinders-node.tsx
111
93
  import { NodeContainer as NodeContainer11, NodeTrackConnections as NodeTrackConnections6 } from "@awesome-flow/core/layout";
112
- import { useCallback as useCallback3, useMemo as useMemo9 } from "react";
94
+ import { useCallback as useCallback2, useMemo as useMemo8 } from "react";
113
95
  import { Cylinders } from "libnoise-ts/module/generator";
114
96
  import { useUpdateNodeComputedData as useUpdateNodeComputedData9 } from "@awesome-flow/core/hooks";
115
- import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
97
+ import { NodePropertyVariables as NodePropertyVariables2 } from "@awesome-flow/core/components";
98
+ import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
116
99
 
117
100
  // src/nodes/generators/noise-perlin-node.tsx
118
101
  import { NodeContainer as NodeContainer12, NodeTrackConnections as NodeTrackConnections7 } from "@awesome-flow/core/layout";
119
- import { useCallback as useCallback4, useMemo as useMemo10 } from "react";
102
+ import { useCallback as useCallback3, useMemo as useMemo9 } from "react";
120
103
  import { Perlin } from "libnoise-ts/module/generator";
121
104
  import { useUpdateNodeComputedData as useUpdateNodeComputedData10 } from "@awesome-flow/core/hooks";
122
- import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
105
+ import { NodePropertyVariables as NodePropertyVariables3 } from "@awesome-flow/core/components";
106
+ import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
123
107
 
124
108
  // src/nodes/generators/noise-ridgedmulti-node.tsx
125
109
  import { NodeContainer as NodeContainer13, NodeTrackConnections as NodeTrackConnections8 } from "@awesome-flow/core/layout";
126
- import { useCallback as useCallback5, useMemo as useMemo11 } from "react";
110
+ import { useCallback as useCallback4, useMemo as useMemo10 } from "react";
127
111
  import { RidgedMulti } from "libnoise-ts/module/generator";
128
112
  import { useUpdateNodeComputedData as useUpdateNodeComputedData11 } from "@awesome-flow/core/hooks";
129
- import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
113
+ import { NodePropertyVariables as NodePropertyVariables4 } from "@awesome-flow/core/components";
114
+ import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
130
115
 
131
116
  // src/nodes/generators/noise-spheres-node.tsx
132
117
  import { NodeContainer as NodeContainer14, NodeTrackConnections as NodeTrackConnections9 } from "@awesome-flow/core/layout";
133
- import { useCallback as useCallback6, useMemo as useMemo12 } from "react";
118
+ import { useCallback as useCallback5, useMemo as useMemo11 } from "react";
134
119
  import { Spheres } from "libnoise-ts/module/generator";
135
120
  import { useUpdateNodeComputedData as useUpdateNodeComputedData12 } from "@awesome-flow/core/hooks";
136
- import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
121
+ import { NodePropertyVariables as NodePropertyVariables5 } from "@awesome-flow/core/components";
122
+ import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
137
123
 
138
124
  // src/nodes/generators/noise-voronoi-node.tsx
139
125
  import { NodeContainer as NodeContainer15, NodeTrackConnections as NodeTrackConnections10 } from "@awesome-flow/core/layout";
140
- import { useCallback as useCallback7 } from "react";
126
+ import { useCallback as useCallback6 } from "react";
141
127
  import { Voronoi } from "libnoise-ts/module/generator";
142
128
  import { useUpdateNodeComputedData as useUpdateNodeComputedData13 } from "@awesome-flow/core/hooks";
143
- import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
129
+ import { NodePropertyVariables as NodePropertyVariables6 } from "@awesome-flow/core/components";
130
+ import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
144
131
 
145
132
  // src/nodes/modifiers/noise-combine-node.tsx
146
133
  import { NodeCombobox, NodeContainer as NodeContainer16, NodeTrackConnections as NodeTrackConnections11 } from "@awesome-flow/core/layout";
147
- import { useCallback as useCallback8, useEffect as useEffect9 } from "react";
134
+ import { useCallback as useCallback7, useEffect as useEffect8 } from "react";
148
135
  import {
149
136
  useIncomingComputedData as useIncomingComputedData5,
150
137
  useUpdateNodeComputedData as useUpdateNodeComputedData14,
151
- useUpdateNodeData as useUpdateNodeData6
138
+ useUpdateNodeData as useUpdateNodeData5
152
139
  } from "@awesome-flow/core/hooks";
153
140
  import {
154
141
  IconAsterisk,
@@ -162,1474 +149,1056 @@ import {
162
149
  import { Add, Max, Min, Multiply, Power } from "libnoise-ts/module/combiner";
163
150
 
164
151
  // src/nodes/modifiers/noise-combine-node.tsx
165
- import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
152
+ import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
166
153
 
167
154
  // src/nodes/modifiers/noise-clamp-node.tsx
168
155
  import { NodeContainer as NodeContainer17, NodeTrackConnections as NodeTrackConnections12 } from "@awesome-flow/core/layout";
169
- import { useEffect as useEffect10, useState as useState7 } from "react";
170
- import { Group as Group7, NumberInput as NumberInput6, Stack as Stack9 } from "@mantine/core";
156
+ import { useEffect as useEffect9, useState as useState6 } from "react";
157
+ import { Group as Group6, NumberInput as NumberInput5, Stack as Stack8 } from "@mantine/core";
171
158
  import {
172
159
  useIncomingComputedData as useIncomingComputedData6,
173
160
  useUpdateNodeComputedData as useUpdateNodeComputedData15,
174
- useUpdateNodeData as useUpdateNodeData7
161
+ useUpdateNodeData as useUpdateNodeData6
175
162
  } from "@awesome-flow/core/hooks";
176
163
  import { Clamp } from "libnoise-ts/module/modifier";
177
- import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
164
+ import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
178
165
 
179
166
  // src/nodes/modifiers/noise-abs-node.tsx
180
167
  import { NodeContainer as NodeContainer18, NodeTrackConnections as NodeTrackConnections13 } from "@awesome-flow/core/layout";
181
- import { useEffect as useEffect11 } from "react";
168
+ import { useEffect as useEffect10 } from "react";
182
169
  import { useIncomingComputedData as useIncomingComputedData7, useUpdateNodeComputedData as useUpdateNodeComputedData16 } from "@awesome-flow/core/hooks";
183
170
  import { Abs } from "libnoise-ts/module/modifier";
184
- import { jsx as jsx21 } from "react/jsx-runtime";
171
+ import { jsx as jsx18 } from "react/jsx-runtime";
185
172
 
186
173
  // src/nodes/output/noise-output-node.tsx
187
174
  import { NodeContainer as NodeContainer19, NodeTrackConnections as NodeTrackConnections14 } from "@awesome-flow/core/layout";
188
- import { useIncomingComputedData as useIncomingComputedData8, useUpdateNodeComputedData as useUpdateNodeComputedData17 } from "@awesome-flow/core/hooks";
189
- import { Box, Group as Group8, LoadingOverlay, Stack as Stack10 } from "@mantine/core";
190
- import { useEffect as useEffect12, useState as useState8 } from "react";
191
- import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
175
+ import { useCallback as useCallback8, useState as useState7 } from "react";
176
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData17 } from "@awesome-flow/core/hooks";
177
+ import { HandlesIncomingDataStatus } from "@awesome-flow/core/components";
178
+ import { Text as Text3 } from "@mantine/core";
179
+ import { jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
192
180
 
193
181
  // src/nodes/modifiers/noise-curve-node.tsx
194
182
  import { NodeContainer as NodeContainer20, NodeTrackConnections as NodeTrackConnections15 } from "@awesome-flow/core/layout";
195
- import { ActionIcon, Button, Group as Group9, NumberInput as NumberInput7, Space } from "@mantine/core";
183
+ import { ActionIcon, Button, Group as Group7, NumberInput as NumberInput6, Space } from "@mantine/core";
196
184
  import {
197
- useIncomingComputedData as useIncomingComputedData9,
185
+ useIncomingComputedData as useIncomingComputedData8,
198
186
  useUpdateNodeComputedData as useUpdateNodeComputedData18,
199
- useUpdateNodeData as useUpdateNodeData8
187
+ useUpdateNodeData as useUpdateNodeData7
200
188
  } from "@awesome-flow/core/hooks";
201
- import { useCallback as useCallback9, useEffect as useEffect13, useState as useState9 } from "react";
189
+ import { useCallback as useCallback9, useEffect as useEffect11, useState as useState8 } from "react";
202
190
  import { Curve } from "libnoise-ts/module/modifier";
203
191
  import { Tuple } from "libnoise-ts/util";
204
192
  import { IconX } from "@tabler/icons-react";
205
193
  import { randomId } from "@mantine/hooks";
206
194
  import { NodeState } from "@awesome-flow/core/abstract";
207
- import { Fragment as Fragment3, jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
195
+ import { Fragment, jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
208
196
 
209
197
  // src/nodes/modifiers/noise-exponent-node.tsx
210
198
  import { NodeContainer as NodeContainer21, NodeTrackConnections as NodeTrackConnections16 } from "@awesome-flow/core/layout";
211
- import { useEffect as useEffect14, useState as useState10 } from "react";
212
- import { Group as Group10, NumberInput as NumberInput8, Stack as Stack11 } from "@mantine/core";
199
+ import { useEffect as useEffect12, useState as useState9 } from "react";
200
+ import { Group as Group8, NumberInput as NumberInput7, Stack as Stack9 } from "@mantine/core";
213
201
  import {
214
- useIncomingComputedData as useIncomingComputedData10,
202
+ useIncomingComputedData as useIncomingComputedData9,
215
203
  useUpdateNodeComputedData as useUpdateNodeComputedData19,
216
- useUpdateNodeData as useUpdateNodeData9
204
+ useUpdateNodeData as useUpdateNodeData8
217
205
  } from "@awesome-flow/core/hooks";
218
206
  import { Exponent } from "libnoise-ts/module/modifier";
219
- import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
207
+ import { jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
220
208
 
221
209
  // src/nodes/modifiers/noise-invert-node.tsx
222
210
  import { NodeContainer as NodeContainer22, NodeTrackConnections as NodeTrackConnections17 } from "@awesome-flow/core/layout";
223
- import { useEffect as useEffect15 } from "react";
224
- import { useIncomingComputedData as useIncomingComputedData11, useUpdateNodeComputedData as useUpdateNodeComputedData20 } from "@awesome-flow/core/hooks";
211
+ import { useEffect as useEffect13 } from "react";
212
+ import { useIncomingComputedData as useIncomingComputedData10, useUpdateNodeComputedData as useUpdateNodeComputedData20 } from "@awesome-flow/core/hooks";
225
213
  import { Invert } from "libnoise-ts/module/modifier";
226
- import { jsx as jsx25 } from "react/jsx-runtime";
214
+ import { jsx as jsx22 } from "react/jsx-runtime";
227
215
 
228
216
  // src/nodes/modifiers/noise-scale-bias-node.tsx
229
217
  import { NodeContainer as NodeContainer23, NodeTrackConnections as NodeTrackConnections18 } from "@awesome-flow/core/layout";
230
- import { useEffect as useEffect16, useState as useState11 } from "react";
231
- import { Group as Group11, NumberInput as NumberInput9, Stack as Stack12 } from "@mantine/core";
218
+ import { useEffect as useEffect14, useState as useState10 } from "react";
219
+ import { Group as Group9, NumberInput as NumberInput8, Stack as Stack10 } from "@mantine/core";
232
220
  import {
233
- useIncomingComputedData as useIncomingComputedData12,
221
+ useIncomingComputedData as useIncomingComputedData11,
234
222
  useUpdateNodeComputedData as useUpdateNodeComputedData21,
235
- useUpdateNodeData as useUpdateNodeData10
223
+ useUpdateNodeData as useUpdateNodeData9
236
224
  } from "@awesome-flow/core/hooks";
237
225
  import { ScaleBias } from "libnoise-ts/module/modifier";
238
- import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
226
+ import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
239
227
 
240
228
  // src/nodes/modifiers/noise-terrace-node.tsx
241
229
  import { NodeContainer as NodeContainer24, NodeTrackConnections as NodeTrackConnections19 } from "@awesome-flow/core/layout";
242
- import { ActionIcon as ActionIcon2, Button as Button2, Group as Group12, NumberInput as NumberInput10, Space as Space2 } from "@mantine/core";
230
+ import { ActionIcon as ActionIcon2, Button as Button2, Group as Group10, NumberInput as NumberInput9, Space as Space2 } from "@mantine/core";
243
231
  import {
244
- useIncomingComputedData as useIncomingComputedData13,
232
+ useIncomingComputedData as useIncomingComputedData12,
245
233
  useUpdateNodeComputedData as useUpdateNodeComputedData22,
246
- useUpdateNodeData as useUpdateNodeData11
234
+ useUpdateNodeData as useUpdateNodeData10
247
235
  } from "@awesome-flow/core/hooks";
248
- import { useCallback as useCallback10, useEffect as useEffect17, useState as useState12 } from "react";
236
+ import { useCallback as useCallback10, useEffect as useEffect15, useState as useState11 } from "react";
249
237
  import { Terrace } from "libnoise-ts/module/modifier";
250
238
  import { IconX as IconX2 } from "@tabler/icons-react";
251
239
  import { randomId as randomId2 } from "@mantine/hooks";
252
240
  import { NodeState as NodeState2 } from "@awesome-flow/core/abstract";
253
- import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
241
+ import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
254
242
 
255
243
  // src/nodes/selectors/noise-blend-node.tsx
256
244
  import { NodeContainer as NodeContainer25, NodeTrackConnections as NodeTrackConnections20 } from "@awesome-flow/core/layout";
257
- import { useEffect as useEffect18 } from "react";
258
- import { useIncomingComputedData as useIncomingComputedData14, useUpdateNodeComputedData as useUpdateNodeComputedData23 } from "@awesome-flow/core/hooks";
245
+ import { useCallback as useCallback11 } from "react";
246
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData23 } from "@awesome-flow/core/hooks";
259
247
  import { Blend } from "libnoise-ts/module/selector";
260
- import { Group as Group13 } from "@mantine/core";
261
- import { jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
248
+ import { HandlesIncomingDataStatus as HandlesIncomingDataStatus2 } from "@awesome-flow/core/components";
249
+ import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
262
250
 
263
251
  // src/nodes/selectors/noise-select-node.tsx
264
252
  import { NodeContainer as NodeContainer26, NodeTrackConnections as NodeTrackConnections21 } from "@awesome-flow/core/layout";
265
- import { useEffect as useEffect19, useState as useState13 } from "react";
266
- import {
267
- useIncomingComputedData as useIncomingComputedData15,
268
- useUpdateNodeComputedData as useUpdateNodeComputedData24,
269
- useUpdateNodeData as useUpdateNodeData12
270
- } from "@awesome-flow/core/hooks";
253
+ import { useCallback as useCallback12, useEffect as useEffect16, useState as useState12 } from "react";
254
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData24, useUpdateNodeData as useUpdateNodeData11 } from "@awesome-flow/core/hooks";
271
255
  import { Select } from "libnoise-ts/module/selector";
272
- import { Group as Group14, NumberInput as NumberInput11, Stack as Stack13 } from "@mantine/core";
273
- import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
256
+ import { Group as Group11, NumberInput as NumberInput10, Stack as Stack11 } from "@mantine/core";
257
+ import { HandlesIncomingDataStatus as HandlesIncomingDataStatus3 } from "@awesome-flow/core/components";
258
+ import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
274
259
 
275
260
  // src/nodes/transformers/noise-displace-node.tsx
276
261
  import { NodeContainer as NodeContainer27, NodeTrackConnections as NodeTrackConnections22 } from "@awesome-flow/core/layout";
277
- import { useEffect as useEffect20, useMemo as useMemo13 } from "react";
278
- import { useIncomingHandleData, useUpdateNodeComputedData as useUpdateNodeComputedData25 } from "@awesome-flow/core/hooks";
262
+ import { useCallback as useCallback13 } from "react";
263
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData25 } from "@awesome-flow/core/hooks";
279
264
  import { Displace } from "libnoise-ts/module/transformer";
280
- import { Badge, Stack as Stack14 } from "@mantine/core";
281
- import { jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
265
+ import { HandlesIncomingDataStatus as HandlesIncomingDataStatus4 } from "@awesome-flow/core/components";
266
+ import { jsx as jsx27, jsxs as jsxs23 } from "react/jsx-runtime";
282
267
 
283
268
  // src/nodes/transformers/noise-rotate-point-node.tsx
284
269
  import { NodeContainer as NodeContainer28, NodeTrackConnections as NodeTrackConnections23 } from "@awesome-flow/core/layout";
285
- import { useEffect as useEffect21, useState as useState14 } from "react";
270
+ import { useEffect as useEffect17, useState as useState13 } from "react";
286
271
  import {
287
- useIncomingComputedData as useIncomingComputedData16,
272
+ useIncomingComputedData as useIncomingComputedData13,
288
273
  useUpdateNodeComputedData as useUpdateNodeComputedData26,
289
- useUpdateNodeData as useUpdateNodeData13
274
+ useUpdateNodeData as useUpdateNodeData12
290
275
  } from "@awesome-flow/core/hooks";
291
- import { Group as Group15, NumberInput as NumberInput12, Stack as Stack15 } from "@mantine/core";
276
+ import { Group as Group12, NumberInput as NumberInput11, Stack as Stack12 } from "@mantine/core";
292
277
  import { RotatePoint } from "libnoise-ts/module/transformer";
293
- import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
278
+ import { jsx as jsx28, jsxs as jsxs24 } from "react/jsx-runtime";
294
279
 
295
280
  // src/nodes/transformers/noise-scale-point-node.tsx
296
281
  import { NodeContainer as NodeContainer29, NodeTrackConnections as NodeTrackConnections24 } from "@awesome-flow/core/layout";
297
- import { useEffect as useEffect22, useState as useState15 } from "react";
282
+ import { useEffect as useEffect18, useState as useState14 } from "react";
298
283
  import {
299
- useIncomingComputedData as useIncomingComputedData17,
284
+ useIncomingComputedData as useIncomingComputedData14,
300
285
  useUpdateNodeComputedData as useUpdateNodeComputedData27,
301
- useUpdateNodeData as useUpdateNodeData14
286
+ useUpdateNodeData as useUpdateNodeData13
302
287
  } from "@awesome-flow/core/hooks";
303
- import { Group as Group16, NumberInput as NumberInput13, Stack as Stack16 } from "@mantine/core";
288
+ import { Group as Group13, NumberInput as NumberInput12, Stack as Stack13 } from "@mantine/core";
304
289
  import { ScalePoint } from "libnoise-ts/module/transformer";
305
- import { jsx as jsx32, jsxs as jsxs26 } from "react/jsx-runtime";
290
+ import { jsx as jsx29, jsxs as jsxs25 } from "react/jsx-runtime";
306
291
 
307
292
  // src/nodes/transformers/noise-translate-point-node.tsx
308
293
  import { NodeContainer as NodeContainer30, NodeTrackConnections as NodeTrackConnections25 } from "@awesome-flow/core/layout";
309
- import { useEffect as useEffect23, useState as useState16 } from "react";
294
+ import { useEffect as useEffect19, useState as useState15 } from "react";
310
295
  import {
311
- useIncomingComputedData as useIncomingComputedData18,
296
+ useIncomingComputedData as useIncomingComputedData15,
312
297
  useUpdateNodeComputedData as useUpdateNodeComputedData28,
313
- useUpdateNodeData as useUpdateNodeData15
298
+ useUpdateNodeData as useUpdateNodeData14
314
299
  } from "@awesome-flow/core/hooks";
315
- import { Group as Group17, NumberInput as NumberInput14, Stack as Stack17 } from "@mantine/core";
300
+ import { Group as Group14, NumberInput as NumberInput13, Stack as Stack14 } from "@mantine/core";
316
301
  import { TranslatePoint } from "libnoise-ts/module/transformer";
317
- import { jsx as jsx33, jsxs as jsxs27 } from "react/jsx-runtime";
302
+ import { jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
318
303
 
319
304
  // src/nodes/transformers/noise-turbulence-node .tsx
320
305
  import { NodeContainer as NodeContainer31, NodeTrackConnections as NodeTrackConnections26 } from "@awesome-flow/core/layout";
321
- import { useCallback as useCallback11, useEffect as useEffect24, useState as useState17 } from "react";
322
- import { useIncomingComputedData as useIncomingComputedData19, useUpdateNodeComputedData as useUpdateNodeComputedData29 } from "@awesome-flow/core/hooks";
306
+ import { useCallback as useCallback14, useEffect as useEffect20, useState as useState16 } from "react";
307
+ import { useIncomingComputedData as useIncomingComputedData16, useUpdateNodeComputedData as useUpdateNodeComputedData29 } from "@awesome-flow/core/hooks";
323
308
  import { Turbulence } from "libnoise-ts/module/transformer";
324
- import { jsx as jsx34, jsxs as jsxs28 } from "react/jsx-runtime";
325
-
326
- // src/nodes/generators/variable-property-node.tsx
327
- import { NodeCombobox as NodeCombobox2, NodeContainer as NodeContainer32, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
328
- import { useCallback as useCallback12, useEffect as useEffect25, useState as useState18 } from "react";
329
- import { Stack as Stack18 } from "@mantine/core";
330
- import { useIncomingNodeData as useIncomingNodeData2, useOutgoingNodes, useUpdateNodeData as useUpdateNodeData16 } from "@awesome-flow/core/hooks";
331
- import { getObjectPropertyMap } from "@awesome-flow/core/utils";
332
- import { nodeDataPropertyExcept as nodeDataPropertyExcept3 } from "@awesome-flow/core/abstract";
333
- import { jsx as jsx35, jsxs as jsxs29 } from "react/jsx-runtime";
334
-
335
- // src/nodes/modifiers/variable-combine-node.tsx
336
- import { NodeCombobox as NodeCombobox3, NodeContainer as NodeContainer33, NodeTrackConnections as NodeTrackConnections28 } from "@awesome-flow/core/layout";
337
- import { useCallback as useCallback13, useEffect as useEffect26, useState as useState19 } from "react";
338
- import { useIncomingNodeData as useIncomingNodeData3, useUpdateNodeData as useUpdateNodeData17 } from "@awesome-flow/core/hooks";
339
- import {
340
- IconAsterisk as IconAsterisk2,
341
- IconChevronLeft as IconChevronLeft2,
342
- IconChevronRight as IconChevronRight2,
343
- IconChevronUp as IconChevronUp2,
344
- IconDivide,
345
- IconPlus as IconPlus2
346
- } from "@tabler/icons-react";
347
- import { jsx as jsx36, jsxs as jsxs30 } from "react/jsx-runtime";
348
-
349
- // src/nodes/generators/variable-value-node.tsx
350
- import { NodeContainer as NodeContainer34, NodeTrackConnections as NodeTrackConnections29 } from "@awesome-flow/core/layout";
351
- import { useCallback as useCallback14, useState as useState20 } from "react";
352
- import { useUpdateNodeData as useUpdateNodeData18 } from "@awesome-flow/core/hooks";
353
- import { jsx as jsx37, jsxs as jsxs31 } from "react/jsx-runtime";
354
-
355
- // src/nodes/groups/node-module-group.tsx
356
- import { NodeContainer as NodeContainer35, NodeCollapse } from "@awesome-flow/core/layout";
357
- import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
358
- import { FlowContext } from "@awesome-flow/core/abstract";
359
- import { useCallback as useCallback15, useContext, useEffect as useEffect27, useMemo as useMemo14 } from "react";
360
- import { shallow } from "zustand/shallow";
361
- import { Badge as Badge2, Group as Group18 } from "@mantine/core";
362
- import { jsx as jsx38, jsxs as jsxs32 } from "react/jsx-runtime";
309
+ import { NodePropertyVariables as NodePropertyVariables7 } from "@awesome-flow/core/components";
310
+ import { jsx as jsx31, jsxs as jsxs27 } from "react/jsx-runtime";
363
311
 
364
312
  // src/templates/generators/noise-checkerboard-template.ts
365
- import { IDGenerator } from "@awesome-flow/core/utils";
366
313
  import { Position } from "@xyflow/system";
367
314
  var NoiseCheckerboardNodeTemplateFactory = class {
368
- create() {
369
- return {
370
- id: IDGenerator.template(),
371
- type: "noise-checkerboard" /* noiseCheckerboard */,
372
- removable: false,
373
- data: {
374
- title: "Checkerboard Noise"
375
- },
376
- handles: [
377
- {
378
- position: Position.Right,
379
- dataType: 8 /* module */,
380
- connection: "source"
381
- }
382
- ]
383
- };
384
- }
385
- isHandleAllowed(type) {
386
- return type === "source";
387
- }
388
- getHandleAllowedDataType() {
389
- return 8 /* module */;
390
- }
315
+ template = {
316
+ type: "noise-checkerboard" /* noiseCheckerboard */,
317
+ group: "Noise Generators" /* noiseGenerators */,
318
+ data: {
319
+ title: "Checkerboard Noise"
320
+ },
321
+ handles: [
322
+ {
323
+ position: Position.Right,
324
+ dataType: "module" /* module */,
325
+ connection: "source"
326
+ }
327
+ ]
328
+ };
391
329
  };
392
330
 
393
331
  // src/templates/generators/noise-const-template.ts
394
- import { IDGenerator as IDGenerator2 } from "@awesome-flow/core/utils";
395
332
  import { Position as Position2 } from "@xyflow/system";
396
333
  var NoiseConstNodeTemplateFactory = class {
397
- create() {
398
- return {
399
- id: IDGenerator2.template(),
400
- type: "noise-constant" /* noiseConst */,
401
- removable: false,
402
- data: {
403
- title: "Const Value Noise",
404
- noise: 0,
405
- min: -1,
406
- max: 1
407
- },
408
- handles: [
409
- {
410
- position: Position2.Right,
411
- dataType: 8 /* module */,
412
- connection: "source"
413
- }
414
- ]
415
- };
416
- }
417
- isHandleAllowed(type) {
418
- return type === "source";
419
- }
420
- getHandleAllowedDataType(type) {
421
- return 8 /* module */;
422
- }
334
+ template = {
335
+ type: "noise-constant" /* noiseConst */,
336
+ group: "Noise Generators" /* noiseGenerators */,
337
+ data: {
338
+ title: "Const Value Noise",
339
+ noise: 0,
340
+ min: -1,
341
+ max: 1
342
+ },
343
+ handles: [
344
+ {
345
+ position: Position2.Right,
346
+ dataType: "module" /* module */,
347
+ connection: "source"
348
+ }
349
+ ]
350
+ };
423
351
  };
424
352
 
425
353
  // src/templates/generators/noise-cylinders-template.ts
426
- import { IDGenerator as IDGenerator3 } from "@awesome-flow/core/utils";
354
+ import { CoreHandleType } from "@awesome-flow/core/abstract";
427
355
  import { Position as Position3 } from "@xyflow/system";
428
356
  var NoiseCylindersNodeTemplateFactory = class {
429
- create() {
430
- return {
431
- id: IDGenerator3.template(),
432
- type: "noise-cylinders" /* noiseCylinders */,
433
- removable: false,
434
- data: {
435
- title: "Cylinders Noise",
436
- frequency: 0.1
357
+ template = {
358
+ type: "noise-cylinders" /* noiseCylinders */,
359
+ group: "Noise Generators" /* noiseGenerators */,
360
+ data: {
361
+ title: "Cylinders Noise",
362
+ frequency: 0.1
363
+ },
364
+ handles: [
365
+ {
366
+ position: Position3.Left,
367
+ dataType: CoreHandleType.variableProperty,
368
+ connection: "target"
437
369
  },
438
- handles: [
439
- {
440
- position: Position3.Left,
441
- dataType: 16 /* variableProperty */,
442
- connection: "target"
443
- },
444
- {
445
- position: Position3.Right,
446
- dataType: 8 /* module */,
447
- connection: "source"
448
- }
449
- ]
450
- };
451
- }
452
- isHandleAllowed(type) {
453
- return type === "source";
454
- }
455
- getHandleAllowedDataType() {
456
- return 8 /* module */;
457
- }
370
+ {
371
+ position: Position3.Right,
372
+ dataType: "module" /* module */,
373
+ connection: "source"
374
+ }
375
+ ]
376
+ };
458
377
  };
459
378
 
460
379
  // src/templates/generators/noise-perlin-template.ts
461
- import { IDGenerator as IDGenerator4 } from "@awesome-flow/core/utils";
380
+ import { CoreHandleType as CoreHandleType2 } from "@awesome-flow/core/abstract";
462
381
  import { Position as Position4 } from "@xyflow/system";
463
382
  var NoisePerlinNodeTemplateFactory = class {
464
- create() {
465
- return {
466
- id: IDGenerator4.template(),
467
- type: "noise-perlin" /* noisePerlin */,
468
- removable: false,
469
- data: {
470
- title: "Perlin Noise",
471
- frequency: 0.1,
472
- lacunarity: 2,
473
- octaves: 5,
474
- persistence: 0.5,
475
- seed: 0
383
+ template = {
384
+ type: "noise-perlin" /* noisePerlin */,
385
+ group: "Noise Generators" /* noiseGenerators */,
386
+ data: {
387
+ title: "Perlin Noise",
388
+ frequency: 0.1,
389
+ lacunarity: 2,
390
+ octaves: 5,
391
+ persistence: 0.5,
392
+ seed: 0
393
+ },
394
+ handles: [
395
+ {
396
+ position: Position4.Left,
397
+ dataType: CoreHandleType2.variableProperty,
398
+ connection: "target"
476
399
  },
477
- handles: [
478
- {
479
- position: Position4.Left,
480
- dataType: 16 /* variableProperty */,
481
- connection: "target"
482
- },
483
- {
484
- position: Position4.Right,
485
- dataType: 8 /* module */,
486
- connection: "source"
487
- }
488
- ]
489
- };
490
- }
491
- isHandleAllowed(type) {
492
- return type === "source";
493
- }
494
- getHandleAllowedDataType() {
495
- return 8 /* module */;
496
- }
400
+ {
401
+ position: Position4.Right,
402
+ dataType: "module" /* module */,
403
+ connection: "source"
404
+ }
405
+ ]
406
+ };
497
407
  };
498
408
 
499
409
  // src/templates/generators/noise-ridgedmulti-template.ts
500
- import { IDGenerator as IDGenerator5 } from "@awesome-flow/core/utils";
410
+ import { CoreHandleType as CoreHandleType3 } from "@awesome-flow/core/abstract";
501
411
  import { Position as Position5 } from "@xyflow/system";
502
412
  var NoiseRidgedMultiNodeTemplateFactory = class {
503
- create() {
504
- return {
505
- id: IDGenerator5.template(),
506
- type: "noise-ridged-multi" /* noiseRidgedMulti */,
507
- removable: false,
508
- data: {
509
- title: "Ridged Multi Noise",
510
- frequency: 0.1,
511
- lacunarity: 2,
512
- octaves: 6,
513
- offset: 1,
514
- gain: 2,
515
- seed: 0
413
+ template = {
414
+ type: "noise-ridged-multi" /* noiseRidgedMulti */,
415
+ group: "Noise Generators" /* noiseGenerators */,
416
+ data: {
417
+ title: "Ridged Multi Noise",
418
+ frequency: 0.1,
419
+ lacunarity: 2,
420
+ octaves: 6,
421
+ offset: 1,
422
+ gain: 2,
423
+ seed: 0
424
+ },
425
+ handles: [
426
+ {
427
+ position: Position5.Left,
428
+ dataType: CoreHandleType3.variableProperty,
429
+ connection: "target"
516
430
  },
517
- handles: [
518
- {
519
- position: Position5.Left,
520
- dataType: 16 /* variableProperty */,
521
- connection: "target"
522
- },
523
- {
524
- position: Position5.Right,
525
- dataType: 8 /* module */,
526
- connection: "source"
527
- }
528
- ]
529
- };
530
- }
531
- isHandleAllowed(type) {
532
- return type === "source";
533
- }
534
- getHandleAllowedDataType() {
535
- return 8 /* module */;
536
- }
431
+ {
432
+ position: Position5.Right,
433
+ dataType: "module" /* module */,
434
+ connection: "source"
435
+ }
436
+ ]
437
+ };
537
438
  };
538
439
 
539
440
  // src/templates/generators/noise-simplex-template.ts
540
- import { IDGenerator as IDGenerator6 } from "@awesome-flow/core/utils";
441
+ import {
442
+ CoreHandleType as CoreHandleType4
443
+ } from "@awesome-flow/core/abstract";
541
444
  import { Position as Position6 } from "@xyflow/system";
542
445
  var NoiseSimplexNodeTemplateFactory = class {
543
- create() {
544
- return {
545
- id: IDGenerator6.template(),
546
- type: "noise-simplex" /* noiseSimplex */,
547
- removable: false,
548
- data: {
549
- title: "Simplex Noise"
446
+ template = {
447
+ type: "noise-simplex" /* noiseSimplex */,
448
+ group: "Noise Generators" /* noiseGenerators */,
449
+ data: {
450
+ title: "Simplex Noise"
451
+ },
452
+ handles: [
453
+ {
454
+ position: Position6.Left,
455
+ dataType: CoreHandleType4.variableProperty,
456
+ connection: "target"
550
457
  },
551
- handles: [
552
- {
553
- position: Position6.Left,
554
- dataType: 16 /* variableProperty */,
555
- connection: "target"
556
- },
557
- {
558
- position: Position6.Right,
559
- dataType: 8 /* module */,
560
- connection: "source"
561
- }
562
- ]
563
- };
564
- }
565
- isHandleAllowed(type) {
566
- return type === "source";
567
- }
568
- getHandleAllowedDataType() {
569
- return 8 /* module */;
570
- }
458
+ {
459
+ position: Position6.Right,
460
+ dataType: "module" /* module */,
461
+ connection: "source"
462
+ }
463
+ ]
464
+ };
571
465
  };
572
466
 
573
467
  // src/templates/generators/noise-spheres-template.ts
574
- import { IDGenerator as IDGenerator7 } from "@awesome-flow/core/utils";
468
+ import { CoreHandleType as CoreHandleType5 } from "@awesome-flow/core/abstract";
575
469
  import { Position as Position7 } from "@xyflow/system";
576
470
  var NoiseSpheresNodeTemplateFactory = class {
577
- create() {
578
- return {
579
- id: IDGenerator7.template(),
580
- type: "noise-spheres" /* noiseSpheres */,
581
- removable: false,
582
- data: {
583
- title: "Spheres Noise",
584
- frequency: 0.1
471
+ template = {
472
+ type: "noise-spheres" /* noiseSpheres */,
473
+ group: "Noise Generators" /* noiseGenerators */,
474
+ data: {
475
+ title: "Spheres Noise",
476
+ frequency: 0.1
477
+ },
478
+ handles: [
479
+ {
480
+ position: Position7.Left,
481
+ dataType: CoreHandleType5.variableProperty,
482
+ connection: "target"
585
483
  },
586
- handles: [
587
- {
588
- position: Position7.Left,
589
- dataType: 16 /* variableProperty */,
590
- connection: "target"
591
- },
592
- {
593
- position: Position7.Right,
594
- dataType: 8 /* module */,
595
- connection: "source"
596
- }
597
- ]
598
- };
599
- }
600
- isHandleAllowed(type) {
601
- return type === "source";
602
- }
603
- getHandleAllowedDataType() {
604
- return 8 /* module */;
605
- }
484
+ {
485
+ position: Position7.Right,
486
+ dataType: "module" /* module */,
487
+ connection: "source"
488
+ }
489
+ ]
490
+ };
606
491
  };
607
492
 
608
493
  // src/templates/generators/noise-voronoi-template.ts
609
- import { IDGenerator as IDGenerator8 } from "@awesome-flow/core/utils";
494
+ import { CoreHandleType as CoreHandleType6 } from "@awesome-flow/core/abstract";
610
495
  import { Position as Position8 } from "@xyflow/system";
611
496
  var NoiseVoronoiNodeTemplateFactory = class {
612
- create() {
613
- return {
614
- id: IDGenerator8.template(),
615
- type: "noise-voronoi" /* noiseVoronoi */,
616
- removable: false,
617
- data: {
618
- title: "Voronoi Noise",
619
- frequency: 0.1,
620
- displacement: 1,
621
- distance: true,
622
- seed: 0
497
+ template = {
498
+ type: "noise-voronoi" /* noiseVoronoi */,
499
+ group: "Noise Generators" /* noiseGenerators */,
500
+ data: {
501
+ title: "Voronoi Noise",
502
+ frequency: 0.1,
503
+ displacement: 1,
504
+ distance: true,
505
+ seed: 0
506
+ },
507
+ handles: [
508
+ {
509
+ position: Position8.Left,
510
+ dataType: CoreHandleType6.variableProperty,
511
+ connection: "target"
623
512
  },
624
- handles: [
625
- {
626
- position: Position8.Left,
627
- dataType: 16 /* variableProperty */,
628
- connection: "target"
629
- },
630
- {
631
- position: Position8.Right,
632
- dataType: 8 /* module */,
633
- connection: "source"
634
- }
635
- ]
636
- };
637
- }
638
- isHandleAllowed(type) {
639
- return type === "source";
640
- }
641
- getHandleAllowedDataType() {
642
- return 8 /* module */;
643
- }
513
+ {
514
+ position: Position8.Right,
515
+ dataType: "module" /* module */,
516
+ connection: "source"
517
+ }
518
+ ]
519
+ };
644
520
  };
645
521
 
646
522
  // src/templates/generators/position-const-template.ts
647
- import { IDGenerator as IDGenerator9 } from "@awesome-flow/core/utils";
648
523
  import { Position as Position9 } from "@xyflow/system";
649
524
  var PositionConstNodeTemplateFactory = class {
650
- create() {
651
- return {
652
- id: IDGenerator9.template(),
653
- type: "position" /* position */,
654
- removable: false,
655
- data: {
656
- title: "Position Output",
657
- position: { x: 0, y: 0, z: 0 }
658
- },
659
- handles: [
660
- {
661
- position: Position9.Right,
662
- dataType: 4 /* position */,
663
- connection: "source"
664
- }
665
- ]
666
- };
667
- }
668
- isHandleAllowed(type) {
669
- return type === "source";
670
- }
671
- getHandleAllowedDataType(type) {
672
- return 4 /* position */;
673
- }
525
+ template = {
526
+ type: "position" /* position */,
527
+ group: "Positions" /* positions */,
528
+ data: {
529
+ title: "Position Output",
530
+ position: { x: 0, y: 0, z: 0 }
531
+ },
532
+ handles: [
533
+ {
534
+ position: Position9.Right,
535
+ dataType: "position" /* position */,
536
+ connection: "source"
537
+ }
538
+ ]
539
+ };
674
540
  };
675
541
 
676
542
  // src/templates/generators/position-grid-template.ts
677
- import { IDGenerator as IDGenerator10 } from "@awesome-flow/core/utils";
678
543
  import { Position as Position10 } from "@xyflow/system";
679
544
  var PositionGridNodeTemplateFactory = class {
680
- create() {
681
- return {
682
- id: IDGenerator10.template(),
683
- type: "grid" /* grid */,
684
- removable: false,
685
- data: {
686
- title: "Grid Output",
687
- center: { x: 0, y: 0, z: 0 },
688
- radius: 1
689
- },
690
- handles: [
691
- {
692
- position: Position10.Right,
693
- dataType: 4 /* position */,
694
- connection: "source"
695
- }
696
- ]
697
- };
698
- }
699
- isHandleAllowed(type) {
700
- return type === "source";
701
- }
702
- getHandleAllowedDataType(type) {
703
- return 4 /* position */;
704
- }
545
+ template = {
546
+ type: "grid" /* grid */,
547
+ group: "Positions" /* positions */,
548
+ data: {
549
+ title: "Grid Output",
550
+ center: { x: 0, y: 0, z: 0 },
551
+ radius: 1
552
+ },
553
+ handles: [
554
+ {
555
+ position: Position10.Right,
556
+ dataType: "position" /* position */,
557
+ connection: "source"
558
+ }
559
+ ]
560
+ };
705
561
  };
706
562
 
707
563
  // src/templates/modifiers/noise-normalize-template.ts
708
- import { IDGenerator as IDGenerator11 } from "@awesome-flow/core/utils";
564
+ import { IDGenerator } from "@awesome-flow/core/utils";
709
565
  import { Position as Position11 } from "@xyflow/system";
710
566
  var NoiseNormalizeNodeTemplateFactory = class {
711
- create() {
712
- return {
713
- id: IDGenerator11.template(),
714
- type: "noise-normalize" /* noiseNormalize */,
715
- data: {
716
- title: "Normalize Noise",
717
- intervalStart: -1,
718
- intervalEnd: 1
567
+ template = {
568
+ id: IDGenerator.template(),
569
+ type: "noise-normalize" /* noiseNormalize */,
570
+ group: "Noise Modifiers" /* noiseModifiers */,
571
+ data: {
572
+ title: "Normalize Noise",
573
+ intervalStart: -1,
574
+ intervalEnd: 1
575
+ },
576
+ handles: [
577
+ {
578
+ position: Position11.Left,
579
+ dataType: "module" /* module */,
580
+ connection: "target",
581
+ maxConnections: 1
719
582
  },
720
- handles: [
721
- {
722
- position: Position11.Left,
723
- dataType: 8 /* module */,
724
- connection: "target",
725
- maxConnections: 1
726
- },
727
- {
728
- position: Position11.Right,
729
- dataType: 8 /* module */,
730
- connection: "source"
731
- }
732
- ]
733
- };
734
- }
735
- isHandleAllowed() {
736
- return true;
737
- }
738
- getHandleAllowedDataType(type) {
739
- return 8 /* module */;
740
- }
583
+ {
584
+ position: Position11.Right,
585
+ dataType: "module" /* module */,
586
+ connection: "source"
587
+ }
588
+ ]
589
+ };
741
590
  };
742
591
 
743
592
  // src/templates/output/noise-logger-template.ts
744
- import { IDGenerator as IDGenerator12 } from "@awesome-flow/core/utils";
745
593
  import { Position as Position12 } from "@xyflow/system";
746
594
  var NoiseLoggerNodeTemplateFactory = class {
747
- create() {
748
- return {
749
- id: IDGenerator12.template(),
750
- type: "noise-logger" /* noiseLogger */,
751
- removable: false,
752
- data: {
753
- title: "Noise Logger"
754
- },
755
- handles: [
756
- {
757
- position: Position12.Left,
758
- dataType: 2 /* noise */,
759
- connection: "target"
760
- }
761
- ]
762
- };
763
- }
764
- isHandleAllowed(type) {
765
- return type === "target";
766
- }
767
- getHandleAllowedDataType(type) {
768
- return 2 /* noise */;
769
- }
595
+ template = {
596
+ type: "noise-logger" /* noiseLogger */,
597
+ group: "Output" /* output */,
598
+ data: {
599
+ title: "Noise Logger"
600
+ },
601
+ handles: [
602
+ {
603
+ position: Position12.Left,
604
+ dataType: "noise" /* noise */,
605
+ connection: "target"
606
+ }
607
+ ]
608
+ };
770
609
  };
771
610
 
772
611
  // src/templates/output/noise-raw-texture-template.ts
773
- import { IDGenerator as IDGenerator13 } from "@awesome-flow/core/utils";
774
612
  import { Position as Position13 } from "@xyflow/system";
775
613
  var NoiseRawTextureTemplateFactory = class {
776
- create() {
777
- return {
778
- id: IDGenerator13.template(),
779
- type: "texture-data" /* textureData */,
780
- removable: false,
781
- data: {
782
- title: "Texture Data"
614
+ template = {
615
+ type: "texture-data" /* textureData */,
616
+ group: "Output" /* output */,
617
+ data: {
618
+ title: "Texture Data"
619
+ },
620
+ handles: [
621
+ {
622
+ position: Position13.Left,
623
+ dataType: "noise" /* noise */,
624
+ connection: "target",
625
+ maxConnections: 1
783
626
  },
784
- handles: [
785
- {
786
- position: Position13.Left,
787
- dataType: 2 /* noise */,
788
- connection: "target",
789
- maxConnections: 1
790
- },
791
- {
792
- position: Position13.Right,
793
- dataType: 1 /* texture */,
794
- connection: "source"
795
- }
796
- ]
797
- };
798
- }
799
- isHandleAllowed() {
800
- return true;
801
- }
802
- getHandleAllowedDataType(type) {
803
- switch (type) {
804
- case "source":
805
- return 1 /* texture */;
806
- case "target":
807
- return 2 /* noise */;
808
- }
809
- }
627
+ {
628
+ position: Position13.Right,
629
+ dataType: "texture" /* texture */,
630
+ connection: "source"
631
+ }
632
+ ]
633
+ };
810
634
  };
811
635
 
812
636
  // src/templates/output/position-logger-template.ts
813
- import { IDGenerator as IDGenerator14 } from "@awesome-flow/core/utils";
814
637
  import { Position as Position14 } from "@xyflow/system";
815
638
  var PositionLoggerNodeTemplateFactory = class {
816
- create() {
817
- return {
818
- id: IDGenerator14.template(),
819
- type: "position-logger" /* positionLogger */,
820
- removable: false,
821
- data: {
822
- title: "Position Logger"
823
- },
824
- handles: [
825
- {
826
- position: Position14.Left,
827
- dataType: 4 /* position */,
828
- connection: "target"
829
- }
830
- ]
831
- };
832
- }
833
- isHandleAllowed(type) {
834
- return type === "target";
835
- }
836
- getHandleAllowedDataType(type) {
837
- return 4 /* position */;
838
- }
639
+ template = {
640
+ type: "position-logger" /* positionLogger */,
641
+ group: "Positions" /* positions */,
642
+ data: {
643
+ title: "Position Logger"
644
+ },
645
+ handles: [
646
+ {
647
+ position: Position14.Left,
648
+ dataType: "position" /* position */,
649
+ connection: "target"
650
+ }
651
+ ]
652
+ };
839
653
  };
840
654
 
841
655
  // src/templates/modifiers/noise-combine-template.ts
842
- import { IDGenerator as IDGenerator15 } from "@awesome-flow/core/utils";
843
656
  import { Position as Position15 } from "@xyflow/system";
844
657
  var NoiseCombineNodeTemplateFactory = class {
845
- create() {
846
- return {
847
- id: IDGenerator15.template(),
848
- type: "noise-combiner" /* noiseCombine */,
849
- removable: false,
850
- data: {
851
- title: "Combine Noise",
852
- operation: "add" /* add */
658
+ template = {
659
+ type: "noise-combiner" /* noiseCombine */,
660
+ group: "Noise Modifiers" /* noiseModifiers */,
661
+ data: {
662
+ title: "Combine Noise",
663
+ operation: "add" /* add */
664
+ },
665
+ handles: [
666
+ {
667
+ position: Position15.Left,
668
+ dataType: "module" /* module */,
669
+ connection: "target",
670
+ maxConnections: 2
853
671
  },
854
- handles: [
855
- {
856
- position: Position15.Left,
857
- dataType: 8 /* module */,
858
- connection: "target",
859
- maxConnections: 2
860
- },
861
- {
862
- position: Position15.Right,
863
- dataType: 8 /* module */,
864
- connection: "source"
865
- }
866
- ]
867
- };
868
- }
869
- isHandleAllowed() {
870
- return true;
871
- }
872
- getHandleAllowedDataType(type) {
873
- return 8 /* module */;
874
- }
672
+ {
673
+ position: Position15.Right,
674
+ dataType: "module" /* module */,
675
+ connection: "source"
676
+ }
677
+ ]
678
+ };
875
679
  };
876
680
 
877
681
  // src/templates/modifiers/noise-clamp-template.ts
878
- import { IDGenerator as IDGenerator16 } from "@awesome-flow/core/utils";
879
682
  import { Position as Position16 } from "@xyflow/system";
880
683
  var NoiseClampNodeTemplateFactory = class {
881
- create() {
882
- return {
883
- id: IDGenerator16.template(),
884
- type: "noise-clamp" /* noiseClamp */,
885
- removable: false,
886
- data: {
887
- title: "Clamp Noise",
888
- lowerBound: -1,
889
- upperBound: 1
684
+ template = {
685
+ type: "noise-clamp" /* noiseClamp */,
686
+ group: "Noise Modifiers" /* noiseModifiers */,
687
+ data: {
688
+ title: "Clamp Noise",
689
+ lowerBound: -1,
690
+ upperBound: 1
691
+ },
692
+ handles: [
693
+ {
694
+ position: Position16.Left,
695
+ dataType: "module" /* module */,
696
+ connection: "target",
697
+ maxConnections: 1
890
698
  },
891
- handles: [
892
- {
893
- position: Position16.Left,
894
- dataType: 8 /* module */,
895
- connection: "target",
896
- maxConnections: 1
897
- },
898
- {
899
- position: Position16.Right,
900
- dataType: 8 /* module */,
901
- connection: "source"
902
- }
903
- ]
904
- };
905
- }
906
- isHandleAllowed() {
907
- return true;
908
- }
909
- getHandleAllowedDataType(type) {
910
- return 8 /* module */;
911
- }
699
+ {
700
+ position: Position16.Right,
701
+ dataType: "module" /* module */,
702
+ connection: "source"
703
+ }
704
+ ]
705
+ };
912
706
  };
913
707
 
914
708
  // src/templates/modifiers/noise-abs-template.ts
915
- import { IDGenerator as IDGenerator17 } from "@awesome-flow/core/utils";
916
709
  import { Position as Position17 } from "@xyflow/system";
917
710
  var NoiseAbsNodeTemplateFactory = class {
918
- create() {
919
- return {
920
- id: IDGenerator17.template(),
921
- type: "noise-abs" /* noiseAbs */,
922
- removable: false,
923
- data: {
924
- title: "Abs Noise"
711
+ template = {
712
+ type: "noise-abs" /* noiseAbs */,
713
+ group: "Noise Modifiers" /* noiseModifiers */,
714
+ data: {
715
+ title: "Abs Noise"
716
+ },
717
+ handles: [
718
+ {
719
+ position: Position17.Left,
720
+ dataType: "module" /* module */,
721
+ connection: "target",
722
+ maxConnections: 1
925
723
  },
926
- handles: [
927
- {
928
- position: Position17.Left,
929
- dataType: 8 /* module */,
930
- connection: "target",
931
- maxConnections: 1
932
- },
933
- {
934
- position: Position17.Right,
935
- dataType: 8 /* module */,
936
- connection: "source"
937
- }
938
- ]
939
- };
940
- }
941
- isHandleAllowed() {
942
- return true;
943
- }
944
- getHandleAllowedDataType(type) {
945
- return 8 /* module */;
946
- }
724
+ {
725
+ position: Position17.Right,
726
+ dataType: "module" /* module */,
727
+ connection: "source"
728
+ }
729
+ ]
730
+ };
947
731
  };
948
732
 
949
733
  // src/templates/output/noise-output-template.ts
950
- import { IDGenerator as IDGenerator18 } from "@awesome-flow/core/utils";
951
734
  import { Position as Position18 } from "@xyflow/system";
952
735
  var NoiseOutputNodeTemplateFactory = class {
953
- create() {
954
- return {
955
- id: IDGenerator18.template(),
956
- type: "noise-output" /* noiseOutput */,
957
- removable: false,
958
- data: {
959
- title: "Noise Output"
736
+ template = {
737
+ type: "noise-output" /* noiseOutput */,
738
+ group: "Output" /* output */,
739
+ data: {
740
+ title: "Noise Output"
741
+ },
742
+ handles: [
743
+ {
744
+ position: Position18.Left,
745
+ dataType: "position" /* position */,
746
+ connection: "target"
747
+ },
748
+ {
749
+ position: Position18.Left,
750
+ dataType: "module" /* module */,
751
+ connection: "target",
752
+ maxConnections: 1
960
753
  },
961
- handles: [
962
- {
963
- position: Position18.Left,
964
- dataType: 4 /* position */,
965
- connection: "target"
966
- },
967
- {
968
- position: Position18.Left,
969
- dataType: 8 /* module */,
970
- connection: "target",
971
- maxConnections: 1
972
- },
973
- {
974
- position: Position18.Right,
975
- dataType: 2 /* noise */,
976
- connection: "source"
977
- }
978
- ]
979
- };
980
- }
981
- isHandleAllowed() {
982
- return true;
983
- }
984
- getHandleAllowedDataType(type) {
985
- switch (type) {
986
- case "source":
987
- return 2 /* noise */;
988
- case "target":
989
- return 8 /* module */ & 4 /* position */;
990
- }
991
- }
754
+ {
755
+ position: Position18.Right,
756
+ dataType: "noise" /* noise */,
757
+ connection: "source"
758
+ }
759
+ ]
760
+ };
992
761
  };
993
762
 
994
763
  // src/templates/modifiers/noise-curve-template.ts
995
- import { IDGenerator as IDGenerator19 } from "@awesome-flow/core/utils";
764
+ import { CoreHandleType as CoreHandleType7 } from "@awesome-flow/core/abstract";
996
765
  import { Position as Position19 } from "@xyflow/system";
997
766
  var NoiseCurveNodeTemplateFactory = class {
998
- create() {
999
- return {
1000
- id: IDGenerator19.template(),
1001
- type: "noise-curve" /* noiseCurve */,
1002
- removable: false,
1003
- data: {
1004
- title: "Noise Curve",
1005
- points: []
767
+ template = {
768
+ type: "noise-curve" /* noiseCurve */,
769
+ group: "Noise Modifiers" /* noiseModifiers */,
770
+ data: {
771
+ title: "Noise Curve",
772
+ points: []
773
+ },
774
+ handles: [
775
+ {
776
+ position: Position19.Left,
777
+ dataType: "module" /* module */,
778
+ connection: "target",
779
+ maxConnections: 1
780
+ },
781
+ {
782
+ position: Position19.Left,
783
+ dataType: CoreHandleType7.variableProperty,
784
+ connection: "target"
1006
785
  },
1007
- handles: [
1008
- {
1009
- position: Position19.Left,
1010
- dataType: 8 /* module */,
1011
- connection: "target",
1012
- maxConnections: 1
1013
- },
1014
- {
1015
- position: Position19.Right,
1016
- dataType: 8 /* module */,
1017
- connection: "source"
1018
- }
1019
- ]
1020
- };
1021
- }
1022
- isHandleAllowed() {
1023
- return true;
1024
- }
1025
- getHandleAllowedDataType(type) {
1026
- return 8 /* module */;
1027
- }
786
+ {
787
+ position: Position19.Right,
788
+ dataType: "module" /* module */,
789
+ connection: "source"
790
+ }
791
+ ]
792
+ };
1028
793
  };
1029
794
 
1030
795
  // src/templates/modifiers/noise-exponent-template.ts
1031
- import { IDGenerator as IDGenerator20 } from "@awesome-flow/core/utils";
1032
796
  import { Position as Position20 } from "@xyflow/system";
1033
797
  var NoiseExponentNodeTemplateFactory = class {
1034
- create() {
1035
- return {
1036
- id: IDGenerator20.template(),
1037
- type: "noise-exponent" /* noiseExponent */,
1038
- removable: false,
1039
- data: {
1040
- title: "Noise Exponent",
1041
- exponent: 1
798
+ template = {
799
+ type: "noise-exponent" /* noiseExponent */,
800
+ group: "Noise Modifiers" /* noiseModifiers */,
801
+ data: {
802
+ title: "Noise Exponent",
803
+ exponent: 1
804
+ },
805
+ handles: [
806
+ {
807
+ position: Position20.Left,
808
+ dataType: "module" /* module */,
809
+ connection: "target",
810
+ maxConnections: 1
1042
811
  },
1043
- handles: [
1044
- {
1045
- position: Position20.Left,
1046
- dataType: 8 /* module */,
1047
- connection: "target",
1048
- maxConnections: 1
1049
- },
1050
- {
1051
- position: Position20.Right,
1052
- dataType: 8 /* module */,
1053
- connection: "source"
1054
- }
1055
- ]
1056
- };
1057
- }
1058
- isHandleAllowed() {
1059
- return true;
1060
- }
1061
- getHandleAllowedDataType(type) {
1062
- return 8 /* module */;
1063
- }
812
+ {
813
+ position: Position20.Right,
814
+ dataType: "module" /* module */,
815
+ connection: "source"
816
+ }
817
+ ]
818
+ };
1064
819
  };
1065
820
 
1066
821
  // src/templates/modifiers/noise-invert-template.ts
1067
- import { IDGenerator as IDGenerator21 } from "@awesome-flow/core/utils";
1068
822
  import { Position as Position21 } from "@xyflow/system";
1069
823
  var NoiseInvertNodeTemplateFactory = class {
1070
- create() {
1071
- return {
1072
- id: IDGenerator21.template(),
1073
- type: "noise-invert" /* noiseInvert */,
1074
- removable: false,
1075
- data: {
1076
- title: "Invert Noise"
824
+ template = {
825
+ type: "noise-invert" /* noiseInvert */,
826
+ group: "Noise Modifiers" /* noiseModifiers */,
827
+ data: {
828
+ title: "Invert Noise"
829
+ },
830
+ handles: [
831
+ {
832
+ position: Position21.Left,
833
+ dataType: "module" /* module */,
834
+ connection: "target",
835
+ maxConnections: 1
1077
836
  },
1078
- handles: [
1079
- {
1080
- position: Position21.Left,
1081
- dataType: 8 /* module */,
1082
- connection: "target",
1083
- maxConnections: 1
1084
- },
1085
- {
1086
- position: Position21.Right,
1087
- dataType: 8 /* module */,
1088
- connection: "source"
1089
- }
1090
- ]
1091
- };
1092
- }
1093
- isHandleAllowed() {
1094
- return true;
1095
- }
1096
- getHandleAllowedDataType(type) {
1097
- return 8 /* module */;
1098
- }
837
+ {
838
+ position: Position21.Right,
839
+ dataType: "module" /* module */,
840
+ connection: "source"
841
+ }
842
+ ]
843
+ };
1099
844
  };
1100
845
 
1101
846
  // src/templates/modifiers/noise-scalebias-template.ts
1102
- import { IDGenerator as IDGenerator22 } from "@awesome-flow/core/utils";
1103
847
  import { Position as Position22 } from "@xyflow/system";
1104
848
  var NoiseScaleBiasNodeTemplateFactory = class {
1105
- create() {
1106
- return {
1107
- id: IDGenerator22.template(),
1108
- type: "noise-scale-bias" /* noiseScaleBias */,
1109
- removable: false,
1110
- data: {
1111
- title: "Scale/Bias Noise",
1112
- scale: 1,
1113
- bias: 0
849
+ template = {
850
+ type: "noise-scale-bias" /* noiseScaleBias */,
851
+ group: "Noise Modifiers" /* noiseModifiers */,
852
+ data: {
853
+ title: "Scale/Bias Noise",
854
+ scale: 1,
855
+ bias: 0
856
+ },
857
+ handles: [
858
+ {
859
+ position: Position22.Left,
860
+ dataType: "module" /* module */,
861
+ connection: "target",
862
+ maxConnections: 1
1114
863
  },
1115
- handles: [
1116
- {
1117
- position: Position22.Left,
1118
- dataType: 8 /* module */,
1119
- connection: "target",
1120
- maxConnections: 1
1121
- },
1122
- {
1123
- position: Position22.Right,
1124
- dataType: 8 /* module */,
1125
- connection: "source"
1126
- }
1127
- ]
1128
- };
1129
- }
1130
- isHandleAllowed() {
1131
- return true;
1132
- }
1133
- getHandleAllowedDataType(type) {
1134
- return 8 /* module */;
1135
- }
864
+ {
865
+ position: Position22.Right,
866
+ dataType: "module" /* module */,
867
+ connection: "source"
868
+ }
869
+ ]
870
+ };
1136
871
  };
1137
872
 
1138
873
  // src/templates/modifiers/noise-terrace-template.ts
1139
- import { IDGenerator as IDGenerator23 } from "@awesome-flow/core/utils";
1140
874
  import { Position as Position23 } from "@xyflow/system";
1141
875
  var NoiseTerraceNodeTemplateFactory = class {
1142
- create() {
1143
- return {
1144
- id: IDGenerator23.template(),
1145
- type: "noise-terrace" /* noiseTerrace */,
1146
- removable: false,
1147
- data: {
1148
- title: "Noise Terrace",
1149
- points: []
876
+ template = {
877
+ type: "noise-terrace" /* noiseTerrace */,
878
+ group: "Noise Modifiers" /* noiseModifiers */,
879
+ data: {
880
+ title: "Noise Terrace",
881
+ points: []
882
+ },
883
+ handles: [
884
+ {
885
+ position: Position23.Left,
886
+ dataType: "module" /* module */,
887
+ connection: "target",
888
+ maxConnections: 1
1150
889
  },
1151
- handles: [
1152
- {
1153
- position: Position23.Left,
1154
- dataType: 8 /* module */,
1155
- connection: "target",
1156
- maxConnections: 1
1157
- },
1158
- {
1159
- position: Position23.Right,
1160
- dataType: 8 /* module */,
1161
- connection: "source"
1162
- }
1163
- ]
1164
- };
1165
- }
1166
- isHandleAllowed() {
1167
- return true;
1168
- }
1169
- getHandleAllowedDataType(type) {
1170
- return 8 /* module */;
1171
- }
890
+ {
891
+ position: Position23.Right,
892
+ dataType: "module" /* module */,
893
+ connection: "source"
894
+ }
895
+ ]
896
+ };
1172
897
  };
1173
898
 
1174
899
  // src/templates/selectors/noise-blend-template.ts
1175
- import { IDGenerator as IDGenerator24 } from "@awesome-flow/core/utils";
1176
900
  import { Position as Position24 } from "@xyflow/system";
1177
901
  var NoiseBlendNodeTemplateFactory = class {
1178
- create() {
1179
- return {
1180
- id: IDGenerator24.template(),
1181
- type: "noise-blend" /* noiseBlend */,
1182
- removable: false,
1183
- data: {
1184
- title: "Noise Blend"
902
+ template = {
903
+ type: "noise-blend" /* noiseBlend */,
904
+ group: "Noise Selectors" /* noiseSelectors */,
905
+ data: {
906
+ title: "Noise Blend"
907
+ },
908
+ handles: [
909
+ {
910
+ position: Position24.Left,
911
+ dataType: "module" /* module */,
912
+ connection: "target",
913
+ label: "Source Modules",
914
+ dataId: "source" /* source */,
915
+ maxConnections: 2,
916
+ minConnections: 2
1185
917
  },
1186
- handles: [
1187
- {
1188
- position: Position24.Left,
1189
- dataType: 8 /* module */,
1190
- connection: "target",
1191
- label: "Source Modules",
1192
- maxConnections: 2
1193
- },
1194
- {
1195
- position: Position24.Left,
1196
- dataType: 8 /* module */,
1197
- connection: "target",
1198
- label: "Control Module",
1199
- maxConnections: 1
1200
- },
1201
- {
1202
- position: Position24.Right,
1203
- dataType: 8 /* module */,
1204
- connection: "source"
1205
- }
1206
- ]
1207
- };
1208
- }
1209
- isHandleAllowed() {
1210
- return true;
1211
- }
1212
- getHandleAllowedDataType() {
1213
- return 8 /* module */;
1214
- }
918
+ {
919
+ position: Position24.Left,
920
+ dataType: "module" /* module */,
921
+ dataId: "control" /* control */,
922
+ connection: "target",
923
+ label: "Control Module",
924
+ maxConnections: 1
925
+ },
926
+ {
927
+ position: Position24.Right,
928
+ dataType: "module" /* module */,
929
+ dataId: "output" /* output */,
930
+ connection: "source"
931
+ }
932
+ ]
933
+ };
1215
934
  };
1216
935
 
1217
936
  // src/templates/selectors/noise-select-template.ts
1218
- import { IDGenerator as IDGenerator25 } from "@awesome-flow/core/utils";
1219
937
  import { Position as Position25 } from "@xyflow/system";
1220
938
  var NoiseSelectNodeTemplateFactory = class {
1221
- create() {
1222
- return {
1223
- id: IDGenerator25.template(),
1224
- type: "noise-select" /* noiseSelect */,
1225
- removable: false,
1226
- data: {
1227
- title: "Noise Select",
1228
- edgeFalloff: 0,
1229
- lowerBound: -1,
1230
- upperBound: 1
939
+ template = {
940
+ type: "noise-select" /* noiseSelect */,
941
+ group: "Noise Selectors" /* noiseSelectors */,
942
+ data: {
943
+ title: "Noise Select",
944
+ edgeFalloff: 0,
945
+ lowerBound: -1,
946
+ upperBound: 1
947
+ },
948
+ handles: [
949
+ {
950
+ position: Position25.Left,
951
+ dataType: "module" /* module */,
952
+ dataId: "source" /* source */,
953
+ connection: "target",
954
+ label: "Source Modules",
955
+ maxConnections: 2,
956
+ minConnections: 2
957
+ },
958
+ {
959
+ position: Position25.Left,
960
+ dataType: "module" /* module */,
961
+ dataId: "control" /* control */,
962
+ connection: "target",
963
+ label: "Control Module",
964
+ maxConnections: 1
1231
965
  },
1232
- handles: [
1233
- {
1234
- position: Position25.Left,
1235
- dataType: 8 /* module */,
1236
- connection: "target",
1237
- label: "Source Modules",
1238
- maxConnections: 2
1239
- },
1240
- {
1241
- position: Position25.Left,
1242
- dataType: 8 /* module */,
1243
- connection: "target",
1244
- label: "Control Module",
1245
- maxConnections: 1
1246
- },
1247
- {
1248
- position: Position25.Right,
1249
- dataType: 8 /* module */,
1250
- connection: "source"
1251
- }
1252
- ]
1253
- };
1254
- }
1255
- isHandleAllowed() {
1256
- return true;
1257
- }
1258
- getHandleAllowedDataType() {
1259
- return 8 /* module */;
1260
- }
966
+ {
967
+ position: Position25.Right,
968
+ dataType: "module" /* module */,
969
+ dataId: "output" /* output */,
970
+ connection: "source"
971
+ }
972
+ ]
973
+ };
1261
974
  };
1262
975
 
1263
976
  // src/templates/transformers/noise-displace-template.ts
1264
- import { IDGenerator as IDGenerator26 } from "@awesome-flow/core/utils";
1265
977
  import { Position as Position26 } from "@xyflow/system";
1266
978
  var NoiseDisplaceNodeTemplateFactory = class {
1267
- create() {
1268
- return {
1269
- id: IDGenerator26.template(),
1270
- type: "noise-displace" /* noiseDisplace */,
1271
- data: {
1272
- title: "Noise Displace"
979
+ template = {
980
+ type: "noise-displace" /* noiseDisplace */,
981
+ group: "Noise Transformers" /* noiseTransformers */,
982
+ data: {
983
+ title: "Noise Displace"
984
+ },
985
+ handles: [
986
+ {
987
+ position: Position26.Left,
988
+ connection: "target",
989
+ label: "Source Module",
990
+ dataType: "module" /* module */,
991
+ dataId: "source" /* sourceModule */,
992
+ maxConnections: 1
1273
993
  },
1274
- handles: [
1275
- {
1276
- position: Position26.Left,
1277
- connection: "target",
1278
- label: "Source Module",
1279
- dataType: 8 /* module */,
1280
- dataId: "source" /* sourceModule */,
1281
- maxConnections: 1
1282
- },
1283
- {
1284
- position: Position26.Left,
1285
- connection: "target",
1286
- label: "X Module",
1287
- dataType: 8 /* module */,
1288
- dataId: "x-module" /* xModule */,
1289
- maxConnections: 1
1290
- },
1291
- {
1292
- position: Position26.Left,
1293
- connection: "target",
1294
- label: "Y Module",
1295
- dataType: 8 /* module */,
1296
- dataId: "y-module" /* yModule */,
1297
- maxConnections: 1
1298
- },
1299
- {
1300
- position: Position26.Left,
1301
- connection: "target",
1302
- label: "Z Module",
1303
- dataType: 8 /* module */,
1304
- dataId: "z-module" /* zModule */,
1305
- maxConnections: 1
1306
- },
1307
- {
1308
- position: Position26.Right,
1309
- dataType: 8 /* module */,
1310
- dataId: "output" /* output */,
1311
- connection: "source"
1312
- }
1313
- ]
1314
- };
1315
- }
1316
- isHandleAllowed() {
1317
- return true;
1318
- }
1319
- getHandleAllowedDataType() {
1320
- return 8 /* module */;
1321
- }
994
+ {
995
+ position: Position26.Left,
996
+ connection: "target",
997
+ label: "X Module",
998
+ dataType: "module" /* module */,
999
+ dataId: "x-module" /* xModule */,
1000
+ maxConnections: 1
1001
+ },
1002
+ {
1003
+ position: Position26.Left,
1004
+ connection: "target",
1005
+ label: "Y Module",
1006
+ dataType: "module" /* module */,
1007
+ dataId: "y-module" /* yModule */,
1008
+ maxConnections: 1
1009
+ },
1010
+ {
1011
+ position: Position26.Left,
1012
+ connection: "target",
1013
+ label: "Z Module",
1014
+ dataType: "module" /* module */,
1015
+ dataId: "z-module" /* zModule */,
1016
+ maxConnections: 1
1017
+ },
1018
+ {
1019
+ position: Position26.Right,
1020
+ dataType: "module" /* module */,
1021
+ dataId: "output" /* output */,
1022
+ connection: "source"
1023
+ }
1024
+ ]
1025
+ };
1322
1026
  };
1323
1027
 
1324
1028
  // src/templates/transformers/noise-rotate-point-template.ts
1325
- import { IDGenerator as IDGenerator27 } from "@awesome-flow/core/utils";
1326
1029
  import { Position as Position27 } from "@xyflow/system";
1327
1030
  var NoiseRotatePointNodeTemplateFactory = class {
1328
- create() {
1329
- return {
1330
- id: IDGenerator27.template(),
1331
- type: "noise-rotate-point" /* noiseRotatePoint */,
1332
- removable: false,
1333
- data: {
1334
- title: "Noise Rotate Point",
1335
- xAngle: 0,
1336
- yAngle: 0,
1337
- zAngle: 0
1031
+ template = {
1032
+ type: "noise-rotate-point" /* noiseRotatePoint */,
1033
+ group: "Noise Transformers" /* noiseTransformers */,
1034
+ data: {
1035
+ title: "Noise Rotate Point",
1036
+ xAngle: 0,
1037
+ yAngle: 0,
1038
+ zAngle: 0
1039
+ },
1040
+ handles: [
1041
+ {
1042
+ position: Position27.Left,
1043
+ dataType: "module" /* module */,
1044
+ connection: "target",
1045
+ label: "Source Module",
1046
+ maxConnections: 1
1338
1047
  },
1339
- handles: [
1340
- {
1341
- position: Position27.Left,
1342
- dataType: 8 /* module */,
1343
- connection: "target",
1344
- label: "Source Module",
1345
- maxConnections: 1
1346
- },
1347
- {
1348
- position: Position27.Right,
1349
- dataType: 8 /* module */,
1350
- connection: "source"
1351
- }
1352
- ]
1353
- };
1354
- }
1355
- isHandleAllowed() {
1356
- return true;
1357
- }
1358
- getHandleAllowedDataType() {
1359
- return 8 /* module */;
1360
- }
1048
+ {
1049
+ position: Position27.Right,
1050
+ dataType: "module" /* module */,
1051
+ connection: "source"
1052
+ }
1053
+ ]
1054
+ };
1361
1055
  };
1362
1056
 
1363
1057
  // src/templates/transformers/noise-scale-point-template.ts
1364
- import { IDGenerator as IDGenerator28 } from "@awesome-flow/core/utils";
1365
1058
  import { Position as Position28 } from "@xyflow/system";
1366
1059
  var NoiseScalePointNodeTemplateFactory = class {
1367
- create() {
1368
- return {
1369
- id: IDGenerator28.template(),
1370
- type: "noise-scale-point" /* noiseScalePoint */,
1371
- data: {
1372
- title: "Noise Scale Point",
1373
- xScale: 1,
1374
- yScale: 1,
1375
- zScale: 1
1060
+ template = {
1061
+ type: "noise-scale-point" /* noiseScalePoint */,
1062
+ group: "Noise Transformers" /* noiseTransformers */,
1063
+ data: {
1064
+ title: "Noise Scale Point",
1065
+ xScale: 1,
1066
+ yScale: 1,
1067
+ zScale: 1
1068
+ },
1069
+ handles: [
1070
+ {
1071
+ position: Position28.Left,
1072
+ dataType: "module" /* module */,
1073
+ connection: "target",
1074
+ label: "Source Module",
1075
+ maxConnections: 1
1376
1076
  },
1377
- handles: [
1378
- {
1379
- position: Position28.Left,
1380
- dataType: 8 /* module */,
1381
- connection: "target",
1382
- label: "Source Module",
1383
- maxConnections: 1
1384
- },
1385
- {
1386
- position: Position28.Right,
1387
- dataType: 8 /* module */,
1388
- connection: "source"
1389
- }
1390
- ]
1391
- };
1392
- }
1393
- isHandleAllowed() {
1394
- return true;
1395
- }
1396
- getHandleAllowedDataType() {
1397
- return 8 /* module */;
1398
- }
1077
+ {
1078
+ position: Position28.Right,
1079
+ dataType: "module" /* module */,
1080
+ connection: "source"
1081
+ }
1082
+ ]
1083
+ };
1399
1084
  };
1400
1085
 
1401
1086
  // src/templates/transformers/noise-translate-point-template.ts
1402
- import { IDGenerator as IDGenerator29 } from "@awesome-flow/core/utils";
1403
1087
  import { Position as Position29 } from "@xyflow/system";
1404
1088
  var NoiseTranslatePointNodeTemplateFactory = class {
1405
- create() {
1406
- return {
1407
- id: IDGenerator29.template(),
1408
- type: "noise-translate-point" /* noiseTranslatePoint */,
1409
- data: {
1410
- title: "Noise Translate Point",
1411
- translateX: 0,
1412
- translateY: 0,
1413
- translateZ: 0
1089
+ template = {
1090
+ type: "noise-translate-point" /* noiseTranslatePoint */,
1091
+ group: "Noise Transformers" /* noiseTransformers */,
1092
+ data: {
1093
+ title: "Noise Translate Point",
1094
+ translateX: 0,
1095
+ translateY: 0,
1096
+ translateZ: 0
1097
+ },
1098
+ handles: [
1099
+ {
1100
+ position: Position29.Left,
1101
+ dataType: "module" /* module */,
1102
+ connection: "target",
1103
+ label: "Source Module",
1104
+ maxConnections: 1
1414
1105
  },
1415
- handles: [
1416
- {
1417
- position: Position29.Left,
1418
- dataType: 8 /* module */,
1419
- connection: "target",
1420
- label: "Source Module",
1421
- maxConnections: 1
1422
- },
1423
- {
1424
- position: Position29.Right,
1425
- dataType: 8 /* module */,
1426
- connection: "source"
1427
- }
1428
- ]
1429
- };
1430
- }
1431
- isHandleAllowed() {
1432
- return true;
1433
- }
1434
- getHandleAllowedDataType() {
1435
- return 8 /* module */;
1436
- }
1106
+ {
1107
+ position: Position29.Right,
1108
+ dataType: "module" /* module */,
1109
+ connection: "source"
1110
+ }
1111
+ ]
1112
+ };
1437
1113
  };
1438
1114
 
1439
1115
  // src/templates/transformers/noise-turbulence-template.ts
1440
- import { IDGenerator as IDGenerator30 } from "@awesome-flow/core/utils";
1116
+ import { CoreHandleType as CoreHandleType8 } from "@awesome-flow/core/abstract";
1441
1117
  import { Position as Position30 } from "@xyflow/system";
1442
1118
  var NoiseTurbulenceNodeTemplateFactory = class {
1443
- create() {
1444
- return {
1445
- id: IDGenerator30.template(),
1446
- type: "noise-turbulence" /* noiseTurbulence */,
1447
- data: {
1448
- title: "Noise Turbulence",
1449
- frequency: 1,
1450
- power: 1,
1451
- roughness: 1,
1452
- seed: 0
1119
+ template = {
1120
+ type: "noise-turbulence" /* noiseTurbulence */,
1121
+ group: "Noise Transformers" /* noiseTransformers */,
1122
+ data: {
1123
+ title: "Noise Turbulence",
1124
+ frequency: 1,
1125
+ power: 1,
1126
+ roughness: 1,
1127
+ seed: 0
1128
+ },
1129
+ handles: [
1130
+ {
1131
+ position: Position30.Left,
1132
+ dataType: "module" /* module */,
1133
+ connection: "target",
1134
+ label: "Source Module",
1135
+ maxConnections: 1
1453
1136
  },
1454
- handles: [
1455
- {
1456
- position: Position30.Left,
1457
- dataType: 8 /* module */,
1458
- connection: "target",
1459
- label: "Source Module",
1460
- maxConnections: 1
1461
- },
1462
- {
1463
- position: Position30.Left,
1464
- dataType: 16 /* variableProperty */,
1465
- label: "Variable Properties",
1466
- connection: "target"
1467
- },
1468
- {
1469
- position: Position30.Right,
1470
- dataType: 8 /* module */,
1471
- connection: "source"
1472
- }
1473
- ]
1474
- };
1475
- }
1476
- isHandleAllowed() {
1477
- return true;
1478
- }
1479
- getHandleAllowedDataType() {
1480
- return 8 /* module */;
1481
- }
1482
- };
1483
-
1484
- // src/templates/generators/variable-property-template.ts
1485
- import { IDGenerator as IDGenerator31 } from "@awesome-flow/core/utils";
1486
- import { Position as Position31 } from "@xyflow/system";
1487
- var VariablePropertyNodeTemplateFactory = class {
1488
- create() {
1489
- return {
1490
- id: IDGenerator31.template(),
1491
- type: "variable-property" /* variableProperty */,
1492
- data: {
1493
- title: "Variable Property",
1494
- property: null
1137
+ {
1138
+ position: Position30.Left,
1139
+ dataType: CoreHandleType8.variableProperty,
1140
+ label: "Variable Properties",
1141
+ connection: "target"
1495
1142
  },
1496
- handles: [
1497
- {
1498
- position: Position31.Left,
1499
- dataType: 32 /* variableValue */,
1500
- connection: "target",
1501
- maxConnections: 1
1502
- },
1503
- {
1504
- position: Position31.Right,
1505
- dataType: 16 /* variableProperty */,
1506
- connection: "source"
1507
- }
1508
- ]
1509
- };
1510
- }
1511
- isHandleAllowed(type) {
1512
- return true;
1513
- }
1514
- getHandleAllowedDataType(type) {
1515
- switch (type) {
1516
- case "source":
1517
- return 16 /* variableProperty */;
1518
- case "target":
1519
- return 32 /* variableValue */;
1520
- }
1521
- }
1522
- };
1523
-
1524
- // src/templates/modifiers/variable-combine-template.ts
1525
- import { IDGenerator as IDGenerator32 } from "@awesome-flow/core/utils";
1526
- import { Position as Position32 } from "@xyflow/system";
1527
- var VariableCombineNodeTemplateFactory = class {
1528
- create() {
1529
- return {
1530
- id: IDGenerator32.template(),
1531
- type: "variable-combine" /* variableCombine */,
1532
- removable: false,
1533
- data: {
1534
- title: "Combine Values",
1535
- operation: "add" /* add */,
1536
- value: null
1537
- },
1538
- handles: [
1539
- {
1540
- position: Position32.Left,
1541
- dataType: 32 /* variableValue */,
1542
- connection: "target"
1543
- },
1544
- {
1545
- position: Position32.Right,
1546
- dataType: 32 /* variableValue */,
1547
- connection: "source"
1548
- }
1549
- ]
1550
- };
1551
- }
1552
- isHandleAllowed() {
1553
- return true;
1554
- }
1555
- getHandleAllowedDataType(type) {
1556
- return 8 /* module */;
1557
- }
1558
- };
1559
-
1560
- // src/templates/generators/variable-value-template.ts
1561
- import { IDGenerator as IDGenerator33 } from "@awesome-flow/core/utils";
1562
- import { Position as Position33 } from "@xyflow/system";
1563
- var VariableValueNodeTemplateFactory = class {
1564
- create() {
1565
- return {
1566
- id: IDGenerator33.template(),
1567
- type: "variable-value" /* variableValue */,
1568
- data: {
1569
- title: "Variable Value",
1570
- value: null
1571
- },
1572
- handles: [
1573
- {
1574
- position: Position33.Right,
1575
- dataType: 32 /* variableValue */,
1576
- connection: "source"
1577
- }
1578
- ]
1579
- };
1580
- }
1581
- isHandleAllowed(type) {
1582
- return type === "source";
1583
- }
1584
- getHandleAllowedDataType(type) {
1585
- return 32 /* variableValue */;
1586
- }
1143
+ {
1144
+ position: Position30.Right,
1145
+ dataType: "module" /* module */,
1146
+ connection: "source"
1147
+ }
1148
+ ]
1149
+ };
1587
1150
  };
1588
1151
 
1589
1152
  // src/templates/groups/module-group-template.ts
1590
- import { IDGenerator as IDGenerator34 } from "@awesome-flow/core/utils";
1591
- import { Position as Position34 } from "@xyflow/system";
1153
+ import {
1154
+ CoreTemplateGroup
1155
+ } from "@awesome-flow/core/abstract";
1156
+ import { IDGenerator as IDGenerator2 } from "@awesome-flow/core/utils";
1157
+ import { Position as Position31 } from "@xyflow/system";
1592
1158
  var ModuleGroupNodeTemplateFactory = class {
1593
- create() {
1594
- return {
1595
- id: IDGenerator34.template(),
1596
- type: "group-module" /* groupModule */,
1597
- data: {
1598
- title: "Modules Group",
1599
- isGroup: true,
1600
- initialSize: {
1601
- width: 300,
1602
- height: 200
1603
- },
1604
- collapsedSize: {
1605
- width: 300,
1606
- height: 80
1607
- }
1159
+ template = {
1160
+ id: IDGenerator2.template(),
1161
+ type: "group-module" /* groupModule */,
1162
+ group: CoreTemplateGroup.groups,
1163
+ data: {
1164
+ title: "Modules Group",
1165
+ isGroup: true,
1166
+ initialSize: {
1167
+ width: 300,
1168
+ height: 200
1608
1169
  },
1609
- handles: [
1610
- {
1611
- position: Position34.Bottom,
1612
- dataType: 8 /* module */,
1613
- connection: "target",
1614
- maxConnections: 1,
1615
- hideOnCollapse: true
1616
- },
1617
- {
1618
- position: Position34.Right,
1619
- dataType: 8 /* module */,
1620
- connection: "source"
1621
- }
1622
- ]
1623
- };
1624
- }
1625
- isHandleAllowed(type) {
1626
- return true;
1627
- }
1628
- getHandleAllowedDataType(type) {
1629
- return 8 /* module */;
1630
- }
1170
+ collapsedSize: {
1171
+ width: 300,
1172
+ height: 80
1173
+ }
1174
+ },
1175
+ handles: [
1176
+ {
1177
+ position: Position31.Bottom,
1178
+ dataType: "module" /* module */,
1179
+ connection: "target",
1180
+ maxConnections: 1,
1181
+ hideOnCollapse: true
1182
+ },
1183
+ {
1184
+ position: Position31.Right,
1185
+ dataType: "module" /* module */,
1186
+ connection: "source"
1187
+ }
1188
+ ]
1189
+ };
1631
1190
  };
1632
1191
 
1192
+ // src/nodes/groups/module-group-node.tsx
1193
+ import { NodeContainer as NodeContainer32, NodeCollapse, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
1194
+ import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
1195
+ import { FlowContext } from "@awesome-flow/core/abstract";
1196
+ import { useCallback as useCallback15, useContext, useEffect as useEffect21, useMemo as useMemo12 } from "react";
1197
+ import { shallow } from "zustand/shallow";
1198
+ import { Badge, Group as Group15 } from "@mantine/core";
1199
+ import { useIncomingComputedData as useIncomingComputedData17, useUpdateNodeComputedData as useUpdateNodeComputedData30 } from "@awesome-flow/core/hooks";
1200
+ import { jsx as jsx32, jsxs as jsxs28 } from "react/jsx-runtime";
1201
+
1633
1202
  // src/abstract/node-types.ts
1634
1203
  var noiseNodeTemplates = {
1635
1204
  ["noise-output" /* noiseOutput */]: new NoiseOutputNodeTemplateFactory(),
@@ -1663,47 +1232,36 @@ var noiseNodeTemplates = {
1663
1232
  ["noise-scale-point" /* noiseScalePoint */]: new NoiseScalePointNodeTemplateFactory(),
1664
1233
  ["noise-translate-point" /* noiseTranslatePoint */]: new NoiseTranslatePointNodeTemplateFactory(),
1665
1234
  ["noise-turbulence" /* noiseTurbulence */]: new NoiseTurbulenceNodeTemplateFactory(),
1666
- ["variable-property" /* variableProperty */]: new VariablePropertyNodeTemplateFactory(),
1667
- ["variable-combine" /* variableCombine */]: new VariableCombineNodeTemplateFactory(),
1668
- ["variable-value" /* variableValue */]: new VariableValueNodeTemplateFactory(),
1669
1235
  ["group-module" /* groupModule */]: new ModuleGroupNodeTemplateFactory()
1670
1236
  };
1671
1237
 
1672
1238
  // src/templates/generators/noise-billow-template.ts
1673
1239
  var NoiseBillowNodeTemplateFactory = class {
1674
- create() {
1675
- return {
1676
- id: IDGenerator35.template(),
1677
- type: "noise-billow" /* noiseBillow */,
1678
- removable: false,
1679
- data: {
1680
- title: "Billow Noise",
1681
- frequency: 0.1,
1682
- lacunarity: 2,
1683
- octaves: 5,
1684
- persistence: 0.5,
1685
- seed: 0
1240
+ template = {
1241
+ id: IDGenerator3.template(),
1242
+ type: "noise-billow" /* noiseBillow */,
1243
+ group: "Noise Generators" /* noiseGenerators */,
1244
+ data: {
1245
+ title: "Billow Noise",
1246
+ frequency: 0.1,
1247
+ lacunarity: 2,
1248
+ octaves: 5,
1249
+ persistence: 0.5,
1250
+ seed: 0
1251
+ },
1252
+ handles: [
1253
+ {
1254
+ position: Position32.Left,
1255
+ dataType: CoreHandleType9.variableProperty,
1256
+ connection: "target"
1686
1257
  },
1687
- handles: [
1688
- {
1689
- position: Position35.Left,
1690
- dataType: 16 /* variableProperty */,
1691
- connection: "target"
1692
- },
1693
- {
1694
- position: Position35.Right,
1695
- dataType: 8 /* module */,
1696
- connection: "source"
1697
- }
1698
- ]
1699
- };
1700
- }
1701
- isHandleAllowed(type) {
1702
- return type === "source";
1703
- }
1704
- getHandleAllowedDataType() {
1705
- return 8 /* module */;
1706
- }
1258
+ {
1259
+ position: Position32.Right,
1260
+ dataType: "module" /* module */,
1261
+ connection: "source"
1262
+ }
1263
+ ]
1264
+ };
1707
1265
  };
1708
1266
  export {
1709
1267
  ModuleGroupNodeTemplateFactory,
@@ -1737,9 +1295,6 @@ export {
1737
1295
  NoiseVoronoiNodeTemplateFactory,
1738
1296
  PositionConstNodeTemplateFactory,
1739
1297
  PositionGridNodeTemplateFactory,
1740
- PositionLoggerNodeTemplateFactory,
1741
- VariableCombineNodeTemplateFactory,
1742
- VariablePropertyNodeTemplateFactory,
1743
- VariableValueNodeTemplateFactory
1298
+ PositionLoggerNodeTemplateFactory
1744
1299
  };
1745
1300
  //# sourceMappingURL=index.js.map