@cesdk/node 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.
|
Binary file
|
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
|
*
|
|
@@ -7814,6 +7822,33 @@ export declare class SceneAPI {
|
|
|
7814
7822
|
* @returns The current design unit.
|
|
7815
7823
|
*/
|
|
7816
7824
|
getDesignUnit(): SceneDesignUnit;
|
|
7825
|
+
/**
|
|
7826
|
+
* Get the layout of the current scene.
|
|
7827
|
+
*
|
|
7828
|
+
* ```javascript
|
|
7829
|
+
* const layout = engine.scene.getLayout();
|
|
7830
|
+
* ```
|
|
7831
|
+
*
|
|
7832
|
+
* @category Scene Properties
|
|
7833
|
+
* @returns The current layout of the scene.
|
|
7834
|
+
*/
|
|
7835
|
+
getLayout(): SceneLayout;
|
|
7836
|
+
/**
|
|
7837
|
+
* Set the layout of the current scene.
|
|
7838
|
+
* This will handle all necessary conversions including creating or destroying stack blocks
|
|
7839
|
+
* and reparenting pages as needed.
|
|
7840
|
+
*
|
|
7841
|
+
* When transitioning from stack layouts (VerticalStack, HorizontalStack, DepthStack) to Free layout,
|
|
7842
|
+
* the global positions of pages are preserved to maintain their visual appearance in the scene.
|
|
7843
|
+
*
|
|
7844
|
+
* ```javascript
|
|
7845
|
+
* engine.scene.setLayout('VerticalStack');
|
|
7846
|
+
* ```
|
|
7847
|
+
*
|
|
7848
|
+
* @category Scene Properties
|
|
7849
|
+
* @param layout - The new layout for the scene.
|
|
7850
|
+
*/
|
|
7851
|
+
setLayout(layout: SceneLayout): void;
|
|
7817
7852
|
/**
|
|
7818
7853
|
* Get the sorted list of pages in the scene.
|
|
7819
7854
|
*
|