1.0.12 • Published 10 years ago

mobil-crop v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.0

10 years ago

1.0.1

10 years ago

0.0.1

10 years ago