@cesdk/node 1.9.0 → 1.9.2
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.
|
File without changes
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -426,7 +426,20 @@ export declare class BlockAPI {
|
|
|
426
426
|
* @returns A promise that resolves with an array of the exported image and mask or is rejected with an error.
|
|
427
427
|
*/
|
|
428
428
|
exportWithColorMask(handle: DesignBlockId, mimeType: MimeType_2 | undefined, maskColorR: number, maskColorG: number, maskColorB: number, options?: ExportOptions): Promise<Blob[]>;
|
|
429
|
-
|
|
429
|
+
/**
|
|
430
|
+
* Exports a design block as a video file of the given mime type.
|
|
431
|
+
* Note: The export will run across multiple iterations of the update loop. In each iteration a frame is scheduled for encoding.
|
|
432
|
+
* @param block - The design block to export.
|
|
433
|
+
* @param timeOffset - The time offset in seconds of the scene's timeline from which the video will start.
|
|
434
|
+
* @param duration - The duration in seconds of the final video.
|
|
435
|
+
* @param mimeType - The mime type of the output video file.
|
|
436
|
+
* @param resolutionWidth - The target video width in pixel.
|
|
437
|
+
* @param resolutionHeight - The target video height in pixel.
|
|
438
|
+
* @param framerate - The target framerate in Hz.
|
|
439
|
+
* @param progressCallback - A callback which reports on the progress of the export. It informs the receiver of the current frame index, which currently gets exported and the total frame count.
|
|
440
|
+
* @returns A promise that resolves with video blob or is rejected with an error.
|
|
441
|
+
*/
|
|
442
|
+
exportVideo(handle: DesignBlockId, timeOffset: number, duration: number, mimeType: MimeType_2 | undefined, resolutionWidth: number, resolutionHeight: number, framerate: number, progressCallback: (numberOfRenderedFrames: number, numberOfEncodedFrames: number, totalNumberOfFrames: number) => void): Promise<Blob>;
|
|
430
443
|
/**
|
|
431
444
|
* Loads existing blocks from the given string.
|
|
432
445
|
* The blocks are not attached by default and won't be visible until attached to a page or the scene.
|
|
@@ -1995,6 +2008,13 @@ export declare interface Configuration {
|
|
|
1995
2008
|
* and always create a webgl1 context.
|
|
1996
2009
|
*/
|
|
1997
2010
|
forceWebGL1?: boolean;
|
|
2011
|
+
/**
|
|
2012
|
+
* Whether the engine should automatically choose an audio output device or
|
|
2013
|
+
* should not output audio at all.
|
|
2014
|
+
*
|
|
2015
|
+
* If not configured the fallback value is 'auto'.
|
|
2016
|
+
*/
|
|
2017
|
+
audioOutput?: 'auto' | 'none';
|
|
1998
2018
|
}
|
|
1999
2019
|
|
|
2000
2020
|
/**
|