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 1e5c1d7 commit 1c6dbbb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lib/resizing-cropping-images/resizing-cropping-images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@ const CONFIG_DEFAULT = <ImgCropperConfig>{
templateUrl: 'resizing-cropping-images.html'
})
export class LyResizingCroppingImages {
/**
* styles
* @ignore
*/
classes = this.theme.addStyleSheet(styles, STYLE_PRIORITY);
/** @deprecated */
result: string;
private _fileName: string;

Expand All @@ -152,7 +157,7 @@ export class LyResizingCroppingImages {
set config(val: ImgCropperConfig) {
this._config = mergeDeep({}, CONFIG_DEFAULT, val);
}
get config() {
get config(): ImgCropperConfig {
return this._config;
}
/** get current scale */
Expand All @@ -170,7 +175,7 @@ export class LyResizingCroppingImages {
@Output() loaded = new EventEmitter<ImgCropperEvent>();
/** On crop new image */
@Output() cropped = new EventEmitter<ImgCropperEvent>();
/** issues an error when the loaded image is not valid */
/** Emit an error when the loaded image is not valid */
@Output() error = new EventEmitter<ImgCropperEvent>();

private defaultType: string;
Expand Down

0 comments on commit 1c6dbbb

Please sign in to comment.