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