@cesdk/engine 1.41.1 → 1.42.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.41.1-6PH6GWLE.wasm → cesdk-v1.42.0-62IQFALE.wasm} +0 -0
- package/assets/core/worker-host-v1.42.0.js +14 -0
- package/index.d.ts +6 -2
- package/index.js +1 -1
- package/package.json +1 -1
- package/assets/core/worker-host-v1.41.1.js +0 -14
- /package/assets/core/{cesdk-v1.41.1-XHZXX7DG.data → cesdk-v1.42.0-XHZXX7DG.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -1038,6 +1038,8 @@ export declare class BlockAPI {
|
|
|
1038
1038
|
getHeightMode(id: DesignBlockId): SizeMode;
|
|
1039
1039
|
/**
|
|
1040
1040
|
* Update a block's width and optionally maintain the crop.
|
|
1041
|
+
* If the crop is maintained, the crop values will be automatically adjusted.
|
|
1042
|
+
* The content fill mode `Cover` is only kept if the `features/transformEditsRetainCoverMode` setting is enabled, otherwise it will change to `Crop`.
|
|
1041
1043
|
* Required scope: 'layer/resize'
|
|
1042
1044
|
* @param id - The block to update.
|
|
1043
1045
|
* @param value - The new width of the block.
|
|
@@ -1053,6 +1055,8 @@ export declare class BlockAPI {
|
|
|
1053
1055
|
setWidthMode(id: DesignBlockId, mode: SizeMode): void;
|
|
1054
1056
|
/**
|
|
1055
1057
|
* Update a block's height and optionally maintain the crop.
|
|
1058
|
+
* If the crop is maintained, the crop values will be automatically adjusted.
|
|
1059
|
+
* The content fill mode `Cover` is only kept if the `features/transformEditsRetainCoverMode` setting is enabled, otherwise it will change to `Crop`.
|
|
1056
1060
|
* Required scope: 'layer/resize'
|
|
1057
1061
|
* @param id - The block to update.
|
|
1058
1062
|
* @param value - The new height of the block.
|
|
@@ -1527,7 +1531,7 @@ export declare class BlockAPI {
|
|
|
1527
1531
|
* Set the crop translation in x direction of the given design block.
|
|
1528
1532
|
* Required scope: 'layer/crop'
|
|
1529
1533
|
* @param id - The block whose crop should be set.
|
|
1530
|
-
* @param
|
|
1534
|
+
* @param translationX - The translation in x direction.
|
|
1531
1535
|
*/
|
|
1532
1536
|
setCropTranslationX(id: DesignBlockId, translationX: number): void;
|
|
1533
1537
|
/**
|
|
@@ -1539,7 +1543,7 @@ export declare class BlockAPI {
|
|
|
1539
1543
|
setCropTranslationY(id: DesignBlockId, translationY: number): void;
|
|
1540
1544
|
/**
|
|
1541
1545
|
* Resets the manually set crop of the given design block.
|
|
1542
|
-
* The block's content fill mode is set to '
|
|
1546
|
+
* The block's content fill mode is set to 'cover'.
|
|
1543
1547
|
* If the block has a fill, the crop values are updated so that it covers the block.
|
|
1544
1548
|
* Required scope: 'layer/crop'
|
|
1545
1549
|
* @param id - The block whose crop should be reset.
|