dsh-ccx 0.8.9 → 0.9.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.
Files changed (49) hide show
  1. package/LICENSE +21 -21
  2. package/NOTICE +23 -23
  3. package/README.md +151 -143
  4. package/assets/icon.svg +27 -27
  5. package/cordis.patch.yml +16 -16
  6. package/lib/client.js +1481 -2244
  7. package/lib/index.js +716 -449
  8. package/lib/vendor/code-codex/ascii-tiles.js +145 -0
  9. package/lib/vendor/code-codex/aurora-ionosphere.js +7 -6
  10. package/lib/vendor/code-codex/black-hole.js +10 -7
  11. package/lib/vendor/code-codex/blinking-squares.js +6 -13
  12. package/lib/vendor/code-codex/cloud-train.js +9 -8
  13. package/lib/vendor/code-codex/galleries.json +100 -100
  14. package/lib/vendor/code-codex/glow-horizon.js +1 -1
  15. package/lib/vendor/code-codex/heavenly-cloud.js +5 -4
  16. package/lib/vendor/code-codex/milky-way.js +3 -2
  17. package/lib/vendor/code-codex/mountain.js +5 -4
  18. package/lib/vendor/code-codex/particle-image.js +435 -14
  19. package/lib/vendor/code-codex/pixel-sculpt.js +85 -5
  20. package/lib/vendor/code-codex/scene-defaults.json +94 -1
  21. package/lib/vendor/code-codex/scene-schemas.json +1008 -0
  22. package/lib/vendor/code-codex/shallow-ocean-thumbnails.json +12 -0
  23. package/lib/vendor/code-codex/shallow-ocean.js +5094 -0
  24. package/lib/vendor/code-codex/spectral-drape.js +172 -0
  25. package/package.json +70 -59
  26. package/src/client/api.ts +90 -0
  27. package/src/client/background/layer.ts +187 -0
  28. package/src/client/background/pixel-sculpt.ts +167 -0
  29. package/src/client/background/scene-runner.ts +317 -0
  30. package/src/client/background/shallow-ocean.ts +344 -0
  31. package/src/client/background/vendor-loader.ts +297 -0
  32. package/src/client/background/wallpaper.ts +87 -0
  33. package/src/client/index.ts +247 -0
  34. package/src/client/surfaces/corner-patch.ts +100 -0
  35. package/src/client/surfaces/surface-css.ts +155 -0
  36. package/src/client/ui/draft.ts +105 -0
  37. package/src/client/ui/icons.ts +47 -0
  38. package/src/client/ui/panel.ts +1524 -0
  39. package/src/client/ui/shallow-ocean-panel.ts +376 -0
  40. package/src/client/ui/styles.ts +1471 -0
  41. package/src/host/fence.ts +78 -0
  42. package/src/host/index.ts +26 -0
  43. package/src/host/routes.ts +367 -0
  44. package/src/host/storage.ts +109 -0
  45. package/src/host/window-chrome.ts +53 -0
  46. package/src/shared/constants.ts +239 -0
  47. package/src/shared/sanitize.ts +110 -0
  48. package/src/shared/types.ts +145 -0
  49. package/tsconfig.json +16 -0
@@ -1953,5 +1953,1013 @@
1953
1953
  "colorFields": [],
1954
1954
  "toggles": [],
1955
1955
  "defaults": {}
