Bakhtiiar Muzakparov
689c94151d
fix: typos ( #540 )
2020-01-24 21:02:55 +01:00
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
Faustino Kialungila
54f9c296b5
Enhance language selection ( #538 )
...
* Enhance language selection
* remove top/left margin to limit unusable canvas area
Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-01-24 19:10:44 +01:00
Lipis
ee68af0fd3
Set Trailing Cmma to ( #525 )
2020-01-24 12:04:54 +02:00
Thibaut SABOT
e8c909e35c
Don't use translated value for shortcut ( #526 )
2020-01-23 18:28:05 +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
Enzo Ferey
dfb7c2b744
Add app state to history ( #309 )
...
* Add app state to history.
* Pick missing state keys.
* Fix bug.
* Remove force update.
2020-01-22 21:32:43 +01:00
Lipis
48024c9116
Remove selected object when storing to backend ( #506 )
2020-01-22 18:27:44 +02:00
Fernando Alava Zambrano
a436e70764
Internationalization followup ( #500 )
...
* add translations in data.ts
* add language list
add spanish version
* fixes pr review
* add more translations
* remove unused label
Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-01-22 16:25:04 +02:00
Bakhtiiar Muzakparov
bef279417e
fix: cursor on keyboard tool toggle ( #482 )
...
* update events for GH actions to include PRs
* fix: cursor on keyboard tool toggle
* fix: change cursor type to constant
* fix: swap condition
Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-01-22 14:36:08 +01:00
David Luzar
20cf1078fc
add top error boundary & reset localStorage on error ( #493 )
...
* add top error boundary & reset localStorage on error
* add issue tracker details and link
* add pointer cursor to buttons
* Update src/bug-issue-template.js
Co-Authored-By: Lipis <lipiridis@gmail.com>
* Update src/styles.scss
Co-Authored-By: Lipis <lipiridis@gmail.com>
* Update src/bug-issue-template.js
Co-Authored-By: Lipis <lipiridis@gmail.com>
* use open-color colors
* use Cascadia font
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-01-21 15:50:25 +01:00
Jilles Soeters
a72a143c84
Introduce Shapelock ( #480 )
...
* Introduce shape lock
* Format code with prettier
* Do not reset elementLocked on selection change
* Don't set isSelected to true if element is locked
* Don't reset the cursor
* Move reset cursor call to better spot
* Run prettier + lint
2020-01-20 15:52:19 -08: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
Fernando Alava Zambrano
ff7a340d2f
Internationalization support ( #477 )
...
* add i18next lib
add some translations
* add translations
* fix font-family
* fix pin versions
2020-01-20 15:14:10 -08:00
Panayiotis Lipiridis
703d1e42e3
id instead of json
2020-01-20 21:30:07 +02:00
David Luzar
d44c4ca2d8
flush autosave on unload ( #473 )
2020-01-20 09:37:42 -08:00
Brady Madden
6ad596e9f1
Share excalidrawings as links! ( #356 )
...
* shareable links
* fix
* review comments
* json-excaliber (#464 )
* draw
* Boom
* backend
* Remove local
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-01-19 21:56:19 -08:00
David Luzar
0097652b79
disallow shape selection during creation ( #449 )
2020-01-20 01:27:00 +02:00
Faustino Kialungila
61be0f7b61
Render text actions panel on double click ( #450 )
...
* Render text actions panel on double click
* cleanup wysiwyg on click
* use `state.editingElement` instead of global to determine whether t ext panel is shown
* clarify comment
Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-01-19 23:32:24 +01:00
Guillermo Peralta Scura
3715da9966
Remove not needed nesting for resize ( #460 )
2020-01-19 18:43:51 -03:00
Christopher Chedeau
7f6e1f420e
Pure node rendering ( #443 )
2020-01-19 13:21:33 -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
Faustino Kialungila
bbabf33d78
Render shape action on tool selected ( #448 )
2020-01-18 15:45:35 -08:00
Sosuke Suzuki
4180485eef
Disable shortcuts for shapes while dragging the selection ( #447 )
2020-01-18 14:12:49 -08:00
Abhishek Kulshrestha
31403ab373
Bug 389 ( #428 )
...
* paste inside the viewport
* Buttons in top left panel aren't horizontally centered
2020-01-17 20:23:41 +02:00
David Luzar
6892348c3d
Revert 400 and 420 ( #422 )
...
* revert #400 font file
* Revert "Revert "Set scale for export images (#416 )" (#420 )"
This reverts commit d603921234b9ae1483f9f0e0f79fb1c3d0878370.
2020-01-17 16:43:24 +02:00
Timur Khazamov
d603921234
Revert "Set scale for export images ( #416 )" ( #420 )
...
This reverts commit 82f559f826f4ab0504981a281335e0a25d332a6a.
2020-01-17 15:55:17 +03:00
Timur Khazamov
82f559f826
Set scale for export images ( #416 )
2020-01-17 15:19:56 +03:00
Günay Mert Karadoğan
8bc049a0b9
Remove resized element if it is invisibly small ( #405 )
2020-01-16 23:16:11 +01:00
Lipis
8154ccd907
No named colors and lowercase hex ( #395 )
...
* No named colors and lowercase hex
* consistent
2020-01-16 10:16:08 -08:00
Günay Mert Karadoğan
4ecc734659
Fix #360 prevent creating invisibly small elements ( #387 )
2020-01-16 08:27:18 -08:00
Jilles Soeters
2a8e562e98
Add numeric hotkeys ( #380 )
...
* Add numeric hotkeys
* Nit: add space after comma
2020-01-15 18:39:15 -08:00
David Luzar
0e56cd4f56
pan canvas on wheel button drag ( #375 )
...
* pan canvas on wheel button drag
* make mousemove passive
2020-01-15 15:21:39 -08:00
Timur Khazamov
79aee53ff6
Redesign idea ( #343 )
...
* Redisign idea
* Code cleanup
* Fixed to right container
* Reoredered layout
* Reordering panels
* Export dialog
* Removed redunant code
* Fixed not removing temp canvas
* Fixed preview not using only selected elements
* Returned file name on export
* Toggle export selected/all elements
* Hide copy to clipboard button if no support of clipboard
* Added border to swatches
* Fixed modal flickering
2020-01-15 07:42:02 -08:00
Preet
8dbd1b80df
Update to rough.js 4.0.1 ( #363 )
...
* upgrade to latest rough.js
* remove random.ts because roughjs now supports seeding.
2020-01-13 11:04:28 -08:00
Timur Khazamov
bc2bae2a9a
Shift drag to add to selection ( #355 )
...
* Shift drag to add to selection
* Inlined variable
2020-01-12 15:32:25 -08:00
Guillermo Peralta Scura
4c62cbf57e
Don't show resize cursor if multiple elements are selected ( #353 )
2020-01-12 12:24:11 -08:00
Christopher Chedeau
f91b708abb
Revert "Shift drag to add to selection ( #350 )" ( #352 )
...
This reverts commit ce467f7b6572615c5f4050f3e514943867b6fb9d.
2020-01-12 12:08:18 -08:00
Timur Khazamov
ce467f7b65
Shift drag to add to selection ( #350 )
2020-01-12 11:56:10 -08:00
David Luzar
58ad6d741d
fix selecting elem inside already selected element ( #349 )
2020-01-12 11:43:31 -08:00
Guillermo Peralta Scura
c67435719f
Use cursor delta to resize shape ( #341 )
2020-01-12 09:05:08 -08:00
Jeremy Press
abf2aaa102
"Select All" only appears when clicking outside of a shape via actionFilter ( #329 )
...
Co-authored-by: Christopher Chedeau <vjeuxx@gmail.com>
2020-01-12 07:10:15 -08:00
Enzo Ferey
88a9cee8bb
History improvements ( #337 )
...
* Simplified redoOnce.
* Help mental model.
* Move clear redo stack where it belongs.
* Not needed anymore as we check for same state.
2020-01-12 03:19:24 -08:00
Christopher Chedeau
bc909b76da
Move copy paste handler to document ( #334 )
...
Hopefully it should resolve the copy pasting issues
Fixes #249
2020-01-11 21:39:16 -08:00
Christopher Chedeau
aad6e8f434
Reset to selection after creating a text ( #333 )
...
Fixes #252
Test plan:
- Click on text icon
- Click anywhere to start entering text
- Add a letter
- Make sure the cursor is selection and not text
- Click anywhere else, make sure it completes the text and not create a new one
2020-01-11 21:00:55 -08:00
Christopher Chedeau
44657efe71
Fix undoOnce ( #332 )
...
I just pasted @enzoferey's implementation and it fixed the bug reported by @dwelle
Fixes #307
2020-01-11 20:45:56 -08:00
Christopher Chedeau
dd2a7eb597
Fix copy-paste on input ( #331 )
...
If the input is active, we shouldn't override copy paste behavior
2020-01-11 20:41:47 -08:00
Christopher Chedeau
d45f48e60f
Set shape background to be transparent by default ( #330 )
...
Also makes "Clear canvas" reset the entire app state
2020-01-11 20:34:21 -08:00
Christopher Chedeau
3db7d69849
Debounce localstorage save ( #328 )
...
I profiled dragging and it looks like it takes ~3ms to save to localStorage a smallish scene and we're doing it twice per mousemove. Let's debounce so we don't pay that cost on every mouse move.
Stole the implementation from #220 which got reverted.
2020-01-11 20:15:41 -08:00
Christopher Chedeau
c745fd4e5e
Prevent cmd-r from selecting rectangle ( #327 )
...
I keep adding empty rectangles because I reload with cmd-r which enables rectangle :p Let's only make the shortcut work if there's no modifier enabled
2020-01-11 19:42:34 -08:00