1.0.12 • Published 9 years ago

mobil-crop v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
9 years ago

Mobil crop

alt tag

Install dependencies

npm install mobil-crop

Use

var crop = new MobilCrop({
    preview: image for preview,
    onChange: Your response processing function,
    onClose: Your function is to handle the response, together with the closure of MobilCrop,
    previewBox: document.getElementById('yourDOMElement'),
    buttons:{
        save : 'text on buttons',
        cancel: 'text on buttons'
    }
});
crop.progress(load percentage);
crop.init(uploaded image);

Examples

var crop = new MobilCrop({
    preview: 'https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png',
    onChange: cropImage,
    onClose: delMobilCrop
});
crop.progress(40);
crop.init('https://www.google.ru/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png');
function cropImage(cords){
    crop=null;
    console.log('cords', cords);
}
function delMobilCrop(){
    crop=null;
}
1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.0

9 years ago

1.0.1

9 years ago

0.0.1

9 years ago