@vvfx/sdk 0.0.0-alpha.62 → 0.0.0-alpha.64
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 +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.global.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -446,6 +446,12 @@ type ExportMediaInitOptions = {
|
|
|
446
446
|
*/
|
|
447
447
|
isOutputBuffer?: boolean;
|
|
448
448
|
};
|
|
449
|
+
type MP4Config = {
|
|
450
|
+
/**
|
|
451
|
+
* @description MP4 导出时是否需要导出最后一帧 PNG
|
|
452
|
+
*/
|
|
453
|
+
isExportLastFramePNG?: boolean;
|
|
454
|
+
};
|
|
449
455
|
type GifConfig = {
|
|
450
456
|
/**
|
|
451
457
|
* @description GIF 导出时的帧率
|
|
@@ -513,10 +519,17 @@ type ExportMediaItemOptions = {
|
|
|
513
519
|
* 视频背景颜色,默认 #000000
|
|
514
520
|
*/
|
|
515
521
|
backgroundColor?: string;
|
|
522
|
+
/**
|
|
523
|
+
* 导出 MP4 时,设置的导出配置
|
|
524
|
+
*/
|
|
525
|
+
mp4Config?: MP4Config;
|
|
516
526
|
/**
|
|
517
527
|
* 导出 GIF 时,设置的导出配置
|
|
518
528
|
*/
|
|
519
529
|
gifConfig?: GifConfig;
|
|
530
|
+
/**
|
|
531
|
+
* 导出 APNG 时,设置的导出配置
|
|
532
|
+
*/
|
|
520
533
|
apngConfig?: ApngConfig;
|
|
521
534
|
};
|
|
522
535
|
|
|
@@ -987,6 +1000,7 @@ type SDKEvents = {
|
|
|
987
1000
|
'cutBoxChange': [box: Box2];
|
|
988
1001
|
'expandBoxChange': [box: Box2];
|
|
989
1002
|
'textInput': [{
|
|
1003
|
+
itemId: string;
|
|
990
1004
|
text: string;
|
|
991
1005
|
fontFamily: string;
|
|
992
1006
|
}];
|
package/dist/index.d.ts
CHANGED
|
@@ -446,6 +446,12 @@ type ExportMediaInitOptions = {
|
|
|
446
446
|
*/
|
|
447
447
|
isOutputBuffer?: boolean;
|
|
448
448
|
};
|
|
449
|
+
type MP4Config = {
|
|
450
|
+
/**
|
|
451
|
+
* @description MP4 导出时是否需要导出最后一帧 PNG
|
|
452
|
+
*/
|
|
453
|
+
isExportLastFramePNG?: boolean;
|
|
454
|
+
};
|
|
449
455
|
type GifConfig = {
|
|
450
456
|
/**
|
|
451
457
|
* @description GIF 导出时的帧率
|
|
@@ -513,10 +519,17 @@ type ExportMediaItemOptions = {
|
|
|
513
519
|
* 视频背景颜色,默认 #000000
|
|
514
520
|
*/
|
|
515
521
|
backgroundColor?: string;
|
|
522
|
+
/**
|
|
523
|
+
* 导出 MP4 时,设置的导出配置
|
|
524
|
+
*/
|
|
525
|
+
mp4Config?: MP4Config;
|
|
516
526
|
/**
|
|
517
527
|
* 导出 GIF 时,设置的导出配置
|
|
518
528
|
*/
|
|
519
529
|
gifConfig?: GifConfig;
|
|
530
|
+
/**
|
|
531
|
+
* 导出 APNG 时,设置的导出配置
|
|
532
|
+
*/
|
|
520
533
|
apngConfig?: ApngConfig;
|
|
521
534
|
};
|
|
522
535
|
|
|
@@ -987,6 +1000,7 @@ type SDKEvents = {
|
|
|
987
1000
|
'cutBoxChange': [box: Box2];
|
|
988
1001
|
'expandBoxChange': [box: Box2];
|
|
989
1002
|
'textInput': [{
|
|
1003
|
+
itemId: string;
|
|
990
1004
|
text: string;
|
|
991
1005
|
fontFamily: string;
|
|
992
1006
|
}];
|