@cesdk/engine 1.60.0-rc.0 → 1.60.0-rc.1

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): DesignBlockId;
4727
4744
  /**
4728
4745
  * Gets the total duration of a scene in video mode.
4729
4746
  *
@@ -8174,6 +8191,8 @@ export declare interface Settings {
8174
8191
  'page/title/separator': string;
8175
8192
  /** The URI for the fallback font used when glyphs are missing. */
8176
8193
  fallbackFontUri: string;
8194
+ /** The supported MIME types for file uploads. */
8195
+ 'upload/supportedMimeTypes': string;
8177
8196
  /** Scale-down limit for blocks in screen pixels when scaling with gizmos or touch gestures. */
8178
8197
  'controlGizmo/blockScaleDownLimit': number;
8179
8198
  /** The threshold distance in pixels for position snapping. */
@@ -8391,6 +8410,45 @@ export declare interface Source {
8391
8410
  height: number;
8392
8411
  }
8393
8412
 
8413
+ /**
8414
+ * Options for configuring block split operations.
8415
+ * @public
8416
+ */
8417
+ export declare type SplitOptions = {
8418
+ /**
8419
+ * Whether or not the new block will be attached to the same parent as the original.
8420
+ * @defaultValue true
8421
+ */
8422
+ attachToParent?: boolean;
8423
+ /**
8424
+ * Whether to create a parent track if needed and add both blocks to it. Only used when attachToParent is true.
8425
+ * @defaultValue false
8426
+ */
8427
+ createParentTrackIfNeeded?: boolean;
8428
+ /**
8429
+ * Whether to select the newly created block after splitting.
8430
+ * @defaultValue true
8431
+ */
8432
+ selectNewBlock?: boolean;
8433
+ };
8434
+
8435
+ /**
8436
+ * Specifies options for configuring block split operations.
8437
+ *
8438
+ * The `SplitOptions` interface provides a set of properties that control the
8439
+ * behavior of the block splitting operation.
8440
+ *
8441
+ * @categoryDescription Split Options
8442
+ * Methods for configuring block split operations.
8443
+ *
8444
+ * @public
8445
+ */
8446
+ declare interface SplitOptions_2 {
8447
+ attachToParent: boolean;
8448
+ createParentTrackIfNeeded: boolean;
8449
+ selectNewBlock: boolean;
8450
+ }
8451
+
8394
8452
  /**
8395
8453
  * Represents a spot color value.
8396
8454
  *