Commit Graph

639 Commits

Author SHA1 Message Date
9351b2821c feat: add width, height as props to App.tsx () 2020-07-07 17:10:39 +02:00
b1261eea70 duplicate point on cmd+d () 2020-07-07 13:53:44 +02:00
84abda82d5 docs: add multiple selection docs () 2020-07-07 11:24:07 +02:00
cc52ea4ac2 Add support for long press to context menu on iOS ()
* Initial support for touch context menu

* Only deal with touch if it's available

* Fix touch checking

* Remove touch checking

* Added comments

* Combine onTouch with onPointer for mobile context menu support
2020-07-03 00:12:56 +03:00
b21f723eee use absolute positioning instead of fixed () 2020-07-02 15:27:47 +02:00
0a3fb70ec7 Dynamicaly import locales ()
* dynamicly import locales

* fix tests

* reformat languages
2020-06-27 12:02:54 +01:00
5970bb7ee9 Remove duplicate string for toggle grid mode () 2020-06-26 22:28:01 +02:00
1991511ef7 Fix flickering outline on the dialogs while clicking () 2020-06-26 22:27:16 +02:00
cd87bd6901 do not center text when not applicable () 2020-06-25 21:21:27 +02:00
9c89504b6f fix: start dragging grouped elements ()
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-06-24 13:38:42 +02:00
baa8fb6c14 grid support (1st iteration) ()
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-06-23 17:24:52 +02:00
a357d00bbe Hint for shortcut for moving the visible area () 2020-06-19 22:28:13 +02:00
ca87ca6fe9 Add user list component + snap to user functionality () 2020-06-19 12:36:49 +02:00
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
998f0ae458 remove z-index for color-picker-hash div () 2020-06-08 06:52:54 -04:00
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
53ab46126d support resizing multiple elements including texts ()
Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-06-08 11:25:20 +02:00
f7c4efbd35 Excalicharts MVP ()
Co-authored-by: David Luzar <luzar.david@gmail.com>
2020-06-06 22:09:04 +02:00
fd75b88bd3 Double finger zoom should not select things () 2020-06-02 19:41:40 +03:00
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
f413bab3de Fix group element removing () 2020-05-30 13:48:57 -07:00
17e9cc4506 Some cleanup in App.tsx () 2020-05-30 15:26:17 +02:00
fa359034c5 scroll the closest element to center ()
Co-authored-by: Sanghyeon Lee <yongdamsh@gmail.com>
2020-05-30 14:02:32 +02:00
44a88d2d58 Rewrite restore to guard against missing migrations () 2020-05-28 02:41:34 -07:00
5327e8a3dc fix language change not rerendering ui () 2020-05-27 16:46:11 +02:00
63c10743fb split font into fontSize and fontFamily () 2020-05-27 15:14:50 +02:00
61e5b66dac Group/ungroup ()
Co-authored-by: dwelle <luzar.david@gmail.com>
2020-05-26 13:07:46 -07:00
5252726307 dynamically import socket.io-client when needed () 2020-05-26 20:51:03 +02:00
d2ae18995c add history.shouldCreateEntry resolver () 2020-05-22 22:26:59 -07:00
c427aa3cce Prefer arrow functions and callbacks () 2020-05-20 15:21:37 +02:00
afbfe2b8b1 Alt should be labeled as Option on Mac () 2020-05-14 16:51:52 -07:00
39c56a4c01 implement stroke style () 2020-05-14 17:04:33 +02:00
828c9c4d65 use commitToHistory prop for handling draw history () 2020-05-14 14:51:33 +02:00
c32640d174 Fix free draw to allow undo () 2020-05-14 13:32:10 +01:00
9ec43d2626 Add free draw mode () 2020-05-12 21:10:11 +02:00
a90ca5eb84 don't use unicode characters for shortcut help ()
* don't use unicode characters for shortcut help

* use option instead of alt

* make shortcut replacement case-insensitive

* improve shortcut dialog layout
2020-05-11 01:29:35 +03:00
394237728f Refactor: resize two-point lines/arrows () 2020-05-10 17:41:36 +02:00
48264d1be0 Room dialog: Change 'Name' to 'Your name' ()
* Change label 'Name' to 'Your name'

* add yourName as duplicate of Name in all locales
2020-05-09 16:27:42 +03:00
5b80ad045b show reset icon with zoom percentage during zen mode () 2020-05-09 14:47:22 +02:00
3b1d6910aa fix resizing: dynamic pointer offset for better UX () 2020-05-09 10:57:00 +02:00
8c8458ceb0 fix incorrect font rendered on late load () 2020-05-08 10:42:51 +02:00
4696c9ee0e Syncing optimizations ()
* Syncing optimizations

* Add comment
2020-05-07 14:13:18 -07:00
dd7aa29297 Rtl ui broken in zen mode () 2020-05-03 03:30:58 +03:00
4aa1784ba3 fix horizontal scroll via shift+wheel on mac () 2020-05-02 13:15:28 -07:00
b7a37c157b scroll horizontally on shift-scroll () 2020-04-30 13:34:38 -07:00
51f8146357 disable pointer events on hidden menus in zen mode () 2020-04-29 22:49:36 +02:00
0c2aa951d6 refactor toolbutton.tsx - add default props () 2020-04-29 17:13:29 +02:00
dd1dfc5950 One more socket listener moved to Portal ()
* room-user-change listener moved to Portal

* Eliminate useless checks

* Update src/components/App.tsx

Co-Authored-By: Lipis <lipiridis@gmail.com>

Co-authored-by: Lipis <lipiridis@gmail.com>
2020-04-28 09:49:00 -07:00
0baabff41b Begin moving socket listeners to Portal () 2020-04-27 10:56:08 -07:00
582d26e858 fix tool icon button on mobile () 2020-04-26 11:45:35 +02:00