@cesdk/engine 1.42.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/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;
@@ -2590,6 +2594,7 @@ export declare class BlockAPI {
2590
2594
  /**
2591
2595
  * Set the playback duration of the given block in seconds.
2592
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.
2593
2598
  * The duration is ignored when the scene is not in "Video" mode.
2594
2599
  * @param id - The block whose duration should be changed.
2595
2600
  * @param duration - The new duration in seconds.
@@ -2601,6 +2606,33 @@ export declare class BlockAPI {
2601
2606
  * @returns The block's duration.
2602
2607
  */
2603
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;
2604
2636
  /**
2605
2637
  * Returns whether the block has a time offset property.
2606
2638
  * @param id - The block to query.
@@ -3156,6 +3188,7 @@ declare class CreativeEngine {
3156
3188
  scene: SceneAPI;
3157
3189
  variable: VariableAPI;
3158
3190
  reactor: Reactor;
3191
+ version: string;
3159
3192
 
3160
3193
  /**
3161
3194
  * Adds and initializes a plugin to the engine.