@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.
- package/assets/core/{cesdk-v1.75.0-rc.0-ZUH3OXDF.wasm → cesdk-v1.76.0-nightly.20260507-3NX7AZLJ.wasm} +0 -0
- package/assets/core/worker-host-v1.76.0-nightly.20260507.js +1 -0
- package/index.d.ts +30 -0
- package/index.js +1 -1
- package/integrations/react.d.ts +30 -0
- package/package.json +1 -1
- package/assets/core/worker-host-v1.75.0-rc.0.js +0 -1
- /package/assets/core/{cesdk-v1.75.0-rc.0-MLEZSZ4D.data → cesdk-v1.76.0-nightly.20260507-MLEZSZ4D.data} +0 -0
package/integrations/react.d.ts
CHANGED
|
@@ -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
|
*
|