Faustino Kialungila
1ea72e9134
Center element on paste ( #248 )
...
* Center element on paste
* paste on cursor position
* correctly center elements
* rename vars
2020-01-09 12:34:46 +01:00
Guillermo Peralta Scura
4a044d3ace
Show move and resize cursors on hover ( #280 )
...
* Change to move cursor on hover
* Show resize handlers on hover
2020-01-08 18:56:35 -08:00
davidbonan
a16cd3a34f
Add font size and font familly option for selection ( #278 )
...
* Add font size and font familly option for selection
* Allow copy font style
* More clearner method name
* Update options size and font-familly
2020-01-08 17:29:41 -08:00
Timur Khazamov
1739540f00
Creating a text near the center of a shape should put it in the center ( #270 )
...
* Snap to element center
* Fixed typo
* Added comment
* Reduced threshold to 30
* Skip snapping if alt key is pressed
* Fixed creating text with shape tool
2020-01-09 01:09:09 +05:00
Gasim Gasimzada
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
Timur Khazamov
ae982e9298
Revert "Save scene in URL ( #220 )" ( #234 )
...
This reverts commit db973c61e85347120c46adba6cb33e50d49988ba.
2020-01-07 07:18:20 -08: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
Timur Khazamov
db973c61e8
Save scene in URL ( #220 )
...
Co-authored-by: Christopher Chedeau <vjeuxx@gmail.com>
2020-01-06 19:08:23 -08: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
Gasim Gasimzada
01805f734d
Extract element functions into modules ( #207 )
2020-01-06 19:34:22 +04:00