@awesome-flow/noise 0.5.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 +701 -769
- package/dist/abstract/index.d.cts +6 -12
- package/dist/abstract/index.d.ts +6 -12
- package/dist/abstract/index.js +498 -568
- 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 +642 -710
- package/dist/nodes/index.d.cts +3 -6
- package/dist/nodes/index.d.ts +3 -6
- package/dist/nodes/index.js +443 -512
- package/dist/nodes/modifiers/index.cjs +77 -89
- package/dist/nodes/modifiers/index.d.cts +2 -5
- package/dist/nodes/modifiers/index.d.ts +2 -5
- package/dist/nodes/modifiers/index.js +73 -85
- 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/output/noise-logger-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-raw-texture-template.ts
|
|
591
|
-
import { Position as
|
|
551
|
+
import { Position as Position11 } from "@xyflow/system";
|
|
592
552
|
var NoiseRawTextureTemplateFactory = class {
|
|
593
553
|
template = {
|
|
594
554
|
type: "texture-data" /* textureData */,
|
|
@@ -598,13 +558,13 @@ var NoiseRawTextureTemplateFactory = 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
|
maxConnections: 1
|
|
605
565
|
},
|
|
606
566
|
{
|
|
607
|
-
position:
|
|
567
|
+
position: Position11.Right,
|
|
608
568
|
dataType: "texture" /* texture */,
|
|
609
569
|
connection: "source"
|
|
610
570
|
}
|
|
@@ -613,7 +573,7 @@ var NoiseRawTextureTemplateFactory = class {
|
|
|
613
573
|
};
|
|
614
574
|
|
|
615
575
|
// src/templates/output/position-logger-template.ts
|
|
616
|
-
import { Position as
|
|
576
|
+
import { Position as Position12 } from "@xyflow/system";
|
|
617
577
|
var PositionLoggerNodeTemplateFactory = class {
|
|
618
578
|
template = {
|
|
619
579
|
type: "position-logger" /* positionLogger */,
|
|
@@ -623,7 +583,7 @@ var PositionLoggerNodeTemplateFactory = class {
|
|
|
623
583
|
},
|
|
624
584
|
handles: [
|
|
625
585
|
{
|
|
626
|
-
position:
|
|
586
|
+
position: Position12.Left,
|
|
627
587
|
dataType: "position" /* position */,
|
|
628
588
|
connection: "target"
|
|
629
589
|
}
|
|
@@ -632,7 +592,7 @@ var PositionLoggerNodeTemplateFactory = class {
|
|
|
632
592
|
};
|
|
633
593
|
|
|
634
594
|
// src/templates/modifiers/noise-combine-template.ts
|
|
635
|
-
import { Position as
|
|
595
|
+
import { Position as Position13 } from "@xyflow/system";
|
|
636
596
|
var NoiseCombineNodeTemplateFactory = class {
|
|
637
597
|
template = {
|
|
638
598
|
type: "noise-combiner" /* noiseCombine */,
|
|
@@ -643,13 +603,13 @@ var NoiseCombineNodeTemplateFactory = class {
|
|
|
643
603
|
},
|
|
644
604
|
handles: [
|
|
645
605
|
{
|
|
646
|
-
position:
|
|
606
|
+
position: Position13.Left,
|
|
647
607
|
dataType: "module" /* module */,
|
|
648
608
|
connection: "target",
|
|
649
609
|
maxConnections: 2
|
|
650
610
|
},
|
|
651
611
|
{
|
|
652
|
-
position:
|
|
612
|
+
position: Position13.Right,
|
|
653
613
|
dataType: "module" /* module */,
|
|
654
614
|
connection: "source"
|
|
655
615
|
}
|
|
@@ -658,7 +618,7 @@ var NoiseCombineNodeTemplateFactory = class {
|
|
|
658
618
|
};
|
|
659
619
|
|
|
660
620
|
// src/templates/modifiers/noise-clamp-template.ts
|
|
661
|
-
import { Position as
|
|
621
|
+
import { Position as Position14 } from "@xyflow/system";
|
|
662
622
|
var NoiseClampNodeTemplateFactory = class {
|
|
663
623
|
template = {
|
|
664
624
|
type: "noise-clamp" /* noiseClamp */,
|
|
@@ -670,13 +630,13 @@ var NoiseClampNodeTemplateFactory = class {
|
|
|
670
630
|
},
|
|
671
631
|
handles: [
|
|
672
632
|
{
|
|
673
|
-
position:
|
|
633
|
+
position: Position14.Left,
|
|
674
634
|
dataType: "module" /* module */,
|
|
675
635
|
connection: "target",
|
|
676
636
|
maxConnections: 1
|
|
677
637
|
},
|
|
678
638
|
{
|
|
679
|
-
position:
|
|
639
|
+
position: Position14.Right,
|
|
680
640
|
dataType: "module" /* module */,
|
|
681
641
|
connection: "source"
|
|
682
642
|
}
|
|
@@ -685,7 +645,7 @@ var NoiseClampNodeTemplateFactory = class {
|
|
|
685
645
|
};
|
|
686
646
|
|
|
687
647
|
// src/templates/modifiers/noise-abs-template.ts
|
|
688
|
-
import { Position as
|
|
648
|
+
import { Position as Position15 } from "@xyflow/system";
|
|
689
649
|
var NoiseAbsNodeTemplateFactory = class {
|
|
690
650
|
template = {
|
|
691
651
|
type: "noise-abs" /* noiseAbs */,
|
|
@@ -695,13 +655,13 @@ var NoiseAbsNodeTemplateFactory = class {
|
|
|
695
655
|
},
|
|
696
656
|
handles: [
|
|
697
657
|
{
|
|
698
|
-
position:
|
|
658
|
+
position: Position15.Left,
|
|
699
659
|
dataType: "module" /* module */,
|
|
700
660
|
connection: "target",
|
|
701
661
|
maxConnections: 1
|
|
702
662
|
},
|
|
703
663
|
{
|
|
704
|
-
position:
|
|
664
|
+
position: Position15.Right,
|
|
705
665
|
dataType: "module" /* module */,
|
|
706
666
|
connection: "source"
|
|
707
667
|
}
|
|
@@ -710,7 +670,7 @@ var NoiseAbsNodeTemplateFactory = class {
|
|
|
710
670
|
};
|
|
711
671
|
|
|
712
672
|
// src/templates/output/noise-output-template.ts
|
|
713
|
-
import { Position as
|
|
673
|
+
import { Position as Position16 } from "@xyflow/system";
|
|
714
674
|
var NoiseOutputNodeTemplateFactory = class {
|
|
715
675
|
template = {
|
|
716
676
|
type: "noise-output" /* noiseOutput */,
|
|
@@ -720,18 +680,18 @@ var NoiseOutputNodeTemplateFactory = class {
|
|
|
720
680
|
},
|
|
721
681
|
handles: [
|
|
722
682
|
{
|
|
723
|
-
position:
|
|
683
|
+
position: Position16.Left,
|
|
724
684
|
dataType: "position" /* position */,
|
|
725
685
|
connection: "target"
|
|
726
686
|
},
|
|
727
687
|
{
|
|
728
|
-
position:
|
|
688
|
+
position: Position16.Left,
|
|
729
689
|
dataType: "module" /* module */,
|
|
730
690
|
connection: "target",
|
|
731
691
|
maxConnections: 1
|
|
732
692
|
},
|
|
733
693
|
{
|
|
734
|
-
position:
|
|
694
|
+
position: Position16.Right,
|
|
735
695
|
dataType: "noise" /* noise */,
|
|
736
696
|
connection: "source"
|
|
737
697
|
}
|
|
@@ -740,8 +700,7 @@ var NoiseOutputNodeTemplateFactory = class {
|
|
|
740
700
|
};
|
|
741
701
|
|
|
742
702
|
// src/templates/modifiers/noise-curve-template.ts
|
|
743
|
-
import {
|
|
744
|
-
import { Position as Position18 } from "@xyflow/system";
|
|
703
|
+
import { Position as Position17 } from "@xyflow/system";
|
|
745
704
|
var NoiseCurveNodeTemplateFactory = class {
|
|
746
705
|
template = {
|
|
747
706
|
type: "noise-curve" /* noiseCurve */,
|
|
@@ -752,18 +711,18 @@ var NoiseCurveNodeTemplateFactory = class {
|
|
|
752
711
|
},
|
|
753
712
|
handles: [
|
|
754
713
|
{
|
|
755
|
-
position:
|
|
714
|
+
position: Position17.Left,
|
|
756
715
|
dataType: "module" /* module */,
|
|
757
716
|
connection: "target",
|
|
758
717
|
maxConnections: 1
|
|
759
718
|
},
|
|
719
|
+
// {
|
|
720
|
+
// position: Position.Left,
|
|
721
|
+
// dataType: CoreHandleType.variableProperty,
|
|
722
|
+
// connection: 'target',
|
|
723
|
+
// },
|
|
760
724
|
{
|
|
761
|
-
position:
|
|
762
|
-
dataType: CoreHandleType7.variableProperty,
|
|
763
|
-
connection: "target"
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
position: Position18.Right,
|
|
725
|
+
position: Position17.Right,
|
|
767
726
|
dataType: "module" /* module */,
|
|
768
727
|
connection: "source"
|
|
769
728
|
}
|
|
@@ -772,7 +731,7 @@ var NoiseCurveNodeTemplateFactory = class {
|
|
|
772
731
|
};
|
|
773
732
|
|
|
774
733
|
// src/templates/modifiers/noise-exponent-template.ts
|
|
775
|
-
import { Position as
|
|
734
|
+
import { Position as Position18 } from "@xyflow/system";
|
|
776
735
|
var NoiseExponentNodeTemplateFactory = class {
|
|
777
736
|
template = {
|
|
778
737
|
type: "noise-exponent" /* noiseExponent */,
|
|
@@ -783,13 +742,13 @@ var NoiseExponentNodeTemplateFactory = class {
|
|
|
783
742
|
},
|
|
784
743
|
handles: [
|
|
785
744
|
{
|
|
786
|
-
position:
|
|
745
|
+
position: Position18.Left,
|
|
787
746
|
dataType: "module" /* module */,
|
|
788
747
|
connection: "target",
|
|
789
748
|
maxConnections: 1
|
|
790
749
|
},
|
|
791
750
|
{
|
|
792
|
-
position:
|
|
751
|
+
position: Position18.Right,
|
|
793
752
|
dataType: "module" /* module */,
|
|
794
753
|
connection: "source"
|
|
795
754
|
}
|
|
@@ -798,7 +757,7 @@ var NoiseExponentNodeTemplateFactory = class {
|
|
|
798
757
|
};
|
|
799
758
|
|
|
800
759
|
// src/templates/modifiers/noise-invert-template.ts
|
|
801
|
-
import { Position as
|
|
760
|
+
import { Position as Position19 } from "@xyflow/system";
|
|
802
761
|
var NoiseInvertNodeTemplateFactory = class {
|
|
803
762
|
template = {
|
|
804
763
|
type: "noise-invert" /* noiseInvert */,
|
|
@@ -808,13 +767,13 @@ var NoiseInvertNodeTemplateFactory = class {
|
|
|
808
767
|
},
|
|
809
768
|
handles: [
|
|
810
769
|
{
|
|
811
|
-
position:
|
|
770
|
+
position: Position19.Left,
|
|
812
771
|
dataType: "module" /* module */,
|
|
813
772
|
connection: "target",
|
|
814
773
|
maxConnections: 1
|
|
815
774
|
},
|
|
816
775
|
{
|
|
817
|
-
position:
|
|
776
|
+
position: Position19.Right,
|
|
818
777
|
dataType: "module" /* module */,
|
|
819
778
|
connection: "source"
|
|
820
779
|
}
|
|
@@ -823,7 +782,7 @@ var NoiseInvertNodeTemplateFactory = class {
|
|
|
823
782
|
};
|
|
824
783
|
|
|
825
784
|
// src/templates/modifiers/noise-scalebias-template.ts
|
|
826
|
-
import { Position as
|
|
785
|
+
import { Position as Position20 } from "@xyflow/system";
|
|
827
786
|
var NoiseScaleBiasNodeTemplateFactory = class {
|
|
828
787
|
template = {
|
|
829
788
|
type: "noise-scale-bias" /* noiseScaleBias */,
|
|
@@ -835,13 +794,13 @@ var NoiseScaleBiasNodeTemplateFactory = class {
|
|
|
835
794
|
},
|
|
836
795
|
handles: [
|
|
837
796
|
{
|
|
838
|
-
position:
|
|
797
|
+
position: Position20.Left,
|
|
839
798
|
dataType: "module" /* module */,
|
|
840
799
|
connection: "target",
|
|
841
800
|
maxConnections: 1
|
|
842
801
|
},
|
|
843
802
|
{
|
|
844
|
-
position:
|
|
803
|
+
position: Position20.Right,
|
|
845
804
|
dataType: "module" /* module */,
|
|
846
805
|
connection: "source"
|
|
847
806
|
}
|
|
@@ -850,7 +809,7 @@ var NoiseScaleBiasNodeTemplateFactory = class {
|
|
|
850
809
|
};
|
|
851
810
|
|
|
852
811
|
// src/templates/modifiers/noise-terrace-template.ts
|
|
853
|
-
import { Position as
|
|
812
|
+
import { Position as Position21 } from "@xyflow/system";
|
|
854
813
|
var NoiseTerraceNodeTemplateFactory = class {
|
|
855
814
|
template = {
|
|
856
815
|
type: "noise-terrace" /* noiseTerrace */,
|
|
@@ -861,13 +820,13 @@ var NoiseTerraceNodeTemplateFactory = class {
|
|
|
861
820
|
},
|
|
862
821
|
handles: [
|
|
863
822
|
{
|
|
864
|
-
position:
|
|
823
|
+
position: Position21.Left,
|
|
865
824
|
dataType: "module" /* module */,
|
|
866
825
|
connection: "target",
|
|
867
826
|
maxConnections: 1
|
|
868
827
|
},
|
|
869
828
|
{
|
|
870
|
-
position:
|
|
829
|
+
position: Position21.Right,
|
|
871
830
|
dataType: "module" /* module */,
|
|
872
831
|
connection: "source"
|
|
873
832
|
}
|
|
@@ -876,7 +835,7 @@ var NoiseTerraceNodeTemplateFactory = class {
|
|
|
876
835
|
};
|
|
877
836
|
|
|
878
837
|
// src/templates/selectors/noise-blend-template.ts
|
|
879
|
-
import { Position as
|
|
838
|
+
import { Position as Position22 } from "@xyflow/system";
|
|
880
839
|
var NoiseBlendNodeTemplateFactory = class {
|
|
881
840
|
template = {
|
|
882
841
|
type: "noise-blend" /* noiseBlend */,
|
|
@@ -886,7 +845,7 @@ var NoiseBlendNodeTemplateFactory = class {
|
|
|
886
845
|
},
|
|
887
846
|
handles: [
|
|
888
847
|
{
|
|
889
|
-
position:
|
|
848
|
+
position: Position22.Left,
|
|
890
849
|
dataType: "module" /* module */,
|
|
891
850
|
connection: "target",
|
|
892
851
|
label: "Source Modules",
|
|
@@ -895,7 +854,7 @@ var NoiseBlendNodeTemplateFactory = class {
|
|
|
895
854
|
minConnections: 2
|
|
896
855
|
},
|
|
897
856
|
{
|
|
898
|
-
position:
|
|
857
|
+
position: Position22.Left,
|
|
899
858
|
dataType: "module" /* module */,
|
|
900
859
|
dataId: "control" /* control */,
|
|
901
860
|
connection: "target",
|
|
@@ -903,7 +862,7 @@ var NoiseBlendNodeTemplateFactory = class {
|
|
|
903
862
|
maxConnections: 1
|
|
904
863
|
},
|
|
905
864
|
{
|
|
906
|
-
position:
|
|
865
|
+
position: Position22.Right,
|
|
907
866
|
dataType: "module" /* module */,
|
|
908
867
|
dataId: "output" /* output */,
|
|
909
868
|
connection: "source"
|
|
@@ -913,7 +872,7 @@ var NoiseBlendNodeTemplateFactory = class {
|
|
|
913
872
|
};
|
|
914
873
|
|
|
915
874
|
// src/templates/selectors/noise-select-template.ts
|
|
916
|
-
import { Position as
|
|
875
|
+
import { Position as Position23 } from "@xyflow/system";
|
|
917
876
|
var NoiseSelectNodeTemplateFactory = class {
|
|
918
877
|
template = {
|
|
919
878
|
type: "noise-select" /* noiseSelect */,
|
|
@@ -926,7 +885,7 @@ var NoiseSelectNodeTemplateFactory = class {
|
|
|
926
885
|
},
|
|
927
886
|
handles: [
|
|
928
887
|
{
|
|
929
|
-
position:
|
|
888
|
+
position: Position23.Left,
|
|
930
889
|
dataType: "module" /* module */,
|
|
931
890
|
dataId: "source" /* source */,
|
|
932
891
|
connection: "target",
|
|
@@ -935,7 +894,7 @@ var NoiseSelectNodeTemplateFactory = class {
|
|
|
935
894
|
minConnections: 2
|
|
936
895
|
},
|
|
937
896
|
{
|
|
938
|
-
position:
|
|
897
|
+
position: Position23.Left,
|
|
939
898
|
dataType: "module" /* module */,
|
|
940
899
|
dataId: "control" /* control */,
|
|
941
900
|
connection: "target",
|
|
@@ -943,7 +902,7 @@ var NoiseSelectNodeTemplateFactory = class {
|
|
|
943
902
|
maxConnections: 1
|
|
944
903
|
},
|
|
945
904
|
{
|
|
946
|
-
position:
|
|
905
|
+
position: Position23.Right,
|
|
947
906
|
dataType: "module" /* module */,
|
|
948
907
|
dataId: "output" /* output */,
|
|
949
908
|
connection: "source"
|
|
@@ -953,7 +912,7 @@ var NoiseSelectNodeTemplateFactory = class {
|
|
|
953
912
|
};
|
|
954
913
|
|
|
955
914
|
// src/templates/transformers/noise-displace-template.ts
|
|
956
|
-
import { Position as
|
|
915
|
+
import { Position as Position24 } from "@xyflow/system";
|
|
957
916
|
var NoiseDisplaceNodeTemplateFactory = class {
|
|
958
917
|
template = {
|
|
959
918
|
type: "noise-displace" /* noiseDisplace */,
|
|
@@ -963,7 +922,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
963
922
|
},
|
|
964
923
|
handles: [
|
|
965
924
|
{
|
|
966
|
-
position:
|
|
925
|
+
position: Position24.Left,
|
|
967
926
|
connection: "target",
|
|
968
927
|
label: "Source Module",
|
|
969
928
|
dataType: "module" /* module */,
|
|
@@ -971,7 +930,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
971
930
|
maxConnections: 1
|
|
972
931
|
},
|
|
973
932
|
{
|
|
974
|
-
position:
|
|
933
|
+
position: Position24.Left,
|
|
975
934
|
connection: "target",
|
|
976
935
|
label: "X Module",
|
|
977
936
|
dataType: "module" /* module */,
|
|
@@ -979,7 +938,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
979
938
|
maxConnections: 1
|
|
980
939
|
},
|
|
981
940
|
{
|
|
982
|
-
position:
|
|
941
|
+
position: Position24.Left,
|
|
983
942
|
connection: "target",
|
|
984
943
|
label: "Y Module",
|
|
985
944
|
dataType: "module" /* module */,
|
|
@@ -987,7 +946,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
987
946
|
maxConnections: 1
|
|
988
947
|
},
|
|
989
948
|
{
|
|
990
|
-
position:
|
|
949
|
+
position: Position24.Left,
|
|
991
950
|
connection: "target",
|
|
992
951
|
label: "Z Module",
|
|
993
952
|
dataType: "module" /* module */,
|
|
@@ -995,7 +954,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
995
954
|
maxConnections: 1
|
|
996
955
|
},
|
|
997
956
|
{
|
|
998
|
-
position:
|
|
957
|
+
position: Position24.Right,
|
|
999
958
|
dataType: "module" /* module */,
|
|
1000
959
|
dataId: "output" /* output */,
|
|
1001
960
|
connection: "source"
|
|
@@ -1005,7 +964,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
1005
964
|
};
|
|
1006
965
|
|
|
1007
966
|
// src/templates/transformers/noise-rotate-point-template.ts
|
|
1008
|
-
import { Position as
|
|
967
|
+
import { Position as Position25 } from "@xyflow/system";
|
|
1009
968
|
var NoiseRotatePointNodeTemplateFactory = class {
|
|
1010
969
|
template = {
|
|
1011
970
|
type: "noise-rotate-point" /* noiseRotatePoint */,
|
|
@@ -1018,14 +977,14 @@ var NoiseRotatePointNodeTemplateFactory = class {
|
|
|
1018
977
|
},
|
|
1019
978
|
handles: [
|
|
1020
979
|
{
|
|
1021
|
-
position:
|
|
980
|
+
position: Position25.Left,
|
|
1022
981
|
dataType: "module" /* module */,
|
|
1023
982
|
connection: "target",
|
|
1024
983
|
label: "Source Module",
|
|
1025
984
|
maxConnections: 1
|
|
1026
985
|
},
|
|
1027
986
|
{
|
|
1028
|
-
position:
|
|
987
|
+
position: Position25.Right,
|
|
1029
988
|
dataType: "module" /* module */,
|
|
1030
989
|
connection: "source"
|
|
1031
990
|
}
|
|
@@ -1034,7 +993,7 @@ var NoiseRotatePointNodeTemplateFactory = class {
|
|
|
1034
993
|
};
|
|
1035
994
|
|
|
1036
995
|
// src/templates/transformers/noise-scale-point-template.ts
|
|
1037
|
-
import { Position as
|
|
996
|
+
import { Position as Position26 } from "@xyflow/system";
|
|
1038
997
|
var NoiseScalePointNodeTemplateFactory = class {
|
|
1039
998
|
template = {
|
|
1040
999
|
type: "noise-scale-point" /* noiseScalePoint */,
|
|
@@ -1047,14 +1006,14 @@ var NoiseScalePointNodeTemplateFactory = class {
|
|
|
1047
1006
|
},
|
|
1048
1007
|
handles: [
|
|
1049
1008
|
{
|
|
1050
|
-
position:
|
|
1009
|
+
position: Position26.Left,
|
|
1051
1010
|
dataType: "module" /* module */,
|
|
1052
1011
|
connection: "target",
|
|
1053
1012
|
label: "Source Module",
|
|
1054
1013
|
maxConnections: 1
|
|
1055
1014
|
},
|
|
1056
1015
|
{
|
|
1057
|
-
position:
|
|
1016
|
+
position: Position26.Right,
|
|
1058
1017
|
dataType: "module" /* module */,
|
|
1059
1018
|
connection: "source"
|
|
1060
1019
|
}
|
|
@@ -1063,7 +1022,7 @@ var NoiseScalePointNodeTemplateFactory = class {
|
|
|
1063
1022
|
};
|
|
1064
1023
|
|
|
1065
1024
|
// src/templates/transformers/noise-translate-point-template.ts
|
|
1066
|
-
import { Position as
|
|
1025
|
+
import { Position as Position27 } from "@xyflow/system";
|
|
1067
1026
|
var NoiseTranslatePointNodeTemplateFactory = class {
|
|
1068
1027
|
template = {
|
|
1069
1028
|
type: "noise-translate-point" /* noiseTranslatePoint */,
|
|
@@ -1076,14 +1035,14 @@ var NoiseTranslatePointNodeTemplateFactory = class {
|
|
|
1076
1035
|
},
|
|
1077
1036
|
handles: [
|
|
1078
1037
|
{
|
|
1079
|
-
position:
|
|
1038
|
+
position: Position27.Left,
|
|
1080
1039
|
dataType: "module" /* module */,
|
|
1081
1040
|
connection: "target",
|
|
1082
1041
|
label: "Source Module",
|
|
1083
1042
|
maxConnections: 1
|
|
1084
1043
|
},
|
|
1085
1044
|
{
|
|
1086
|
-
position:
|
|
1045
|
+
position: Position27.Right,
|
|
1087
1046
|
dataType: "module" /* module */,
|
|
1088
1047
|
connection: "source"
|
|
1089
1048
|
}
|
|
@@ -1092,8 +1051,8 @@ var NoiseTranslatePointNodeTemplateFactory = class {
|
|
|
1092
1051
|
};
|
|
1093
1052
|
|
|
1094
1053
|
// src/templates/transformers/noise-turbulence-template.ts
|
|
1095
|
-
import { CoreHandleType as
|
|
1096
|
-
import { Position as
|
|
1054
|
+
import { CoreHandleType as CoreHandleType6 } from "@awesome-flow/core/abstract";
|
|
1055
|
+
import { Position as Position28 } from "@xyflow/system";
|
|
1097
1056
|
var NoiseTurbulenceNodeTemplateFactory = class {
|
|
1098
1057
|
template = {
|
|
1099
1058
|
type: "noise-turbulence" /* noiseTurbulence */,
|
|
@@ -1107,20 +1066,20 @@ var NoiseTurbulenceNodeTemplateFactory = class {
|
|
|
1107
1066
|
},
|
|
1108
1067
|
handles: [
|
|
1109
1068
|
{
|
|
1110
|
-
position:
|
|
1069
|
+
position: Position28.Left,
|
|
1111
1070
|
dataType: "module" /* module */,
|
|
1112
1071
|
connection: "target",
|
|
1113
1072
|
label: "Source Module",
|
|
1114
1073
|
maxConnections: 1
|
|
1115
1074
|
},
|
|
1116
1075
|
{
|
|
1117
|
-
position:
|
|
1118
|
-
dataType:
|
|
1076
|
+
position: Position28.Left,
|
|
1077
|
+
dataType: CoreHandleType6.variableProperty,
|
|
1119
1078
|
label: "Variable Properties",
|
|
1120
1079
|
connection: "target"
|
|
1121
1080
|
},
|
|
1122
1081
|
{
|
|
1123
|
-
position:
|
|
1082
|
+
position: Position28.Right,
|
|
1124
1083
|
dataType: "module" /* module */,
|
|
1125
1084
|
connection: "source"
|
|
1126
1085
|
}
|
|
@@ -1129,9 +1088,9 @@ var NoiseTurbulenceNodeTemplateFactory = class {
|
|
|
1129
1088
|
};
|
|
1130
1089
|
|
|
1131
1090
|
// src/templates/generators/noise-billow-template.ts
|
|
1132
|
-
import { CoreHandleType as
|
|
1091
|
+
import { CoreHandleType as CoreHandleType7 } from "@awesome-flow/core/abstract";
|
|
1133
1092
|
import { IDGenerator as IDGenerator2 } from "@awesome-flow/core/utils";
|
|
1134
|
-
import { Position as
|
|
1093
|
+
import { Position as Position29 } from "@xyflow/system";
|
|
1135
1094
|
var NoiseBillowNodeTemplateFactory = class {
|
|
1136
1095
|
template = {
|
|
1137
1096
|
id: IDGenerator2.template(),
|
|
@@ -1147,12 +1106,12 @@ var NoiseBillowNodeTemplateFactory = class {
|
|
|
1147
1106
|
},
|
|
1148
1107
|
handles: [
|
|
1149
1108
|
{
|
|
1150
|
-
position:
|
|
1151
|
-
dataType:
|
|
1109
|
+
position: Position29.Left,
|
|
1110
|
+
dataType: CoreHandleType7.variableProperty,
|
|
1152
1111
|
connection: "target"
|
|
1153
1112
|
},
|
|
1154
1113
|
{
|
|
1155
|
-
position:
|
|
1114
|
+
position: Position29.Right,
|
|
1156
1115
|
dataType: "module" /* module */,
|
|
1157
1116
|
connection: "source"
|
|
1158
1117
|
}
|
|
@@ -1165,7 +1124,7 @@ import {
|
|
|
1165
1124
|
CoreTemplateGroup
|
|
1166
1125
|
} from "@awesome-flow/core/abstract";
|
|
1167
1126
|
import { IDGenerator as IDGenerator3 } from "@awesome-flow/core/utils";
|
|
1168
|
-
import { Position as
|
|
1127
|
+
import { Position as Position30 } from "@xyflow/system";
|
|
1169
1128
|
var ModuleGroupNodeTemplateFactory = class {
|
|
1170
1129
|
template = {
|
|
1171
1130
|
id: IDGenerator3.template(),
|
|
@@ -1185,14 +1144,14 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1185
1144
|
},
|
|
1186
1145
|
handles: [
|
|
1187
1146
|
{
|
|
1188
|
-
position:
|
|
1147
|
+
position: Position30.Bottom,
|
|
1189
1148
|
dataType: "module" /* module */,
|
|
1190
1149
|
connection: "target",
|
|
1191
1150
|
maxConnections: 1,
|
|
1192
1151
|
hideOnCollapse: true
|
|
1193
1152
|
},
|
|
1194
1153
|
{
|
|
1195
|
-
position:
|
|
1154
|
+
position: Position30.Right,
|
|
1196
1155
|
dataType: "module" /* module */,
|
|
1197
1156
|
connection: "source"
|
|
1198
1157
|
}
|
|
@@ -1201,23 +1160,22 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1201
1160
|
};
|
|
1202
1161
|
|
|
1203
1162
|
// src/nodes/groups/module-group-node.tsx
|
|
1204
|
-
import { NodeContainer as
|
|
1163
|
+
import { NodeContainer as NodeContainer31, NodeCollapse, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
|
|
1205
1164
|
import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
|
|
1206
|
-
import { useCallback as useCallback15, useEffect as
|
|
1165
|
+
import { useCallback as useCallback15, useEffect as useEffect20, useMemo as useMemo11 } from "react";
|
|
1207
1166
|
import { shallow } from "zustand/shallow";
|
|
1208
1167
|
import { Badge, Group as Group15 } from "@mantine/core";
|
|
1209
1168
|
import {
|
|
1210
1169
|
useFlowStore,
|
|
1211
1170
|
useIncomingComputedData as useIncomingComputedData17,
|
|
1212
1171
|
useInteractiveStore,
|
|
1213
|
-
useUpdateNodeComputedData as
|
|
1172
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData29
|
|
1214
1173
|
} from "@awesome-flow/core/hooks";
|
|
1215
|
-
import { jsx as
|
|
1174
|
+
import { jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1216
1175
|
|
|
1217
1176
|
// src/abstract/node-types.ts
|
|
1218
1177
|
var noiseNodeTemplates = {
|
|
1219
1178
|
["noise-output" /* noiseOutput */]: new NoiseOutputNodeTemplateFactory(),
|
|
1220
|
-
["noise-simplex" /* noiseSimplex */]: new NoiseSimplexNodeTemplateFactory(),
|
|
1221
1179
|
["noise-billow" /* noiseBillow */]: new NoiseBillowNodeTemplateFactory(),
|
|
1222
1180
|
["noise-checkerboard" /* noiseCheckerboard */]: new NoiseCheckerboardNodeTemplateFactory(),
|
|
1223
1181
|
["noise-normalize" /* noiseNormalize */]: new NoiseNormalizeNodeTemplateFactory(),
|
|
@@ -1260,7 +1218,7 @@ var NoiseLoggerNodeTemplateFactory = class {
|
|
|
1260
1218
|
},
|
|
1261
1219
|
handles: [
|
|
1262
1220
|
{
|
|
1263
|
-
position:
|
|
1221
|
+
position: Position31.Left,
|
|
1264
1222
|
dataType: "noise" /* noise */,
|
|
1265
1223
|
connection: "target"
|
|
1266
1224
|
}
|