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
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
Kostas Bariotis
b60f5fcf06
Save on CTRL/CMD + S ( #1287 )
...
* save on shortcut
* revert keys files
* remove constant
2020-04-06 23:24:50 +01:00
David Luzar
729aeacc47
prevent pasting svg copied from excalidraw ( #1288 )
...
* prevent pasting svg copied from excalidraw
* remove unnecessary template
2020-04-06 23:02:17 +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
854af8aed2
New Crowdin translations ( #1228 )
...
* New translations en.json (Portuguese)
* New translations en.json (Chinese Simplified)
* New translations en.json (Chinese Simplified)
* New translations en.json (Chinese Simplified)
* New translations en.json (Chinese Simplified)
* New translations en.json (Arabic)
* New translations en.json (Italian)
* 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 (Turkish)
* New translations en.json (Polish)
* New translations en.json (German)
* New translations en.json (Dutch)
* New translations en.json (French)
* New translations en.json (Korean)
* New translations en.json (Greek)
* New translations en.json (Polish)
* New translations en.json (Arabic)
* New translations en.json (Italian)
* 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 (Turkish)
* New translations en.json (Arabic)
* New translations en.json (Italian)
* 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 (Turkish)
* New translations en.json (Portuguese)
* New translations en.json (Chinese Simplified)
* New translations en.json (Chinese Simplified)
* New translations en.json (Norwegian)
* New translations en.json (Dutch)
* New translations en.json (Greek)
* New translations en.json (French)
* New translations en.json (Portuguese)
2020-04-06 08:14:31 -04: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
Daishi Kato
4003fa24b2
fix #1254 ( #1255 )
2020-04-05 20:54:27 -07: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
David Luzar
81b38d8808
fix wysiwyg event cleanup ( #1248 )
2020-04-05 22:31:59 +02:00
Shriram Balaji
290244660b
Restore selectedElements on undelete ( #1242 )
...
* Restore selectedElements on undelete
* Update regressionTest snapshots
2020-04-05 21:19:54 +02:00
Lipis
9a0889c698
Show shortcuts dialog when pressing ?
( #1224 )
2020-04-05 15:58:00 +03:00
Lipis
f6bf093fdd
New Crowdin translations ( #1194 )
...
* New translations en.json (Greek)
* New translations en.json (German)
* New translations en.json (Russian)
* New translations en.json (Norwegian)
* New translations en.json (Portuguese)
* New translations en.json (Spanish)
* New translations en.json (German)
* New translations en.json (Spanish)
* New translations en.json (Polish)
2020-04-04 17:39:13 -04:00
David Luzar
4dd947b261
fix scrollToCenter when no elements supplied ( #1222 )
...
* fix scrollToCenter when no elements supplied
* make getCommonBounds return default values on empty elements
2020-04-04 18:45:14 +02: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
José Quinto
030954badb
shift locking 22.5 degree and move to constants ( #1216 )
...
* shift locking 22.5 degree and move to constants #1171
* review SHIFT_LOCKING_ANGLE
2020-04-04 14:55:22 +03:00
Daishi Kato
44f871de71
do not select deleted elements ( #1215 )
2020-04-04 12:27:34 +02:00
Lipis
ae1eee15cc
Replace ev -> event ( #1209 )
2020-04-04 10:41:54 +02:00
Lipis
31f76d59a2
Skip transparent background for cursor ( #1208 )
...
* Skip transparent background for cursor
* slice
2020-04-04 00:54:04 +03:00
David Luzar
3afb4515b6
scroll to content on collab scene init ( #1201 )
2020-04-03 22:22:26 +03:00
David Luzar
036978b837
fix font not rendered on init in FF ( #1197 )
2020-04-03 22:21:40 +03:00
Sanghyeon Lee
96cea9b84b
Make left panel height flexible to avoid overflow ( #1169 )
...
* Make overall left menu scrollable
* Make only mid-left panel scrollable
* Update src/styles.scss
* Update src/styles.scss
* Update src/components/LayerUI.tsx
* Remove unused class
* Move the scrolling role to Island
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-04-03 13:58:50 -04:00
Adil HADDAOUI
ae655cd7d3
Align ToolButton Label in RTL mode ( #1186 )
2020-04-03 17:24:25 +03:00
David Luzar
8030a167c6
make text committing cross-platform ( #1188 )
2020-04-03 15:56:23 +02:00
Lipis
cd3083e8e6
New translations en.json (French) ( #1190 )
2020-04-03 09:45:37 -04:00
Lipis
c1b067a8b9
New Crowdin translations (Dutch) ( #1187 )
...
* New translations en.json (Dutch)
* Update i18n.ts
2020-04-03 16:06:30 +03:00
alaoui abdellah
980d08ce56
Add support for committing a text entry on cmd/shift click ( #1185 )
2020-04-03 15:41:32 +03:00
Adil HADDAOUI
b9b58d4464
Change arabic language name ( #1184 )
2020-04-03 15:40:01 +03:00
Lipis
c240fff0c5
New Crowdin translations (mostly Arabic updates) ( #1181 )
2020-04-03 15:32:00 +03:00
David Luzar
4912a29e75
sync intermediate text updates ( #1174 )
...
* sync intermediate text updates
* fix initial render text position
* batch updates
* tweak onChange subscription
2020-04-03 14:16:14 +02:00
Kostas Bariotis
0c9459e9e5
Warn on invalid JSON file ( #1159 )
...
* add error dialog
* show error modal on file dnd
* add locales
* Update src/locales/en.json
Co-Authored-By: Lipis <lipiridis@gmail.com>
* Update src/data/blob.ts
* Update src/data/blob.ts
* fix titles, update snapshots
* make modal smaller
* fix dnd wrong file type
* reset errorMessage
Co-authored-by: Faustino Kialungila <faustino.kialungila@gmail.com>
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-04-03 13:50:51 +02:00
Lipis
2be34effd4
New Crowdin translations ( #1178 )
...
* New translations en.json (Norwegian)
* New translations en.json (Norwegian)
2020-04-03 12:59:26 +03:00
Christopher Chedeau
27075b028c
Update zoom refresh ( #1180 )
...
One second feels way too long. Let's try 300ms
2020-04-02 23:56:14 -07:00
Christopher Chedeau
79557676c2
Revert "simulate a db tap on mobile to insert text ( #1155 )" ( #1179 )
...
This reverts commit 56034eacb049c3b157728f82cd1124f9de1a2c59.
2020-04-02 23:47:39 -07:00
José Quinto
efa8b95c52
fix scrollbar and toolbar grid-gap #1170 ( #1173 )
2020-04-03 09:11:42 +03:00
Lipis
a488555f30
New Crowdin translations ( #1165 )
...
* New translations en.json (Chinese Simplified)
* New translations en.json (Turkish)
* New translations en.json (Hindi)
* New translations en.json (Greek)
* New translations en.json (Italian)
* New translations en.json (Hungarian)
* New translations en.json (Chinese Traditional)
* New translations en.json (Korean)
* New translations en.json (Spanish)
* New translations en.json (French)
* New translations en.json (Russian)
* New translations en.json (Portuguese)
* New translations en.json (Polish)
* New translations en.json (Norwegian)
* New translations en.json (Indonesian)
* New translations en.json (German)
* New translations en.json (Arabic)
* New translations en.json (Greek)
* New translations en.json (Hungarian)
* New translations en.json (French)
* New translations en.json (Hungarian)
* New translations en.json (German)
* New translations en.json (Korean)
* New translations en.json (Polish)
* New translations en.json (Polish)
* New translations en.json (Polish)
* New translations en.json (Polish)
* New translations en.json (Polish)
2020-04-02 22:53:17 -04:00
Jed Fox
663526129a
Proper RTL support ( #1154 )
...
* Add RTL styles. Most of the work is done by the browser 💖
* Refactor getLanguage
* Additional fixes
* Mirror the mouse pointer icon
* Move the vertical scrollbar to the left on RTL
* Revert "Mirror the mouse pointer icon"
This reverts commit f69b132538038d231b1b1acc0d6f4a28c91130bb.
2020-04-02 12:21:19 -04:00
José Quinto
8fea75b84f
fix for #1106 - Weird behavior when resize + shift a 2-point li… ( #1152 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-04-02 11:46:05 +02:00
Daishi Kato
65be7973be
Rotation support ( #1099 )
...
* rotate rectanble with fixed angle
* rotate dashed rectangle with fixed angle
* fix rotate handler rect
* fix canvas size with rotation
* angle in element base
* fix bug in calculating canvas size
* trial only for rectangle
* hitTest for rectangle rotation
* properly resize rotated rectangle
* fix canvas size calculation
* giving up... workaround for now
* **experimental** handler to rotate rectangle
* remove rotation on copy for debugging
* update snapshots
* better rotation handler with atan2
* rotate when drawImage
* add rotation handler
* hitTest for any shapes
* fix hitTest for curved lines
* rotate text element
* rotation locking
* hint messaage for rotating
* show proper handlers on mobile (a workaround, there should be a better way)
* refactor hitTest
* support exporting png
* support exporting svg
* fix rotating curved line
* refactor drawElementFromCanvas with getElementAbsoluteCoords
* fix export png and svg
* adjust resize positions for lines (N, E, S, W)
* do not make handlers big on mobile
* Update src/locales/en.json
Alright!
Co-Authored-By: Lipis <lipiridis@gmail.com>
* do not show rotation/resizing hints on mobile
* proper calculation for N and W positions
* simplify calculation
* use "rotation" as property name for clarification (may increase bundle size)
* update snapshots excluding rotation handle
* refactor with adjustPositionWithRotation
* refactor with adjustXYWithRotation
* forgot to rename rotation
* rename internal function
* initialize element angle on restore
* rotate wysiwyg editor
* fix shift-rotate around 270deg
* improve rotation locking
* refactor adjustXYWithRotation
* avoid rotation degree becomes >=360
* refactor with generateHandler
Co-authored-by: Lipis <lipiridis@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-04-02 10:40:26 +02:00
Lipis
3e3ce18755
New translations en.json (Greek) ( #1163 )
2020-04-02 09:56:59 +02:00
Sanghyeon Lee
634410ad48
Modify action buttons visibility for desktop ( #1156 )
2020-04-02 09:52:24 +02:00
Lipis
ffec3af635
New Crowdin translations ( #1160 )
...
* New translations en.json (French)
* New translations en.json (Russian)
* New translations en.json (French)
2020-04-02 09:49:02 +02:00
Mohit kumar Bajoria
9b6700755a
Add new line on Enter ( #1161 )
...
* Add new line on Enter
Fixes #1158
* Fix lint
2020-04-02 01:41:42 +02:00
Faustino Kialungila
56034eacb0
simulate a db tap on mobile to insert text ( #1155 )
2020-04-01 21:44:09 +02:00
Lipis
0e90996715
New Crowdin translations ( #1151 )
...
* New translations en.json (Arabic)
* New translations en.json (Chinese Simplified)
* New translations en.json (Turkish)
* New translations en.json (Hindi)
* New translations en.json (Greek)
* New translations en.json (Italian)
* New translations en.json (Hungarian)
* New translations en.json (Chinese Traditional)
* New translations en.json (Korean)
* New translations en.json (Spanish)
* New translations en.json (French)
* New translations en.json (Russian)
* New translations en.json (Portuguese)
* New translations en.json (Polish)
* New translations en.json (Norwegian)
* New translations en.json (Indonesian)
* New translations en.json (German)
* New translations en.json (Arabic)
* New translations en.json (Portuguese)
* New translations en.json (Polish)
* New translations en.json (Arabic)
* New translations en.json (Polish)
* New translations en.json (Arabic)
* New translations en.json (French)
* New translations en.json (German)
* Update i18n.ts
* New translations en.json (German)
2020-04-01 13:49:49 -04:00
Sanghyeon Lee
86d0da5204
Add duplicate button for mobile view ( #1146 )
...
* Add a icon for dulplication
* Add PanelComponent for duplication
* Add duplicate button for mobile
* Add styles for layout action buttons
* Add a translation for 'Actions'
* Show left action buttons only for desktop
* Add duplicate button at the bottom of mobile
It is provided depending on whether or not it is `multiElement` to maintain space between buttons.
2020-04-01 18:13:53 +03:00
Lipis
1a47ff5c52
New Crowdin translations ( #1145 )
2020-03-31 18:14:50 +03:00
Lipis
e2e4f3c805
New Crowdin translations (Greek) ( #1118 )
2020-03-31 14:44:29 +03:00
Brock Balducci
81d4f611a3
add action ui for deleting an element - #1125 ( #1140 )
2020-03-31 11:54:42 +03:00
Kostas Bariotis
4ecbbab7da
Add sentry integration ( #1141 )
2020-03-31 11:37:51 +03:00
Christopher Chedeau
a7bd21ccf2
Avoid broadcasting what was just received ( #1116 )
...
Fixes #1115
The issue is that replaceAllElements calls a render synchronously, preventing lastBroadcastedOrReceivedSceneVersion from being set correctly.
I tried using batchUpdate but it only takes a single argument ( c5d2fc7127/packages/react-reconciler/src/ReactFiberWorkLoop.js (L1088)
) whereas the callback takes two.
Test Plan:
- Add a console.log before `this.broadcastScene("SCENE_UPDATE");` in App.tsx
- Connect a bunch of clients
- Have one move a shape
- Make sure that this client has the console logged
- Make sure the other clients don't have it
2020-03-28 21:25:40 -07:00
Sanghyeon Lee
763735ac84
Add SCENE_INIT
broadcast type for new user ( #1095 )
2020-03-28 19:35:56 -07:00
Christopher Chedeau
8e6d55cf75
Fix corner resize for multi-point arrows ( #1105 )
...
The logic to support it was not implemented. This is not the prettiest way to solve it in the world but it does work. Some more refactoring here is probably warranted.
Fixes #1039
2020-03-28 18:08:21 -07:00
Christopher Chedeau
24fa657093
Don't reset cache while zooming using a gesture ( #1103 )
...
* Don't reset cache while zooming using a gesture
This reuses the cached canvas while the gesture is happening. Once it has stop updating, then recompute the cache with the proper zoom.
This should massively improve performance when panning on big scenes on mobile
Fixes #1056
* update snapshot tests
2020-03-28 16:59:36 -07:00
Kent Beck
95eaadeb85
Refactor paste code ( #1102 )
2020-03-28 15:43:09 -07:00
Christopher Chedeau
6056170d4b
Fix wysiwyg center ( #1101 )
...
This wasn't taking into account zoom properly.
The logic should probably get refactored a bit, it's not ideal that we're passing canvas, state and scale as different arguments. Also it's weird that the function that returns the center is computing the viewport translation. But I'm not motivated enough to fix it right now...
Fixes #1100
2020-03-28 14:30:41 -07:00
Kent Beck
aa54364bd6
Use existing helper to copy all state ( #1098 )
2020-03-27 15:18:14 -07:00
Lipis
2a373571f8
Change order of the fill options ( #1097 )
2020-03-27 19:38:03 +02:00
Lipis
90c83927ad
New Crowdin translations ( #1089 )
2020-03-27 14:12:27 +02:00
David Luzar
cac2dda5ac
Add loading state ( #1027 )
...
* add loading state
* update snapshots
* add border radius
* fix comment breaking build jsx
2020-03-26 18:28:26 +01:00
Sanghyeon Lee
d8708cb14f
Apply scroll-back-to-content's z-index only for mobile ( #1086 )
...
ref: https://github.com/excalidraw/excalidraw/pull/1002/files#diff-6a2256f44598ec970b4bd034962e011eR376
2020-03-26 13:22:15 +02:00
David Luzar
6fd2a3b2e5
fix z-index action to account for deleted elems and add tests ( #1077 )
2020-03-26 00:28:50 -07:00
Lipis
fb82715ef7
New Crowdin translations ( #1085 )
...
* New translations en.json (Chinese Traditional)
* New translations en.json (Chinese Traditional)
2020-03-25 22:50:53 +01:00
Sanghyeon Lee
051a946438
Add Enter key handler that can start text editing ( #1084 )
...
* Add handler that can start text editing with Enter key
* Refine `startTextEditing` parameters
* Apply prettier fixes
2020-03-25 17:12:51 +01:00
Marcel Kloubert
12d7550958
fixed generateCollaborationLink() ( #1081 )
2020-03-25 17:18:22 +02:00
Faustino Kialungila
4442addc02
Type action names ( #1079 )
...
* Type action names
* improve typing
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-03-25 14:13:59 +01:00
Lipis
9cc1037e7b
New Crowdin translations ( #1076 )
2020-03-25 12:35:29 +02:00
David Luzar
42df058223
load from localStorage only if not in multiplayer ( #1074 )
2020-03-24 09:57:59 -07:00
Sanghyeon Lee
104e48b6cb
Add the shape lock button for mobile ( #1054 )
2020-03-24 12:51:49 +02:00
Lipis
e38045ccad
New Crowdin translations ( #1055 )
...
* 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
Pete Hunt
bd7856adf3
Much more thorough tests! ( #1053 )
2020-03-23 16:38:41 -07:00
David Luzar
cf4fa30a57
tweak png copy button label ( #1062 )
...
* tweak png copy button label
* fix lint
2020-03-23 16:15:22 +01:00
dependabot-preview[bot]
722c498abe
Bump prettier from 1.19.1 to 2.0.1 ( #1060 )
...
* 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
Lipis
c7f10c5de2
New Crowdin translations ( #1049 )
...
* New translations en.json (German)
* New translations en.json (German)
* New translations en.json (German)
2020-03-22 23:01:38 +02:00
Jed Fox
8a6e2bf9cf
Use system fonts where possible. ( #1050 )
...
Also put Arial after Helvetica. I hate Arial.
2020-03-22 16:11:21 -04:00
Edwin Lin
f1160a1534
load scene from localStorage in collaboration if user is first… ( #1036 )
...
* 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
Kent Beck
ba3cec8d0d
App mitosis begins ( #1047 )
2020-03-22 18:24:50 +01:00
Lipis
125d1294a0
New Crowdin translations ( #1043 )
2020-03-22 16:14:45 +02:00
Jed Fox
daa121e909
Add a warning to encourage people to update translations direct… ( #1045 )
2020-03-22 14:43:06 +01:00
Lipis
5b6723b514
New Crowdin translations ( #1037 )
2020-03-22 06:24:38 +02:00
Kent Beck
d3d25a128c
Extract helper for App context menu handling ( #1033 )
...
* Encapsulate SceneHistory. A little.
* Clean up TopErrorBoundary
* Extract helper for App context menu handling
2020-03-21 17:03:17 +01:00
Kent Beck
1e8cd2bd1c
Separated specification and implementation in TopErrorBoundary ( #1031 )
...
* Encapsulate SceneHistory. A little.
* Clean up TopErrorBoundary
2020-03-21 10:26:01 +01:00
David Luzar
f6b36519f1
don't pass deleted elements to UI ( #1029 )
2020-03-20 21:46:09 +01:00
Kent Beck
dc618ab122
Encapsulate SceneHistory. A little. ( #1016 )
2020-03-20 18:45:30 +01:00
Lipis
46e619d800
New Crowdin translations ( #1020 )
2020-03-20 18:32:46 +02:00
David Luzar
edd54d93b3
revert #1017 ( #1025 )
...
This reverts commit 1546c00c0cea1a814f1c59a35d40610a86e953e7.
2020-03-20 16:46:06 +01:00
Faustino Kialungila
0ad6f4ec6b
Remove deleted elements from svg export ( #1021 )
...
* 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
Chang Yan
1546c00c0c
Fix adding incorrect dragging element when handleCanvasPointerD… ( #1017 )
2020-03-20 11:00:50 +01:00
Lipis
6b3dee6777
New Crowdin translations ( #1011 )
2020-03-19 22:12:47 +02:00
David Luzar
fda06e4fc3
Fix history - the 2nd installment ( #1014 )
...
* 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
Faustino Kialungila
f14aaccc38
Fix SpaceBar pan ( #1013 )
2020-03-19 08:59:20 -07:00
David Luzar
82ce068972
fix history ( #1009 )
...
* fix history
* tweak withBatchedUpdates typing
2020-03-19 14:51:05 +01:00
Lipis
59fa371367
New translations en.json (Chinese Simplified) ( #1006 )
2020-03-19 07:56:57 +01:00
David Luzar
ff033640e4
expose a few state props for debugging ( #1008 )
...
* expose a few state props for debugging
* rename h.appState & add h.setState
* support setting elements
2020-03-18 20:44:05 +01:00
Sanghyeon Lee
cb66adc716
Add a Shortcut for Toggling Shape Lock ( #1005 )
...
* 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
Lipis
cb68153a81
New Crowdin translations ( #998 )
2020-03-18 19:59:48 +02:00
David Luzar
b7da524538
confirm arrow on doubleclick ( #949 )
...
* confirm arrow on double click
* change hint
* fix cursor not updating on click
2020-03-18 16:43:06 +01:00
David Luzar
254a0753ff
fix negative resize for non-multipoint elements ( #1000 )
2020-03-18 08:34:04 -07:00
Jed Fox
d8bbe536a7
Restyle the mobile UI a bit ( #1002 )
...
* 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
Lipis
793e0e4aa0
Remove redundant text ( #918 )
2020-03-18 13:27:10 +01:00
David Luzar
23b785de68
Trim trailing newlines ( #999 )
...
* trim newlines for text elements
* fix comment
2020-03-18 13:01:33 +01:00
Chang Yan
6fe40516bf
deselect all elements when inserting text with double click ( #996 )
2020-03-17 23:11:27 -07:00
Pete Hunt
7d57d124bd
Fix alt drag ( #995 )
2020-03-17 15:21:35 -07:00
David Luzar
373d16abe6
improve & granularize ExcalidrawElement types ( #991 )
...
* 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
Lipis
1c545c1d47
New Crowdin translations ( #990 )
2020-03-17 21:46:35 +02:00
Pete Hunt
b603337c3f
Fix multielements ( #987 )
2020-03-17 11:01:11 -07:00
Christopher Chedeau
0dc07135b7
Fix three rendering when loading ( #986 )
...
The problem is that syncActionResult wasn't using batching.
2020-03-16 19:21:01 -07:00
Pete Hunt
e9f5175f51
Fix performance bug ( #984 )
2020-03-16 19:07:47 -07:00
Lipis
a985d1b9b8
New Crowdin translations ( #983 )
...
* 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
Faustino Kialungila
ae9b64a623
CMD + D to Duplicate Selection ( #982 )
...
* cmd+d to duplicate selection
* use duplicateElement instead
* use duplicateElement instead
* Update actionDuplicateSelection.ts
* select the new duplicated element
* add locale
* use event.key instead of event.code
Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-03-16 22:53:02 +01:00
Lipis
83e49232ee
New Crowdin translations ( #978 )
...
* New translations en.json (Korean)
* New translations en.json (Korean)
* New translations en.json (Korean)
* New translations en.json (Korean)
* New translations en.json (Korean)
* New translations en.json (Portuguese)
* New translations en.json (Portuguese)
2020-03-16 19:23:56 +01:00
Christopher Chedeau
db1f97f59e
Revert "[RFC] Randomized names next to mouse pointers. ( #971 )" ( #972 )
...
This reverts commit dcb93f75e6b721738fad9d17d9197636fa8643cd.
2020-03-16 00:38:37 -07:00
Pete Hunt
dcb93f75e6
[RFC] Randomized names next to mouse pointers. ( #971 )
...
* [WIP] Add names next to pointers
This implements the rendering and messaging across. Still need to do the UI to set the name.
Also, not really sure what's the best place to send the name and store it.
* Add randomized names
Co-authored-by: Christopher Chedeau <vjeux@fb.com>
2020-03-15 18:56:38 -07:00
Keyan Zhang
d58216f5ec
[RFC] show confirmation dialog before the user closes the page ( #957 )
2020-03-15 14:00:33 -07:00
Christopher Chedeau
fed7054114
Fix hit testing threshold ( #969 )
...
* Fix hit testing threshold
- The bounding box was not correctly extended to take into account the threshold. It was only for y axis but not x.
- The bezier threshold was using 20 instead of 10 and not taking into account zoom level.
Both those issues are fixed and now the behavior looks good on all the shapes I can test.
* fix_tests
2020-03-15 13:42:18 -07:00
Christopher Chedeau
2937efacde
Remove last get/setTransform ( #964 )
...
My original hack to put the scale when we create the canvas element doesn't make much sense. It should be done when we are rendering the scene. I moved it there in this PR.
The rest was all about forwarding the scale to where it's needed.
2020-03-15 12:25:18 -07:00
Lipis
79ea76b48b
Different color for the stroke of the collaborator's arrow ( #963 )
...
* Different color for the stroke of the arrow
* Sort
2020-03-15 11:05:12 -07:00
Jed Fox
e44801123a
Restyle the color picker a touch ( #920 )
2020-03-15 19:26:52 +02:00
Lipis
d834ff4d89
New Crowdin translations ( #912 )
2020-03-15 19:12:35 +02:00
Pete Hunt
35ce1729cc
remove most setState({}) ( #959 )
2020-03-15 10:06:41 -07:00
Pete Hunt
e1e2249f57
Abstract away or eliminate most of the mutation of the Elements array ( #955 )
2020-03-14 21:48:51 -07:00
Keyan Zhang
05af9f04ed
[easy] run typechecking on CI ( #954 )
2020-03-14 21:12:39 -07:00
Pete Hunt
3f8144ef85
Fix many syncing issues ( #952 )
2020-03-14 20:46:57 -07:00
Christopher Chedeau
b20d4539c0
Stop using getTransform ( #950 )
...
* Stop using getTransform
Fixes #861
The original motivation behind this is to make it work with Firefox. But it also helped make the code more intentional.
Test Plan:
- Create one square, select it, zoom in repeatedly, make sure that it zooms centered in the screen and everything looks good
- Scroll at various zoom levels, things look good
- Export a small scene at 1x and 3x, make sure the background is properly set and look good
* fix selection element
2020-03-14 17:24:28 -07:00
Christian Alfoni
dbfc8bee57
Add copy to PNG option on context menu ( #941 )
...
* Add copy to PNG option on context menu
* lint & refactor & fixes
* add keybinding
* swap keybinding
* fix docs
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-03-14 22:53:18 +01:00
Christopher Chedeau
e19088f214
Make selection handle resolution independent ( #948 )
...
They shouldn't really change when zooming in or out.
2020-03-14 22:29:48 +01:00
Christopher Chedeau
809d7ba9f5
Remove text trim ( #947 )
...
This was added when we were computing the width without adding "pre" behavior. Now it is no longer an issue
2020-03-14 14:00:20 -07:00
Christopher Chedeau
b49f9b29e5
Render pointers out of screen ( #945 )
...
I opted to use transparency to indicate that the pointer is out of screen. It seems to be working relatively well.
Fixes #935
2020-03-14 13:52:42 -07:00
David Luzar
b9c75b5bc4
use deletedIds map to sync deletions ( #936 )
...
* use deletedIds map for sync deletions
* refactor how we create data for syncing
* fix comments
* streamline broadcast API
* split broadcast methods
2020-03-14 21:25:07 +01:00
Christopher Chedeau
ead6a083d4
Assign a colors to each pointers ( #944 )
...
I'm using the client id as a random number to index on the color array. So far it's been working better than using a sequential increment as the colors in the array are sorted by proximity. Also, it has the advantage that everyone in the room will see the same color for the same person.
2020-03-14 12:18:57 -07:00
Christopher Chedeau
a6244e7602
Better looking pointer ( #943 )
...
Instead of a crude circle, this makes it look more like a pointer. I manually tweaked the numbers until it looked like a pointer :)
2020-03-14 12:08:45 -07:00
Jed Fox
668f8ec4a6
Make dialogs look better on mobile ( #908 )
...
* Standardize mobile media query
* Refactor & add mobile support to dialogs
* back & close icons
2020-03-13 20:32:47 +01:00
David Luzar
c85315650f
fix calculating text width for indented text ( #930 )
2020-03-13 15:10:44 +01:00
David Luzar
450a024f5c
remove object.fromEntries ( #933 )
2020-03-13 15:10:24 +01:00
dwelle
642e47bd03
Merge remote-tracking branch 'origin/master' into fix_multiplayer_concurrency
2020-03-12 21:49:54 +01:00
dwelle
c04fe403fc
don't sync editing elements & prefer local versions
2020-03-12 21:28:58 +01:00
Edwin Lin
37284c9174
Merge pull request #915 from excalidraw/fix_remote_pointers
...
remove remote pointers on client disconnect
2020-03-12 12:18:27 -07:00