David Luzar
afb1d6725f
Normalize dimensions ( #527 )
...
* normalize dimensions of non-linear elements
* fix element type check regression
2020-01-24 20:45:52 +01:00
Lipis
ee68af0fd3
Set Trailing Cmma to ( #525 )
2020-01-24 12:04:54 +02:00
Günay Mert Karadoğan
926b4f24e6
Draw horizontal/vertical lines/arrows when shift pressed ( #430 )
...
* Draw horizontal/vertical lines/arrows when shift pressed
* Refactor resizing with delta
* Resize arrows/lines perfectly when shift pressed
2020-01-23 10:21:04 +01:00
David Luzar
2340dddaad
Sync panel props to editing element ( #470 )
...
* ensure panel props are sync to editing elem
* ensure we don't create empty-text elements (fixes #468 )
* remove dead code
Co-authored-by: Christopher Chedeau <vjeuxx@gmail.com>
2020-01-20 15:16:22 -08:00
Günay Mert Karadoğan
d505c6615d
Fix reversed cursor issues on resize with bi-directional cursors ( #451 )
2020-01-19 23:11:46 +02:00
Günay Mert Karadoğan
8bc049a0b9
Remove resized element if it is invisibly small ( #405 )
2020-01-16 23:16:11 +01:00
Bakhtiiar Muzakparov
8db8827c6f
feat: add line shape ( #371 )
...
* feat: add line shape
* fix: align line tool
* fix: hitbox bug sw to ne
* fix: add stroke width n sloppiness for line
* fix: center line inside a panel box
* fix: use color as a unique key
2020-01-16 00:07:19 +05:00
Gasim Gasimzada
f2346275ef
Extract Side Panel from App component ( #295 )
...
* Extract Side Panel from App component
* Refactor SidePanel component
- Remove unnecessary props (we are already passing appState as a prop)
- Remove unnecessary allback (we are already passing setState)
2020-01-10 18:00:19 +04:00
David Luzar
2122a9cf9f
fix for duplicating elements ( #261 )
2020-01-08 19:54:42 +01:00
Timur Khazamov
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
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
Christopher Chedeau
f2665408fc
Revert "Wysiwyg text ( #200 )" ( #225 )
...
This reverts commit abbc04df0e5a3b9265ada12a73bc9b8a810a329c.
2020-01-06 19:50:37 -08:00
Timur Khazamov
abbc04df0e
Wysiwyg text ( #200 )
2020-01-06 19:03:05 -08:00
Gasim Gasimzada
01805f734d
Extract element functions into modules ( #207 )
2020-01-06 19:34:22 +04:00