Commit Graph

874 Commits (d07099aaddd4442f4f40386423664bb9fd8c9294)

Author SHA1 Message Date
David Luzar d07099aadd
fix zindex to account for group boundaries (#2065) 5 years ago
Thomas Steiner 48c2a13c7a
Pass file extensions with leading dot after API change (#2149) 5 years ago
David Luzar aaddde5dd9
Fix history initialization (#2115) 5 years ago
Mohamed Saleh 9cac7816cc
Fix textbox element bindings on size changes (#2145)
Co-authored-by: dwelle <luzar.david@gmail.com>
5 years ago
David Luzar 47dba05c91
System clipboard (#2117) 5 years ago
Panayiotis Lipiridis 640dcc90c2 A silly one :) 5 years ago
Michal Srb 15e4b51bb1
Fix binding disabling when taking screenshots on macOS (#2129)
* Fix binding disabling when taking screenshots on macOS
* Update snapshot for cmd+click test
5 years ago
Lipis 924292dc9a
New Crowdin updates (#2128)
* New translations en.json (Romanian)

* New translations en.json (Romanian)

* New translations en.json (Romanian)

* New translations en.json (Romanian)

* New translations en.json (Chinese Simplified)

* Auto commit: Calculate translation coverage

* New translations en.json (Chinese Simplified)

* New translations en.json (Chinese Simplified)

Co-authored-by: Kostas Bariotis <konmpar@gmail.com>
5 years ago
Lipis a693b36d37
New Crowdin updates (#2127)
* New translations en.json (Russian)

* Auto commit: Calculate translation coverage

Co-authored-by: Kostas Bariotis <konmpar@gmail.com>
5 years ago
Lipis 98a4d0a595
New Crowdin updates (#2116) 5 years ago
Danila b215e165d2
Fix HintViewer positioning (#2124) 5 years ago
Thomas Steiner 730a11e0a5
Assign file handle to dropped files (#2125)
Co-authored-by: David Luzar <luzar.david@gmail.com>
5 years ago
João Forja 0ab58b38e0
Fix bug of issue #2062 (#2108)
Co-authored-by: dwelle <luzar.david@gmail.com>
5 years ago
Lipis 46bff3dace
New Crowdin updates (#2078)
* New translations en.json (Korean)

* New translations en.json (Korean)

* Auto commit: Calculate translation coverage

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

* add ro-Ro to language picker

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

* New translations en.json (Romanian)

* Auto commit: Calculate translation coverage

Co-authored-by: Kostas Bariotis <konmpar@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
5 years ago
Maurice Le Cordier d15444e232
allowed for sticking to grid when pasting an element (#2107) 5 years ago
Michal Srb 7ebeae2d38
Fix arrow rebinding on rotation (take 2) (#2104)
* Clear up test, fix simple rotation
* Fix eligibility rules
5 years ago
David Luzar 26ef235019
rebind arrow on rotation (#2096) 5 years ago
David Luzar 0e28177ccc
fix collab MOUSE_LOCATION payload naming for legacy versions (#2098) 5 years ago
Anton 1828a93ba7
Fix keypress rebinding (#2102)
Co-authored-by: Anton <anton.matrenin@introduct.tech>
5 years ago
Daishi Kato 84c49ebaa1
Support rotating two-point lines (angle can be non-zero) (#2090)
Co-authored-by: David Luzar <luzar.david@gmail.com>
5 years ago
David Luzar 8b9e2a540d
factor out test helpers (#2093) 5 years ago
David Luzar 4c2d34ffd7
select single element on cmd-click (#2087) 5 years ago
David Luzar b8f8bc2e32
fix group selection (#2092) 5 years ago
João Forja e7d186b439
Fix drag multiple elements bug (#2023)
Co-authored-by: dwelle <luzar.david@gmail.com>
5 years ago
Aakansha Doshi 4718c31da5
Pass Additional props remove localstorage related code for storing data and username from App.tsx to index.tsx (#2057)
Co-authored-by: dwelle <luzar.david@gmail.com>
5 years ago
Danila 0e0a695e81
Fix multiline hint text cropping (#2079)
Co-authored-by: Lipis <lipiridis@gmail.com>
5 years ago
Lipis 37b4883629
New Crowdin updates (#2054) 5 years ago
Pedro Baracho e34cf3aee3
Fix #2075 - Pinch zooming while typing text breaks the UI on Chrome Mac OS X (#2076) 5 years ago
Lipis c3de4cd4c5
Reduce the padding of the left 'Islands' (#2050) 5 years ago
Lipis 643e6bd08d
feat: Add hint for double click to insert text (#2056) 5 years ago
David Luzar ab7073abdb
add excalidraw_embed into base repo (#2040)
Co-authored-by: Lipis <lipiridis@gmail.com>
5 years ago
Thomas Steiner 80cbe13167
Make iOS "safe area" respect dark mode (#2053) 5 years ago
Lipis c6e2877418
New Crowdin updates (#2042)
* New translations en.json (Vietnamese)

* Auto commit: Calculate translation coverage

* add vi-VN to i18n

Co-authored-by: Kostas Bariotis <konmpar@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
5 years ago
Lipis 415bf7bb5b
New Crowdin updates (#2022) 5 years ago
Warren Seine 4644ca1778
🎨 Use consistent naming (#2029) 5 years ago
Johann Hubert Sonntagbauer 009eba6315
feat: Zoom controls are pushed to the right edge for Right-To-Left languages (#2021) (#2037) 5 years ago
Warren Seine 14317c2232
🐛 Remove unnecessary class name props (#2027)
It's unused and serialized to `undefined`.
5 years ago
Daishi Kato 41cb1fbeba
feat: sharpness (#1931)
* feat: sharpness

* feat: fill sharp lines, et al.

* fix: rotated positioning

* chore: simplify path with Q

* fix: hit test inside sharp elements

* make sharp / round buttons work properly

* fix tsc tests

* update snapshots

* update snapshots

* fix: sharp arrow creation error

* fix merge and test

* avoid type assertion

* remove duplicate helper

Co-authored-by: dwelle <luzar.david@gmail.com>
5 years ago
David Luzar 930813387b
make loading message account for dark mode & add i18n (#2033)
* make loading message account for dark mode & add i18n

* use app color scheme
5 years ago
David Luzar 3f2b0fdd0a
don't reset dark mode on canvas clear (#2032) 5 years ago
Warren Seine 2cb8ba6521
add explanation for why we mutate collaborators state (#2028)
* 🔒 Avoid mutating state

* revert to mutation and add explaining comment

Co-authored-by: dwelle <luzar.david@gmail.com>
5 years ago
Warren Seine 5670c47789
🐛 Fix emoji rendering (#2030)
Thanks.
5 years ago
Michal Srb c0dd870c6e
Dark mode (#2006)
Co-authored-by: dwelle <luzar.david@gmail.com>
5 years ago
Lipis 6e5b1a1c2a
New Crowdin updates (#1987) 5 years ago
João Forja 296e3677cf
Fix single element bounding box bug (#2008)
Co-authored-by: Michal Srb <xixixao@seznam.cz>
Co-authored-by: dwelle <luzar.david@gmail.com>
5 years ago
David Luzar 964746e569
fix transform handles regression (#2018) 5 years ago
David Luzar 950bcd0b72
Refactor resize handle naming (#2013) 5 years ago
Michal Srb 85d000ccda
Add prevent binding keyboard shortcut to shortcuts dialog (#2010)
Co-authored-by: David Luzar <luzar.david@gmail.com>
5 years ago
Michal Srb 8bbeb32e87
Fix text selection broken by PR1899 (#2011) 5 years ago
Michal Srb 26f67d27ec
Allow binding linear elements to other elements (#1899)
* Refactor: simplify linear element type

* Refactor: dedupe scrollbar handling

* First step towards binding - establish relationship and basic test for dragged lines

* Refactor: use zoom from appstate

* Refactor: generalize getElementAtPosition

* Only consider bindable elements in hit test

* Refactor: pull out pieces of hit test for reuse later

* Refactor: pull out diamond from hit test for reuse later

* Refactor: pull out text from hit test for reuse later

* Suggest binding when hovering

* Give shapes in regression test real size

* Give shapes in undo/redo test real size

* Keep bound element highlighted

* Show binding suggestion for multi-point elements

* Move binding to its on module with functions so that I can use it from actions, add support for binding end of multi-point elements

* Use Id instead of ID

* Improve boundary offset for non-squarish elements

* Fix localStorage for binding on linear elements

* Simplify dragging code and fix elements bound twice to the same shape

* Fix binding for rectangles

* Bind both ends at the end of the linear element creation, needed for focus points

* wip

* Refactor: Renames and reshapes for next commit

* Calculate and store focus points and gaps, but dont use them yet

* Focus points for rectangles

* Dont blow up when canceling linear element

* Stop suggesting binding when a non-compatible tool is selected

* Clean up collision code

* Using Geometric Algebra for hit tests

* Correct binding for all shapes

* Constant gap around polygon corners

* Fix rotation handling

* Generalize update and fix hit test for rotated elements

* Handle rotation realtime

* Handle scaling

* Remove vibration when moving bound and binding element together

* Handle simultenous scaling

* Allow binding and unbinding when editing linear elements

* Dont delete binding when the end point wasnt touched

* Bind on enter/escape when editing

* Support multiple suggested bindable elements in preparation for supporting linear elements dragging

* Update binding when moving linear elements

* Update binding when resizing linear elements

* Dont re-render UI on binding hints

* Update both ends when one is moved

* Use distance instead of focus point for binding

* Complicated approach for posterity, ignore this commit

* Revert the complicated approach

* Better focus point strategy, working for all shapes

* Update snapshots

* Dont break binding gap when mirroring shape

* Dont break binding gap when grid mode pushes it inside

* Dont bind draw elements

* Support alt duplication

* Fix alt duplication to

* Support cmd+D duplication

* All copy mechanisms are supported

* Allow binding shapes to arrows, having arrows created first

* Prevent arrows from disappearing for ellipses

* Better binding suggestion highlight for shapes

* Dont suggest second binding for simple elements when editing or moving them

* Dont steal already bound linear elements when moving shapes

* Fix highlighting diamonds and more precisely highlight other shapes

* Highlight linear element edges for binding

* Highlight text binding too

* Handle deletion

* Dont suggest second binding for simple linear elements when creating them

* Dont highlight bound element during creation

* Fix binding for rotated linear elements

* Fix collision check for ellipses

* Dont show suggested bindings for selected pairs

* Bind multi-point linear elements when the tool is switched - important for mobile

* Handle unbinding one of two bound edges correctly

* Rename boundElement in state to startBoundElement

* Dont double account for zoom when rendering binding highlight

* Fix rendering of edited linear element point handles

* Suggest binding when adding new point to a linear element

* Bind when adding a new point to a linear element and dont unbind when moving middle elements

* Handle deleting points

* Add cmd modifier key to disable binding

* Use state for enabling binding, fix not binding for linear elements during creation

* Drop support for binding lines, only arrows are bindable

* Reset binding mode on blur

* Fix not binding lines
5 years ago