Skip to content

Commit

Permalink
Merge pull request #1160 from Guyidingsanyu/feature/autotest-20240221
Browse files Browse the repository at this point in the history
feat: 优化
  • Loading branch information
jtsky authored Feb 21, 2024
2 parents 2d065b9 + cd53f04 commit bf788c7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Web/packages/web/src/components/ScanerComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ export default {
},
},
methods: {
// 画线
/**
*
* @param {开始坐标} begin
* @param {结束坐标} end
*/
drawLine(begin, end) {
this.canvas.beginPath();
this.canvas.moveTo(begin.x, begin.y);
Expand All @@ -113,7 +117,10 @@ export default {
this.canvas.strokeStyle = this.lineColor;
this.canvas.stroke();
},
// 画框
/**
*
* @param {*} location
*/
drawBox(location) {
if (this.drawOnfound) {
this.drawLine(location.topLeftCorner, location.topRightCorner);
Expand Down

0 comments on commit bf788c7

Please # to comment.