@awesome-flow/noise 0.9.1 → 0.9.3
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 +6 -6
- package/dist/abstract/index.d.cts +2 -2
- package/dist/abstract/index.d.ts +2 -2
- package/dist/abstract/index.js +5 -5
- package/dist/{chunk-D5QJ3563.cjs → chunk-36USJJC4.cjs} +52 -117
- package/dist/{chunk-76MMGOOY.cjs → chunk-DQE5NXY7.cjs} +84 -181
- package/dist/{chunk-4YL2V7SE.js → chunk-FMJZTXJQ.js} +75 -140
- package/dist/{chunk-O5DVJAMK.cjs → chunk-LKDSXT7I.cjs} +66 -144
- package/dist/{chunk-L45ZU7VL.js → chunk-M26CSOHC.js} +109 -206
- package/dist/{chunk-S2ZGHJ75.js → chunk-NUA3VGOA.js} +99 -177
- package/dist/{chunk-MIYOMNAG.cjs → chunk-OLJKWO2H.cjs} +77 -129
- package/dist/{chunk-EHBNVDTI.js → chunk-R6TU3SBX.js} +7 -18
- package/dist/{chunk-BE4RLT5P.js → chunk-W4T6Q7A5.js} +75 -127
- package/dist/{chunk-X2GXADE5.cjs → chunk-XC7VF5YC.cjs} +7 -18
- package/dist/{index-EzT2GjIx.d.cts → index-BZr1EROK.d.cts} +1 -1
- package/dist/{index-DAAmYCPU.d.ts → index-DzD3jbPF.d.ts} +1 -1
- package/dist/nodes/generators/index.cjs +2 -2
- package/dist/nodes/generators/index.js +1 -1
- package/dist/nodes/groups/index.cjs +2 -2
- package/dist/nodes/groups/index.js +1 -1
- package/dist/nodes/index.cjs +6 -6
- package/dist/nodes/index.js +5 -5
- package/dist/nodes/modifiers/index.cjs +2 -2
- package/dist/nodes/modifiers/index.js +1 -1
- package/dist/nodes/output/index.cjs +6 -6
- package/dist/nodes/output/index.js +5 -5
- package/dist/nodes/selectors/index.cjs +6 -6
- package/dist/nodes/selectors/index.js +5 -5
- package/dist/nodes/transformers/index.cjs +2 -2
- package/dist/nodes/transformers/index.js +1 -1
- package/dist/templates/generators/index.cjs +6 -6
- package/dist/templates/generators/index.js +5 -5
- package/dist/templates/groups/index.cjs +6 -6
- package/dist/templates/groups/index.js +5 -5
- package/dist/templates/index.cjs +6 -6
- package/dist/templates/index.d.cts +1 -1
- package/dist/templates/index.d.ts +1 -1
- package/dist/templates/index.js +5 -5
- package/dist/templates/modifiers/index.cjs +6 -6
- package/dist/templates/modifiers/index.js +5 -5
- package/dist/templates/output/index.cjs +6 -6
- package/dist/templates/output/index.js +5 -5
- package/dist/templates/selectors/index.cjs +6 -6
- package/dist/templates/selectors/index.js +5 -5
- package/dist/templates/transformers/index.cjs +6 -6
- package/dist/templates/transformers/index.d.cts +1 -1
- package/dist/templates/transformers/index.d.ts +1 -1
- package/dist/templates/transformers/index.js +5 -5
- package/package.json +12 -12
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c as _c } from "react/compiler-runtime";
|
|
3
3
|
import { HandlesIncomingDataStatus } from "@awesome-flow/core/components";
|
|
4
4
|
import { useUpdateNodeComputedData } from "@awesome-flow/core/hooks";
|
|
5
|
-
import { NodeContainer
|
|
5
|
+
import { NodeContainer } from "@awesome-flow/core/layout";
|
|
6
6
|
import { Displace } from "libnoise-simplex-ts";
|
|
7
7
|
|
|
8
8
|
// src/abstract/handle-types.ts
|
|
@@ -29,9 +29,9 @@ var NoiseSourceControlHandle = /* @__PURE__ */ ((NoiseSourceControlHandle2) => {
|
|
|
29
29
|
})(NoiseSourceControlHandle || {});
|
|
30
30
|
|
|
31
31
|
// src/nodes/transformers/noise-displace-node.tsx
|
|
32
|
-
import { jsx
|
|
32
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
33
|
function NoiseDisplaceNode(t0) {
|
|
34
|
-
const $ = _c(
|
|
34
|
+
const $ = _c(13);
|
|
35
35
|
const {
|
|
36
36
|
id,
|
|
37
37
|
selected,
|
|
@@ -62,7 +62,7 @@ function NoiseDisplaceNode(t0) {
|
|
|
62
62
|
const onDataUpdated = t1;
|
|
63
63
|
let t2;
|
|
64
64
|
if ($[3] !== data.handles || $[4] !== id || $[5] !== onDataUpdated) {
|
|
65
|
-
t2 = /* @__PURE__ */ jsx(HandlesIncomingDataStatus, { nodeId: id, handles: data.handles,
|
|
65
|
+
t2 = /* @__PURE__ */ jsx(HandlesIncomingDataStatus, { nodeId: id, handles: data.handles, onDataUpdated, groupBy: "dataId", type: "target", resetComputedData: true });
|
|
66
66
|
$[3] = data.handles;
|
|
67
67
|
$[4] = id;
|
|
68
68
|
$[5] = onDataUpdated;
|
|
@@ -71,44 +71,31 @@ function NoiseDisplaceNode(t0) {
|
|
|
71
71
|
t2 = $[6];
|
|
72
72
|
}
|
|
73
73
|
let t3;
|
|
74
|
-
if ($[7] !== data
|
|
75
|
-
t3 = /* @__PURE__ */ jsx(
|
|
76
|
-
$[7] = data
|
|
74
|
+
if ($[7] !== data || $[8] !== id || $[9] !== selected || $[10] !== t2 || $[11] !== type) {
|
|
75
|
+
t3 = /* @__PURE__ */ jsx(NodeContainer, { id, selected, data, type, children: t2 });
|
|
76
|
+
$[7] = data;
|
|
77
77
|
$[8] = id;
|
|
78
|
-
$[9] =
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
let t4;
|
|
83
|
-
if ($[10] !== data || $[11] !== id || $[12] !== selected || $[13] !== t2 || $[14] !== t3 || $[15] !== type) {
|
|
84
|
-
t4 = /* @__PURE__ */ jsxs(NodeContainer, { id, selected, data, type, children: [
|
|
85
|
-
t2,
|
|
86
|
-
t3
|
|
87
|
-
] });
|
|
88
|
-
$[10] = data;
|
|
89
|
-
$[11] = id;
|
|
90
|
-
$[12] = selected;
|
|
91
|
-
$[13] = t2;
|
|
92
|
-
$[14] = t3;
|
|
93
|
-
$[15] = type;
|
|
94
|
-
$[16] = t4;
|
|
78
|
+
$[9] = selected;
|
|
79
|
+
$[10] = t2;
|
|
80
|
+
$[11] = type;
|
|
81
|
+
$[12] = t3;
|
|
95
82
|
} else {
|
|
96
|
-
|
|
83
|
+
t3 = $[12];
|
|
97
84
|
}
|
|
98
|
-
return
|
|
85
|
+
return t3;
|
|
99
86
|
}
|
|
100
87
|
var noise_displace_node_default = NoiseDisplaceNode;
|
|
101
88
|
|
|
102
89
|
// src/nodes/transformers/noise-rotate-point-node.tsx
|
|
103
90
|
import { c as _c2 } from "react/compiler-runtime";
|
|
104
91
|
import { useIncomingComputedData, useUpdateNodeComputedData as useUpdateNodeComputedData2, useUpdateNodeData } from "@awesome-flow/core/hooks";
|
|
105
|
-
import { NodeContainer as NodeContainer2
|
|
92
|
+
import { NodeContainer as NodeContainer2 } from "@awesome-flow/core/layout";
|
|
106
93
|
import { Group, NumberInput, Stack } from "@mantine/core";
|
|
107
94
|
import { RotatePoint } from "libnoise-simplex-ts";
|
|
108
95
|
import { useEffect, useState } from "react";
|
|
109
|
-
import { jsx as jsx2, jsxs
|
|
96
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
110
97
|
function NoiseRotatePointNode(t0) {
|
|
111
|
-
const $ = _c2(
|
|
98
|
+
const $ = _c2(28);
|
|
112
99
|
const {
|
|
113
100
|
id,
|
|
114
101
|
selected,
|
|
@@ -161,7 +148,7 @@ function NoiseRotatePointNode(t0) {
|
|
|
161
148
|
}
|
|
162
149
|
let t4;
|
|
163
150
|
if ($[10] !== xAngle) {
|
|
164
|
-
t4 = /* @__PURE__ */
|
|
151
|
+
t4 = /* @__PURE__ */ jsxs(Group, { children: [
|
|
165
152
|
"X Angle:",
|
|
166
153
|
/* @__PURE__ */ jsx2(NumberInput, { size: "xs", w: 100, value: xAngle, onChange: t3, step: 0.01 })
|
|
167
154
|
] });
|
|
@@ -179,7 +166,7 @@ function NoiseRotatePointNode(t0) {
|
|
|
179
166
|
}
|
|
180
167
|
let t6;
|
|
181
168
|
if ($[13] !== yAngle) {
|
|
182
|
-
t6 = /* @__PURE__ */
|
|
169
|
+
t6 = /* @__PURE__ */ jsxs(Group, { children: [
|
|
183
170
|
"Y Angle:",
|
|
184
171
|
/* @__PURE__ */ jsx2(NumberInput, { size: "xs", w: 100, value: yAngle, onChange: t5, step: 0.01 })
|
|
185
172
|
] });
|
|
@@ -197,7 +184,7 @@ function NoiseRotatePointNode(t0) {
|
|
|
197
184
|
}
|
|
198
185
|
let t8;
|
|
199
186
|
if ($[16] !== zAngle) {
|
|
200
|
-
t8 = /* @__PURE__ */
|
|
187
|
+
t8 = /* @__PURE__ */ jsxs(Group, { children: [
|
|
201
188
|
"Z Angle:",
|
|
202
189
|
/* @__PURE__ */ jsx2(NumberInput, { size: "xs", w: 100, value: zAngle, onChange: t7, step: 0.01 })
|
|
203
190
|
] });
|
|
@@ -208,7 +195,7 @@ function NoiseRotatePointNode(t0) {
|
|
|
208
195
|
}
|
|
209
196
|
let t9;
|
|
210
197
|
if ($[18] !== t4 || $[19] !== t6 || $[20] !== t8) {
|
|
211
|
-
t9 = /* @__PURE__ */
|
|
198
|
+
t9 = /* @__PURE__ */ jsxs(Stack, { children: [
|
|
212
199
|
t4,
|
|
213
200
|
t6,
|
|
214
201
|
t8
|
|
@@ -221,44 +208,31 @@ function NoiseRotatePointNode(t0) {
|
|
|
221
208
|
t9 = $[21];
|
|
222
209
|
}
|
|
223
210
|
let t10;
|
|
224
|
-
if ($[22] !== data
|
|
225
|
-
t10 = /* @__PURE__ */ jsx2(
|
|
226
|
-
$[22] = data
|
|
211
|
+
if ($[22] !== data || $[23] !== id || $[24] !== selected || $[25] !== t9 || $[26] !== type) {
|
|
212
|
+
t10 = /* @__PURE__ */ jsx2(NodeContainer2, { id, selected, data, type, children: t9 });
|
|
213
|
+
$[22] = data;
|
|
227
214
|
$[23] = id;
|
|
228
|
-
$[24] =
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
let t11;
|
|
233
|
-
if ($[25] !== data || $[26] !== id || $[27] !== selected || $[28] !== t10 || $[29] !== t9 || $[30] !== type) {
|
|
234
|
-
t11 = /* @__PURE__ */ jsxs2(NodeContainer2, { id, selected, data, type, children: [
|
|
235
|
-
t9,
|
|
236
|
-
t10
|
|
237
|
-
] });
|
|
238
|
-
$[25] = data;
|
|
239
|
-
$[26] = id;
|
|
240
|
-
$[27] = selected;
|
|
241
|
-
$[28] = t10;
|
|
242
|
-
$[29] = t9;
|
|
243
|
-
$[30] = type;
|
|
244
|
-
$[31] = t11;
|
|
215
|
+
$[24] = selected;
|
|
216
|
+
$[25] = t9;
|
|
217
|
+
$[26] = type;
|
|
218
|
+
$[27] = t10;
|
|
245
219
|
} else {
|
|
246
|
-
|
|
220
|
+
t10 = $[27];
|
|
247
221
|
}
|
|
248
|
-
return
|
|
222
|
+
return t10;
|
|
249
223
|
}
|
|
250
224
|
var noise_rotate_point_node_default = NoiseRotatePointNode;
|
|
251
225
|
|
|
252
226
|
// src/nodes/transformers/noise-scale-point-node.tsx
|
|
253
227
|
import { c as _c3 } from "react/compiler-runtime";
|
|
254
228
|
import { useIncomingComputedData as useIncomingComputedData2, useUpdateNodeComputedData as useUpdateNodeComputedData3, useUpdateNodeData as useUpdateNodeData2 } from "@awesome-flow/core/hooks";
|
|
255
|
-
import { NodeContainer as NodeContainer3
|
|
229
|
+
import { NodeContainer as NodeContainer3 } from "@awesome-flow/core/layout";
|
|
256
230
|
import { Group as Group2, NumberInput as NumberInput2, Stack as Stack2 } from "@mantine/core";
|
|
257
231
|
import { ScalePoint } from "libnoise-simplex-ts";
|
|
258
232
|
import { useEffect as useEffect2, useState as useState2 } from "react";
|
|
259
|
-
import { jsx as jsx3, jsxs as
|
|
233
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
260
234
|
function NoiseScalePointNode(t0) {
|
|
261
|
-
const $ = _c3(
|
|
235
|
+
const $ = _c3(28);
|
|
262
236
|
const {
|
|
263
237
|
id,
|
|
264
238
|
selected,
|
|
@@ -311,7 +285,7 @@ function NoiseScalePointNode(t0) {
|
|
|
311
285
|
}
|
|
312
286
|
let t4;
|
|
313
287
|
if ($[10] !== xScale) {
|
|
314
|
-
t4 = /* @__PURE__ */
|
|
288
|
+
t4 = /* @__PURE__ */ jsxs2(Group2, { children: [
|
|
315
289
|
"X Scale:",
|
|
316
290
|
/* @__PURE__ */ jsx3(NumberInput2, { size: "xs", w: 100, value: xScale, onChange: t3, step: 0.01 })
|
|
317
291
|
] });
|
|
@@ -329,7 +303,7 @@ function NoiseScalePointNode(t0) {
|
|
|
329
303
|
}
|
|
330
304
|
let t6;
|
|
331
305
|
if ($[13] !== yScale) {
|
|
332
|
-
t6 = /* @__PURE__ */
|
|
306
|
+
t6 = /* @__PURE__ */ jsxs2(Group2, { children: [
|
|
333
307
|
"Y Scale:",
|
|
334
308
|
/* @__PURE__ */ jsx3(NumberInput2, { size: "xs", w: 100, value: yScale, onChange: t5, step: 0.01 })
|
|
335
309
|
] });
|
|
@@ -347,7 +321,7 @@ function NoiseScalePointNode(t0) {
|
|
|
347
321
|
}
|
|
348
322
|
let t8;
|
|
349
323
|
if ($[16] !== zScale) {
|
|
350
|
-
t8 = /* @__PURE__ */
|
|
324
|
+
t8 = /* @__PURE__ */ jsxs2(Group2, { children: [
|
|
351
325
|
"Z Scale:",
|
|
352
326
|
/* @__PURE__ */ jsx3(NumberInput2, { size: "xs", w: 100, value: zScale, onChange: t7, step: 0.01 })
|
|
353
327
|
] });
|
|
@@ -358,7 +332,7 @@ function NoiseScalePointNode(t0) {
|
|
|
358
332
|
}
|
|
359
333
|
let t9;
|
|
360
334
|
if ($[18] !== t4 || $[19] !== t6 || $[20] !== t8) {
|
|
361
|
-
t9 = /* @__PURE__ */
|
|
335
|
+
t9 = /* @__PURE__ */ jsxs2(Stack2, { children: [
|
|
362
336
|
t4,
|
|
363
337
|
t6,
|
|
364
338
|
t8
|
|
@@ -371,44 +345,31 @@ function NoiseScalePointNode(t0) {
|
|
|
371
345
|
t9 = $[21];
|
|
372
346
|
}
|
|
373
347
|
let t10;
|
|
374
|
-
if ($[22] !== data
|
|
375
|
-
t10 = /* @__PURE__ */ jsx3(
|
|
376
|
-
$[22] = data
|
|
348
|
+
if ($[22] !== data || $[23] !== id || $[24] !== selected || $[25] !== t9 || $[26] !== type) {
|
|
349
|
+
t10 = /* @__PURE__ */ jsx3(NodeContainer3, { id, selected, data, type, children: t9 });
|
|
350
|
+
$[22] = data;
|
|
377
351
|
$[23] = id;
|
|
378
|
-
$[24] =
|
|
352
|
+
$[24] = selected;
|
|
353
|
+
$[25] = t9;
|
|
354
|
+
$[26] = type;
|
|
355
|
+
$[27] = t10;
|
|
379
356
|
} else {
|
|
380
|
-
t10 = $[
|
|
357
|
+
t10 = $[27];
|
|
381
358
|
}
|
|
382
|
-
|
|
383
|
-
if ($[25] !== data || $[26] !== id || $[27] !== selected || $[28] !== t10 || $[29] !== t9 || $[30] !== type) {
|
|
384
|
-
t11 = /* @__PURE__ */ jsxs3(NodeContainer3, { id, selected, data, type, children: [
|
|
385
|
-
t9,
|
|
386
|
-
t10
|
|
387
|
-
] });
|
|
388
|
-
$[25] = data;
|
|
389
|
-
$[26] = id;
|
|
390
|
-
$[27] = selected;
|
|
391
|
-
$[28] = t10;
|
|
392
|
-
$[29] = t9;
|
|
393
|
-
$[30] = type;
|
|
394
|
-
$[31] = t11;
|
|
395
|
-
} else {
|
|
396
|
-
t11 = $[31];
|
|
397
|
-
}
|
|
398
|
-
return t11;
|
|
359
|
+
return t10;
|
|
399
360
|
}
|
|
400
361
|
var noise_scale_point_node_default = NoiseScalePointNode;
|
|
401
362
|
|
|
402
363
|
// src/nodes/transformers/noise-translate-point-node.tsx
|
|
403
364
|
import { c as _c4 } from "react/compiler-runtime";
|
|
404
365
|
import { useIncomingComputedData as useIncomingComputedData3, useUpdateNodeComputedData as useUpdateNodeComputedData4, useUpdateNodeData as useUpdateNodeData3 } from "@awesome-flow/core/hooks";
|
|
405
|
-
import { NodeContainer as NodeContainer4
|
|
366
|
+
import { NodeContainer as NodeContainer4 } from "@awesome-flow/core/layout";
|
|
406
367
|
import { Group as Group3, NumberInput as NumberInput3, Stack as Stack3 } from "@mantine/core";
|
|
407
368
|
import { TranslatePoint } from "libnoise-simplex-ts";
|
|
408
369
|
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
409
|
-
import { jsx as jsx4, jsxs as
|
|
370
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
410
371
|
function NoiseTranslatePointNode(t0) {
|
|
411
|
-
const $ = _c4(
|
|
372
|
+
const $ = _c4(28);
|
|
412
373
|
const {
|
|
413
374
|
id,
|
|
414
375
|
selected,
|
|
@@ -461,7 +422,7 @@ function NoiseTranslatePointNode(t0) {
|
|
|
461
422
|
}
|
|
462
423
|
let t4;
|
|
463
424
|
if ($[10] !== translateX) {
|
|
464
|
-
t4 = /* @__PURE__ */
|
|
425
|
+
t4 = /* @__PURE__ */ jsxs3(Group3, { children: [
|
|
465
426
|
"Translate X:",
|
|
466
427
|
/* @__PURE__ */ jsx4(NumberInput3, { size: "xs", w: 100, value: translateX, onChange: t3, step: 1 })
|
|
467
428
|
] });
|
|
@@ -479,7 +440,7 @@ function NoiseTranslatePointNode(t0) {
|
|
|
479
440
|
}
|
|
480
441
|
let t6;
|
|
481
442
|
if ($[13] !== translateY) {
|
|
482
|
-
t6 = /* @__PURE__ */
|
|
443
|
+
t6 = /* @__PURE__ */ jsxs3(Group3, { children: [
|
|
483
444
|
"Translate Y:",
|
|
484
445
|
/* @__PURE__ */ jsx4(NumberInput3, { size: "xs", w: 100, value: translateY, onChange: t5, step: 1 })
|
|
485
446
|
] });
|
|
@@ -497,7 +458,7 @@ function NoiseTranslatePointNode(t0) {
|
|
|
497
458
|
}
|
|
498
459
|
let t8;
|
|
499
460
|
if ($[16] !== translateZ) {
|
|
500
|
-
t8 = /* @__PURE__ */
|
|
461
|
+
t8 = /* @__PURE__ */ jsxs3(Group3, { children: [
|
|
501
462
|
"Translate Z:",
|
|
502
463
|
/* @__PURE__ */ jsx4(NumberInput3, { size: "xs", w: 100, value: translateZ, onChange: t7, step: 1 })
|
|
503
464
|
] });
|
|
@@ -508,7 +469,7 @@ function NoiseTranslatePointNode(t0) {
|
|
|
508
469
|
}
|
|
509
470
|
let t9;
|
|
510
471
|
if ($[18] !== t4 || $[19] !== t6 || $[20] !== t8) {
|
|
511
|
-
t9 = /* @__PURE__ */
|
|
472
|
+
t9 = /* @__PURE__ */ jsxs3(Stack3, { children: [
|
|
512
473
|
t4,
|
|
513
474
|
t6,
|
|
514
475
|
t8
|
|
@@ -521,44 +482,31 @@ function NoiseTranslatePointNode(t0) {
|
|
|
521
482
|
t9 = $[21];
|
|
522
483
|
}
|
|
523
484
|
let t10;
|
|
524
|
-
if ($[22] !== data
|
|
525
|
-
t10 = /* @__PURE__ */ jsx4(
|
|
526
|
-
$[22] = data
|
|
485
|
+
if ($[22] !== data || $[23] !== id || $[24] !== selected || $[25] !== t9 || $[26] !== type) {
|
|
486
|
+
t10 = /* @__PURE__ */ jsx4(NodeContainer4, { id, selected, data, type, children: t9 });
|
|
487
|
+
$[22] = data;
|
|
527
488
|
$[23] = id;
|
|
528
|
-
$[24] =
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
let t11;
|
|
533
|
-
if ($[25] !== data || $[26] !== id || $[27] !== selected || $[28] !== t10 || $[29] !== t9 || $[30] !== type) {
|
|
534
|
-
t11 = /* @__PURE__ */ jsxs4(NodeContainer4, { id, selected, data, type, children: [
|
|
535
|
-
t9,
|
|
536
|
-
t10
|
|
537
|
-
] });
|
|
538
|
-
$[25] = data;
|
|
539
|
-
$[26] = id;
|
|
540
|
-
$[27] = selected;
|
|
541
|
-
$[28] = t10;
|
|
542
|
-
$[29] = t9;
|
|
543
|
-
$[30] = type;
|
|
544
|
-
$[31] = t11;
|
|
489
|
+
$[24] = selected;
|
|
490
|
+
$[25] = t9;
|
|
491
|
+
$[26] = type;
|
|
492
|
+
$[27] = t10;
|
|
545
493
|
} else {
|
|
546
|
-
|
|
494
|
+
t10 = $[27];
|
|
547
495
|
}
|
|
548
|
-
return
|
|
496
|
+
return t10;
|
|
549
497
|
}
|
|
550
498
|
var noise_translate_point_node_default = NoiseTranslatePointNode;
|
|
551
499
|
|
|
552
500
|
// src/nodes/transformers/noise-turbulence-node.tsx
|
|
553
501
|
import { c as _c5 } from "react/compiler-runtime";
|
|
554
|
-
import {
|
|
502
|
+
import { NodePropertiesList } from "@awesome-flow/core/components";
|
|
555
503
|
import { useIncomingComputedData as useIncomingComputedData4, useUpdateNodeComputedData as useUpdateNodeComputedData5 } from "@awesome-flow/core/hooks";
|
|
556
|
-
import { NodeContainer as NodeContainer5
|
|
504
|
+
import { NodeContainer as NodeContainer5 } from "@awesome-flow/core/layout";
|
|
557
505
|
import { Turbulence } from "libnoise-simplex-ts";
|
|
558
506
|
import { useEffect as useEffect4, useState as useState4 } from "react";
|
|
559
|
-
import { jsx as jsx5
|
|
507
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
560
508
|
function NoiseTurbulenceNode(t0) {
|
|
561
|
-
const $ = _c5(
|
|
509
|
+
const $ = _c5(15);
|
|
562
510
|
const {
|
|
563
511
|
id,
|
|
564
512
|
selected,
|
|
@@ -593,7 +541,7 @@ function NoiseTurbulenceNode(t0) {
|
|
|
593
541
|
useEffect4(t1, t2);
|
|
594
542
|
let t3;
|
|
595
543
|
if ($[6] !== data || $[7] !== id) {
|
|
596
|
-
t3 = /* @__PURE__ */ jsx5(
|
|
544
|
+
t3 = /* @__PURE__ */ jsx5(NodePropertiesList, { data, nodeId: id, onPropertiesChange: setProperties });
|
|
597
545
|
$[6] = data;
|
|
598
546
|
$[7] = id;
|
|
599
547
|
$[8] = t3;
|
|
@@ -601,31 +549,18 @@ function NoiseTurbulenceNode(t0) {
|
|
|
601
549
|
t3 = $[8];
|
|
602
550
|
}
|
|
603
551
|
let t4;
|
|
604
|
-
if ($[9] !== data
|
|
605
|
-
t4 = /* @__PURE__ */ jsx5(
|
|
606
|
-
$[9] = data
|
|
552
|
+
if ($[9] !== data || $[10] !== id || $[11] !== selected || $[12] !== t3 || $[13] !== type) {
|
|
553
|
+
t4 = /* @__PURE__ */ jsx5(NodeContainer5, { id, selected, data, type, children: t3 });
|
|
554
|
+
$[9] = data;
|
|
607
555
|
$[10] = id;
|
|
608
|
-
$[11] =
|
|
556
|
+
$[11] = selected;
|
|
557
|
+
$[12] = t3;
|
|
558
|
+
$[13] = type;
|
|
559
|
+
$[14] = t4;
|
|
609
560
|
} else {
|
|
610
|
-
t4 = $[
|
|
561
|
+
t4 = $[14];
|
|
611
562
|
}
|
|
612
|
-
|
|
613
|
-
if ($[12] !== data || $[13] !== id || $[14] !== selected || $[15] !== t3 || $[16] !== t4 || $[17] !== type) {
|
|
614
|
-
t5 = /* @__PURE__ */ jsxs5(NodeContainer5, { id, selected, data, type, children: [
|
|
615
|
-
t3,
|
|
616
|
-
t4
|
|
617
|
-
] });
|
|
618
|
-
$[12] = data;
|
|
619
|
-
$[13] = id;
|
|
620
|
-
$[14] = selected;
|
|
621
|
-
$[15] = t3;
|
|
622
|
-
$[16] = t4;
|
|
623
|
-
$[17] = type;
|
|
624
|
-
$[18] = t5;
|
|
625
|
-
} else {
|
|
626
|
-
t5 = $[18];
|
|
627
|
-
}
|
|
628
|
-
return t5;
|
|
563
|
+
return t4;
|
|
629
564
|
}
|
|
630
565
|
var noise_turbulence_node_default = NoiseTurbulenceNode;
|
|
631
566
|
|