@livo-tv/blocks 1.30.1 → 1.30.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/index.cjs +335 -145
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +335 -145
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2386,29 +2386,36 @@ var SHADER_LIGHT_TYPES = ["3d", "env"];
|
|
|
2386
2386
|
var SHADER_ENV_PRESETS = ["city", "dawn", "lobby"];
|
|
2387
2387
|
var SHADER_ON_OFF = ["on", "off"];
|
|
2388
2388
|
var SHADER_RANGE = ["enabled", "disabled"];
|
|
2389
|
-
var
|
|
2390
|
-
type: "plane",
|
|
2389
|
+
var PRESET_BASE = {
|
|
2391
2390
|
shader: "defaults",
|
|
2392
2391
|
animate: "on",
|
|
2393
|
-
uTime: 0,
|
|
2394
|
-
uSpeed: 0.4,
|
|
2395
|
-
uStrength: 2,
|
|
2396
|
-
uDensity: 1.2,
|
|
2397
|
-
uFrequency: 5.5,
|
|
2398
|
-
uAmplitude: 1,
|
|
2399
2392
|
wireframe: false,
|
|
2400
2393
|
loop: "on",
|
|
2401
2394
|
loopDuration: 10,
|
|
2402
2395
|
range: "disabled",
|
|
2403
2396
|
rangeStart: 0,
|
|
2404
|
-
rangeEnd:
|
|
2405
|
-
|
|
2397
|
+
rangeEnd: 40,
|
|
2398
|
+
fov: 45,
|
|
2399
|
+
zoomOut: false,
|
|
2400
|
+
grainBlending: 0.3,
|
|
2401
|
+
pixelDensity: 1
|
|
2402
|
+
};
|
|
2403
|
+
var DEFAULT_SHADER_CURTAIN_CONFIG = {
|
|
2404
|
+
...PRESET_BASE,
|
|
2405
|
+
type: "plane",
|
|
2406
|
+
uTime: 0,
|
|
2407
|
+
uSpeed: 0.4,
|
|
2408
|
+
uStrength: 4,
|
|
2409
|
+
uDensity: 1.3,
|
|
2410
|
+
uFrequency: 5.5,
|
|
2411
|
+
uAmplitude: 1,
|
|
2412
|
+
positionX: -1.4,
|
|
2406
2413
|
positionY: 0,
|
|
2407
2414
|
positionZ: 0,
|
|
2408
2415
|
rotationX: 0,
|
|
2409
|
-
rotationY:
|
|
2410
|
-
rotationZ:
|
|
2411
|
-
color1: "#
|
|
2416
|
+
rotationY: 10,
|
|
2417
|
+
rotationZ: 50,
|
|
2418
|
+
color1: "#ff5005",
|
|
2412
2419
|
color2: "#dbba95",
|
|
2413
2420
|
color3: "#d0bce1",
|
|
2414
2421
|
reflection: 0.1,
|
|
@@ -2417,13 +2424,9 @@ var DEFAULT_SHADER_CURTAIN_CONFIG = {
|
|
|
2417
2424
|
cPolarAngle: 90,
|
|
2418
2425
|
cDistance: 3.6,
|
|
2419
2426
|
cameraZoom: 1,
|
|
2420
|
-
fov: 45,
|
|
2421
|
-
zoomOut: false,
|
|
2422
2427
|
lightType: "3d",
|
|
2423
2428
|
envPreset: "city",
|
|
2424
|
-
grain: "
|
|
2425
|
-
grainBlending: 0.3,
|
|
2426
|
-
pixelDensity: 1
|
|
2429
|
+
grain: "on"
|
|
2427
2430
|
};
|
|
2428
2431
|
var SHADER_CURTAIN_PRESETS = [
|
|
2429
2432
|
{ id: "halo", title: "Halo", config: { ...DEFAULT_SHADER_CURTAIN_CONFIG } },
|
|
@@ -2431,52 +2434,127 @@ var SHADER_CURTAIN_PRESETS = [
|
|
|
2431
2434
|
id: "pensive",
|
|
2432
2435
|
title: "Pensive",
|
|
2433
2436
|
config: {
|
|
2434
|
-
...
|
|
2435
|
-
type: "
|
|
2437
|
+
...PRESET_BASE,
|
|
2438
|
+
type: "sphere",
|
|
2439
|
+
uTime: 0,
|
|
2440
|
+
uSpeed: 0.3,
|
|
2441
|
+
uStrength: 0.4,
|
|
2442
|
+
uDensity: 0.8,
|
|
2443
|
+
uFrequency: 5.5,
|
|
2444
|
+
uAmplitude: 7,
|
|
2445
|
+
positionX: 0,
|
|
2446
|
+
positionY: 0,
|
|
2447
|
+
positionZ: 0,
|
|
2448
|
+
rotationX: 0,
|
|
2449
|
+
rotationY: 0,
|
|
2450
|
+
rotationZ: 140,
|
|
2436
2451
|
color1: "#809bd6",
|
|
2437
2452
|
color2: "#910aff",
|
|
2438
2453
|
color3: "#af38ff",
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2454
|
+
reflection: 0.5,
|
|
2455
|
+
brightness: 1.5,
|
|
2456
|
+
cAzimuthAngle: 250,
|
|
2457
|
+
cPolarAngle: 140,
|
|
2458
|
+
cDistance: 1.5,
|
|
2459
|
+
cameraZoom: 12.5,
|
|
2460
|
+
lightType: "3d",
|
|
2461
|
+
envPreset: "city",
|
|
2462
|
+
grain: "on"
|
|
2442
2463
|
}
|
|
2443
2464
|
},
|
|
2444
2465
|
{
|
|
2445
2466
|
id: "mint",
|
|
2446
2467
|
title: "Mint",
|
|
2447
2468
|
config: {
|
|
2448
|
-
...
|
|
2469
|
+
...PRESET_BASE,
|
|
2449
2470
|
type: "waterPlane",
|
|
2450
|
-
|
|
2451
|
-
color2: "#ffcc81",
|
|
2452
|
-
color3: "#c9f5d3",
|
|
2471
|
+
uTime: 0,
|
|
2453
2472
|
uSpeed: 0.2,
|
|
2454
|
-
uStrength:
|
|
2473
|
+
uStrength: 3.4,
|
|
2474
|
+
uDensity: 1.2,
|
|
2475
|
+
uFrequency: 0,
|
|
2476
|
+
uAmplitude: 0,
|
|
2477
|
+
positionX: 0,
|
|
2478
|
+
positionY: 0.9,
|
|
2479
|
+
positionZ: -0.3,
|
|
2480
|
+
rotationX: 45,
|
|
2481
|
+
rotationY: 0,
|
|
2482
|
+
rotationZ: 0,
|
|
2483
|
+
color1: "#94ffd1",
|
|
2484
|
+
color2: "#6bf5ff",
|
|
2485
|
+
color3: "#ffffff",
|
|
2486
|
+
reflection: 0.1,
|
|
2487
|
+
brightness: 1.2,
|
|
2488
|
+
cAzimuthAngle: 170,
|
|
2489
|
+
cPolarAngle: 70,
|
|
2490
|
+
cDistance: 4.4,
|
|
2491
|
+
cameraZoom: 1,
|
|
2492
|
+
lightType: "3d",
|
|
2493
|
+
envPreset: "city",
|
|
2494
|
+
grain: "off"
|
|
2455
2495
|
}
|
|
2456
2496
|
},
|
|
2457
2497
|
{
|
|
2458
2498
|
id: "interstella",
|
|
2459
2499
|
title: "Interstella",
|
|
2460
2500
|
config: {
|
|
2461
|
-
...
|
|
2501
|
+
...PRESET_BASE,
|
|
2462
2502
|
type: "sphere",
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
uDensity:
|
|
2467
|
-
|
|
2468
|
-
|
|
2503
|
+
uTime: 0,
|
|
2504
|
+
uSpeed: 0.3,
|
|
2505
|
+
uStrength: 0.3,
|
|
2506
|
+
uDensity: 0.8,
|
|
2507
|
+
uFrequency: 5.5,
|
|
2508
|
+
uAmplitude: 3.2,
|
|
2509
|
+
positionX: -0.1,
|
|
2510
|
+
positionY: 0,
|
|
2511
|
+
positionZ: 0,
|
|
2512
|
+
rotationX: 0,
|
|
2513
|
+
rotationY: 130,
|
|
2514
|
+
rotationZ: 70,
|
|
2515
|
+
color1: "#73bfc4",
|
|
2516
|
+
color2: "#ff810a",
|
|
2517
|
+
color3: "#8da0ce",
|
|
2518
|
+
reflection: 0.4,
|
|
2519
|
+
brightness: 0.8,
|
|
2520
|
+
cAzimuthAngle: 270,
|
|
2521
|
+
cPolarAngle: 180,
|
|
2522
|
+
cDistance: 0.5,
|
|
2523
|
+
cameraZoom: 15.1,
|
|
2524
|
+
lightType: "env",
|
|
2525
|
+
envPreset: "city",
|
|
2526
|
+
grain: "on"
|
|
2469
2527
|
}
|
|
2470
2528
|
},
|
|
2471
2529
|
{
|
|
2472
2530
|
id: "nightyNight",
|
|
2473
2531
|
title: "Nighty night",
|
|
2474
2532
|
config: {
|
|
2475
|
-
...
|
|
2533
|
+
...PRESET_BASE,
|
|
2476
2534
|
type: "waterPlane",
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2535
|
+
uTime: 8,
|
|
2536
|
+
uSpeed: 0.3,
|
|
2537
|
+
uStrength: 1.5,
|
|
2538
|
+
uDensity: 1.5,
|
|
2539
|
+
uFrequency: 0,
|
|
2540
|
+
uAmplitude: 0,
|
|
2541
|
+
positionX: 0,
|
|
2542
|
+
positionY: 0,
|
|
2543
|
+
positionZ: 0,
|
|
2544
|
+
rotationX: 50,
|
|
2545
|
+
rotationY: 0,
|
|
2546
|
+
rotationZ: -60,
|
|
2547
|
+
color1: "#606080",
|
|
2548
|
+
color2: "#8d7dca",
|
|
2549
|
+
color3: "#212121",
|
|
2550
|
+
reflection: 0.1,
|
|
2551
|
+
brightness: 1,
|
|
2552
|
+
cAzimuthAngle: 180,
|
|
2553
|
+
cPolarAngle: 80,
|
|
2554
|
+
cDistance: 2.8,
|
|
2555
|
+
cameraZoom: 9.1,
|
|
2556
|
+
lightType: "3d",
|
|
2557
|
+
envPreset: "city",
|
|
2480
2558
|
grain: "on"
|
|
2481
2559
|
}
|
|
2482
2560
|
},
|
|
@@ -2484,67 +2562,160 @@ var SHADER_CURTAIN_PRESETS = [
|
|
|
2484
2562
|
id: "violaOrientalis",
|
|
2485
2563
|
title: "Viola orientalis",
|
|
2486
2564
|
config: {
|
|
2487
|
-
...
|
|
2488
|
-
type: "
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2565
|
+
...PRESET_BASE,
|
|
2566
|
+
type: "sphere",
|
|
2567
|
+
uTime: 0,
|
|
2568
|
+
uSpeed: 0.1,
|
|
2569
|
+
uStrength: 1,
|
|
2570
|
+
uDensity: 1.1,
|
|
2571
|
+
uFrequency: 5.5,
|
|
2572
|
+
uAmplitude: 1.4,
|
|
2573
|
+
positionX: 0,
|
|
2574
|
+
positionY: 0,
|
|
2575
|
+
positionZ: 0,
|
|
2576
|
+
rotationX: 0,
|
|
2577
|
+
rotationY: 0,
|
|
2578
|
+
rotationZ: 0,
|
|
2579
|
+
color1: "#ffffff",
|
|
2580
|
+
color2: "#ffbb00",
|
|
2581
|
+
color3: "#0700ff",
|
|
2582
|
+
reflection: 0.1,
|
|
2583
|
+
brightness: 1.1,
|
|
2584
|
+
cAzimuthAngle: 0,
|
|
2585
|
+
cPolarAngle: 140,
|
|
2586
|
+
cDistance: 7.1,
|
|
2587
|
+
cameraZoom: 17.3,
|
|
2588
|
+
lightType: "3d",
|
|
2589
|
+
envPreset: "city",
|
|
2590
|
+
grain: "off"
|
|
2493
2591
|
}
|
|
2494
2592
|
},
|
|
2495
2593
|
{
|
|
2496
2594
|
id: "universe",
|
|
2497
2595
|
title: "Universe",
|
|
2498
2596
|
config: {
|
|
2499
|
-
...
|
|
2597
|
+
...PRESET_BASE,
|
|
2500
2598
|
type: "waterPlane",
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
uDensity:
|
|
2505
|
-
|
|
2506
|
-
|
|
2599
|
+
uTime: 0.2,
|
|
2600
|
+
uSpeed: 0.1,
|
|
2601
|
+
uStrength: 2.4,
|
|
2602
|
+
uDensity: 1.1,
|
|
2603
|
+
uFrequency: 5.5,
|
|
2604
|
+
uAmplitude: 0,
|
|
2605
|
+
positionX: -0.5,
|
|
2606
|
+
positionY: 0.1,
|
|
2607
|
+
positionZ: 0,
|
|
2608
|
+
rotationX: 0,
|
|
2609
|
+
rotationY: 0,
|
|
2610
|
+
rotationZ: 235,
|
|
2611
|
+
color1: "#5606ff",
|
|
2612
|
+
color2: "#fe8989",
|
|
2613
|
+
color3: "#000000",
|
|
2614
|
+
reflection: 0.1,
|
|
2615
|
+
brightness: 1.1,
|
|
2616
|
+
cAzimuthAngle: 180,
|
|
2617
|
+
cPolarAngle: 115,
|
|
2618
|
+
cDistance: 3.9,
|
|
2619
|
+
cameraZoom: 1,
|
|
2620
|
+
lightType: "3d",
|
|
2621
|
+
envPreset: "city",
|
|
2622
|
+
grain: "off"
|
|
2507
2623
|
}
|
|
2508
2624
|
},
|
|
2509
2625
|
{
|
|
2510
2626
|
id: "sunset",
|
|
2511
2627
|
title: "Sunset",
|
|
2512
2628
|
config: {
|
|
2513
|
-
...
|
|
2514
|
-
type: "
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2629
|
+
...PRESET_BASE,
|
|
2630
|
+
type: "sphere",
|
|
2631
|
+
uTime: 0,
|
|
2632
|
+
uSpeed: 0.1,
|
|
2633
|
+
uStrength: 0.4,
|
|
2634
|
+
uDensity: 1.1,
|
|
2635
|
+
uFrequency: 5.5,
|
|
2636
|
+
uAmplitude: 1.4,
|
|
2637
|
+
positionX: 0,
|
|
2638
|
+
positionY: -0.15,
|
|
2639
|
+
positionZ: 0,
|
|
2640
|
+
rotationX: 0,
|
|
2641
|
+
rotationY: 0,
|
|
2642
|
+
rotationZ: 0,
|
|
2643
|
+
color1: "#ff7a33",
|
|
2644
|
+
color2: "#33a0ff",
|
|
2645
|
+
color3: "#ffc53d",
|
|
2646
|
+
reflection: 0.1,
|
|
2647
|
+
brightness: 1.5,
|
|
2648
|
+
cAzimuthAngle: 60,
|
|
2649
|
+
cPolarAngle: 90,
|
|
2650
|
+
cDistance: 7.1,
|
|
2651
|
+
cameraZoom: 15.3,
|
|
2652
|
+
lightType: "3d",
|
|
2653
|
+
envPreset: "dawn",
|
|
2654
|
+
grain: "off"
|
|
2520
2655
|
}
|
|
2521
2656
|
},
|
|
2522
2657
|
{
|
|
2523
2658
|
id: "mandarin",
|
|
2524
2659
|
title: "Mandarin",
|
|
2525
2660
|
config: {
|
|
2526
|
-
...
|
|
2527
|
-
type: "
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2661
|
+
...PRESET_BASE,
|
|
2662
|
+
type: "waterPlane",
|
|
2663
|
+
uTime: 0.2,
|
|
2664
|
+
uSpeed: 0.2,
|
|
2665
|
+
uStrength: 3,
|
|
2666
|
+
uDensity: 1.8,
|
|
2667
|
+
uFrequency: 5.5,
|
|
2668
|
+
uAmplitude: 0,
|
|
2669
|
+
positionX: 0,
|
|
2670
|
+
positionY: -2.1,
|
|
2671
|
+
positionZ: 0,
|
|
2672
|
+
rotationX: 0,
|
|
2673
|
+
rotationY: 0,
|
|
2674
|
+
rotationZ: 225,
|
|
2675
|
+
color1: "#ff6a1a",
|
|
2676
|
+
color2: "#c73c00",
|
|
2677
|
+
color3: "#fd4912",
|
|
2678
|
+
reflection: 0.1,
|
|
2679
|
+
brightness: 1.2,
|
|
2680
|
+
cAzimuthAngle: 180,
|
|
2681
|
+
cPolarAngle: 95,
|
|
2682
|
+
cDistance: 2.4,
|
|
2683
|
+
cameraZoom: 1,
|
|
2684
|
+
lightType: "3d",
|
|
2685
|
+
envPreset: "city",
|
|
2686
|
+
grain: "off"
|
|
2535
2687
|
}
|
|
2536
2688
|
},
|
|
2537
2689
|
{
|
|
2538
2690
|
id: "cottonCandy",
|
|
2539
2691
|
title: "Cotton candy",
|
|
2540
2692
|
config: {
|
|
2541
|
-
...
|
|
2542
|
-
type: "
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2693
|
+
...PRESET_BASE,
|
|
2694
|
+
type: "waterPlane",
|
|
2695
|
+
uTime: 0.2,
|
|
2696
|
+
uSpeed: 0.3,
|
|
2697
|
+
uStrength: 3,
|
|
2698
|
+
uDensity: 1,
|
|
2699
|
+
uFrequency: 5.5,
|
|
2700
|
+
uAmplitude: 0,
|
|
2701
|
+
positionX: 0,
|
|
2702
|
+
positionY: 1.8,
|
|
2703
|
+
positionZ: 0,
|
|
2704
|
+
rotationX: 0,
|
|
2705
|
+
rotationY: 0,
|
|
2706
|
+
rotationZ: -90,
|
|
2707
|
+
color1: "#ebedff",
|
|
2708
|
+
color2: "#f3f2f8",
|
|
2709
|
+
color3: "#dbf8ff",
|
|
2710
|
+
reflection: 0.1,
|
|
2711
|
+
brightness: 1.2,
|
|
2712
|
+
cAzimuthAngle: 180,
|
|
2713
|
+
cPolarAngle: 120,
|
|
2714
|
+
cDistance: 2.9,
|
|
2715
|
+
cameraZoom: 1,
|
|
2716
|
+
lightType: "3d",
|
|
2717
|
+
envPreset: "city",
|
|
2718
|
+
grain: "off"
|
|
2548
2719
|
}
|
|
2549
2720
|
}
|
|
2550
2721
|
];
|
|
@@ -2627,9 +2798,9 @@ function parseShaderGradientUrl(input) {
|
|
|
2627
2798
|
positionX: numberParam(q.get("positionX"), base.positionX, -20, 20),
|
|
2628
2799
|
positionY: numberParam(q.get("positionY"), base.positionY, -20, 20),
|
|
2629
2800
|
positionZ: numberParam(q.get("positionZ"), base.positionZ, -20, 20),
|
|
2630
|
-
rotationX: numberParam(q.get("rotationX"), base.rotationX,
|
|
2631
|
-
rotationY: numberParam(q.get("rotationY"), base.rotationY,
|
|
2632
|
-
rotationZ: numberParam(q.get("rotationZ"), base.rotationZ,
|
|
2801
|
+
rotationX: numberParam(q.get("rotationX"), base.rotationX, -360, 360),
|
|
2802
|
+
rotationY: numberParam(q.get("rotationY"), base.rotationY, -360, 360),
|
|
2803
|
+
rotationZ: numberParam(q.get("rotationZ"), base.rotationZ, -360, 360),
|
|
2633
2804
|
color1: hexParam(q.get("color1"), base.color1),
|
|
2634
2805
|
color2: hexParam(q.get("color2"), base.color2),
|
|
2635
2806
|
color3: hexParam(q.get("color3"), base.color3),
|
|
@@ -2739,57 +2910,66 @@ function ShaderCurtain({
|
|
|
2739
2910
|
}
|
|
2740
2911
|
const { ShaderGradientCanvas, ShaderGradient } = module;
|
|
2741
2912
|
const animate = resolved.animate === "off" || reducedMotion ? "off" : "on";
|
|
2742
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2743
|
-
|
|
2913
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2914
|
+
"div",
|
|
2744
2915
|
{
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
ShaderGradient,
|
|
2916
|
+
className: cn(
|
|
2917
|
+
"relative h-full w-full overflow-hidden [container-type:size]",
|
|
2918
|
+
className
|
|
2919
|
+
),
|
|
2920
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute top-1/2 left-1/2 h-[max(100cqh,56.25cqw)] w-[max(100cqw,177.778cqh)] -translate-x-1/2 -translate-y-1/2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2921
|
+
ShaderGradientCanvas,
|
|
2752
2922
|
{
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2923
|
+
style: { position: "absolute", inset: 0 },
|
|
2924
|
+
pixelDensity: resolved.pixelDensity,
|
|
2925
|
+
fov: resolved.fov,
|
|
2926
|
+
envBasePath,
|
|
2927
|
+
preserveDrawingBuffer,
|
|
2928
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2929
|
+
ShaderGradient,
|
|
2930
|
+
{
|
|
2931
|
+
control: "props",
|
|
2932
|
+
type: resolved.type,
|
|
2933
|
+
shader: resolved.shader,
|
|
2934
|
+
animate,
|
|
2935
|
+
uTime: resolved.uTime,
|
|
2936
|
+
uSpeed: resolved.uSpeed,
|
|
2937
|
+
uStrength: resolved.uStrength,
|
|
2938
|
+
uDensity: resolved.uDensity,
|
|
2939
|
+
uFrequency: resolved.uFrequency,
|
|
2940
|
+
uAmplitude: resolved.uAmplitude,
|
|
2941
|
+
wireframe: resolved.wireframe,
|
|
2942
|
+
loop: resolved.loop,
|
|
2943
|
+
loopDuration: resolved.loopDuration,
|
|
2944
|
+
range: resolved.range,
|
|
2945
|
+
rangeStart: resolved.rangeStart,
|
|
2946
|
+
rangeEnd: resolved.rangeEnd,
|
|
2947
|
+
positionX: resolved.positionX,
|
|
2948
|
+
positionY: resolved.positionY,
|
|
2949
|
+
positionZ: resolved.positionZ,
|
|
2950
|
+
rotationX: resolved.rotationX,
|
|
2951
|
+
rotationY: resolved.rotationY,
|
|
2952
|
+
rotationZ: resolved.rotationZ,
|
|
2953
|
+
color1: resolved.color1,
|
|
2954
|
+
color2: resolved.color2,
|
|
2955
|
+
color3: resolved.color3,
|
|
2956
|
+
reflection: resolved.reflection,
|
|
2957
|
+
brightness: resolved.brightness,
|
|
2958
|
+
cAzimuthAngle: resolved.cAzimuthAngle,
|
|
2959
|
+
cPolarAngle: resolved.cPolarAngle,
|
|
2960
|
+
cDistance: resolved.cDistance,
|
|
2961
|
+
cameraZoom: resolved.cameraZoom,
|
|
2962
|
+
zoomOut: resolved.zoomOut,
|
|
2963
|
+
lightType: resolved.lightType,
|
|
2964
|
+
envPreset: resolved.envPreset,
|
|
2965
|
+
grain: resolved.grain,
|
|
2966
|
+
grainBlending: resolved.grainBlending
|
|
2967
|
+
}
|
|
2968
|
+
)
|
|
2789
2969
|
}
|
|
2790
|
-
)
|
|
2970
|
+
) })
|
|
2791
2971
|
}
|
|
2792
|
-
)
|
|
2972
|
+
);
|
|
2793
2973
|
}
|
|
2794
2974
|
var DEFAULT_LABELS2 = {
|
|
2795
2975
|
play: "Play",
|
|
@@ -3672,19 +3852,15 @@ function NumberField({
|
|
|
3672
3852
|
step,
|
|
3673
3853
|
onChange
|
|
3674
3854
|
}) {
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
3855
|
+
const rangeId = React11__namespace.useId();
|
|
3856
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid min-w-0 gap-1 text-xs", children: [
|
|
3857
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
3678
3858
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3679
|
-
"
|
|
3859
|
+
"label",
|
|
3680
3860
|
{
|
|
3681
|
-
|
|
3682
|
-
min,
|
|
3683
|
-
|
|
3684
|
-
step,
|
|
3685
|
-
value,
|
|
3686
|
-
onChange: (event) => onChange(Number(event.target.value)),
|
|
3687
|
-
className: "min-w-0 flex-1"
|
|
3861
|
+
htmlFor: rangeId,
|
|
3862
|
+
className: "text-muted-foreground min-w-0 truncate",
|
|
3863
|
+
children: label
|
|
3688
3864
|
}
|
|
3689
3865
|
),
|
|
3690
3866
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3695,11 +3871,25 @@ function NumberField({
|
|
|
3695
3871
|
max,
|
|
3696
3872
|
step,
|
|
3697
3873
|
value,
|
|
3874
|
+
"aria-label": label,
|
|
3698
3875
|
onChange: (event) => onChange(Number(event.target.value)),
|
|
3699
|
-
className: "border-input bg-background w-
|
|
3876
|
+
className: "border-input bg-background w-14 shrink-0 rounded-md border px-1.5 py-0.5 text-right tabular-nums"
|
|
3700
3877
|
}
|
|
3701
3878
|
)
|
|
3702
|
-
] })
|
|
3879
|
+
] }),
|
|
3880
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3881
|
+
"input",
|
|
3882
|
+
{
|
|
3883
|
+
id: rangeId,
|
|
3884
|
+
type: "range",
|
|
3885
|
+
min,
|
|
3886
|
+
max,
|
|
3887
|
+
step,
|
|
3888
|
+
value,
|
|
3889
|
+
onChange: (event) => onChange(Number(event.target.value)),
|
|
3890
|
+
className: "w-full min-w-0"
|
|
3891
|
+
}
|
|
3892
|
+
)
|
|
3703
3893
|
] });
|
|
3704
3894
|
}
|
|
3705
3895
|
function SelectField({
|
|
@@ -3708,14 +3898,14 @@ function SelectField({
|
|
|
3708
3898
|
options,
|
|
3709
3899
|
onChange
|
|
3710
3900
|
}) {
|
|
3711
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "grid gap-1 text-xs", children: [
|
|
3712
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: label }),
|
|
3901
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "grid min-w-0 gap-1 text-xs", children: [
|
|
3902
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground truncate", children: label }),
|
|
3713
3903
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3714
3904
|
"select",
|
|
3715
3905
|
{
|
|
3716
3906
|
value,
|
|
3717
3907
|
onChange: (event) => onChange(event.target.value),
|
|
3718
|
-
className: "border-input bg-background rounded-md border px-2 py-1",
|
|
3908
|
+
className: "border-input bg-background min-w-0 w-full rounded-md border px-2 py-1",
|
|
3719
3909
|
children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: option, children: option }, option))
|
|
3720
3910
|
}
|
|
3721
3911
|
)
|
|
@@ -3822,7 +4012,7 @@ var ShaderCurtainEditor = React11__namespace.forwardRef(function ShaderCurtainEd
|
|
|
3822
4012
|
},
|
|
3823
4013
|
id
|
|
3824
4014
|
)) }),
|
|
3825
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-0 max-h-[min(22rem,40dvh)] overflow-y-auto pr-1", children: [
|
|
4015
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-h-0 max-h-[min(22rem,40dvh)] overflow-x-hidden overflow-y-auto pr-1", children: [
|
|
3826
4016
|
tab === "shape" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-2 gap-2", children: [
|
|
3827
4017
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3828
4018
|
SelectField,
|
|
@@ -4173,7 +4363,7 @@ var ShaderCurtainEditor = React11__namespace.forwardRef(function ShaderCurtainEd
|
|
|
4173
4363
|
{
|
|
4174
4364
|
label: "Rotation X",
|
|
4175
4365
|
value: config.rotationX,
|
|
4176
|
-
min:
|
|
4366
|
+
min: -360,
|
|
4177
4367
|
max: 360,
|
|
4178
4368
|
step: 1,
|
|
4179
4369
|
onChange: (rotationX) => update({ rotationX })
|
|
@@ -4184,7 +4374,7 @@ var ShaderCurtainEditor = React11__namespace.forwardRef(function ShaderCurtainEd
|
|
|
4184
4374
|
{
|
|
4185
4375
|
label: "Rotation Y",
|
|
4186
4376
|
value: config.rotationY,
|
|
4187
|
-
min:
|
|
4377
|
+
min: -360,
|
|
4188
4378
|
max: 360,
|
|
4189
4379
|
step: 1,
|
|
4190
4380
|
onChange: (rotationY) => update({ rotationY })
|
|
@@ -4195,7 +4385,7 @@ var ShaderCurtainEditor = React11__namespace.forwardRef(function ShaderCurtainEd
|
|
|
4195
4385
|
{
|
|
4196
4386
|
label: "Rotation Z",
|
|
4197
4387
|
value: config.rotationZ,
|
|
4198
|
-
min:
|
|
4388
|
+
min: -360,
|
|
4199
4389
|
max: 360,
|
|
4200
4390
|
step: 1,
|
|
4201
4391
|
onChange: (rotationZ) => update({ rotationZ })
|