@vvfx/sdk 0.0.0-alpha.13 → 0.0.0-alpha.14
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 +17 -10
- package/dist/index.d.ts +17 -10
- package/dist/index.global.js +1 -10
- package/dist/index.js +1 -1
- package/package.json +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ type Img2WebPCore = {
|
|
|
83
83
|
type BaseFormProperty = {
|
|
84
84
|
position: [number, number, number];
|
|
85
85
|
rotation: [number, number, number];
|
|
86
|
-
|
|
86
|
+
size: [number, number];
|
|
87
87
|
visible: boolean;
|
|
88
88
|
keyPropertyEditing: boolean;
|
|
89
89
|
};
|
|
@@ -128,6 +128,18 @@ type SpecificPageFormProps<T extends keyof PageFormTypeAndPropertyReference> = {
|
|
|
128
128
|
property: PageFormTypeAndPropertyReference[T];
|
|
129
129
|
onPropertyValueChange: <N extends keyof PageFormTypeAndPropertyReference[T]>(propertyName: N, propertyValue: PageFormTypeAndPropertyReference[T][N]) => void;
|
|
130
130
|
};
|
|
131
|
+
/** 视频导出状态 */
|
|
132
|
+
declare const ExportStatusMap: {
|
|
133
|
+
readonly DEFAULT: "default";
|
|
134
|
+
readonly EXPORTING: "exporting";
|
|
135
|
+
readonly SUCCESS: "success";
|
|
136
|
+
readonly ERROR: "error";
|
|
137
|
+
};
|
|
138
|
+
type SDKOptions = {
|
|
139
|
+
/** 导出视频时,是否开启转码日志 */
|
|
140
|
+
loggerInExportVideoTranscoding?: boolean;
|
|
141
|
+
};
|
|
142
|
+
type ExportStatus = typeof ExportStatusMap[keyof typeof ExportStatusMap];
|
|
131
143
|
/**
|
|
132
144
|
* @description SDK入参
|
|
133
145
|
*/
|
|
@@ -396,13 +408,6 @@ type ViewItem = {
|
|
|
396
408
|
endBehavior: spec.EndBehavior;
|
|
397
409
|
} & ViewItemTypedProperty;
|
|
398
410
|
|
|
399
|
-
declare const ExportStatusMap: {
|
|
400
|
-
readonly DEFAULT: "default";
|
|
401
|
-
readonly EXPORTING: "exporting";
|
|
402
|
-
readonly SUCCESS: "success";
|
|
403
|
-
readonly ERROR: "error";
|
|
404
|
-
};
|
|
405
|
-
type ExportStatus = typeof ExportStatusMap[keyof typeof ExportStatusMap];
|
|
406
411
|
type SDKEvents = {
|
|
407
412
|
'selectedItemChange': [id: string[]];
|
|
408
413
|
'preSelectedItemChange': [id: string | undefined];
|
|
@@ -435,7 +440,7 @@ declare class SDK {
|
|
|
435
440
|
private disposables;
|
|
436
441
|
private _isSwitchScene;
|
|
437
442
|
player: Player;
|
|
438
|
-
constructor(container: HTMLElement);
|
|
443
|
+
constructor(container: HTMLElement, options?: SDKOptions);
|
|
439
444
|
get pageData(): PageData | undefined;
|
|
440
445
|
get exportStatus(): ExportStatus;
|
|
441
446
|
private get exportOptions();
|
|
@@ -504,6 +509,8 @@ declare class SDK {
|
|
|
504
509
|
cancelExportAllVideos(): void;
|
|
505
510
|
loadPageData(data: PageData): Promise<void>;
|
|
506
511
|
runByPageData(data: PageData): Promise<void>;
|
|
512
|
+
reloadPageDataByScene(scene: string | spec.JSONScene): Promise<void>;
|
|
513
|
+
setPageBackgroundColor(color: [number, number, number, number]): void;
|
|
507
514
|
}
|
|
508
515
|
|
|
509
|
-
export { type ActiveData, type BaseFormProperty, type ExportStatus, ExportStatusMap, type PageData, type PageFormTypedProperty, type PageProperty, SDK, type SDKEvents, type SDKInputParam, type SpecificPageFormProps, type SpriteFormProperty, type TextFormProperty, type ViewItem, type ViewParam, type ViewProperty };
|
|
516
|
+
export { type ActiveData, type BaseFormProperty, type ExportStatus, ExportStatusMap, 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 };
|