@cesdk/node 1.64.0-rc.1 → 1.65.0-nightly.20251113

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
  *
@@ -7076,6 +7084,14 @@ export declare type ExportOptions = {
7076
7084
  * The adjustment in size of the shape of the underlayer.
7077
7085
  */
7078
7086
  underlayerOffset?: number;
7087
+ /**
7088
+ * If true, the export will include text bounding boxes that account for glyph overhangs.
7089
+ * When enabled, text blocks with glyphs that extend beyond their frame (e.g., decorative fonts with swashes)
7090
+ * will be exported with the full glyph bounds visible, preventing text clipping.
7091
+ *
7092
+ * @defaultValue false
7093
+ */
7094
+ allowTextOverhang?: boolean;
7079
7095
  /**
7080
7096
  * An abortsignal that can be used to cancel the export.
7081
7097
  */
@@ -7814,6 +7830,33 @@ export declare class SceneAPI {
7814
7830
  * @returns The current design unit.
7815
7831
  */
7816
7832
  getDesignUnit(): SceneDesignUnit;
7833
+ /**
7834
+ * Get the layout of the current scene.
7835
+ *
7836
+ * ```javascript
7837
+ * const layout = engine.scene.getLayout();
7838
+ * ```
7839
+ *
7840
+ * @category Scene Properties
7841
+ * @returns The current layout of the scene.
7842
+ */
7843
+ getLayout(): SceneLayout;
7844
+ /**
7845
+ * Set the layout of the current scene.
7846
+ * This will handle all necessary conversions including creating or destroying stack blocks
7847
+ * and reparenting pages as needed.
7848
+ *
7849
+ * When transitioning from stack layouts (VerticalStack, HorizontalStack, DepthStack) to Free layout,
7850
+ * the global positions of pages are preserved to maintain their visual appearance in the scene.
7851
+ *
7852
+ * ```javascript
7853
+ * engine.scene.setLayout('VerticalStack');
7854
+ * ```
7855
+ *
7856
+ * @category Scene Properties
7857
+ * @param layout - The new layout for the scene.
7858
+ */
7859
+ setLayout(layout: SceneLayout): void;
7817
7860
  /**
7818
7861
  * Get the sorted list of pages in the scene.
7819
7862
  *
@@ -8766,6 +8809,7 @@ declare interface UBQExportOptions {
8766
8809
  exportPdfWithUnderlayer: boolean;
8767
8810
  underlayerSpotColorName: string;
8768
8811
  underlayerOffset: number;
8812
+ allowTextOverhang: boolean;
8769
8813
  }
8770
8814
 
8771
8815
  /**
@@ -8788,6 +8832,7 @@ declare interface UBQExportVideoOptions {
8788
8832
  useTargetSize: boolean;
8789
8833
  targetWidth: number;
8790
8834
  targetHeight: number;
8835
+ allowTextOverhang: boolean;
8791
8836
  }
8792
8837
 
8793
8838
  /**
@@ -8960,6 +9005,14 @@ export declare type VideoExportOptions = {
8960
9005
  * size entirely while maintaining its aspect ratio.
8961
9006
  */
8962
9007
  targetHeight?: number;
9008
+ /**
9009
+ * If true, the export will include text bounding boxes that account for glyph overhangs.
9010
+ * When enabled, text blocks with glyphs that extend beyond their frame (e.g., decorative fonts with swashes)
9011
+ * will be exported with the full glyph bounds visible, preventing text clipping.
9012
+ *
9013
+ * @defaultValue false
9014
+ */
9015
+ allowTextOverhang?: boolean;
8963
9016
  /**
8964
9017
  * An abortsignal that can be used to cancel the export.
8965
9018
  */