excalidraw/packages
Ryan Di 107eae3916
refactor: separate resizing logic from pointer (#8155)
* separate resizing logic for a single element

* replace resize logic in stats

* do not recompute width and height from points when they're already given

* correctly update linear elements' position when resized

* update snapshots

* lint

* simplify linear resizing logic

* fix initial scale for aspect ratio

* update tests for linear elements

* test typo

* separate pointer from resizing for multiple elements

* lint and simplify

* fix tests

* lint

* provide scene in param instead

* type

* refactor code

* fix floating in tests

* remove restrictions/checks on width & height

* update pointer to dimension to prevent regression

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
2024-12-23 11:10:35 +01:00
..
excalidraw refactor: separate resizing logic from pointer (#8155) 2024-12-23 11:10:35 +01:00
math feat: image cropping (#8613) 2024-10-21 22:26:52 +02:00
utils feat: in canvas links between shapes (#8812) 2024-11-26 18:53:25 +01:00
tsconfig.dev.json build: decouple package deps and introduce yarn workspaces (#7415) 2023-12-12 11:32:51 +05:30
tsconfig.prod.json build: decouple package deps and introduce yarn workspaces (#7415) 2023-12-12 11:32:51 +05:30