@spiffcommerce/core 39.1.3 → 39.2.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/CHANGELOG.md +6 -0
- package/dist/index.cjs +86 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.mjs +1277 -1267
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -737,7 +737,7 @@ declare class AssetService implements AssetManager {
|
|
|
737
737
|
uploadAsset(file: FileInfo, assetType: AssetType, anonymous?: boolean, temporary?: boolean): Promise<Asset>;
|
|
738
738
|
uploadFile(file: File, onProgress: (val: number) => void): Promise<Asset>;
|
|
739
739
|
removeBackgroundFromAsset(asset: Asset): Promise<Asset>;
|
|
740
|
-
vectorizeAsset(asset: Asset): Promise<Asset>;
|
|
740
|
+
vectorizeAsset(asset: Asset, maxColors?: number | undefined): Promise<Asset>;
|
|
741
741
|
removePersistedAsset(assetKey: string): void;
|
|
742
742
|
getPersistedAssets(): PersistedAsset[];
|
|
743
743
|
registerPersistedAssetListener(callback: () => void): void;
|
|
@@ -5588,7 +5588,12 @@ declare class FrameStepHandle extends StepHandle<FrameStepData> {
|
|
|
5588
5588
|
* @returns A promise that resolves with the newly generated Asset.
|
|
5589
5589
|
*/
|
|
5590
5590
|
removeBackgroundFromImageSelection(applyNewAsset?: boolean): Promise<Asset>;
|
|
5591
|
-
|
|
5591
|
+
/**
|
|
5592
|
+
* Takes an asset and vectorizes it, stores the new asset in the state, and returns the new asset.
|
|
5593
|
+
* @param asset An optional asset to use for vectorization. If not supplied, the method will attempt to vectorize the current image selection. If there is no current image selection, the method will throw an error.
|
|
5594
|
+
* @returns The newly vectorized asset.
|
|
5595
|
+
*/
|
|
5596
|
+
vectorize(asset?: Asset, maxColors?: number | undefined): Promise<Asset>;
|
|
5592
5597
|
getBackgroundRemovedImageSelection(): Promise<Asset | undefined>;
|
|
5593
5598
|
getVectorizedImageSelection(): Promise<Asset | undefined>;
|
|
5594
5599
|
hasOriginalImageSelection(): boolean;
|