@vvfx/sdk 0.1.14-alpha.4 → 0.1.14-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.cjs +1 -1
- package/dist/index.d.cts +73 -43
- package/dist/index.d.ts +73 -43
- package/dist/index.global.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -108,13 +108,13 @@ type EffectsItemOptions = SDKItemOptions & {
|
|
|
108
108
|
* @description 包含所有 SDK 层级的元素类型,包括虚拟类型如 generator
|
|
109
109
|
*/
|
|
110
110
|
declare enum SDKItemType {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
111
|
+
SPRITE = "sprite",
|
|
112
|
+
TEXT = "text",
|
|
113
|
+
VIDEO = "video",
|
|
114
|
+
GROUP = "group",
|
|
115
|
+
GENERATOR = "generator",
|
|
116
|
+
EFFECTS = "effects",
|
|
117
|
+
FRAME = "frame"
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/**
|
|
@@ -243,7 +243,7 @@ declare class SpriteItem extends BaseItem {
|
|
|
243
243
|
/**
|
|
244
244
|
* @description 元素类型
|
|
245
245
|
*/
|
|
246
|
-
readonly type = SDKItemType.
|
|
246
|
+
readonly type = SDKItemType.SPRITE;
|
|
247
247
|
/**
|
|
248
248
|
* @description 元素属性
|
|
249
249
|
*/
|
|
@@ -308,7 +308,7 @@ declare class TextItem extends BaseItem {
|
|
|
308
308
|
/**
|
|
309
309
|
* @description 元素类型
|
|
310
310
|
*/
|
|
311
|
-
readonly type = SDKItemType.
|
|
311
|
+
readonly type = SDKItemType.TEXT;
|
|
312
312
|
/**
|
|
313
313
|
* @description 元素属性
|
|
314
314
|
*/
|
|
@@ -412,7 +412,7 @@ declare class VideoItem extends BaseItem {
|
|
|
412
412
|
/**
|
|
413
413
|
* @description 元素类型
|
|
414
414
|
*/
|
|
415
|
-
readonly type = SDKItemType.
|
|
415
|
+
readonly type = SDKItemType.VIDEO;
|
|
416
416
|
/**
|
|
417
417
|
* @description 元素属性
|
|
418
418
|
*/
|
|
@@ -491,7 +491,7 @@ declare class GroupItem extends BaseItem {
|
|
|
491
491
|
/**
|
|
492
492
|
* @description 元素类型
|
|
493
493
|
*/
|
|
494
|
-
readonly type = SDKItemType.
|
|
494
|
+
readonly type = SDKItemType.GROUP;
|
|
495
495
|
/**
|
|
496
496
|
* @description 元素属性
|
|
497
497
|
*/
|
|
@@ -552,7 +552,7 @@ declare class GeneratorItem extends BaseItem {
|
|
|
552
552
|
/**
|
|
553
553
|
* @description 元素类型(独立类型,不属于 spec.ItemType)
|
|
554
554
|
*/
|
|
555
|
-
readonly type = SDKItemType.
|
|
555
|
+
readonly type = SDKItemType.GENERATOR;
|
|
556
556
|
/**
|
|
557
557
|
* @description 元素属性(包含 generatorType)
|
|
558
558
|
*/
|
|
@@ -627,7 +627,7 @@ declare class EffectsItem extends BaseItem {
|
|
|
627
627
|
/**
|
|
628
628
|
* @description 元素类型(独立类型,不属于 spec.ItemType)
|
|
629
629
|
*/
|
|
630
|
-
readonly type = SDKItemType.
|
|
630
|
+
readonly type = SDKItemType.EFFECTS;
|
|
631
631
|
/**
|
|
632
632
|
* @description 元素属性
|
|
633
633
|
*/
|
|
@@ -2068,7 +2068,18 @@ declare class SDK {
|
|
|
2068
2068
|
* @param progress 播放进度 0-100
|
|
2069
2069
|
*/
|
|
2070
2070
|
setPlayProgress(progress: number): Promise<void>;
|
|
2071
|
-
|
|
2071
|
+
/**
|
|
2072
|
+
* @description 获取元素
|
|
2073
|
+
* @param id 元素ID
|
|
2074
|
+
* @returns 元素
|
|
2075
|
+
* */
|
|
2076
|
+
getSDKItem(id: string): SDKItem$1 | undefined;
|
|
2077
|
+
/**
|
|
2078
|
+
* @description 获取元素数组
|
|
2079
|
+
* @param id 元素ID数组
|
|
2080
|
+
* @returns 元素数组
|
|
2081
|
+
* */
|
|
2082
|
+
getSDKItems(ids?: string[]): SDKItem$1[];
|
|
2072
2083
|
setPlayState(playState: 'play' | 'pause'): Promise<void>;
|
|
2073
2084
|
/**
|
|
2074
2085
|
* @description 获取场景预览图
|
|
@@ -2238,8 +2249,8 @@ declare class SDK {
|
|
|
2238
2249
|
addTextItem(textInfo: TextCreateInfo, scene?: spec.JSONScene): Promise<string | undefined>;
|
|
2239
2250
|
addItemByCreateInfos(createInfos: ItemCreateInfo[], asyncMode?: boolean): Promise<(string | undefined)[]>;
|
|
2240
2251
|
deleteItems(idInfo: string | string[]): void;
|
|
2241
|
-
getItemCreateInfo(
|
|
2242
|
-
|
|
2252
|
+
getItemCreateInfo(id: string): ItemCreateInfo | undefined;
|
|
2253
|
+
getItemCreateInfos(ids?: string[]): ItemCreateInfo[];
|
|
2243
2254
|
createScreenShotSceneByIds(idInfo: string | string[], time?: number): Promise<string | undefined>;
|
|
2244
2255
|
getChildrenIds(id: string): string[];
|
|
2245
2256
|
/**
|
|
@@ -2255,7 +2266,6 @@ declare class SDK {
|
|
|
2255
2266
|
*/
|
|
2256
2267
|
exportJSON(idInfo?: number | number[]): spec.JSONScene[];
|
|
2257
2268
|
getViewBoxById(id: string): Box2;
|
|
2258
|
-
getSDKItemById(id: string): SDKItem$1 | undefined;
|
|
2259
2269
|
/**
|
|
2260
2270
|
* @description 批量设置元素扩展属性
|
|
2261
2271
|
* @param id 元素ID
|
|
@@ -2460,13 +2470,13 @@ type PageFormTypeAndPropertyReference = {
|
|
|
2460
2470
|
[spec.ItemType.base]: BaseItemProperty;
|
|
2461
2471
|
[spec.ItemType.sprite]: SpriteItemProperty;
|
|
2462
2472
|
[spec.ItemType.null]: BaseItemProperty;
|
|
2463
|
-
[SDKItemType.
|
|
2464
|
-
[SDKItemType.
|
|
2465
|
-
[SDKItemType.
|
|
2466
|
-
[SDKItemType.
|
|
2467
|
-
[SDKItemType.
|
|
2468
|
-
[SDKItemType.
|
|
2469
|
-
[SDKItemType.
|
|
2473
|
+
[SDKItemType.SPRITE]: SpriteItemProperty;
|
|
2474
|
+
[SDKItemType.TEXT]: TextItemProperty;
|
|
2475
|
+
[SDKItemType.VIDEO]: VideoItemProperty;
|
|
2476
|
+
[SDKItemType.GROUP]: GroupItemProperty;
|
|
2477
|
+
[SDKItemType.GENERATOR]: GeneratorItemProperty;
|
|
2478
|
+
[SDKItemType.EFFECTS]: EffectsItemProperty;
|
|
2479
|
+
[SDKItemType.FRAME]: BaseItemProperty;
|
|
2470
2480
|
[spec.ItemType.interact]: BaseItemProperty;
|
|
2471
2481
|
[spec.ItemType.plugin]: BaseItemProperty;
|
|
2472
2482
|
[spec.ItemType.camera]: BaseItemProperty;
|
|
@@ -2743,7 +2753,7 @@ type SDKBackgroundType = 'color' | 'image' | 'chess-board' | 'dot-board';
|
|
|
2743
2753
|
* @description 图层创建信息
|
|
2744
2754
|
*/
|
|
2745
2755
|
type SpriteCreateInfo = {
|
|
2746
|
-
type: SDKItemType.
|
|
2756
|
+
type: SDKItemType.SPRITE;
|
|
2747
2757
|
/**
|
|
2748
2758
|
* @description 图层名称
|
|
2749
2759
|
*/
|
|
@@ -2769,9 +2779,13 @@ type SpriteCreateInfo = {
|
|
|
2769
2779
|
*/
|
|
2770
2780
|
image: string;
|
|
2771
2781
|
/**
|
|
2772
|
-
* @description
|
|
2782
|
+
* @description 图层像素宽度
|
|
2783
|
+
*/
|
|
2784
|
+
width: number;
|
|
2785
|
+
/**
|
|
2786
|
+
* @description 图层像素高度
|
|
2773
2787
|
*/
|
|
2774
|
-
|
|
2788
|
+
height: number;
|
|
2775
2789
|
/**
|
|
2776
2790
|
* @description 元素位置
|
|
2777
2791
|
*/
|
|
@@ -2790,7 +2804,7 @@ type SpriteCreateInfo = {
|
|
|
2790
2804
|
* @description 空节点创建信息
|
|
2791
2805
|
*/
|
|
2792
2806
|
type GroupCreateInfo = {
|
|
2793
|
-
type: SDKItemType.
|
|
2807
|
+
type: SDKItemType.GROUP;
|
|
2794
2808
|
/**
|
|
2795
2809
|
* @description 元素id
|
|
2796
2810
|
*/
|
|
@@ -2814,7 +2828,7 @@ type GroupCreateInfo = {
|
|
|
2814
2828
|
/**
|
|
2815
2829
|
* @description 元素位置
|
|
2816
2830
|
*/
|
|
2817
|
-
position
|
|
2831
|
+
position?: [number, number];
|
|
2818
2832
|
/**
|
|
2819
2833
|
* @description 元素旋转 z | [x, y, z]
|
|
2820
2834
|
*/
|
|
@@ -2833,7 +2847,7 @@ type GroupCreateInfo = {
|
|
|
2833
2847
|
* @description 文本创建信息
|
|
2834
2848
|
*/
|
|
2835
2849
|
type TextCreateInfo = {
|
|
2836
|
-
type: SDKItemType.
|
|
2850
|
+
type: SDKItemType.TEXT;
|
|
2837
2851
|
/**
|
|
2838
2852
|
* @description 元素id
|
|
2839
2853
|
*/
|
|
@@ -2855,9 +2869,13 @@ type TextCreateInfo = {
|
|
|
2855
2869
|
*/
|
|
2856
2870
|
property: {
|
|
2857
2871
|
/**
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2872
|
+
* @description 文本宽度
|
|
2873
|
+
*/
|
|
2874
|
+
width: number;
|
|
2875
|
+
/**
|
|
2876
|
+
* @description 文本高度
|
|
2877
|
+
*/
|
|
2878
|
+
height?: number;
|
|
2861
2879
|
/**
|
|
2862
2880
|
* @description 元素位置
|
|
2863
2881
|
*/
|
|
@@ -2924,7 +2942,7 @@ type TextCreateInfo = {
|
|
|
2924
2942
|
* @description 视频创建信息
|
|
2925
2943
|
*/
|
|
2926
2944
|
type VideoCreateInfo = {
|
|
2927
|
-
type: SDKItemType.
|
|
2945
|
+
type: SDKItemType.VIDEO;
|
|
2928
2946
|
/**
|
|
2929
2947
|
* @description 视频名称
|
|
2930
2948
|
*/
|
|
@@ -2950,9 +2968,13 @@ type VideoCreateInfo = {
|
|
|
2950
2968
|
*/
|
|
2951
2969
|
video: string;
|
|
2952
2970
|
/**
|
|
2953
|
-
* @description
|
|
2971
|
+
* @description 视频元素像素宽度
|
|
2972
|
+
*/
|
|
2973
|
+
width: number;
|
|
2974
|
+
/**
|
|
2975
|
+
* @description 视频元素像素高度
|
|
2954
2976
|
*/
|
|
2955
|
-
|
|
2977
|
+
height: number;
|
|
2956
2978
|
/**
|
|
2957
2979
|
* @description 视频元素位置
|
|
2958
2980
|
*/
|
|
@@ -2994,7 +3016,7 @@ type GeneratorCreateInfo = {
|
|
|
2994
3016
|
/**
|
|
2995
3017
|
* @description 元素类型 - 生成器
|
|
2996
3018
|
*/
|
|
2997
|
-
type: SDKItemType.
|
|
3019
|
+
type: SDKItemType.GENERATOR;
|
|
2998
3020
|
/**
|
|
2999
3021
|
* @description 元素名称
|
|
3000
3022
|
*/
|
|
@@ -3020,9 +3042,13 @@ type GeneratorCreateInfo = {
|
|
|
3020
3042
|
*/
|
|
3021
3043
|
generatorType: GeneratorType;
|
|
3022
3044
|
/**
|
|
3023
|
-
* @description
|
|
3045
|
+
* @description 生成器元素像素宽度
|
|
3024
3046
|
*/
|
|
3025
|
-
|
|
3047
|
+
width: number;
|
|
3048
|
+
/**
|
|
3049
|
+
* @description 生成器元素像素高度
|
|
3050
|
+
*/
|
|
3051
|
+
height: number;
|
|
3026
3052
|
/**
|
|
3027
3053
|
* @description 生成器元素位置
|
|
3028
3054
|
*/
|
|
@@ -3100,7 +3126,7 @@ type EffectsCreateInfo = {
|
|
|
3100
3126
|
/**
|
|
3101
3127
|
* @description 元素类型 - 特效
|
|
3102
3128
|
*/
|
|
3103
|
-
type: SDKItemType.
|
|
3129
|
+
type: SDKItemType.EFFECTS;
|
|
3104
3130
|
/**
|
|
3105
3131
|
* @description 元素名称
|
|
3106
3132
|
*/
|
|
@@ -3115,9 +3141,13 @@ type EffectsCreateInfo = {
|
|
|
3115
3141
|
parentId?: string;
|
|
3116
3142
|
property: {
|
|
3117
3143
|
/**
|
|
3118
|
-
* @description
|
|
3144
|
+
* @description 动效像素宽度
|
|
3145
|
+
*/
|
|
3146
|
+
width?: number;
|
|
3147
|
+
/**
|
|
3148
|
+
* @description 动效像素高度
|
|
3119
3149
|
*/
|
|
3120
|
-
|
|
3150
|
+
height?: number;
|
|
3121
3151
|
/**
|
|
3122
3152
|
* @description 生成器位置
|
|
3123
3153
|
*/
|
|
@@ -3182,4 +3212,4 @@ type ViewportFitShiftParam = {
|
|
|
3182
3212
|
bottom?: number;
|
|
3183
3213
|
};
|
|
3184
3214
|
|
|
3185
|
-
export { type ActiveData, BaseItem, type BaseItemProperty, Box2, type CreateOperation, type DeleteOperation, type EffectsCreateInfo, EffectsItem, type EffectsItemOptions, type GeneratorCreateInfo, GeneratorItem, type GeneratorItemOptions, type GeneratorItemProperty, type GizmoType, type GroupCreateInfo, GroupItem, type GroupItemOptions, type ItemCreateInfo, ItemOrderAction, type Operation, type PageData, type PageFormTypedProperty, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SDKItem$1 as SDKItem, type SDKItemOptions, type SDKOptions, type SetItemPropertyValueParam, type SpecificPageFormProps, type SpriteCreateInfo, SpriteItem, type SpriteItemOptions, type SpriteItemProperty, type TextCreateInfo, TextItem, type TextItemOptions, type TextItemProperty, type UpdateOperation, Vector2, type VideoCreateInfo, VideoItem, type VideoItemOptions, type VideoItemProperty, type ViewItemTypedProperty, type ViewParam, type ViewProperty, createSDKItem, isBaseItem, isEffectsItem, isGeneratorItem, isGroupItem, isSpriteItem, isTextItem, isVideoItem };
|
|
3215
|
+
export { type ActiveData, BaseItem, type BaseItemProperty, Box2, type CreateOperation, type DeleteOperation, type EffectsCreateInfo, EffectsItem, type EffectsItemOptions, type GeneratorCreateInfo, GeneratorItem, type GeneratorItemOptions, type GeneratorItemProperty, type GizmoType, type GroupCreateInfo, GroupItem, type GroupItemOptions, type ItemCreateInfo, ItemOrderAction, type Operation, type PageData, type PageFormTypedProperty, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SDKItem$1 as SDKItem, type SDKItemOptions, SDKItemType, type SDKOptions, type SetItemPropertyValueParam, type SpecificPageFormProps, type SpriteCreateInfo, SpriteItem, type SpriteItemOptions, type SpriteItemProperty, type TextCreateInfo, TextItem, type TextItemOptions, type TextItemProperty, type UpdateOperation, Vector2, type VideoCreateInfo, VideoItem, type VideoItemOptions, type VideoItemProperty, type ViewItemTypedProperty, type ViewParam, type ViewProperty, createSDKItem, isBaseItem, isEffectsItem, isGeneratorItem, isGroupItem, isSpriteItem, isTextItem, isVideoItem };
|
package/dist/index.d.ts
CHANGED
|
@@ -108,13 +108,13 @@ type EffectsItemOptions = SDKItemOptions & {
|
|
|
108
108
|
* @description 包含所有 SDK 层级的元素类型,包括虚拟类型如 generator
|
|
109
109
|
*/
|
|
110
110
|
declare enum SDKItemType {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
111
|
+
SPRITE = "sprite",
|
|
112
|
+
TEXT = "text",
|
|
113
|
+
VIDEO = "video",
|
|
114
|
+
GROUP = "group",
|
|
115
|
+
GENERATOR = "generator",
|
|
116
|
+
EFFECTS = "effects",
|
|
117
|
+
FRAME = "frame"
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/**
|
|
@@ -243,7 +243,7 @@ declare class SpriteItem extends BaseItem {
|
|
|
243
243
|
/**
|
|
244
244
|
* @description 元素类型
|
|
245
245
|
*/
|
|
246
|
-
readonly type = SDKItemType.
|
|
246
|
+
readonly type = SDKItemType.SPRITE;
|
|
247
247
|
/**
|
|
248
248
|
* @description 元素属性
|
|
249
249
|
*/
|
|
@@ -308,7 +308,7 @@ declare class TextItem extends BaseItem {
|
|
|
308
308
|
/**
|
|
309
309
|
* @description 元素类型
|
|
310
310
|
*/
|
|
311
|
-
readonly type = SDKItemType.
|
|
311
|
+
readonly type = SDKItemType.TEXT;
|
|
312
312
|
/**
|
|
313
313
|
* @description 元素属性
|
|
314
314
|
*/
|
|
@@ -412,7 +412,7 @@ declare class VideoItem extends BaseItem {
|
|
|
412
412
|
/**
|
|
413
413
|
* @description 元素类型
|
|
414
414
|
*/
|
|
415
|
-
readonly type = SDKItemType.
|
|
415
|
+
readonly type = SDKItemType.VIDEO;
|
|
416
416
|
/**
|
|
417
417
|
* @description 元素属性
|
|
418
418
|
*/
|
|
@@ -491,7 +491,7 @@ declare class GroupItem extends BaseItem {
|
|
|
491
491
|
/**
|
|
492
492
|
* @description 元素类型
|
|
493
493
|
*/
|
|
494
|
-
readonly type = SDKItemType.
|
|
494
|
+
readonly type = SDKItemType.GROUP;
|
|
495
495
|
/**
|
|
496
496
|
* @description 元素属性
|
|
497
497
|
*/
|
|
@@ -552,7 +552,7 @@ declare class GeneratorItem extends BaseItem {
|
|
|
552
552
|
/**
|
|
553
553
|
* @description 元素类型(独立类型,不属于 spec.ItemType)
|
|
554
554
|
*/
|
|
555
|
-
readonly type = SDKItemType.
|
|
555
|
+
readonly type = SDKItemType.GENERATOR;
|
|
556
556
|
/**
|
|
557
557
|
* @description 元素属性(包含 generatorType)
|
|
558
558
|
*/
|
|
@@ -627,7 +627,7 @@ declare class EffectsItem extends BaseItem {
|
|
|
627
627
|
/**
|
|
628
628
|
* @description 元素类型(独立类型,不属于 spec.ItemType)
|
|
629
629
|
*/
|
|
630
|
-
readonly type = SDKItemType.
|
|
630
|
+
readonly type = SDKItemType.EFFECTS;
|
|
631
631
|
/**
|
|
632
632
|
* @description 元素属性
|
|
633
633
|
*/
|
|
@@ -2068,7 +2068,18 @@ declare class SDK {
|
|
|
2068
2068
|
* @param progress 播放进度 0-100
|
|
2069
2069
|
*/
|
|
2070
2070
|
setPlayProgress(progress: number): Promise<void>;
|
|
2071
|
-
|
|
2071
|
+
/**
|
|
2072
|
+
* @description 获取元素
|
|
2073
|
+
* @param id 元素ID
|
|
2074
|
+
* @returns 元素
|
|
2075
|
+
* */
|
|
2076
|
+
getSDKItem(id: string): SDKItem$1 | undefined;
|
|
2077
|
+
/**
|
|
2078
|
+
* @description 获取元素数组
|
|
2079
|
+
* @param id 元素ID数组
|
|
2080
|
+
* @returns 元素数组
|
|
2081
|
+
* */
|
|
2082
|
+
getSDKItems(ids?: string[]): SDKItem$1[];
|
|
2072
2083
|
setPlayState(playState: 'play' | 'pause'): Promise<void>;
|
|
2073
2084
|
/**
|
|
2074
2085
|
* @description 获取场景预览图
|
|
@@ -2238,8 +2249,8 @@ declare class SDK {
|
|
|
2238
2249
|
addTextItem(textInfo: TextCreateInfo, scene?: spec.JSONScene): Promise<string | undefined>;
|
|
2239
2250
|
addItemByCreateInfos(createInfos: ItemCreateInfo[], asyncMode?: boolean): Promise<(string | undefined)[]>;
|
|
2240
2251
|
deleteItems(idInfo: string | string[]): void;
|
|
2241
|
-
getItemCreateInfo(
|
|
2242
|
-
|
|
2252
|
+
getItemCreateInfo(id: string): ItemCreateInfo | undefined;
|
|
2253
|
+
getItemCreateInfos(ids?: string[]): ItemCreateInfo[];
|
|
2243
2254
|
createScreenShotSceneByIds(idInfo: string | string[], time?: number): Promise<string | undefined>;
|
|
2244
2255
|
getChildrenIds(id: string): string[];
|
|
2245
2256
|
/**
|
|
@@ -2255,7 +2266,6 @@ declare class SDK {
|
|
|
2255
2266
|
*/
|
|
2256
2267
|
exportJSON(idInfo?: number | number[]): spec.JSONScene[];
|
|
2257
2268
|
getViewBoxById(id: string): Box2;
|
|
2258
|
-
getSDKItemById(id: string): SDKItem$1 | undefined;
|
|
2259
2269
|
/**
|
|
2260
2270
|
* @description 批量设置元素扩展属性
|
|
2261
2271
|
* @param id 元素ID
|
|
@@ -2460,13 +2470,13 @@ type PageFormTypeAndPropertyReference = {
|
|
|
2460
2470
|
[spec.ItemType.base]: BaseItemProperty;
|
|
2461
2471
|
[spec.ItemType.sprite]: SpriteItemProperty;
|
|
2462
2472
|
[spec.ItemType.null]: BaseItemProperty;
|
|
2463
|
-
[SDKItemType.
|
|
2464
|
-
[SDKItemType.
|
|
2465
|
-
[SDKItemType.
|
|
2466
|
-
[SDKItemType.
|
|
2467
|
-
[SDKItemType.
|
|
2468
|
-
[SDKItemType.
|
|
2469
|
-
[SDKItemType.
|
|
2473
|
+
[SDKItemType.SPRITE]: SpriteItemProperty;
|
|
2474
|
+
[SDKItemType.TEXT]: TextItemProperty;
|
|
2475
|
+
[SDKItemType.VIDEO]: VideoItemProperty;
|
|
2476
|
+
[SDKItemType.GROUP]: GroupItemProperty;
|
|
2477
|
+
[SDKItemType.GENERATOR]: GeneratorItemProperty;
|
|
2478
|
+
[SDKItemType.EFFECTS]: EffectsItemProperty;
|
|
2479
|
+
[SDKItemType.FRAME]: BaseItemProperty;
|
|
2470
2480
|
[spec.ItemType.interact]: BaseItemProperty;
|
|
2471
2481
|
[spec.ItemType.plugin]: BaseItemProperty;
|
|
2472
2482
|
[spec.ItemType.camera]: BaseItemProperty;
|
|
@@ -2743,7 +2753,7 @@ type SDKBackgroundType = 'color' | 'image' | 'chess-board' | 'dot-board';
|
|
|
2743
2753
|
* @description 图层创建信息
|
|
2744
2754
|
*/
|
|
2745
2755
|
type SpriteCreateInfo = {
|
|
2746
|
-
type: SDKItemType.
|
|
2756
|
+
type: SDKItemType.SPRITE;
|
|
2747
2757
|
/**
|
|
2748
2758
|
* @description 图层名称
|
|
2749
2759
|
*/
|
|
@@ -2769,9 +2779,13 @@ type SpriteCreateInfo = {
|
|
|
2769
2779
|
*/
|
|
2770
2780
|
image: string;
|
|
2771
2781
|
/**
|
|
2772
|
-
* @description
|
|
2782
|
+
* @description 图层像素宽度
|
|
2783
|
+
*/
|
|
2784
|
+
width: number;
|
|
2785
|
+
/**
|
|
2786
|
+
* @description 图层像素高度
|
|
2773
2787
|
*/
|
|
2774
|
-
|
|
2788
|
+
height: number;
|
|
2775
2789
|
/**
|
|
2776
2790
|
* @description 元素位置
|
|
2777
2791
|
*/
|
|
@@ -2790,7 +2804,7 @@ type SpriteCreateInfo = {
|
|
|
2790
2804
|
* @description 空节点创建信息
|
|
2791
2805
|
*/
|
|
2792
2806
|
type GroupCreateInfo = {
|
|
2793
|
-
type: SDKItemType.
|
|
2807
|
+
type: SDKItemType.GROUP;
|
|
2794
2808
|
/**
|
|
2795
2809
|
* @description 元素id
|
|
2796
2810
|
*/
|
|
@@ -2814,7 +2828,7 @@ type GroupCreateInfo = {
|
|
|
2814
2828
|
/**
|
|
2815
2829
|
* @description 元素位置
|
|
2816
2830
|
*/
|
|
2817
|
-
position
|
|
2831
|
+
position?: [number, number];
|
|
2818
2832
|
/**
|
|
2819
2833
|
* @description 元素旋转 z | [x, y, z]
|
|
2820
2834
|
*/
|
|
@@ -2833,7 +2847,7 @@ type GroupCreateInfo = {
|
|
|
2833
2847
|
* @description 文本创建信息
|
|
2834
2848
|
*/
|
|
2835
2849
|
type TextCreateInfo = {
|
|
2836
|
-
type: SDKItemType.
|
|
2850
|
+
type: SDKItemType.TEXT;
|
|
2837
2851
|
/**
|
|
2838
2852
|
* @description 元素id
|
|
2839
2853
|
*/
|
|
@@ -2855,9 +2869,13 @@ type TextCreateInfo = {
|
|
|
2855
2869
|
*/
|
|
2856
2870
|
property: {
|
|
2857
2871
|
/**
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2872
|
+
* @description 文本宽度
|
|
2873
|
+
*/
|
|
2874
|
+
width: number;
|
|
2875
|
+
/**
|
|
2876
|
+
* @description 文本高度
|
|
2877
|
+
*/
|
|
2878
|
+
height?: number;
|
|
2861
2879
|
/**
|
|
2862
2880
|
* @description 元素位置
|
|
2863
2881
|
*/
|
|
@@ -2924,7 +2942,7 @@ type TextCreateInfo = {
|
|
|
2924
2942
|
* @description 视频创建信息
|
|
2925
2943
|
*/
|
|
2926
2944
|
type VideoCreateInfo = {
|
|
2927
|
-
type: SDKItemType.
|
|
2945
|
+
type: SDKItemType.VIDEO;
|
|
2928
2946
|
/**
|
|
2929
2947
|
* @description 视频名称
|
|
2930
2948
|
*/
|
|
@@ -2950,9 +2968,13 @@ type VideoCreateInfo = {
|
|
|
2950
2968
|
*/
|
|
2951
2969
|
video: string;
|
|
2952
2970
|
/**
|
|
2953
|
-
* @description
|
|
2971
|
+
* @description 视频元素像素宽度
|
|
2972
|
+
*/
|
|
2973
|
+
width: number;
|
|
2974
|
+
/**
|
|
2975
|
+
* @description 视频元素像素高度
|
|
2954
2976
|
*/
|
|
2955
|
-
|
|
2977
|
+
height: number;
|
|
2956
2978
|
/**
|
|
2957
2979
|
* @description 视频元素位置
|
|
2958
2980
|
*/
|
|
@@ -2994,7 +3016,7 @@ type GeneratorCreateInfo = {
|
|
|
2994
3016
|
/**
|
|
2995
3017
|
* @description 元素类型 - 生成器
|
|
2996
3018
|
*/
|
|
2997
|
-
type: SDKItemType.
|
|
3019
|
+
type: SDKItemType.GENERATOR;
|
|
2998
3020
|
/**
|
|
2999
3021
|
* @description 元素名称
|
|
3000
3022
|
*/
|
|
@@ -3020,9 +3042,13 @@ type GeneratorCreateInfo = {
|
|
|
3020
3042
|
*/
|
|
3021
3043
|
generatorType: GeneratorType;
|
|
3022
3044
|
/**
|
|
3023
|
-
* @description
|
|
3045
|
+
* @description 生成器元素像素宽度
|
|
3024
3046
|
*/
|
|
3025
|
-
|
|
3047
|
+
width: number;
|
|
3048
|
+
/**
|
|
3049
|
+
* @description 生成器元素像素高度
|
|
3050
|
+
*/
|
|
3051
|
+
height: number;
|
|
3026
3052
|
/**
|
|
3027
3053
|
* @description 生成器元素位置
|
|
3028
3054
|
*/
|
|
@@ -3100,7 +3126,7 @@ type EffectsCreateInfo = {
|
|
|
3100
3126
|
/**
|
|
3101
3127
|
* @description 元素类型 - 特效
|
|
3102
3128
|
*/
|
|
3103
|
-
type: SDKItemType.
|
|
3129
|
+
type: SDKItemType.EFFECTS;
|
|
3104
3130
|
/**
|
|
3105
3131
|
* @description 元素名称
|
|
3106
3132
|
*/
|
|
@@ -3115,9 +3141,13 @@ type EffectsCreateInfo = {
|
|
|
3115
3141
|
parentId?: string;
|
|
3116
3142
|
property: {
|
|
3117
3143
|
/**
|
|
3118
|
-
* @description
|
|
3144
|
+
* @description 动效像素宽度
|
|
3145
|
+
*/
|
|
3146
|
+
width?: number;
|
|
3147
|
+
/**
|
|
3148
|
+
* @description 动效像素高度
|
|
3119
3149
|
*/
|
|
3120
|
-
|
|
3150
|
+
height?: number;
|
|
3121
3151
|
/**
|
|
3122
3152
|
* @description 生成器位置
|
|
3123
3153
|
*/
|
|
@@ -3182,4 +3212,4 @@ type ViewportFitShiftParam = {
|
|
|
3182
3212
|
bottom?: number;
|
|
3183
3213
|
};
|
|
3184
3214
|
|
|
3185
|
-
export { type ActiveData, BaseItem, type BaseItemProperty, Box2, type CreateOperation, type DeleteOperation, type EffectsCreateInfo, EffectsItem, type EffectsItemOptions, type GeneratorCreateInfo, GeneratorItem, type GeneratorItemOptions, type GeneratorItemProperty, type GizmoType, type GroupCreateInfo, GroupItem, type GroupItemOptions, type ItemCreateInfo, ItemOrderAction, type Operation, type PageData, type PageFormTypedProperty, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SDKItem$1 as SDKItem, type SDKItemOptions, type SDKOptions, type SetItemPropertyValueParam, type SpecificPageFormProps, type SpriteCreateInfo, SpriteItem, type SpriteItemOptions, type SpriteItemProperty, type TextCreateInfo, TextItem, type TextItemOptions, type TextItemProperty, type UpdateOperation, Vector2, type VideoCreateInfo, VideoItem, type VideoItemOptions, type VideoItemProperty, type ViewItemTypedProperty, type ViewParam, type ViewProperty, createSDKItem, isBaseItem, isEffectsItem, isGeneratorItem, isGroupItem, isSpriteItem, isTextItem, isVideoItem };
|
|
3215
|
+
export { type ActiveData, BaseItem, type BaseItemProperty, Box2, type CreateOperation, type DeleteOperation, type EffectsCreateInfo, EffectsItem, type EffectsItemOptions, type GeneratorCreateInfo, GeneratorItem, type GeneratorItemOptions, type GeneratorItemProperty, type GizmoType, type GroupCreateInfo, GroupItem, type GroupItemOptions, type ItemCreateInfo, ItemOrderAction, type Operation, type PageData, type PageFormTypedProperty, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SDKItem$1 as SDKItem, type SDKItemOptions, SDKItemType, type SDKOptions, type SetItemPropertyValueParam, type SpecificPageFormProps, type SpriteCreateInfo, SpriteItem, type SpriteItemOptions, type SpriteItemProperty, type TextCreateInfo, TextItem, type TextItemOptions, type TextItemProperty, type UpdateOperation, Vector2, type VideoCreateInfo, VideoItem, type VideoItemOptions, type VideoItemProperty, type ViewItemTypedProperty, type ViewParam, type ViewProperty, createSDKItem, isBaseItem, isEffectsItem, isGeneratorItem, isGroupItem, isSpriteItem, isTextItem, isVideoItem };
|