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
31
node_modules/super-image-cropper/esm/lib/cropper.d.ts
generated
vendored
Normal file
31
node_modules/super-image-cropper/esm/lib/cropper.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import { ICommonCropOptions } from '../index';
|
||||
import type { IParsedFrameInfo } from './decoder';
|
||||
export interface IFrameCropperProps {
|
||||
commonCropOptions: ICommonCropOptions;
|
||||
}
|
||||
export declare class FrameCropper {
|
||||
private frames;
|
||||
private parsedFrames;
|
||||
private commonCropOptions;
|
||||
private convertorCanvas;
|
||||
private containerCanvas;
|
||||
private convertCtx;
|
||||
private containerCtx;
|
||||
private cropperJsOpts;
|
||||
private offsetX;
|
||||
private offsetY;
|
||||
private containerCenterX;
|
||||
private containerCenterY;
|
||||
private resultFrames;
|
||||
constructor(props: IFrameCropperProps);
|
||||
init({ commonCropOptions }: IFrameCropperProps): void;
|
||||
cropGif(parsedFrameInfo: IParsedFrameInfo): Promise<ImageData[]>;
|
||||
cropStaticImage(canvasImageContainer: HTMLCanvasElement): ImageData;
|
||||
private transformFrame;
|
||||
private drawImgDataToCanvas;
|
||||
private ifDebugRun;
|
||||
private renderEachFrame;
|
||||
private setupCanvas;
|
||||
private setCanvasWH;
|
||||
private frameToImgData;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue