mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-02 11:04:43 +00:00
Fix for line width
This commit is contained in:
parent
dce11e13ae
commit
0bf40b8bef
1 changed files with 2 additions and 0 deletions
|
|
@ -61,6 +61,8 @@
|
|||
ctx.moveTo(-this.width / 2, -this.height / 2);
|
||||
ctx.lineTo(this.width / 2, this.height / 2);
|
||||
|
||||
ctx.lineWidth = this.strokeWidth;
|
||||
|
||||
// TODO: test this
|
||||
// make sure setting "fill" changes color of a line
|
||||
// (by copying fillStyle to strokeStyle, since line is stroked, not filled)
|
||||
|
|
|
|||
Loading…
Reference in a new issue