Commit f8a6556d authored by zhengke's avatar zhengke

修改

parent b7219538
...@@ -2674,7 +2674,7 @@ ...@@ -2674,7 +2674,7 @@
dialogVisible:false, dialogVisible:false,
showCanvas:false, showCanvas:false,
linewidth: 3, //线条粗细,选填 linewidth: 10, //线条粗细,选填
color: "black", //线条颜色,选填 color: "black", //线条颜色,选填
background: "#fff", //线条背景,选填 background: "#fff", //线条背景,选填
dataList:[], dataList:[],
...@@ -3222,7 +3222,8 @@ ...@@ -3222,7 +3222,8 @@
el.appendChild(canvas); el.appendChild(canvas);
canvas.width = el.clientWidth; canvas.width = el.clientWidth;
canvas.height = el.clientHeight; canvas.height = el.clientHeight;
cxt.fillStyle = this.background; //填充绘图的背景颜色 //cxt.fillStyle = this.background; //填充绘图的背景颜色
cxt.fillStyle='rgba(255, 255, 255, 0)';
cxt.fillRect(0, 0, canvas.width, canvas.height); //绘制“已填色”的矩形 cxt.fillRect(0, 0, canvas.width, canvas.height); //绘制“已填色”的矩形
cxt.strokeStyle = this.color; //笔触的颜色 cxt.strokeStyle = this.color; //笔触的颜色
cxt.lineCap = "round"; //线条末端线帽的样式 cxt.lineCap = "round"; //线条末端线帽的样式
......
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