Commit a26c5fc3 authored by yaya's avatar yaya

feat:添加图片裁剪数据传参优化

parent fc843f07
......@@ -171,9 +171,8 @@ export default {
const { w, h } = options.mask
const obj = {
width: rectW,
height: rectH,
width: Math.ceil(rectW),
height: Math.ceil(rectH),
x: Math.ceil(rectW / 2 - w / 2 - offsetX),
y: Math.ceil(rectH / 2 - h / 2 - offsetY),
maskW: w,
......
......@@ -203,9 +203,8 @@ export default {
const { w, h } = options.mask
const obj = {
width: rectW,
height: rectH,
width: Math.ceil(rectW),
height: Math.ceil(rectH),
x: Math.ceil(rectW / 2 - w / 2 - offsetX),
y: Math.ceil(rectH / 2 - h / 2 - offsetY),
maskW: w,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment