Commit graph

4 commits

Author SHA1 Message Date
dwelle
332fc518b7 mark elements params as readonly & remove unnecessary copying 2020-01-09 11:59:59 +01:00
Gasim Gasimzada
2ef809fe5d Make scene functions return array instead of mutate array
- Not all functions were changes; so the given argument was a new array to some
2020-01-09 12:19:55 +04:00
Gasim Gasimzada
829a65b8cb
Refactor Element Functions (#233)
* Remove `generatedraw` from element object

- Create a function that renders a single element
- Refactor rendering selected elements

* Replace getElementAbsoluteXY with getElementAbsoluteCoords
2020-01-07 19:04:52 +04:00
Gasim Gasimzada
86a1c29eec
Extract scene functions to their respective modules (#208)
- Also, extract utilities into utils module -- capitalizeString, getDateTime, isInputLike
2020-01-06 20:24:54 +04:00