@cesdk/node 1.72.0-nightly.20260316 → 1.72.0-nightly.20260317
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.20260316-Q7VOFKLB.wasm → cesdk-v1.72.0-nightly.20260317-LZC3OKF5.wasm} +0 -0
- package/index.d.ts +151 -1
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.72.0-nightly.20260316-MLEZSZ4D.data → cesdk-v1.72.0-nightly.20260317-MLEZSZ4D.data} +0 -0
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -4326,6 +4326,95 @@ 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 unique text decoration configurations within a range of text.
|
|
4331
|
+
*
|
|
4332
|
+
* Each element of the returned array is a decoration configuration representing
|
|
4333
|
+
* a unique combination of lines, style, color, and thickness found in the range.
|
|
4334
|
+
*
|
|
4335
|
+
* ```javascript
|
|
4336
|
+
* const decorations = engine.block.getTextDecorations(text);
|
|
4337
|
+
* // e.g., [{ lines: ['None'] }, { lines: ['Underline'], style: 'Dashed' }]
|
|
4338
|
+
* ```
|
|
4339
|
+
*
|
|
4340
|
+
* @category Block Text
|
|
4341
|
+
* @param id - The text block whose text decorations should be returned.
|
|
4342
|
+
* @param from - The start index of the UTF-16 range. Defaults to the start of the current selection or text.
|
|
4343
|
+
* @param to - The end index of the UTF-16 range. Defaults to the end of the current selection or text.
|
|
4344
|
+
* @returns The ordered list of unique decoration configurations.
|
|
4345
|
+
*/
|
|
4346
|
+
getTextDecorations(id: DesignBlockId, from?: number, to?: number): TextDecorationConfig[];
|
|
4347
|
+
/**
|
|
4348
|
+
* Sets the text decoration for a range of text.
|
|
4349
|
+
*
|
|
4350
|
+
* The config specifies which decoration lines, style, underline color, thickness, and offset to apply.
|
|
4351
|
+
* Use `{ lines: ['None'] }` to remove all decorations.
|
|
4352
|
+
*
|
|
4353
|
+
* ```javascript
|
|
4354
|
+
* engine.block.setTextDecoration(text, { lines: ['Underline'] });
|
|
4355
|
+
* engine.block.setTextDecoration(text, { lines: ['Underline', 'Strikethrough'], style: 'Dashed' });
|
|
4356
|
+
* engine.block.setTextDecoration(text, { lines: ['Overline'], style: 'Wavy', underlineThickness: 2.0 });
|
|
4357
|
+
* engine.block.setTextDecoration(text, { lines: ['None'] }); // Remove decorations
|
|
4358
|
+
* ```
|
|
4359
|
+
*
|
|
4360
|
+
* @category Block Text
|
|
4361
|
+
* @param id - The text block whose text decoration should be changed.
|
|
4362
|
+
* @param config - The decoration configuration to apply.
|
|
4363
|
+
* @param from - The start index of the UTF-16 range. Defaults to the start of the current selection or text.
|
|
4364
|
+
* @param to - The end index of the UTF-16 range. Defaults to the end of the current selection or text.
|
|
4365
|
+
*/
|
|
4366
|
+
setTextDecoration(id: DesignBlockId, config: TextDecorationConfig, from?: number, to?: number): void;
|
|
4367
|
+
/**
|
|
4368
|
+
* Toggles the underline decoration for a text range.
|
|
4369
|
+
*
|
|
4370
|
+
* If any part of the range does not have underline, the entire range gets underline.
|
|
4371
|
+
* If the entire range already has underline, it is removed.
|
|
4372
|
+
* Other decoration lines (strikethrough, overline) on each text run are preserved.
|
|
4373
|
+
*
|
|
4374
|
+
* ```javascript
|
|
4375
|
+
* engine.block.toggleTextDecorationUnderline(text);
|
|
4376
|
+
* ```
|
|
4377
|
+
*
|
|
4378
|
+
* @category Block Text
|
|
4379
|
+
* @param id - The text block to modify.
|
|
4380
|
+
* @param from - The start index of the UTF-16 range. Defaults to the start of the current selection or text.
|
|
4381
|
+
* @param to - The end index of the UTF-16 range. Defaults to the end of the current selection or text.
|
|
4382
|
+
*/
|
|
4383
|
+
toggleTextDecorationUnderline(id: DesignBlockId, from?: number, to?: number): void;
|
|
4384
|
+
/**
|
|
4385
|
+
* Toggles the strikethrough decoration for a text range.
|
|
4386
|
+
*
|
|
4387
|
+
* If any part of the range does not have strikethrough, the entire range gets strikethrough.
|
|
4388
|
+
* If the entire range already has strikethrough, it is removed.
|
|
4389
|
+
* Other decoration lines (underline, overline) on each text run are preserved.
|
|
4390
|
+
*
|
|
4391
|
+
* ```javascript
|
|
4392
|
+
* engine.block.toggleTextDecorationStrikethrough(text);
|
|
4393
|
+
* ```
|
|
4394
|
+
*
|
|
4395
|
+
* @category Block Text
|
|
4396
|
+
* @param id - The text block to modify.
|
|
4397
|
+
* @param from - The start index of the UTF-16 range. Defaults to the start of the current selection or text.
|
|
4398
|
+
* @param to - The end index of the UTF-16 range. Defaults to the end of the current selection or text.
|
|
4399
|
+
*/
|
|
4400
|
+
toggleTextDecorationStrikethrough(id: DesignBlockId, from?: number, to?: number): void;
|
|
4401
|
+
/**
|
|
4402
|
+
* Toggles the overline decoration for a text range.
|
|
4403
|
+
*
|
|
4404
|
+
* If any part of the range does not have overline, the entire range gets overline.
|
|
4405
|
+
* If the entire range already has overline, it is removed.
|
|
4406
|
+
* Other decoration lines (underline, strikethrough) on each text run are preserved.
|
|
4407
|
+
*
|
|
4408
|
+
* ```javascript
|
|
4409
|
+
* engine.block.toggleTextDecorationOverline(text);
|
|
4410
|
+
* ```
|
|
4411
|
+
*
|
|
4412
|
+
* @category Block Text
|
|
4413
|
+
* @param id - The text block to modify.
|
|
4414
|
+
* @param from - The start index of the UTF-16 range. Defaults to the start of the current selection or text.
|
|
4415
|
+
* @param to - The end index of the UTF-16 range. Defaults to the end of the current selection or text.
|
|
4416
|
+
*/
|
|
4417
|
+
toggleTextDecorationOverline(id: DesignBlockId, from?: number, to?: number): void;
|
|
4329
4418
|
/**
|
|
4330
4419
|
* Gets the list style for a specific paragraph of a text block.
|
|
4331
4420
|
*
|
|
@@ -8502,7 +8591,7 @@ export declare const SceneModeValues: readonly ["Design", "Video"];
|
|
|
8502
8591
|
export declare type Scope = 'text/edit' | 'text/character' | 'fill/change' | 'fill/changeType' | 'stroke/change' | 'shape/change' | 'layer/move' | 'layer/resize' | 'layer/rotate' | 'layer/flip' | 'layer/crop' | 'layer/opacity' | 'layer/blendMode' | 'layer/visibility' | 'layer/clipping' | 'appearance/adjustments' | 'appearance/filter' | 'appearance/effect' | 'appearance/blur' | 'appearance/shadow' | 'appearance/animation' | 'lifecycle/destroy' | 'lifecycle/duplicate' | 'editor/add' | 'editor/select';
|
|
8503
8592
|
|
|
8504
8593
|
/** @public */
|
|
8505
|
-
export declare type SettingBoolPropertyName = 'alwaysHighlightPlaceholders' | 'doubleClickToCropEnabled' | 'showBuildVersion' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'blockAnimations/enabled' | 'renderTextCursorAndSelectionInEngine' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning' | 'mouse/enableZoom' | 'mouse/enableScroll' | 'controlGizmo/showCropHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showScaleHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showCropScaleHandles' | 'page/title/show' | 'page/title/showPageTitleTemplate' | 'page/title/appendPageName' | 'page/title/showOnSinglePage' | 'page/dimOutOfPageAreas' | 'page/allowCropInteraction' | 'page/allowResizeInteraction' | 'page/restrictResizeInteractionToFixedAspectRatio' | 'page/allowRotateInteraction' | 'page/allowMoveInteraction' | 'page/moveChildrenWhenCroppingFill' | 'page/selectWhenNoBlocksSelected' | 'page/highlightWhenCropping' | 'colorMaskingSettings/secondPass' | 'clampThumbnailTextureSizes' | 'useSystemFontFallback' | 'forceSystemEmojis' | 'features/textEditModeTransformHandlesEnabled' | 'features/videoStreamingEnabled' | (string & {});
|
|
8594
|
+
export declare type SettingBoolPropertyName = 'alwaysHighlightPlaceholders' | 'doubleClickToCropEnabled' | 'showBuildVersion' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'blockAnimations/enabled' | 'renderTextCursorAndSelectionInEngine' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning' | 'mouse/enableZoom' | 'mouse/enableScroll' | 'controlGizmo/showCropHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showScaleHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showCropScaleHandles' | 'page/title/show' | 'page/title/showPageTitleTemplate' | 'page/title/appendPageName' | 'page/title/showOnSinglePage' | 'page/dimOutOfPageAreas' | 'page/allowCropInteraction' | 'page/allowResizeInteraction' | 'page/restrictResizeInteractionToFixedAspectRatio' | 'page/allowRotateInteraction' | 'page/allowMoveInteraction' | 'page/moveChildrenWhenCroppingFill' | 'page/selectWhenNoBlocksSelected' | 'page/highlightWhenCropping' | 'page/highlightDropTarget' | 'page/reparentBlocksToSceneWhenOutOfPage' | 'page/clipped' | 'colorMaskingSettings/secondPass' | 'clampThumbnailTextureSizes' | 'useSystemFontFallback' | 'forceSystemEmojis' | 'features/textEditModeTransformHandlesEnabled' | 'features/videoStreamingEnabled' | 'features/enableAutomaticEnumerations' | (string & {});
|
|
8506
8595
|
|
|
8507
8596
|
/** @public */
|
|
8508
8597
|
export declare type SettingColorPropertyName = 'clearColor' | 'handleFillColor' | 'highlightColor' | 'pageHighlightColor' | 'placeholderHighlightColor' | 'snappingGuideColor' | 'rotationSnappingGuideColor' | 'cropOverlayColor' | 'textVariableHighlightColor' | 'borderOutlineColor' | 'progressColor' | 'errorStateColor' | 'page/title/color' | 'page/marginFillColor' | 'page/marginFrameColor' | 'page/innerBorderColor' | 'page/outerBorderColor' | 'colorMaskingSettings/maskColor' | (string & {});
|
|
@@ -8622,6 +8711,14 @@ export declare interface Settings {
|
|
|
8622
8711
|
'page/selectWhenNoBlocksSelected': boolean;
|
|
8623
8712
|
/** Whether highlighting should be automatically enabled on the current page when entering crop mode. */
|
|
8624
8713
|
'page/highlightWhenCropping': boolean;
|
|
8714
|
+
/** Whether to highlight the page under a dragged element as a drop target. */
|
|
8715
|
+
'page/highlightDropTarget': boolean;
|
|
8716
|
+
/** Whether blocks should be reparented to the scene when dragged outside all pages,
|
|
8717
|
+
* and reparented back to a page when dragged over one. */
|
|
8718
|
+
'page/reparentBlocksToSceneWhenOutOfPage': boolean;
|
|
8719
|
+
/** Whether pages should clip their contents to their bounds.
|
|
8720
|
+
* Applies to newly created pages and, when changed, immediately updates all existing pages. */
|
|
8721
|
+
'page/clipped': boolean;
|
|
8625
8722
|
/** Clamp thumbnail texture sizes to the platform's GPU texture limit. */
|
|
8626
8723
|
clampThumbnailTextureSizes: boolean;
|
|
8627
8724
|
/** Toggle the dock components visibility */
|
|
@@ -8740,6 +8837,7 @@ export declare interface Settings {
|
|
|
8740
8837
|
|
|
8741
8838
|
|
|
8742
8839
|
|
|
8840
|
+
|
|
8743
8841
|
|
|
8744
8842
|
|
|
8745
8843
|
}
|
|
@@ -8992,6 +9090,58 @@ export declare const TextAnimationWritingStyleValues: readonly ["Block", "Line",
|
|
|
8992
9090
|
*/
|
|
8993
9091
|
export declare type TextCase = 'Normal' | 'Uppercase' | 'Lowercase' | 'Titlecase';
|
|
8994
9092
|
|
|
9093
|
+
/**
|
|
9094
|
+
* Configuration for text decorations on a text run.
|
|
9095
|
+
*
|
|
9096
|
+
* All active decoration lines share the same style and thickness.
|
|
9097
|
+
* An optional underline color override can be set; overline and strikethrough
|
|
9098
|
+
* always use the text color.
|
|
9099
|
+
*
|
|
9100
|
+
* @public
|
|
9101
|
+
*/
|
|
9102
|
+
export declare interface TextDecorationConfig {
|
|
9103
|
+
/** The active decoration line types. Use `['None']` to clear all decorations.
|
|
9104
|
+
* When `'None'` is present, all other values are ignored. */
|
|
9105
|
+
lines: TextDecorationLine[];
|
|
9106
|
+
/** The style of the decoration lines. Defaults to 'Solid'. */
|
|
9107
|
+
style?: TextDecorationStyle;
|
|
9108
|
+
/** Optional color override for underlines only. Uses the text color if not set.
|
|
9109
|
+
* Overline and strikethrough always use the text color. */
|
|
9110
|
+
underlineColor?: Color;
|
|
9111
|
+
/** Multiplier for the underline thickness. Defaults to 1.0. */
|
|
9112
|
+
underlineThickness?: number;
|
|
9113
|
+
/** Relative offset applied to the underline position as a multiplier on the font-default distance. 0 = font default, positive = proportionally further from baseline, negative = proportionally closer. The actual position is computed as `fontDefault * (1 + underlineOffset)`. Defaults to 0.0. */
|
|
9114
|
+
underlineOffset?: number;
|
|
9115
|
+
/** When true, underlines skip over glyph descenders (skip-ink). Defaults to true. */
|
|
9116
|
+
skipInk?: boolean;
|
|
9117
|
+
}
|
|
9118
|
+
|
|
9119
|
+
/**
|
|
9120
|
+
* Represents a line type for text decoration.
|
|
9121
|
+
*
|
|
9122
|
+
* Text decoration lines are combinable — a range of text can have multiple decoration lines.
|
|
9123
|
+
* - 'None': No decoration.
|
|
9124
|
+
* - 'Underline': The text is underlined.
|
|
9125
|
+
* - 'Strikethrough': The text has a line through it.
|
|
9126
|
+
* - 'Overline': The text has a line above it.
|
|
9127
|
+
*
|
|
9128
|
+
* @public
|
|
9129
|
+
*/
|
|
9130
|
+
export declare type TextDecorationLine = 'None' | 'Underline' | 'Strikethrough' | 'Overline';
|
|
9131
|
+
|
|
9132
|
+
/**
|
|
9133
|
+
* Represents the style of a text decoration line.
|
|
9134
|
+
*
|
|
9135
|
+
* - 'Solid': A solid line (default).
|
|
9136
|
+
* - 'Double': Two parallel lines.
|
|
9137
|
+
* - 'Dotted': A series of dots.
|
|
9138
|
+
* - 'Dashed': A series of dashes.
|
|
9139
|
+
* - 'Wavy': A wavy line.
|
|
9140
|
+
*
|
|
9141
|
+
* @public
|
|
9142
|
+
*/
|
|
9143
|
+
export declare type TextDecorationStyle = 'Solid' | 'Double' | 'Dotted' | 'Dashed' | 'Wavy';
|
|
9144
|
+
|
|
8995
9145
|
/**
|
|
8996
9146
|
* Options for text font size operations with unit support.
|
|
8997
9147
|
* @public
|