Commit 0d8de4c6 by zhuzhequan

数据调整

parent 54b08c25
...@@ -294,7 +294,6 @@ export default { ...@@ -294,7 +294,6 @@ export default {
// 计算image相对于line的坐标位置 // 计算image相对于line的坐标位置
const relativeX = imageRect.left - lineRect.left; const relativeX = imageRect.left - lineRect.left;
const relativeY = imageRect.top - lineRect.top; const relativeY = imageRect.top - lineRect.top;
// 获取图片的宽高 // 获取图片的宽高
let w = image.clientWidth; // 图片宽 let w = image.clientWidth; // 图片宽
let h = image.clientHeight; // 图片高 let h = image.clientHeight; // 图片高
...@@ -314,12 +313,12 @@ export default { ...@@ -314,12 +313,12 @@ export default {
}); });
// 返回计算结果 // 返回计算结果
return { return {
x: Number(x_mm.toFixed(1)), x: Number((x_mm - 0.8).toFixed(1)),
y: Number(y_mm.toFixed(1)), y: Number((y_mm - 0.9).toFixed(1)),
w: Number((w_mm - 0.3).toFixed(1)), w: Number((w_mm - 0.3).toFixed(1)),
h: Number((h_mm - 0.3).toFixed(1)), h: Number((h_mm - 0.3).toFixed(1)),
r r
}; }
}, },
async getPrintCmd() { async getPrintCmd() {
......
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