We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var crop = new ImgCrop({ areaEl: "#J_CropBox", initialXY: [10, 10], initWidth: 200, initHeight: 200, minHeight: 100, minWidth: 100, areaWidth: 300, areaHeight: 300, //previewEl: "#J_PrevBox_75",//不需要不配置 //viewWidth: 75, //viewHeight: 75, previewArrayParam: [ { viewEl: '#J_PrevBox_180', viewWidth: 180, viewHeight: 180 }, { viewEl: '#J_PrevBox_75', viewWidth: 75, viewHeight: 75 }, { viewEl: '#J_PrevBox_50', viewWidth: 50, viewHeight: 50 }, { viewEl: '#J_PrevBox_25', viewWidth: 25, viewHeight: 25 }], touchable: true, resizable: true, ratio: true, maskColor: '#000', maskOpacity: '0.6', cubesColor: '#fff', borderColor: '#fff', url: 'http://img01.taobaocdn.com/imgextra/i1/14888019145001501/T1_iIPXl8dXXXXXXXX_!!855984888-0-pix.jpg' });
crop.on('imgload drag resize', function () { S.one('#J_InfoBox').val(crop.toString(4)); //S.log(S.JSON.stringify(crop.getOriginalSize())); //S.log(S.JSON.stringify(crop.getDisplaySize())); }); crop.render();
修改并不多
The text was updated successfully, but these errors were encountered:
No branches or pull requests
var crop = new ImgCrop({
areaEl: "#J_CropBox",
initialXY: [10, 10],
initWidth: 200,
initHeight: 200,
minHeight: 100,
minWidth: 100,
areaWidth: 300,
areaHeight: 300,
//previewEl: "#J_PrevBox_75",//不需要不配置
//viewWidth: 75,
//viewHeight: 75,
previewArrayParam: [
{ viewEl: '#J_PrevBox_180', viewWidth: 180, viewHeight: 180 },
{ viewEl: '#J_PrevBox_75', viewWidth: 75, viewHeight: 75 },
{ viewEl: '#J_PrevBox_50', viewWidth: 50, viewHeight: 50 },
{ viewEl: '#J_PrevBox_25', viewWidth: 25, viewHeight: 25 }],
touchable: true,
resizable: true,
ratio: true,
maskColor: '#000',
maskOpacity: '0.6',
cubesColor: '#fff',
borderColor: '#fff',
url: 'http://img01.taobaocdn.com/imgextra/i1/14888019145001501/T1_iIPXl8dXXXXXXXX_!!855984888-0-pix.jpg'
});
修改并不多
The text was updated successfully, but these errors were encountered: