@awesome-flow/noise 0.1.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 (109) hide show
  1. package/dist/abstract/index.cjs +4234 -0
  2. package/dist/abstract/index.cjs.map +1 -0
  3. package/dist/abstract/index.d.cts +137 -0
  4. package/dist/abstract/index.d.ts +137 -0
  5. package/dist/abstract/index.js +4271 -0
  6. package/dist/abstract/index.js.map +1 -0
  7. package/dist/handle-types-D-v5S53h.d.cts +22 -0
  8. package/dist/handle-types-D-v5S53h.d.ts +22 -0
  9. package/dist/layout/index.cjs +164 -0
  10. package/dist/layout/index.cjs.map +1 -0
  11. package/dist/layout/index.d.cts +26 -0
  12. package/dist/layout/index.d.ts +26 -0
  13. package/dist/layout/index.js +136 -0
  14. package/dist/layout/index.js.map +1 -0
  15. package/dist/modules/index.cjs +71 -0
  16. package/dist/modules/index.cjs.map +1 -0
  17. package/dist/modules/index.d.cts +18 -0
  18. package/dist/modules/index.d.ts +18 -0
  19. package/dist/modules/index.js +34 -0
  20. package/dist/modules/index.js.map +1 -0
  21. package/dist/node-props-CeZ8Oshz.d.ts +161 -0
  22. package/dist/node-props-hKW-_KOU.d.cts +161 -0
  23. package/dist/nodes/generators/index.cjs +640 -0
  24. package/dist/nodes/generators/index.cjs.map +1 -0
  25. package/dist/nodes/generators/index.d.cts +38 -0
  26. package/dist/nodes/generators/index.d.ts +38 -0
  27. package/dist/nodes/generators/index.js +592 -0
  28. package/dist/nodes/generators/index.js.map +1 -0
  29. package/dist/nodes/groups/index.cjs +104 -0
  30. package/dist/nodes/groups/index.cjs.map +1 -0
  31. package/dist/nodes/groups/index.d.cts +7 -0
  32. package/dist/nodes/groups/index.d.ts +7 -0
  33. package/dist/nodes/groups/index.js +78 -0
  34. package/dist/nodes/groups/index.js.map +1 -0
  35. package/dist/nodes/index.cjs +2830 -0
  36. package/dist/nodes/index.cjs.map +1 -0
  37. package/dist/nodes/index.d.cts +16 -0
  38. package/dist/nodes/index.d.ts +16 -0
  39. package/dist/nodes/index.js +2840 -0
  40. package/dist/nodes/index.js.map +1 -0
  41. package/dist/nodes/modifiers/index.cjs +1593 -0
  42. package/dist/nodes/modifiers/index.cjs.map +1 -0
  43. package/dist/nodes/modifiers/index.d.cts +32 -0
  44. package/dist/nodes/modifiers/index.d.ts +32 -0
  45. package/dist/nodes/modifiers/index.js +1612 -0
  46. package/dist/nodes/modifiers/index.js.map +1 -0
  47. package/dist/nodes/output/index.cjs +210 -0
  48. package/dist/nodes/output/index.cjs.map +1 -0
  49. package/dist/nodes/output/index.d.cts +13 -0
  50. package/dist/nodes/output/index.d.ts +13 -0
  51. package/dist/nodes/output/index.js +181 -0
  52. package/dist/nodes/output/index.js.map +1 -0
  53. package/dist/nodes/selectors/index.cjs +136 -0
  54. package/dist/nodes/selectors/index.cjs.map +1 -0
  55. package/dist/nodes/selectors/index.d.cts +16 -0
  56. package/dist/nodes/selectors/index.d.ts +16 -0
  57. package/dist/nodes/selectors/index.js +113 -0
  58. package/dist/nodes/selectors/index.js.map +1 -0
  59. package/dist/nodes/transformers/index.cjs +477 -0
  60. package/dist/nodes/transformers/index.cjs.map +1 -0
  61. package/dist/nodes/transformers/index.d.cts +22 -0
  62. package/dist/nodes/transformers/index.d.ts +22 -0
  63. package/dist/nodes/transformers/index.js +459 -0
  64. package/dist/nodes/transformers/index.js.map +1 -0
  65. package/dist/properties-BxwtU6i9.d.cts +9 -0
  66. package/dist/properties-BxwtU6i9.d.ts +9 -0
  67. package/dist/templates/generators/index.cjs +1714 -0
  68. package/dist/templates/generators/index.cjs.map +1 -0
  69. package/dist/templates/generators/index.d.cts +89 -0
  70. package/dist/templates/generators/index.d.ts +89 -0
  71. package/dist/templates/generators/index.js +1723 -0
  72. package/dist/templates/generators/index.js.map +1 -0
  73. package/dist/templates/groups/index.cjs +1690 -0
  74. package/dist/templates/groups/index.cjs.map +1 -0
  75. package/dist/templates/groups/index.d.cts +11 -0
  76. package/dist/templates/groups/index.d.ts +11 -0
  77. package/dist/templates/groups/index.js +1711 -0
  78. package/dist/templates/groups/index.js.map +1 -0
  79. package/dist/templates/index.cjs +1758 -0
  80. package/dist/templates/index.cjs.map +1 -0
  81. package/dist/templates/index.d.cts +15 -0
  82. package/dist/templates/index.d.ts +15 -0
  83. package/dist/templates/index.js +1745 -0
  84. package/dist/templates/index.js.map +1 -0
  85. package/dist/templates/modifiers/index.cjs +1708 -0
  86. package/dist/templates/modifiers/index.cjs.map +1 -0
  87. package/dist/templates/modifiers/index.d.cts +71 -0
  88. package/dist/templates/modifiers/index.d.ts +71 -0
  89. package/dist/templates/modifiers/index.js +1720 -0
  90. package/dist/templates/modifiers/index.js.map +1 -0
  91. package/dist/templates/output/index.cjs +1696 -0
  92. package/dist/templates/output/index.cjs.map +1 -0
  93. package/dist/templates/output/index.d.cts +29 -0
  94. package/dist/templates/output/index.d.ts +29 -0
  95. package/dist/templates/output/index.js +1714 -0
  96. package/dist/templates/output/index.js.map +1 -0
  97. package/dist/templates/selectors/index.cjs +1692 -0
  98. package/dist/templates/selectors/index.cjs.map +1 -0
  99. package/dist/templates/selectors/index.d.cts +22 -0
  100. package/dist/templates/selectors/index.d.ts +22 -0
  101. package/dist/templates/selectors/index.js +1712 -0
  102. package/dist/templates/selectors/index.js.map +1 -0
  103. package/dist/templates/transformers/index.cjs +1698 -0
  104. package/dist/templates/transformers/index.cjs.map +1 -0
  105. package/dist/templates/transformers/index.d.cts +40 -0
  106. package/dist/templates/transformers/index.d.ts +40 -0
  107. package/dist/templates/transformers/index.js +1715 -0
  108. package/dist/templates/transformers/index.js.map +1 -0
  109. package/package.json +111 -0
