excalidraw/src/renderer
Aakansha Doshi 5a8dbe8030
feat: show a mid point for linear elements (#5534)
* feat: Add a mid point for linear elements

* fix tests

* show mid point only on hover

* hacky fix :(

* don't add mid points if present and only add outside editor

* improve styling and always show phantom point instead of just on hover

* fix tests

* fix

* only add polyfill for test

* add hover state for phantom point

* fix tests

* fix

* Add Array.at polyfill

* reuse `centerPoint()` helper

* reuse `distance2d`

* use `Point` type

Co-authored-by: dwelle <luzar.david@gmail.com>
2022-08-11 20:16:25 +05:30
..
renderElement.ts fix: incorrectly rendering freedraw elements (#5481) 2022-07-22 16:18:41 +02:00
renderScene.ts feat: show a mid point for linear elements (#5534) 2022-08-11 20:16:25 +05:30
roundRect.ts Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00