Commit Graph

1859 Commits

Author SHA1 Message Date
cac2dda5ac Add loading state ()
* add loading state

* update snapshots

* add border radius

* fix comment breaking build jsx
2020-03-26 18:28:26 +01:00
d8708cb14f Apply scroll-back-to-content's z-index only for mobile ()
ref: https://github.com/excalidraw/excalidraw/pull/1002/files#diff-6a2256f44598ec970b4bd034962e011eR376
2020-03-26 13:22:15 +02:00
6fd2a3b2e5 fix z-index action to account for deleted elems and add tests () 2020-03-26 00:28:50 -07:00
fb82715ef7 New Crowdin translations ()
* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Traditional)
2020-03-25 22:50:53 +01:00
051a946438 Add Enter key handler that can start text editing ()
* Add handler that can start text editing with Enter key

* Refine `startTextEditing` parameters

* Apply prettier fixes
2020-03-25 17:12:51 +01:00
12d7550958 fixed generateCollaborationLink() () 2020-03-25 17:18:22 +02:00
4442addc02 Type action names ()
* Type action names

* improve typing

Co-authored-by: dwelle <luzar.david@gmail.com>
2020-03-25 14:13:59 +01:00
9cc1037e7b New Crowdin translations () 2020-03-25 12:35:29 +02:00
42df058223 load from localStorage only if not in multiplayer () 2020-03-24 09:57:59 -07:00
104e48b6cb Add the shape lock button for mobile () 2020-03-24 12:51:49 +02:00
e38045ccad New Crowdin translations ()
* New translations en.json (Norwegian)

* New translations en.json (Norwegian)

* New translations en.json (Chinese Simplified)

* New translations en.json (Chinese Simplified)

* New translations en.json (Chinese Simplified)

* New translations en.json (French)

* New translations en.json (German)

* New translations en.json (Indonesian)

* New translations en.json (Norwegian)

* New translations en.json (Polish)

* New translations en.json (Portuguese)

* New translations en.json (Russian)

* New translations en.json (Spanish)

* New translations en.json (Turkish)

* New translations en.json (Korean)

* New translations en.json (Chinese Traditional)

* New translations en.json (Hungarian)

* New translations en.json (Norwegian)

* New translations en.json (French)
2020-03-24 09:55:29 +01:00
bd7856adf3 Much more thorough tests! () 2020-03-23 16:38:41 -07:00
cf4fa30a57 tweak png copy button label ()
* tweak png copy button label

* fix lint
2020-03-23 16:15:22 +01:00
722c498abe Bump prettier from 1.19.1 to 2.0.1 ()
* Bump prettier from 1.19.1 to 2.0.1

Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.1.
- [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/1.19.1...2.0.1)

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

* Update formatting

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
2020-03-23 13:05:07 +02:00
c7f10c5de2 New Crowdin translations ()
* New translations en.json (German)

* New translations en.json (German)

* New translations en.json (German)
2020-03-22 23:01:38 +02:00
8a6e2bf9cf Use system fonts where possible. ()
Also put Arial after Helvetica. I hate Arial.
2020-03-22 16:11:21 -04:00
f1160a1534 load scene from localStorage in collaboration if user is first… ()
* load scene from localStorage in collaboration if user is first in room

* load scene from localStorage in collaboration prior to syncing with server

* fix merge

Co-authored-by: dwelle <luzar.david@gmail.com>
2020-03-22 18:41:05 +01:00
ba3cec8d0d App mitosis begins () 2020-03-22 18:24:50 +01:00
125d1294a0 New Crowdin translations () 2020-03-22 16:14:45 +02:00
daa121e909 Add a warning to encourage people to update translations direct… () 2020-03-22 14:43:06 +01:00
5b6723b514 New Crowdin translations () 2020-03-22 06:24:38 +02:00
d3d25a128c Extract helper for App context menu handling ()
* Encapsulate SceneHistory. A little.

* Clean up TopErrorBoundary

* Extract helper for App context menu handling
2020-03-21 17:03:17 +01:00
1e8cd2bd1c Separated specification and implementation in TopErrorBoundary ()
* Encapsulate SceneHistory. A little.

