Commit Graph

1013 Commits (f1ceeab8d965b96dedab02bae8c5fd7d698b4368)
 

Author SHA1 Message Date
fujimoto kyosuke 166ad0412c
Fix to reflect `textAlign` property to SVG export ()
Kostas Bariotis 7b3816d0d3
Store username for every room ()
* store username for every room

* add missing fun
Kostas Bariotis 5e2f164026
PoC: Expose wysiwyg element to manipulate from outside ()
* expose wysiwyg element to manipulate from outside

* keep focus after changing style

* update editingElement correctly

* remove mistake

* update text only

* proper check for element

* udpate snapshots

* add error log

* remove try catch handler

* remove blur event

* add proper types

* merge if condition

* simplify if condition

Co-Authored-By: Lipis <lipiridis@gmail.com>

Co-authored-by: dwelle <luzar.david@gmail.com>
Co-authored-by: Lipis <lipiridis@gmail.com>
Co-authored-by: Fausto95 <faustino.kialungila@gmail.com>
Lipis d2246bfb30
New Crowdin translations ()
Shriram Balaji af09c977bf
Add Content Security Policy Header Tag ()
* Add Content Security Policy Header Tag

* Update CSP for connect-src with https, wss
Lipis a3fd464702
New Crowdin translations ()
* New translations en.json (Spanish)

* New translations en.json (Russian)

* New translations en.json (Portuguese)

* New translations en.json (Portuguese)

* New translations en.json (Italian)

* New translations en.json (Arabic)

* New translations en.json (Italian)

* New translations en.json (Turkish)

* New translations en.json (Spanish)

* New translations en.json (Russian)

* New translations en.json (Portuguese)

* New translations en.json (Polish)

* New translations en.json (Norwegian)

* New translations en.json (Korean)

* New translations en.json (Indonesian)

* New translations en.json (Chinese Simplified)

* New translations en.json (Hungarian)

* New translations en.json (Hindi)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (French)

* New translations en.json (Dutch)

* New translations en.json (Chinese Traditional)

* New translations en.json (Bulgarian)

* New translations en.json (German)

* New translations en.json (Chinese Simplified)

* New translations en.json (Norwegian)

* New translations en.json (Spanish)

* New translations en.json (Greek)

* New translations en.json (Bulgarian)

* New translations en.json (Polish)

* New translations en.json (French)

* New translations en.json (Arabic)

* New translations en.json (Italian)

* New translations en.json (Turkish)

* New translations en.json (Spanish)

* New translations en.json (Russian)

* New translations en.json (Portuguese)

* New translations en.json (Polish)

* New translations en.json (Norwegian)

* New translations en.json (Korean)

* New translations en.json (Indonesian)

* New translations en.json (Chinese Simplified)

* New translations en.json (Hungarian)

* New translations en.json (Hindi)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (French)

* New translations en.json (Dutch)

* New translations en.json (Chinese Traditional)

* New translations en.json (Bulgarian)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (French)

* New translations en.json (Norwegian)

* New translations en.json (Spanish)

* New translations en.json (Chinese Simplified)

* New translations en.json (German)

* New translations en.json (Indonesian)

* New translations en.json (Polish)
Tom Dohnal f3ef93e9ce
Allow to drag THEN press alt to duplicate ()
* fix typo

* duplicate elements when alt is pressed on pointer move

* document use case

Co-authored-by: dwelle <luzar.david@gmail.com>
Daishi Kato 5ca763cdbb
Calculate rotated element bounds properly ()
* Calculate rotated element bounds properly, fixes 

* prefer isLinearElement

* empty commit
fujimoto kyosuke b971737d32
Restore textAlign property ()
Jed Fox f7e3ee2064
Use open-color directly ()
Thomas Steiner 6d30351164
Handle the createWriter situation correctly ()
Jed Fox 8ce595e5d6
Add rule banning literal text in JSX ()
Lipis 7f04239176
Allow Seentry ()
Jed Fox 16a3aa7561
Fix mobile dialog styling ()
Lipis f134211bf9
Ask for name instead of username ()
Jed Fox 136b14cef5
Update shortcut display for enter on Mac ()
Kostas Bariotis 0a284adc18
Allow opening empty excalidraw file ()
* allow openning empty file

* correctly throw error

* fix error handling

* switch back to error objects

Co-authored-by: dwelle <luzar.david@gmail.com>
Lipis 70e7dd6e3b
Add more shortcuts and minor refactor ()
Thomas Steiner 737e4aefc8
createWriter is now createWritable ()
Lipis d04eaf7040
New Crowdin translations ()
Sanghyeon Lee 9761d7ea50
Refactor ResizeArrowFnType to resolve Codesandbox parsing error ()
José Quinto 8efe0b7d05
Shift loses pointer fixing ()
* change resize math to absolute instead of delta

* typings

* small change for width on rotation

* apply absolute resize to other sides

* revert&change math.ts

* polish, polish, polish

* refactor with offset

* eliminate nextX

* rename to offsetPointer

* fix curved lines

