Commit Graph
100 Commits
Author SHA1 Message Date
David LuzarandGitHub 32acde500e fix: hide scrollbars in zenMode (#3144) 2021-02-28 20:20:16 +01:00
e6cd97c4f2 feat: adjust line-confirm-threshold based on zoom (#2884)
Co-authored-by: Lipis <lipiridis@gmail.com>
2021-02-14 14:43:23 +01:00
David LuzarandGitHub 4b253c7362 fix: refresh wysiwyg position on canvas resize (#3008) 2021-02-11 12:24:26 +01:00
David LuzarandGitHub f162512988 docs: link to specific sponsors (#2950) 2021-02-10 10:22:49 +02:00
David LuzarandGitHub 9c51ba6067 feat: show toast when saving to existing file (#2988) 2021-02-07 22:01:22 +01:00
David LuzarandGitHub 6aa22bada8 fix: mobile toolbar tooltip regression (#2939) 2021-02-05 16:09:40 +01:00
00209ef9c3 fix: hide collaborator list on mobile if empty (#2938)
Co-authored-by: Lipis <lipiridis@gmail.com>
2021-02-05 15:45:44 +01:00
David LuzarandGitHub b79ef0d428 fix: don't prompt on empty scenes (#2937) 2021-02-05 12:04:33 +01:00
David LuzarandGitHub 1e17c1967b fix: toolbar unnecessarily eats too much width (#2924) 2021-02-04 16:52:16 +01:00
David LuzarandGitHub 23a8891e0e fix: mistakenly hardcoding scale (#2925) 2021-02-04 16:52:00 +01:00
David LuzarandGitHub 6c81a32d62 fix: text editor not visible in dark mode (#2920) 2021-02-04 16:21:48 +01:00
David LuzarandGitHub f0f5430313 feat: support supplying custom scale when exporting canvas (#2904) 2021-02-04 14:54:08 +01:00
David LuzarandGitHub e18e945cd3 fix: incorrect z-index of text editor (#2914) 2021-02-04 14:54:00 +01:00
David LuzarandGitHub 15f698dc21 fix: pointer-events being disabled on free-draw (#2912) 2021-02-03 20:43:16 +01:00
David LuzarandGitHub ce507b0a0b feat: don't store to LS during collab (#2909) 2021-02-03 19:14:26 +01:00
David LuzarandGitHub 627c56ef1c fix: disable UI pointer-events on canvas drag (#2856) 2021-02-01 14:55:38 +02:00
David LuzarandGitHub 1973ae9444 fix: stop flooring scroll positions (#2883) 2021-01-31 10:47:43 +01:00
David LuzarandGitHub 10cd6a24b0 feat: increase max zoom (#2881) 2021-01-30 18:03:23 +01:00
David LuzarandGitHub 6abf4f52ff refactor: remove duplicate key handling (#2878) 2021-01-30 10:30:00 +01:00
David LuzarandGitHub d4e12a2962 reuse scss variables in js for SSOT (#2867) 2021-01-28 17:28:35 +05:30
David LuzarandGitHub e75f5f20e7 fix: remote pointers not accounting for offset (#2855) 2021-01-25 10:47:48 +01:00
David LuzarandGitHub 0a0be839b9 refactor: rewrite collabWrapper to remove TDZs and simplify (#2834) 2021-01-25 10:47:35 +01:00
David LuzarandGitHub 9dc930b447 feat: add ctrl-y to redo (#2831) 2021-01-21 16:21:54 +01:00
David LuzarandGitHub 04c46fc01a fix: don't render due to zoom after unmount (#2779)
* fix: don't render due to zoom after unmount

* update changelog

* remove unnecessary flush
2021-01-13 17:42:42 +01:00
David LuzarandGitHub adcd28f348 fix: delay version logging & prevent duplicates (#2770) 2021-01-12 18:47:31 +02:00
David LuzarandGitHub 778e4b08af feat: Add cmd+o shortcut to load scene (#2732) 2021-01-06 13:36:55 +01:00
aef3644c93 fix: scene not initialized properly when tab not focused (#2677)
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-12-29 21:03:34 +01:00
David LuzarandGitHub 0cf58adb4c chore: Update portal URL (#2689) 2020-12-28 13:14:22 +01:00
3aab81bc35 docs: add tsdoc for certain element props (#2673)
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
2020-12-28 00:17:27 +02:00
David LuzarandGitHub 8dfea49ec1 improvement: change hint for 2-point lines on resize (#2655) 2020-12-22 11:00:51 +01:00
David LuzarandGitHub b997e69ebc improvement: Tweak error message on image import (#2619)
* improvement: tweak error message on image import

* tweak copy
2020-12-20 16:11:44 +01:00
34dcf998bd docs: excalidraw package usage example tweaks (#2608)
Co-authored-by: Aakansha Doshi <monstershome@gmail.com>
2020-12-20 16:04:12 +01:00
David LuzarandGitHub 98c26642d0 fix: hide collab button when onCollabButtonClick not supplied (#2598) 2020-12-15 16:21:14 +01:00
David LuzarandGitHub ae15380a9f hide stats and scrollToContent-button when mobile menus open (#2509) 2020-12-11 23:12:36 +02:00
David LuzarandGitHub 4672a2a135 fix misaligning on grid paste (#2494)
* fix misaligning on grid paste

* tweak naming
2020-12-09 15:45:03 +02:00
David LuzarandGitHub 3be5038c14 Revert "Remove native gesture "support" from iOS (#2457)" (#2483)
This reverts commit 2b6d1470f9.
2020-12-07 19:22:20 +01:00
David LuzarandGitHub 36980160ae Revert "Remove unused project name from export dialog (#2427)" (#2436) 2020-12-01 14:00:13 +01:00
David LuzarandGitHub bf143ed0b8 ignore CapsLock when handling keyDown event (#2373)
* ignore CapsLock when handling keyDown event

* fix `this`
2020-11-10 19:42:13 +02:00
David LuzarandGitHub 68aafe31f9 fix portal teardown (#2370) 2020-11-09 15:34:26 +01:00
David LuzarandGitHub b06cf86811 revert socketIO to 2.3.1 (#2363) 2020-11-08 23:21:34 +01:00
David LuzarandGitHub 5b829772d9 Fix library import (#2360) 2020-11-08 17:08:22 +01:00
David LuzarandGitHub f90cbeb089 add .env.local to .gitignore (#2357) 2020-11-08 14:27:19 +01:00
David LuzarandGitHub 56938cf874 fix modal island ref init (#2341)
* fix modal island ref init

* remove unnecessary sIP

* naming
2020-11-05 22:05:58 +02:00
David LuzarandGitHub 455badb23e fix export preview flicker (#2335) 2020-11-04 18:50:53 +01:00
David LuzarandGitHub 411bc2aa0a SW fix (#2320) 2020-10-31 11:31:02 +01:00
David LuzarandGitHub ba3f548b91 Fix library dnd (#2314) 2020-10-30 21:01:41 +01:00
David LuzarandGitHub 56215c6c2b remove eslint two disabled rules & fix (#2309) 2020-10-28 20:53:27 +01:00
David LuzarandGitHub f404ab6f50 clear deleted elements on room create (#2270) 2020-10-26 15:53:55 +01:00
David LuzarandGitHub 915bda9fd8 restore elements on load from firebase (#2269) 2020-10-26 15:45:51 +01:00
David LuzarandGitHub 900e0f27ad expose resetHistory & factor out from updateScene (#2277) 2020-10-25 15:48:16 +01:00
David LuzarandGitHub 72a3450c99 allow to supply canvas offsets from upstream (#2271) 2020-10-23 19:06:16 +02:00
David LuzarandGitHub 1484c5a63b fileHandle refactor & fixes (#2252) 2020-10-19 10:53:37 +02:00
David LuzarandGitHub 538f2be097 add export error handling (#2243) 2020-10-16 11:53:40 +02:00
David LuzarandGitHub 25d460be96 don't touch DOM outside useEffect (#2215) 2020-10-15 21:39:24 +02:00
David LuzarandGitHub b3263c2a69 fix encoding of embed data & compress (#2240) 2020-10-15 21:31:21 +02:00
David LuzarandGitHub f40a2230ec Fix embedding scene to PNG on Safari (#2235) 2020-10-13 16:55:08 +02:00
5950fa9a40 support embedding scene data to PNG/SVG (#2219)
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-10-13 14:47:07 +02:00
7618ca48d7 retain local appState props on restore (#2224)
Co-authored-by: Lipis <lipiridis@gmail.com>
2020-10-13 13:46:52 +02:00
David LuzarandGitHub 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 LuzarandGitHub 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 LuzarandGitHub adb1ac5788 fix restoring appState (#2182) 2020-09-22 21:51:49 +02:00
David LuzarandGitHub d07099aadd fix zindex to account for group boundaries (#2065) 2020-09-11 17:06:07 +02:00
David LuzarandGitHub aaddde5dd9 Fix history initialization (#2115) 2020-09-09 21:08:06 +02:00
David LuzarandGitHub 47dba05c91 System clipboard (#2117) 2020-09-04 14:58:32 +02:00
David LuzarandGitHub 26ef235019 rebind arrow on rotation (#2096) 2020-08-29 14:16:40 +02:00
David LuzarandGitHub 0e28177ccc fix collab MOUSE_LOCATION payload naming for legacy versions (#2098) 2020-08-29 14:12:58 +02:00
David LuzarandGitHub 8b9e2a540d factor out test helpers (#2093) 2020-08-28 10:15:29 +02:00
David LuzarandGitHub 4c2d34ffd7 select single element on cmd-click (#2087) 2020-08-27 20:59:46 +02:00
David LuzarandGitHub b8f8bc2e32 fix group selection (#2092) 2020-08-27 20:32:10 +02:00
David LuzarandGitHub 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 LuzarandGitHub 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 LuzarandGitHub 3f2b0fdd0a don't reset dark mode on canvas clear (#2032) 2020-08-13 17:22:39 +02:00
David LuzarandGitHub 964746e569 fix transform handles regression (#2018) 2020-08-10 15:00:21 +02:00
David LuzarandGitHub 950bcd0b72 Refactor resize handle naming (#2013) 2020-08-10 14:16:39 +02:00
David LuzarandGitHub c06988a202 do not prevent UI scrolling on mobile (#2007) 2020-08-06 18:56:51 +02:00
David LuzarandGitHub fea257765d regenerate seed on change of sloppiness (#1986) 2020-07-30 20:14:38 +02:00
David LuzarandGitHub 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 LuzarandGitHub ab980b252c make restore migration types required (#1977) 2020-07-28 23:40:06 +02:00
David LuzarandGitHub f295550940 ensure editingLinearElement handles are rendered on top (#1967) 2020-07-26 20:52:25 +02:00
David LuzarandGitHub dc1f6c4d4c change selection/line/draw shortcut defaults (#1953) 2020-07-24 15:47:46 +02:00
David LuzarandGitHub c5d37a07c8 fix resize hints not showing due to LayerUI bailing on updates (#1952) 2020-07-24 13:29:36 +02:00
David LuzarandGitHub 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 LuzarandGitHub c1488fa353 try/catch localStorage access (#1932) 2020-07-17 18:39:23 +02:00
David LuzarandGitHub 494b7d08c5 mute FS abort errors (#1929) 2020-07-17 11:34:21 +02:00
David LuzarandGitHub 4cfc8bd4b3 fix accessing nonexisting config property during appState clearing (#1928) 2020-07-16 21:20:55 +02:00
David LuzarandGitHub 0ee2c15929 make clearing state for storage more type-safe (#1884) 2020-07-11 13:09:40 +02:00
David LuzarandGitHub 7ab0c1aba8 reload scene on hashchange (#1893)
* reload scene on hashchange

* tweak isLoading
2020-07-09 22:16:28 -07:00
David LuzarandGitHub 6e357c0291 fix deleting multi-point elem during edit (#1892) 2020-07-09 22:33:27 +02:00
David LuzarandGitHub d5e7d08586 prompt when loading external scene before overriding local one (#1862) 2020-07-08 22:55:26 +02:00
David LuzarandGitHub df5eb3f0d9 change copy/paste styles shortcuts (#1881)
* change copy/paste styles shortcuts

* use keyCode
2020-07-07 20:22:23 +02:00
David LuzarandGitHub b1261eea70 duplicate point on cmd+d (#1831) 2020-07-07 13:53:44 +02:00
David LuzarandGitHub d9e84b90ce strip fragment (#1859) 2020-07-02 12:02:16 +02:00
David LuzarandGitHub cd87bd6901 do not center text when not applicable (#1783) 2020-06-25 21:21:27 +02:00
David LuzarandGitHub dadf054ea2 fix not always generating shape on render (#1741) 2020-06-09 17:36:25 +02:00
David LuzarandGitHub d1be2a5481 fix text constructor groupIds & improve type safety (#1715) 2020-06-06 13:32:43 +02:00
David LuzarandGitHub 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 LuzarandGitHub f413bab3de Fix group element removing (#1676) 2020-05-30 13:48:57 -07:00
David LuzarandGitHub 0db7ac78c4 fix fontFamily state updating (#1679) 2020-05-29 21:59:39 +02:00