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