@cesdk/engine 1.42.0-rc.0 → 1.43.0-rc.0
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.42.0-rc.0-HJFICKAF.wasm → cesdk-v1.43.0-rc.0-5AIL65QA.wasm} +0 -0
- package/assets/core/{worker-host-v1.42.0-rc.0.js → worker-host-v1.43.0-rc.0.js} +1 -1
- package/index.d.ts +37 -0
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.42.0-rc.0-XHZXX7DG.data → cesdk-v1.43.0-rc.0-XHZXX7DG.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -939,24 +939,28 @@ export declare class BlockAPI {
|
|
|
939
939
|
/**
|
|
940
940
|
* Updates the sorting order of this block and all of its manually created siblings
|
|
941
941
|
* so that the given block has the highest sorting order.
|
|
942
|
+
* If the block is parented to a track, it is first moved up in the hierarchy.
|
|
942
943
|
* @param id - The id of the block to be given the highest sorting order among its siblings.
|
|
943
944
|
*/
|
|
944
945
|
bringToFront(id: DesignBlockId): void;
|
|
945
946
|
/**
|
|
946
947
|
* Updates the sorting order of this block and all of its manually created siblings
|
|
947
948
|
* so that the given block has the lowest sorting order.
|
|
949
|
+
* If the block is parented to a track, it is first moved up in the hierarchy.
|
|
948
950
|
* @param id - The id of the block to be given the lowest sorting order among its siblings.
|
|
949
951
|
*/
|
|
950
952
|
sendToBack(id: DesignBlockId): void;
|
|
951
953
|
/**
|
|
952
954
|
* Updates the sorting order of this block and all of its superjacent siblings
|
|
953
955
|
* so that the given block has a higher sorting order than the next superjacent sibling.
|
|
956
|
+
* If the block is parented to a track, it is first moved up in the hierarchy.
|
|
954
957
|
* @param id - The id of the block to be given a higher sorting than the next superjacent sibling.
|
|
955
958
|
*/
|
|
956
959
|
bringForward(id: DesignBlockId): void;
|
|
957
960
|
/**
|
|
958
961
|
* Updates the sorting order of this block and all of its manually created and subjacent siblings
|
|
959
962
|
* so that the given block will have a lower sorting order than the next subjacent sibling.
|
|
963
|
+
* If the block is parented to a track, it is first moved up in the hierarchy.
|
|
960
964
|
* @param id - The id of the block to be given a lower sorting order than the next subjacent sibling.
|
|
961
965
|
*/
|
|
962
966
|
sendBackward(id: DesignBlockId): void;
|
|
@@ -1038,6 +1042,8 @@ export declare class BlockAPI {
|
|
|
1038
1042
|
getHeightMode(id: DesignBlockId): SizeMode;
|
|
1039
1043
|
/**
|
|
1040
1044
|
* Update a block's width and optionally maintain the crop.
|
|
1045
|
+
* If the crop is maintained, the crop values will be automatically adjusted.
|
|
1046
|
+
* The content fill mode `Cover` is only kept if the `features/transformEditsRetainCoverMode` setting is enabled, otherwise it will change to `Crop`.
|
|
1041
1047
|
* Required scope: 'layer/resize'
|
|
1042
1048
|
* @param id - The block to update.
|
|
1043
1049
|
* @param value - The new width of the block.
|
|
@@ -1053,6 +1059,8 @@ export declare class BlockAPI {
|
|
|
1053
1059
|
setWidthMode(id: DesignBlockId, mode: SizeMode): void;
|
|
1054
1060
|
/**
|
|
1055
1061
|
* Update a block's height and optionally maintain the crop.
|
|
1062
|
+
* If the crop is maintained, the crop values will be automatically adjusted.
|
|
1063
|
+
* The content fill mode `Cover` is only kept if the `features/transformEditsRetainCoverMode` setting is enabled, otherwise it will change to `Crop`.
|
|
1056
1064
|
* Required scope: 'layer/resize'
|
|
1057
1065
|
* @param id - The block to update.
|
|
1058
1066
|
* @param value - The new height of the block.
|
|
@@ -2586,6 +2594,7 @@ export declare class BlockAPI {
|
|
|
2586
2594
|
/**
|
|
2587
2595
|
* Set the playback duration of the given block in seconds.
|
|
2588
2596
|
* The duration defines for how long the block is active in the scene during playback.
|
|
2597
|
+
* If a duration is set on the page block, it becomes the duration source block.
|
|
2589
2598
|
* The duration is ignored when the scene is not in "Video" mode.
|
|
2590
2599
|
* @param id - The block whose duration should be changed.
|
|
2591
2600
|
* @param duration - The new duration in seconds.
|
|
@@ -2597,6 +2606,33 @@ export declare class BlockAPI {
|
|
|
2597
2606
|
* @returns The block's duration.
|
|
2598
2607
|
*/
|
|
2599
2608
|
getDuration(id: DesignBlockId): number;
|
|
2609
|
+
/**
|
|
2610
|
+
* Set an block as duration source so that the overall page duration is automatically determined by this.
|
|
2611
|
+
* If no defining block is set, the page duration is calculated over all children.
|
|
2612
|
+
* Only one block per page can be marked as duration source. Will automatically unmark the previously marked.
|
|
2613
|
+
* Note: This is only supported for blocks that have a duration.
|
|
2614
|
+
* @param page - The page block for which it should be enabled.
|
|
2615
|
+
* @param id - The block that should be updated.
|
|
2616
|
+
*/
|
|
2617
|
+
setPageDurationSource(page: DesignBlockId, id: DesignBlockId): void;
|
|
2618
|
+
/**
|
|
2619
|
+
* Query whether the block is a duration source block for the page.
|
|
2620
|
+
* @param id - The block whose duration source property should be queried.
|
|
2621
|
+
* @returns If the block is a duration source for a page.
|
|
2622
|
+
*/
|
|
2623
|
+
isPageDurationSource(id: DesignBlockId): boolean;
|
|
2624
|
+
/**
|
|
2625
|
+
* Returns whether the block can be marked as the element that defines the duration of the given page.
|
|
2626
|
+
* @param id - The block to query.
|
|
2627
|
+
* @returns true, if the block can be marked as the element that defines the duration of the given page.
|
|
2628
|
+
*/
|
|
2629
|
+
supportsPageDurationSource(page: DesignBlockId, id: DesignBlockId): boolean;
|
|
2630
|
+
/**
|
|
2631
|
+
* Remove the block as duration source block for the page.
|
|
2632
|
+
* If a scene or page is given as block, it is deactivated for all blocks in the scene or page.
|
|
2633
|
+
* @param id - The block whose duration source property should be removed.
|
|
2634
|
+
*/
|
|
2635
|
+
removePageDurationSource(id: DesignBlockId): void;
|
|
2600
2636
|
/**
|
|
2601
2637
|
* Returns whether the block has a time offset property.
|
|
2602
2638
|
* @param id - The block to query.
|
|
@@ -3152,6 +3188,7 @@ declare class CreativeEngine {
|
|
|
3152
3188
|
scene: SceneAPI;
|
|
3153
3189
|
variable: VariableAPI;
|
|
3154
3190
|
reactor: Reactor;
|
|
3191
|
+
version: string;
|
|
3155
3192
|
|
|
3156
3193
|
/**
|
|
3157
3194
|
* Adds and initializes a plugin to the engine.
|