@cesdk/node 1.72.0-nightly.20260310 → 1.72.0-nightly.20260312
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.72.0-nightly.20260310-M3XYVRI2.wasm → cesdk-v1.72.0-nightly.20260312-6W4HYFPK.wasm} +0 -0
- package/index.d.ts +82 -1
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.72.0-nightly.20260310-MLEZSZ4D.data → cesdk-v1.72.0-nightly.20260312-MLEZSZ4D.data} +0 -0
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -4326,6 +4326,78 @@ export declare class BlockAPI {
|
|
|
4326
4326
|
* @param to - The end index of the UTF-16 range. Defaults to the end of the current selection or text.
|
|
4327
4327
|
*/
|
|
4328
4328
|
setTextCase(id: DesignBlockId, textCase: TextCase, from?: number, to?: number): void;
|
|
4329
|
+
/**
|
|
4330
|
+
* Gets the list style for a specific paragraph of a text block.
|
|
4331
|
+
*
|
|
4332
|
+
* ```javascript
|
|
4333
|
+
* const listStyle = engine.block.getTextListStyle(text, 0);
|
|
4334
|
+
* ```
|
|
4335
|
+
*
|
|
4336
|
+
* @category Block Text
|
|
4337
|
+
* @param id - The text block whose list style should be returned.
|
|
4338
|
+
* @param paragraphIndex - The 0-based index of the paragraph.
|
|
4339
|
+
* @returns The list style of the paragraph.
|
|
4340
|
+
*/
|
|
4341
|
+
getTextListStyle(id: DesignBlockId, paragraphIndex: number): ListStyle;
|
|
4342
|
+
/**
|
|
4343
|
+
* Sets the list style for a specific paragraph or all paragraphs of a text block.
|
|
4344
|
+
*
|
|
4345
|
+
* ```javascript
|
|
4346
|
+
* engine.block.setTextListStyle(text, 'Unordered');
|
|
4347
|
+
* engine.block.setTextListStyle(text, 'Ordered', 0, 2);
|
|
4348
|
+
* ```
|
|
4349
|
+
*
|
|
4350
|
+
* @category Block Text
|
|
4351
|
+
* @param id - The text block whose list style should be changed.
|
|
4352
|
+
* @param listStyle - The list style to apply.
|
|
4353
|
+
* @param paragraphIndex - The 0-based index of the paragraph to modify. Negative values apply to all paragraphs.
|
|
4354
|
+
* @param listLevel - Optional list nesting level to set atomically with the list style (0 = outermost).
|
|
4355
|
+
* When omitted the existing list level of each paragraph is preserved.
|
|
4356
|
+
* Has no visual effect when listStyle is 'None'.
|
|
4357
|
+
*/
|
|
4358
|
+
setTextListStyle(id: DesignBlockId, listStyle: ListStyle, paragraphIndex?: number, listLevel?: number): void;
|
|
4359
|
+
/**
|
|
4360
|
+
* Gets the list nesting level for a specific paragraph of a text block.
|
|
4361
|
+
*
|
|
4362
|
+
* ```javascript
|
|
4363
|
+
* const listLevel = engine.block.getTextListLevel(text, 0);
|
|
4364
|
+
* ```
|
|
4365
|
+
*
|
|
4366
|
+
* @category Block Text
|
|
4367
|
+
* @param id - The text block whose list level should be returned.
|
|
4368
|
+
* @param paragraphIndex - The 0-based index of the paragraph.
|
|
4369
|
+
* @returns The list nesting level of the paragraph.
|
|
4370
|
+
*/
|
|
4371
|
+
getTextListLevel(id: DesignBlockId, paragraphIndex: number): number;
|
|
4372
|
+
/**
|
|
4373
|
+
* Sets the list nesting level for a specific paragraph or all paragraphs of a text block.
|
|
4374
|
+
*
|
|
4375
|
+
* ```javascript
|
|
4376
|
+
* engine.block.setTextListLevel(text, 1);
|
|
4377
|
+
* engine.block.setTextListLevel(text, 2, 0);
|
|
4378
|
+
* ```
|
|
4379
|
+
*
|
|
4380
|
+
* @category Block Text
|
|
4381
|
+
* @param id - The text block whose list level should be changed.
|
|
4382
|
+
* @param listLevel - The list nesting level (0 = outermost).
|
|
4383
|
+
* @param paragraphIndex - The 0-based index of the paragraph to modify. Negative values apply to all paragraphs.
|
|
4384
|
+
*/
|
|
4385
|
+
setTextListLevel(id: DesignBlockId, listLevel: number, paragraphIndex?: number): void;
|
|
4386
|
+
/**
|
|
4387
|
+
* Returns the 0-based paragraph indices that overlap the given UTF-16 range.
|
|
4388
|
+
*
|
|
4389
|
+
* ```javascript
|
|
4390
|
+
* const indices = engine.block.getTextParagraphIndices(text);
|
|
4391
|
+
* const indices = engine.block.getTextParagraphIndices(text, 0, 5);
|
|
4392
|
+
* ```
|
|
4393
|
+
*
|
|
4394
|
+
* @category Block Text
|
|
4395
|
+
* @param id - The text block to query.
|
|
4396
|
+
* @param from - The start index of the UTF-16 range. Negative values reference the entire text.
|
|
4397
|
+
* @param to - The end index of the UTF-16 range. Negative values reference the entire text.
|
|
4398
|
+
* @returns The paragraph indices overlapping the range.
|
|
4399
|
+
*/
|
|
4400
|
+
getTextParagraphIndices(id: DesignBlockId, from?: number, to?: number): number[];
|
|
4329
4401
|
/**
|
|
4330
4402
|
* Checks if the bold font weight can be toggled for a range of text.
|
|
4331
4403
|
*
|
|
@@ -7472,6 +7544,13 @@ export declare function isRGBAColor(color: Color): color is RGBAColor;
|
|
|
7472
7544
|
*/
|
|
7473
7545
|
export declare function isSpotColor(color: Color): color is SpotColor;
|
|
7474
7546
|
|
|
7547
|
+
/**
|
|
7548
|
+
* Represents the list style of a paragraph.
|
|
7549
|
+
*
|
|
7550
|
+
* @public
|
|
7551
|
+
*/
|
|
7552
|
+
export declare type ListStyle = 'None' | 'Unordered' | 'Ordered';
|
|
7553
|
+
|
|
7475
7554
|
/**
|
|
7476
7555
|
* e.g. `en`, `de`, etc.
|
|
7477
7556
|
* @public
|
|
@@ -8445,7 +8524,7 @@ export declare type SettingEnumType = {
|
|
|
8445
8524
|
export declare type SettingEnumValues = TouchPinchAction | TouchRotateAction | CameraClampingOvershootMode | DoubleClickSelectionMode | ColorPickerColorMode | TimelineTrackVisibility | (string & {});
|
|
8446
8525
|
|
|
8447
8526
|
/** @public */
|
|
8448
|
-
export declare type SettingFloatPropertyName = 'positionSnappingThreshold' | 'rotationSnappingThreshold' | 'controlGizmo/blockScaleDownLimit' | (string & {});
|
|
8527
|
+
export declare type SettingFloatPropertyName = 'positionSnappingThreshold' | 'rotationSnappingThreshold' | 'controlGizmo/blockScaleDownLimit' | 'listIndentPerLevel' | (string & {});
|
|
8449
8528
|
|
|
8450
8529
|
/** @public */
|
|
8451
8530
|
export declare type SettingIntPropertyName = 'maxImageSize' | (string & {});
|
|
@@ -8575,6 +8654,8 @@ export declare interface Settings {
|
|
|
8575
8654
|
'web/fetchCredentials': 'omit' | 'same-origin' | 'include';
|
|
8576
8655
|
/** Scale-down limit for blocks in screen pixels when scaling with gizmos or touch gestures. */
|
|
8577
8656
|
'controlGizmo/blockScaleDownLimit': number;
|
|
8657
|
+
/** The width of each list indentation level, in EM units. */
|
|
8658
|
+
listIndentPerLevel: number;
|
|
8578
8659
|
/** The threshold distance in pixels for position snapping. */
|
|
8579
8660
|
positionSnappingThreshold: number;
|
|
8580
8661
|
/** The threshold angle in degrees for rotation snapping. */
|