excalidraw/src/tests
Aakansha Doshi 25c6056b03
feat: Don't add midpoint until dragged beyond a threshold (#5927)
* Don't add midpoint until dragged beyond a threshold

* remove unnecessary code

* fix tests

* fix

* add spec

* remove isMidpoint

* cleanup

* fix threshold for zoom

* split into shouldAddMidpoint and addMidpoint

* wrap in flushSync for synchronous updates

* remove threshold for line editor and add spec

* [unrelated] fix stack overflow state update

* fix tests

* don't drag arrow when dragging to add mid point

* add specs

Co-authored-by: dwelle <luzar.david@gmail.com>
2022-11-29 00:01:53 +05:30
..
__snapshots__ feat: Don't add midpoint until dragged beyond a threshold (#5927) 2022-11-29 00:01:53 +05:30
data fix: refresh text dimensions only after font load done (#5878) 2022-11-15 00:15:02 +01:00
fixtures fix: image-mirroring in export preview and in exported svg (#5700) 2022-09-17 21:02:13 +00:00
helpers fix: replaced KeyboardEvent.code with KeyboardEvent.key for all letters (#5523) 2022-10-21 00:31:26 +05:30
packages test: fix failing tests and API (#5823) 2022-11-04 18:22:21 +05:30
queries test: fix failing tests and API (#5823) 2022-11-04 18:22:21 +05:30
scene fix: stop font loadingdone loop when rendering element SVGs (#5883) 2022-11-15 21:02:57 +01:00
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 feat: editor redesign 🔥 (#5780) 2022-11-01 17:29:58 +01:00
clipboard.test.tsx feat: changed text copy/paste behaviour (#5786) 2022-11-26 23:44:26 +01:00
collab.test.tsx feat: collab component state handling rewrite & fixes (#5046) 2022-07-05 16:03:40 +02:00
contextmenu.test.tsx fix: replaced KeyboardEvent.code with KeyboardEvent.key for all letters (#5523) 2022-10-21 00:31:26 +05:30
dragCreate.test.tsx test: fix failing tests and API (#5823) 2022-11-04 18:22:21 +05:30
elementLocking.test.tsx fix: Always bind to container selected by user (#5880) 2022-11-25 15:45:34 +05:30
export.test.tsx feat: clean unused images only after 24hrs (local-only) (#5839) 2022-11-06 19:41:14 +01:00
flip.test.tsx fix: free draw flip not scaling correctly (#5752) 2022-10-19 00:03:58 +02:00
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: fix failing tests and API (#5823) 2022-11-04 18:22:21 +05:30
linearElementEditor.test.tsx feat: Don't add midpoint until dragged beyond a threshold (#5927) 2022-11-29 00:01:53 +05:30
move.test.tsx test: fix failing tests and API (#5823) 2022-11-04 18:22:21 +05:30
multiPointCreate.test.tsx test: fix failing tests and API (#5823) 2022-11-04 18:22:21 +05:30
reconciliation.test.ts fix: restoreElementWithProperties drops "parent" property (#5742) 2022-10-08 20:42:05 +02:00
regressionTests.test.tsx feat: tweak toolbar shortcuts & remove library shortcut (#5832) 2022-11-06 20:14:53 +01:00
resize.test.tsx fix: horizontal text alignment for bound text when resizing (#5721) 2022-09-27 16:44:41 +05:30
scroll.test.tsx fix: Excalidraw named export type (#5078) 2022-04-22 15:49:36 +02:00
selection.test.tsx test: fix failing tests and API (#5823) 2022-11-04 18:22:21 +05:30
test-utils.ts test: fix failing tests and API (#5823) 2022-11-04 18:22:21 +05:30
utils.test.ts hide fill icons when fill color transparent (#2414) 2020-11-26 21:43:38 +01:00
utils.ts fix: horizontal text alignment for bound text when resizing (#5721) 2022-09-27 16:44:41 +05:30
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