Skip to content

Commit

Permalink
fix: transform the ViewMode enum too
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Jul 17, 2019
1 parent f4e306f commit 153f9e3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
declare namespace Cropper {
type DragMode = 'crop' | 'move' | 'none';

const enum ViewMode {
Free = 0,
CanvasWidthAndHeightShouldNotBeLessThanCropBoxSize = 1,
CanvasWidthOrHeightShouldNotBeLessThanContainerSize = 2,
CanvasWidthAndHeightShouldNotBeLessThanContainerSize = 3,
}

type ViewMode = 0 | 1 | 2 | 3;
type ImageSmoothingQuality = 'low' | 'medium' | 'high';

export interface Data {
Expand Down

0 comments on commit 153f9e3

Please sign in to comment.