I noticed that placing the rectangle tool is kinda shakey, and it often produces light vertical or horizontal borders depending on how exactly your mouse positions it. (at 1x zoom, undesirable for image saving)
The problem with the tool is fairly obvious if you zoom into a low resolution image (say 3x3 pixels) and try to use it. It tries to render at non-integer positions and widths.
This PR makes placing a rectangle on the canvas more precise, and viable to use if making pixel perfect adjustments.
Additionally:
Radius is now allowed to be 0
getParams() in base tools returns number instead of param definition object if passing object definition for number input
Won't create rectangles with negative width/height
I noticed that placing the rectangle tool is kinda shakey, and it often produces light vertical or horizontal borders depending on how exactly your mouse positions it. (at 1x zoom, undesirable for image saving)
The problem with the tool is fairly obvious if you zoom into a low resolution image (say 3x3 pixels) and try to use it. It tries to render at non-integer positions and widths.
This PR makes placing a rectangle on the canvas more precise, and viable to use if making pixel perfect adjustments.
Additionally: