fujimoto kyosuke
6abcb2d87f
Suppresses unnecessary fill-rule attribute in SVG ( #1397 )
2020-04-12 00:03:49 -07:00
fujimoto kyosuke
8b805d436f
Fix fill of looping lines in exported SVG ( #1396 )
2020-04-11 19:46:46 -07:00
Daishi Kato
038cff8793
fix calc diamond bounds ( #1394 )
2020-04-11 18:19:01 -07:00
Aakansha Doshi
e98fba38be
refactor(app.tsx): use constants instead of hard coded strings for better readablility ( #1391 )
...
don't use inline function as it will create a new refrence everytime
2020-04-11 17:42:02 -07:00
Roxana Chiorean
d902bbd618
Fix flickering mouse tracking when using two touches on mobile ( #1390 )
2020-04-11 15:26:27 -07:00
Lipis
2b9ae38946
Alt drag to shortcuts for duplicate ( #1389 )
2020-04-11 23:04:53 +02:00
Kostas Bariotis
2adae4132b
Global username instead of per room ( #1382 )
...
* global username
* remove string interpolation
Co-Authored-By: Lipis <lipiridis@gmail.com>
* remove string interpolation
Co-Authored-By: Lipis <lipiridis@gmail.com>
* remove backwards compat
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-04-11 21:23:12 +01:00
fujimoto kyosuke
166ad0412c
Fix to reflect textAlign
property to SVG export ( #1375 )
2020-04-11 19:17:20 +03:00
Kostas Bariotis
7b3816d0d3
Store username for every room ( #1381 )
...
* store username for every room
* add missing fun
2020-04-11 19:13:10 +03:00
Kostas Bariotis
5e2f164026
PoC: Expose wysiwyg element to manipulate from outside ( #1356 )
...
* 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>
2020-04-11 18:10:56 +02:00
Lipis
d2246bfb30
New Crowdin translations ( #1380 )
2020-04-11 18:26:39 +03:00
Shriram Balaji
af09c977bf
Add Content Security Policy Header Tag ( #1379 )
...
* Add Content Security Policy Header Tag
* Update CSP for connect-src with https, wss
2020-04-11 18:22:16 +03:00
Lipis
a3fd464702
New Crowdin translations ( #1344 )
...
* 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)
2020-04-11 08:37:26 -04:00
Tom Dohnal
f3ef93e9ce
Allow to drag THEN press alt to duplicate ( #1373 )
...
* fix typo
* duplicate elements when alt is pressed on pointer move
* document use case
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-04-11 13:37:43 +02:00
Daishi Kato
5ca763cdbb
Calculate rotated element bounds properly ( #1354 )
...
* Calculate rotated element bounds properly, fixes #1303
* prefer isLinearElement
* empty commit
2020-04-11 13:10:47 +02:00
fujimoto kyosuke
b971737d32
Restore textAlign property ( #1374 )
2020-04-11 10:59:22 +02:00
Jed Fox
f7e3ee2064
Use open-color directly ( #1371 )
2020-04-11 01:09:29 +03:00
Thomas Steiner
6d30351164
Handle the createWriter situation correctly ( #1370 )
2020-04-10 19:36:16 +02:00
Jed Fox
8ce595e5d6
Add rule banning literal text in JSX ( #1367 )
2020-04-10 12:58:46 -04:00
Lipis
7f04239176
Allow Seentry ( #1366 )
2020-04-10 09:54:04 -07:00
Jed Fox
16a3aa7561
Fix mobile dialog styling ( #1363 )
2020-04-10 18:13:31 +03:00
Lipis
f134211bf9
Ask for name instead of username ( #1362 )
2020-04-10 18:12:51 +03:00
Jed Fox
136b14cef5
Update shortcut display for enter on Mac ( #1358 )
2020-04-10 17:13:06 +03:00
Kostas Bariotis
0a284adc18
Allow opening empty excalidraw file ( #1348 )
...
* allow openning empty file
* correctly throw error
* fix error handling
* switch back to error objects
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-04-10 11:58:09 +02:00
Lipis
70e7dd6e3b
Add more shortcuts and minor refactor ( #1347 )
2020-04-09 22:58:29 +03:00
Thomas Steiner
737e4aefc8
createWriter is now createWritable ( #1345 )
2020-04-09 19:13:22 +02:00
Lipis
d04eaf7040
New Crowdin translations ( #1323 )
2020-04-09 19:11:01 +03:00
Sanghyeon Lee
9761d7ea50
Refactor ResizeArrowFnType to resolve Codesandbox parsing error ( #1338 )
2020-04-09 19:10:35 +03:00
José Quinto
8efe0b7d05
Shift loses pointer fixing #1296 ( #1330 )
...
* 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>
2020-04-10 00:14:32 +09:00
Sanghyeon Lee
bd32a26653
Move GitHub corner and visually-hidden class ( #1336 )
...
* Move visually-hidden class to index.html
* Replace github corner with component
* Momoize GitHubCorner
* Simplify component return
2020-04-09 16:48:41 +03:00
fujimoto kyosuke
b1ed5b4cdc
Support negative resize for multiple points line/arrow ( #1237 )
...
* Support negative resize for multiple points line
* prettier
* Fix an issue with width or height becoming zero
2020-04-09 11:53:12 +02:00
Edwin Lin
d5899f6ca0
Make the mouse location broadcast volatile ( #1331 )
2020-04-09 02:13:32 -07:00
Preet
2852610960
bump roughjs version ( #1332 )
2020-04-09 11:12:01 +02:00
Preet
57bbc9fe55
Fill a looped curve with the selected background color ( #1315 )
2020-04-09 11:46:47 +03:00
Dreace
fe6f482e96
Optimize ShortcutsDialog style ( #1329 )
...
* Optimize ShortcutsDialog style
* Add word-break only to ShortcutKey
2020-04-09 11:23:10 +03:00
Youness Fkhach
ff82d1cfa3
feat/ability to change the alignment of the text ( #1213 )
...
* 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>
2020-04-08 22:00:27 +02:00
David Luzar
3fd6f3023f
support newline on shift+enter ( #1324 )
2020-04-08 20:56:27 +02:00
Kent Beck
fdebb38bf6
Move more stuff to Portal ( #1309 )
2020-04-08 10:18:56 -07:00
Pete Hunt
df0613d8ac
Add NonDeleted<ExcalidrawElement> ( #1068 )
...
* 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>
2020-04-08 18:49:52 +02:00
Lipis
c714c778ab
New Crowdin translations ( #1319 )
...
* New translations en.json (German)
* New translations en.json (Turkish)
2020-04-08 18:12:28 +03:00
Sanghyeon Lee
26facfa710
Fix 'Dialog' keydown event and prop type warning ( #1305 )
2020-04-08 15:31:40 +03:00
Lipis
020eebb663
New Crowdin translations ( #1277 )
2020-04-08 13:14:30 +03:00
Lipis
26fd2fe165
Better name for app state ( #1300 )
...
* Better name for app state
* Snapshot
2020-04-07 15:31:28 -07:00
Kent Beck
9a1af38c97
Begin extracting collaboration code to Portal ( #1306 )
2020-04-07 15:29:43 -07:00
Timur Khazamov
ed378170b7
Use woff2 instead ttf ( #1307 )
...
* Use woff2 instead ttf
* Update font in svg-exported files to use woff2
Co-authored-by: Timur Khazamov <t1mmaas@skbkontur.ru>
2020-04-07 15:28:44 -07:00
Daishi Kato
c3b83fba38
fix detecting rotated elements with selection ( #1273 )
...
* fix #1232
* Update src/element/bounds.ts
* prefer arrow functions
* fix merging
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-04-07 16:04:20 +02:00
Lipis
98ea88262f
Shorter title ( #1293 )
2020-04-07 17:02:29 +03:00
Lipis
03c22c1255
Switch to Sentence case
instead of Title Case
( #1279 )
2020-04-07 16:57:27 +03:00
David Luzar
88cec2df5e
log console.error to sentry ( #1243 )
...
* log console.error to sentry
* fix
2020-04-07 15:54:49 +02:00
dependabot-preview[bot]
13a2253cdc
Bump @types/react-dom from 16.9.5 to 16.9.6 ( #1266 )
...
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>
2020-04-07 16:41:08 +03:00