Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions types/cropperjs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,19 +312,19 @@ declare namespace cropperjs {
/**
* the offset left of the crop box
*/
left?: number;
left: number;
/**
* the offset top of the crop box
*/
top?: number;
top: number;
/**
* the width of the crop box
*/
width?: number;
width: number;
/**
* the height of the crop box
*/
height?: number;
height: number;
}
interface CanvasData {
/**
Expand Down Expand Up @@ -516,7 +516,7 @@ declare class cropperjs {
/**
* Change the cropped area position and size with new data (base on the original image).
*/
setData(data: cropperjs.Data): void;
setData(data: Partial<cropperjs.Data>): void;

/**
* Output the container size data.
Expand Down Expand Up @@ -545,7 +545,7 @@ declare class cropperjs {
/**
* Change the canvas (image wrapper) position and size with new data.
*/
setCanvasData(data: cropperjs.CanvasData): void;
setCanvasData(data: Partial<cropperjs.CanvasData>): void;

/**
* Output the crop box position and size data.
Expand All @@ -555,7 +555,7 @@ declare class cropperjs {
/**
* Change the crop box position and size with new data.
*/
setCropBoxData(data: cropperjs.CropBoxData): void;
setCropBoxData(data: Partial<cropperjs.CropBoxData>): void;

/**
* Get a canvas drawn the cropped image.
Expand Down