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
dwelle
f1ac8cac32
remove unused selectedId
2020-03-12 20:02:10 +01:00
David Luzar and GitHub
95e726bd6f
cancel text via doubleclick when in multiElement mode ( #926 )
2020-03-12 18:31:53 +01:00
David Luzar and GitHub
f0e6f4dbb8
Text esc fixes ( #925 )
...
* fix incorrectly resetting state on esc
* confirm text on esc
2020-03-12 18:04:56 +01:00
David Luzar and GitHub
3a5ca27600
fix zero-coalescing roughness ( #924 )
2020-03-12 17:49:11 +01:00
dwelle
5706dd7ae2
consolidate & align collaboration socket eventing with server
2020-03-12 12:19:56 +01:00
dwelle
96320478e6
remove remote pointers on client disconnect
2020-03-12 10:41:36 +01:00
David Luzar and GitHub
2db2f3f5e4
Collab ui tweaks ( #913 )
...
* decrease gap between menu icons
* reduce margin of copy button
* add collaboratorsCount to roomDialog toggle button
2020-03-11 14:48:27 -07:00
b82b0754ac
Room dialog ( #905 )
...
* support ToolIcon className and fix label padding
* factor some ExportDialog classes out to Modal
* initial RoomDialog prototype
* change label for another-session button
* remove unused css
* add color comments
* Move the collaboration button to the main menu, add support for mobile
* remove button for creating another session
* add locks
* Fix alignment issue
* Reorder button
* reuse current scene for collab session
* keep collaboration state on restore
Co-authored-by: Jed Fox <git@twopointzero.us >
2020-03-11 19:42:18 +01:00
David Luzar and GitHub
13b838117c
filter out selection elements on restore ( #901 )
...
* filter out selection elements on restore
* add comment
2020-03-10 19:41:41 +01:00
David Luzar and GitHub
5dadbcdcd5
don't set pointer on pointerMove if not already present ( #889 )
2020-03-09 09:17:26 -07:00
David Luzar and GitHub
3bf3d96d9f
make error message more user-friendly ( #812 )
...
* make error message more user-friendly
* tweak aria
* override user-select for error splash screen
* localize messages
* fix naming
* log error
* include spaces in i18n
2020-03-09 17:09:45 +01:00
David Luzar and GitHub
463854e42a
fix pinch zoom ( #885 )
2020-03-09 07:19:38 -07:00
David Luzar and GitHub
7e0e885417
ensure restored elements are normalized before filter ( #844 )
2020-02-27 17:37:43 +01:00
David Luzar and GitHub
8198d71af8
fix svg export ( #837 )
2020-02-24 21:08:13 +01:00
David Luzar and GitHub
4977593ec4
fix exporting lines as svg ( #836 )
2020-02-24 18:30:21 +01:00
David Luzar and GitHub
4b8b9965c2
fix early return from renderScene ( #815 )
2020-02-23 21:19:27 +01:00
David Luzar and GitHub
80a49e9611
improve error handling & map stack trace ( #809 )
...
* improve error handling & map stack trace
* log error message and tweak
* support logging multiple errors
* move dynamic import inside try/catch
2020-02-22 22:37:04 +01:00
David Luzar and GitHub
9439908b92
use a better cloning algorithm ( #753 )
...
* use a better cloning algorithm
* Revert "use a better cloning algorithm"
This reverts commit 7279262129 .
* implement custom cloning algorithm
* add tests
* refactor
* don't copy canvas & ignore canvas in related ops
* fix tests
2020-02-19 22:28:11 +01:00
David Luzar and GitHub
2d22ffda49
fix wheel zoom step ( #771 )
2020-02-16 16:23:56 +01:00
David Luzar and GitHub
6dd3620dd6
fix cloning element.points ( #744 )
2020-02-09 23:57:14 +01:00
David Luzar and GitHub
2a472bb912
ensure duplicateElement does deep copy of points ( #742 )
2020-02-09 14:45:21 -08:00
David Luzar and GitHub
389e40900c
z-index button fixes ( #738 )
...
* fix svg attributes
* center z-index icons
* remove unnecessary attributes
* differentiate button :active bg
* prevent selection of ToolIcon hints
* emphasize active elem color
2020-02-09 17:09:21 +01:00
David Luzar and GitHub
d79293de06
move footer into layerUI & refactor ActionManager ( #729 )
2020-02-07 23:46:19 +01:00
David Luzar and GitHub
88eacc9da7
Improve pasting ( #723 )
...
* switch to selection tool on paste
* align pasting via contextMenu with pasting from event
* ensure only plaintext can be pasted
* fix findShapeByKey regression
* simplify wysiwyg pasting
* improve wysiwyg blurriness
2020-02-07 18:42:24 +01:00
David Luzar and GitHub
3b20e6e2b8
fix decoding imported data from backend ( #722 )
2020-02-06 18:46:26 +01:00
David Luzar and GitHub
972d69da6c
fix hotkeys not working when non-writable input focused ( #717 )
2020-02-05 19:07:53 +01:00
David Luzar and GitHub
82eb97462b
fix restoring from localStorage ( #715 )
2020-02-05 17:57:08 +01:00
David Luzar and GitHub
b7a6ceba68
Eslint tweaks ( #696 )
...
* make eslint styleguide into warnings & drop no-else-return
* reintroduce max-warnings=0
* remove unnecessary eslint line disable
* reintroduce no-else-return rule
2020-02-05 17:41:14 +01:00
David Luzar and GitHub
954d805cb3
rewrite clipboard handling ( #689 )
2020-02-04 11:50:18 +01:00
David Luzar and GitHub
3d2e59bfed
Revert "Feature: Multi Point Arrows ( #338 )" ( #634 )
...
This reverts commit 16263e942b .
2020-01-31 18:56:55 +01:00
David Luzar and GitHub
6886dfdea7
ensure we reset draggingElement when tool locked ( #627 )
2020-01-30 22:14:40 +01:00
David Luzar and GitHub
bd1c00014b
fix not resuming recording ( #614 )
2020-01-30 15:39:17 +01:00
David Luzar and GitHub
023400c3cc
Revert "Fix keyboard shortcut ( #587 )" ( #617 )
...
This reverts commit cc3d71f13c .
2020-01-30 10:40:49 +01:00
David Luzar and GitHub
26048ee469
improve clipboard handling ( #596 )
...
* improve clipboard handling
* fix regression of not defocusing tool icons
2020-01-27 22:14:35 +01:00
David Luzar and GitHub
187cfbe2d8
temp hack fix for state updates ( #593 )
...
* temp hack fix state updates
* switch setTimeout for state mutation
2020-01-27 19:24:11 +01:00
David Luzar and GitHub
61264ee2d6
move title to label ( #584 )
2020-01-26 20:49:18 +01:00
David Luzar and Christopher Chedeau
e17f743df1
change cartoonist roughness ( #582 )
2020-01-26 19:16:33 +00:00
David Luzar and Christopher Chedeau
7b842fc330
simplify distance helper and factor out common bounds helper ( #581 )
...
* simplify distance helper
* factor out common bounds helper
2020-01-26 19:15:08 +00:00
David Luzar and GitHub
afb1d6725f
Normalize dimensions ( #527 )
...
* normalize dimensions of non-linear elements
* fix element type check regression
2020-01-24 20:45:52 +01:00
4942a452e0
Lint tweaks ( #502 )
...
* lint json files & add lint ignore list
* lint against plain console logs
* Update .lintstagedrc.js
Co-Authored-By: Lipis <lipiridis@gmail.com >
* format .tsconfig
* don't lint against console.info
* change log to console.info
Co-authored-by: Lipis <lipiridis@gmail.com >
2020-01-22 15:13:00 +01:00
David Luzar and GitHub
5bd1c8b3cd
update events for GH actions to include PRs ( #511 )
...
* update events for GH actions to include PRs
* change action events to pull_request only
2020-01-22 14:18:31 +01:00
20cf1078fc
add top error boundary & reset localStorage on error ( #493 )
...
* add top error boundary & reset localStorage on error
* add issue tracker details and link
* add pointer cursor to buttons
* Update src/bug-issue-template.js
Co-Authored-By: Lipis <lipiridis@gmail.com >
* Update src/styles.scss
Co-Authored-By: Lipis <lipiridis@gmail.com >
* Update src/bug-issue-template.js
Co-Authored-By: Lipis <lipiridis@gmail.com >
* use open-color colors
* use Cascadia font
Co-authored-by: Lipis <lipiridis@gmail.com >
2020-01-21 15:50:25 +01:00
David Luzar and Christopher Chedeau
2340dddaad
Sync panel props to editing element ( #470 )
...
* ensure panel props are sync to editing elem
* ensure we don't create empty-text elements (fixes #468 )
* remove dead code
Co-authored-by: Christopher Chedeau <vjeuxx@gmail.com >
2020-01-20 15:16:22 -08:00
David Luzar and Christopher Chedeau
d44c4ca2d8
flush autosave on unload ( #473 )
2020-01-20 09:37:42 -08:00
David Luzar and Lipis
0097652b79
disallow shape selection during creation ( #449 )
2020-01-20 01:27:00 +02:00
David Luzar and Lipis
6892348c3d
Revert 400 and 420 ( #422 )
...
* revert #400 font file
* Revert "Revert "Set scale for export images (#416 )" (#420 )"
This reverts commit d603921234 .
2020-01-17 16:43:24 +02:00
David Luzar and Christopher Chedeau
0e56cd4f56
pan canvas on wheel button drag ( #375 )
...
* pan canvas on wheel button drag
* make mousemove passive
2020-01-15 15:21:39 -08:00
David Luzar and Faustino Kialungila
42968ef44d
enable curveFitting & bump roughjs ( #373 )
2020-01-15 20:01:50 +01:00
David Luzar and Faustino Kialungila
8104c8525d
ensure contextMenu doesn't overflow viewport ( #364 )
2020-01-14 09:44:18 +01:00
David Luzar and Christopher Chedeau
58ad6d741d
fix selecting elem inside already selected element ( #349 )
2020-01-12 11:43:31 -08:00
David Luzar and Christopher Chedeau
5887be6eda
select filled elements by clicking inside ( #340 )
2020-01-12 11:16:48 -08:00
dwelle
81f23a8ccb
fix text shape contenteditable & paste handling ( fixes #293 )
2020-01-10 15:51:22 +01:00
David Luzar and GitHub
2fb3cdd5e4
fix copy/paste regression ( #291 )
2020-01-09 18:43:24 +01:00
David Luzar and GitHub
deee57314d
support export canvas to clipboard ( #232 )
2020-01-09 17:37:08 +01:00