Commit Graph

363 Commits

Author SHA1 Message Date
e38f65dea7 Contenteditable wysiwyg (#274)
* Contenteditable wysiwyg

* Added comment about pasting multiline text
2020-01-09 02:04:53 +05:00
37934c0f8b Fixes text jumping on creation (#266)
* Fixes text jumping on creation

* Do not remove node on ESC

* Fixed typo
2020-01-09 00:06:25 +05:00
2122a9cf9f fix for duplicating elements (#261) 2020-01-08 19:54:42 +01:00
08b804ac63 ensure only selected elems can be resized (fixes #256) 2020-01-08 18:06:04 +01:00
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