big updat:
- update dependencies - add webp support and webp conversion for profile images
This commit is contained in:
parent
19c3dbb42d
commit
95aaaa69ea
244 changed files with 121382 additions and 86 deletions
20
node_modules/super-image-cropper/esm/lib/helper.d.ts
generated
vendored
Normal file
20
node_modules/super-image-cropper/esm/lib/helper.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { IImageData } from '../index';
|
||||
export type GetArrTypeUnion<T extends any[]> = T extends (infer I)[] ? I : never;
|
||||
export type IImageLoadData = {
|
||||
imageInstance: HTMLImageElement;
|
||||
data: Event;
|
||||
imageType: IImageTypeInfo | null;
|
||||
};
|
||||
export interface IImageTypeInfo {
|
||||
ext: string;
|
||||
mime: string;
|
||||
}
|
||||
export interface IGetImageParams {
|
||||
src?: string;
|
||||
crossOrigin?: '' | 'anonymous' | 'use-credentials';
|
||||
}
|
||||
export declare const getImageInfo: (params: IGetImageParams) => Promise<IImageData>;
|
||||
export declare const getImageType: (imageBufferData: ArrayBuffer) => Promise<IImageTypeInfo | null>;
|
||||
export declare const loadImage: (params: IGetImageParams) => Promise<IImageLoadData>;
|
||||
export declare const transformImageData2ArrayBuffer: (image: HTMLImageElement) => ArrayBufferLike;
|
||||
export declare const getImageBufferFromRemote: (url?: string) => Promise<ArrayBuffer>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue