Commit 8b5d2d7
authored
Fix lineWidth typo and adjust ctx.restore() placement
Fix lineWidth typo and adjust ctx.restore() placement
Corrected 'ctx.linewidth' to 'ctx.lineWidth' to properly set line width in Canvas context. Moved 'ctx.restore()' to after both drawing operations to ensure context is restored at the appropriate time.1 parent 4f4e9ad commit 8b5d2d7
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
| 550 | + | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
554 | 553 | | |
555 | 554 | | |
556 | | - | |
557 | 555 | | |
558 | 556 | | |
559 | | - | |
| 557 | + | |
560 | 558 | | |
561 | 559 | | |
| 560 | + | |
562 | 561 | | |
563 | 562 | | |
564 | 563 | | |
| |||
0 commit comments