@@ -0,0 +1,1720 @@
1
+ // src/templates/modifiers/noise-abs-template.ts
2
+ import { IDGenerator as IDGenerator35 } from "@awesome-flow/core/utils";
3
+ import { Position as Position35 } from "@xyflow/system";
4
+
5
+ // src/nodes/generators/noise-simplex-node.tsx
6
+ import { NodeContainer } from "@awesome-flow/core/layout";
7
+ import { useEffect, useMemo } from "react";
8
+ import { useUpdateNodeComputedData } from "@awesome-flow/core/hooks";
9
+
10
+ // src/modules/simplex-module.ts
11
+ import Module from "libnoise-ts/module/Module";
12
+ import { createNoise3D } from "simplex-noise";
13
+
14
+ // src/nodes/generators/noise-simplex-node.tsx
15
+ import { jsx } from "react/jsx-runtime";
16
+
17
+ // src/nodes/generators/position-const-node.tsx
18
+ import { NodeContainer as NodeContainer2 } from "@awesome-flow/core/layout";
19
+ import { useEffect as useEffect2, useState } from "react";
20
+ import { Group, NumberInput, Stack } from "@mantine/core";
21
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData2, useUpdateNodeData } from "@awesome-flow/core/hooks";
22
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
23
+
24
+ // src/nodes/generators/position-grid-node.tsx
25
+ import { NodeContainer as NodeContainer3 } from "@awesome-flow/core/layout";
26
+ import { useEffect as useEffect3, useState as useState2 } from "react";
27
+ import { Group as Group2, NumberInput as NumberInput2, Stack as Stack2 } from "@mantine/core";
28
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData3, useUpdateNodeData as useUpdateNodeData2 } from "@awesome-flow/core/hooks";
29
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
30
+
31
+ // src/nodes/modifiers/noise-normalize-node.tsx
32
+ import { NodeContainer as NodeContainer4, NodeTrackConnections } from "@awesome-flow/core/layout";
33
+ import { useEffect as useEffect4, useState as useState3 } from "react";
34
+ import { Group as Group3, NumberInput as NumberInput3, Stack as Stack3 } from "@mantine/core";
35
+ import {
36
+ useIncomingComputedData,
37
+ useUpdateNodeComputedData as useUpdateNodeComputedData4,
38
+ useUpdateNodeData as useUpdateNodeData3
39
+ } from "@awesome-flow/core/hooks";
40
+
41
+ // src/modules/normalize-noise-module.ts
42
+ import ModifierModule from "libnoise-ts/module/modifier";
43
+
44
+ // src/nodes/modifiers/noise-normalize-node.tsx
45
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
46
+
47
+ // src/nodes/generators/noise-const-node.tsx
48
+ import { NodeContainer as NodeContainer5 } from "@awesome-flow/core/layout";
49
+ import { useEffect as useEffect5, useMemo as useMemo2, useState as useState4 } from "react";
50
+ import { Group as Group4, NumberInput as NumberInput4, Stack as Stack4 } from "@mantine/core";
51
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData5, useUpdateNodeData as useUpdateNodeData4 } from "@awesome-flow/core/hooks";
52
+ import { Const } from "libnoise-ts/module/generator";
53
+ import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
54
+
55
+ // src/nodes/generators/noise-billow-node.tsx
56
+ import { NodeContainer as NodeContainer6, NodeTrackConnections as NodeTrackConnections2 } from "@awesome-flow/core/layout";
57
+ import { useCallback as useCallback2, useMemo as useMemo4 } from "react";
58
+ import { Billow } from "libnoise-ts/module/generator";
59
+ 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";
81
+
82
+ // src/nodes/output/noise-logger-node.tsx
83
+ 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";
86
+ import { useIncomingComputedData as useIncomingComputedData2 } from "@awesome-flow/core/hooks";
87
+ import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
88
+
89
+ // src/nodes/output/noise-raw-texture-node.tsx
90
+ 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";
92
+ 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";
95
+
96
+ // src/nodes/generators/noise-checkerboard-node.tsx
97
+ import { NodeContainer as NodeContainer9 } from "@awesome-flow/core/layout";
98
+ import { useEffect as useEffect8, useMemo as useMemo7 } from "react";
99
+ import { Checkerboard } from "libnoise-ts/module/generator";
100
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData8 } from "@awesome-flow/core/hooks";
101
+ import { jsx as jsx12 } from "react/jsx-runtime";
102
+
103
+ // src/nodes/output/positions-logger-node.tsx
104
+ 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";
107
+ import { useIncomingComputedData as useIncomingComputedData4 } from "@awesome-flow/core/hooks";
108
+ import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
109
+
110
+ // src/nodes/generators/noise-cylinders-node.tsx
111
+ import { NodeContainer as NodeContainer11, NodeTrackConnections as NodeTrackConnections6 } from "@awesome-flow/core/layout";
112
+ import { useCallback as useCallback3, useMemo as useMemo9 } from "react";
113
+ import { Cylinders } from "libnoise-ts/module/generator";
114
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData9 } from "@awesome-flow/core/hooks";
115
+ import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
116
+
117
+ // src/nodes/generators/noise-perlin-node.tsx
118
+ import { NodeContainer as NodeContainer12, NodeTrackConnections as NodeTrackConnections7 } from "@awesome-flow/core/layout";
119
+ import { useCallback as useCallback4, useMemo as useMemo10 } from "react";
120
+ import { Perlin } from "libnoise-ts/module/generator";
121
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData10 } from "@awesome-flow/core/hooks";
122
+ import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
123
+
124
+ // src/nodes/generators/noise-ridgedmulti-node.tsx
125
+ import { NodeContainer as NodeContainer13, NodeTrackConnections as NodeTrackConnections8 } from "@awesome-flow/core/layout";
126
+ import { useCallback as useCallback5, useMemo as useMemo11 } from "react";
127
+ import { RidgedMulti } from "libnoise-ts/module/generator";
128
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData11 } from "@awesome-flow/core/hooks";
129
+ import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
130
+
131
+ // src/nodes/generators/noise-spheres-node.tsx
132
+ import { NodeContainer as NodeContainer14, NodeTrackConnections as NodeTrackConnections9 } from "@awesome-flow/core/layout";
133
+ import { useCallback as useCallback6, useMemo as useMemo12 } from "react";
134
+ import { Spheres } from "libnoise-ts/module/generator";
135
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData12 } from "@awesome-flow/core/hooks";
136
+ import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
137
+
138
+ // src/nodes/generators/noise-voronoi-node.tsx
139
+ import { NodeContainer as NodeContainer15, NodeTrackConnections as NodeTrackConnections10 } from "@awesome-flow/core/layout";
140
+ import { useCallback as useCallback7 } from "react";
141
+ import { Voronoi } from "libnoise-ts/module/generator";
142
+ import { useUpdateNodeComputedData as useUpdateNodeComputedData13 } from "@awesome-flow/core/hooks";
143
+ import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
144
+
145
+ // src/nodes/modifiers/noise-combine-node.tsx
146
+ import { NodeCombobox, NodeContainer as NodeContainer16, NodeTrackConnections as NodeTrackConnections11 } from "@awesome-flow/core/layout";
147
+ import { useCallback as useCallback8, useEffect as useEffect9 } from "react";
148
+ import {
149
+ useIncomingComputedData as useIncomingComputedData5,
150
+ useUpdateNodeComputedData as useUpdateNodeComputedData14,
151
+ useUpdateNodeData as useUpdateNodeData6
152
+ } from "@awesome-flow/core/hooks";
153
+ import {
154
+ IconAsterisk,
155
+ IconChevronLeft,
156
+ IconChevronRight,
157
+ IconChevronUp,
158
+ IconPlus
159
+ } from "@tabler/icons-react";
160
+
161
+ // src/abstract/operations.ts
162
+ import { Add, Max, Min, Multiply, Power } from "libnoise-ts/module/combiner";
163
+
164
+ // src/nodes/modifiers/noise-combine-node.tsx
165
+ import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
166
+
167
+ // src/nodes/modifiers/noise-clamp-node.tsx
168
+ 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";
171
+ import {
172
+ useIncomingComputedData as useIncomingComputedData6,
173
+ useUpdateNodeComputedData as useUpdateNodeComputedData15,
174
+ useUpdateNodeData as useUpdateNodeData7
175
+ } from "@awesome-flow/core/hooks";
176
+ import { Clamp } from "libnoise-ts/module/modifier";
177
+ import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
178
+
179
+ // src/nodes/modifiers/noise-abs-node.tsx
180
+ import { NodeContainer as NodeContainer18, NodeTrackConnections as NodeTrackConnections13 } from "@awesome-flow/core/layout";
181
+ import { useEffect as useEffect11 } from "react";
182
+ import { useIncomingComputedData as useIncomingComputedData7, useUpdateNodeComputedData as useUpdateNodeComputedData16 } from "@awesome-flow/core/hooks";
183
+ import { Abs } from "libnoise-ts/module/modifier";
184
+ import { jsx as jsx21 } from "react/jsx-runtime";
185
+
186
+ // src/nodes/output/noise-output-node.tsx
187
+ 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";
192
+
193
+ // src/nodes/modifiers/noise-curve-node.tsx
194
+ 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";
196
+ import {
197
+ useIncomingComputedData as useIncomingComputedData9,
198
+ useUpdateNodeComputedData as useUpdateNodeComputedData18,
199
+ useUpdateNodeData as useUpdateNodeData8
200
+ } from "@awesome-flow/core/hooks";
201
+ import { useCallback as useCallback9, useEffect as useEffect13, useState as useState9 } from "react";
202
+ import { Curve } from "libnoise-ts/module/modifier";
203
+ import { Tuple } from "libnoise-ts/util";
204
+ import { IconX } from "@tabler/icons-react";
205
+ import { randomId } from "@mantine/hooks";
206
+ import { NodeState } from "@awesome-flow/core/abstract";
207
+ import { Fragment as Fragment3, jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
208
+
209
+ // src/nodes/modifiers/noise-exponent-node.tsx
210
+ 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";
213
+ import {
214
+ useIncomingComputedData as useIncomingComputedData10,
215
+ useUpdateNodeComputedData as useUpdateNodeComputedData19,
216
+ useUpdateNodeData as useUpdateNodeData9
217
+ } from "@awesome-flow/core/hooks";
218
+ import { Exponent } from "libnoise-ts/module/modifier";
219
+ import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
220
+
221
+ // src/nodes/modifiers/noise-invert-node.tsx
222
+ 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";
225
+ import { Invert } from "libnoise-ts/module/modifier";
226
+ import { jsx as jsx25 } from "react/jsx-runtime";
227
+
228
+ // src/nodes/modifiers/noise-scale-bias-node.tsx
229
+ 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";
232
+ import {
233
+ useIncomingComputedData as useIncomingComputedData12,
234
+ useUpdateNodeComputedData as useUpdateNodeComputedData21,
235
+ useUpdateNodeData as useUpdateNodeData10
236
+ } from "@awesome-flow/core/hooks";
237
+ import { ScaleBias } from "libnoise-ts/module/modifier";
238
+ import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
239
+
240
+ // src/nodes/modifiers/noise-terrace-node.tsx
241
+ 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";
243
+ import {
244
+ useIncomingComputedData as useIncomingComputedData13,
245
+ useUpdateNodeComputedData as useUpdateNodeComputedData22,
246
+ useUpdateNodeData as useUpdateNodeData11
247
+ } from "@awesome-flow/core/hooks";
248
+ import { useCallback as useCallback10, useEffect as useEffect17, useState as useState12 } from "react";
249
+ import { Terrace } from "libnoise-ts/module/modifier";
250
+ import { IconX as IconX2 } from "@tabler/icons-react";
251
+ import { randomId as randomId2 } from "@mantine/hooks";
252
+ import { NodeState as NodeState2 } from "@awesome-flow/core/abstract";
253
+ import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
254
+
255
+ // src/nodes/selectors/noise-blend-node.tsx
256
+ 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";
259
+ 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";
262
+
263
+ // src/nodes/selectors/noise-select-node.tsx
264
+ 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";
271
+ 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";
274
+
275
+ // src/nodes/transformers/noise-displace-node.tsx
276
+ 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";
279
+ 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";
282
+
283
+ // src/nodes/transformers/noise-rotate-point-node.tsx
284
+ import { NodeContainer as NodeContainer28, NodeTrackConnections as NodeTrackConnections23 } from "@awesome-flow/core/layout";
285
+ import { useEffect as useEffect21, useState as useState14 } from "react";
286
+ import {
287
+ useIncomingComputedData as useIncomingComputedData16,
288
+ useUpdateNodeComputedData as useUpdateNodeComputedData26,
289
+ useUpdateNodeData as useUpdateNodeData13
290
+ } from "@awesome-flow/core/hooks";
291
+ import { Group as Group15, NumberInput as NumberInput12, Stack as Stack15 } from "@mantine/core";
292
+ import { RotatePoint } from "libnoise-ts/module/transformer";
293
+ import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
294
+
295
+ // src/nodes/transformers/noise-scale-point-node.tsx
296
+ import { NodeContainer as NodeContainer29, NodeTrackConnections as NodeTrackConnections24 } from "@awesome-flow/core/layout";
297
+ import { useEffect as useEffect22, useState as useState15 } from "react";
298
+ import {
299
+ useIncomingComputedData as useIncomingComputedData17,
300
+ useUpdateNodeComputedData as useUpdateNodeComputedData27,
301
+ useUpdateNodeData as useUpdateNodeData14
302
+ } from "@awesome-flow/core/hooks";
303
+ import { Group as Group16, NumberInput as NumberInput13, Stack as Stack16 } from "@mantine/core";
304
+ import { ScalePoint } from "libnoise-ts/module/transformer";
305
+ import { jsx as jsx32, jsxs as jsxs26 } from "react/jsx-runtime";
306
+
307
+ // src/nodes/transformers/noise-translate-point-node.tsx
308
+ import { NodeContainer as NodeContainer30, NodeTrackConnections as NodeTrackConnections25 } from "@awesome-flow/core/layout";
309
+ import { useEffect as useEffect23, useState as useState16 } from "react";
310
+ import {
311
+ useIncomingComputedData as useIncomingComputedData18,
312
+ useUpdateNodeComputedData as useUpdateNodeComputedData28,
313
+ useUpdateNodeData as useUpdateNodeData15
314
+ } from "@awesome-flow/core/hooks";
315
+ import { Group as Group17, NumberInput as NumberInput14, Stack as Stack17 } from "@mantine/core";
316
+ import { TranslatePoint } from "libnoise-ts/module/transformer";
317
+ import { jsx as jsx33, jsxs as jsxs27 } from "react/jsx-runtime";
318
+
319
+ // src/nodes/transformers/noise-turbulence-node .tsx
320
+ 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";
323
+ 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";
363
+
364
+ // src/templates/generators/noise-checkerboard-template.ts
365
+ import { IDGenerator } from "@awesome-flow/core/utils";
366
+ import { Position } from "@xyflow/system";
367
+ 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
+ }
391
+ };
392
+
393
+ // src/templates/generators/noise-const-template.ts
394
+ import { IDGenerator as IDGenerator2 } from "@awesome-flow/core/utils";
395
+ import { Position as Position2 } from "@xyflow/system";
396
+ 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
+ }
423
+ };
424
+
425
+ // src/templates/generators/noise-cylinders-template.ts
426
+ import { IDGenerator as IDGenerator3 } from "@awesome-flow/core/utils";
427
+ import { Position as Position3 } from "@xyflow/system";
428
+ 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
437
+ },
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
+ }
458
+ };
459
+
460
+ // src/templates/generators/noise-perlin-template.ts
461
+ import { IDGenerator as IDGenerator4 } from "@awesome-flow/core/utils";
462
+ import { Position as Position4 } from "@xyflow/system";
463
+ 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
476
+ },
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
+ }
497
+ };
498
+
499
+ // src/templates/generators/noise-ridgedmulti-template.ts
500
+ import { IDGenerator as IDGenerator5 } from "@awesome-flow/core/utils";
501
+ import { Position as Position5 } from "@xyflow/system";
502
+ 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
516
+ },
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
+ }
537
+ };
538
+
539
+ // src/templates/generators/noise-simplex-template.ts
540
+ import { IDGenerator as IDGenerator6 } from "@awesome-flow/core/utils";
541
+ import { Position as Position6 } from "@xyflow/system";
542
+ 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"
550
+ },
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
+ }
571
+ };
572
+
573
+ // src/templates/generators/noise-spheres-template.ts
574
+ import { IDGenerator as IDGenerator7 } from "@awesome-flow/core/utils";
575
+ import { Position as Position7 } from "@xyflow/system";
576
+ 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
585
+ },
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
+ }
606
+ };
607
+
608
+ // src/templates/generators/noise-voronoi-template.ts
609
+ import { IDGenerator as IDGenerator8 } from "@awesome-flow/core/utils";
610
+ import { Position as Position8 } from "@xyflow/system";
611
+ 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
623
+ },
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
+ }
644
+ };
645
+
646
+ // src/templates/generators/position-const-template.ts
647
+ import { IDGenerator as IDGenerator9 } from "@awesome-flow/core/utils";
648
+ import { Position as Position9 } from "@xyflow/system";
649
+ 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
+ }
674
+ };
675
+
676
+ // src/templates/generators/position-grid-template.ts
677
+ import { IDGenerator as IDGenerator10 } from "@awesome-flow/core/utils";
678
+ import { Position as Position10 } from "@xyflow/system";
679
+ 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
+ }
705
+ };
706
+
707
+ // src/templates/modifiers/noise-normalize-template.ts
708
+ import { IDGenerator as IDGenerator11 } from "@awesome-flow/core/utils";
709
+ import { Position as Position11 } from "@xyflow/system";
710
+ 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
719
+ },
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
+ }
741
+ };
742
+
743
+ // src/templates/output/noise-logger-template.ts
744
+ import { IDGenerator as IDGenerator12 } from "@awesome-flow/core/utils";
745
+ import { Position as Position12 } from "@xyflow/system";
746
+ 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
+ }
770
+ };
771
+
772
+ // src/templates/output/noise-raw-texture-template.ts
773
+ import { IDGenerator as IDGenerator13 } from "@awesome-flow/core/utils";
774
+ import { Position as Position13 } from "@xyflow/system";
775
+ 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"
783
+ },
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
+ }
810
+ };
811
+
812
+ // src/templates/output/position-logger-template.ts
813
+ import { IDGenerator as IDGenerator14 } from "@awesome-flow/core/utils";
814
+ import { Position as Position14 } from "@xyflow/system";
815
+ 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
+ }
839
+ };
840
+
841
+ // src/templates/modifiers/noise-combine-template.ts
842
+ import { IDGenerator as IDGenerator15 } from "@awesome-flow/core/utils";
843
+ import { Position as Position15 } from "@xyflow/system";
844
+ 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 */
853
+ },
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
+ }
875
+ };
876
+
877
+ // src/templates/modifiers/noise-clamp-template.ts
878
+ import { IDGenerator as IDGenerator16 } from "@awesome-flow/core/utils";
879
+ import { Position as Position16 } from "@xyflow/system";
880
+ 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
890
+ },
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
+ }
912
+ };
913
+
914
+ // src/templates/output/noise-output-template.ts
915
+ import { IDGenerator as IDGenerator17 } from "@awesome-flow/core/utils";
916
+ import { Position as Position17 } from "@xyflow/system";
917
+ var NoiseOutputNodeTemplateFactory = class {
918
+ create() {
919
+ return {
920
+ id: IDGenerator17.template(),
921
+ type: "noise-output" /* noiseOutput */,
922
+ removable: false,
923
+ data: {
924
+ title: "Noise Output"
925
+ },
926
+ handles: [
927
+ {
928
+ position: Position17.Left,
929
+ dataType: 4 /* position */,
930
+ connection: "target"
931
+ },
932
+ {
933
+ position: Position17.Left,
934
+ dataType: 8 /* module */,
935
+ connection: "target",
936
+ maxConnections: 1
937
+ },
938
+ {
939
+ position: Position17.Right,
940
+ dataType: 2 /* noise */,
941
+ connection: "source"
942
+ }
943
+ ]
944
+ };
945
+ }
946
+ isHandleAllowed() {
947
+ return true;
948
+ }
949
+ getHandleAllowedDataType(type) {
950
+ switch (type) {
951
+ case "source":
952
+ return 2 /* noise */;
953
+ case "target":
954
+ return 8 /* module */ & 4 /* position */;
955
+ }
956
+ }
957
+ };
958
+
959
+ // src/templates/modifiers/noise-curve-template.ts
960
+ import { IDGenerator as IDGenerator18 } from "@awesome-flow/core/utils";
961
+ import { Position as Position18 } from "@xyflow/system";
962
+ var NoiseCurveNodeTemplateFactory = class {
963
+ create() {
964
+ return {
965
+ id: IDGenerator18.template(),
966
+ type: "noise-curve" /* noiseCurve */,
967
+ removable: false,
968
+ data: {
969
+ title: "Noise Curve",
970
+ points: []
971
+ },
972
+ handles: [
973
+ {
974
+ position: Position18.Left,
975
+ dataType: 8 /* module */,
976
+ connection: "target",
977
+ maxConnections: 1
978
+ },
979
+ {
980
+ position: Position18.Right,
981
+ dataType: 8 /* module */,
982
+ connection: "source"
983
+ }
984
+ ]
985
+ };
986
+ }
987
+ isHandleAllowed() {
988
+ return true;
989
+ }
990
+ getHandleAllowedDataType(type) {
991
+ return 8 /* module */;
992
+ }
993
+ };
994
+
995
+ // src/templates/modifiers/noise-exponent-template.ts
996
+ import { IDGenerator as IDGenerator19 } from "@awesome-flow/core/utils";
997
+ import { Position as Position19 } from "@xyflow/system";
998
+ var NoiseExponentNodeTemplateFactory = class {
999
+ create() {
1000
+ return {
1001
+ id: IDGenerator19.template(),
1002
+ type: "noise-exponent" /* noiseExponent */,
1003
+ removable: false,
1004
+ data: {
1005
+ title: "Noise Exponent",
1006
+ exponent: 1
1007
+ },
1008
+ handles: [
1009
+ {
1010
+ position: Position19.Left,
1011
+ dataType: 8 /* module */,
1012
+ connection: "target",
1013
+ maxConnections: 1
1014
+ },
1015
+ {
1016
+ position: Position19.Right,
1017
+ dataType: 8 /* module */,
1018
+ connection: "source"
1019
+ }
1020
+ ]
1021
+ };
1022
+ }
1023
+ isHandleAllowed() {
1024
+ return true;
1025
+ }
1026
+ getHandleAllowedDataType(type) {
1027
+ return 8 /* module */;
1028
+ }
1029
+ };
1030
+
1031
+ // src/templates/modifiers/noise-invert-template.ts
1032
+ import { IDGenerator as IDGenerator20 } from "@awesome-flow/core/utils";
1033
+ import { Position as Position20 } from "@xyflow/system";
1034
+ var NoiseInvertNodeTemplateFactory = class {
1035
+ create() {
1036
+ return {
1037
+ id: IDGenerator20.template(),
1038
+ type: "noise-invert" /* noiseInvert */,
1039
+ removable: false,
1040
+ data: {
1041
+ title: "Invert Noise"
1042
+ },
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
+ }
1064
+ };
1065
+
1066
+ // src/templates/modifiers/noise-scalebias-template.ts
1067
+ import { IDGenerator as IDGenerator21 } from "@awesome-flow/core/utils";
1068
+ import { Position as Position21 } from "@xyflow/system";
1069
+ var NoiseScaleBiasNodeTemplateFactory = class {
1070
+ create() {
1071
+ return {
1072
+ id: IDGenerator21.template(),
1073
+ type: "noise-scale-bias" /* noiseScaleBias */,
1074
+ removable: false,
1075
+ data: {
1076
+ title: "Scale/Bias Noise",
1077
+ scale: 1,
1078
+ bias: 0
1079
+ },
1080
+ handles: [
1081
+ {
1082
+ position: Position21.Left,
1083
+ dataType: 8 /* module */,
1084
+ connection: "target",
1085
+ maxConnections: 1
1086
+ },
1087
+ {
1088
+ position: Position21.Right,
1089
+ dataType: 8 /* module */,
1090
+ connection: "source"
1091
+ }
1092
+ ]
1093
+ };
1094
+ }
1095
+ isHandleAllowed() {
1096
+ return true;
1097
+ }
1098
+ getHandleAllowedDataType(type) {
1099
+ return 8 /* module */;
1100
+ }
1101
+ };
1102
+
1103
+ // src/templates/modifiers/noise-terrace-template.ts
1104
+ import { IDGenerator as IDGenerator22 } from "@awesome-flow/core/utils";
1105
+ import { Position as Position22 } from "@xyflow/system";
1106
+ var NoiseTerraceNodeTemplateFactory = class {
1107
+ create() {
1108
+ return {
1109
+ id: IDGenerator22.template(),
1110
+ type: "noise-terrace" /* noiseTerrace */,
1111
+ removable: false,
1112
+ data: {
1113
+ title: "Noise Terrace",
1114
+ points: []
1115
+ },
1116
+ handles: [
1117
+ {
1118
+ position: Position22.Left,
1119
+ dataType: 8 /* module */,
1120
+ connection: "target",
1121
+ maxConnections: 1
1122
+ },
1123
+ {
1124
+ position: Position22.Right,
1125
+ dataType: 8 /* module */,
1126
+ connection: "source"
1127
+ }
1128
+ ]
1129
+ };
1130
+ }
1131
+ isHandleAllowed() {
1132
+ return true;
1133
+ }
1134
+ getHandleAllowedDataType(type) {
1135
+ return 8 /* module */;
1136
+ }
1137
+ };
1138
+
1139
+ // src/templates/selectors/noise-blend-template.ts
1140
+ import { IDGenerator as IDGenerator23 } from "@awesome-flow/core/utils";
1141
+ import { Position as Position23 } from "@xyflow/system";
1142
+ var NoiseBlendNodeTemplateFactory = class {
1143
+ create() {
1144
+ return {
1145
+ id: IDGenerator23.template(),
1146
+ type: "noise-blend" /* noiseBlend */,
1147
+ removable: false,
1148
+ data: {
1149
+ title: "Noise Blend"
1150
+ },
1151
+ handles: [
1152
+ {
1153
+ position: Position23.Left,
1154
+ dataType: 8 /* module */,
1155
+ connection: "target",
1156
+ label: "Source Modules",
1157
+ maxConnections: 2
1158
+ },
1159
+ {
1160
+ position: Position23.Left,
1161
+ dataType: 8 /* module */,
1162
+ connection: "target",
1163
+ label: "Control Module",
1164
+ maxConnections: 1
1165
+ },
1166
+ {
1167
+ position: Position23.Right,
1168
+ dataType: 8 /* module */,
1169
+ connection: "source"
1170
+ }
1171
+ ]
1172
+ };
1173
+ }
1174
+ isHandleAllowed() {
1175
+ return true;
1176
+ }
1177
+ getHandleAllowedDataType() {
1178
+ return 8 /* module */;
1179
+ }
1180
+ };
1181
+
1182
+ // src/templates/selectors/noise-select-template.ts
1183
+ import { IDGenerator as IDGenerator24 } from "@awesome-flow/core/utils";
1184
+ import { Position as Position24 } from "@xyflow/system";
1185
+ var NoiseSelectNodeTemplateFactory = class {
1186
+ create() {
1187
+ return {
1188
+ id: IDGenerator24.template(),
1189
+ type: "noise-select" /* noiseSelect */,
1190
+ removable: false,
1191
+ data: {
1192
+ title: "Noise Select",
1193
+ edgeFalloff: 0,
1194
+ lowerBound: -1,
1195
+ upperBound: 1
1196
+ },
1197
+ handles: [
1198
+ {
1199
+ position: Position24.Left,
1200
+ dataType: 8 /* module */,
1201
+ connection: "target",
1202
+ label: "Source Modules",
1203
+ maxConnections: 2
1204
+ },
1205
+ {
1206
+ position: Position24.Left,
1207
+ dataType: 8 /* module */,
1208
+ connection: "target",
1209
+ label: "Control Module",
1210
+ maxConnections: 1
1211
+ },
1212
+ {
1213
+ position: Position24.Right,
1214
+ dataType: 8 /* module */,
1215
+ connection: "source"
1216
+ }
1217
+ ]
1218
+ };
1219
+ }
1220
+ isHandleAllowed() {
1221
+ return true;
1222
+ }
1223
+ getHandleAllowedDataType() {
1224
+ return 8 /* module */;
1225
+ }
1226
+ };
1227
+
1228
+ // src/templates/transformers/noise-displace-template.ts
1229
+ import { IDGenerator as IDGenerator25 } from "@awesome-flow/core/utils";
1230
+ import { Position as Position25 } from "@xyflow/system";
1231
+ var NoiseDisplaceNodeTemplateFactory = class {
1232
+ create() {
1233
+ return {
1234
+ id: IDGenerator25.template(),
1235
+ type: "noise-displace" /* noiseDisplace */,
1236
+ data: {
1237
+ title: "Noise Displace"
1238
+ },
1239
+ handles: [
1240
+ {
1241
+ position: Position25.Left,
1242
+ connection: "target",
1243
+ label: "Source Module",
1244
+ dataType: 8 /* module */,
1245
+ dataId: "source" /* sourceModule */,
1246
+ maxConnections: 1
1247
+ },
1248
+ {
1249
+ position: Position25.Left,
1250
+ connection: "target",
1251
+ label: "X Module",
1252
+ dataType: 8 /* module */,
1253
+ dataId: "x-module" /* xModule */,
1254
+ maxConnections: 1
1255
+ },
1256
+ {
1257
+ position: Position25.Left,
1258
+ connection: "target",
1259
+ label: "Y Module",
1260
+ dataType: 8 /* module */,
1261
+ dataId: "y-module" /* yModule */,
1262
+ maxConnections: 1
1263
+ },
1264
+ {
1265
+ position: Position25.Left,
1266
+ connection: "target",
1267
+ label: "Z Module",
1268
+ dataType: 8 /* module */,
1269
+ dataId: "z-module" /* zModule */,
1270
+ maxConnections: 1
1271
+ },
1272
+ {
1273
+ position: Position25.Right,
1274
+ dataType: 8 /* module */,
1275
+ dataId: "output" /* output */,
1276
+ connection: "source"
1277
+ }
1278
+ ]
1279
+ };
1280
+ }
1281
+ isHandleAllowed() {
1282
+ return true;
1283
+ }
1284
+ getHandleAllowedDataType() {
1285
+ return 8 /* module */;
1286
+ }
1287
+ };
1288
+
1289
+ // src/templates/transformers/noise-rotate-point-template.ts
1290
+ import { IDGenerator as IDGenerator26 } from "@awesome-flow/core/utils";
1291
+ import { Position as Position26 } from "@xyflow/system";
1292
+ var NoiseRotatePointNodeTemplateFactory = class {
1293
+ create() {
1294
+ return {
1295
+ id: IDGenerator26.template(),
1296
+ type: "noise-rotate-point" /* noiseRotatePoint */,
1297
+ removable: false,
1298
+ data: {
1299
+ title: "Noise Rotate Point",
1300
+ xAngle: 0,
1301
+ yAngle: 0,
1302
+ zAngle: 0
1303
+ },
1304
+ handles: [
1305
+ {
1306
+ position: Position26.Left,
1307
+ dataType: 8 /* module */,
1308
+ connection: "target",
1309
+ label: "Source Module",
1310
+ maxConnections: 1
1311
+ },
1312
+ {
1313
+ position: Position26.Right,
1314
+ dataType: 8 /* module */,
1315
+ connection: "source"
1316
+ }
1317
+ ]
1318
+ };
1319
+ }
1320
+ isHandleAllowed() {
1321
+ return true;
1322
+ }
1323
+ getHandleAllowedDataType() {
1324
+ return 8 /* module */;
1325
+ }
1326
+ };
1327
+
1328
+ // src/templates/transformers/noise-scale-point-template.ts
1329
+ import { IDGenerator as IDGenerator27 } from "@awesome-flow/core/utils";
1330
+ import { Position as Position27 } from "@xyflow/system";
1331
+ var NoiseScalePointNodeTemplateFactory = class {
1332
+ create() {
1333
+ return {
1334
+ id: IDGenerator27.template(),
1335
+ type: "noise-scale-point" /* noiseScalePoint */,
1336
+ data: {
1337
+ title: "Noise Scale Point",
1338
+ xScale: 1,
1339
+ yScale: 1,
1340
+ zScale: 1
1341
+ },
1342
+ handles: [
1343
+ {
1344
+ position: Position27.Left,
1345
+ dataType: 8 /* module */,
1346
+ connection: "target",
1347
+ label: "Source Module",
1348
+ maxConnections: 1
1349
+ },
1350
+ {
1351
+ position: Position27.Right,
1352
+ dataType: 8 /* module */,
1353
+ connection: "source"
1354
+ }
1355
+ ]
1356
+ };
1357
+ }
1358
+ isHandleAllowed() {
1359
+ return true;
1360
+ }
1361
+ getHandleAllowedDataType() {
1362
+ return 8 /* module */;
1363
+ }
1364
+ };
1365
+
1366
+ // src/templates/transformers/noise-translate-point-template.ts
1367
+ import { IDGenerator as IDGenerator28 } from "@awesome-flow/core/utils";
1368
+ import { Position as Position28 } from "@xyflow/system";
1369
+ var NoiseTranslatePointNodeTemplateFactory = class {
1370
+ create() {
1371
+ return {
1372
+ id: IDGenerator28.template(),
1373
+ type: "noise-translate-point" /* noiseTranslatePoint */,
1374
+ data: {
1375
+ title: "Noise Translate Point",
1376
+ translateX: 0,
1377
+ translateY: 0,
1378
+ translateZ: 0
1379
+ },
1380
+ handles: [
1381
+ {
1382
+ position: Position28.Left,
1383
+ dataType: 8 /* module */,
1384
+ connection: "target",
1385
+ label: "Source Module",
1386
+ maxConnections: 1
1387
+ },
1388
+ {
1389
+ position: Position28.Right,
1390
+ dataType: 8 /* module */,
1391
+ connection: "source"
1392
+ }
1393
+ ]
1394
+ };
1395
+ }
1396
+ isHandleAllowed() {
1397
+ return true;
1398
+ }
1399
+ getHandleAllowedDataType() {
1400
+ return 8 /* module */;
1401
+ }
1402
+ };
1403
+
1404
+ // src/templates/transformers/noise-turbulence-template.ts
1405
+ import { IDGenerator as IDGenerator29 } from "@awesome-flow/core/utils";
1406
+ import { Position as Position29 } from "@xyflow/system";
1407
+ var NoiseTurbulenceNodeTemplateFactory = class {
1408
+ create() {
1409
+ return {
1410
+ id: IDGenerator29.template(),
1411
+ type: "noise-turbulence" /* noiseTurbulence */,
1412
+ data: {
1413
+ title: "Noise Turbulence",
1414
+ frequency: 1,
1415
+ power: 1,
1416
+ roughness: 1,
1417
+ seed: 0
1418
+ },
1419
+ handles: [
1420
+ {
1421
+ position: Position29.Left,
1422
+ dataType: 8 /* module */,
1423
+ connection: "target",
1424
+ label: "Source Module",
1425
+ maxConnections: 1
1426
+ },
1427
+ {
1428
+ position: Position29.Left,
1429
+ dataType: 16 /* variableProperty */,
1430
+ label: "Variable Properties",
1431
+ connection: "target"
1432
+ },
1433
+ {
1434
+ position: Position29.Right,
1435
+ dataType: 8 /* module */,
1436
+ connection: "source"
1437
+ }
1438
+ ]
1439
+ };
1440
+ }
1441
+ isHandleAllowed() {
1442
+ return true;
1443
+ }
1444
+ getHandleAllowedDataType() {
1445
+ return 8 /* module */;
1446
+ }
1447
+ };
1448
+
1449
+ // src/templates/generators/variable-property-template.ts
1450
+ import { IDGenerator as IDGenerator30 } from "@awesome-flow/core/utils";
1451
+ import { Position as Position30 } from "@xyflow/system";
1452
+ var VariablePropertyNodeTemplateFactory = class {
1453
+ create() {
1454
+ return {
1455
+ id: IDGenerator30.template(),
1456
+ type: "variable-property" /* variableProperty */,
1457
+ data: {
1458
+ title: "Variable Property",
1459
+ property: null
1460
+ },
1461
+ handles: [
1462
+ {
1463
+ position: Position30.Left,
1464
+ dataType: 32 /* variableValue */,
1465
+ connection: "target",
1466
+ maxConnections: 1
1467
+ },
1468
+ {
1469
+ position: Position30.Right,
1470
+ dataType: 16 /* variableProperty */,
1471
+ connection: "source"
1472
+ }
1473
+ ]
1474
+ };
1475
+ }
1476
+ isHandleAllowed(type) {
1477
+ return true;
1478
+ }
1479
+ getHandleAllowedDataType(type) {
1480
+ switch (type) {
1481
+ case "source":
1482
+ return 16 /* variableProperty */;
1483
+ case "target":
1484
+ return 32 /* variableValue */;
1485
+ }
1486
+ }
1487
+ };
1488
+
1489
+ // src/templates/modifiers/variable-combine-template.ts
1490
+ import { IDGenerator as IDGenerator31 } from "@awesome-flow/core/utils";
1491
+ import { Position as Position31 } from "@xyflow/system";
1492
+ var VariableCombineNodeTemplateFactory = class {
1493
+ create() {
1494
+ return {
1495
+ id: IDGenerator31.template(),
1496
+ type: "variable-combine" /* variableCombine */,
1497
+ removable: false,
1498
+ data: {
1499
+ title: "Combine Values",
1500
+ operation: "add" /* add */,
1501
+ value: null
1502
+ },
1503
+ handles: [
1504
+ {
1505
+ position: Position31.Left,
1506
+ dataType: 32 /* variableValue */,
1507
+ connection: "target"
1508
+ },
1509
+ {
1510
+ position: Position31.Right,
1511
+ dataType: 32 /* variableValue */,
1512
+ connection: "source"
1513
+ }
1514
+ ]
1515
+ };
1516
+ }
1517
+ isHandleAllowed() {
1518
+ return true;
1519
+ }
1520
+ getHandleAllowedDataType(type) {
1521
+ return 8 /* module */;
1522
+ }
1523
+ };
1524
+
1525
+ // src/templates/generators/variable-value-template.ts
1526
+ import { IDGenerator as IDGenerator32 } from "@awesome-flow/core/utils";
1527
+ import { Position as Position32 } from "@xyflow/system";
1528
+ var VariableValueNodeTemplateFactory = class {
1529
+ create() {
1530
+ return {
1531
+ id: IDGenerator32.template(),
1532
+ type: "variable-value" /* variableValue */,
1533
+ data: {
1534
+ title: "Variable Value",
1535
+ value: null
1536
+ },
1537
+ handles: [
1538
+ {
1539
+ position: Position32.Right,
1540
+ dataType: 32 /* variableValue */,
1541
+ connection: "source"
1542
+ }
1543
+ ]
1544
+ };
1545
+ }
1546
+ isHandleAllowed(type) {
1547
+ return type === "source";
1548
+ }
1549
+ getHandleAllowedDataType(type) {
1550
+ return 32 /* variableValue */;
1551
+ }
1552
+ };
1553
+
1554
+ // src/templates/groups/module-group-template.ts
1555
+ import { IDGenerator as IDGenerator33 } from "@awesome-flow/core/utils";
1556
+ import { Position as Position33 } from "@xyflow/system";
1557
+ var ModuleGroupNodeTemplateFactory = class {
1558
+ create() {
1559
+ return {
1560
+ id: IDGenerator33.template(),
1561
+ type: "group-module" /* groupModule */,
1562
+ data: {
1563
+ title: "Modules Group",
1564
+ isGroup: true,
1565
+ initialSize: {
1566
+ width: 300,
1567
+ height: 200
1568
+ },
1569
+ collapsedSize: {
1570
+ width: 300,
1571
+ height: 80
1572
+ }
1573
+ },
1574
+ handles: [
1575
+ {
1576
+ position: Position33.Bottom,
1577
+ dataType: 8 /* module */,
1578
+ connection: "target",
1579
+ maxConnections: 1,
1580
+ hideOnCollapse: true
1581
+ },
1582
+ {
1583
+ position: Position33.Right,
1584
+ dataType: 8 /* module */,
1585
+ connection: "source"
1586
+ }
1587
+ ]
1588
+ };
1589
+ }
1590
+ isHandleAllowed(type) {
1591
+ return true;
1592
+ }
1593
+ getHandleAllowedDataType(type) {
1594
+ return 8 /* module */;
1595
+ }
1596
+ };
1597
+
1598
+ // src/templates/generators/noise-billow-template.ts
1599
+ import { IDGenerator as IDGenerator34 } from "@awesome-flow/core/utils";
1600
+ import { Position as Position34 } from "@xyflow/system";
1601
+ var NoiseBillowNodeTemplateFactory = class {
1602
+ create() {
1603
+ return {
1604
+ id: IDGenerator34.template(),
1605
+ type: "noise-billow" /* noiseBillow */,
1606
+ removable: false,
1607
+ data: {
1608
+ title: "Billow Noise",
1609
+ frequency: 0.1,
1610
+ lacunarity: 2,
1611
+ octaves: 5,
1612
+ persistence: 0.5,
1613
+ seed: 0
1614
+ },
1615
+ handles: [
1616
+ {
1617
+ position: Position34.Left,
1618
+ dataType: 16 /* variableProperty */,
1619
+ connection: "target"
1620
+ },
1621
+ {
1622
+ position: Position34.Right,
1623
+ dataType: 8 /* module */,
1624
+ connection: "source"
1625
+ }
1626
+ ]
1627
+ };
1628
+ }
1629
+ isHandleAllowed(type) {
1630
+ return type === "source";
1631
+ }
1632
+ getHandleAllowedDataType() {
1633
+ return 8 /* module */;
1634
+ }
1635
+ };
1636
+
1637
+ // src/abstract/node-types.ts
1638
+ var noiseNodeTemplates = {
1639
+ ["noise-output" /* noiseOutput */]: new NoiseOutputNodeTemplateFactory(),
1640
+ ["noise-simplex" /* noiseSimplex */]: new NoiseSimplexNodeTemplateFactory(),
1641
+ ["noise-billow" /* noiseBillow */]: new NoiseBillowNodeTemplateFactory(),
1642
+ ["noise-checkerboard" /* noiseCheckerboard */]: new NoiseCheckerboardNodeTemplateFactory(),
1643
+ ["noise-normalize" /* noiseNormalize */]: new NoiseNormalizeNodeTemplateFactory(),
1644
+ ["noise-logger" /* noiseLogger */]: new NoiseLoggerNodeTemplateFactory(),
1645
+ ["noise-constant" /* noiseConst */]: new NoiseConstNodeTemplateFactory(),
1646
+ ["position" /* position */]: new PositionConstNodeTemplateFactory(),
1647
+ ["position-logger" /* positionLogger */]: new PositionLoggerNodeTemplateFactory(),
1648
+ ["grid" /* grid */]: new PositionGridNodeTemplateFactory(),
1649
+ ["texture-data" /* textureData */]: new NoiseRawTextureTemplateFactory(),
1650
+ ["noise-cylinders" /* noiseCylinders */]: new NoiseCylindersNodeTemplateFactory(),
1651
+ ["noise-perlin" /* noisePerlin */]: new NoisePerlinNodeTemplateFactory(),
1652
+ ["noise-ridged-multi" /* noiseRidgedMulti */]: new NoiseRidgedMultiNodeTemplateFactory(),
1653
+ ["noise-spheres" /* noiseSpheres */]: new NoiseSpheresNodeTemplateFactory(),
1654
+ ["noise-voronoi" /* noiseVoronoi */]: new NoiseVoronoiNodeTemplateFactory(),
1655
+ ["noise-combiner" /* noiseCombine */]: new NoiseCombineNodeTemplateFactory(),
1656
+ ["noise-clamp" /* noiseClamp */]: new NoiseClampNodeTemplateFactory(),
1657
+ ["noise-abs" /* noiseAbs */]: new NoiseAbsNodeTemplateFactory(),
1658
+ ["noise-curve" /* noiseCurve */]: new NoiseCurveNodeTemplateFactory(),
1659
+ ["noise-exponent" /* noiseExponent */]: new NoiseExponentNodeTemplateFactory(),
1660
+ ["noise-invert" /* noiseInvert */]: new NoiseInvertNodeTemplateFactory(),
1661
+ ["noise-scale-bias" /* noiseScaleBias */]: new NoiseScaleBiasNodeTemplateFactory(),
1662
+ ["noise-terrace" /* noiseTerrace */]: new NoiseTerraceNodeTemplateFactory(),
1663
+ ["noise-blend" /* noiseBlend */]: new NoiseBlendNodeTemplateFactory(),
1664
+ ["noise-select" /* noiseSelect */]: new NoiseSelectNodeTemplateFactory(),
1665
+ ["noise-displace" /* noiseDisplace */]: new NoiseDisplaceNodeTemplateFactory(),
1666
+ ["noise-rotate-point" /* noiseRotatePoint */]: new NoiseRotatePointNodeTemplateFactory(),
1667
+ ["noise-scale-point" /* noiseScalePoint */]: new NoiseScalePointNodeTemplateFactory(),
1668
+ ["noise-translate-point" /* noiseTranslatePoint */]: new NoiseTranslatePointNodeTemplateFactory(),
1669
+ ["noise-turbulence" /* noiseTurbulence */]: new NoiseTurbulenceNodeTemplateFactory(),
1670
+ ["variable-property" /* variableProperty */]: new VariablePropertyNodeTemplateFactory(),
1671
+ ["variable-combine" /* variableCombine */]: new VariableCombineNodeTemplateFactory(),
1672
+ ["variable-value" /* variableValue */]: new VariableValueNodeTemplateFactory(),
1673
+ ["group-module" /* groupModule */]: new ModuleGroupNodeTemplateFactory()
1674
+ };
1675
+
1676
+ // src/templates/modifiers/noise-abs-template.ts
1677
+ var NoiseAbsNodeTemplateFactory = class {
1678
+ create() {
1679
+ return {
1680
+ id: IDGenerator35.template(),
1681
+ type: "noise-abs" /* noiseAbs */,
1682
+ removable: false,
1683
+ data: {
1684
+ title: "Abs Noise"
1685
+ },
1686
+ handles: [
1687
+ {
1688
+ position: Position35.Left,
1689
+ dataType: 8 /* module */,
1690
+ connection: "target",
1691
+ maxConnections: 1
1692
+ },
1693
+ {
1694
+ position: Position35.Right,
1695
+ dataType: 8 /* module */,
1696
+ connection: "source"
1697
+ }
1698
+ ]
1699
+ };
1700
+ }
1701
+ isHandleAllowed() {
1702
+ return true;
1703
+ }
1704
+ getHandleAllowedDataType(type) {
1705
+ return 8 /* module */;
1706
+ }
1707
+ };
1708
+ export {
1709
+ NoiseAbsNodeTemplateFactory,
1710
+ NoiseClampNodeTemplateFactory,
1711
+ NoiseCombineNodeTemplateFactory,
1712
+ NoiseCurveNodeTemplateFactory,
1713
+ NoiseExponentNodeTemplateFactory,
1714
+ NoiseInvertNodeTemplateFactory,
1715
+ NoiseNormalizeNodeTemplateFactory,
1716
+ NoiseScaleBiasNodeTemplateFactory,
1717
+ NoiseTerraceNodeTemplateFactory,
1718
+ VariableCombineNodeTemplateFactory
1719
+ };
1720
+ //# sourceMappingURL=index.js.map