@awesome-flow/noise 0.9.1 → 0.9.2
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 +10 -10
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// src/nodes/generators/noise-billow-node.tsx
|
|
2
2
|
import { c as _c } from "react/compiler-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { NodePropertiesList } 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 { Billow } from "libnoise-simplex-ts";
|
|
7
|
-
import { Fragment, jsx
|
|
7
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
8
8
|
function NoiseBillowNode(t0) {
|
|
9
|
-
const $ = _c(
|
|
9
|
+
const $ = _c(13);
|
|
10
10
|
const {
|
|
11
11
|
id,
|
|
12
12
|
selected,
|
|
@@ -32,7 +32,7 @@ function NoiseBillowNode(t0) {
|
|
|
32
32
|
const onPropertiesChange = t1;
|
|
33
33
|
let t2;
|
|
34
34
|
if ($[3] !== data || $[4] !== id || $[5] !== onPropertiesChange) {
|
|
35
|
-
t2 = /* @__PURE__ */ jsx(
|
|
35
|
+
t2 = /* @__PURE__ */ jsx(NodePropertiesList, { data, nodeId: id, onPropertiesChange });
|
|
36
36
|
$[3] = data;
|
|
37
37
|
$[4] = id;
|
|
38
38
|
$[5] = onPropertiesChange;
|
|
@@ -41,31 +41,18 @@ function NoiseBillowNode(t0) {
|
|
|
41
41
|
t2 = $[6];
|
|
42
42
|
}
|
|
43
43
|
let t3;
|
|
44
|
-
if ($[7] !== data
|
|
45
|
-
t3 = /* @__PURE__ */ jsx(
|
|
46
|
-
$[7] = data
|
|
44
|
+
if ($[7] !== data || $[8] !== id || $[9] !== selected || $[10] !== t2 || $[11] !== type) {
|
|
45
|
+
t3 = /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(NodeContainer, { id, selected, data, type, children: t2 }) });
|
|
46
|
+
$[7] = data;
|
|
47
47
|
$[8] = id;
|
|
48
|
-
$[9] =
|
|
48
|
+
$[9] = selected;
|
|
49
|
+
$[10] = t2;
|
|
50
|
+
$[11] = type;
|
|
51
|
+
$[12] = t3;
|
|
49
52
|
} else {
|
|
50
|
-
t3 = $[
|
|
53
|
+
t3 = $[12];
|
|
51
54
|
}
|
|
52
|
-
|
|
53
|
-
if ($[10] !== data || $[11] !== id || $[12] !== selected || $[13] !== t2 || $[14] !== t3 || $[15] !== type) {
|
|
54
|
-
t4 = /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(NodeContainer, { id, selected, data, type, children: [
|
|
55
|
-
t2,
|
|
56
|
-
t3
|
|
57
|
-
] }) });
|
|
58
|
-
$[10] = data;
|
|
59
|
-
$[11] = id;
|
|
60
|
-
$[12] = selected;
|
|
61
|
-
$[13] = t2;
|
|
62
|
-
$[14] = t3;
|
|
63
|
-
$[15] = type;
|
|
64
|
-
$[16] = t4;
|
|
65
|
-
} else {
|
|
66
|
-
t4 = $[16];
|
|
67
|
-
}
|
|
68
|
-
return t4;
|
|
55
|
+
return t3;
|
|
69
56
|
}
|
|
70
57
|
var noise_billow_node_default = NoiseBillowNode;
|
|
71
58
|
|
|
@@ -126,7 +113,7 @@ import { NodeContainer as NodeContainer3 } from "@awesome-flow/core/layout";
|
|
|
126
113
|
import { Group, NumberInput, Stack } from "@mantine/core";
|
|
127
114
|
import { Const } from "libnoise-simplex-ts";
|
|
128
115
|
import { useEffect as useEffect2, useState } from "react";
|
|
129
|
-
import { jsx as jsx3, jsxs
|
|
116
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
130
117
|
function NoiseConstNode(t0) {
|
|
131
118
|
const $ = _c3(31);
|
|
132
119
|
const {
|
|
@@ -200,7 +187,7 @@ function NoiseConstNode(t0) {
|
|
|
200
187
|
}
|
|
201
188
|
let t7;
|
|
202
189
|
if ($[14] !== t4 || $[15] !== t6) {
|
|
203
|
-
t7 = /* @__PURE__ */
|
|
190
|
+
t7 = /* @__PURE__ */ jsxs(Group, { children: [
|
|
204
191
|
t4,
|
|
205
192
|
t6
|
|
206
193
|
] });
|
|
@@ -219,7 +206,7 @@ function NoiseConstNode(t0) {
|
|
|
219
206
|
}
|
|
220
207
|
let t9;
|
|
221
208
|
if ($[18] !== max || $[19] !== min || $[20] !== noise) {
|
|
222
|
-
t9 = /* @__PURE__ */
|
|
209
|
+
t9 = /* @__PURE__ */ jsxs(Group, { children: [
|
|
223
210
|
"noise:",
|
|
224
211
|
/* @__PURE__ */ jsx3(NumberInput, { size: "xs", value: noise, onChange: t8, max, min, step: 0.1 })
|
|
225
212
|
] });
|
|
@@ -232,7 +219,7 @@ function NoiseConstNode(t0) {
|
|
|
232
219
|
}
|
|
233
220
|
let t10;
|
|
234
221
|
if ($[22] !== t7 || $[23] !== t9) {
|
|
235
|
-
t10 = /* @__PURE__ */
|
|
222
|
+
t10 = /* @__PURE__ */ jsxs(Stack, { children: [
|
|
236
223
|
t7,
|
|
237
224
|
t9
|
|
238
225
|
] });
|
|
@@ -260,13 +247,13 @@ var noise_const_node_default = NoiseConstNode;
|
|
|
260
247
|
|
|
261
248
|
// src/nodes/generators/noise-cylinders-node.tsx
|
|
262
249
|
import { c as _c4 } from "react/compiler-runtime";
|
|
263
|
-
import {
|
|
250
|
+
import { NodePropertiesList as NodePropertiesList2 } from "@awesome-flow/core/components";
|
|
264
251
|
import { useUpdateNodeComputedData as useUpdateNodeComputedData4 } from "@awesome-flow/core/hooks";
|
|
265
|
-
import { NodeContainer as NodeContainer4
|
|
252
|
+
import { NodeContainer as NodeContainer4 } from "@awesome-flow/core/layout";
|
|
266
253
|
import { Cylinders } from "libnoise-simplex-ts";
|
|
267
|
-
import { jsx as jsx4
|
|
254
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
268
255
|
function NoiseCylindersNode(t0) {
|
|
269
|
-
const $ = _c4(
|
|
256
|
+
const $ = _c4(13);
|
|
270
257
|
const {
|
|
271
258
|
id,
|
|
272
259
|
selected,
|
|
@@ -292,7 +279,7 @@ function NoiseCylindersNode(t0) {
|
|
|
292
279
|
const onPropertiesChange = t1;
|
|
293
280
|
let t2;
|
|
294
281
|
if ($[3] !== data || $[4] !== id || $[5] !== onPropertiesChange) {
|
|
295
|
-
t2 = /* @__PURE__ */ jsx4(
|
|
282
|
+
t2 = /* @__PURE__ */ jsx4(NodePropertiesList2, { data, nodeId: id, onPropertiesChange });
|
|
296
283
|
$[3] = data;
|
|
297
284
|
$[4] = id;
|
|
298
285
|
$[5] = onPropertiesChange;
|
|
@@ -301,43 +288,30 @@ function NoiseCylindersNode(t0) {
|
|
|
301
288
|
t2 = $[6];
|
|
302
289
|
}
|
|
303
290
|
let t3;
|
|
304
|
-
if ($[7] !== data
|
|
305
|
-
t3 = /* @__PURE__ */ jsx4(
|
|
306
|
-
$[7] = data
|
|
291
|
+
if ($[7] !== data || $[8] !== id || $[9] !== selected || $[10] !== t2 || $[11] !== type) {
|
|
292
|
+
t3 = /* @__PURE__ */ jsx4(NodeContainer4, { id, selected, data, type, children: t2 });
|
|
293
|
+
$[7] = data;
|
|
307
294
|
$[8] = id;
|
|
308
|
-
$[9] =
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
let t4;
|
|
313
|
-
if ($[10] !== data || $[11] !== id || $[12] !== selected || $[13] !== t2 || $[14] !== t3 || $[15] !== type) {
|
|
314
|
-
t4 = /* @__PURE__ */ jsxs3(NodeContainer4, { id, selected, data, type, children: [
|
|
315
|
-
t2,
|
|
316
|
-
t3
|
|
317
|
-
] });
|
|
318
|
-
$[10] = data;
|
|
319
|
-
$[11] = id;
|
|
320
|
-
$[12] = selected;
|
|
321
|
-
$[13] = t2;
|
|
322
|
-
$[14] = t3;
|
|
323
|
-
$[15] = type;
|
|
324
|
-
$[16] = t4;
|
|
295
|
+
$[9] = selected;
|
|
296
|
+
$[10] = t2;
|
|
297
|
+
$[11] = type;
|
|
298
|
+
$[12] = t3;
|
|
325
299
|
} else {
|
|
326
|
-
|
|
300
|
+
t3 = $[12];
|
|
327
301
|
}
|
|
328
|
-
return
|
|
302
|
+
return t3;
|
|
329
303
|
}
|
|
330
304
|
var noise_cylinders_node_default = NoiseCylindersNode;
|
|
331
305
|
|
|
332
306
|
// src/nodes/generators/noise-perlin-node.tsx
|
|
333
307
|
import { c as _c5 } from "react/compiler-runtime";
|
|
334
|
-
import {
|
|
308
|
+
import { NodePropertiesList as NodePropertiesList3 } from "@awesome-flow/core/components";
|
|
335
309
|
import { useUpdateNodeComputedData as useUpdateNodeComputedData5 } from "@awesome-flow/core/hooks";
|
|
336
|
-
import { NodeContainer as NodeContainer5
|
|
310
|
+
import { NodeContainer as NodeContainer5 } from "@awesome-flow/core/layout";
|
|
337
311
|
import { Perlin } from "libnoise-simplex-ts";
|
|
338
|
-
import { jsx as jsx5
|
|
312
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
339
313
|
function NoisePerlinNode(t0) {
|
|
340
|
-
const $ = _c5(
|
|
314
|
+
const $ = _c5(13);
|
|
341
315
|
const {
|
|
342
316
|
id,
|
|
343
317
|
selected,
|
|
@@ -363,7 +337,7 @@ function NoisePerlinNode(t0) {
|
|
|
363
337
|
const onPropertiesChange = t1;
|
|
364
338
|
let t2;
|
|
365
339
|
if ($[3] !== data || $[4] !== id || $[5] !== onPropertiesChange) {
|
|
366
|
-
t2 = /* @__PURE__ */ jsx5(
|
|
340
|
+
t2 = /* @__PURE__ */ jsx5(NodePropertiesList3, { data, nodeId: id, onPropertiesChange });
|
|
367
341
|
$[3] = data;
|
|
368
342
|
$[4] = id;
|
|
369
343
|
$[5] = onPropertiesChange;
|
|
@@ -372,43 +346,30 @@ function NoisePerlinNode(t0) {
|
|
|
372
346
|
t2 = $[6];
|
|
373
347
|
}
|
|
374
348
|
let t3;
|
|
375
|
-
if ($[7] !== data
|
|
376
|
-
t3 = /* @__PURE__ */ jsx5(
|
|
377
|
-
$[7] = data
|
|
349
|
+
if ($[7] !== data || $[8] !== id || $[9] !== selected || $[10] !== t2 || $[11] !== type) {
|
|
350
|
+
t3 = /* @__PURE__ */ jsx5(NodeContainer5, { id, selected, data, type, children: t2 });
|
|
351
|
+
$[7] = data;
|
|
378
352
|
$[8] = id;
|
|
379
|
-
$[9] =
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
let t4;
|
|
384
|
-
if ($[10] !== data || $[11] !== id || $[12] !== selected || $[13] !== t2 || $[14] !== t3 || $[15] !== type) {
|
|
385
|
-
t4 = /* @__PURE__ */ jsxs4(NodeContainer5, { id, selected, data, type, children: [
|
|
386
|
-
t2,
|
|
387
|
-
t3
|
|
388
|
-
] });
|
|
389
|
-
$[10] = data;
|
|
390
|
-
$[11] = id;
|
|
391
|
-
$[12] = selected;
|
|
392
|
-
$[13] = t2;
|
|
393
|
-
$[14] = t3;
|
|
394
|
-
$[15] = type;
|
|
395
|
-
$[16] = t4;
|
|
353
|
+
$[9] = selected;
|
|
354
|
+
$[10] = t2;
|
|
355
|
+
$[11] = type;
|
|
356
|
+
$[12] = t3;
|
|
396
357
|
} else {
|
|
397
|
-
|
|
358
|
+
t3 = $[12];
|
|
398
359
|
}
|
|
399
|
-
return
|
|
360
|
+
return t3;
|
|
400
361
|
}
|
|
401
362
|
var noise_perlin_node_default = NoisePerlinNode;
|
|
402
363
|
|
|
403
364
|
// src/nodes/generators/noise-ridgedmulti-node.tsx
|
|
404
365
|
import { c as _c6 } from "react/compiler-runtime";
|
|
405
|
-
import {
|
|
366
|
+
import { NodePropertiesList as NodePropertiesList4 } from "@awesome-flow/core/components";
|
|
406
367
|
import { useUpdateNodeComputedData as useUpdateNodeComputedData6 } from "@awesome-flow/core/hooks";
|
|
407
|
-
import { NodeContainer as NodeContainer6
|
|
368
|
+
import { NodeContainer as NodeContainer6 } from "@awesome-flow/core/layout";
|
|
408
369
|
import { RidgedMulti } from "libnoise-simplex-ts";
|
|
409
|
-
import { jsx as jsx6
|
|
370
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
410
371
|
function NoiseRidgedMultiNode(t0) {
|
|
411
|
-
const $ = _c6(
|
|
372
|
+
const $ = _c6(13);
|
|
412
373
|
const {
|
|
413
374
|
id,
|
|
414
375
|
selected,
|
|
@@ -434,7 +395,7 @@ function NoiseRidgedMultiNode(t0) {
|
|
|
434
395
|
const onPropertiesChange = t1;
|
|
435
396
|
let t2;
|
|
436
397
|
if ($[3] !== data || $[4] !== id || $[5] !== onPropertiesChange) {
|
|
437
|
-
t2 = /* @__PURE__ */ jsx6(
|
|
398
|
+
t2 = /* @__PURE__ */ jsx6(NodePropertiesList4, { data, nodeId: id, onPropertiesChange });
|
|
438
399
|
$[3] = data;
|
|
439
400
|
$[4] = id;
|
|
440
401
|
$[5] = onPropertiesChange;
|
|
@@ -443,43 +404,30 @@ function NoiseRidgedMultiNode(t0) {
|
|
|
443
404
|
t2 = $[6];
|
|
444
405
|
}
|
|
445
406
|
let t3;
|
|
446
|
-
if ($[7] !== data
|
|
447
|
-
t3 = /* @__PURE__ */ jsx6(
|
|
448
|
-
$[7] = data
|
|
407
|
+
if ($[7] !== data || $[8] !== id || $[9] !== selected || $[10] !== t2 || $[11] !== type) {
|
|
408
|
+
t3 = /* @__PURE__ */ jsx6(NodeContainer6, { id, selected, data, type, children: t2 });
|
|
409
|
+
$[7] = data;
|
|
449
410
|
$[8] = id;
|
|
450
|
-
$[9] =
|
|
411
|
+
$[9] = selected;
|
|
412
|
+
$[10] = t2;
|
|
413
|
+
$[11] = type;
|
|
414
|
+
$[12] = t3;
|
|
451
415
|
} else {
|
|
452
|
-
t3 = $[
|
|
416
|
+
t3 = $[12];
|
|
453
417
|
}
|
|
454
|
-
|
|
455
|
-
if ($[10] !== data || $[11] !== id || $[12] !== selected || $[13] !== t2 || $[14] !== t3 || $[15] !== type) {
|
|
456
|
-
t4 = /* @__PURE__ */ jsxs5(NodeContainer6, { id, selected, data, type, children: [
|
|
457
|
-
t2,
|
|
458
|
-
t3
|
|
459
|
-
] });
|
|
460
|
-
$[10] = data;
|
|
461
|
-
$[11] = id;
|
|
462
|
-
$[12] = selected;
|
|
463
|
-
$[13] = t2;
|
|
464
|
-
$[14] = t3;
|
|
465
|
-
$[15] = type;
|
|
466
|
-
$[16] = t4;
|
|
467
|
-
} else {
|
|
468
|
-
t4 = $[16];
|
|
469
|
-
}
|
|
470
|
-
return t4;
|
|
418
|
+
return t3;
|
|
471
419
|
}
|
|
472
420
|
var noise_ridgedmulti_node_default = NoiseRidgedMultiNode;
|
|
473
421
|
|
|
474
422
|
// src/nodes/generators/noise-spheres-node.tsx
|
|
475
423
|
import { c as _c7 } from "react/compiler-runtime";
|
|
476
|
-
import {
|
|
424
|
+
import { NodePropertiesList as NodePropertiesList5 } from "@awesome-flow/core/components";
|
|
477
425
|
import { useUpdateNodeComputedData as useUpdateNodeComputedData7 } from "@awesome-flow/core/hooks";
|
|
478
|
-
import { NodeContainer as NodeContainer7
|
|
426
|
+
import { NodeContainer as NodeContainer7 } from "@awesome-flow/core/layout";
|
|
479
427
|
import { Spheres } from "libnoise-simplex-ts";
|
|
480
|
-
import { jsx as jsx7
|
|
428
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
481
429
|
function NoiseSpheresNode(t0) {
|
|
482
|
-
const $ = _c7(
|
|
430
|
+
const $ = _c7(13);
|
|
483
431
|
const {
|
|
484
432
|
id,
|
|
485
433
|
selected,
|
|
@@ -505,7 +453,7 @@ function NoiseSpheresNode(t0) {
|
|
|
505
453
|
const onPropertiesChange = t1;
|
|
506
454
|
let t2;
|
|
507
455
|
if ($[3] !== data || $[4] !== id || $[5] !== onPropertiesChange) {
|
|
508
|
-
t2 = /* @__PURE__ */ jsx7(
|
|
456
|
+
t2 = /* @__PURE__ */ jsx7(NodePropertiesList5, { data, nodeId: id, onPropertiesChange });
|
|
509
457
|
$[3] = data;
|
|
510
458
|
$[4] = id;
|
|
511
459
|
$[5] = onPropertiesChange;
|
|
@@ -514,43 +462,30 @@ function NoiseSpheresNode(t0) {
|
|
|
514
462
|
t2 = $[6];
|
|
515
463
|
}
|
|
516
464
|
let t3;
|
|
517
|
-
if ($[7] !== data
|
|
518
|
-
t3 = /* @__PURE__ */ jsx7(
|
|
519
|
-
$[7] = data
|
|
465
|
+
if ($[7] !== data || $[8] !== id || $[9] !== selected || $[10] !== t2 || $[11] !== type) {
|
|
466
|
+
t3 = /* @__PURE__ */ jsx7(NodeContainer7, { id, selected, data, type, children: t2 });
|
|
467
|
+
$[7] = data;
|
|
520
468
|
$[8] = id;
|
|
521
|
-
$[9] =
|
|
469
|
+
$[9] = selected;
|
|
470
|
+
$[10] = t2;
|
|
471
|
+
$[11] = type;
|
|
472
|
+
$[12] = t3;
|
|
522
473
|
} else {
|
|
523
|
-
t3 = $[
|
|
474
|
+
t3 = $[12];
|
|
524
475
|
}
|
|
525
|
-
|
|
526
|
-
if ($[10] !== data || $[11] !== id || $[12] !== selected || $[13] !== t2 || $[14] !== t3 || $[15] !== type) {
|
|
527
|
-
t4 = /* @__PURE__ */ jsxs6(NodeContainer7, { id, selected, data, type, children: [
|
|
528
|
-
t2,
|
|
529
|
-
t3
|
|
530
|
-
] });
|
|
531
|
-
$[10] = data;
|
|
532
|
-
$[11] = id;
|
|
533
|
-
$[12] = selected;
|
|
534
|
-
$[13] = t2;
|
|
535
|
-
$[14] = t3;
|
|
536
|
-
$[15] = type;
|
|
537
|
-
$[16] = t4;
|
|
538
|
-
} else {
|
|
539
|
-
t4 = $[16];
|
|
540
|
-
}
|
|
541
|
-
return t4;
|
|
476
|
+
return t3;
|
|
542
477
|
}
|
|
543
478
|
var noise_spheres_node_default = NoiseSpheresNode;
|
|
544
479
|
|
|
545
480
|
// src/nodes/generators/noise-voronoi-node.tsx
|
|
546
481
|
import { c as _c8 } from "react/compiler-runtime";
|
|
547
|
-
import {
|
|
482
|
+
import { NodePropertiesList as NodePropertiesList6 } from "@awesome-flow/core/components";
|
|
548
483
|
import { useUpdateNodeComputedData as useUpdateNodeComputedData8 } from "@awesome-flow/core/hooks";
|
|
549
|
-
import { NodeContainer as NodeContainer8
|
|
484
|
+
import { NodeContainer as NodeContainer8 } from "@awesome-flow/core/layout";
|
|
550
485
|
import { Voronoi } from "libnoise-simplex-ts";
|
|
551
|
-
import { jsx as jsx8
|
|
486
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
552
487
|
function NoiseVoronoiNode(t0) {
|
|
553
|
-
const $ = _c8(
|
|
488
|
+
const $ = _c8(13);
|
|
554
489
|
const {
|
|
555
490
|
id,
|
|
556
491
|
selected,
|
|
@@ -575,7 +510,7 @@ function NoiseVoronoiNode(t0) {
|
|
|
575
510
|
const onPropertiesChange = t1;
|
|
576
511
|
let t2;
|
|
577
512
|
if ($[3] !== data || $[4] !== id || $[5] !== onPropertiesChange) {
|
|
578
|
-
t2 = /* @__PURE__ */ jsx8(
|
|
513
|
+
t2 = /* @__PURE__ */ jsx8(NodePropertiesList6, { data, nodeId: id, onPropertiesChange });
|
|
579
514
|
$[3] = data;
|
|
580
515
|
$[4] = id;
|
|
581
516
|
$[5] = onPropertiesChange;
|
|
@@ -584,31 +519,18 @@ function NoiseVoronoiNode(t0) {
|
|
|
584
519
|
t2 = $[6];
|
|
585
520
|
}
|
|
586
521
|
let t3;
|
|
587
|
-
if ($[7] !== data
|
|
588
|
-
t3 = /* @__PURE__ */ jsx8(
|
|
589
|
-
$[7] = data
|
|
522
|
+
if ($[7] !== data || $[8] !== id || $[9] !== selected || $[10] !== t2 || $[11] !== type) {
|
|
523
|
+
t3 = /* @__PURE__ */ jsx8(NodeContainer8, { id, selected, data, type, children: t2 });
|
|
524
|
+
$[7] = data;
|
|
590
525
|
$[8] = id;
|
|
591
|
-
$[9] =
|
|
526
|
+
$[9] = selected;
|
|
527
|
+
$[10] = t2;
|
|
528
|
+
$[11] = type;
|
|
529
|
+
$[12] = t3;
|
|
592
530
|
} else {
|
|
593
|
-
t3 = $[
|
|
531
|
+
t3 = $[12];
|
|
594
532
|
}
|
|
595
|
-
|
|
596
|
-
if ($[10] !== data || $[11] !== id || $[12] !== selected || $[13] !== t2 || $[14] !== t3 || $[15] !== type) {
|
|
597
|
-
t4 = /* @__PURE__ */ jsxs7(NodeContainer8, { id, selected, data, type, children: [
|
|
598
|
-
t2,
|
|
599
|
-
t3
|
|
600
|
-
] });
|
|
601
|
-
$[10] = data;
|
|
602
|
-
$[11] = id;
|
|
603
|
-
$[12] = selected;
|
|
604
|
-
$[13] = t2;
|
|
605
|
-
$[14] = t3;
|
|
606
|
-
$[15] = type;
|
|
607
|
-
$[16] = t4;
|
|
608
|
-
} else {
|
|
609
|
-
t4 = $[16];
|
|
610
|
-
}
|
|
611
|
-
return t4;
|
|
533
|
+
return t3;
|
|
612
534
|
}
|
|
613
535
|
var noise_voronoi_node_default = NoiseVoronoiNode;
|
|
614
536
|
|
|
@@ -618,7 +540,7 @@ import { useUpdateNodeComputedData as useUpdateNodeComputedData9, useUpdateNodeD
|
|
|
618
540
|
import { NodeContainer as NodeContainer9 } from "@awesome-flow/core/layout";
|
|
619
541
|
import { Group as Group2, NumberInput as NumberInput2, Stack as Stack2 } from "@mantine/core";
|
|
620
542
|
import { useEffect as useEffect3, useState as useState2 } from "react";
|
|
621
|
-
import { jsx as jsx9, jsxs as
|
|
543
|
+
import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
622
544
|
function PositionConstNode(t0) {
|
|
623
545
|
const $ = _c9(29);
|
|
624
546
|
const {
|
|
@@ -684,7 +606,7 @@ function PositionConstNode(t0) {
|
|
|
684
606
|
}
|
|
685
607
|
let t5;
|
|
686
608
|
if ($[11] !== x) {
|
|
687
|
-
t5 = /* @__PURE__ */
|
|
609
|
+
t5 = /* @__PURE__ */ jsxs2(Group2, { children: [
|
|
688
610
|
"x: ",
|
|
689
611
|
/* @__PURE__ */ jsx9(NumberInput2, { size: "xs", w: 100, value: x, onChange: t4 })
|
|
690
612
|
] });
|
|
@@ -702,7 +624,7 @@ function PositionConstNode(t0) {
|
|
|
702
624
|
}
|
|
703
625
|
let t7;
|
|
704
626
|
if ($[14] !== y) {
|
|
705
|
-
t7 = /* @__PURE__ */
|
|
627
|
+
t7 = /* @__PURE__ */ jsxs2(Group2, { children: [
|
|
706
628
|
"y: ",
|
|
707
629
|
/* @__PURE__ */ jsx9(NumberInput2, { size: "xs", w: 100, value: y, onChange: t6 })
|
|
708
630
|
] });
|
|
@@ -720,7 +642,7 @@ function PositionConstNode(t0) {
|
|
|
720
642
|
}
|
|
721
643
|
let t9;
|
|
722
644
|
if ($[17] !== z) {
|
|
723
|
-
t9 = /* @__PURE__ */
|
|
645
|
+
t9 = /* @__PURE__ */ jsxs2(Group2, { children: [
|
|
724
646
|
"z: ",
|
|
725
647
|
/* @__PURE__ */ jsx9(NumberInput2, { size: "xs", w: 100, value: z, onChange: t8 })
|
|
726
648
|
] });
|
|
@@ -731,7 +653,7 @@ function PositionConstNode(t0) {
|
|
|
731
653
|
}
|
|
732
654
|
let t10;
|
|
733
655
|
if ($[19] !== t5 || $[20] !== t7 || $[21] !== t9) {
|
|
734
|
-
t10 = /* @__PURE__ */
|
|
656
|
+
t10 = /* @__PURE__ */ jsxs2(Stack2, { children: [
|
|
735
657
|
t5,
|
|
736
658
|
t7,
|
|
737
659
|
t9
|
|
@@ -765,7 +687,7 @@ import { useUpdateNodeComputedData as useUpdateNodeComputedData10, useUpdateNode
|
|
|
765
687
|
import { NodeContainer as NodeContainer10 } from "@awesome-flow/core/layout";
|
|
766
688
|
import { Group as Group3, NumberInput as NumberInput3, Stack as Stack3 } from "@mantine/core";
|
|
767
689
|
import { useEffect as useEffect4, useState as useState3 } from "react";
|
|
768
|
-
import { jsx as jsx10, jsxs as
|
|
690
|
+
import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
769
691
|
function PositionGridNode(t0) {
|
|
770
692
|
const $ = _c10(43);
|
|
771
693
|
const {
|
|
@@ -865,7 +787,7 @@ function PositionGridNode(t0) {
|
|
|
865
787
|
}
|
|
866
788
|
let t8;
|
|
867
789
|
if ($[21] !== x) {
|
|
868
|
-
t8 = /* @__PURE__ */
|
|
790
|
+
t8 = /* @__PURE__ */ jsxs3(Group3, { children: [
|
|
869
791
|
"x: ",
|
|
870
792
|
/* @__PURE__ */ jsx10(NumberInput3, { size: "xs", w: 100, value: x, onChange: t7 })
|
|
871
793
|
] });
|
|
@@ -883,7 +805,7 @@ function PositionGridNode(t0) {
|
|
|
883
805
|
}
|
|
884
806
|
let t10;
|
|
885
807
|
if ($[24] !== y) {
|
|
886
|
-
t10 = /* @__PURE__ */
|
|
808
|
+
t10 = /* @__PURE__ */ jsxs3(Group3, { children: [
|
|
887
809
|
"y: ",
|
|
888
810
|
/* @__PURE__ */ jsx10(NumberInput3, { size: "xs", w: 100, value: y, onChange: t9 })
|
|
889
811
|
] });
|
|
@@ -901,7 +823,7 @@ function PositionGridNode(t0) {
|
|
|
901
823
|
}
|
|
902
824
|
let t12;
|
|
903
825
|
if ($[27] !== z) {
|
|
904
|
-
t12 = /* @__PURE__ */
|
|
826
|
+
t12 = /* @__PURE__ */ jsxs3(Group3, { children: [
|
|
905
827
|
"z: ",
|
|
906
828
|
/* @__PURE__ */ jsx10(NumberInput3, { size: "xs", w: 100, value: z, onChange: t11 })
|
|
907
829
|
] });
|
|
@@ -919,7 +841,7 @@ function PositionGridNode(t0) {
|
|
|
919
841
|
}
|
|
920
842
|
let t14;
|
|
921
843
|
if ($[30] !== radius) {
|
|
922
|
-
t14 = /* @__PURE__ */
|
|
844
|
+
t14 = /* @__PURE__ */ jsxs3(Group3, { children: [
|
|
923
845
|
"r: ",
|
|
924
846
|
/* @__PURE__ */ jsx10(NumberInput3, { size: "xs", w: 100, value: radius, onChange: t13 })
|
|
925
847
|
] });
|
|
@@ -930,7 +852,7 @@ function PositionGridNode(t0) {
|
|
|
930
852
|
}
|
|
931
853
|
let t15;
|
|
932
854
|
if ($[32] !== t10 || $[33] !== t12 || $[34] !== t14 || $[35] !== t8) {
|
|
933
|
-
t15 = /* @__PURE__ */
|
|
855
|
+
t15 = /* @__PURE__ */ jsxs3(Stack3, { children: [
|
|
934
856
|
t8,
|
|
935
857
|
t10,
|
|
936
858
|
t12,
|