@cesdk/engine 1.41.0-rc.1 → 1.41.1-rc.0
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.41.0-rc.1-4CF4DPVZ.wasm → cesdk-v1.41.1-rc.0-T6Z3SXPH.wasm} +0 -0
- package/assets/core/{worker-host-v1.41.0-rc.1.js → worker-host-v1.41.1-rc.0.js} +1 -1
- package/index.d.ts +14 -0
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.41.0-rc.1-XHZXX7DG.data → cesdk-v1.41.1-rc.0-XHZXX7DG.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -2366,6 +2366,20 @@ export declare class BlockAPI {
|
|
|
2366
2366
|
* @returns The selected UTF-16 range or \{ from: -1, to: -1 \} if no text block is currently being edited.
|
|
2367
2367
|
*/
|
|
2368
2368
|
getTextCursorRange(): Range_2;
|
|
2369
|
+
/**
|
|
2370
|
+
* Returns the number of visible lines in the given text block.
|
|
2371
|
+
* @param id - The text block whose line count should be returned.
|
|
2372
|
+
* @returns The number of lines in the text block.
|
|
2373
|
+
*/
|
|
2374
|
+
getTextVisibleLineCount(id: DesignBlockId): number;
|
|
2375
|
+
/**
|
|
2376
|
+
* Returns the bounds of the visible area of the given line of the text block.
|
|
2377
|
+
* The values are in the scene's global coordinate space (which has its origin at the top left).
|
|
2378
|
+
* @param id - The text block whose line bounding box should be returned.
|
|
2379
|
+
* @param lineIndex - The index of the line whose bounding box should be returned.
|
|
2380
|
+
* @returns The bounding box of the line.
|
|
2381
|
+
*/
|
|
2382
|
+
getTextVisibleLineGlobalBoundingBoxXYWH(id: DesignBlockId, lineIndex: number): XYWH;
|
|
2369
2383
|
/**
|
|
2370
2384
|
* Query if the given block has fill color properties.
|
|
2371
2385
|
* @param id - The block to query.
|