this.defaults = {
// crop选择器
el: '#crop',
// 触发器
cp: '#cropImg',
// crop背景色
cropBgColor: 'rgba(0, 0, 0, .4)',
// crop img地址
imgSrc: '',
// 不用修改
imageBox: '.crop-wrap-content',
thumbBox: '.crop-wrap-thum',
spinner: '.crop-wrap-spinner',
// 返回裁剪之后图片的base64和blob二进制
callback: function (dataURL, dataBlob) {
console.log(dataURL, dataBlob);
}
};
-
Notifications
You must be signed in to change notification settings - Fork 1
tuxingsheng/cropbox
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
原生Js的图片裁剪
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published