We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 403ad74 commit 1c8e6dfCopy full SHA for 1c8e6df
1 file changed
cutter/README.md
@@ -3,8 +3,8 @@
3
//init
4
var cutter = new Cutter(container, {
5
imgUrl: url,
6
- conWidth: document.body.clientWidth, //裁剪区域宽度
7
- conHeight: document.body.clientWidth * 1.2, //裁剪区域高度
+ conWidth: container_width, //裁剪区域宽度
+ conHeight: container_height, //裁剪区域高度
8
speed: 2, //滑动速度
9
callback: function() {
10
//doSomething... 创建成功回调
0 commit comments