From c6749404870cdfce6395801a93c09f4686682422 Mon Sep 17 00:00:00 2001 From: Guille Date: Sun, 17 Jul 2016 19:56:02 +0200 Subject: [PATCH] refactor(imagePicker): --- src/plugins/imagepicker.ts | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/plugins/imagepicker.ts b/src/plugins/imagepicker.ts index f4b1d7af7..45bacc98c 100644 --- a/src/plugins/imagepicker.ts +++ b/src/plugins/imagepicker.ts @@ -1,20 +1,21 @@ -import {Plugin, Cordova} from './plugin'; +import { Cordova, Plugin } from './plugin'; + export interface ImagePickerOptions { - // max images to be selected, defaults to 15. If this is set to 1, upon - // selection of a single image, the plugin will return it. - maximumImagesCount?: number; + // max images to be selected, defaults to 15. If this is set to 1, upon + // selection of a single image, the plugin will return it. + maximumImagesCount?: number; - // max width and height to allow the images to be. Will keep aspect - // ratio no matter what. So if both are 800, the returned image - // will be at most 800 pixels wide and 800 pixels tall. If the width is - // 800 and height 0 the image will be 800 pixels wide if the source - // is at least that wide. - width?: number; - height?: number; + // max width and height to allow the images to be. Will keep aspect + // ratio no matter what. So if both are 800, the returned image + // will be at most 800 pixels wide and 800 pixels tall. If the width is + // 800 and height 0 the image will be 800 pixels wide if the source + // is at least that wide. + width?: number; + height?: number; - // quality of resized image, defaults to 100 - quality?: number; + // quality of resized image, defaults to 100 + quality?: number; } /** @@ -55,4 +56,5 @@ export class ImagePicker { callbackOrder: 'reverse' }) static getPictures(options: ImagePickerOptions): Promise { return; } + }