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