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