You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
success/packages/excalidraw/components/Stats
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>
2 months ago
..
Angle.tsx chore: Unify math types, utils and functions (#8389) 6 months ago
CanvasGrid.tsx feat: split `gridSize` from enabled state & support custom `gridStep` (#8364) 7 months ago
Collapsible.tsx feat: Stats popup style tweaks (#8361) 7 months ago
Dimension.tsx refactor: separate resizing logic from pointer (#8155) 2 months ago
DragInput.scss feat: split `gridSize` from enabled state & support custom `gridStep` (#8364) 7 months ago
DragInput.tsx fix: context menu does not work after after dragging on StatsDragInput (#8386) 6 months ago
FontSize.tsx feat: support Stats bound text `fontSize` editing (#8187) 8 months ago
MultiAngle.tsx chore: Unify math types, utils and functions (#8389) 6 months ago
MultiDimension.tsx refactor: separate resizing logic from pointer (#8155) 2 months ago
MultiFontSize.tsx feat: support Stats bound text `fontSize` editing (#8187) 8 months ago
MultiPosition.tsx refactor: `point()` -> `pointFrom()` to fix compiler issue (#8578) 5 months ago
Position.tsx feat: use stats panel to crop (#8848) 2 months ago
Stats.scss feat: Stats popup style tweaks (#8361) 7 months ago
index.tsx feat: use stats panel to crop (#8848) 2 months ago
stats.test.tsx refactor: `point()` -> `pointFrom()` to fix compiler issue (#8578) 5 months ago
utils.ts refactor: separate resizing logic from pointer (#8155) 2 months ago