@cesdk/engine 1.76.0-rc.0 → 1.76.0-rc.2
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.76.0-rc.0-PI6GG5LR.wasm → cesdk-v1.76.0-rc.2-CD6OME3L.wasm} +0 -0
- package/assets/core/{worker-host-v1.76.0-rc.0.js → worker-host-v1.76.0-rc.2.js} +1 -1
- package/index.d.ts +39 -4
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.76.0-rc.0-MLEZSZ4D.data → cesdk-v1.76.0-rc.2-MLEZSZ4D.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -3640,6 +3640,25 @@ export declare class BlockAPI {
|
|
|
3640
3640
|
* @param locked - Whether aspect ratio should be locked.
|
|
3641
3641
|
*/
|
|
3642
3642
|
setCropAspectRatioLocked(id: DesignBlockId, locked: boolean): void;
|
|
3643
|
+
/**
|
|
3644
|
+
* Checks whether the "Original" crop preset (`ContentAspectRatio`) can be applied to a block.
|
|
3645
|
+
*
|
|
3646
|
+
* This runs the same preliminary check the apply path performs: it resolves the intrinsic
|
|
3647
|
+
* content dimensions from the block's image/video fill (an image fill resolves only from its
|
|
3648
|
+
* `sourceSet`; a video fill resolves from its `sourceSet` or the first decoded frame). Use it
|
|
3649
|
+
* to gate UI that would otherwise call the preset and fail — e.g. an unreplaced placeholder
|
|
3650
|
+
* image fill with an empty `sourceSet`.
|
|
3651
|
+
*
|
|
3652
|
+
* ```javascript
|
|
3653
|
+
* const canRevert = engine.block.canRevertToOriginalRatio(block);
|
|
3654
|
+
* ```
|
|
3655
|
+
*
|
|
3656
|
+
* @category Block Crop
|
|
3657
|
+
* @param id - The block to query.
|
|
3658
|
+
* @returns True if the preset would resolve, false if it cannot (no/placeholder fill, empty
|
|
3659
|
+
* sourceSet, video not yet decoded, or unsupported fill type).
|
|
3660
|
+
*/
|
|
3661
|
+
canRevertToOriginalRatio(id: DesignBlockId): boolean;
|
|
3643
3662
|
/**
|
|
3644
3663
|
* Checks if a block has an opacity property.
|
|
3645
3664
|
*
|
|
@@ -7504,6 +7523,17 @@ export declare class EditorAPI {
|
|
|
7504
7523
|
* @returns True if a redo step is available.
|
|
7505
7524
|
*/
|
|
7506
7525
|
canRedo(): boolean;
|
|
7526
|
+
/**
|
|
7527
|
+
* Subscribe to undo/redo history changes.
|
|
7528
|
+
*
|
|
7529
|
+
* @deprecated Use {@link onHistoryUpdatedWithKind} instead, which additionally reports a {@link HistoryUpdate}
|
|
7530
|
+
* describing the kind of update.
|
|
7531
|
+
*
|
|
7532
|
+
* @category Event Subscriptions
|
|
7533
|
+
* @param callback - Function called when the undo/redo history changes.
|
|
7534
|
+
* @returns A method to unsubscribe from the event.
|
|
7535
|
+
*/
|
|
7536
|
+
onHistoryUpdated: (callback: () => void) => (() => void);
|
|
7507
7537
|
/**
|
|
7508
7538
|
* Subscribe to undo/redo history changes.
|
|
7509
7539
|
*
|
|
@@ -7512,7 +7542,7 @@ export declare class EditorAPI {
|
|
|
7512
7542
|
* via `setActiveHistory`.
|
|
7513
7543
|
*
|
|
7514
7544
|
* ```javascript
|
|
7515
|
-
* const unsubscribe = engine.editor.
|
|
7545
|
+
* const unsubscribe = engine.editor.onHistoryUpdatedWithKind((kind) => {
|
|
7516
7546
|
* if (kind === 'Activated') {
|
|
7517
7547
|
* // The active history was switched; no scene change happened on this event.
|
|
7518
7548
|
* return;
|
|
@@ -7527,7 +7557,7 @@ export declare class EditorAPI {
|
|
|
7527
7557
|
* @param callback - Function called when the undo/redo history changes. The argument describes the kind of update.
|
|
7528
7558
|
* @returns A method to unsubscribe from the event.
|
|
7529
7559
|
*/
|
|
7530
|
-
|
|
7560
|
+
onHistoryUpdatedWithKind: (callback: (kind: HistoryUpdate) => void) => (() => void);
|
|
7531
7561
|
/**
|
|
7532
7562
|
* Subscribe to editor settings changes.
|
|
7533
7563
|
*
|
|
@@ -8665,7 +8695,7 @@ export declare type HexColorString = string;
|
|
|
8665
8695
|
export declare type HistoryId = number;
|
|
8666
8696
|
|
|
8667
8697
|
/**
|
|
8668
|
-
* Describes the kind of update that triggered an `
|
|
8698
|
+
* Describes the kind of update that triggered an `onHistoryUpdatedWithKind` callback.
|
|
8669
8699
|
*
|
|
8670
8700
|
* - `Updated`: The active history's snapshots changed: a new snapshot was added (e.g. after an edit), or undo/redo
|
|
8671
8701
|
* was applied. The scene state changed as a direct consequence.
|
|
@@ -10024,7 +10054,7 @@ export declare const SceneModeValues: readonly ["Design", "Video"];
|
|
|
10024
10054
|
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';
|
|
10025
10055
|
|
|
10026
10056
|
/** @public */
|
|
10027
|
-
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/dynamicMoveHandleVisibility' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showScaleHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showCropScaleHandles' | 'page/title/canEdit' | '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/marqueeSelectOnBodyDrag' | 'page/restrictPageSelectionToBorderAndTitle' | 'page/moveChildrenWhenCroppingFill' | 'page/selectWhenNoBlocksSelected' | 'page/highlightWhenCropping' | 'page/highlightDropTarget' | 'page/reparentBlocksToSceneWhenOutOfPage' | 'colorMaskingSettings/secondPass' | 'clampThumbnailTextureSizes' | 'useSystemFontFallback' | 'forceSystemEmojis' | 'features/textEditModeTransformHandlesEnabled' | 'features/videoStreamingEnabled' | 'grid/enabled' | 'grid/snapEnabled' | 'features/enableAutomaticEnumerations' | 'features/transparentClickThroughEnabled' | 'features/fontLineGapEnabled' | (string & {});
|
|
10057
|
+
export declare type SettingBoolPropertyName = 'alwaysHighlightPlaceholders' | 'doubleClickToCropEnabled' | 'showBuildVersion' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'blockAnimations/enabled' | 'playback/showAllBlocks' | 'renderTextCursorAndSelectionInEngine' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning' | 'mouse/enableZoom' | 'mouse/enableScroll' | 'controlGizmo/showCropHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/dynamicMoveHandleVisibility' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showScaleHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showCropScaleHandles' | 'page/title/canEdit' | '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/marqueeSelectOnBodyDrag' | 'page/restrictPageSelectionToBorderAndTitle' | 'page/moveChildrenWhenCroppingFill' | 'page/selectWhenNoBlocksSelected' | 'page/highlightWhenCropping' | 'page/highlightDropTarget' | 'page/reparentBlocksToSceneWhenOutOfPage' | 'colorMaskingSettings/secondPass' | 'clampThumbnailTextureSizes' | 'useSystemFontFallback' | 'forceSystemEmojis' | 'features/textEditModeTransformHandlesEnabled' | 'features/videoStreamingEnabled' | 'grid/enabled' | 'grid/snapEnabled' | 'features/enableAutomaticEnumerations' | 'features/transparentClickThroughEnabled' | 'features/fontLineGapEnabled' | (string & {});
|
|
10028
10058
|
|
|
10029
10059
|
/** @public */
|
|
10030
10060
|
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' | 'grid/color' | (string & {});
|
|
@@ -10144,6 +10174,11 @@ export declare interface Settings {
|
|
|
10144
10174
|
'placeholderControls/showOverlay': boolean;
|
|
10145
10175
|
/** Whether animations should be enabled or not. */
|
|
10146
10176
|
'blockAnimations/enabled': boolean;
|
|
10177
|
+
/**
|
|
10178
|
+
* When enabled, every block stays visible regardless of the current playback time, instead of being
|
|
10179
|
+
* culled outside its time offset/duration. No effect on export.
|
|
10180
|
+
*/
|
|
10181
|
+
'playback/showAllBlocks': boolean;
|
|
10147
10182
|
/** Whether the background grid is shown on pages. */
|
|
10148
10183
|
'grid/enabled': boolean;
|
|
10149
10184
|
/** Whether elements should snap to grid lines when dragged. */
|