@vvfx/sdk 0.2.6 → 0.2.8
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/html-overlay/html-capture-runtime.d.ts +12 -0
- package/dist/index.cjs +473 -214
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +474 -215
- package/dist/index.js.map +1 -1
- package/dist/sdk-item/types.d.ts +1 -11
- package/package.json +1 -1
package/dist/sdk-item/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SpriteItemProperty, TextItemProperty, VideoItemProperty, GeneratorItemProperty, GroupItemProperty, EffectsItemProperty, FrameItemProperty, CardItemProperty } from '../types';
|
|
2
|
-
import { spec } from '../shared';
|
|
2
|
+
import type { spec } from '../shared';
|
|
3
3
|
/**
|
|
4
4
|
* @description SDKItem 基础选项接口
|
|
5
5
|
* @description 支持扩展属性,允许添加任意额外属性
|
|
@@ -131,10 +131,6 @@ export declare enum SDKItemType {
|
|
|
131
131
|
FRAME = "frame",
|
|
132
132
|
CARD = "card"
|
|
133
133
|
}
|
|
134
|
-
/**
|
|
135
|
-
* @description SDKItemType 与 spec.ItemType 的映射关系
|
|
136
|
-
*/
|
|
137
|
-
export declare const SDKItemTypeToSpecItemType: Record<SDKItemType, spec.ItemType>;
|
|
138
134
|
/**
|
|
139
135
|
* @description Card 卡片元素 SDKItem 选项
|
|
140
136
|
* @description 在 Player 中以 SpriteItem 形式渲染
|
|
@@ -145,9 +141,3 @@ export type CardItemOptions = SDKItemOptions & {
|
|
|
145
141
|
*/
|
|
146
142
|
property?: Partial<CardItemProperty>;
|
|
147
143
|
};
|
|
148
|
-
/**
|
|
149
|
-
* @description 根据 SDKItemType 获取对应的 spec.ItemType
|
|
150
|
-
* @param sdkItemType SDKItem 类型
|
|
151
|
-
* @returns 对应的 spec.ItemType
|
|
152
|
-
*/
|
|
153
|
-
export declare function getSpecItemType(sdkItemType: SDKItemType): spec.ItemType;
|