@vvfx/sdk 0.1.14 → 0.1.15-alpha.1

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
@@ -689,7 +689,7 @@ declare function createSDKItem(type: spec.ItemType, options: SDKItemOptions): Ba
689
689
  * @description SDKItem 类型联合
690
690
  * @description 用于替换原来的 SDKItem type
691
691
  */
692
- type SDKItem$1 = SpriteItem | TextItem | VideoItem | GroupItem | GeneratorItem;
692
+ type SDKItem$1 = SpriteItem | TextItem | VideoItem | GroupItem | GeneratorItem | EffectsItem;
693
693
 
694
694
  type ViewItemTypedProperty = {
695
695
  [K in keyof PageFormTypeAndPropertyReference]: {
@@ -2368,7 +2368,7 @@ declare class SDK {
2368
2368
  * @description 创建动效元素(仅限调试使用)
2369
2369
  * @param effectsInfo 动效创建信息
2370
2370
  */
2371
- addEffectsItem(effectsInfo: EffectsCreateInfo): void;
2371
+ addEffectsItem(effectsInfo: EffectsCreateInfo): Promise<string | undefined>;
2372
2372
  /**
2373
2373
  * @description 设置生成器资源,将生成器转换为对应的元素
2374
2374
  * @param id 生成器元素ID
package/dist/index.d.ts CHANGED
@@ -689,7 +689,7 @@ declare function createSDKItem(type: spec.ItemType, options: SDKItemOptions): Ba
689
689
  * @description SDKItem 类型联合
690
690
  * @description 用于替换原来的 SDKItem type
691
691
  */
692
- type SDKItem$1 = SpriteItem | TextItem | VideoItem | GroupItem | GeneratorItem;
692
+ type SDKItem$1 = SpriteItem | TextItem | VideoItem | GroupItem | GeneratorItem | EffectsItem;
693
693
 
694
694
  type ViewItemTypedProperty = {
695
695
  [K in keyof PageFormTypeAndPropertyReference]: {
@@ -2368,7 +2368,7 @@ declare class SDK {
2368
2368
  * @description 创建动效元素(仅限调试使用)
2369
2369
  * @param effectsInfo 动效创建信息
2370
2370
  */
2371
- addEffectsItem(effectsInfo: EffectsCreateInfo): void;
2371
+ addEffectsItem(effectsInfo: EffectsCreateInfo): Promise<string | undefined>;
2372
2372
  /**
2373
2373
  * @description 设置生成器资源,将生成器转换为对应的元素
2374
2374
  * @param id 生成器元素ID