@cesdk/engine 1.60.0-rc.0 → 1.61.0-nightly.20250907
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.60.0-rc.0-PVJODEZF.wasm → cesdk-v1.61.0-nightly.20250907-XQ2NEXP4.wasm} +0 -0
- package/assets/core/{worker-host-v1.60.0-rc.0.js → worker-host-v1.61.0-nightly.20250907.js} +1 -1
- package/index.d.ts +56 -0
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.60.0-rc.0-44YCFRT6.data → cesdk-v1.61.0-nightly.20250907-44YCFRT6.data} +0 -0
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): 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
|
+
* Options for configuring block split operations.
|
|
8413
|
+
* @public
|
|
8414
|
+
*/
|
|
8415
|
+
export declare type SplitOptions = {
|
|
8416
|
+
/**
|
|
8417
|
+
* Whether or not the new block will be attached to the same parent as the original.
|
|
8418
|
+
* @defaultValue true
|
|
8419
|
+
*/
|
|
8420
|
+
attachToParent?: boolean;
|
|
8421
|
+
/**
|
|
8422
|
+
* Whether to create a parent track if needed and add both blocks to it. Only used when attachToParent is true.
|
|
8423
|
+
* @defaultValue false
|
|
8424
|
+
*/
|
|
8425
|
+
createParentTrackIfNeeded?: boolean;
|
|
8426
|
+
/**
|
|
8427
|
+
* Whether to select the newly created block after splitting.
|
|
8428
|
+
* @defaultValue true
|
|
8429
|
+
*/
|
|
8430
|
+
selectNewBlock?: boolean;
|
|
8431
|
+
};
|
|
8432
|
+
|
|
8433
|
+
/**
|
|
8434
|
+
* Specifies options for configuring block split operations.
|
|
8435
|
+
*
|
|
8436
|
+
* The `SplitOptions` interface provides a set of properties that control the
|
|
8437
|
+
* behavior of the block splitting operation.
|
|
8438
|
+
*
|
|
8439
|
+
* @categoryDescription Split Options
|
|
8440
|
+
* Methods for configuring block split operations.
|
|
8441
|
+
*
|
|
8442
|
+
* @public
|
|
8443
|
+
*/
|
|
8444
|
+
declare interface SplitOptions_2 {
|
|
8445
|
+
attachToParent: boolean;
|
|
8446
|
+
createParentTrackIfNeeded: boolean;
|
|
8447
|
+
selectNewBlock: boolean;
|
|
8448
|
+
}
|
|
8449
|
+
|
|
8394
8450
|
/**
|
|
8395
8451
|
* Represents a spot color value.
|
|
8396
8452
|
*
|