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