@vvfx/sdk 0.1.19-alpha.5 → 0.1.19-alpha.6

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.cts CHANGED
@@ -2959,6 +2959,21 @@ declare module '@pixi/graphics' {
2959
2959
  }
2960
2960
  }
2961
2961
 
2962
+ type LoadingGizmoTip = {
2963
+ text: string;
2964
+ fontSize?: number;
2965
+ fontFamily?: string;
2966
+ color?: number;
2967
+ };
2968
+ type LoadingGizmoItemOptions = {
2969
+ /** Loading 提示文案 */
2970
+ tip?: LoadingGizmoTip;
2971
+ /** 指定 Loading 区域 */
2972
+ loadingBox?: Box2;
2973
+ /** 清理选中 */
2974
+ clearSelected?: boolean;
2975
+ };
2976
+
2962
2977
  type SDKEvents = {
2963
2978
  'loadingItemChange': [id: string[]];
2964
2979
  'selectedItemChange': [id: string[]];
@@ -3294,7 +3309,10 @@ declare class SDK {
3294
3309
  * 清空图片裁切 undoRedo 历史
3295
3310
  */
3296
3311
  clearPictureCutGizmoUndoRedo(): void;
3297
- openLoadingGizmo(id: string, loadingBox?: Box2, clearResult?: boolean): void;
3312
+ openLoadingGizmo(id: string, options?: LoadingGizmoItemOptions): void;
3313
+ updateLoadingGizmo(id: string, options: {
3314
+ tip?: LoadingGizmoTip;
3315
+ }): void;
3298
3316
  closeLoadingGizmo(id: string): void;
3299
3317
  /**
3300
3318
  * @description 元素打组
package/dist/index.d.ts CHANGED
@@ -2959,6 +2959,21 @@ declare module '@pixi/graphics' {
2959
2959
  }
2960
2960
  }
2961
2961
 
2962
+ type LoadingGizmoTip = {
2963
+ text: string;
2964
+ fontSize?: number;
2965
+ fontFamily?: string;
2966
+ color?: number;
2967
+ };
2968
+ type LoadingGizmoItemOptions = {
2969
+ /** Loading 提示文案 */
2970
+ tip?: LoadingGizmoTip;
2971
+ /** 指定 Loading 区域 */
2972
+ loadingBox?: Box2;
2973
+ /** 清理选中 */
2974
+ clearSelected?: boolean;
2975
+ };
2976
+
2962
2977
  type SDKEvents = {
2963
2978
  'loadingItemChange': [id: string[]];
2964
2979
  'selectedItemChange': [id: string[]];
@@ -3294,7 +3309,10 @@ declare class SDK {
3294
3309
  * 清空图片裁切 undoRedo 历史
3295
3310
  */
3296
3311
  clearPictureCutGizmoUndoRedo(): void;
3297
- openLoadingGizmo(id: string, loadingBox?: Box2, clearResult?: boolean): void;
3312
+ openLoadingGizmo(id: string, options?: LoadingGizmoItemOptions): void;
3313
+ updateLoadingGizmo(id: string, options: {
3314
+ tip?: LoadingGizmoTip;
3315
+ }): void;
3298
3316
  closeLoadingGizmo(id: string): void;
3299
3317
  /**
3300
3318
  * @description 元素打组