@cesdk/node 1.63.0-nightly.20251024 → 1.64.0-nightly.20251026

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
@@ -135,8 +135,8 @@ export declare type ApplicationMimeType = Extract<MimeType_2, 'application/octet
135
135
  export declare interface ApplyAssetOptions {
136
136
  /**
137
137
  * How the asset should be placed in the scene.
138
- * - 'clip': Foreground clip placed at playhead
139
- * - 'overlay': Background overlay placed on background track
138
+ * - 'clip': Background clip placed on background track
139
+ * - 'overlay': Foreground overlay placed at playhead
140
140
  */
141
141
  clipType?: 'clip' | 'overlay';
142
142
  /**
@@ -554,7 +554,7 @@ export declare class AssetAPI {
554
554
  *
555
555
  * @example
556
556
  * ```javascript
557
- * // Background overlay placement
557
+ * // Foreground overlay placement
558
558
  * await engine.asset.apply('asset-source-id', assetResult.assets[0], {
559
559
  * clipType: 'overlay'
560
560
  * });
@@ -6716,6 +6716,37 @@ export declare class EditorAPI {
6716
6716
  * @param enabled - Whether or not the block should show highlighting when selected or hovered.
6717
6717
  */
6718
6718
  setHighlightingEnabled(id: DesignBlockId, enabled: boolean): void;
6719
+ /**
6720
+ * Set global safe area insets for UI overlays.
6721
+ *
6722
+ * Safe area insets define UI-safe regions by specifying padding from screen edges.
6723
+ * These insets are automatically applied to all camera operations (zoom, pan, clamping)
6724
+ * to ensure important content remains visible when UI elements overlap the viewport edges.
6725
+ * Set to zero to disable (default state).
6726
+ *
6727
+ * @param insets - The inset values in CSS pixels (device-independent)
6728
+ * @public
6729
+ * @category Viewport
6730
+ */
6731
+ setSafeAreaInsets(insets: {
6732
+ left?: number;
6733
+ top?: number;
6734
+ right?: number;
6735
+ bottom?: number;
6736
+ }): void;
6737
+ /**
6738
+ * Get the current global safe area insets configuration.
6739
+ *
6740
+ * @returns The current inset values in CSS pixels (device-independent)
6741
+ * @public
6742
+ * @category Viewport
6743
+ */
6744
+ getSafeAreaInsets(): {
6745
+ left: number;
6746
+ top: number;
6747
+ right: number;
6748
+ bottom: number;
6749
+ };
6719
6750
  /**
6720
6751
  * Checks whether the block can currently be selected.
6721
6752
  *