1956
+ },
1957
+ "ascii-tiles": {
1958
+ "storeKey": "code-codex:ascii-tiles-background:v1",
1959
+ "panelKind": "grouped-reset",
1960
+ "groups": [
1961
+ {
1962
+ "key": "g0",
1963
+ "en": "Grid and motion",
1964
+ "zh": "网格与流动",
1965
+ "keys": [
1966
+ "speed",
1967
+ "glyphSize",
1968
+ "tileDensity",
1969
+ "tileShear",
1970
+ "tileGap",
1971
+ "opacity",
1972
+ "dpr",
1973
+ "paused"
1974
+ ]
1975
+ },
1976
+ {
1977
+ "key": "g1",
1978
+ "en": "Glass material",
1979
+ "zh": "玻璃材质",
1980
+ "keys": [
1981
+ "outlineWidth",
1982
+ "outlineStrength",
1983
+ "bevelWidth",
1984
+ "bevelSoftness",
1985
+ "refractionStrength",
1986
+ "chromaticSpread",
1987
+ "specularExponent",
1988
+ "specularStrength"
1989
+ ]
1990
+ },
1991
+ {
1992
+ "key": "g2",
1993
+ "en": "Pattern and colors",
1994
+ "zh": "图案与颜色",
1995
+ "keys": [
1996
+ "patternFreqX",
1997
+ "patternFreqY",
1998
+ "patternFreqXY",
1999
+ "glyphColor",
2000
+ "recessColor",
2001
+ "backgroundColor"
2002
+ ]
2003
+ },
2004
+ {
2005
+ "key": "g3",
2006
+ "en": "Interaction",
2007
+ "zh": "交互波纹",
2008
+ "keys": [
2009
+ "cursorInteraction",
2010
+ "cursorRadius",
2011
+ "cursorIntensity",
2012
+ "cursorRecovery",
2013
+ "waveSpeed",
2014
+ "waveHeight",
2015
+ "clickStrength"
2016
+ ]
2017
+ }
2018
+ ],
2019
+ "fields": [
2020
+ {
2021
+ "key": "speed",
2022
+ "zh": "流动速度",
2023
+ "en": "Flow speed",
2024
+ "group": "g0",
2025
+ "min": 0,
2026
+ "max": 3,
2027
+ "step": 0.01,
2028
+ "unit": "×",
2029
+ "precision": 2
2030
+ },
2031
+ {
2032
+ "key": "glyphSize",
2033
+ "zh": "字符大小",
2034
+ "en": "Glyph size",
2035
+ "group": "g0",
2036
+ "min": 4,
2037
+ "max": 24,
2038
+ "step": 1,
2039
+ "unit": "px",
2040
+ "precision": 0
2041
+ },
2042
+ {
2043
+ "key": "tileDensity",
2044
+ "zh": "砖块密度",
2045
+ "en": "Tile density",
2046
+ "group": "g0",
2047
+ "min": 1,
2048
+ "max": 12,
2049
+ "step": 0.1,
2050
+ "unit": "",
2051
+ "precision": 1
2052
+ },
2053
+ {
2054
+ "key": "tileShear",
2055
+ "zh": "砖块倾斜",
2056
+ "en": "Tile shear",
2057
+ "group": "g0",
2058
+ "min": -0.5,
2059
+ "max": 0.5,
2060
+ "step": 0.01,
2061
+ "unit": "",
2062
+ "precision": 2
2063
+ },
2064
+ {
2065
+ "key": "tileGap",
2066
+ "zh": "砖块间距",
2067
+ "en": "Tile gap",
2068
+ "group": "g0",
2069
+ "min": 0,
2070
+ "max": 40,
2071
+ "step": 0.5,
2072
+ "unit": "px",
2073
+ "precision": 1
2074
+ },
2075
+ {
2076
+ "key": "opacity",
2077
+ "zh": "不透明度",
2078
+ "en": "Opacity",
2079
+ "group": "g0",
2080
+ "min": 0,
2081
+ "max": 1,
2082
+ "step": 0.01,
2083
+ "unit": "",
2084
+ "precision": 2
2085
+ },
2086
+ {
2087
+ "key": "dpr",
2088
+ "zh": "像素倍率上限",
2089
+ "en": "Pixel ratio limit",
2090
+ "group": "g0",
2091
+ "min": 1,
2092
+ "max": 3,
2093
+ "step": 0.1,
2094
+ "unit": "×",
2095
+ "precision": 1
2096
+ },
2097
+ {
2098
+ "key": "outlineWidth",
2099
+ "zh": "边缘宽度",
2100
+ "en": "Edge width",
2101
+ "group": "g1",
2102
+ "min": 0,
2103
+ "max": 6,
2104
+ "step": 0.25,
2105
+ "unit": "px",
2106
+ "precision": 2
2107
+ },
2108
+ {
2109
+ "key": "outlineStrength",
2110
+ "zh": "边缘强度",
2111
+ "en": "Edge strength",
2112
+ "group": "g1",
2113
+ "min": 0,
2114
+ "max": 1,
2115
+ "step": 0.01,
2116
+ "unit": "",
2117
+ "precision": 2
2118
+ },
2119
+ {
2120
+ "key": "bevelWidth",
2121
+ "zh": "倒角宽度",
2122
+ "en": "Bevel width",
2123
+ "group": "g1",
2124
+ "min": 0,
2125
+ "max": 0.5,
2126
+ "step": 0.005,
2127
+ "unit": "",
2128
+ "precision": 3
2129
+ },
2130
+ {
2131
+ "key": "bevelSoftness",
2132
+ "zh": "倒角柔和度",
2133
+ "en": "Bevel softness",
2134
+ "group": "g1",
2135
+ "min": 0.01,
2136
+ "max": 0.4,
2137
+ "step": 0.005,
2138
+ "unit": "",
2139
+ "precision": 3
2140
+ },
2141
+ {
2142
+ "key": "refractionStrength",
2143
+ "zh": "折射强度",
2144
+ "en": "Refraction",
2145
+ "group": "g1",
2146
+ "min": 0,
2147
+ "max": 120,
2148
+ "step": 1,
2149
+ "unit": "",
2150
+ "precision": 0
2151
+ },
2152
+ {
2153
+ "key": "chromaticSpread",
2154
+ "zh": "色散",
2155
+ "en": "Chromatic spread",
2156
+ "group": "g1",
2157
+ "min": 0,
2158
+ "max": 1,
2159
+ "step": 0.01,
2160
+ "unit": "",
2161
+ "precision": 2
2162
+ },
2163
+ {
2164
+ "key": "specularExponent",
2165
+ "zh": "高光锐度",
2166
+ "en": "Highlight sharpness",
2167
+ "group": "g1",
2168
+ "min": 1,
2169
+ "max": 256,
2170
+ "step": 1,
2171
+ "unit": "",
2172
+ "precision": 0
2173
+ },
2174
+ {
2175
+ "key": "specularStrength",
2176
+ "zh": "高光强度",
2177
+ "en": "Highlight strength",
2178
+ "group": "g1",
2179
+ "min": 0,
2180
+ "max": 3,
2181
+ "step": 0.01,
2182
+ "unit": "",
2183
+ "precision": 2
2184
+ },
2185
+ {
2186
+ "key": "patternFreqX",
2187
+ "zh": "水平频率",
2188
+ "en": "Horizontal frequency",
2189
+ "group": "g2",
2190
+ "min": 0,
2191
+ "max": 20,
2192
+ "step": 0.1,
2193
+ "unit": "",
2194
+ "precision": 1
2195
+ },
2196
+ {
2197
+ "key": "patternFreqY",
2198
+ "zh": "垂直频率",
2199
+ "en": "Vertical frequency",
2200
+ "group": "g2",
2201
+ "min": 0,
2202
+ "max": 20,
2203
+ "step": 0.1,
2204
+ "unit": "",
2205
+ "precision": 1
2206
+ },
2207
+ {
2208
+ "key": "patternFreqXY",
2209
+ "zh": "对角频率",
2210
+ "en": "Diagonal frequency",
2211
+ "group": "g2",
2212
+ "min": 0,
2213
+ "max": 20,
2214
+ "step": 0.1,
2215
+ "unit": "",
2216
+ "precision": 1
2217
+ },
2218
+ {
2219
+ "key": "cursorRadius",
2220
+ "zh": "交互半径",
2221
+ "en": "Interaction radius",
2222
+ "group": "g3",
2223
+ "min": 20,
2224
+ "max": 400,
2225
+ "step": 1,
2226
+ "unit": "px",
2227
+ "precision": 0
2228
+ },
2229
+ {
2230
+ "key": "cursorIntensity",
2231
+ "zh": "拖动强度",
2232
+ "en": "Drag strength",
2233
+ "group": "g3",
2234
+ "min": 0,
2235
+ "max": 3,
2236
+ "step": 0.01,
2237
+ "unit": "",
2238
+ "precision": 2
2239
+ },
2240
+ {
2241
+ "key": "cursorRecovery",
2242
+ "zh": "波动消退",
2243
+ "en": "Wave decay",
2244
+ "group": "g3",
2245
+ "min": 0.4,
2246
+ "max": 4,
2247
+ "step": 0.05,
2248
+ "unit": "s",
2249
+ "precision": 2
2250
+ },
2251
+ {
2252
+ "key": "waveSpeed",
2253
+ "zh": "传播速度",
2254
+ "en": "Propagation speed",
2255
+ "group": "g3",
2256
+ "min": 1,
2257
+ "max": 12,
2258
+ "step": 0.1,
2259
+ "unit": "",
2260
+ "precision": 1
2261
+ },
2262
+ {
2263
+ "key": "waveHeight",
2264
+ "zh": "波纹高度",
2265
+ "en": "Wave height",
2266
+ "group": "g3",
2267
+ "min": 0,
2268
+ "max": 80,
2269
+ "step": 1,
2270
+ "unit": "px",
2271
+ "precision": 0
2272
+ },
2273
+ {
2274
+ "key": "clickStrength",
2275
+ "zh": "点击强度",
2276
+ "en": "Click strength",
2277
+ "group": "g3",
2278
+ "min": 0,
2279
+ "max": 3,
2280
+ "step": 0.01,
2281
+ "unit": "",
2282
+ "precision": 2
2283
+ }
2284
+ ],
2285
+ "colorFields": [
2286
+ {
2287
+ "key": "glyphColor",
2288
+ "zh": "字符颜色",
2289
+ "en": "Glyph color",
2290
+ "group": "g2"
2291
+ },
2292
+ {
2293
+ "key": "recessColor",
2294
+ "zh": "砖缝颜色",
2295
+ "en": "Gap color",
2296
+ "group": "g2"
2297
+ },
2298
+ {
2299
+ "key": "backgroundColor",
2300
+ "zh": "背景颜色",
2301
+ "en": "Background color",
2302
+ "group": "g2"
2303
+ }
2304
+ ],
2305
+ "toggles": [
2306
+ {
2307
+ "key": "paused",
2308
+ "zh": "暂停流动",
2309
+ "en": "Pause flow",
2310
+ "group": "g0"
2311
+ },
2312
+ {
2313
+ "key": "cursorInteraction",
2314
+ "zh": "砖块联动",
2315
+ "en": "Tile interaction",
2316
+ "group": "g3"
2317
+ }
2318
+ ],
2319
+ "defaults": {
2320
+ "speed": 0.87,
2321
+ "glyphSize": 9,
2322
+ "tileDensity": 6.7,
2323
+ "tileShear": -0.31,
2324
+ "tileGap": 18.5,
2325
+ "outlineWidth": 1.25,
2326
+ "outlineStrength": 0.6,
2327
+ "bevelWidth": 0.13,
2328
+ "bevelSoftness": 0.1,
2329
+ "refractionStrength": 46,
2330
+ "chromaticSpread": 0.66,
2331
+ "specularExponent": 256,
2332
+ "specularStrength": 1,
2333
+ "patternFreqX": 9.4,
2334
+ "patternFreqY": 4,
2335
+ "patternFreqXY": 10,
2336
+ "glyphColor": "#ffffff",
2337
+ "recessColor": "#000000",
2338
+ "backgroundColor": "#000000",
2339
+ "opacity": 0.6,
2340
+ "dpr": 1.5,
2341
+ "cursorInteraction": true,
2342
+ "cursorRadius": 110,
2343
+ "cursorIntensity": 1,
2344
+ "cursorRecovery": 0.95,
2345
+ "waveSpeed": 5.5,
2346
+ "waveHeight": 36,
2347
+ "clickStrength": 1.5,
2348
+ "paused": false
2349
+ }
2350
+ },
2351
+ "spectral-drape": {
2352
+ "storeKey": "code-codex:spectral-drape-background:v1",
2353
+ "panelKind": "grouped-reset",
2354
+ "groups": [
2355
+ {
2356
+ "key": "g0",
2357
+ "en": "Points and colors",
2358
+ "zh": "点阵与颜色",
2359
+ "keys": [
2360
+ "bodyColor",
2361
+ "highlightColor",
2362
+ "backgroundColor",
2363
+ "density",
2364
+ "dotSize",
2365
+ "softness",
2366
+ "intensity",
2367
+ "colorShift",
2368
+ "dpr"
2369
+ ]
2370
+ },
2371
+ {
2372
+ "key": "g1",
2373
+ "en": "Folds and view",
2374
+ "zh": "褶皱与视角",
2375
+ "keys": [
2376
+ "strands",
2377
+ "amplitude",
2378
+ "frequency",
2379
+ "thickness",
2380
+ "depth",
2381
+ "seed",
2382
+ "tilt",
2383
+ "turn",
2384
+ "roll",
2385
+ "zoom"
2386
+ ]
2387
+ },
2388
+ {
2389
+ "key": "g2",
2390
+ "en": "Motion and interaction",
2391
+ "zh": "动态与交互",
2392
+ "keys": [
2393
+ "flow",
2394
+ "speed",
2395
+ "paused",
2396
+ "interactive",
2397
+ "brush",
2398
+ "brushRadius",
2399
+ "parallax",
2400
+ "clickRipples"
2401
+ ]
2402
+ },
2403
+ {
2404
+ "key": "g3",
2405
+ "en": "Opening",
2406
+ "zh": "开场动画",
2407
+ "keys": [
2408
+ "introEnabled",
2409
+ "introDuration",
2410
+ "introStrength"
2411
+ ]
2412
+ }
2413
+ ],
2414
+ "fields": [
2415
+ {
2416
+ "key": "density",
2417
+ "zh": "密度",
2418
+ "en": "Density",
2419
+ "group": "g0",
2420
+ "min": 0.2,
2421
+ "max": 2.5,
2422
+ "step": 0.05,
2423
+ "unit": "",
2424
+ "precision": 2
2425
+ },
2426
+ {
2427
+ "key": "dotSize",
2428
+ "zh": "点大小",
2429
+ "en": "Dot size",
2430
+ "group": "g0",
2431
+ "min": 0.2,
2432
+ "max": 3,
2433
+ "step": 0.05,
2434
+ "unit": "",
2435
+ "precision": 2
2436
+ },
2437
+ {
2438
+ "key": "softness",
2439
+ "zh": "柔和度",
2440
+ "en": "Softness",
2441
+ "group": "g0",
2442
+ "min": 0,
2443
+ "max": 1,
2444
+ "step": 0.01,
2445
+ "unit": "",
2446
+ "precision": 2
2447
+ },
2448
+ {
2449
+ "key": "intensity",
2450
+ "zh": "亮度",
2451
+ "en": "Intensity",
2452
+ "group": "g0",
2453
+ "min": 0,
2454
+ "max": 3,
2455
+ "step": 0.05,
2456
+ "unit": "",
2457
+ "precision": 2
2458
+ },
2459
+ {
2460
+ "key": "colorShift",
2461
+ "zh": "色彩偏移",
2462
+ "en": "Color shift",
2463
+ "group": "g0",
2464
+ "min": -1,
2465
+ "max": 1,
2466
+ "step": 0.01,
2467
+ "unit": "",
2468
+ "precision": 2
2469
+ },
2470
+ {
2471
+ "key": "dpr",
2472
+ "zh": "像素倍率上限",
2473
+ "en": "Pixel ratio limit",
2474
+ "group": "g0",
2475
+ "min": 0.5,
2476
+ "max": 2,
2477
+ "step": 0.25,
2478
+ "unit": "",
2479
+ "precision": 2
2480
+ },
2481
+ {
2482
+ "key": "strands",
2483
+ "zh": "丝束",
2484
+ "en": "Strands",
2485
+ "group": "g1",
2486
+ "min": 1,
2487
+ "max": 12,
2488
+ "step": 1,
2489
+ "unit": "",
2490
+ "precision": 0
2491
+ },
2492
+ {
2493
+ "key": "amplitude",
2494
+ "zh": "振幅",
2495
+ "en": "Amplitude",
2496
+ "group": "g1",
2497
+ "min": 0,
2498
+ "max": 3,
2499
+ "step": 0.05,
2500
+ "unit": "",
2501
+ "precision": 2
2502
+ },
2503
+ {
2504
+ "key": "frequency",
2505
+ "zh": "频率",
2506
+ "en": "Frequency",
2507
+ "group": "g1",
2508
+ "min": 0.1,
2509
+ "max": 3,
2510
+ "step": 0.05,
2511
+ "unit": "",
2512
+ "precision": 2
2513
+ },
2514
+ {
2515
+ "key": "thickness",
2516
+ "zh": "宽度",
2517
+ "en": "Thickness",
2518
+ "group": "g1",
2519
+ "min": 0.2,
2520
+ "max": 3,
2521
+ "step": 0.05,
2522
+ "unit": "",
2523
+ "precision": 2
2524
+ },
2525
+ {
2526
+ "key": "depth",
2527
+ "zh": "深度",
2528
+ "en": "Depth",
2529
+ "group": "g1",
2530
+ "min": 0,
2531
+ "max": 3,
2532
+ "step": 0.05,
2533
+ "unit": "",
2534
+ "precision": 2
2535
+ },
2536
+ {
2537
+ "key": "seed",
2538
+ "zh": "种子",
2539
+ "en": "Seed",
2540
+ "group": "g1",
2541
+ "min": 0,
2542
+ "max": 20,
2543
+ "step": 1,
2544
+ "unit": "",
2545
+ "precision": 0
2546
+ },
2547
+ {
2548
+ "key": "tilt",
2549
+ "zh": "俯仰",
2550
+ "en": "Tilt",
2551
+ "group": "g1",
2552
+ "min": -90,
2553
+ "max": 90,
2554
+ "step": 1,
2555
+ "unit": "°",
2556
+ "precision": 0
2557
+ },
2558
+ {
2559
+ "key": "turn",
2560
+ "zh": "偏航",
2561
+ "en": "Turn",
2562
+ "group": "g1",
2563
+ "min": -90,
2564
+ "max": 90,
2565
+ "step": 1,
2566
+ "unit": "°",
2567
+ "precision": 0
2568
+ },
2569
+ {
2570
+ "key": "roll",
2571
+ "zh": "旋转",
2572
+ "en": "Roll",
2573
+ "group": "g1",
2574
+ "min": -180,
2575
+ "max": 180,
2576
+ "step": 1,
2577
+ "unit": "°",
2578
+ "precision": 0
2579
+ },
2580
+ {
2581
+ "key": "zoom",
2582
+ "zh": "缩放",
2583
+ "en": "Zoom",
2584
+ "group": "g1",
2585
+ "min": 0.4,
2586
+ "max": 2.5,
2587
+ "step": 0.05,
2588
+ "unit": "",
2589
+ "precision": 2
2590
+ },
2591
+ {
2592
+ "key": "flow",
2593
+ "zh": "演化速率",
2594
+ "en": "Flow",
2595
+ "group": "g2",
2596
+ "min": 0,
2597
+ "max": 3,
2598
+ "step": 0.05,
2599
+ "unit": "",
2600
+ "precision": 2
2601
+ },
2602
+ {
2603
+ "key": "speed",
2604
+ "zh": "全局速度",
2605
+ "en": "Speed",
2606
+ "group": "g2",
2607
+ "min": 0,
2608
+ "max": 3,
2609
+ "step": 0.05,
2610
+ "unit": "",
2611
+ "precision": 2
2612
+ },
2613
+ {
2614
+ "key": "brush",
2615
+ "zh": "推拂力度",
2616
+ "en": "Brush strength",
2617
+ "group": "g2",
2618
+ "min": 0,
2619
+ "max": 3,
2620
+ "step": 0.05,
2621
+ "unit": "",
2622
+ "precision": 2
2623
+ },
2624
+ {
2625
+ "key": "brushRadius",
2626
+ "zh": "推拂半径",
2627
+ "en": "Brush radius",
2628
+ "group": "g2",
2629
+ "min": 0.05,
2630
+ "max": 0.6,
2631
+ "step": 0.01,
2632
+ "unit": "",
2633
+ "precision": 2
2634
+ },
2635
+ {
2636
+ "key": "parallax",
2637
+ "zh": "视差",
2638
+ "en": "Parallax",
2639
+ "group": "g2",
2640
+ "min": 0,
2641
+ "max": 3,
2642
+ "step": 0.05,
2643
+ "unit": "",
2644
+ "precision": 2
2645
+ },
2646
+ {
2647
+ "key": "introDuration",
2648
+ "zh": "开场时长",
2649
+ "en": "Duration",
2650
+ "group": "g3",
2651
+ "min": 0.8,
2652
+ "max": 12,
2653
+ "step": 0.1,
2654
+ "unit": "s",
2655
+ "precision": 1
2656
+ },
2657
+ {
2658
+ "key": "introStrength",
2659
+ "zh": "展开与旋转幅度",
2660
+ "en": "Unfurl / turn",
2661
+ "group": "g3",
2662
+ "min": 0,
2663
+ "max": 2,
2664
+ "step": 0.05,
2665
+ "unit": "",
2666
+ "precision": 2
2667
+ }
2668
+ ],
2669
+ "colorFields": [
2670
+ {
2671
+ "key": "bodyColor",
2672
+ "zh": "主体颜色",
2673
+ "en": "Body color",
2674
+ "group": "g0"
2675
+ },
2676
+ {
2677
+ "key": "highlightColor",
2678
+ "zh": "高光颜色",
2679
+ "en": "Highlight color",
2680
+ "group": "g0"
2681
+ },
2682
+ {
2683
+ "key": "backgroundColor",
2684
+ "zh": "背景颜色",
2685
+ "en": "Background color",
2686
+ "group": "g0"
2687
+ }
2688
+ ],
2689
+ "toggles": [
2690
+ {
2691
+ "key": "paused",
2692
+ "zh": "暂停流动",
2693
+ "en": "Pause flow",
2694
+ "group": "g2"
2695
+ },
2696
+ {
2697
+ "key": "interactive",
2698
+ "zh": "鼠标交互",
2699
+ "en": "Pointer interaction",
2700
+ "group": "g2"
2701
+ },
2702
+ {
2703
+ "key": "clickRipples",
2704
+ "zh": "点击涟漪",
2705
+ "en": "Click ripples",
2706
+ "group": "g2"
2707
+ },
2708
+ {
2709
+ "key": "introEnabled",
2710
+ "zh": "开场动画",
2711
+ "en": "Opening",
2712
+ "group": "g3"
2713
+ }
2714
+ ],
2715
+ "defaults": {
2716
+ "bodyColor": "#6A4BFF",
2717
+ "highlightColor": "#E4DBFF",
2718
+ "backgroundColor": "#0a0a0a",
2719
+ "density": 1,
2720
+ "dotSize": 0.55,
2721
+ "strands": 9,
2722
+ "amplitude": 1,
2723
+ "frequency": 1,
2724
+ "thickness": 2.15,
2725
+ "depth": 1.2,
2726
+ "softness": 0.6,
2727
+ "intensity": 1,
2728
+ "colorShift": 0.3,
2729
+ "tilt": -40,
2730
+ "turn": -45,
2731
+ "roll": 110,
2732
+ "zoom": 1,
2733
+ "flow": 1,
2734
+ "speed": 1,
2735
+ "interactive": true,
2736
+ "brush": 1,
2737
+ "brushRadius": 0.2,
2738
+ "parallax": 1,
2739
+ "clickRipples": true,
2740
+ "seed": 0,
2741
+ "paused": false,
2742
+ "dpr": 2,
2743
+ "introEnabled": true,
2744
+ "introDuration": 4.6,
2745
+ "introStrength": 1
2746
+ }
2747
+ },
2748
+ "shallow-ocean": {
2749
+ "storeKey": "code-codex:shallow-ocean-background:v1",
2750
+ "panelKind": "shallow-ocean",
2751
+ "groups": [
2752
+ {
2753
+ "key": "g0",
2754
+ "en": "Opening",
2755
+ "zh": "开场",
2756
+ "keys": [
2757
+ "introEnabled",
2758
+ "introDuration"
2759
+ ]
2760
+ },
2761
+ {
2762
+ "key": "g1",
2763
+ "en": "Marine life",
2764
+ "zh": "鱼群与生态",
2765
+ "keys": [
2766
+ "fishSpeed",
2767
+ "fishSize"
2768
+ ]
2769
+ },
2770
+ {
2771
+ "key": "g2",
2772
+ "en": "Water surface",
2773
+ "zh": "水面与波浪",
2774
+ "keys": [
2775
+ "swell",
2776
+ "rippleStrength"
2777
+ ]
2778
+ },
2779
+ {
2780
+ "key": "g3",
2781
+ "en": "Water optics",
2782
+ "zh": "水体光学",
2783
+ "keys": [
2784
+ "clarity",
2785
+ "caustics"
2786
+ ]
2787
+ },
2788
+ {
2789
+ "key": "g4",
2790
+ "en": "Coast and seabed",
2791
+ "zh": "海岸与海床",
2792
+ "keys": [
2793
+ "beachSize",
2794
+ "coralDensity",
2795
+ "grassDensity"
2796
+ ]
2797
+ },
2798
+ {
2799
+ "key": "g5",
2800
+ "en": "Ocean encounters",
2801
+ "zh": "海洋奇遇",
2802
+ "keys": [
2803
+ "eventsEnabled"
2804
+ ]
2805
+ }
2806
+ ],
2807
+ "fields": [
2808
+ {
2809
+ "key": "introDuration",
2810
+ "zh": "开场时长(秒)",
2811
+ "en": "Opening duration",
2812
+ "group": "g0",
2813
+ "min": 1.5,
2814
+ "max": 12,
2815
+ "step": 0.1,
2816
+ "unit": "s",
2817
+ "precision": 1
2818
+ },
2819
+ {
2820
+ "key": "fishSpeed",
2821
+ "zh": "鱼类游动速度",
2822
+ "en": "Swimming speed",
2823
+ "group": "g1",
2824
+ "min": 0,
2825
+ "max": 3,
2826
+ "step": 0.05,
2827
+ "unit": "",
2828
+ "precision": 2
2829
+ },
2830
+ {
2831
+ "key": "fishSize",
2832
+ "zh": "小鱼体型",
2833
+ "en": "Fish size",
2834
+ "group": "g1",
2835
+ "min": 0.5,
2836
+ "max": 2,
2837
+ "step": 0.05,
2838
+ "unit": "",
2839
+ "precision": 2
2840
+ },
2841
+ {
2842
+ "key": "swell",
2843
+ "zh": "自然涌浪强度",
2844
+ "en": "Natural swell",
2845
+ "group": "g2",
2846
+ "min": 0,
2847
+ "max": 2,
2848
+ "step": 0.05,
2849
+ "unit": "",
2850
+ "precision": 2
2851
+ },
2852
+ {
2853
+ "key": "rippleStrength",
2854
+ "zh": "互动波纹强度",
2855
+ "en": "Interaction ripples",
2856
+ "group": "g2",
2857
+ "min": 0,
2858
+ "max": 2.5,
2859
+ "step": 0.05,
2860
+ "unit": "",
2861
+ "precision": 2
2862
+ },
2863
+ {
2864
+ "key": "clarity",
2865
+ "zh": "海水通透度",
2866
+ "en": "Water clarity",
2867
+ "group": "g3",
2868
+ "min": 0.4,
2869
+ "max": 1.8,
2870
+ "step": 0.05,
2871
+ "unit": "",
2872
+ "precision": 2
2873
+ },
2874
+ {
2875
+ "key": "caustics",
2876
+ "zh": "水底焦散亮度",
2877
+ "en": "Seabed caustics",
2878
+ "group": "g3",
2879
+ "min": 0,
2880
+ "max": 2.5,
2881
+ "step": 0.05,
2882
+ "unit": "",
2883
+ "precision": 2
2884
+ },
2885
+ {
2886
+ "key": "beachSize",
2887
+ "zh": "沙滩面积",
2888
+ "en": "Beach size",
2889
+ "group": "g4",
2890
+ "min": 0,
2891
+ "max": 2,
2892
+ "step": 0.05,
2893
+ "unit": "",
2894
+ "precision": 2
2895
+ },
2896
+ {
2897
+ "key": "coralDensity",
2898
+ "zh": "珊瑚密度",
2899
+ "en": "Coral density",
2900
+ "group": "g4",
2901
+ "min": 0.3,
2902
+ "max": 2,
2903
+ "step": 0.1,
2904
+ "unit": "",
2905
+ "precision": 1
2906
+ },
2907
+ {
2908
+ "key": "grassDensity",
2909
+ "zh": "海草密度",
2910
+ "en": "Seagrass density",
2911
+ "group": "g4",
2912
+ "min": 0,
2913
+ "max": 2,
2914
+ "step": 0.1,
2915
+ "unit": "",
2916
+ "precision": 1
2917
+ }
2918
+ ],
2919
+ "colorFields": [],
2920
+ "toggles": [
2921
+ {
2922
+ "key": "introEnabled",
2923
+ "zh": "启用开场动画",
2924
+ "en": "Enable opening",
2925
+ "group": "g0"
2926
+ },
2927
+ {
2928
+ "key": "eventsEnabled",
2929
+ "zh": "启用随机事件",
2930
+ "en": "Automatic events",
2931
+ "group": "g5"
2932
+ }
2933
+ ],
2934
+ "defaults": {
2935
+ "defaultCreaturesEnabled": 1,
2936
+ "performanceMode": 0,
2937
+ "silverCount": 72,
2938
+ "reefCount": 12,
2939
+ "clownCount": 6,
2940
+ "sharkCount": 2,
2941
+ "turtleCount": 2,
2942
+ "beachSize": 1,
2943
+ "fishSpeed": 1,
2944
+ "fishSize": 1.15,
2945
+ "schoolCohesion": 1,
2946
+ "fleeRadius": 0.105,
2947
+ "clarity": 1.15,
2948
+ "caustics": 1.15,
2949
+ "surfaceReflection": 0.3,
2950
+ "sunGlint": 1,
2951
+ "foamIntensity": 1,
2952
+ "refractionScale": 1,
2953
+ "shadowIntensity": 0.65,
2954
+ "swell": 1,
2955
+ "rippleStrength": 1,
2956
+ "waterSpeed": 1,
2957
+ "coralDensity": 1.2,
2958
+ "grassDensity": 1.2,
2959
+ "eventsEnabled": 1,
2960
+ "introEnabled": 1,
2961
+ "introDuration": 5.2,
2962
+ "introIntensity": 1
2963
+ }
1956
2964
  }
1957
2965
  }