excalidraw/src/element
Gasim Gasimzada 862231da4f Make all operations on elements array immutable (#283)
* Make scene functions return array instead of mutate array

- Not all functions were changes; so the given argument was a new array to some

* Make data restoration functions immutable

- Make mutations in App component

* Make history actions immutable

* Fix an issue in change property that was causing elements to be removed

* mark elements params as readonly & remove unnecessary copying

* Make `clearSelection` return a new array

* Perform Id comparisons instead of reference comparisons in onDoubleClick

* Allow deselecting items with SHIFT key

- Refactor hit detection code

* Fix a bug in element selection and revert drag functionality

Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-01-09 16:22:04 +01:00
..
bounds.test.ts Refactor Element Functions (#233) 2020-01-07 19:04:52 +04:00
bounds.ts adding comments about diamond dimensions (#241) 2020-01-07 18:59:10 +01:00
collision.ts Refactor Element Functions (#233) 2020-01-07 19:04:52 +04:00
handlerRectangles.ts Show move and resize cursors on hover (#280) 2020-01-08 18:56:35 -08:00
index.ts fix for duplicating elements (#261) 2020-01-08 19:54:42 +01:00
newElement.ts fix for duplicating elements (#261) 2020-01-08 19:54:42 +01:00
resizeTest.ts Make all operations on elements array immutable (#283) 2020-01-09 16:22:04 +01:00
textWysiwyg.tsx Extract app and keys (#276) 2020-01-09 02:00:59 +04:00
typeChecks.ts Extract element functions into modules (#207) 2020-01-06 19:34:22 +04:00
types.ts Fixes text jumping on creation (#266) 2020-01-09 00:06:25 +05:00