F-star / suika

A Web Graphics Editor Built with Canvas. 基于 Canvas 实现的图形编辑器
https://blog.fstars.wang/app/suika/
MIT License
535 stars 85 forks source link

[bug] path compress into a line when resize multiple shapes #187

Open F-star opened 1 month ago

F-star commented 1 month ago

When scaling multiple shapes, the paths unexpectedly compress into a line and cannot be restored.

flatten-path-when-resize-multi-graphics

we will add "normalizedSize" attribute which will not lose path origin information.

image

F-star commented 1 month ago

"normalizedSize" is complex, I decide to choose another option.

prevent selected box width and height from being 0

F-star commented 1 month ago

how figma do

figma-resolve-zero-height