@cesdk/engine 1.8.0-alpha.4 → 1.8.0-alpha.5
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.
|
File without changes
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export declare class AssetAPI {
|
|
|
93
93
|
* @param assetResult - A single assetResult of a `findAssets` query.
|
|
94
94
|
*/
|
|
95
95
|
defaultApplyAsset(assetResult: AssetResult): Promise<void>;
|
|
96
|
+
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
/**
|
|
@@ -1003,6 +1004,16 @@ export declare class BlockAPI {
|
|
|
1003
1004
|
* @param minScaleRatio - The minimal crop scale ratio to go down to.
|
|
1004
1005
|
*/
|
|
1005
1006
|
adjustCropToFillFrame(id: DesignBlockId, minScaleRatio: number): number;
|
|
1007
|
+
/**
|
|
1008
|
+
* Adjusts the crop in order to flip the content along its own horizontal axis.
|
|
1009
|
+
* @param block - The block whose crop should be updated.
|
|
1010
|
+
*/
|
|
1011
|
+
flipCropHorizontal(id: DesignBlockId): void;
|
|
1012
|
+
/**
|
|
1013
|
+
* Adjusts the crop in order to flip the content along its own vertical axis.
|
|
1014
|
+
* @param block - The block whose crop should be updated.
|
|
1015
|
+
*/
|
|
1016
|
+
flipCropVertical(id: DesignBlockId): void;
|
|
1006
1017
|
/**
|
|
1007
1018
|
* Query if the given block has an opacity.
|
|
1008
1019
|
* @param id - The block to query.
|
|
@@ -1614,6 +1625,13 @@ export declare class BlockAPI {
|
|
|
1614
1625
|
* @returns whether the key exists.
|
|
1615
1626
|
*/
|
|
1616
1627
|
hasMetadata(id: DesignBlockId, key: string): boolean;
|
|
1628
|
+
/**
|
|
1629
|
+
* Query all metadata keys that exist on this block.
|
|
1630
|
+
* @param id - The block whose metadata will be accessed.
|
|
1631
|
+
* @returns A list of all metadata keys on this block or an error,
|
|
1632
|
+
* if the block is invalid.
|
|
1633
|
+
*/
|
|
1634
|
+
findAllMetadata(id: DesignBlockId): string[];
|
|
1617
1635
|
/**
|
|
1618
1636
|
* Remove metadata associated with the key from the given block.
|
|
1619
1637
|
* If the key does not exist, this method will fail.
|
|
@@ -2408,6 +2426,7 @@ export declare class HTMLCreativeEngineCanvasElement extends HTMLElement {
|
|
|
2408
2426
|
connectedCallback(): void;
|
|
2409
2427
|
disconnectedCallback(): void;
|
|
2410
2428
|
|
|
2429
|
+
|
|
2411
2430
|
}
|
|
2412
2431
|
|
|
2413
2432
|
/** @public */
|