@cesdk/engine 1.40.0 → 1.41.0-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/index.d.ts CHANGED
@@ -1037,12 +1037,13 @@ export declare class BlockAPI {
1037
1037
  */
1038
1038
  getHeightMode(id: DesignBlockId): SizeMode;
1039
1039
  /**
1040
- * Update a block's width.
1040
+ * Update a block's width and optionally maintain the crop.
1041
1041
  * Required scope: 'layer/resize'
1042
1042
  * @param id - The block to update.
1043
1043
  * @param value - The new width of the block.
1044
+ * @param maintainCrop - Whether or not the crop values, if available, should be automatically adjusted.
1044
1045
  */
1045
- setWidth(id: DesignBlockId, value: number): void;
1046
+ setWidth(id: DesignBlockId, value: number, maintainCrop?: boolean): void;
1046
1047
  /**
1047
1048
  * Set a block's mode for its width.
1048
1049
  * Required scope: 'layer/resize'
@@ -1051,12 +1052,13 @@ export declare class BlockAPI {
1051
1052
  */
1052
1053
  setWidthMode(id: DesignBlockId, mode: SizeMode): void;
1053
1054
  /**
1054
- * Update a block's height.
1055
+ * Update a block's height and optionally maintain the crop.
1055
1056
  * Required scope: 'layer/resize'
1056
1057
  * @param id - The block to update.
1057
1058
  * @param value - The new height of the block.
1059
+ * @param maintainCrop - Whether or not the crop values, if available, should be automatically adjusted.
1058
1060
  */
1059
- setHeight(id: DesignBlockId, value: number): void;
1061
+ setHeight(id: DesignBlockId, value: number, maintainCrop?: boolean): void;
1060
1062
  /**
1061
1063
  * Set a block's mode for its height.
1062
1064
  * Required scope: 'layer/resize'
@@ -1537,7 +1539,8 @@ export declare class BlockAPI {
1537
1539
  setCropTranslationY(id: DesignBlockId, translationY: number): void;
1538
1540
  /**
1539
1541
  * Resets the manually set crop of the given design block.
1540
- * The block's content fill mode is set to 'cover'.
1542
+ * The block's content fill mode is set to 'Crop'.
1543
+ * If the block has a fill, the crop values are updated so that it covers the block.
1541
1544
  * Required scope: 'layer/crop'
1542
1545
  * @param id - The block whose crop should be reset.
1543
1546
  */
@@ -4587,7 +4590,7 @@ export declare type SceneMode = 'Design' | 'Video';
4587
4590
  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';
4588
4591
 
4589
4592
  /** @public */
4590
- export declare type SettingsBool = 'controlGizmo/showCropHandles' | 'controlGizmo/showCropScaleHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showScaleHandles' | 'doubleClickToCropEnabled' | 'features/singlePageModeEnabled' | 'features/pageCarouselEnabled' | 'features/transformEditsRetainCoverMode' | 'mouse/enableScroll' | 'mouse/enableZoom' | 'page/allowCropInteraction' | 'page/allowMoveInteraction' | 'page/allowResizeInteraction' | 'page/allowRotateInteraction' | 'page/dimOutOfPageAreas' | 'page/restrictResizeInteractionToFixedAspectRatio' | 'page/title/appendPageName' | 'page/title/show' | 'page/title/showOnSinglePage' | 'page/title/showPageTitleTemplate' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'blockAnimations/enabled' | 'showBuildVersion' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning';
4593
+ export declare type SettingsBool = 'controlGizmo/showCropHandles' | 'controlGizmo/showCropScaleHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showScaleHandles' | 'doubleClickToCropEnabled' | 'features/singlePageModeEnabled' | 'features/pageCarouselEnabled' | 'features/transformEditsRetainCoverMode' | 'mouse/enableScroll' | 'mouse/enableZoom' | 'page/allowCropInteraction' | 'page/allowMoveInteraction' | 'page/allowResizeInteraction' | 'page/allowRotateInteraction' | 'page/dimOutOfPageAreas' | 'page/restrictResizeInteractionToFixedAspectRatio' | 'page/moveChildrenWhenCroppingFill' | 'page/title/appendPageName' | 'page/title/show' | 'page/title/showOnSinglePage' | 'page/title/showPageTitleTemplate' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'blockAnimations/enabled' | 'showBuildVersion' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning';
4591
4594
 
4592
4595
  /** @public
4593
4596
  */