gl-draw 0.18.5 → 0.18.7
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 +11 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2677,7 +2677,7 @@ declare class Pick_2 {
|
|
|
2677
2677
|
|
|
2678
2678
|
export declare type PickFunctionsItem = {
|
|
2679
2679
|
objArr: BaseObject[] | (() => BaseObject[]);
|
|
2680
|
-
type: 'move' | 'enter' | 'leave' | 'down' | 'click' | 'downOutside' | 'enterOnStop';
|
|
2680
|
+
type: 'move' | 'enter' | 'leave' | 'down' | 'click' | 'downOutside' | 'clickOutside' | 'enterOnStop';
|
|
2681
2681
|
cb: (data: {
|
|
2682
2682
|
baseObject: BaseObject;
|
|
2683
2683
|
realBaseObject?: BaseObject;
|
|
@@ -2710,6 +2710,8 @@ declare class PointerEvent_2 {
|
|
|
2710
2710
|
onPointerLeave(cb: PickFunctionsItem['cb']): void;
|
|
2711
2711
|
onPointerMove(cb: PickFunctionsItem['cb']): void;
|
|
2712
2712
|
onPointerDown(cb: PickFunctionsItem['cb']): void;
|
|
2713
|
+
onPointerDownOutside(cb: PickFunctionsItem['cb']): void;
|
|
2714
|
+
onClickOutside(cb: PickFunctionsItem['cb']): void;
|
|
2713
2715
|
dispose(): void;
|
|
2714
2716
|
}
|
|
2715
2717
|
|
|
@@ -2914,6 +2916,14 @@ declare class SceneSerializer {
|
|
|
2914
2916
|
* 去重场景 JSON 中重复的 image、VideoTexture、DataTexture
|
|
2915
2917
|
*/
|
|
2916
2918
|
private _deduplicateSceneJson;
|
|
2919
|
+
/**
|
|
2920
|
+
* 提取 _videoSrc / _dataTexBase64 到 json._texDataPool,避免重复存储
|
|
2921
|
+
*/
|
|
2922
|
+
private _extractTexDataPool;
|
|
2923
|
+
/**
|
|
2924
|
+
* 还原 _texDataPool:将索引替换回原始字符串
|
|
2925
|
+
*/
|
|
2926
|
+
private _restoreTexDataPool;
|
|
2917
2927
|
/**
|
|
2918
2928
|
* 将 sceneJson.images 中的 PNG data URL 转为 WebP 以减小体积
|
|
2919
2929
|
*/
|