Skip to content

Commit f69b995

Browse files
authored
去除translate
1 parent ac9dbc2 commit f69b995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

散点图-高清.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113

114114
// 绘制图表轴、标签和标记
115115
function drawLineLabelMarkers(){
116-
ctx.translate(0.5,0.5); // 当只绘制1像素的线的时候,坐标点需要偏移,这样才能画出1像素实线
116+
//ctx.translate(0.5,0.5); // 当只绘制1像素的线的时候,坐标点需要偏移,这样才能画出1像素实线
117117
ctx.font = "24px Arial";
118118
ctx.lineWidth = 2;
119119
ctx.fillStyle = "#000";
@@ -125,7 +125,7 @@
125125

126126
// 绘制标记
127127
drawMarkers();
128-
ctx.translate(-0.5,-0.5); // 还原位置
128+
//ctx.translate(-0.5,-0.5); // 还原位置
129129
}
130130

131131
// 画线的方法

0 commit comments

Comments
 (0)