@cesdk/engine 1.75.0-rc.1 → 1.76.0-nightly.20260508
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.1-OFMPLKGW.wasm → cesdk-v1.76.0-nightly.20260508-HYE7IBM7.wasm} +0 -0
- package/assets/core/worker-host-v1.76.0-nightly.20260508.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.1.js +0 -1
- /package/assets/core/{cesdk-v1.75.0-rc.1-MLEZSZ4D.data → cesdk-v1.76.0-nightly.20260508-MLEZSZ4D.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -4602,6 +4602,36 @@ export declare class BlockAPI {
|
|
|
4602
4602
|
* @returns The paragraph indices overlapping the range.
|
|
4603
4603
|
*/
|
|
4604
4604
|
getTextParagraphIndices(id: DesignBlockId, from?: number, to?: number): number[];
|
|
4605
|
+
/**
|
|
4606
|
+
* Sets the line height multiplier for a specific paragraph or all paragraphs of a text block.
|
|
4607
|
+
*
|
|
4608
|
+
* ```javascript
|
|
4609
|
+
* engine.block.setTextLineHeight(text, 1.5);
|
|
4610
|
+
* engine.block.setTextLineHeight(text, 1.5, 0);
|
|
4611
|
+
* engine.block.setTextLineHeight(text, null); // reset all paragraphs to block default
|
|
4612
|
+
* ```
|
|
4613
|
+
*
|
|
4614
|
+
* @category Block Text
|
|
4615
|
+
* @param id - The text block to modify.
|
|
4616
|
+
* @param lineHeight - The line height multiplier, or `null` to reset to the block-level default.
|
|
4617
|
+
* @param paragraphIndex - The 0-based index of the paragraph to modify. Negative values apply to all paragraphs.
|
|
4618
|
+
*/
|
|
4619
|
+
setTextLineHeight(id: DesignBlockId, lineHeight: number | null, paragraphIndex?: number): void;
|
|
4620
|
+
/**
|
|
4621
|
+
* Returns the line height multiplier for a specific paragraph of a text block.
|
|
4622
|
+
*
|
|
4623
|
+
* Returns the per-paragraph override if one is set, otherwise returns the block-level `lineHeight`.
|
|
4624
|
+
*
|
|
4625
|
+
* ```javascript
|
|
4626
|
+
* const lineHeight = engine.block.getTextLineHeight(text, 0);
|
|
4627
|
+
* ```
|
|
4628
|
+
*
|
|
4629
|
+
* @category Block Text
|
|
4630
|
+
* @param id - The text block to query.
|
|
4631
|
+
* @param paragraphIndex - The 0-based index of the paragraph.
|
|
4632
|
+
* @returns The line height multiplier for the paragraph.
|
|
4633
|
+
*/
|
|
4634
|
+
getTextLineHeight(id: DesignBlockId, paragraphIndex: number): number;
|
|
4605
4635
|
/**
|
|
4606
4636
|
* Checks if the bold font weight can be toggled for a range of text.
|
|
4607
4637
|
*
|