@vvfx/sdk 0.0.0-alpha.35 → 0.0.0-alpha.37

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
@@ -426,6 +426,7 @@ declare class SDK {
426
426
  private disposables;
427
427
  private _isSwitchScene;
428
428
  player: Player;
429
+ _container: HTMLElement;
429
430
  private _playerContainer;
430
431
  constructor(container: HTMLElement);
431
432
  get pageData(): PageData | undefined;
@@ -588,6 +589,12 @@ declare class SDK {
588
589
  * @param config SDK 配置参数
589
590
  */
590
591
  setSDKConfig(config: SDKConfig): void;
592
+ /**
593
+ * @description 设置SDK背景
594
+ * @param type 背景类型
595
+ * @param value 值
596
+ */
597
+ setSDKBackground(type: SDKBackgroundType, value?: string): void;
591
598
  }
592
599
 
593
600
  type SizeAdaptDirection = 'x' | 'y';
@@ -794,7 +801,7 @@ type ExportParam = {
794
801
  * @description 视频名称
795
802
  */
796
803
  name?: string;
797
- } & Pick<ExportMediaItemOptions, 'time' | 'audioEnable' | 'fps' | 'gifConfig'>;
804
+ } & Omit<ExportMediaItemOptions, 'scene' | 'size'>;
798
805
  /**
799
806
  * @description 视图属性
800
807
  */
@@ -891,5 +898,6 @@ type ViewItem = {
891
898
  */
892
899
  endBehavior: spec.EndBehavior;
893
900
  } & ViewItemTypedProperty;
901
+ type SDKBackgroundType = 'color' | 'image' | 'chess-board';
894
902
 
895
903
  export { type ActiveData, type BaseFormProperty, type PageData, type PageFormTypedProperty, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SDKOptions, type SpecificPageFormProps, type SpriteFormProperty, type TextFormProperty, type ViewItem, type ViewParam, type ViewProperty };
package/dist/index.d.ts CHANGED
@@ -426,6 +426,7 @@ declare class SDK {
426
426
  private disposables;
427
427
  private _isSwitchScene;
428
428
  player: Player;
429
+ _container: HTMLElement;
429
430
  private _playerContainer;
430
431
  constructor(container: HTMLElement);
431
432
  get pageData(): PageData | undefined;
@@ -588,6 +589,12 @@ declare class SDK {
588
589
  * @param config SDK 配置参数
589
590
  */
590
591
  setSDKConfig(config: SDKConfig): void;
592
+ /**
593
+ * @description 设置SDK背景
594
+ * @param type 背景类型
595
+ * @param value 值
596
+ */
597
+ setSDKBackground(type: SDKBackgroundType, value?: string): void;
591
598
  }
592
599
 
593
600
  type SizeAdaptDirection = 'x' | 'y';
@@ -794,7 +801,7 @@ type ExportParam = {
794
801
  * @description 视频名称
795
802
  */
796
803
  name?: string;
797
- } & Pick<ExportMediaItemOptions, 'time' | 'audioEnable' | 'fps' | 'gifConfig'>;
804
+ } & Omit<ExportMediaItemOptions, 'scene' | 'size'>;
798
805
  /**
799
806
  * @description 视图属性
800
807
  */
@@ -891,5 +898,6 @@ type ViewItem = {
891
898
  */
892
899
  endBehavior: spec.EndBehavior;
893
900
  } & ViewItemTypedProperty;
901
+ type SDKBackgroundType = 'color' | 'image' | 'chess-board';
894
902
 
895
903
  export { type ActiveData, type BaseFormProperty, type PageData, type PageFormTypedProperty, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SDKOptions, type SpecificPageFormProps, type SpriteFormProperty, type TextFormProperty, type ViewItem, type ViewParam, type ViewProperty };