@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,142 +1,130 @@
|
|
|
1
1
|
// src/nodes/selectors/noise-blend-node.tsx
|
|
2
|
-
import { NodeContainer as
|
|
2
|
+
import { NodeContainer as NodeContainer31, NodeTrackConnections as NodeTrackConnections27 } from "@awesome-flow/core/layout";
|
|
3
3
|
import { useCallback as useCallback15 } from "react";
|
|
4
|
-
import { useUpdateNodeComputedData as
|
|
5
|
-
import { Blend } from "libnoise-ts
|
|
4
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData29 } from "@awesome-flow/core/hooks";
|
|
5
|
+
import { Blend } from "libnoise-simplex-ts";
|
|
6
6
|
import { HandlesIncomingDataStatus as HandlesIncomingDataStatus4 } from "@awesome-flow/core/components";
|
|
7
7
|
|
|
8
|
-
// src/nodes/generators/noise-simplex-node.tsx
|
|
9
|
-
import { NodeContainer } from "@awesome-flow/core/layout";
|
|
10
|
-
import { useEffect, useMemo } from "react";
|
|
11
|
-
import { useUpdateNodeComputedData } from "@awesome-flow/core/hooks";
|
|
12
|
-
|
|
13
|
-
// src/modules/simplex-module.ts
|
|
14
|
-
import Module from "libnoise-ts/module/Module";
|
|
15
|
-
import { createNoise3D } from "simplex-noise";
|
|
16
|
-
|
|
17
|
-
// src/nodes/generators/noise-simplex-node.tsx
|
|
18
|
-
import { jsx } from "react/jsx-runtime";
|
|
19
|
-
|
|
20
8
|
// src/nodes/generators/position-const-node.tsx
|
|
21
|
-
import { NodeContainer
|
|
22
|
-
import { useEffect
|
|
9
|
+
import { NodeContainer } from "@awesome-flow/core/layout";
|
|
10
|
+
import { useEffect, useState } from "react";
|
|
23
11
|
import { Group, NumberInput, Stack } from "@mantine/core";
|
|
24
|
-
import { useUpdateNodeComputedData
|
|
25
|
-
import { jsx
|
|
12
|
+
import { useUpdateNodeComputedData, useUpdateNodeData } from "@awesome-flow/core/hooks";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
14
|
|
|
27
15
|
// src/nodes/generators/position-grid-node.tsx
|
|
28
|
-
import { NodeContainer as
|
|
29
|
-
import { useEffect as
|
|
16
|
+
import { NodeContainer as NodeContainer2 } from "@awesome-flow/core/layout";
|
|
17
|
+
import { useEffect as useEffect2, useState as useState2 } from "react";
|
|
30
18
|
import { Group as Group2, NumberInput as NumberInput2, Stack as Stack2 } from "@mantine/core";
|
|
31
|
-
import { useUpdateNodeComputedData as
|
|
32
|
-
import { jsx as
|
|
19
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData2, useUpdateNodeData as useUpdateNodeData2 } from "@awesome-flow/core/hooks";
|
|
20
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
33
21
|
|
|
34
22
|
// src/nodes/modifiers/noise-normalize-node.tsx
|
|
35
|
-
import { NodeContainer as
|
|
36
|
-
import { useEffect as
|
|
23
|
+
import { NodeContainer as NodeContainer3, NodeTrackConnections } from "@awesome-flow/core/layout";
|
|
24
|
+
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
37
25
|
import { Group as Group3, NumberInput as NumberInput3, Stack as Stack3 } from "@mantine/core";
|
|
38
26
|
import {
|
|
39
27
|
useIncomingComputedData,
|
|
40
|
-
useUpdateNodeComputedData as
|
|
28
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData3,
|
|
41
29
|
useUpdateNodeData as useUpdateNodeData3
|
|
42
30
|
} from "@awesome-flow/core/hooks";
|
|
43
31
|
|
|
44
32
|
// src/modules/normalize-noise-module.ts
|
|
45
|
-
import ModifierModule from "libnoise-ts
|
|
33
|
+
import { ModifierModule } from "libnoise-simplex-ts";
|
|
46
34
|
|
|
47
35
|
// src/nodes/modifiers/noise-normalize-node.tsx
|
|
48
|
-
import { jsx as
|
|
36
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
49
37
|
|
|
50
38
|
// src/nodes/generators/noise-const-node.tsx
|
|
51
|
-
import { NodeContainer as
|
|
52
|
-
import { useEffect as
|
|
39
|
+
import { NodeContainer as NodeContainer4 } from "@awesome-flow/core/layout";
|
|
40
|
+
import { useEffect as useEffect4, useMemo, useState as useState4 } from "react";
|
|
53
41
|
import { Group as Group4, NumberInput as NumberInput4, Stack as Stack4 } from "@mantine/core";
|
|
54
|
-
import { useUpdateNodeComputedData as
|
|
55
|
-
import { Const } from "libnoise-ts
|
|
56
|
-
import { jsx as
|
|
42
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData4, useUpdateNodeData as useUpdateNodeData4 } from "@awesome-flow/core/hooks";
|
|
43
|
+
import { Const } from "libnoise-simplex-ts";
|
|
44
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
57
45
|
|
|
58
46
|
// src/nodes/generators/noise-billow-node.tsx
|
|
59
|
-
import { NodeContainer as
|
|
60
|
-
import { useCallback, useMemo as
|
|
61
|
-
import { Billow } from "libnoise-ts
|
|
62
|
-
import { useUpdateNodeComputedData as
|
|
47
|
+
import { NodeContainer as NodeContainer5, NodeTrackConnections as NodeTrackConnections2 } from "@awesome-flow/core/layout";
|
|
48
|
+
import { useCallback, useMemo as useMemo2 } from "react";
|
|
49
|
+
import { Billow } from "libnoise-simplex-ts";
|
|
50
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData5 } from "@awesome-flow/core/hooks";
|
|
63
51
|
import { NodePropertyVariables } from "@awesome-flow/core/components";
|
|
64
|
-
import { jsx as
|
|
52
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
65
53
|
|
|
66
54
|
// src/nodes/output/noise-logger-node.tsx
|
|
67
|
-
import { NodeContainer as
|
|
68
|
-
import { useMemo as
|
|
55
|
+
import { NodeContainer as NodeContainer6, NodeTrackConnections as NodeTrackConnections3 } from "@awesome-flow/core/layout";
|
|
56
|
+
import { useMemo as useMemo3 } from "react";
|
|
69
57
|
import { Divider, Stack as Stack5, Text } from "@mantine/core";
|
|
70
58
|
import { useIncomingComputedData as useIncomingComputedData2 } from "@awesome-flow/core/hooks";
|
|
71
|
-
import { jsx as
|
|
59
|
+
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
72
60
|
|
|
73
61
|
// src/nodes/output/noise-raw-texture-node.tsx
|
|
74
|
-
import { NodeContainer as
|
|
75
|
-
import { useEffect as
|
|
76
|
-
import { useIncomingComputedData as useIncomingComputedData3, useUpdateNodeComputedData as
|
|
62
|
+
import { NodeContainer as NodeContainer7, NodeTrackConnections as NodeTrackConnections4 } from "@awesome-flow/core/layout";
|
|
63
|
+
import { useEffect as useEffect5, useMemo as useMemo4, useState as useState5 } from "react";
|
|
64
|
+
import { useIncomingComputedData as useIncomingComputedData3, useUpdateNodeComputedData as useUpdateNodeComputedData6 } from "@awesome-flow/core/hooks";
|
|
77
65
|
import { Group as Group5, Stack as Stack6 } from "@mantine/core";
|
|
78
|
-
import { jsx as
|
|
66
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
79
67
|
|
|
80
68
|
// src/nodes/generators/noise-checkerboard-node.tsx
|
|
81
|
-
import { NodeContainer as
|
|
82
|
-
import { useEffect as
|
|
83
|
-
import { Checkerboard } from "libnoise-ts
|
|
84
|
-
import { useUpdateNodeComputedData as
|
|
85
|
-
import { jsx as
|
|
69
|
+
import { NodeContainer as NodeContainer8 } from "@awesome-flow/core/layout";
|
|
70
|
+
import { useEffect as useEffect6, useMemo as useMemo5 } from "react";
|
|
71
|
+
import { Checkerboard } from "libnoise-simplex-ts";
|
|
72
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData7 } from "@awesome-flow/core/hooks";
|
|
73
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
86
74
|
|
|
87
75
|
// src/nodes/output/positions-logger-node.tsx
|
|
88
|
-
import { NodeContainer as
|
|
89
|
-
import { useMemo as
|
|
76
|
+
import { NodeContainer as NodeContainer9, NodeTrackConnections as NodeTrackConnections5 } from "@awesome-flow/core/layout";
|
|
77
|
+
import { useMemo as useMemo6 } from "react";
|
|
90
78
|
import { Divider as Divider2, Stack as Stack7, Text as Text2 } from "@mantine/core";
|
|
91
79
|
import { useIncomingComputedData as useIncomingComputedData4 } from "@awesome-flow/core/hooks";
|
|
92
|
-
import { jsx as
|
|
80
|
+
import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
93
81
|
|
|
94
82
|
// src/nodes/generators/noise-cylinders-node.tsx
|
|
95
|
-
import { NodeContainer as
|
|
96
|
-
import { useCallback as useCallback2, useMemo as
|
|
97
|
-
import { Cylinders } from "libnoise-ts
|
|
98
|
-
import { useUpdateNodeComputedData as
|
|
83
|
+
import { NodeContainer as NodeContainer10, NodeTrackConnections as NodeTrackConnections6 } from "@awesome-flow/core/layout";
|
|
84
|
+
import { useCallback as useCallback2, useMemo as useMemo7 } from "react";
|
|
85
|
+
import { Cylinders } from "libnoise-simplex-ts";
|
|
86
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData8 } from "@awesome-flow/core/hooks";
|
|
99
87
|
import { NodePropertyVariables as NodePropertyVariables2 } from "@awesome-flow/core/components";
|
|
100
|
-
import { jsx as
|
|
88
|
+
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
101
89
|
|
|
102
90
|
// src/nodes/generators/noise-perlin-node.tsx
|
|
103
|
-
import { NodeContainer as
|
|
104
|
-
import { useCallback as useCallback3, useMemo as
|
|
105
|
-
import { Perlin } from "libnoise-ts
|
|
106
|
-
import { useUpdateNodeComputedData as
|
|
91
|
+
import { NodeContainer as NodeContainer11, NodeTrackConnections as NodeTrackConnections7 } from "@awesome-flow/core/layout";
|
|
92
|
+
import { useCallback as useCallback3, useMemo as useMemo8 } from "react";
|
|
93
|
+
import { Perlin } from "libnoise-simplex-ts";
|
|
94
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData9 } from "@awesome-flow/core/hooks";
|
|
107
95
|
import { NodePropertyVariables as NodePropertyVariables3 } from "@awesome-flow/core/components";
|
|
108
|
-
import { jsx as
|
|
96
|
+
import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
109
97
|
|
|
110
98
|
// src/nodes/generators/noise-ridgedmulti-node.tsx
|
|
111
|
-
import { NodeContainer as
|
|
112
|
-
import { useCallback as useCallback4, useMemo as
|
|
113
|
-
import { RidgedMulti } from "libnoise-ts
|
|
114
|
-
import { useUpdateNodeComputedData as
|
|
99
|
+
import { NodeContainer as NodeContainer12, NodeTrackConnections as NodeTrackConnections8 } from "@awesome-flow/core/layout";
|
|
100
|
+
import { useCallback as useCallback4, useMemo as useMemo9 } from "react";
|
|
101
|
+
import { RidgedMulti } from "libnoise-simplex-ts";
|
|
102
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData10 } from "@awesome-flow/core/hooks";
|
|
115
103
|
import { NodePropertyVariables as NodePropertyVariables4 } from "@awesome-flow/core/components";
|
|
116
|
-
import { jsx as
|
|
104
|
+
import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
117
105
|
|
|
118
106
|
// src/nodes/generators/noise-spheres-node.tsx
|
|
119
|
-
import { NodeContainer as
|
|
120
|
-
import { useCallback as useCallback5, useMemo as
|
|
121
|
-
import { Spheres } from "libnoise-ts
|
|
122
|
-
import { useUpdateNodeComputedData as
|
|
107
|
+
import { NodeContainer as NodeContainer13, NodeTrackConnections as NodeTrackConnections9 } from "@awesome-flow/core/layout";
|
|
108
|
+
import { useCallback as useCallback5, useMemo as useMemo10 } from "react";
|
|
109
|
+
import { Spheres } from "libnoise-simplex-ts";
|
|
110
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData11 } from "@awesome-flow/core/hooks";
|
|
123
111
|
import { NodePropertyVariables as NodePropertyVariables5 } from "@awesome-flow/core/components";
|
|
124
|
-
import { jsx as
|
|
112
|
+
import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
125
113
|
|
|
126
114
|
// src/nodes/generators/noise-voronoi-node.tsx
|
|
127
|
-
import { NodeContainer as
|
|
115
|
+
import { NodeContainer as NodeContainer14, NodeTrackConnections as NodeTrackConnections10 } from "@awesome-flow/core/layout";
|
|
128
116
|
import { useCallback as useCallback6 } from "react";
|
|
129
|
-
import { Voronoi } from "libnoise-ts
|
|
130
|
-
import { useUpdateNodeComputedData as
|
|
117
|
+
import { Voronoi } from "libnoise-simplex-ts";
|
|
118
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData12 } from "@awesome-flow/core/hooks";
|
|
131
119
|
import { NodePropertyVariables as NodePropertyVariables6 } from "@awesome-flow/core/components";
|
|
132
|
-
import { jsx as
|
|
120
|
+
import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
133
121
|
|
|
134
122
|
// src/nodes/modifiers/noise-combine-node.tsx
|
|
135
|
-
import { NodeCombobox, NodeContainer as
|
|
136
|
-
import { useCallback as useCallback7, useEffect as
|
|
123
|
+
import { NodeCombobox, NodeContainer as NodeContainer15, NodeTrackConnections as NodeTrackConnections11 } from "@awesome-flow/core/layout";
|
|
124
|
+
import { useCallback as useCallback7, useEffect as useEffect7 } from "react";
|
|
137
125
|
import {
|
|
138
126
|
useIncomingComputedData as useIncomingComputedData5,
|
|
139
|
-
useUpdateNodeComputedData as
|
|
127
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData13,
|
|
140
128
|
useUpdateNodeData as useUpdateNodeData5
|
|
141
129
|
} from "@awesome-flow/core/hooks";
|
|
142
130
|
import {
|
|
@@ -148,115 +136,114 @@ import {
|
|
|
148
136
|
} from "@tabler/icons-react";
|
|
149
137
|
|
|
150
138
|
// src/abstract/operations.ts
|
|
151
|
-
import { Add, Max, Min, Multiply, Power } from "libnoise-ts
|
|
139
|
+
import { Add, Max, Min, Multiply, Power } from "libnoise-simplex-ts";
|
|
152
140
|
|
|
153
141
|
// src/nodes/modifiers/noise-combine-node.tsx
|
|
154
|
-
import { jsx as
|
|
142
|
+
import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
155
143
|
|
|
156
144
|
// src/nodes/modifiers/noise-clamp-node.tsx
|
|
157
|
-
import { NodeContainer as
|
|
158
|
-
import { useEffect as
|
|
145
|
+
import { NodeContainer as NodeContainer16, NodeTrackConnections as NodeTrackConnections12 } from "@awesome-flow/core/layout";
|
|
146
|
+
import { useEffect as useEffect8, useState as useState6 } from "react";
|
|
159
147
|
import { Group as Group6, NumberInput as NumberInput5, Stack as Stack8 } from "@mantine/core";
|
|
160
148
|
import {
|
|
161
149
|
useIncomingComputedData as useIncomingComputedData6,
|
|
162
|
-
useUpdateNodeComputedData as
|
|
150
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData14,
|
|
163
151
|
useUpdateNodeData as useUpdateNodeData6
|
|
164
152
|
} from "@awesome-flow/core/hooks";
|
|
165
|
-
import { Clamp } from "libnoise-ts
|
|
166
|
-
import { jsx as
|
|
153
|
+
import { Clamp } from "libnoise-simplex-ts";
|
|
154
|
+
import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
167
155
|
|
|
168
156
|
// src/nodes/modifiers/noise-abs-node.tsx
|
|
169
|
-
import { NodeContainer as
|
|
170
|
-
import { useEffect as
|
|
171
|
-
import { useIncomingComputedData as useIncomingComputedData7, useUpdateNodeComputedData as
|
|
172
|
-
import { Abs } from "libnoise-ts
|
|
173
|
-
import { jsx as
|
|
157
|
+
import { NodeContainer as NodeContainer17, NodeTrackConnections as NodeTrackConnections13 } from "@awesome-flow/core/layout";
|
|
158
|
+
import { useEffect as useEffect9 } from "react";
|
|
159
|
+
import { useIncomingComputedData as useIncomingComputedData7, useUpdateNodeComputedData as useUpdateNodeComputedData15 } from "@awesome-flow/core/hooks";
|
|
160
|
+
import { Abs } from "libnoise-simplex-ts";
|
|
161
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
174
162
|
|
|
175
163
|
// src/nodes/output/noise-output-node.tsx
|
|
176
|
-
import { NodeContainer as
|
|
164
|
+
import { NodeContainer as NodeContainer18, NodeTrackConnections as NodeTrackConnections14 } from "@awesome-flow/core/layout";
|
|
177
165
|
import { useCallback as useCallback8, useState as useState7 } from "react";
|
|
178
|
-
import { useUpdateNodeComputedData as
|
|
166
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData16 } from "@awesome-flow/core/hooks";
|
|
179
167
|
import { HandlesIncomingDataStatus } from "@awesome-flow/core/components";
|
|
180
168
|
import { Text as Text3 } from "@mantine/core";
|
|
181
|
-
import { jsx as
|
|
169
|
+
import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
182
170
|
|
|
183
171
|
// src/nodes/modifiers/noise-curve-node.tsx
|
|
184
|
-
import { NodeContainer as
|
|
172
|
+
import { NodeContainer as NodeContainer19, NodeTrackConnections as NodeTrackConnections15 } from "@awesome-flow/core/layout";
|
|
185
173
|
import { ActionIcon, Button, Group as Group7, NumberInput as NumberInput6, Space } from "@mantine/core";
|
|
186
174
|
import {
|
|
187
175
|
useIncomingComputedData as useIncomingComputedData8,
|
|
188
|
-
useUpdateNodeComputedData as
|
|
176
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData17,
|
|
189
177
|
useUpdateNodeData as useUpdateNodeData7
|
|
190
178
|
} from "@awesome-flow/core/hooks";
|
|
191
|
-
import { useCallback as useCallback9, useEffect as
|
|
192
|
-
import { Curve } from "libnoise-ts
|
|
193
|
-
import { Tuple } from "libnoise-ts/util";
|
|
179
|
+
import { useCallback as useCallback9, useEffect as useEffect10, useState as useState8 } from "react";
|
|
180
|
+
import { Curve, Tuple } from "libnoise-simplex-ts";
|
|
194
181
|
import { IconX } from "@tabler/icons-react";
|
|
195
182
|
import { randomId } from "@mantine/hooks";
|
|
196
183
|
import { NodeState } from "@awesome-flow/core/abstract";
|
|
197
|
-
import { Fragment, jsx as
|
|
184
|
+
import { Fragment, jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
198
185
|
|
|
199
186
|
// src/nodes/modifiers/noise-exponent-node.tsx
|
|
200
|
-
import { NodeContainer as
|
|
201
|
-
import { useEffect as
|
|
187
|
+
import { NodeContainer as NodeContainer20, NodeTrackConnections as NodeTrackConnections16 } from "@awesome-flow/core/layout";
|
|
188
|
+
import { useEffect as useEffect11, useState as useState9 } from "react";
|
|
202
189
|
import { Group as Group8, NumberInput as NumberInput7, Stack as Stack9 } from "@mantine/core";
|
|
203
190
|
import {
|
|
204
191
|
useIncomingComputedData as useIncomingComputedData9,
|
|
205
|
-
useUpdateNodeComputedData as
|
|
192
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData18,
|
|
206
193
|
useUpdateNodeData as useUpdateNodeData8
|
|
207
194
|
} from "@awesome-flow/core/hooks";
|
|
208
|
-
import { Exponent } from "libnoise-ts
|
|
209
|
-
import { jsx as
|
|
195
|
+
import { Exponent } from "libnoise-simplex-ts";
|
|
196
|
+
import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
210
197
|
|
|
211
198
|
// src/nodes/modifiers/noise-invert-node.tsx
|
|
212
|
-
import { NodeContainer as
|
|
213
|
-
import { useEffect as
|
|
214
|
-
import { useIncomingComputedData as useIncomingComputedData10, useUpdateNodeComputedData as
|
|
215
|
-
import { Invert } from "libnoise-ts
|
|
216
|
-
import { jsx as
|
|
199
|
+
import { NodeContainer as NodeContainer21, NodeTrackConnections as NodeTrackConnections17 } from "@awesome-flow/core/layout";
|
|
200
|
+
import { useEffect as useEffect12 } from "react";
|
|
201
|
+
import { useIncomingComputedData as useIncomingComputedData10, useUpdateNodeComputedData as useUpdateNodeComputedData19 } from "@awesome-flow/core/hooks";
|
|
202
|
+
import { Invert } from "libnoise-simplex-ts";
|
|
203
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
217
204
|
|
|
218
205
|
// src/nodes/modifiers/noise-scale-bias-node.tsx
|
|
219
|
-
import { NodeContainer as
|
|
220
|
-
import { useEffect as
|
|
206
|
+
import { NodeContainer as NodeContainer22, NodeTrackConnections as NodeTrackConnections18 } from "@awesome-flow/core/layout";
|
|
207
|
+
import { useEffect as useEffect13, useState as useState10 } from "react";
|
|
221
208
|
import { Group as Group9, NumberInput as NumberInput8, Stack as Stack10 } from "@mantine/core";
|
|
222
209
|
import {
|
|
223
210
|
useIncomingComputedData as useIncomingComputedData11,
|
|
224
|
-
useUpdateNodeComputedData as
|
|
211
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData20,
|
|
225
212
|
useUpdateNodeData as useUpdateNodeData9
|
|
226
213
|
} from "@awesome-flow/core/hooks";
|
|
227
|
-
import { ScaleBias } from "libnoise-ts
|
|
228
|
-
import { jsx as
|
|
214
|
+
import { ScaleBias } from "libnoise-simplex-ts";
|
|
215
|
+
import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
229
216
|
|
|
230
217
|
// src/nodes/modifiers/noise-terrace-node.tsx
|
|
231
|
-
import { NodeContainer as
|
|
218
|
+
import { NodeContainer as NodeContainer23, NodeTrackConnections as NodeTrackConnections19 } from "@awesome-flow/core/layout";
|
|
232
219
|
import { ActionIcon as ActionIcon2, Button as Button2, Group as Group10, NumberInput as NumberInput9, Space as Space2 } from "@mantine/core";
|
|
233
220
|
import {
|
|
234
221
|
useIncomingComputedData as useIncomingComputedData12,
|
|
235
|
-
useUpdateNodeComputedData as
|
|
222
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData21,
|
|
236
223
|
useUpdateNodeData as useUpdateNodeData10
|
|
237
224
|
} from "@awesome-flow/core/hooks";
|
|
238
|
-
import { useCallback as useCallback10, useEffect as
|
|
239
|
-
import { Terrace } from "libnoise-ts
|
|
225
|
+
import { useCallback as useCallback10, useEffect as useEffect14, useState as useState11 } from "react";
|
|
226
|
+
import { Terrace } from "libnoise-simplex-ts";
|
|
240
227
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
|
241
228
|
import { randomId as randomId2 } from "@mantine/hooks";
|
|
242
229
|
import { NodeState as NodeState2 } from "@awesome-flow/core/abstract";
|
|
243
|
-
import { Fragment as Fragment2, jsx as
|
|
230
|
+
import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
244
231
|
|
|
245
232
|
// src/nodes/selectors/noise-select-node.tsx
|
|
246
|
-
import { NodeContainer as
|
|
247
|
-
import { useCallback as useCallback11, useEffect as
|
|
248
|
-
import { useUpdateNodeComputedData as
|
|
249
|
-
import { Select } from "libnoise-ts
|
|
233
|
+
import { NodeContainer as NodeContainer24, NodeTrackConnections as NodeTrackConnections20 } from "@awesome-flow/core/layout";
|
|
234
|
+
import { useCallback as useCallback11, useEffect as useEffect15, useState as useState12 } from "react";
|
|
235
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData22, useUpdateNodeData as useUpdateNodeData11 } from "@awesome-flow/core/hooks";
|
|
236
|
+
import { Select } from "libnoise-simplex-ts";
|
|
250
237
|
import { Group as Group11, NumberInput as NumberInput10, Stack as Stack11 } from "@mantine/core";
|
|
251
238
|
import { HandlesIncomingDataStatus as HandlesIncomingDataStatus2 } from "@awesome-flow/core/components";
|
|
252
|
-
import { jsx as
|
|
239
|
+
import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
253
240
|
function NoiseSelectNode({ id, selected, data, type }) {
|
|
254
241
|
const [edgeFalloff, setEdgeFalloff] = useState12(data.edgeFalloff);
|
|
255
242
|
const [lowerBound, setLowerBound] = useState12(data.lowerBound);
|
|
256
243
|
const [upperBound, setUpperBound] = useState12(data.upperBound);
|
|
257
244
|
const updateNodeData = useUpdateNodeData11();
|
|
258
|
-
const updateComputedData =
|
|
259
|
-
|
|
245
|
+
const updateComputedData = useUpdateNodeComputedData22();
|
|
246
|
+
useEffect15(() => {
|
|
260
247
|
updateNodeData(id, { edgeFalloff, lowerBound, upperBound });
|
|
261
248
|
}, [edgeFalloff, lowerBound, upperBound]);
|
|
262
249
|
const onDataUpdated = useCallback11(
|
|
@@ -277,11 +264,11 @@ function NoiseSelectNode({ id, selected, data, type }) {
|
|
|
277
264
|
},
|
|
278
265
|
[]
|
|
279
266
|
);
|
|
280
|
-
return /* @__PURE__ */ jsxs21(
|
|
267
|
+
return /* @__PURE__ */ jsxs21(NodeContainer24, { id, selected, data, type, children: [
|
|
281
268
|
/* @__PURE__ */ jsxs21(Stack11, { children: [
|
|
282
269
|
/* @__PURE__ */ jsxs21(Group11, { children: [
|
|
283
270
|
"Edge Falloff:",
|
|
284
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ jsx24(
|
|
285
272
|
NumberInput10,
|
|
286
273
|
{
|
|
287
274
|
size: "xs",
|
|
@@ -294,7 +281,7 @@ function NoiseSelectNode({ id, selected, data, type }) {
|
|
|
294
281
|
] }),
|
|
295
282
|
/* @__PURE__ */ jsxs21(Group11, { children: [
|
|
296
283
|
"Lower Bound:",
|
|
297
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ jsx24(
|
|
298
285
|
NumberInput10,
|
|
299
286
|
{
|
|
300
287
|
size: "xs",
|
|
@@ -307,7 +294,7 @@ function NoiseSelectNode({ id, selected, data, type }) {
|
|
|
307
294
|
] }),
|
|
308
295
|
/* @__PURE__ */ jsxs21(Group11, { children: [
|
|
309
296
|
"Upper Bound:",
|
|
310
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ jsx24(
|
|
311
298
|
NumberInput10,
|
|
312
299
|
{
|
|
313
300
|
size: "xs",
|
|
@@ -318,7 +305,7 @@ function NoiseSelectNode({ id, selected, data, type }) {
|
|
|
318
305
|
}
|
|
319
306
|
)
|
|
320
307
|
] }),
|
|
321
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ jsx24(
|
|
322
309
|
HandlesIncomingDataStatus2,
|
|
323
310
|
{
|
|
324
311
|
nodeId: id,
|
|
@@ -330,62 +317,62 @@ function NoiseSelectNode({ id, selected, data, type }) {
|
|
|
330
317
|
}
|
|
331
318
|
)
|
|
332
319
|
] }),
|
|
333
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ jsx24(NodeTrackConnections20, { handles: data.handles, nodeId: id, type: "target" })
|
|
334
321
|
] });
|
|
335
322
|
}
|
|
336
323
|
var noise_select_node_default = NoiseSelectNode;
|
|
337
324
|
|
|
338
325
|
// src/nodes/transformers/noise-displace-node.tsx
|
|
339
|
-
import { NodeContainer as
|
|
326
|
+
import { NodeContainer as NodeContainer25, NodeTrackConnections as NodeTrackConnections21 } from "@awesome-flow/core/layout";
|
|
340
327
|
import { useCallback as useCallback12 } from "react";
|
|
341
|
-
import { useUpdateNodeComputedData as
|
|
342
|
-
import { Displace } from "libnoise-ts
|
|
328
|
+
import { useUpdateNodeComputedData as useUpdateNodeComputedData23 } from "@awesome-flow/core/hooks";
|
|
329
|
+
import { Displace } from "libnoise-simplex-ts";
|
|
343
330
|
import { HandlesIncomingDataStatus as HandlesIncomingDataStatus3 } from "@awesome-flow/core/components";
|
|
344
|
-
import { jsx as
|
|
331
|
+
import { jsx as jsx25, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
345
332
|
|
|
346
333
|
// src/nodes/transformers/noise-rotate-point-node.tsx
|
|
347
|
-
import { NodeContainer as
|
|
348
|
-
import { useEffect as
|
|
334
|
+
import { NodeContainer as NodeContainer26, NodeTrackConnections as NodeTrackConnections22 } from "@awesome-flow/core/layout";
|
|
335
|
+
import { useEffect as useEffect16, useState as useState13 } from "react";
|
|
349
336
|
import {
|
|
350
337
|
useIncomingComputedData as useIncomingComputedData13,
|
|
351
|
-
useUpdateNodeComputedData as
|
|
338
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData24,
|
|
352
339
|
useUpdateNodeData as useUpdateNodeData12
|
|
353
340
|
} from "@awesome-flow/core/hooks";
|
|
354
341
|
import { Group as Group12, NumberInput as NumberInput11, Stack as Stack12 } from "@mantine/core";
|
|
355
|
-
import { RotatePoint } from "libnoise-ts
|
|
356
|
-
import { jsx as
|
|
342
|
+
import { RotatePoint } from "libnoise-simplex-ts";
|
|
343
|
+
import { jsx as jsx26, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
357
344
|
|
|
358
345
|
// src/nodes/transformers/noise-scale-point-node.tsx
|
|
359
|
-
import { NodeContainer as
|
|
360
|
-
import { useEffect as
|
|
346
|
+
import { NodeContainer as NodeContainer27, NodeTrackConnections as NodeTrackConnections23 } from "@awesome-flow/core/layout";
|
|
347
|
+
import { useEffect as useEffect17, useState as useState14 } from "react";
|
|
361
348
|
import {
|
|
362
349
|
useIncomingComputedData as useIncomingComputedData14,
|
|
363
|
-
useUpdateNodeComputedData as
|
|
350
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData25,
|
|
364
351
|
useUpdateNodeData as useUpdateNodeData13
|
|
365
352
|
} from "@awesome-flow/core/hooks";
|
|
366
353
|
import { Group as Group13, NumberInput as NumberInput12, Stack as Stack13 } from "@mantine/core";
|
|
367
|
-
import { ScalePoint } from "libnoise-ts
|
|
368
|
-
import { jsx as
|
|
354
|
+
import { ScalePoint } from "libnoise-simplex-ts";
|
|
355
|
+
import { jsx as jsx27, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
369
356
|
|
|
370
357
|
// src/nodes/transformers/noise-translate-point-node.tsx
|
|
371
|
-
import { NodeContainer as
|
|
372
|
-
import { useEffect as
|
|
358
|
+
import { NodeContainer as NodeContainer28, NodeTrackConnections as NodeTrackConnections24 } from "@awesome-flow/core/layout";
|
|
359
|
+
import { useEffect as useEffect18, useState as useState15 } from "react";
|
|
373
360
|
import {
|
|
374
361
|
useIncomingComputedData as useIncomingComputedData15,
|
|
375
|
-
useUpdateNodeComputedData as
|
|
362
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData26,
|
|
376
363
|
useUpdateNodeData as useUpdateNodeData14
|
|
377
364
|
} from "@awesome-flow/core/hooks";
|
|
378
365
|
import { Group as Group14, NumberInput as NumberInput13, Stack as Stack14 } from "@mantine/core";
|
|
379
|
-
import { TranslatePoint } from "libnoise-ts
|
|
380
|
-
import { jsx as
|
|
366
|
+
import { TranslatePoint } from "libnoise-simplex-ts";
|
|
367
|
+
import { jsx as jsx28, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
381
368
|
|
|
382
369
|
// src/nodes/transformers/noise-turbulence-node .tsx
|
|
383
|
-
import { NodeContainer as
|
|
384
|
-
import { useCallback as useCallback13, useEffect as
|
|
385
|
-
import { useIncomingComputedData as useIncomingComputedData16, useUpdateNodeComputedData as
|
|
386
|
-
import { Turbulence } from "libnoise-ts
|
|
370
|
+
import { NodeContainer as NodeContainer29, NodeTrackConnections as NodeTrackConnections25 } from "@awesome-flow/core/layout";
|
|
371
|
+
import { useCallback as useCallback13, useEffect as useEffect19, useState as useState16 } from "react";
|
|
372
|
+
import { useIncomingComputedData as useIncomingComputedData16, useUpdateNodeComputedData as useUpdateNodeComputedData27 } from "@awesome-flow/core/hooks";
|
|
373
|
+
import { Turbulence } from "libnoise-simplex-ts";
|
|
387
374
|
import { NodePropertyVariables as NodePropertyVariables7 } from "@awesome-flow/core/components";
|
|
388
|
-
import { jsx as
|
|
375
|
+
import { jsx as jsx29, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
389
376
|
|
|
390
377
|
// src/templates/generators/noise-checkerboard-template.ts
|
|
391
378
|
import { Position } from "@xyflow/system";
|
|
@@ -515,36 +502,9 @@ var NoiseRidgedMultiNodeTemplateFactory = class {
|
|
|
515
502
|
};
|
|
516
503
|
};
|
|
517
504
|
|
|
518
|
-
// src/templates/generators/noise-simplex-template.ts
|
|
519
|
-
import {
|
|
520
|
-
CoreHandleType as CoreHandleType4
|
|
521
|
-
} from "@awesome-flow/core/abstract";
|
|
522
|
-
import { Position as Position6 } from "@xyflow/system";
|
|
523
|
-
var NoiseSimplexNodeTemplateFactory = class {
|
|
524
|
-
template = {
|
|
525
|
-
type: "noise-simplex" /* noiseSimplex */,
|
|
526
|
-
group: "Noise Generators" /* noiseGenerators */,
|
|
527
|
-
data: {
|
|
528
|
-
title: "Simplex Noise"
|
|
529
|
-
},
|
|
530
|
-
handles: [
|
|
531
|
-
{
|
|
532
|
-
position: Position6.Left,
|
|
533
|
-
dataType: CoreHandleType4.variableProperty,
|
|
534
|
-
connection: "target"
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
position: Position6.Right,
|
|
538
|
-
dataType: "module" /* module */,
|
|
539
|
-
connection: "source"
|
|
540
|
-
}
|
|
541
|
-
]
|
|
542
|
-
};
|
|
543
|
-
};
|
|
544
|
-
|
|
545
505
|
// src/templates/generators/noise-spheres-template.ts
|
|
546
|
-
import { CoreHandleType as
|
|
547
|
-
import { Position as
|
|
506
|
+
import { CoreHandleType as CoreHandleType4 } from "@awesome-flow/core/abstract";
|
|
507
|
+
import { Position as Position6 } from "@xyflow/system";
|
|
548
508
|
var NoiseSpheresNodeTemplateFactory = class {
|
|
549
509
|
template = {
|
|
550
510
|
type: "noise-spheres" /* noiseSpheres */,
|
|
@@ -555,12 +515,12 @@ var NoiseSpheresNodeTemplateFactory = class {
|
|
|
555
515
|
},
|
|
556
516
|
handles: [
|
|
557
517
|
{
|
|
558
|
-
position:
|
|
559
|
-
dataType:
|
|
518
|
+
position: Position6.Left,
|
|
519
|
+
dataType: CoreHandleType4.variableProperty,
|
|
560
520
|
connection: "target"
|
|
561
521
|
},
|
|
562
522
|
{
|
|
563
|
-
position:
|
|
523
|
+
position: Position6.Right,
|
|
564
524
|
dataType: "module" /* module */,
|
|
565
525
|
connection: "source"
|
|
566
526
|
}
|
|
@@ -569,8 +529,8 @@ var NoiseSpheresNodeTemplateFactory = class {
|
|
|
569
529
|
};
|
|
570
530
|
|
|
571
531
|
// src/templates/generators/noise-voronoi-template.ts
|
|
572
|
-
import { CoreHandleType as
|
|
573
|
-
import { Position as
|
|
532
|
+
import { CoreHandleType as CoreHandleType5 } from "@awesome-flow/core/abstract";
|
|
533
|
+
import { Position as Position7 } from "@xyflow/system";
|
|
574
534
|
var NoiseVoronoiNodeTemplateFactory = class {
|
|
575
535
|
template = {
|
|
576
536
|
type: "noise-voronoi" /* noiseVoronoi */,
|
|
@@ -584,12 +544,12 @@ var NoiseVoronoiNodeTemplateFactory = class {
|
|
|
584
544
|
},
|
|
585
545
|
handles: [
|
|
586
546
|
{
|
|
587
|
-
position:
|
|
588
|
-
dataType:
|
|
547
|
+
position: Position7.Left,
|
|
548
|
+
dataType: CoreHandleType5.variableProperty,
|
|
589
549
|
connection: "target"
|
|
590
550
|
},
|
|
591
551
|
{
|
|
592
|
-
position:
|
|
552
|
+
position: Position7.Right,
|
|
593
553
|
dataType: "module" /* module */,
|
|
594
554
|
connection: "source"
|
|
595
555
|
}
|
|
@@ -598,7 +558,7 @@ var NoiseVoronoiNodeTemplateFactory = class {
|
|
|
598
558
|
};
|
|
599
559
|
|
|
600
560
|
// src/templates/generators/position-const-template.ts
|
|
601
|
-
import { Position as
|
|
561
|
+
import { Position as Position8 } from "@xyflow/system";
|
|
602
562
|
var PositionConstNodeTemplateFactory = class {
|
|
603
563
|
template = {
|
|
604
564
|
type: "position" /* position */,
|
|
@@ -609,7 +569,7 @@ var PositionConstNodeTemplateFactory = class {
|
|
|
609
569
|
},
|
|
610
570
|
handles: [
|
|
611
571
|
{
|
|
612
|
-
position:
|
|
572
|
+
position: Position8.Right,
|
|
613
573
|
dataType: "position" /* position */,
|
|
614
574
|
connection: "source"
|
|
615
575
|
}
|
|
@@ -618,7 +578,7 @@ var PositionConstNodeTemplateFactory = class {
|
|
|
618
578
|
};
|
|
619
579
|
|
|
620
580
|
// src/templates/generators/position-grid-template.ts
|
|
621
|
-
import { Position as
|
|
581
|
+
import { Position as Position9 } from "@xyflow/system";
|
|
622
582
|
var PositionGridNodeTemplateFactory = class {
|
|
623
583
|
template = {
|
|
624
584
|
type: "grid" /* grid */,
|
|
@@ -630,7 +590,7 @@ var PositionGridNodeTemplateFactory = class {
|
|
|
630
590
|
},
|
|
631
591
|
handles: [
|
|
632
592
|
{
|
|
633
|
-
position:
|
|
593
|
+
position: Position9.Right,
|
|
634
594
|
dataType: "position" /* position */,
|
|
635
595
|
connection: "source"
|
|
636
596
|
}
|
|
@@ -640,7 +600,7 @@ var PositionGridNodeTemplateFactory = class {
|
|
|
640
600
|
|
|
641
601
|
// src/templates/modifiers/noise-normalize-template.ts
|
|
642
602
|
import { IDGenerator } from "@awesome-flow/core/utils";
|
|
643
|
-
import { Position as
|
|
603
|
+
import { Position as Position10 } from "@xyflow/system";
|
|
644
604
|
var NoiseNormalizeNodeTemplateFactory = class {
|
|
645
605
|
template = {
|
|
646
606
|
id: IDGenerator.template(),
|
|
@@ -653,13 +613,13 @@ var NoiseNormalizeNodeTemplateFactory = class {
|
|
|
653
613
|
},
|
|
654
614
|
handles: [
|
|
655
615
|
{
|
|
656
|
-
position:
|
|
616
|
+
position: Position10.Left,
|
|
657
617
|
dataType: "module" /* module */,
|
|
658
618
|
connection: "target",
|
|
659
619
|
maxConnections: 1
|
|
660
620
|
},
|
|
661
621
|
{
|
|
662
|
-
position:
|
|
622
|
+
position: Position10.Right,
|
|
663
623
|
dataType: "module" /* module */,
|
|
664
624
|
connection: "source"
|
|
665
625
|
}
|
|
@@ -668,7 +628,7 @@ var NoiseNormalizeNodeTemplateFactory = class {
|
|
|
668
628
|
};
|
|
669
629
|
|
|
670
630
|
// src/templates/output/noise-logger-template.ts
|
|
671
|
-
import { Position as
|
|
631
|
+
import { Position as Position11 } from "@xyflow/system";
|
|
672
632
|
var NoiseLoggerNodeTemplateFactory = class {
|
|
673
633
|
template = {
|
|
674
634
|
type: "noise-logger" /* noiseLogger */,
|
|
@@ -678,7 +638,7 @@ var NoiseLoggerNodeTemplateFactory = class {
|
|
|
678
638
|
},
|
|
679
639
|
handles: [
|
|
680
640
|
{
|
|
681
|
-
position:
|
|
641
|
+
position: Position11.Left,
|
|
682
642
|
dataType: "noise" /* noise */,
|
|
683
643
|
connection: "target"
|
|
684
644
|
}
|
|
@@ -687,7 +647,7 @@ var NoiseLoggerNodeTemplateFactory = class {
|
|
|
687
647
|
};
|
|
688
648
|
|
|
689
649
|
// src/templates/output/noise-raw-texture-template.ts
|
|
690
|
-
import { Position as
|
|
650
|
+
import { Position as Position12 } from "@xyflow/system";
|
|
691
651
|
var NoiseRawTextureTemplateFactory = class {
|
|
692
652
|
template = {
|
|
693
653
|
type: "texture-data" /* textureData */,
|
|
@@ -697,13 +657,13 @@ var NoiseRawTextureTemplateFactory = class {
|
|
|
697
657
|
},
|
|
698
658
|
handles: [
|
|
699
659
|
{
|
|
700
|
-
position:
|
|
660
|
+
position: Position12.Left,
|
|
701
661
|
dataType: "noise" /* noise */,
|
|
702
662
|
connection: "target",
|
|
703
663
|
maxConnections: 1
|
|
704
664
|
},
|
|
705
665
|
{
|
|
706
|
-
position:
|
|
666
|
+
position: Position12.Right,
|
|
707
667
|
dataType: "texture" /* texture */,
|
|
708
668
|
connection: "source"
|
|
709
669
|
}
|
|
@@ -712,7 +672,7 @@ var NoiseRawTextureTemplateFactory = class {
|
|
|
712
672
|
};
|
|
713
673
|
|
|
714
674
|
// src/templates/output/position-logger-template.ts
|
|
715
|
-
import { Position as
|
|
675
|
+
import { Position as Position13 } from "@xyflow/system";
|
|
716
676
|
var PositionLoggerNodeTemplateFactory = class {
|
|
717
677
|
template = {
|
|
718
678
|
type: "position-logger" /* positionLogger */,
|
|
@@ -722,7 +682,7 @@ var PositionLoggerNodeTemplateFactory = class {
|
|
|
722
682
|
},
|
|
723
683
|
handles: [
|
|
724
684
|
{
|
|
725
|
-
position:
|
|
685
|
+
position: Position13.Left,
|
|
726
686
|
dataType: "position" /* position */,
|
|
727
687
|
connection: "target"
|
|
728
688
|
}
|
|
@@ -731,7 +691,7 @@ var PositionLoggerNodeTemplateFactory = class {
|
|
|
731
691
|
};
|
|
732
692
|
|
|
733
693
|
// src/templates/modifiers/noise-combine-template.ts
|
|
734
|
-
import { Position as
|
|
694
|
+
import { Position as Position14 } from "@xyflow/system";
|
|
735
695
|
var NoiseCombineNodeTemplateFactory = class {
|
|
736
696
|
template = {
|
|
737
697
|
type: "noise-combiner" /* noiseCombine */,
|
|
@@ -742,13 +702,13 @@ var NoiseCombineNodeTemplateFactory = class {
|
|
|
742
702
|
},
|
|
743
703
|
handles: [
|
|
744
704
|
{
|
|
745
|
-
position:
|
|
705
|
+
position: Position14.Left,
|
|
746
706
|
dataType: "module" /* module */,
|
|
747
707
|
connection: "target",
|
|
748
708
|
maxConnections: 2
|
|
749
709
|
},
|
|
750
710
|
{
|
|
751
|
-
position:
|
|
711
|
+
position: Position14.Right,
|
|
752
712
|
dataType: "module" /* module */,
|
|
753
713
|
connection: "source"
|
|
754
714
|
}
|
|
@@ -757,7 +717,7 @@ var NoiseCombineNodeTemplateFactory = class {
|
|
|
757
717
|
};
|
|
758
718
|
|
|
759
719
|
// src/templates/modifiers/noise-clamp-template.ts
|
|
760
|
-
import { Position as
|
|
720
|
+
import { Position as Position15 } from "@xyflow/system";
|
|
761
721
|
var NoiseClampNodeTemplateFactory = class {
|
|
762
722
|
template = {
|
|
763
723
|
type: "noise-clamp" /* noiseClamp */,
|
|
@@ -769,13 +729,13 @@ var NoiseClampNodeTemplateFactory = class {
|
|
|
769
729
|
},
|
|
770
730
|
handles: [
|
|
771
731
|
{
|
|
772
|
-
position:
|
|
732
|
+
position: Position15.Left,
|
|
773
733
|
dataType: "module" /* module */,
|
|
774
734
|
connection: "target",
|
|
775
735
|
maxConnections: 1
|
|
776
736
|
},
|
|
777
737
|
{
|
|
778
|
-
position:
|
|
738
|
+
position: Position15.Right,
|
|
779
739
|
dataType: "module" /* module */,
|
|
780
740
|
connection: "source"
|
|
781
741
|
}
|
|
@@ -784,7 +744,7 @@ var NoiseClampNodeTemplateFactory = class {
|
|
|
784
744
|
};
|
|
785
745
|
|
|
786
746
|
// src/templates/modifiers/noise-abs-template.ts
|
|
787
|
-
import { Position as
|
|
747
|
+
import { Position as Position16 } from "@xyflow/system";
|
|
788
748
|
var NoiseAbsNodeTemplateFactory = class {
|
|
789
749
|
template = {
|
|
790
750
|
type: "noise-abs" /* noiseAbs */,
|
|
@@ -794,13 +754,13 @@ var NoiseAbsNodeTemplateFactory = class {
|
|
|
794
754
|
},
|
|
795
755
|
handles: [
|
|
796
756
|
{
|
|
797
|
-
position:
|
|
757
|
+
position: Position16.Left,
|
|
798
758
|
dataType: "module" /* module */,
|
|
799
759
|
connection: "target",
|
|
800
760
|
maxConnections: 1
|
|
801
761
|
},
|
|
802
762
|
{
|
|
803
|
-
position:
|
|
763
|
+
position: Position16.Right,
|
|
804
764
|
dataType: "module" /* module */,
|
|
805
765
|
connection: "source"
|
|
806
766
|
}
|
|
@@ -809,7 +769,7 @@ var NoiseAbsNodeTemplateFactory = class {
|
|
|
809
769
|
};
|
|
810
770
|
|
|
811
771
|
// src/templates/output/noise-output-template.ts
|
|
812
|
-
import { Position as
|
|
772
|
+
import { Position as Position17 } from "@xyflow/system";
|
|
813
773
|
var NoiseOutputNodeTemplateFactory = class {
|
|
814
774
|
template = {
|
|
815
775
|
type: "noise-output" /* noiseOutput */,
|
|
@@ -819,18 +779,18 @@ var NoiseOutputNodeTemplateFactory = class {
|
|
|
819
779
|
},
|
|
820
780
|
handles: [
|
|
821
781
|
{
|
|
822
|
-
position:
|
|
782
|
+
position: Position17.Left,
|
|
823
783
|
dataType: "position" /* position */,
|
|
824
784
|
connection: "target"
|
|
825
785
|
},
|
|
826
786
|
{
|
|
827
|
-
position:
|
|
787
|
+
position: Position17.Left,
|
|
828
788
|
dataType: "module" /* module */,
|
|
829
789
|
connection: "target",
|
|
830
790
|
maxConnections: 1
|
|
831
791
|
},
|
|
832
792
|
{
|
|
833
|
-
position:
|
|
793
|
+
position: Position17.Right,
|
|
834
794
|
dataType: "noise" /* noise */,
|
|
835
795
|
connection: "source"
|
|
836
796
|
}
|
|
@@ -839,8 +799,7 @@ var NoiseOutputNodeTemplateFactory = class {
|
|
|
839
799
|
};
|
|
840
800
|
|
|
841
801
|
// src/templates/modifiers/noise-curve-template.ts
|
|
842
|
-
import {
|
|
843
|
-
import { Position as Position19 } from "@xyflow/system";
|
|
802
|
+
import { Position as Position18 } from "@xyflow/system";
|
|
844
803
|
var NoiseCurveNodeTemplateFactory = class {
|
|
845
804
|
template = {
|
|
846
805
|
type: "noise-curve" /* noiseCurve */,
|
|
@@ -851,18 +810,18 @@ var NoiseCurveNodeTemplateFactory = class {
|
|
|
851
810
|
},
|
|
852
811
|
handles: [
|
|
853
812
|
{
|
|
854
|
-
position:
|
|
813
|
+
position: Position18.Left,
|
|
855
814
|
dataType: "module" /* module */,
|
|
856
815
|
connection: "target",
|
|
857
816
|
maxConnections: 1
|
|
858
817
|
},
|
|
818
|
+
// {
|
|
819
|
+
// position: Position.Left,
|
|
820
|
+
// dataType: CoreHandleType.variableProperty,
|
|
821
|
+
// connection: 'target',
|
|
822
|
+
// },
|
|
859
823
|
{
|
|
860
|
-
position:
|
|
861
|
-
dataType: CoreHandleType7.variableProperty,
|
|
862
|
-
connection: "target"
|
|
863
|
-
},
|
|
864
|
-
{
|
|
865
|
-
position: Position19.Right,
|
|
824
|
+
position: Position18.Right,
|
|
866
825
|
dataType: "module" /* module */,
|
|
867
826
|
connection: "source"
|
|
868
827
|
}
|
|
@@ -871,7 +830,7 @@ var NoiseCurveNodeTemplateFactory = class {
|
|
|
871
830
|
};
|
|
872
831
|
|
|
873
832
|
// src/templates/modifiers/noise-exponent-template.ts
|
|
874
|
-
import { Position as
|
|
833
|
+
import { Position as Position19 } from "@xyflow/system";
|
|
875
834
|
var NoiseExponentNodeTemplateFactory = class {
|
|
876
835
|
template = {
|
|
877
836
|
type: "noise-exponent" /* noiseExponent */,
|
|
@@ -882,13 +841,13 @@ var NoiseExponentNodeTemplateFactory = class {
|
|
|
882
841
|
},
|
|
883
842
|
handles: [
|
|
884
843
|
{
|
|
885
|
-
position:
|
|
844
|
+
position: Position19.Left,
|
|
886
845
|
dataType: "module" /* module */,
|
|
887
846
|
connection: "target",
|
|
888
847
|
maxConnections: 1
|
|
889
848
|
},
|
|
890
849
|
{
|
|
891
|
-
position:
|
|
850
|
+
position: Position19.Right,
|
|
892
851
|
dataType: "module" /* module */,
|
|
893
852
|
connection: "source"
|
|
894
853
|
}
|
|
@@ -897,7 +856,7 @@ var NoiseExponentNodeTemplateFactory = class {
|
|
|
897
856
|
};
|
|
898
857
|
|
|
899
858
|
// src/templates/modifiers/noise-invert-template.ts
|
|
900
|
-
import { Position as
|
|
859
|
+
import { Position as Position20 } from "@xyflow/system";
|
|
901
860
|
var NoiseInvertNodeTemplateFactory = class {
|
|
902
861
|
template = {
|
|
903
862
|
type: "noise-invert" /* noiseInvert */,
|
|
@@ -907,13 +866,13 @@ var NoiseInvertNodeTemplateFactory = class {
|
|
|
907
866
|
},
|
|
908
867
|
handles: [
|
|
909
868
|
{
|
|
910
|
-
position:
|
|
869
|
+
position: Position20.Left,
|
|
911
870
|
dataType: "module" /* module */,
|
|
912
871
|
connection: "target",
|
|
913
872
|
maxConnections: 1
|
|
914
873
|
},
|
|
915
874
|
{
|
|
916
|
-
position:
|
|
875
|
+
position: Position20.Right,
|
|
917
876
|
dataType: "module" /* module */,
|
|
918
877
|
connection: "source"
|
|
919
878
|
}
|
|
@@ -922,7 +881,7 @@ var NoiseInvertNodeTemplateFactory = class {
|
|
|
922
881
|
};
|
|
923
882
|
|
|
924
883
|
// src/templates/modifiers/noise-scalebias-template.ts
|
|
925
|
-
import { Position as
|
|
884
|
+
import { Position as Position21 } from "@xyflow/system";
|
|
926
885
|
var NoiseScaleBiasNodeTemplateFactory = class {
|
|
927
886
|
template = {
|
|
928
887
|
type: "noise-scale-bias" /* noiseScaleBias */,
|
|
@@ -934,13 +893,13 @@ var NoiseScaleBiasNodeTemplateFactory = class {
|
|
|
934
893
|
},
|
|
935
894
|
handles: [
|
|
936
895
|
{
|
|
937
|
-
position:
|
|
896
|
+
position: Position21.Left,
|
|
938
897
|
dataType: "module" /* module */,
|
|
939
898
|
connection: "target",
|
|
940
899
|
maxConnections: 1
|
|
941
900
|
},
|
|
942
901
|
{
|
|
943
|
-
position:
|
|
902
|
+
position: Position21.Right,
|
|
944
903
|
dataType: "module" /* module */,
|
|
945
904
|
connection: "source"
|
|
946
905
|
}
|
|
@@ -949,7 +908,7 @@ var NoiseScaleBiasNodeTemplateFactory = class {
|
|
|
949
908
|
};
|
|
950
909
|
|
|
951
910
|
// src/templates/modifiers/noise-terrace-template.ts
|
|
952
|
-
import { Position as
|
|
911
|
+
import { Position as Position22 } from "@xyflow/system";
|
|
953
912
|
var NoiseTerraceNodeTemplateFactory = class {
|
|
954
913
|
template = {
|
|
955
914
|
type: "noise-terrace" /* noiseTerrace */,
|
|
@@ -960,13 +919,13 @@ var NoiseTerraceNodeTemplateFactory = class {
|
|
|
960
919
|
},
|
|
961
920
|
handles: [
|
|
962
921
|
{
|
|
963
|
-
position:
|
|
922
|
+
position: Position22.Left,
|
|
964
923
|
dataType: "module" /* module */,
|
|
965
924
|
connection: "target",
|
|
966
925
|
maxConnections: 1
|
|
967
926
|
},
|
|
968
927
|
{
|
|
969
|
-
position:
|
|
928
|
+
position: Position22.Right,
|
|
970
929
|
dataType: "module" /* module */,
|
|
971
930
|
connection: "source"
|
|
972
931
|
}
|
|
@@ -975,7 +934,7 @@ var NoiseTerraceNodeTemplateFactory = class {
|
|
|
975
934
|
};
|
|
976
935
|
|
|
977
936
|
// src/templates/selectors/noise-blend-template.ts
|
|
978
|
-
import { Position as
|
|
937
|
+
import { Position as Position23 } from "@xyflow/system";
|
|
979
938
|
var NoiseBlendNodeTemplateFactory = class {
|
|
980
939
|
template = {
|
|
981
940
|
type: "noise-blend" /* noiseBlend */,
|
|
@@ -985,7 +944,7 @@ var NoiseBlendNodeTemplateFactory = class {
|
|
|
985
944
|
},
|
|
986
945
|
handles: [
|
|
987
946
|
{
|
|
988
|
-
position:
|
|
947
|
+
position: Position23.Left,
|
|
989
948
|
dataType: "module" /* module */,
|
|
990
949
|
connection: "target",
|
|
991
950
|
label: "Source Modules",
|
|
@@ -994,7 +953,7 @@ var NoiseBlendNodeTemplateFactory = class {
|
|
|
994
953
|
minConnections: 2
|
|
995
954
|
},
|
|
996
955
|
{
|
|
997
|
-
position:
|
|
956
|
+
position: Position23.Left,
|
|
998
957
|
dataType: "module" /* module */,
|
|
999
958
|
dataId: "control" /* control */,
|
|
1000
959
|
connection: "target",
|
|
@@ -1002,7 +961,7 @@ var NoiseBlendNodeTemplateFactory = class {
|
|
|
1002
961
|
maxConnections: 1
|
|
1003
962
|
},
|
|
1004
963
|
{
|
|
1005
|
-
position:
|
|
964
|
+
position: Position23.Right,
|
|
1006
965
|
dataType: "module" /* module */,
|
|
1007
966
|
dataId: "output" /* output */,
|
|
1008
967
|
connection: "source"
|
|
@@ -1012,7 +971,7 @@ var NoiseBlendNodeTemplateFactory = class {
|
|
|
1012
971
|
};
|
|
1013
972
|
|
|
1014
973
|
// src/templates/selectors/noise-select-template.ts
|
|
1015
|
-
import { Position as
|
|
974
|
+
import { Position as Position24 } from "@xyflow/system";
|
|
1016
975
|
var NoiseSelectNodeTemplateFactory = class {
|
|
1017
976
|
template = {
|
|
1018
977
|
type: "noise-select" /* noiseSelect */,
|
|
@@ -1025,7 +984,7 @@ var NoiseSelectNodeTemplateFactory = class {
|
|
|
1025
984
|
},
|
|
1026
985
|
handles: [
|
|
1027
986
|
{
|
|
1028
|
-
position:
|
|
987
|
+
position: Position24.Left,
|
|
1029
988
|
dataType: "module" /* module */,
|
|
1030
989
|
dataId: "source" /* source */,
|
|
1031
990
|
connection: "target",
|
|
@@ -1034,7 +993,7 @@ var NoiseSelectNodeTemplateFactory = class {
|
|
|
1034
993
|
minConnections: 2
|
|
1035
994
|
},
|
|
1036
995
|
{
|
|
1037
|
-
position:
|
|
996
|
+
position: Position24.Left,
|
|
1038
997
|
dataType: "module" /* module */,
|
|
1039
998
|
dataId: "control" /* control */,
|
|
1040
999
|
connection: "target",
|
|
@@ -1042,7 +1001,7 @@ var NoiseSelectNodeTemplateFactory = class {
|
|
|
1042
1001
|
maxConnections: 1
|
|
1043
1002
|
},
|
|
1044
1003
|
{
|
|
1045
|
-
position:
|
|
1004
|
+
position: Position24.Right,
|
|
1046
1005
|
dataType: "module" /* module */,
|
|
1047
1006
|
dataId: "output" /* output */,
|
|
1048
1007
|
connection: "source"
|
|
@@ -1052,7 +1011,7 @@ var NoiseSelectNodeTemplateFactory = class {
|
|
|
1052
1011
|
};
|
|
1053
1012
|
|
|
1054
1013
|
// src/templates/transformers/noise-displace-template.ts
|
|
1055
|
-
import { Position as
|
|
1014
|
+
import { Position as Position25 } from "@xyflow/system";
|
|
1056
1015
|
var NoiseDisplaceNodeTemplateFactory = class {
|
|
1057
1016
|
template = {
|
|
1058
1017
|
type: "noise-displace" /* noiseDisplace */,
|
|
@@ -1062,7 +1021,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
1062
1021
|
},
|
|
1063
1022
|
handles: [
|
|
1064
1023
|
{
|
|
1065
|
-
position:
|
|
1024
|
+
position: Position25.Left,
|
|
1066
1025
|
connection: "target",
|
|
1067
1026
|
label: "Source Module",
|
|
1068
1027
|
dataType: "module" /* module */,
|
|
@@ -1070,7 +1029,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
1070
1029
|
maxConnections: 1
|
|
1071
1030
|
},
|
|
1072
1031
|
{
|
|
1073
|
-
position:
|
|
1032
|
+
position: Position25.Left,
|
|
1074
1033
|
connection: "target",
|
|
1075
1034
|
label: "X Module",
|
|
1076
1035
|
dataType: "module" /* module */,
|
|
@@ -1078,7 +1037,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
1078
1037
|
maxConnections: 1
|
|
1079
1038
|
},
|
|
1080
1039
|
{
|
|
1081
|
-
position:
|
|
1040
|
+
position: Position25.Left,
|
|
1082
1041
|
connection: "target",
|
|
1083
1042
|
label: "Y Module",
|
|
1084
1043
|
dataType: "module" /* module */,
|
|
@@ -1086,7 +1045,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
1086
1045
|
maxConnections: 1
|
|
1087
1046
|
},
|
|
1088
1047
|
{
|
|
1089
|
-
position:
|
|
1048
|
+
position: Position25.Left,
|
|
1090
1049
|
connection: "target",
|
|
1091
1050
|
label: "Z Module",
|
|
1092
1051
|
dataType: "module" /* module */,
|
|
@@ -1094,7 +1053,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
1094
1053
|
maxConnections: 1
|
|
1095
1054
|
},
|
|
1096
1055
|
{
|
|
1097
|
-
position:
|
|
1056
|
+
position: Position25.Right,
|
|
1098
1057
|
dataType: "module" /* module */,
|
|
1099
1058
|
dataId: "output" /* output */,
|
|
1100
1059
|
connection: "source"
|
|
@@ -1104,7 +1063,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
|
|
|
1104
1063
|
};
|
|
1105
1064
|
|
|
1106
1065
|
// src/templates/transformers/noise-rotate-point-template.ts
|
|
1107
|
-
import { Position as
|
|
1066
|
+
import { Position as Position26 } from "@xyflow/system";
|
|
1108
1067
|
var NoiseRotatePointNodeTemplateFactory = class {
|
|
1109
1068
|
template = {
|
|
1110
1069
|
type: "noise-rotate-point" /* noiseRotatePoint */,
|
|
@@ -1117,14 +1076,14 @@ var NoiseRotatePointNodeTemplateFactory = class {
|
|
|
1117
1076
|
},
|
|
1118
1077
|
handles: [
|
|
1119
1078
|
{
|
|
1120
|
-
position:
|
|
1079
|
+
position: Position26.Left,
|
|
1121
1080
|
dataType: "module" /* module */,
|
|
1122
1081
|
connection: "target",
|
|
1123
1082
|
label: "Source Module",
|
|
1124
1083
|
maxConnections: 1
|
|
1125
1084
|
},
|
|
1126
1085
|
{
|
|
1127
|
-
position:
|
|
1086
|
+
position: Position26.Right,
|
|
1128
1087
|
dataType: "module" /* module */,
|
|
1129
1088
|
connection: "source"
|
|
1130
1089
|
}
|
|
@@ -1133,7 +1092,7 @@ var NoiseRotatePointNodeTemplateFactory = class {
|
|
|
1133
1092
|
};
|
|
1134
1093
|
|
|
1135
1094
|
// src/templates/transformers/noise-scale-point-template.ts
|
|
1136
|
-
import { Position as
|
|
1095
|
+
import { Position as Position27 } from "@xyflow/system";
|
|
1137
1096
|
var NoiseScalePointNodeTemplateFactory = class {
|
|
1138
1097
|
template = {
|
|
1139
1098
|
type: "noise-scale-point" /* noiseScalePoint */,
|
|
@@ -1146,14 +1105,14 @@ var NoiseScalePointNodeTemplateFactory = class {
|
|
|
1146
1105
|
},
|
|
1147
1106
|
handles: [
|
|
1148
1107
|
{
|
|
1149
|
-
position:
|
|
1108
|
+
position: Position27.Left,
|
|
1150
1109
|
dataType: "module" /* module */,
|
|
1151
1110
|
connection: "target",
|
|
1152
1111
|
label: "Source Module",
|
|
1153
1112
|
maxConnections: 1
|
|
1154
1113
|
},
|
|
1155
1114
|
{
|
|
1156
|
-
position:
|
|
1115
|
+
position: Position27.Right,
|
|
1157
1116
|
dataType: "module" /* module */,
|
|
1158
1117
|
connection: "source"
|
|
1159
1118
|
}
|
|
@@ -1162,7 +1121,7 @@ var NoiseScalePointNodeTemplateFactory = class {
|
|
|
1162
1121
|
};
|
|
1163
1122
|
|
|
1164
1123
|
// src/templates/transformers/noise-translate-point-template.ts
|
|
1165
|
-
import { Position as
|
|
1124
|
+
import { Position as Position28 } from "@xyflow/system";
|
|
1166
1125
|
var NoiseTranslatePointNodeTemplateFactory = class {
|
|
1167
1126
|
template = {
|
|
1168
1127
|
type: "noise-translate-point" /* noiseTranslatePoint */,
|
|
@@ -1175,14 +1134,14 @@ var NoiseTranslatePointNodeTemplateFactory = class {
|
|
|
1175
1134
|
},
|
|
1176
1135
|
handles: [
|
|
1177
1136
|
{
|
|
1178
|
-
position:
|
|
1137
|
+
position: Position28.Left,
|
|
1179
1138
|
dataType: "module" /* module */,
|
|
1180
1139
|
connection: "target",
|
|
1181
1140
|
label: "Source Module",
|
|
1182
1141
|
maxConnections: 1
|
|
1183
1142
|
},
|
|
1184
1143
|
{
|
|
1185
|
-
position:
|
|
1144
|
+
position: Position28.Right,
|
|
1186
1145
|
dataType: "module" /* module */,
|
|
1187
1146
|
connection: "source"
|
|
1188
1147
|
}
|
|
@@ -1191,8 +1150,8 @@ var NoiseTranslatePointNodeTemplateFactory = class {
|
|
|
1191
1150
|
};
|
|
1192
1151
|
|
|
1193
1152
|
// src/templates/transformers/noise-turbulence-template.ts
|
|
1194
|
-
import { CoreHandleType as
|
|
1195
|
-
import { Position as
|
|
1153
|
+
import { CoreHandleType as CoreHandleType6 } from "@awesome-flow/core/abstract";
|
|
1154
|
+
import { Position as Position29 } from "@xyflow/system";
|
|
1196
1155
|
var NoiseTurbulenceNodeTemplateFactory = class {
|
|
1197
1156
|
template = {
|
|
1198
1157
|
type: "noise-turbulence" /* noiseTurbulence */,
|
|
@@ -1206,20 +1165,20 @@ var NoiseTurbulenceNodeTemplateFactory = class {
|
|
|
1206
1165
|
},
|
|
1207
1166
|
handles: [
|
|
1208
1167
|
{
|
|
1209
|
-
position:
|
|
1168
|
+
position: Position29.Left,
|
|
1210
1169
|
dataType: "module" /* module */,
|
|
1211
1170
|
connection: "target",
|
|
1212
1171
|
label: "Source Module",
|
|
1213
1172
|
maxConnections: 1
|
|
1214
1173
|
},
|
|
1215
1174
|
{
|
|
1216
|
-
position:
|
|
1217
|
-
dataType:
|
|
1175
|
+
position: Position29.Left,
|
|
1176
|
+
dataType: CoreHandleType6.variableProperty,
|
|
1218
1177
|
label: "Variable Properties",
|
|
1219
1178
|
connection: "target"
|
|
1220
1179
|
},
|
|
1221
1180
|
{
|
|
1222
|
-
position:
|
|
1181
|
+
position: Position29.Right,
|
|
1223
1182
|
dataType: "module" /* module */,
|
|
1224
1183
|
connection: "source"
|
|
1225
1184
|
}
|
|
@@ -1228,9 +1187,9 @@ var NoiseTurbulenceNodeTemplateFactory = class {
|
|
|
1228
1187
|
};
|
|
1229
1188
|
|
|
1230
1189
|
// src/templates/generators/noise-billow-template.ts
|
|
1231
|
-
import { CoreHandleType as
|
|
1190
|
+
import { CoreHandleType as CoreHandleType7 } from "@awesome-flow/core/abstract";
|
|
1232
1191
|
import { IDGenerator as IDGenerator2 } from "@awesome-flow/core/utils";
|
|
1233
|
-
import { Position as
|
|
1192
|
+
import { Position as Position30 } from "@xyflow/system";
|
|
1234
1193
|
var NoiseBillowNodeTemplateFactory = class {
|
|
1235
1194
|
template = {
|
|
1236
1195
|
id: IDGenerator2.template(),
|
|
@@ -1246,12 +1205,12 @@ var NoiseBillowNodeTemplateFactory = class {
|
|
|
1246
1205
|
},
|
|
1247
1206
|
handles: [
|
|
1248
1207
|
{
|
|
1249
|
-
position:
|
|
1250
|
-
dataType:
|
|
1208
|
+
position: Position30.Left,
|
|
1209
|
+
dataType: CoreHandleType7.variableProperty,
|
|
1251
1210
|
connection: "target"
|
|
1252
1211
|
},
|
|
1253
1212
|
{
|
|
1254
|
-
position:
|
|
1213
|
+
position: Position30.Right,
|
|
1255
1214
|
dataType: "module" /* module */,
|
|
1256
1215
|
connection: "source"
|
|
1257
1216
|
}
|
|
@@ -1264,7 +1223,7 @@ import {
|
|
|
1264
1223
|
CoreTemplateGroup
|
|
1265
1224
|
} from "@awesome-flow/core/abstract";
|
|
1266
1225
|
import { IDGenerator as IDGenerator3 } from "@awesome-flow/core/utils";
|
|
1267
|
-
import { Position as
|
|
1226
|
+
import { Position as Position31 } from "@xyflow/system";
|
|
1268
1227
|
var ModuleGroupNodeTemplateFactory = class {
|
|
1269
1228
|
template = {
|
|
1270
1229
|
id: IDGenerator3.template(),
|
|
@@ -1284,14 +1243,14 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1284
1243
|
},
|
|
1285
1244
|
handles: [
|
|
1286
1245
|
{
|
|
1287
|
-
position:
|
|
1246
|
+
position: Position31.Bottom,
|
|
1288
1247
|
dataType: "module" /* module */,
|
|
1289
1248
|
connection: "target",
|
|
1290
1249
|
maxConnections: 1,
|
|
1291
1250
|
hideOnCollapse: true
|
|
1292
1251
|
},
|
|
1293
1252
|
{
|
|
1294
|
-
position:
|
|
1253
|
+
position: Position31.Right,
|
|
1295
1254
|
dataType: "module" /* module */,
|
|
1296
1255
|
connection: "source"
|
|
1297
1256
|
}
|
|
@@ -1300,23 +1259,22 @@ var ModuleGroupNodeTemplateFactory = class {
|
|
|
1300
1259
|
};
|
|
1301
1260
|
|
|
1302
1261
|
// src/nodes/groups/module-group-node.tsx
|
|
1303
|
-
import { NodeContainer as
|
|
1262
|
+
import { NodeContainer as NodeContainer30, NodeCollapse, NodeTrackConnections as NodeTrackConnections26 } from "@awesome-flow/core/layout";
|
|
1304
1263
|
import { NodeResizer, useStore, useUpdateNodeInternals } from "@xyflow/react";
|
|
1305
|
-
import { useCallback as useCallback14, useEffect as
|
|
1264
|
+
import { useCallback as useCallback14, useEffect as useEffect20, useMemo as useMemo11 } from "react";
|
|
1306
1265
|
import { shallow } from "zustand/shallow";
|
|
1307
1266
|
import { Badge, Group as Group15 } from "@mantine/core";
|
|
1308
1267
|
import {
|
|
1309
1268
|
useFlowStore,
|
|
1310
1269
|
useIncomingComputedData as useIncomingComputedData17,
|
|
1311
1270
|
useInteractiveStore,
|
|
1312
|
-
useUpdateNodeComputedData as
|
|
1271
|
+
useUpdateNodeComputedData as useUpdateNodeComputedData28
|
|
1313
1272
|
} from "@awesome-flow/core/hooks";
|
|
1314
|
-
import { jsx as
|
|
1273
|
+
import { jsx as jsx30, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1315
1274
|
|
|
1316
1275
|
// src/abstract/node-types.ts
|
|
1317
1276
|
var noiseNodeTemplates = {
|
|
1318
1277
|
["noise-output" /* noiseOutput */]: new NoiseOutputNodeTemplateFactory(),
|
|
1319
|
-
["noise-simplex" /* noiseSimplex */]: new NoiseSimplexNodeTemplateFactory(),
|
|
1320
1278
|
["noise-billow" /* noiseBillow */]: new NoiseBillowNodeTemplateFactory(),
|
|
1321
1279
|
["noise-checkerboard" /* noiseCheckerboard */]: new NoiseCheckerboardNodeTemplateFactory(),
|
|
1322
1280
|
["noise-normalize" /* noiseNormalize */]: new NoiseNormalizeNodeTemplateFactory(),
|
|
@@ -1350,9 +1308,9 @@ var noiseNodeTemplates = {
|
|
|
1350
1308
|
};
|
|
1351
1309
|
|
|
1352
1310
|
// src/nodes/selectors/noise-blend-node.tsx
|
|
1353
|
-
import { jsx as
|
|
1311
|
+
import { jsx as jsx31, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1354
1312
|
function NoiseBlendNode({ id, selected, data, type }) {
|
|
1355
|
-
const updateComputedData =
|
|
1313
|
+
const updateComputedData = useUpdateNodeComputedData29();
|
|
1356
1314
|
const onDataUpdated = useCallback15(
|
|
1357
1315
|
(incomingData) => {
|
|
1358
1316
|
const incomingSources = incomingData["source" /* source */];
|
|
@@ -1368,8 +1326,8 @@ function NoiseBlendNode({ id, selected, data, type }) {
|
|
|
1368
1326
|
},
|
|
1369
1327
|
[]
|
|
1370
1328
|
);
|
|
1371
|
-
return /* @__PURE__ */ jsxs28(
|
|
1372
|
-
/* @__PURE__ */
|
|
1329
|
+
return /* @__PURE__ */ jsxs28(NodeContainer31, { id, selected, data, type, children: [
|
|
1330
|
+
/* @__PURE__ */ jsx31(
|
|
1373
1331
|
HandlesIncomingDataStatus4,
|
|
1374
1332
|
{
|
|
1375
1333
|
nodeId: id,
|
|
@@ -1380,7 +1338,7 @@ function NoiseBlendNode({ id, selected, data, type }) {
|
|
|
1380
1338
|
resetComputedData: true
|
|
1381
1339
|
}
|
|
1382
1340
|
),
|
|
1383
|
-
/* @__PURE__ */
|
|
1341
|
+
/* @__PURE__ */ jsx31(NodeTrackConnections27, { handles: data.handles, nodeId: id, type: "target" })
|
|
1384
1342
|
] });
|
|
1385
1343
|
}
|
|
1386
1344
|
var noise_blend_node_default = NoiseBlendNode;
|