David Luzar
75e0163dd1
tweak blurry bg for legibility & remove from modals ( #1436 )
2020-04-15 21:20:35 +02:00
Tom Hicks
3b357d8332
Improve UI continuity behind panels ( #1435 )
...
* Add variable for island color
* Make islands semi-transparent
This preserves the notion of the infinite canvas and helps
maintain context, especially on smaller screens.
2020-04-15 10:42:07 -07:00
David Luzar
d998a190df
persist pointerDown event ( #1426 )
2020-04-14 12:33:57 +02:00
dependabot-preview[bot]
7df16c1b1d
Bump prettier from 2.0.3 to 2.0.4 ( #1412 )
...
* Bump prettier from 2.0.3 to 2.0.4
Bumps [prettier](https://github.com/prettier/prettier ) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.0.3...2.0.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* format
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
2020-04-14 12:30:58 +03:00
Faustino Kialungila
cca15b0640
Disable notifications ( #1421 )
...
* Remove notifications
* remove dead component
2020-04-13 18:53:33 +02:00
Timur Khazamov
4228c2e094
[POC] use serviceWorker from create-react-app ( #1286 )
...
* Service worker with toast notifications
* Update CSP to allow fetches from now.sh
* Fixed clearing timers
* rounded icon for pwa (#1301 )
* rounded icon for pwa
* cirle pwa app icon
* fix fonts caching
* fix app
* fix css import
* Updated csp tp inlcude worker-src: self
* add worker CSP rule
* use square icon
Co-authored-by: Timur Khazamov <t1mmaas@skbkontur.ru>
Co-authored-by: Faustino Kialungila <Faustino.kialungila@gmail.com>
Co-authored-by: kbariotis <konmpar@gmail.com>
2020-04-13 16:08:39 +02:00
Jérémie Pardou-Piquemal
e158dbc45a
Prevent next paste on middle clic with linux ( #1402 )
2020-04-13 16:10:26 +03:00
David Luzar
6771b505ad
rewrite wysiwyg property updating ( #1387 )
...
* rewrite wysiwyg property updating
* reuse existing class
* fix case of focus being stolen by other UIs
* revert mistake csp removal
* ensure we don't run cleanup twice
* fix opacity updating
* add shape actions menu class to constants
2020-04-12 15:57:57 +02:00
Aakansha Doshi
227ff60909
refactor(app.tsx): move Portal to new file and some refactoring ( #1398 )
2020-04-12 12:54:52 +02: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
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
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
Jed Fox
f7e3ee2064
Use open-color directly ( #1371 )
2020-04-11 01:09:29 +03:00
Jed Fox
8ce595e5d6
Add rule banning literal text in JSX ( #1367 )
2020-04-10 12:58:46 -04: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
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
Sanghyeon Lee
9761d7ea50
Refactor ResizeArrowFnType to resolve Codesandbox parsing error ( #1338 )
2020-04-09 19:10:35 +03: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
Edwin Lin
d5899f6ca0
Make the mouse location broadcast volatile ( #1331 )
2020-04-09 02:13:32 -07: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
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
Sanghyeon Lee
26facfa710
Fix 'Dialog' keydown event and prop type warning ( #1305 )
2020-04-08 15:31:40 +03:00
Kent Beck
9a1af38c97
Begin extracting collaboration code to Portal ( #1306 )
2020-04-07 15:29:43 -07:00
Lipis
5b684495ef
Translate click and change label ( #1299 )
2020-04-07 16:40:37 +03:00
Kostas Bariotis
67805bc7a7
Add collaborators names ( #1223 )
...
* 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>
2020-04-07 14:02:42 +01:00
Lipis
0c3d34261e
Fixes in Shortcuts dialog and minor refactor ( #1297 )
2020-04-07 14:39:06 +03:00
Mohit kumar Bajoria
e4c154f43e
Button for shortcuts ( #1253 )
2020-04-07 13:42:10 +03:00
Shriram Balaji
22160f50d3
Wrap localStorage API Access in try-catch ( #1241 )
2020-04-07 13:09:37 +03:00
Daishi Kato
2cc1105ff5
Resize multiple elements (rectangles, diamonds and ellipses onl… ( #1193 )
...
* 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
2020-04-07 10:49:59 +02:00
David Luzar
e9b4700bba
edit text when clicked on with text tool ( #1283 )
2020-04-06 22:26:54 +02:00
David Luzar
d3ed5a42fc
fix font being reset to current state font on edit ( #1282 )
2020-04-06 22:26:00 +02:00
Lipis
0c41f3e7aa
Add curved lines/arrows shortcuts ( #1274 )
2020-04-06 17:26:05 +03:00
Lipis
60d9567e2d
Add Select All shortcut ( #1270 )
2020-04-06 15:07:28 +03:00
dependabot-preview[bot]
18f0b76231
Bump prettier from 2.0.2 to 2.0.3 ( #1263 )
...
* Bump prettier from 2.0.2 to 2.0.3
Bumps [prettier](https://github.com/prettier/prettier ) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.0.2...2.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Format
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
2020-04-06 14:21:07 +03:00
Roxana Chiorean
d5366db341
Adding ability to copy to clipboard as SVG ( #1250 )
2020-04-06 02:13:17 +03:00
Mohit kumar Bajoria
2de4fe29ad
Full Screen mode ( #1212 )
2020-04-06 00:47:13 +03:00
Lipis
9a0889c698
Show shortcuts dialog when pressing ?
( #1224 )
2020-04-05 15:58:00 +03:00
Kostas Bariotis
b97520400a
Broadcast mouse activity ( #1175 )
...
* broadcast mouse activity
* move to same MOUSE_LOCATION event
* remove key up handler
* update tests
* Fix border
* refactor
* rename activity to button
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
2020-04-04 17:12:19 +02:00
David Luzar
23540eba4c
sync remote selection ( #1207 )
...
* sync remote selection
* skip deleted elements
* remove unnecessary condition & change naming
2020-04-04 16:02:16 +02:00
Faustino Kialungila
adc099ed15
Refactor dnd event handler ( #1221 )
2020-04-04 15:27:53 +02:00
Faustino Kialungila
d243f3901c
Insert text on double tap ( #1217 )
...
* Insert text on double tap(mobile)
* handleCanvasRef
2020-04-04 14:55:36 +02:00