David Luzar and GitHub
d18a72c879
save room to firebase on unload or portal close ( #2207 )
...
* save on unload or portal close
* align naming
2020-10-05 22:34:40 -04:00
David Luzar and GitHub
ae1ab1ab37
clear scene when joining a room ( #2208 )
...
* clear scene when joining a room
* code shuffle
* remove noop code path
2020-10-05 22:31:34 -04:00
David Luzar and GitHub
adb1ac5788
fix restoring appState ( #2182 )
2020-09-22 21:51:49 +02:00
David Luzar and GitHub
d07099aadd
fix zindex to account for group boundaries ( #2065 )
2020-09-11 17:06:07 +02:00
David Luzar and GitHub
aaddde5dd9
Fix history initialization ( #2115 )
2020-09-09 21:08:06 +02:00
David Luzar and GitHub
47dba05c91
System clipboard ( #2117 )
2020-09-04 14:58:32 +02:00
David Luzar and GitHub
26ef235019
rebind arrow on rotation ( #2096 )
2020-08-29 14:16:40 +02:00
David Luzar and GitHub
0e28177ccc
fix collab MOUSE_LOCATION payload naming for legacy versions ( #2098 )
2020-08-29 14:12:58 +02:00
David Luzar and GitHub
8b9e2a540d
factor out test helpers ( #2093 )
2020-08-28 10:15:29 +02:00
David Luzar and GitHub
4c2d34ffd7
select single element on cmd-click ( #2087 )
2020-08-27 20:59:46 +02:00
David Luzar and GitHub
b8f8bc2e32
fix group selection ( #2092 )
2020-08-27 20:32:10 +02:00
David Luzar and GitHub
546e13571d
reintroduce index CSS as interim solution to SW caching issues ( #2085 )
2020-08-26 23:26:06 +02:00
ab7073abdb
add excalidraw_embed into base repo ( #2040 )
...
Co-authored-by: Lipis <lipiridis@gmail.com >
2020-08-20 16:45:20 +02:00
David Luzar and GitHub
930813387b
make loading message account for dark mode & add i18n ( #2033 )
...
* make loading message account for dark mode & add i18n
* use app color scheme
2020-08-14 13:27:41 +02:00
David Luzar and GitHub
3f2b0fdd0a
don't reset dark mode on canvas clear ( #2032 )
2020-08-13 17:22:39 +02:00
David Luzar and GitHub
964746e569
fix transform handles regression ( #2018 )
2020-08-10 15:00:21 +02:00
David Luzar and GitHub
950bcd0b72
Refactor resize handle naming ( #2013 )
2020-08-10 14:16:39 +02:00
David Luzar and GitHub
c06988a202
do not prevent UI scrolling on mobile ( #2007 )
2020-08-06 18:56:51 +02:00
David Luzar and GitHub
fea257765d
regenerate seed on change of sloppiness ( #1986 )
2020-07-30 20:14:38 +02:00
David Luzar and GitHub
c171fb4c7f
simplify by replacing draggingElementPointIndex with isDragging ( #1982 )
...
* simplify by replacing draggingElementPointIndex with isDragging
* add tsdoc
2020-07-30 12:58:06 +02:00
David Luzar and GitHub
ab980b252c
make restore migration types required ( #1977 )
2020-07-28 23:40:06 +02:00
David Luzar and GitHub
f295550940
ensure editingLinearElement handles are rendered on top ( #1967 )
2020-07-26 20:52:25 +02:00
David Luzar and GitHub
dc1f6c4d4c
change selection/line/draw shortcut defaults ( #1953 )
2020-07-24 15:47:46 +02:00
David Luzar and GitHub
c5d37a07c8
fix resize hints not showing due to LayerUI bailing on updates ( #1952 )
2020-07-24 13:29:36 +02:00
David Luzar and GitHub
b07aa6e205
delay scene init until document active ( #1920 )
...
* delay scene init until document active
* use opts.once for the listener
2020-07-20 12:53:53 +02:00
David Luzar and GitHub
c1488fa353
try/catch localStorage access ( #1932 )
2020-07-17 18:39:23 +02:00
David Luzar and GitHub
494b7d08c5
mute FS abort errors ( #1929 )
2020-07-17 11:34:21 +02:00
David Luzar and GitHub
4cfc8bd4b3
fix accessing nonexisting config property during appState clearing ( #1928 )
2020-07-16 21:20:55 +02:00
David Luzar and GitHub
0ee2c15929
make clearing state for storage more type-safe ( #1884 )
2020-07-11 13:09:40 +02:00
David Luzar and GitHub
7ab0c1aba8
reload scene on hashchange ( #1893 )
...
* reload scene on hashchange
* tweak isLoading
2020-07-09 22:16:28 -07:00
David Luzar and GitHub
6e357c0291
fix deleting multi-point elem during edit ( #1892 )
2020-07-09 22:33:27 +02:00
David Luzar and GitHub
d5e7d08586
prompt when loading external scene before overriding local one ( #1862 )
2020-07-08 22:55:26 +02:00
David Luzar and GitHub
df5eb3f0d9
change copy/paste styles shortcuts ( #1881 )
...
* change copy/paste styles shortcuts
* use keyCode
2020-07-07 20:22:23 +02:00
David Luzar and GitHub
b1261eea70
duplicate point on cmd+d ( #1831 )
2020-07-07 13:53:44 +02:00
David Luzar and GitHub
d9e84b90ce
strip fragment ( #1859 )
2020-07-02 12:02:16 +02:00
David Luzar and GitHub
cd87bd6901
do not center text when not applicable ( #1783 )
2020-06-25 21:21:27 +02:00
David Luzar and GitHub
dadf054ea2
fix not always generating shape on render ( #1741 )
2020-06-09 17:36:25 +02:00
David Luzar and GitHub
d1be2a5481
fix text constructor groupIds & improve type safety ( #1715 )
2020-06-06 13:32:43 +02:00
David Luzar and GitHub
ff93d95998
Revert "Fix RTL text direction rendering ( #1687 )" ( #1705 )
...
This reverts commit a118bed82f .
2020-06-03 12:12:43 +02:00
14a66956d7
Implement line editing ( #1616 )
...
* 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
David Luzar and GitHub
f413bab3de
Fix group element removing ( #1676 )
2020-05-30 13:48:57 -07:00
David Luzar and GitHub
0db7ac78c4
fix fontFamily state updating ( #1679 )
2020-05-29 21:59:39 +02:00
David Luzar and GitHub
44a88d2d58
Rewrite restore to guard against missing migrations ( #1664 )
2020-05-28 02:41:34 -07:00
David Luzar and GitHub
4f3bf79708
skip element mutation on noop updates ( #1667 )
2020-05-28 00:50:56 -07:00
David Luzar and GitHub
5327e8a3dc
fix language change not rerendering ui ( #1638 )
2020-05-27 16:46:11 +02:00
David Luzar and GitHub
63c10743fb
split font into fontSize and fontFamily ( #1635 )
2020-05-27 15:14:50 +02:00
35049e3de7
History tweaks ( #1641 )
...
Co-authored-by: Pete Hunt <phunt@twitter.com >
2020-05-24 15:17:14 -07:00
David Luzar and GitHub
d2ae18995c
add history.shouldCreateEntry resolver ( #1622 )
2020-05-22 22:26:59 -07:00
David Luzar and GitHub
ce6f2ff88c
cache nonDeleted elements ( #1626 )
2020-05-22 10:15:16 -07:00
David Luzar and GitHub
876170ee27
fix snapshots ( #1598 )
2020-05-14 17:21:37 +02:00
David Luzar and GitHub
39c56a4c01
implement stroke style ( #1571 )
2020-05-14 17:04:33 +02:00
David Luzar and GitHub
828c9c4d65
use commitToHistory prop for handling draw history ( #1595 )
2020-05-14 14:51:33 +02:00
David Luzar and GitHub
a90ca5eb84
don't use unicode characters for shortcut help ( #1565 )
...
* 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
David Luzar and GitHub
8c8458ceb0
fix incorrect font rendered on late load ( #1555 )
2020-05-08 10:42:51 +02:00
David Luzar and GitHub
4aa1784ba3
fix horizontal scroll via shift+wheel on mac ( #1528 )
2020-05-02 13:15:28 -07:00
David Luzar and GitHub
b7a37c157b
scroll horizontally on shift-scroll ( #1519 )
2020-04-30 13:34:38 -07:00
David Luzar and GitHub
51f8146357
disable pointer events on hidden menus in zen mode ( #1511 )
2020-04-29 22:49:36 +02:00
David Luzar and GitHub
2c5c770e78
rewrite picker color handling ( #1487 )
2020-04-25 23:06:16 +02:00
David Luzar and GitHub
a4b49ea350
ignore fileOpen error when user cancels ( #1486 )
2020-04-25 09:02:31 -07:00
David Luzar and GitHub
83199164ae
don't prevent select-element devTools action ( #1446 )
2020-04-17 01:18:45 +03:00
David Luzar and GitHub
8cfc64a3ab
fix bg color picker rendered behind shape menu ( #1445 )
...
* fix bg color picker rendered behind shape menu
* add comment
2020-04-16 21:31:20 +02:00
David Luzar and GitHub
75e0163dd1
tweak blurry bg for legibility & remove from modals ( #1436 )
2020-04-15 21:20:35 +02:00
David Luzar and GitHub
d998a190df
persist pointerDown event ( #1426 )
2020-04-14 12:33:57 +02:00
David Luzar and GitHub
692ceece65
fix not using className when querying container ( #1420 )
2020-04-13 17:29:11 +02:00
David Luzar and GitHub
0b971ea570
Remove CSP ( #1418 )
...
* remove csp
* remove csp from now.json
2020-04-13 16:28:05 +02:00
David Luzar and GitHub
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
David Luzar and GitHub
d79c859cd9
CSP: fix codesandbox ( #1401 )
...
* add csb to csp whitelist
* add csb.app
* allow child-src csp
* add cdnjs.cloudflare
* allow unsafe-eval
2020-04-12 14:58:03 +02:00
David Luzar and GitHub
3fd6f3023f
support newline on shift+enter ( #1324 )
2020-04-08 20:56:27 +02:00
David Luzar and GitHub
88cec2df5e
log console.error to sentry ( #1243 )
...
* log console.error to sentry
* fix
2020-04-07 15:54:49 +02:00
David Luzar and GitHub
b7230b05d7
add task to update snapshots & update readme ( #1302 )
...
* add task to update snapshots & update readme
* remove test:app from readme & tweak
2020-04-07 15:09:01 +02:00
David Luzar and GitHub
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 and GitHub
e9b4700bba
edit text when clicked on with text tool ( #1283 )
2020-04-06 22:26:54 +02:00
David Luzar and GitHub
d3ed5a42fc
fix font being reset to current state font on edit ( #1282 )
2020-04-06 22:26:00 +02:00
David Luzar and GitHub
81b38d8808
fix wysiwyg event cleanup ( #1248 )
2020-04-05 22:31:59 +02:00
David Luzar and GitHub
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
David Luzar and GitHub
23540eba4c
sync remote selection ( #1207 )
...
* sync remote selection
* skip deleted elements
* remove unnecessary condition & change naming
2020-04-04 16:02:16 +02:00
David Luzar and GitHub
3afb4515b6
scroll to content on collab scene init ( #1201 )
2020-04-03 22:22:26 +03:00
David Luzar and GitHub
036978b837
fix font not rendered on init in FF ( #1197 )
2020-04-03 22:21:40 +03:00
8dccc793ee
add editorconfig ( #1198 )
...
* add editorconfig
* Update .editorconfig
Co-Authored-By: Lipis <lipiridis@gmail.com >
* remove duplicate section
Co-authored-by: Lipis <lipiridis@gmail.com >
2020-04-03 19:19:01 +02:00
David Luzar and GitHub
8030a167c6
make text committing cross-platform ( #1188 )
2020-04-03 15:56:23 +02:00
David Luzar and GitHub
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
David Luzar and GitHub
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
David Luzar and GitHub
6fd2a3b2e5
fix z-index action to account for deleted elems and add tests ( #1077 )
2020-03-26 00:28:50 -07:00
David Luzar and GitHub
42df058223
load from localStorage only if not in multiplayer ( #1074 )
2020-03-24 09:57:59 -07:00
David Luzar and GitHub
c416de3499
fix lint not failing on warnings on CI ( #1063 )
2020-03-23 17:20:42 +02:00
David Luzar and GitHub
cf4fa30a57
tweak png copy button label ( #1062 )
...
* tweak png copy button label
* fix lint
2020-03-23 16:15:22 +01:00
David Luzar and GitHub
f6b36519f1
don't pass deleted elements to UI ( #1029 )
2020-03-20 21:46:09 +01:00
David Luzar and GitHub
edd54d93b3
revert #1017 ( #1025 )
...
This reverts commit 1546c00c0c .
2020-03-20 16:46:06 +01:00
David Luzar and GitHub
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
David Luzar and GitHub
82ce068972
fix history ( #1009 )
...
* fix history
* tweak withBatchedUpdates typing
2020-03-19 14:51:05 +01:00
David Luzar and GitHub
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
David Luzar and GitHub
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 and GitHub
254a0753ff
fix negative resize for non-multipoint elements ( #1000 )
2020-03-18 08:34:04 -07:00
David Luzar and GitHub
23b785de68
Trim trailing newlines ( #999 )
...
* trim newlines for text elements
* fix comment
2020-03-18 13:01:33 +01:00
David Luzar and GitHub
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
David Luzar and GitHub
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
David Luzar and GitHub
c85315650f
fix calculating text width for indented text ( #930 )
2020-03-13 15:10:44 +01:00
David Luzar and GitHub
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