@webwallgl/core 3.0.3 → 3.1.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 (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +8 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webwallgl/core",
3
3
  "description": "WebWallGL engine core: Wallpaper Engine .pkg / .tex decoding and fit math (zero dependencies)",
4
- "version": "3.0.3",
4
+ "version": "3.1.0",
5
5
  "license": "MIT",
6
6
  "author": "oneincase <462534624@qq.com>",
7
7
  "repository": {
package/types.d.ts CHANGED
@@ -427,6 +427,14 @@ export type MountOptions = {
427
427
  * 实际生效值请读 `getQuality()`(返回的是生效值,可能已被自动降档改写)。
428
428
  */
429
429
  autoQuality?: boolean;
430
+ /**
431
+ * 渲染过程渐显(**默认关**;仅 scene 壁纸):加载期渲染预览循环「边加载边画已就绪
432
+ * 图层」,画布 opacity 按「已完成贴图 job / 总 job」线性推进,终点 = 资源全部就绪
433
+ * (首帧时刻,即 `onReady` / mount() resolve 的那一拍)。失败/降级出口立即还原可见,
434
+ * 绝不把壁纸或兜底页吞成空白。纯函数见 `renderer/src/fade-in.ts`,接线见
435
+ * `scene-mount.ts` 渐显块;壁纸页对应 `?fadein=1`。
436
+ */
437
+ fadeIn?: boolean;
430
438
  /**
431
439
  * 贴图烘焙(默认开):内嵌 PNG/JPEG 贴图的预缩放缓存。命中后省掉「解全尺寸再缩」
432
440
  * (实测 −80% 解码耗时,缓存产物比原图小),像素与不烘时逐位一致;