@cesdk/node 1.76.0-nightly.20260513 → 1.76.0-nightly.20260514

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
@@ -4902,6 +4902,18 @@ export declare class BlockAPI {
4902
4902
  * @returns The text content of the line.
4903
4903
  */
4904
4904
  getTextVisibleLineContent(id: DesignBlockId, lineIndex: number): string;
4905
+ /**
4906
+ * Returns the tight ink-paint bounding box for each grapheme in the range.
4907
+ * One entry per grapheme in [from, to). Non-printable graphemes get a zero-rect.
4908
+ * Coordinates are in global scene space.
4909
+ *
4910
+ * @category Block Text
4911
+ * @param id - The text block to query.
4912
+ * @param from - Start grapheme index (-1 = start of cursor selection or 0).
4913
+ * @param to - End grapheme index (-1 = end of cursor selection or text length).
4914
+ * @returns Array of CharacterInkBox, one per grapheme in range, in text order.
4915
+ */
4916
+ getTextCharacterInkBoxes(id: DesignBlockId, from?: number, to?: number): CharacterInkBox[];
4905
4917
  /**
4906
4918
  * Gets the effective horizontal alignment of a text block.
4907
4919
  * If the alignment is set to Auto, this returns the resolved alignment (Left or Right)
@@ -6088,6 +6100,23 @@ export declare type CaptionVerticalAlignment = (typeof CaptionVerticalAlignmentV
6088
6100
  /** @public */
6089
6101
  export declare const CaptionVerticalAlignmentValues: readonly ["Top", "Bottom", "Center"];
6090
6102
 
6103
+ /**
6104
+ * Tight ink-paint bounding box of a single grapheme, in global scene coordinates.
6105
+ * @public
6106
+ */
6107
+ export declare interface CharacterInkBox {
6108
+ /** Global X of the tight ink rect (left edge, Y-down scene space). */
6109
+ x: number;
6110
+ /** Global Y of the tight ink rect (top edge, Y-down scene space). */
6111
+ y: number;
6112
+ /** Width of the tight ink rect. */
6113
+ width: number;
6114
+ /** Height of the tight ink rect. */
6115
+ height: number;
6116
+ /** Global Y of the glyph baseline (needed for underline/cursor overlays). */
6117
+ baselineY: number;
6118
+ }
6119
+
6091
6120
  /**
6092
6121
  * Represents a color in the CMYK color space.
6093
6122
  *