This is a simple paintbrush application built using HTML, SASS, and TypeScript. It provides a canvas where users can draw using their mouse. The app allows for easy customization and provides a responsive interface
When switching from any shape to a square shape in the drawing application, there is a bug where both the square and the previous shape are drawn on the canvas. Additionally, the previous shape is drawn at the last coordinates before the switch, using the current color settings. This behavior is incorrect, and only the square shape should be drawn when it is selected.
Steps to reproduce:
Open the drawing application.
Select any shape other than a square (e.g., circle, star, polygon).
Clear the canvas.
Select the square shape.
Start drawing on the canvas.
Expected behavior:
When switching to the square shape, only the square shape should be drawn on the canvas, starting from the current cursor position. There should be no remnants of the previous shape.
Actual behavior:
Both the square shape and the previous shape are drawn on the canvas. The previous shape is drawn at the last coordinates before the switch, using the current color settings.
Description:
When switching from any shape to a square shape in the drawing application, there is a bug where both the square and the previous shape are drawn on the canvas. Additionally, the previous shape is drawn at the last coordinates before the switch, using the current color settings. This behavior is incorrect, and only the square shape should be drawn when it is selected.
Steps to reproduce:
Expected behavior:
When switching to the square shape, only the square shape should be drawn on the canvas, starting from the current cursor position. There should be no remnants of the previous shape.
Actual behavior:
Both the square shape and the previous shape are drawn on the canvas. The previous shape is drawn at the last coordinates before the switch, using the current color settings.