Commit Graph
4 Commits
Author SHA1 Message Date
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