Alex Kim 6459ccda6a
feat: add flipping for multiple elements (#5578)
* feat: add flipping when resizing multiple elements

* fix: image elements not flipping its content

* test: fix accidental resizing in grouping test

* fix: angles not flipping vertically when resizing

* feat: add flipping multiple elements with a command

* revert: image elements not flipping its content

This reverts commit cb989a6c66e62a02a8c04ce41f12507806c8d0a0.

* fix: add special cases for flipping text & images

* fix: a few corner cases for flipping

* fix: remove angle flip

* fix: bound text scaling when resizing

* fix: linear elements drifting away after multiple flips

* revert: fix linear elements drifting away after multiple flips

This reverts commit bffc33dd3ffe56c72029eee6aca843d992bac7ab.

* fix: linear elements unstable bounds

* revert: linear elements unstable bounds

This reverts commit 22ae9b02c4a49f0ed6448c27abe1969cf6abb1e3.

* fix: hand-drawn lines shift after flipping

* test: fix flipping tests

* test: fix the number of context menu items

* fix: incorrect scaling due to ignoring bound text when finding selection bounds

* fix: bound text coordinates not being updated

* fix: lines bound text rotation

* fix: incorrect placement of bound lines on flip

* remove redundant predicates in actionFlip

* update test

* refactor resizeElement with some renaming and comments

* fix grouped bounded text elements not being flipped correctly

* combine mutation for bounded text element

* remove incorrect return

* fix: linear elements bindings after flipping

* revert: remove incorrect return

This reverts commit e6b205ca900b504fe982e4ac1b3b19dcfca246b8.

* fix: minimum size for all elements in selection

---------

Co-authored-by: Ryan Di <ryan.weihao.di@gmail.com>
2023-05-25 16:27:41 +02:00
..
2023-05-18 16:06:27 +02:00
2022-05-07 19:12:31 +02:00
2023-05-18 16:06:27 +02:00
2023-05-18 16:06:27 +02:00
2023-05-18 16:06:27 +02:00
2022-03-02 11:37:12 +05:30
2020-11-06 21:06:39 +01:00
2022-03-02 11:37:12 +05:30
2020-11-06 21:06:39 +01:00
2020-11-06 21:06:39 +01:00
2023-05-18 16:06:27 +02:00
2021-10-21 22:05:48 +02:00
2022-07-22 11:20:36 +05:30
2022-12-05 21:03:13 +05:30
2020-04-16 14:23:39 +02:00
2020-01-02 11:03:48 -08:00
2023-05-18 16:06:27 +02:00
2023-05-18 16:06:27 +02:00