1203 Commits

Author SHA1 Message Date
Thomas Steiner
3cee0768cc
Null file handle doesn’t need to be passed ()
* Bump browser-nativefs version to v0.2.0

In reply to https://github.com/tomayac/browser-nativefs/issues/2.

* Update package-lock.json

* Null file handle doesn’t need to be passed
2020-06-15 12:23:23 +02:00
Thomas Steiner
5d3867d8ac
Implement Save without re-prompt and Save as ()
* Implement Save without re-prompt and Save as
Fixes 

* Add save-as icon

* Make .excalidraw the default extension

* Only show save as button on supporting browsers
2020-06-12 18:35:04 +02:00
Lipis
0ed6a96b6a
New Crowdin translations () 2020-06-10 18:24:36 +03:00
David Luzar
dadf054ea2
fix not always generating shape on render () 2020-06-09 17:36:25 +02:00
Thomas Steiner
6b87278a0f
Add file handling ()
* Add file handling
https://github.com/WICG/file-handling/blob/master/explainer.md#example

* Only trigger on `.excalidraw` for now
2020-06-08 13:02:06 +02:00
Saransh Barua
998f0ae458
remove z-index for color-picker-hash div () 2020-06-08 06:52:54 -04:00
Aakansha Doshi
60973f6dc5
rename container class to excalidraw and move css from index.html to app.css ()
Moved the css from index.html to app.css so it can be included in upstream app as well
2020-06-08 13:36:35 +03:00
Daishi Kato
53ab46126d
support resizing multiple elements including texts ()
Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-06-08 11:25:20 +02:00
dependabot-preview[bot]
ebb1341bbd
Bump @testing-library/react from 10.0.4 to 10.2.1 ()
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-08 12:19:55 +03:00
dependabot-preview[bot]
5a5f9aed0d
Bump typescript from 3.9.3 to 3.9.5 ()
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-08 12:19:47 +03:00
dependabot-preview[bot]
bec8e55c42
Bump browser-nativefs from 0.7.3 to 0.8.1 ()
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-08 12:19:39 +03:00
dependabot-preview[bot]
1df43d0f9f
Bump lint-staged from 10.2.7 to 10.2.9 ()
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-08 12:19:29 +03:00
Youness Fkhach
d171e9705d
Fix RTL text direction rendering (reopened) ()
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-06-07 11:55:08 +02:00
Pete Hunt
f7c4efbd35
Excalicharts MVP ()
Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-06-06 22:09:04 +02:00
David Luzar
d1be2a5481
fix text constructor groupIds & improve type safety () 2020-06-06 13:32:43 +02:00
dependabot-preview[bot]
4eb6c3e8a4
[Security] Bump websocket-extensions from 0.1.3 to 0.1.4 ()
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-05 19:46:27 +03:00
fujimoto kyosuke
476c0e9f8a
Fix undo with line editing () 2020-06-05 17:11:24 +02:00
Lipis
c6e73c56fd
New Crowdin translations () 2020-06-05 14:07:00 +03:00
Farooq AR
669e84b5d7
Add regression tests for context-menu () ()
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-06-04 22:09:16 +02:00
David Luzar
ff93d95998
Revert "Fix RTL text direction rendering ()" ()
This reverts commit a118bed82f898a365cf5f71ed32f69f51fd08a47.
2020-06-03 12:12:43 +02:00
Kostas Bariotis
1f375522d6
rename docker repo () 2020-06-02 20:26:16 +01:00
Guillaume Briday
5ed4614a8c
Adding publish-docker workflow () 2020-06-02 20:22:40 +01:00
Youness Fkhach
a118bed82f
Fix RTL text direction rendering ()
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-06-02 21:31:34 +03:00
Steven Nguyen
fd75b88bd3
Double finger zoom should not select things () 2020-06-02 19:41:40 +03:00
Lipis
1e9adf0a80
New Crowdin translations () 2020-06-02 15:13:30 +03:00
dependabot-preview[bot]
0190af2d76
Bump @testing-library/jest-dom from 5.8.0 to 5.9.0 ()
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.8.0 to 5.9.0.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.8.0...v5.9.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-02 03:23:34 +03:00
dependabot-preview[bot]
b0d3f18824
Bump pwacompat from 2.0.12 to 2.0.15 ()
Bumps [pwacompat](https://github.com/GoogleChrome/pwacompat) from 2.0.12 to 2.0.15.
- [Release notes](https://github.com/GoogleChrome/pwacompat/releases)
- [Commits](https://github.com/GoogleChrome/pwacompat/compare/v2.0.12...v2.0.15)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-02 03:23:21 +03:00
dependabot-preview[bot]
b74fa0dcf0
Bump lint-staged from 10.2.6 to 10.2.7 ()
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.2.6 to 10.2.7.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.2.6...v10.2.7)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-02 03:22:56 +03:00
Lipis
3f31a6ce89
New Crowdin translations () 2020-06-02 02:42:37 +03:00
Lipis
d3d9994c74
New Crowdin translations ()
* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (Persian)

* New translations en.json (French)

* New translations en.json (Portuguese)

* New translations en.json (Persian)

* New translations en.json (Albanian)

* New translations en.json (Catalan)

* New translations en.json (Hebrew)

* New translations en.json (Hindi)

* New translations en.json (Indonesian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Spanish)

* New translations en.json (Norwegian)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Bulgarian)

* New translations en.json (Arabic)

* New translations en.json (Ukrainian)

* New translations en.json (French)
2020-06-01 07:00:35 -04:00
David Luzar
14a66956d7
Implement line editing ()
* implement line editing

* line editing with rotation

* ensure adding new points is disabled on point dragging

* fix hotkey replacement

* don't paint bounding box when creating new multipoint

* tweak points style, account for zoom and z-index

* don't persist editingLinearElement to localStorage

* don't mutate on noop points updates

* account for rotation when adding new point

* ensure clicking on points doesn't deselect element

* tweak history handling around editingline element

* update snapshots

* refactor pointerMove handling

* factor out point dragging

* factor out pointerDown

* improve positioning with rotation

* revert to use roughjs for calculating points bounds

* migrate from storing editingLinearElement.element to id

* make GlobalScene.getElement into O(1)

* use Alt for adding new points

* fix adding and deleting a point with rotation

* disable resize handlers & bounding box on line edit

Co-authored-by: daishi <daishi@axlight.com>
2020-06-01 11:35:44 +02:00
Lipis
db316f32e0
New Crowdin translations () 2020-05-31 17:35:34 +03:00
Youness Fkhach
9151da772c
feat: hide the UI elements when printing the page () 2020-05-30 13:51:28 -07:00
David Luzar
f413bab3de
Fix group element removing () 2020-05-30 13:48:57 -07:00
Aakansha Doshi
17e9cc4506
Some cleanup in App.tsx () 2020-05-30 15:26:17 +02:00
Aakansha Doshi
fa359034c5
scroll the closest element to center ()
Co-authored-by: Sanghyeon Lee <yongdamsh@gmail.com>
2020-05-30 14:02:32 +02:00
David Luzar
0db7ac78c4
fix fontFamily state updating () 2020-05-29 21:59:39 +02:00
David Luzar
44a88d2d58
Rewrite restore to guard against missing migrations () 2020-05-28 02:41:34 -07:00
Pete Hunt
56f8bc092d
Tests for groups, more test utils () 2020-05-28 10:56:18 +02:00
David Luzar
4f3bf79708
skip element mutation on noop updates () 2020-05-28 00:50:56 -07:00
Daishi Kato
7edcea9a93
feat: resize text element ()
* feat: resize text element

* ignore small font size change that leads jankiness

Co-authored-by: dwelle <luzar.david@gmail.com>
2020-05-28 07:17:15 +09:00
David Luzar
5327e8a3dc
fix language change not rerendering ui () 2020-05-27 16:46:11 +02:00
dependabot-preview[bot]
5b75925928
Bump i18next-browser-languagedetector from 4.1.1 to 4.2.0 ()
Bumps [i18next-browser-languagedetector](https://github.com/i18next/i18next-browser-languageDetector) from 4.1.1 to 4.2.0.
- [Release notes](https://github.com/i18next/i18next-browser-languageDetector/releases)
- [Changelog](https://github.com/i18next/i18next-browser-languageDetector/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/i18next-browser-languageDetector/compare/v4.1.1...v4.2.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-27 16:34:33 +03:00
dependabot-preview[bot]
ce8d88a486
Bump @testing-library/jest-dom from 5.7.0 to 5.8.0 ()
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.7.0 to 5.8.0.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.7.0...v5.8.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-27 16:34:19 +03:00
David Luzar
63c10743fb
split font into fontSize and fontFamily () 2020-05-27 15:14:50 +02:00
Pete Hunt
46b574283f
Fix zindex in groups () 2020-05-26 22:56:22 +02:00
Pete Hunt
61e5b66dac
Group/ungroup ()
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-05-26 13:07:46 -07:00
Aakansha Doshi
5252726307
dynamically import socket.io-client when needed () 2020-05-26 20:51:03 +02:00
dependabot-preview[bot]
5a64447adc
Bump @types/jest from 25.2.2 to 25.2.3 ()
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-26 17:24:35 +03:00
dependabot-preview[bot]
f1afeda62c
Bump lint-staged from 10.2.2 to 10.2.6 ()
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-26 17:24:22 +03:00