@cesdk/engine 1.57.0-nightly.20250721 → 1.57.0-nightly.20250722
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.57.0-nightly.20250721-UOUJU5XU.wasm → cesdk-v1.57.0-nightly.20250722-GSM6VI4P.wasm} +0 -0
- package/assets/core/{worker-host-v1.57.0-nightly.20250721.js → worker-host-v1.57.0-nightly.20250722.js} +1 -1
- package/index.d.ts +13 -0
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.57.0-nightly.20250721-44YCFRT6.data → cesdk-v1.57.0-nightly.20250722-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -1092,6 +1092,8 @@ export declare type BlendMode = 'PassThrough' | 'Normal' | 'Darken' | 'Multiply'
|
|
|
1092
1092
|
* Manage permissions and capabilities per block.
|
|
1093
1093
|
* @categoryDescription Block Animations
|
|
1094
1094
|
* Create and manage animations and timeline-based effects.
|
|
1095
|
+
* @categoryDescription Helper
|
|
1096
|
+
* Convenient high-level functions that combine multiple operations into single, easy-to-use methods for common tasks like adding media, applying effects, and positioning blocks.
|
|
1095
1097
|
*/
|
|
1096
1098
|
export declare class BlockAPI {
|
|
1097
1099
|
#private;
|
|
@@ -1985,6 +1987,8 @@ export declare class BlockAPI {
|
|
|
1985
1987
|
getHeightMode(id: DesignBlockId): SizeMode;
|
|
1986
1988
|
/**
|
|
1987
1989
|
* Update a block's size.
|
|
1990
|
+
*
|
|
1991
|
+
* @category Helper
|
|
1988
1992
|
* @param id - The block to update.
|
|
1989
1993
|
* @param width - The new width of the block.
|
|
1990
1994
|
* @param height - The new height of the block.
|
|
@@ -1998,6 +2002,8 @@ export declare class BlockAPI {
|
|
|
1998
2002
|
}): void;
|
|
1999
2003
|
/**
|
|
2000
2004
|
* Update a block's position.
|
|
2005
|
+
*
|
|
2006
|
+
* @category Helper
|
|
2001
2007
|
* @param id - The block to update.
|
|
2002
2008
|
* @param x - The new x position of the block.
|
|
2003
2009
|
* @param y - The new y position of the block.
|
|
@@ -4847,6 +4853,7 @@ export declare class BlockAPI {
|
|
|
4847
4853
|
* Adds an image to the current page. The image will be automatically loaded
|
|
4848
4854
|
* and sized appropriately. In Video mode, timeline and animation options can be applied.
|
|
4849
4855
|
*
|
|
4856
|
+
* @category Helper
|
|
4850
4857
|
* @param url - URL or path to the image file
|
|
4851
4858
|
* @param options - Configuration options for the image
|
|
4852
4859
|
* @returns Promise that resolves to the ID of the created image block
|
|
@@ -4858,6 +4865,7 @@ export declare class BlockAPI {
|
|
|
4858
4865
|
* according to the provided parameters. Timeline and animation effects can be applied.
|
|
4859
4866
|
* Only works in Video mode, not in Design mode.
|
|
4860
4867
|
*
|
|
4868
|
+
* @category Helper
|
|
4861
4869
|
* @param url - URL or path to the video file
|
|
4862
4870
|
* @param width - Width of the video in scene design units
|
|
4863
4871
|
* @param height - Height of the video in scene design units
|
|
@@ -4869,6 +4877,7 @@ export declare class BlockAPI {
|
|
|
4869
4877
|
/**
|
|
4870
4878
|
* Applies an animation to a block.
|
|
4871
4879
|
*
|
|
4880
|
+
* @category Helper
|
|
4872
4881
|
* @param block - The ID of the block to apply the animation to
|
|
4873
4882
|
* @param animation - The animation configuration options
|
|
4874
4883
|
*/
|
|
@@ -4876,6 +4885,7 @@ export declare class BlockAPI {
|
|
|
4876
4885
|
/**
|
|
4877
4886
|
* Applies a drop shadow effect to any block.
|
|
4878
4887
|
*
|
|
4888
|
+
* @category Helper
|
|
4879
4889
|
* @param block - The ID of the block to apply the shadow to
|
|
4880
4890
|
* @param options - Shadow configuration options. If not provided, enables shadow with default settings
|
|
4881
4891
|
*/
|
|
@@ -4884,6 +4894,7 @@ export declare class BlockAPI {
|
|
|
4884
4894
|
* Generates a thumbnail image of the scene at a specific time.
|
|
4885
4895
|
* Only works in Video mode, not in Design mode.
|
|
4886
4896
|
*
|
|
4897
|
+
* @category Helper
|
|
4887
4898
|
* @param height - Height of the thumbnail in scene design units (maximum 512)
|
|
4888
4899
|
* @param time - Time position in seconds to capture the thumbnail
|
|
4889
4900
|
* @returns Promise that resolves to a Blob containing the PNG thumbnail image
|
|
@@ -4895,6 +4906,7 @@ export declare class BlockAPI {
|
|
|
4895
4906
|
* The background track is the track that determines the page duration.
|
|
4896
4907
|
* Only works in Video mode, not in Design mode.
|
|
4897
4908
|
*
|
|
4909
|
+
* @category Helper
|
|
4898
4910
|
* @returns The ID of the background track, or null if none exists
|
|
4899
4911
|
* @throws Error if called in Design mode
|
|
4900
4912
|
*/
|
|
@@ -4905,6 +4917,7 @@ export declare class BlockAPI {
|
|
|
4905
4917
|
* certain elements to be part of the background layer.
|
|
4906
4918
|
* The background track is the track that determines the page duration.
|
|
4907
4919
|
*
|
|
4920
|
+
* @category Helper
|
|
4908
4921
|
* @param block - The ID of the block to move to the background track
|
|
4909
4922
|
* @throws Error if no background track is found
|
|
4910
4923
|
*/
|