@cesdk/engine 1.75.0-rc.0 → 1.76.0-nightly.20260507

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.
@@ -4593,6 +4593,36 @@ declare class BlockAPI {
4593
4593
  * @returns The paragraph indices overlapping the range.
4594
4594
  */
4595
4595
  getTextParagraphIndices(id: DesignBlockId, from?: number, to?: number): number[];
4596
+ /**
4597
+ * Sets the line height multiplier for a specific paragraph or all paragraphs of a text block.
4598
+ *
4599
+ * ```javascript
4600
+ * engine.block.setTextLineHeight(text, 1.5);
4601
+ * engine.block.setTextLineHeight(text, 1.5, 0);
4602
+ * engine.block.setTextLineHeight(text, null); // reset all paragraphs to block default
4603
+ * ```
4604
+ *
4605
+ * @category Block Text
4606
+ * @param id - The text block to modify.
4607
+ * @param lineHeight - The line height multiplier, or `null` to reset to the block-level default.
4608
+ * @param paragraphIndex - The 0-based index of the paragraph to modify. Negative values apply to all paragraphs.
4609
+ */
4610
+ setTextLineHeight(id: DesignBlockId, lineHeight: number | null, paragraphIndex?: number): void;
4611
+ /**
4612
+ * Returns the line height multiplier for a specific paragraph of a text block.
4613
+ *
4614
+ * Returns the per-paragraph override if one is set, otherwise returns the block-level `lineHeight`.
4615
+ *
4616
+ * ```javascript
4617
+ * const lineHeight = engine.block.getTextLineHeight(text, 0);
4618
+ * ```
4619
+ *
4620
+ * @category Block Text
4621
+ * @param id - The text block to query.
4622
+ * @param paragraphIndex - The 0-based index of the paragraph.
4623
+ * @returns The line height multiplier for the paragraph.
4624
+ */
4625
+ getTextLineHeight(id: DesignBlockId, paragraphIndex: number): number;
4596
4626
  /**
4597
4627
  * Checks if the bold font weight can be toggled for a range of text.
4598
4628
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cesdk/engine",
3
- "version": "1.75.0-rc.0",
3
+ "version": "1.76.0-nightly.20260507",
4
4
  "main": "./index.js",
5
5
  "exports": {
6
6
  ".": {