Commit Graph

259 Commits

Author SHA1 Message Date
009412a093 improve typing for handlerRectangles 2020-01-08 17:05:00 +01:00
4b7eb2f04a Add IDs to elements (#236)
* Add IDs to elements

- Move round rect function within the renderer

* Generate IDs using nanoid

* If element ID does not exist, add the ID during restoration
2020-01-07 23:49:39 +04:00
846f427732 adding comments about diamond dimensions (#241) 2020-01-07 18:59:10 +01:00
10955f8bb0 Wysiwyg text 2.0 (#238)
* Fixed cleaning handlers after cleanup

* Double click to edit text

* Preserve text styles on change
2020-01-07 09:21:05 -08:00
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
f2665408fc Revert "Wysiwyg text (#200)" (#225)
This reverts commit abbc04df0e.
2020-01-06 19:50:37 -08:00
abbc04df0e Wysiwyg text (#200) 2020-01-06 19:03:05 -08:00
7bf0184499 Fixed ellipse hit test if sizes are negative (#205) 2020-01-06 23:06:54 +05:00
01805f734d Extract element functions into modules (#207) 2020-01-06 19:34:22 +04:00