@cesdk/engine 1.55.0-rc.0 → 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-rc.0-36AZY5S7.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 +18 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/assets/core/worker-host-v1.55.0-rc.0.js +0 -1
- /package/assets/core/{cesdk-v1.55.0-rc.0-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.
|
|
@@ -3427,6 +3431,16 @@ declare class CreativeEngine {
|
|
|
3427
3431
|
*/
|
|
3428
3432
|
unstable_setVideoExportInactivityTimeout(timeout: number): void;
|
|
3429
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
|
+
|
|
3430
3444
|
|
|
3431
3445
|
|
|
3432
3446
|
/**
|
|
@@ -4190,6 +4204,10 @@ export declare type ExportOptions = {
|
|
|
4190
4204
|
* The adjustment in size of the shape of the underlayer.
|
|
4191
4205
|
*/
|
|
4192
4206
|
underlayerOffset?: number;
|
|
4207
|
+
/**
|
|
4208
|
+
* An abortsignal that can be used to cancel the export.
|
|
4209
|
+
*/
|
|
4210
|
+
abortSignal?: AbortSignal;
|
|
4193
4211
|
};
|
|
4194
4212
|
|
|
4195
4213
|
/** @public */
|