* prefer arrow function

* remove unused variables/comments for now

Co-authored-by: daishi <daishi@axlight.com>
Sanghyeon Lee bd32a26653
Move GitHub corner and visually-hidden class ()
* Move visually-hidden class to index.html

* Replace github corner with component

* Momoize GitHubCorner

* Simplify component return
fujimoto kyosuke b1ed5b4cdc
Support negative resize for multiple points line/arrow ()
* Support negative resize for multiple points line

* prettier

* Fix an issue with width or height becoming zero
Edwin Lin d5899f6ca0
Make the mouse location broadcast volatile ()
Preet 2852610960
bump roughjs version ()
Preet 57bbc9fe55
Fill a looped curve with the selected background color ()
Dreace fe6f482e96
Optimize ShortcutsDialog style ()
* Optimize ShortcutsDialog style

* Add word-break only to ShortcutKey
Youness Fkhach ff82d1cfa3
feat/ability to change the alignment of the text ()
* feat: add the ability to change the alignement of the text

* test: update the snapshots to included the newely textAlign state

* style: use explicit key assignment to object

* test: add missing new key textAlign to newElement.test.ts

* style: make the text on the buttons start with uppercase

* Update src/locales/en.json

* add types

* add migration

* remove incorrect update

Co-authored-by: Youness Fkhach <younessfkhach@porotonmail.com>
Co-authored-by: Lipis <lipiridis@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
David Luzar 3fd6f3023f
support newline on shift+enter ()
Kent Beck fdebb38bf6
Move more stuff to Portal ()
Pete Hunt df0613d8ac
Add NonDeleted<ExcalidrawElement> ()
* add NonDeleted

* make test:all script run tests without prompt

* rename helper

* replace with helper

* make element contructors return nonDeleted elements

* cache filtered elements where appliacable for better perf

* rename manager element getter

* remove unnecessary assertion

* fix test

* make element types in resizeElement into nonDeleted

Co-authored-by: dwelle <luzar.david@gmail.com>
Lipis c714c778ab
New Crowdin translations ()
* New translations en.json (German)

* New translations en.json (Turkish)
Sanghyeon Lee 26facfa710
Fix 'Dialog' keydown event and prop type warning ()
Lipis 020eebb663
New Crowdin translations ()
Lipis 26fd2fe165
Better name for app state ()
* Better name for app state

* Snapshot
Kent Beck 9a1af38c97
Begin extracting collaboration code to Portal ()
Timur Khazamov ed378170b7
Use woff2 instead ttf ()
* Use woff2 instead ttf

* Update font in svg-exported files to use woff2

Co-authored-by: Timur Khazamov <t1mmaas@skbkontur.ru>
Daishi Kato c3b83fba38
fix detecting rotated elements with selection ()
* fix 

* Update src/element/bounds.ts

* prefer arrow functions

* fix merging

Co-authored-by: Lipis <lipiridis@gmail.com>
Lipis 98ea88262f
Shorter title ()
Lipis 03c22c1255
Switch to `Sentence case` instead of `Title Case` ()
David Luzar 88cec2df5e
log console.error to sentry ()
* log console.error to sentry

* fix
dependabot-preview[bot] 13a2253cdc
Bump @types/react-dom from 16.9.5 to 16.9.6 ()
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 16.9.5 to 16.9.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Lipis 5b684495ef
Translate click and change label ()
David Luzar b7230b05d7
add task to update snapshots & update readme ()
* add task to update snapshots & update readme

* remove test:app from readme & tweak
Kostas Bariotis 67805bc7a7
Add collaborators names ()
* add random usernames

* add username state

* add username input

* ability to set names

* fix tests

* set username oon mobile

* remove auto generated names

* remove commented code

* always string

* updaate snapshots

* maintain username when clearing canvas

* Update src/renderer/renderScene.ts

Co-Authored-By: Lipis <lipiridis@gmail.com>

* add border

* fix styles

Co-authored-by: Pete Hunt <petehunt@users.noreply.github.com>
Co-authored-by: Faustino Kialungila <faustino.kialungila@gmail.com>
Co-authored-by: Lipis <lipiridis@gmail.com>
Lipis 0c3d34261e
Fixes in Shortcuts dialog and minor refactor ()
Mohit kumar Bajoria e4c154f43e
Button for shortcuts ()
Shriram Balaji 22160f50d3
Wrap localStorage API Access in try-catch ()
Daishi Kato 2cc1105ff5
Resize multiple elements (rectangles, diamonds and ellipses onl… ()
* experiment resizing multiple elements

* hack common component

* calculate scale properly (still se only)fg

* prioritize multi selection

* take handle offset into calculation

* fix master merge

* refactor resizeElements out from App

* wip: handlerRectanglesFromCoords

* fix test with type assertion

* properly show handles wip

* revert previous one and do a tweak

* remove unnecessary assignments

* replace hack code with good one

* refactor coords in arg

* resize NW

* resize from sw,ne

* fix with setResizeHandle

* do not show hint while resizing multiple elements

* empty commit

* fix format