@cesdk/engine 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-NR6CYGMW.wasm → cesdk-v1.72.0-nightly.20260312-R4LAURJE.wasm} +0 -0
- package/assets/core/worker-host-v1.72.0-nightly.20260312.js +1 -0
- package/index.d.ts +82 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/assets/core/worker-host-v1.72.0-nightly.20260310.js +0 -1
- /package/assets/core/{cesdk-v1.72.0-nightly.20260310-MLEZSZ4D.data → cesdk-v1.72.0-nightly.20260312-MLEZSZ4D.data} +0 -0
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
|
*
|
|
@@ -7830,6 +7902,13 @@ export declare type _LegacySource<T> = (handler: (value: T) => void) => () => vo
|
|
|
7830
7902
|
*/
|
|
7831
7903
|
export declare type _Listener<T> = (value: T) => void;
|
|
7832
7904
|
|
|
7905
|
+
/**
|
|
7906
|
+
* Represents the list style of a paragraph.
|
|
7907
|
+
*
|
|
7908
|
+
* @public
|
|
7909
|
+
*/
|
|
7910
|
+
export declare type ListStyle = 'None' | 'Unordered' | 'Ordered';
|
|
7911
|
+
|
|
7833
7912
|
/**
|
|
7834
7913
|
* e.g. `en`, `de`, etc.
|
|
7835
7914
|
* @public
|
|
@@ -9005,7 +9084,7 @@ export declare type SettingEnumType = {
|
|
|
9005
9084
|
export declare type SettingEnumValues = TouchPinchAction | TouchRotateAction | CameraClampingOvershootMode | DoubleClickSelectionMode | ColorPickerColorMode | TimelineTrackVisibility | (string & {});
|
|
9006
9085
|
|
|
9007
9086
|
/** @public */
|
|
9008
|
-
export declare type SettingFloatPropertyName = 'positionSnappingThreshold' | 'rotationSnappingThreshold' | 'controlGizmo/blockScaleDownLimit' | (string & {});
|
|
9087
|
+
export declare type SettingFloatPropertyName = 'positionSnappingThreshold' | 'rotationSnappingThreshold' | 'controlGizmo/blockScaleDownLimit' | 'listIndentPerLevel' | (string & {});
|
|
9009
9088
|
|
|
9010
9089
|
/** @public */
|
|
9011
9090
|
export declare type SettingIntPropertyName = 'maxImageSize' | (string & {});
|
|
@@ -9135,6 +9214,8 @@ export declare interface Settings {
|
|
|
9135
9214
|
'web/fetchCredentials': 'omit' | 'same-origin' | 'include';
|
|
9136
9215
|
/** Scale-down limit for blocks in screen pixels when scaling with gizmos or touch gestures. */
|
|
9137
9216
|
'controlGizmo/blockScaleDownLimit': number;
|
|
9217
|
+
/** The width of each list indentation level, in EM units. */
|
|
9218
|
+
listIndentPerLevel: number;
|
|
9138
9219
|
/** The threshold distance in pixels for position snapping. */
|
|
9139
9220
|
positionSnappingThreshold: number;
|
|
9140
9221
|
/** The threshold angle in degrees for rotation snapping. */
|