gl-draw 0.18.4 → 0.18.5
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.d.ts +5 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2914,6 +2914,11 @@ declare class SceneSerializer {
|
|
|
2914
2914
|
* 去重场景 JSON 中重复的 image、VideoTexture、DataTexture
|
|
2915
2915
|
*/
|
|
2916
2916
|
private _deduplicateSceneJson;
|
|
2917
|
+
/**
|
|
2918
|
+
* 将 sceneJson.images 中的 PNG data URL 转为 WebP 以减小体积
|
|
2919
|
+
*/
|
|
2920
|
+
private _convertPngDataUrlsToWebp;
|
|
2921
|
+
private _pngDataUrlToWebp;
|
|
2917
2922
|
/**
|
|
2918
2923
|
* 遍历 sceneJson 的对象树,提取 _baseObjectOptions 中可共享的大字段
|
|
2919
2924
|
* 相同内容只存储一份,对象中替换为引用索引
|