excalidraw/src/tests
Aakansha Doshi 08ce7c7fc3
feat: redesign linear elements 🎉 (#5501)
* feat: redesign arrows and lines

* set selectedLinearElement on pointerup

* fix tests

* fix lint

* set selectionLinearElement to null when element is not selected

* fix

* don't set selectedElementIds to empty object when linear element selected

* don't move arrows when clicked on bounding box

* don't consider bounding box when linear element selected

* better hitbox

* show pointer when over the points in linear elements

* highlight points when hovered

* tweak design whene editing linear element points

* tweak

* fix test

* fix multi point editing

* cleanup

* fix

* fix

* remove stroke when hovered

* account for zoom when hover

* review fix

* set selectedLinearElement to null when selectedElementIds doesn't contain the linear element

* remove hover affect when moved away from linear element

* don't set selectedLinearAElement if already set

* fix selection

* render reduced in test :p

* fix box selection for single linear element

* set selectedLinearElement when deselecting selected elements and linear element is selected

* don't show linear element handles when element locked

* selected linear element when only linear present and selected with selectAll

* don't set selectedLinearElement if already set

* store selectedLinearElement in browser to persist

* remove redundant checks

* test fix

* select linear element handles when user has finished multipoint editing

* fix snap

* add comments

* show bounding box for locked linear elements

* add stroke param to fillCircle and remove stroke when linear element point hovered

* set selectedLinearElement when thats the only element left when deselcting others

* skip tests instead of removing for rotation

* (un)bind on pointerUp when moving linear element points outside editor

* render bounding box for linear elements as a fallback on state mismatch

* simplify and remove type assertion

Co-authored-by: dwelle <luzar.david@gmail.com>
2022-08-03 20:58:17 +05:30
..
__snapshots__ feat: redesign linear elements 🎉 (#5501) 2022-08-03 20:58:17 +05:30
data feat: Element locking (#4964) 2022-04-07 13:43:29 +02:00
fixtures feat: Element locking (#4964) 2022-04-07 13:43:29 +02:00
helpers feat: support adding multiple library items on canvas (#5116) 2022-05-11 15:51:02 +02:00
packages feat: redesign linear elements 🎉 (#5501) 2022-08-03 20:58:17 +05:30
queries feat: improved freedraw (#3512) 2021-05-09 17:42:10 +02:00
scene fix: use excalidraw asset path in fonts when exporting to svg (#5065) 2022-04-28 20:19:41 +05:30
align.test.tsx Refactor: convert initializeApp to func component and use JSX transform in the codebase (#4056) 2021-10-14 22:56:51 +05:30
appState.test.tsx fix: changing font size when text is not selected or edited (#4751) 2022-02-08 21:18:43 +00:00
binding.test.tsx feat: redesign linear elements 🎉 (#5501) 2022-08-03 20:58:17 +05:30
charts.test.tsx improvement: Support numbers with commas in them (#2636) 2020-12-20 14:08:22 +02:00
clients.test.ts Add user list component + snap to user functionality (#1749) 2020-06-19 12:36:49 +02:00
collab.test.tsx feat: collab component state handling rewrite & fixes (#5046) 2022-07-05 16:03:40 +02:00
contextmenu.test.tsx fix: disable render throttling by default & during resize (#5451) 2022-07-16 11:36:55 +02:00
dragCreate.test.tsx fix: disable render throttling by default & during resize (#5451) 2022-07-16 11:36:55 +02:00
elementLocking.test.tsx feat: Element locking (#4964) 2022-04-07 13:43:29 +02:00
export.test.tsx feat: image support (#4011) 2021-10-21 22:05:48 +02:00
flip.test.tsx feat: redesign linear elements 🎉 (#5501) 2022-08-03 20:58:17 +05:30
geometricAlgebra.test.ts Allow binding linear elements to other elements (#1899) 2020-08-08 21:04:15 -07:00
history.test.tsx feat: image support (#4011) 2021-10-21 22:05:48 +02:00
library.test.tsx test: add tests for loading library from file picker (#5206) 2022-05-19 00:37:36 +02:00
move.test.tsx feat: redesign linear elements 🎉 (#5501) 2022-08-03 20:58:17 +05:30
multiPointCreate.test.tsx fix: disable render throttling by default & during resize (#5451) 2022-07-16 11:36:55 +02:00
reconciliation.test.ts feat: reconcile when saving to firebase (#4991) 2022-04-17 22:40:39 +02:00
regressionTests.test.tsx fix: disable render throttling by default & during resize (#5451) 2022-07-16 11:36:55 +02:00
resize.test.tsx fix: disable render throttling by default & during resize (#5451) 2022-07-16 11:36:55 +02:00
scroll.test.tsx fix: Excalidraw named export type (#5078) 2022-04-22 15:49:36 +02:00
selection.test.tsx fix: disable render throttling by default & during resize (#5451) 2022-07-16 11:36:55 +02:00
test-utils.ts feat: Sync local storage state across tabs when out of sync (#4545) 2022-01-27 13:21:55 +01:00
utils.test.ts hide fill icons when fill color transparent (#2414) 2020-11-26 21:43:38 +01:00
viewMode.test.tsx Refactor: convert initializeApp to func component and use JSX transform in the codebase (#4056) 2021-10-14 22:56:51 +05:30
zindex.test.tsx fix: bound text not atomic with container when changing z-index (#4414) 2021-12-17 13:10:37 +00:00