* Clean up TopErrorBoundary
2020-03-21 10:26:01 +01:00
f6b36519f1 don't pass deleted elements to UI () 2020-03-20 21:46:09 +01:00
dc618ab122 Encapsulate SceneHistory. A little. () 2020-03-20 18:45:30 +01:00
46e619d800 New Crowdin translations () 2020-03-20 18:32:46 +02:00
edd54d93b3 revert ()
This reverts commit 1546c00c0c.
2020-03-20 16:46:06 +01:00
0ad6f4ec6b Remove deleted elements from svg export ()
* Remove deleted elements from svg export

* skip deleted elements

* remove old comment

Co-authored-by: dwelle <luzar.david@gmail.com>
2020-03-20 15:19:20 +01:00
1546c00c0c Fix adding incorrect dragging element when handleCanvasPointerD… () 2020-03-20 11:00:50 +01:00
6b3dee6777 New Crowdin translations () 2020-03-19 22:12:47 +02:00
fda06e4fc3 Fix history - the 2nd installment ()
* don't regenerate versionNonce on pushEntry

* fix history handling around multi-point arrows

* remove filtering from getElementMap helper
2020-03-19 11:41:32 -07:00
f14aaccc38 Fix SpaceBar pan () 2020-03-19 08:59:20 -07:00
82ce068972 fix history ()
* fix history

* tweak withBatchedUpdates typing
2020-03-19 14:51:05 +01:00
59fa371367 New translations en.json (Chinese Simplified) () 2020-03-19 07:56:57 +01:00
ff033640e4 expose a few state props for debugging ()
* expose a few state props for debugging

* rename h.appState & add h.setState

* support setting elements
2020-03-18 20:44:05 +01:00
cb66adc716 Add a Shortcut for Toggling Shape Lock ()
* Update shortcuts.md for Lock

* Add 'Q' as a shortcut for toggling shape lock

* Add shortcut to LockIcon title

* use event.key instead

Co-authored-by: Faustino Kialungila <Faustino.kialungila@gmail.com>
2020-03-18 19:29:59 +01:00
cb68153a81 New Crowdin translations () 2020-03-18 19:59:48 +02:00
b7da524538 confirm arrow on doubleclick ()
* confirm arrow on double click

* change hint

* fix cursor not updating on click
2020-03-18 16:43:06 +01:00
254a0753ff fix negative resize for non-multipoint elements () 2020-03-18 08:34:04 -07:00
d8bbe536a7 Restyle the mobile UI a bit ()
* Restyle the bottom bar on mobile as an Island

* Shorter label for collaboration button, truncate too-long button labels

* Refactor safe area things to global vars

* Fix scroll bar positioning, don’t block scrollbars with menu island

* Update text
2020-03-18 11:31:40 -04:00
793e0e4aa0 Remove redundant text () 2020-03-18 13:27:10 +01:00
23b785de68 Trim trailing newlines ()
* trim newlines for text elements

* fix comment
2020-03-18 13:01:33 +01:00
6fe40516bf deselect all elements when inserting text with double click () 2020-03-17 23:11:27 -07:00
7d57d124bd Fix alt drag () 2020-03-17 15:21:35 -07:00
373d16abe6 improve & granularize ExcalidrawElement types ()
* improve & granularize ExcalidrawElement types

* fix incorrectly passing type

* fix tests

* fix more tests

* fix unnecessary spreads & refactor

* add comments
2020-03-17 20:55:40 +01:00
1c545c1d47 New Crowdin translations () 2020-03-17 21:46:35 +02:00
b603337c3f Fix multielements () 2020-03-17 11:01:11 -07:00
0dc07135b7 Fix three rendering when loading ()
The problem is that syncActionResult wasn't using batching.
2020-03-16 19:21:01 -07:00
e9f5175f51 Fix performance bug () 2020-03-16 19:07:47 -07:00
a985d1b9b8 New Crowdin translations ()
* New translations en.json (Chinese Simplified)

* New translations en.json (French)

* New translations en.json (German)

* New translations en.json (Indonesian)

* New translations en.json (Norwegian)

* New translations en.json (Polish)

* New translations en.json (Portuguese)

* New translations en.json (Russian)

* New translations en.json (Spanish)

* New translations en.json (Turkish)

* New translations en.json (Korean)

* New translations en.json (French)

* New translations en.json (Portuguese)
2020-03-16 23:23:38 +01:00