Commit Graph
17 Commits
Author SHA1 Message Date
df0613d8ac Add NonDeleted<ExcalidrawElement> (#1068)
* add NonDeleted

* make test:all script run tests without prompt

* rename helper

* replace with helper

* make element contructors return nonDeleted elements

* cache filtered elements where appliacable for better perf

* rename manager element getter

* remove unnecessary assertion

* fix test

* make element types in resizeElement into nonDeleted

Co-authored-by: dwelle <luzar.david@gmail.com>
2020-04-08 18:49:52 +02:00
Pete HuntandGitHub bd7856adf3 Much more thorough tests! (#1053) 2020-03-23 16:38:41 -07:00
Pete HuntandGitHub 7d57d124bd Fix alt drag (#995) 2020-03-17 15:21:35 -07:00
Pete HuntandGitHub b603337c3f Fix multielements (#987) 2020-03-17 11:01:11 -07:00
Pete HuntandGitHub e9f5175f51 Fix performance bug (#984) 2020-03-16 19:07:47 -07:00
dcb93f75e6 [RFC] Randomized names next to mouse pointers. (#971)
* [WIP] Add names next to pointers

This implements the rendering and messaging across. Still need to do the UI to set the name.

Also, not really sure what's the best place to send the name and store it.

* Add randomized names

Co-authored-by: Christopher Chedeau <vjeux@fb.com>
2020-03-15 18:56:38 -07:00
Pete HuntandGitHub 35ce1729cc remove most setState({}) (#959) 2020-03-15 10:06:41 -07:00
Pete HuntandGitHub e1e2249f57 Abstract away or eliminate most of the mutation of the Elements array (#955) 2020-03-14 21:48:51 -07:00
Pete HuntandGitHub 3f8144ef85 Fix many syncing issues (#952) 2020-03-14 20:46:57 -07:00
Pete HuntandGitHub f393486eed Merge pull request #928 from excalidraw/fix_multiplayer_concurrency
Fix multiplayer concurrency
2020-03-12 21:32:33 -07:00
Pete HuntandGitHub 83a2f5de28 remove closures from mutateElement, get rid of the element spreading (#902) 2020-03-10 20:11:02 -07:00
Pete HuntandGitHub 05ebf3434b Fix a bug introduced by #880 (#881) 2020-03-08 23:35:30 -07:00
Pete HuntandGitHub 86f9f32a59 Fix perf regression (#880) 2020-03-08 23:08:26 -07:00
Pete HuntandGitHub 8d8f9f23bd Make gesture.pointers a Map instead of an array of pointers (#877) 2020-03-08 19:25:16 -07:00
Pete HuntandGitHub 92ba401da8 Pull onPointerDown, onDoubleClick, onPointerMove into instance methods (#876)
* Pull onPointerDown, onDoubleClick, onPointerMove into instance methods

* Use bound instance methods
2020-03-08 18:09:45 -07:00
Pete HuntandGitHub c89584832d Reset selectedElementIds when deleting selected elements (#875) 2020-03-08 14:10:42 -07:00
Pete HuntandGitHub ccbbdb75a6 Refactor ExcalidrawElement (#874)
* Get rid of isSelected, canvas, canvasZoom, canvasOffsetX and canvasOffsetY on ExcalidrawElement.

* Fix most unit tests. Fix cmd a. Fix alt drag

* Focus on paste

* shift select should include previously selected items

* Fix last test

* Move this.shape out of ExcalidrawElement and into a WeakMap
2020-03-08 10:20:55 -07:00