Skip to content

Commit

Permalink
fix(img-cropper): fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
alyleui committed Oct 29, 2018
1 parent e570b41 commit 9693075
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/lib/resizing-cropping-images/resizing-cropping-images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,18 @@ export class LyResizingCroppingImages {
/** @deprecated @ignore */
@Input() src: string;
@Input()
set config(val: ImgCropperConfig) {
this._config = mergeDeep({}, CONFIG_DEFAULT, val);
}
get config(): ImgCropperConfig {
return this._config;
}
/** get current scale */
get scale() {
set config(val: ImgCropperConfig) {
this._config = mergeDeep({}, CONFIG_DEFAULT, val);
}
/** Get current scale */
get scale(): number {
return this._scale;
}
/** get min scale */
get minScale() {
/** Get min scale */
get minScale(): number {
return this._minScale;
}
isLoaded: boolean;
Expand Down

0 comments on commit 9693075

Please sign in to comment.