@cesdk/engine 1.75.0-rc.5 → 1.75.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.75.0-rc.5-KN5OTKE5.wasm → cesdk-v1.75.1-rc.0-DROC323I.wasm} +0 -0
- package/assets/core/{worker-host-v1.75.0-rc.5.js → worker-host-v1.75.1-rc.0.js} +1 -1
- package/index.d.ts +21 -1
- package/index.js +1 -1
- package/package.json +1 -14
- package/integrations/react.d.ts +0 -10270
- package/integrations/react.js +0 -1
- /package/assets/core/{cesdk-v1.75.0-rc.5-MLEZSZ4D.data → cesdk-v1.75.1-rc.0-MLEZSZ4D.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -3476,6 +3476,25 @@ export declare class BlockAPI {
|
|
|
3476
3476
|
* @param locked - Whether aspect ratio should be locked.
|
|
3477
3477
|
*/
|
|
3478
3478
|
setCropAspectRatioLocked(id: DesignBlockId, locked: boolean): void;
|
|
3479
|
+
/**
|
|
3480
|
+
* Checks whether the "Original" crop preset (`ContentAspectRatio`) can be applied to a block.
|
|
3481
|
+
*
|
|
3482
|
+
* This runs the same preliminary check the apply path performs: it resolves the intrinsic
|
|
3483
|
+
* content dimensions from the block's image/video fill (an image fill resolves only from its
|
|
3484
|
+
* `sourceSet`; a video fill resolves from its `sourceSet` or the first decoded frame). Use it
|
|
3485
|
+
* to gate UI that would otherwise call the preset and fail — e.g. an unreplaced placeholder
|
|
3486
|
+
* image fill with an empty `sourceSet`.
|
|
3487
|
+
*
|
|
3488
|
+
* ```javascript
|
|
3489
|
+
* const canRevert = engine.block.canRevertToOriginalRatio(block);
|
|
3490
|
+
* ```
|
|
3491
|
+
*
|
|
3492
|
+
* @category Block Crop
|
|
3493
|
+
* @param id - The block to query.
|
|
3494
|
+
* @returns True if the preset would resolve, false if it cannot (no/placeholder fill, empty
|
|
3495
|
+
* sourceSet, video not yet decoded, or unsupported fill type).
|
|
3496
|
+
*/
|
|
3497
|
+
canRevertToOriginalRatio(id: DesignBlockId): boolean;
|
|
3479
3498
|
/**
|
|
3480
3499
|
* Checks if a block has an opacity property.
|
|
3481
3500
|
*
|
|
@@ -9577,7 +9596,7 @@ export declare const SceneModeValues: readonly ["Design", "Video"];
|
|
|
9577
9596
|
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';
|
|
9578
9597
|
|
|
9579
9598
|
/** @public */
|
|
9580
|
-
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' | (string & {});
|
|
9599
|
+
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 & {});
|
|
9581
9600
|
|
|
9582
9601
|
/** @public */
|
|
9583
9602
|
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 & {});
|
|
@@ -9845,6 +9864,7 @@ export declare interface Settings {
|
|
|
9845
9864
|
|
|
9846
9865
|
|
|
9847
9866
|
|
|
9867
|
+
|
|
9848
9868
|
|
|
9849
9869
|
|
|
9850
9870
|
}
|