Skip to content

Commit

Permalink
解决画图工具绘制图形比例问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zcZhang123 committed Oct 24, 2019
1 parent 3b5ca4a commit bfaec2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/klineChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ export default {
let canvasDocument = document.getElementById("drawToolCanvas");
canvasDocument.style.width = klineDocument.offsetWidth - 35 + "px";
canvasDocument.style.height = klineDocument.offsetHeight + "px";
canvasDocument.width = klineDocument.offsetWidth - 35;
canvasDocument.height = klineDocument.offsetHeight;
},
// 绘制直线
drawLine() {
Expand Down

0 comments on commit bfaec2a

Please sign in to comment.