@cesdk/engine 1.64.0-rc.1 → 1.65.0-nightly.20251112

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
@@ -4427,6 +4427,14 @@ export declare class BlockAPI {
4427
4427
  * @returns The selected UTF-16 range or `{ from: -1, to: -1 }` if no text block is being edited.
4428
4428
  */
4429
4429
  getTextCursorRange(): Range_2;
4430
+ /**
4431
+ * Sets the text cursor range (selection) within the text block that is currently being edited.
4432
+ *
4433
+ * @category Block Text
4434
+ * @param range - The UTF-16 range to set as the selection. If `from` equals `to`, the cursor is positioned at that index. If `from` and `to` are set to -1, the whole text is selected.
4435
+ * @throws Error if no text block is currently being edited or if the range is invalid.
4436
+ */
4437
+ setTextCursorRange(range: Range_2): void;
4430
4438
  /**
4431
4439
  * Gets the number of visible lines in a text block.
4432
4440
  *
@@ -8337,6 +8345,33 @@ export declare class SceneAPI {
8337
8345
  * @returns The current design unit.
8338
8346
  */
8339
8347
  getDesignUnit(): SceneDesignUnit;
8348
+ /**
8349
+ * Get the layout of the current scene.
8350
+ *
8351
+ * ```javascript
8352
+ * const layout = engine.scene.getLayout();
8353
+ * ```
8354
+ *
8355
+ * @category Scene Properties
8356
+ * @returns The current layout of the scene.
8357
+ */
8358
+ getLayout(): SceneLayout;
8359
+ /**
8360
+ * Set the layout of the current scene.
8361
+ * This will handle all necessary conversions including creating or destroying stack blocks
8362
+ * and reparenting pages as needed.
8363
+ *
8364
+ * When transitioning from stack layouts (VerticalStack, HorizontalStack, DepthStack) to Free layout,
8365
+ * the global positions of pages are preserved to maintain their visual appearance in the scene.
8366
+ *
8367
+ * ```javascript
8368
+ * engine.scene.setLayout('VerticalStack');
8369
+ * ```
8370
+ *
8371
+ * @category Scene Properties
8372
+ * @param layout - The new layout for the scene.
8373
+ */
8374
+ setLayout(layout: SceneLayout): void;
8340
8375
  /**
8341
8376
  * Get the sorted list of pages in the scene.
8342
8377
  *