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

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
  *
@@ -6156,6 +6173,7 @@ export declare class EditorAPI {
6156
6173
  getSetting<K extends SettingKey>(keypath: OptionalPrefix<K>): SettingValueType<K>;
6157
6174
 
6158
6175
 
6176
+
6159
6177
  /**
6160
6178
  * Set a boolean setting value.
6161
6179
  *
@@ -8160,6 +8178,10 @@ export declare interface Settings {
8160
8178
  useSystemFontFallback: boolean;
8161
8179
  /** Whether to force the use of system emojis instead of custom emoji fonts. */
8162
8180
  forceSystemEmojis: boolean;
8181
+ /** Whether to select the page when a block is deselected and no other blocks are selected. */
8182
+ 'page/selectWhenNoBlocksSelected': boolean;
8183
+ /** Clamp thumbnail texture sizes to the platform's GPU texture limit. */
8184
+ clampThumbnailTextureSizes: boolean;
8163
8185
  /** The root directory used when resolving relative paths or accessing bundle:// URIs. */
8164
8186
  basePath: string;
8165
8187
  /** The URI for the default emoji font file. */
@@ -8174,6 +8196,8 @@ export declare interface Settings {
8174
8196
  'page/title/separator': string;
8175
8197
  /** The URI for the fallback font used when glyphs are missing. */
8176
8198
  fallbackFontUri: string;
8199
+ /** The supported MIME types for file uploads. */
8200
+ 'upload/supportedMimeTypes': string;
8177
8201
  /** Scale-down limit for blocks in screen pixels when scaling with gizmos or touch gestures. */
8178
8202
  'controlGizmo/blockScaleDownLimit': number;
8179
8203
  /** The threshold distance in pixels for position snapping. */
@@ -8216,6 +8240,8 @@ export declare interface Settings {
8216
8240
  snappingGuideColor: Color;
8217
8241
  /** The highlight color for text variables. */
8218
8242
  textVariableHighlightColor: Color;
8243
+ /** The fill color for handles. */
8244
+ handleFillColor: Color;
8219
8245
  /** The selection mode for double-click: Direct selects the clicked element, Hierarchical traverses the hierarchy. */
8220
8246
  doubleClickSelectionMode: 'Direct' | 'Hierarchical';
8221
8247
  /** The action performed for pinch gestures: None, Zoom, or Scale. */
@@ -8238,6 +8264,11 @@ export declare interface Settings {
8238
8264
 
8239
8265
 
8240
8266
 
8267
+
8268
+
8269
+
8270
+
8271
+
8241
8272
  }
8242
8273
 
8243
8274
  /**
@@ -8391,6 +8422,45 @@ export declare interface Source {
8391
8422
  height: number;
8392
8423
  }
8393
8424
 
8425
+ /**
8426
+ * Options for configuring block split operations.
8427
+ * @public
8428
+ */
8429
+ export declare type SplitOptions = {
8430
+ /**
8431
+ * Whether or not the new block will be attached to the same parent as the original.
8432
+ * @defaultValue true
8433
+ */
8434
+ attachToParent?: boolean;
8435
+ /**
8436
+ * Whether to create a parent track if needed and add both blocks to it. Only used when attachToParent is true.
8437
+ * @defaultValue false
8438
+ */
8439
+ createParentTrackIfNeeded?: boolean;
8440
+ /**
8441
+ * Whether to select the newly created block after splitting.
8442
+ * @defaultValue true
8443
+ */
8444
+ selectNewBlock?: boolean;
8445
+ };
8446
+
8447
+ /**
8448
+ * Specifies options for configuring block split operations.
8449
+ *
8450
+ * The `SplitOptions` interface provides a set of properties that control the
8451
+ * behavior of the block splitting operation.
8452
+ *
8453
+ * @categoryDescription Split Options
8454
+ * Methods for configuring block split operations.
8455
+ *
8456
+ * @public
8457
+ */
8458
+ declare interface SplitOptions_2 {
8459
+ attachToParent: boolean;
8460
+ createParentTrackIfNeeded: boolean;
8461
+ selectNewBlock: boolean;
8462
+ }
8463
+
8394
8464
  /**
8395
8465
  * Represents a spot color value.
8396
8466
  *