@cesdk/engine 1.55.0-nightly.20250627 → 1.55.0-rc.1
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/assets/core/{cesdk-v1.55.0-nightly.20250627-T4JZRWJD.wasm → cesdk-v1.55.0-rc.1-FLL5VIV3.wasm} +0 -0
- package/assets/core/worker-host-v1.55.0-rc.1.js +1 -0
- package/index.d.ts +21 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/assets/core/worker-host-v1.55.0-nightly.20250627.js +0 -1
- /package/assets/core/{cesdk-v1.55.0-nightly.20250627-44YCFRT6.data → cesdk-v1.55.0-rc.1-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -682,6 +682,10 @@ export declare class BlockAPI {
|
|
|
682
682
|
/**
|
|
683
683
|
* Exports a design block element as a file of the given mime type.
|
|
684
684
|
* Performs an internal update to resolve the final layout for the blocks.
|
|
685
|
+
*
|
|
686
|
+
* Removes all pixels that exactly match the given RGB color and replaces them with transparency.
|
|
687
|
+
* The output includes two files: the masked image and the mask itself.
|
|
688
|
+
*
|
|
685
689
|
* @param handle - The design block element to export.
|
|
686
690
|
* @param mimeType - The mime type of the output file.
|
|
687
691
|
* @param maskColorR - The red component of the special color mask color.
|
|
@@ -3056,7 +3060,8 @@ export declare class BlockAPI {
|
|
|
3056
3060
|
getVideoHeight(id: DesignBlockId): number;
|
|
3057
3061
|
/**
|
|
3058
3062
|
* Generate a sequence of thumbnails for the given video fill or design block.
|
|
3059
|
-
* Note:
|
|
3063
|
+
* Note: There can only be one thumbnail generation request in progress for a given block.
|
|
3064
|
+
* Note: During playback, the thumbnail generation will be paused.
|
|
3060
3065
|
* @param id - The video fill or design block.
|
|
3061
3066
|
* @param thumbnailHeight - The height of a thumbnail. The width will be calculated from the video aspect ratio.
|
|
3062
3067
|
* @param timeBegin - The time in seconds relative to the time offset of the design block at which the thumbnail sequence should start.
|
|
@@ -3070,6 +3075,7 @@ export declare class BlockAPI {
|
|
|
3070
3075
|
* Generate a thumbnail sequence for the given audio block or video fill.
|
|
3071
3076
|
* A thumbnail in this case is a chunk of samples in the range of 0 to 1.
|
|
3072
3077
|
* In case stereo data is requested, the samples are interleaved, starting with the left channel.
|
|
3078
|
+
* Note: During playback, the thumbnail generation will be paused.
|
|
3073
3079
|
* @param id - The audio block or video fill.
|
|
3074
3080
|
* @param samplesPerChunk - The number of samples per chunk. `onChunk` is called when this many samples are ready.
|
|
3075
3081
|
* @param timeBegin - The time in seconds at which the thumbnail sequence should start.
|
|
@@ -3425,6 +3431,16 @@ declare class CreativeEngine {
|
|
|
3425
3431
|
*/
|
|
3426
3432
|
unstable_setVideoExportInactivityTimeout(timeout: number): void;
|
|
3427
3433
|
|
|
3434
|
+
/**
|
|
3435
|
+
* Configure the timeout for block-exports in WebWorkers.
|
|
3436
|
+
* If exporting a block hangs because resources take too long to initialize,
|
|
3437
|
+
* the export will be aborted after this many ms.
|
|
3438
|
+
*
|
|
3439
|
+
* @param timeout - Timeout in milliseconds (default: 10 000)
|
|
3440
|
+
* @experimental This API is experimental and may change or be removed in future versions.
|
|
3441
|
+
*/
|
|
3442
|
+
unstable_setExportInactivityTimeout(timeout: number): void;
|
|
3443
|
+
|
|
3428
3444
|
|
|
3429
3445
|
|
|
3430
3446
|
/**
|
|
@@ -4188,6 +4204,10 @@ export declare type ExportOptions = {
|
|
|
4188
4204
|
* The adjustment in size of the shape of the underlayer.
|
|
4189
4205
|
*/
|
|
4190
4206
|
underlayerOffset?: number;
|
|
4207
|
+
/**
|
|
4208
|
+
* An abortsignal that can be used to cancel the export.
|
|
4209
|
+
*/
|
|
4210
|
+
abortSignal?: AbortSignal;
|
|
4191
4211
|
};
|
|
4192
4212
|
|
|
4193
4213
|
/** @public */
|