-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresizing-cropping-images.min.json
More file actions
1 lines (1 loc) · 4.1 KB
/
resizing-cropping-images.min.json
File metadata and controls
1 lines (1 loc) · 4.1 KB
1
{"componentList":[{"name":"LyResizingCroppingImages","selector":"'ly-img-cropper, ly-cropping'","inputs":"","exportAs":"","children":"/** On crop new image */\n@Output() cropped: EventEmitter\n/** Emit an error when the loaded image is not valid */\n@Output() error: EventEmitter\nisCropped: boolean\n/** When is loaded image & ready for crop */\nisLoaded: boolean\n/** On loaded new image */\n@Output() loaded: EventEmitter\n/**\n * Emit event `error` if the file size for the limit.\n * Note: It only works when the image is received from the `<input>` event.\n */\n@Input() maxFileSize: number\n@Output() scaleChange: EventEmitter\n@Input() config: ImgCropperConfig\n/** Get min scale */\nminScale: number | undefined\n/** Set scale */\n@Input() scale: number | undefined\ncenter(): void\n/** Clean the img cropper */\nclean(): void\n/**\n * Crop Image\n * Resizing & cropping image\n */\ncrop(config?: ImgCropperConfig): void\nfit(): void\n/** Ajustar a la pantalla */\nfitToScreen(): void\nrotate(degrees: number): void\nselectInputEvent(img: Event): void\n/** Load Image from URL */\nsetImageUrl(src: string, fn?: undefined | any): void\n/** Set the size of the image, the values can be 0 between 1, where 1 is the original size */\nsetScale(size?: undefined | number, noAutoCrop?: undefined | false | true): void\nupdatePosition(x?: undefined | number, y?: undefined | number): void\n/** + */\nzoomIn(): void\n/** - */\nzoomOut(): void"}],"directiveList":[],"enumerationList":[{"name":"ImgCropperError","children":"enum ImgCropperError {\n /** The loaded image exceeds the size limit set. */\n Size,\n /** The file loaded is not image. */\n Type\n}"},{"name":"ImgResolution","children":"enum ImgResolution {\n /** Resizing & cropping */\n Default,\n /** Only cropping */\n OriginalImage\n}"}],"interfaceList":[{"name":"ImgCropperConfig","children":"interface ImgCropperConfig {\n /** Set anti-aliased( default: true) */\n antiAliased: undefined | false | true,\n autoCrop: undefined | false | true,\n /** Background color( default: null), if is null in png is transparent but not in jpg. */\n fill: string | null,\n /** Cropper area height */\n height: number,\n /**\n * Emit event `error` if the file size for the limit.\n * Note: It only works when the image is received from the `<input>` event.\n */\n maxFileSize: number | null,\n output: ImgOutput | ImgResolution,\n /** If this is not defined, the new image will be automatically defined. */\n type: undefined | string,\n /** Cropper area width */\n width: number\n}"},{"name":"ImgCropperErrorEvent","children":"interface ImgCropperErrorEvent {\n /** Cropped image data URL */\n dataURL: undefined | string,\n /** Type of error */\n error: ImgCropperError,\n height: undefined | number,\n name: string | null,\n /** Original Image data URL */\n originalDataURL: undefined | string,\n position: undefined | any,\n /** Current rotation in degrees */\n rotation: undefined | number,\n scale: undefined | number,\n /** Size of the image in bytes */\n size: undefined | number,\n /** Filetype */\n type: undefined | string,\n width: undefined | number\n}"},{"name":"ImgCropperEvent","children":"interface ImgCropperEvent {\n /** Cropped image data URL */\n dataURL: undefined | string,\n height: undefined | number,\n name: string | null,\n /** Original Image data URL */\n originalDataURL: undefined | string,\n position: undefined | any,\n /** Current rotation in degrees */\n rotation: undefined | number,\n scale: undefined | number,\n /** Size of the image in bytes */\n size: undefined | number,\n /** Filetype */\n type: undefined | string,\n width: undefined | number\n}"},{"name":"ImgOutput","children":"interface ImgOutput {\n height: number,\n width: number\n}"}],"variableList":[{"name":"CONFIG_DEFAULT","children":"const CONFIG_DEFAULT = <ImgCropperConfig>{\n width: 250,\n height: 200,\n output: ImgResolution.Default,\n antiAliased: true\n}"},{"name":"STYLE_PRIORITY","children":"const STYLE_PRIORITY = -2"}],"ngModuleList":[{"name":"LyResizingCroppingImageModule","children":"import { LyResizingCroppingImageModule } from '@alyle/ui/resizing-cropping-images'"}]}