@cesdk/engine 1.60.0-rc.0 → 1.61.0-nightly.20250906

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
@@ -4724,6 +4724,23 @@ export declare class BlockAPI {
4724
4724
  * @returns The trim length of the object in seconds.
4725
4725
  */
4726
4726
  getTrimLength(id: DesignBlockId): number;
4727
+ /**
4728
+ * Splits a block at the specified time.
4729
+ *
4730
+ * The original block will be trimmed to end at the split time, and the returned duplicate
4731
+ * will start at the split time and continue to the original end time.
4732
+ *
4733
+ * ```javascript
4734
+ * const duplicate = engine.block.split(video, 10.0);
4735
+ * ```
4736
+ *
4737
+ * @category Block
4738
+ * @param id - The block to split.
4739
+ * @param atTime - The time (in seconds) relative to the block's time offset where the split should occur.
4740
+ * @param options - The options for configuring the split operation.
4741
+ * @returns The newly created second half of the split block.
4742
+ */
4743
+ split(id: DesignBlockId, atTime: number, options?: SplitOptions_2): DesignBlockId;
4727
4744
  /**
4728
4745
  * Gets the total duration of a scene in video mode.
4729
4746
  *
@@ -8391,6 +8408,45 @@ export declare interface Source {
8391
8408
  height: number;
8392
8409
  }
8393
8410
 
8411
+ /**
8412
+ * Specifies options for configuring block split operations.
8413
+ *
8414
+ * The `SplitOptions` interface provides a set of properties that control the
8415
+ * behavior of the block splitting operation.
8416
+ *
8417
+ * @categoryDescription Split Options
8418
+ * Methods for configuring block split operations.
8419
+ *
8420
+ * @public
8421
+ */
8422
+ declare interface SplitOptions {
8423
+ attachToParent: boolean;
8424
+ createParentTrackIfNeeded: boolean;
8425
+ selectNewBlock: boolean;
8426
+ }
8427
+
8428
+ /**
8429
+ * Options for configuring block split operations.
8430
+ * @public
8431
+ */
8432
+ declare type SplitOptions_2 = {
8433
+ /**
8434
+ * Whether or not the new block will be attached to the same parent as the original.
8435
+ * @defaultValue true
8436
+ */
8437
+ attachToParent?: boolean;
8438
+ /**
8439
+ * Whether to create a parent track if needed and add both blocks to it. Only used when attachToParent is true.
8440
+ * @defaultValue false
8441
+ */
8442
+ createParentTrackIfNeeded?: boolean;
8443
+ /**
8444
+ * Whether to select the newly created block after splitting.
8445
+ * @defaultValue true
8446
+ */
8447
+ selectNewBlock?: boolean;
8448
+ };
8449
+
8394
8450
  /**
8395
8451
  * Represents a spot color value.
8396
8452
  *