Commit Graph

369 Commits (feat/radix-themes)

Author SHA1 Message Date
Gabriel Horner 51fe26ff5a
Merge branch 'master' into fix/wb-fixes 2022-11-18 12:35:41 -05:00
Peng Xiao 91aba5c499 chore(whiteboard): update dependencies 2022-11-18 11:05:26 -05:00
Peng Xiao a72bb8bcb4 fix: optimize dot grid svg rendering in Safari 2022-11-18 14:15:42 +08:00
Peng Xiao b495205795 fix(whiteboard): last wheel event triggered twice issue 2022-11-18 10:41:10 +08:00
Konstantinos Kaloutas c9ab86a049 remove opacity option 2022-11-17 19:10:51 +02:00
Konstantinos Kaloutas 804bba6988 chore: set fill and stroke on create 2022-11-17 19:00:36 +02:00
Konstantinos Kaloutas 4d7f68fe66 fix: update selected elements on set color 2022-11-17 17:24:08 +02:00
Konstantinos Kaloutas 47f7863651 fix: keyboard shortcuts 2022-11-17 16:49:52 +02:00
Peng Xiao eb072afa53 fix: still use svg grid for non-safari 2022-11-17 21:43:34 +08:00
Peng Xiao 0260f5da5d refactor(whiteboard): using canvas to render the whiteboard grid dots 2022-11-17 16:50:45 +08:00
Peng Xiao 8bf59a564b fix(whiteboard): disable dot grid background for iOS & iPad 2022-11-17 11:44:09 +08:00
Peng Xiao ffc93fdae0 fix(whiteboard): wb preview sometimes is black 2022-11-17 10:48:03 +08:00
Konstantinos Kaloutas fcac11664e feat: color panel 2022-11-16 17:49:53 +02:00
Peng Xiao ecf5495edc fix(whiteboard): disable user select on whiteboard pages on iOS 2022-11-14 22:39:53 +08:00
Peng Xiao 2b32f77809 fix(whiteboard): reverting contextMenu transitioning event 2022-11-14 22:39:53 +08:00
Peng Xiao bebb8cf897 fix(whiteboard): refactor pinch to support mobile 2022-11-14 22:39:53 +08:00
Peng Xiao d94e6490d4 fix(whiteboard): some multi touch issues 2022-11-14 22:39:53 +08:00
Peng Xiao 2047b86313 fix(whiteboard): do not show image preview on Safari (including ios & ipad) 2022-11-14 22:39:53 +08:00
Peng Xiao dd0e741893 fix(whiteboard): some context menu related issues on iOS 2022-11-14 22:39:53 +08:00
Peng Xiao 1d83f00017 fix(whiteboard): iOS callout issues 2022-11-14 22:39:53 +08:00
Peng Xiao 1a86daa53f fix(whiteboard): making tool locked by default 2022-11-14 22:39:53 +08:00
Peng Xiao e8d1c1baa7 feat(whiteboard): onboarding whiteboard 2022-11-04 23:03:43 +08:00
Peng Xiao 2f5680bd49 wip 2022-11-04 23:03:43 +08:00
Peng Xiao 48cfa27552 wip onboarding template 2022-11-04 23:03:43 +08:00
Konstantinos Kaloutas c954a1f470 fix: shape preview 2022-11-01 18:02:15 +02:00
Konstantinos Kaloutas 0f57a4ad00 Merge branch 'master' into feat/whiteboards-color-system 2022-10-31 10:58:50 +02:00
Konstantinos Kaloutas fa6a2d28ce chore: color system enhancements 2022-10-27 16:43:24 +03:00
Peng Xiao 90150197f8 fix(whiteboard): some shortcut conflicting issues 2022-10-27 21:23:58 +08:00
Peng Xiao efadaa5095 fix(whiteboard): fix delete shape issue 2022-10-27 21:23:58 +08:00
Peng Xiao 620da324f5 fix(whiteboard): state issue after deleting shapes 2022-10-27 21:23:58 +08:00
Konstantinos Kaloutas b96dc052c9 chore: color input fixes 2022-10-27 10:37:31 +03:00
Peng Xiao f874915eb3 fix(whiteboard): optimize rendering performance of rendering long list of search items 2022-10-18 11:26:41 +08:00
Peng Xiao 63b83a03d3 fix(whiteboard): pasting HTML shape issues 2022-10-17 10:31:37 +08:00
Peng Xiao 30dcb21fae fix(whiteboard): pack action issue 2022-10-17 09:39:10 +08:00
Peng Xiao 757ce2a528 fix(whiteboards): some pasting issues 2022-10-16 18:19:19 +08:00
Peng Xiao 0c8e5b59a3 feat(whiteboard): pack shapes into rect action 2022-10-10 22:10:45 +08:00
Peng Xiao fea248a03c fix(whiteboard): clearing state when exiting editing state 2022-10-07 20:18:11 +08:00
Peng Xiao 9608910055 fix(whiteboard): allows pasting HTML content with format 2022-10-07 18:39:46 +08:00
Konstantinos Kaloutas 287a360a30 Revert "chore: use meta key to zoom on darwin"
This reverts commit 946e00114e.
2022-09-30 12:55:04 +03:00
Konstantinos Kaloutas 9b3891e936 style: run prettier 2022-09-30 12:05:25 +03:00
Konstantinos Kaloutas 50b67ffcea Merge branch 'whiteboards' into enhance/whiteboards-ux 2022-09-30 12:02:21 +03:00
Konstantinos Kaloutas 946e00114e chore: use meta key to zoom on darwin 2022-09-30 12:01:47 +03:00
Peng Xiao b636f888f3 chore: sync tldraw's freehand implementation 2022-09-30 09:49:00 +08:00
Konstantinos Kaloutas bd19e05490 fix: shortcut conflicts 2022-09-29 13:55:47 +03:00
Peng Xiao bd693292eb fix: a performance issue on drawing 2022-09-29 10:31:20 +08:00
Peng Xiao 52b81c809c feat: create new portal shape when left-clicking block/page refs inside of portal shape 2022-09-28 22:37:37 +08:00
Peng Xiao eaba28e7ca fix: shape deserialize issue 2022-09-28 19:42:18 +08:00
Peng Xiao e65a5a1280 feat: remember whiteboard camera in session storage 2022-09-28 19:03:26 +08:00
Peng Xiao 1aa54a4048 fix: line shape movement issue 2022-09-28 16:49:48 +08:00
Peng Xiao 01b04fc2f8 fix: perf optimize on cleanup 2022-09-28 14:42:42 +08:00
Peng Xiao 4d3decd218 fix: code cleanup 2022-09-28 11:00:57 +08:00
Konstantinos Kaloutas ec6084ef8b fix: call stack error 2022-09-22 12:33:48 +03:00
Konstantinos Kaloutas 74448df415 refactor: move getDistributions to bounds utils 2022-09-22 12:05:51 +03:00
Konstantinos Kaloutas ec3e865836 style: run prettier 2022-09-21 14:12:40 +03:00
Konstantinos Kaloutas 09fd3a752f chore: add distribute method 2022-09-21 14:08:48 +03:00
Konstantinos Kaloutas e902780f19 chore: introduce distribution types 2022-09-21 12:28:49 +03:00
Konstantinos Kaloutas 7c5afa979b fix: align method 2022-09-21 12:12:49 +03:00
Konstantinos Kaloutas d4b41ba952 chore: align method 2022-09-21 12:02:54 +03:00
Peng Xiao 44e0f0be26 fix: save whiteboard when inactive for 3s 2022-09-20 14:16:11 +08:00
Peng Xiao f1102c57c9 fix: bring in tldraw's optimization on using freehand
see https://github.com/tldraw/tldraw/pull/989
2022-09-20 11:58:56 +08:00
Peng Xiao 81af8230e4 e2e: should not enable whiteboard by default 2022-09-18 15:00:23 +08:00
Peng Xiao 380c445f6f fix: disable csp (is this ok?) 2022-09-18 12:08:09 +08:00
Peng Xiao 054a5af0b6 fix: styles 2022-09-17 21:13:25 +08:00
Peng Xiao 3f500101a7 fix: enable editing when clicking a selected shape 2022-09-17 20:52:06 +08:00
Peng Xiao 8cb94d9719 fix: quick collapsing issue 2022-09-17 20:46:55 +08:00
Peng Xiao 1a0a6a0d45 refactor: toggle circle button 2022-09-17 19:59:04 +08:00
Peng Xiao bb5b8b98b3 feat: create binding api 2022-09-17 13:02:02 +08:00
Peng Xiao 9e70befeb4 fix: copied bindings are not correctly handled 2022-09-17 09:45:16 +08:00
Peng Xiao 3c5df40d59 feat: highlight the bound shapes when selecting a line shape 2022-09-17 09:34:05 +08:00
Peng Xiao 9b50838203 fix: debounce search handler in search handler 2022-09-17 09:33:20 +08:00
Peng Xiao 803ec01b24 refactor: handling DataTransfer 2022-09-16 17:47:02 +08:00
Peng Xiao 13a98e87db Merge remote-tracking branch 'upstream/whiteboards' into feat/whiteboards-create-on-dnd 2022-09-16 17:42:31 +08:00
Peng Xiao 1236a0adef fix: style 2022-09-15 17:16:08 +08:00
Peng Xiao 9371af9941 fix: a style issue of shape selection 2022-09-15 17:15:21 +08:00
Peng Xiao 6fbd67333e fix: some text shape related issues 2022-09-15 16:52:09 +08:00
Konstantinos Kaloutas f60c606c68 feat: create on dnd 2022-09-12 17:26:15 +03:00
Peng Xiao 25453c2776 fix: optimize history stack styles 2022-09-10 12:45:02 +08:00
Peng Xiao 8f7510fc73 fix: a strange Reaction error issue 2022-09-10 01:03:53 +08:00
Konstantinos Kaloutas e96f98b06d style: prettier 2022-09-09 17:03:07 +03:00
Konstantinos Kaloutas a006f2c0e1 enhance: iframe component 2022-09-09 16:47:35 +03:00
Peng Xiao 32e534d712 fix: logseq portal resizing issue 2022-09-06 23:40:13 +08:00
Peng Xiao fb69e99a82 fix: a minor style issue 2022-09-06 23:36:27 +08:00
Peng Xiao 0a1d100587 fix: performance issue on zooming 2022-09-06 23:33:38 +08:00
Konstantinos Kaloutas 4ffc5a69ea fix: adjust normalization 2022-09-05 11:24:36 +03:00
Konstantinos Kaloutas 8026b08800 fix: normalize wheel event and refactor zoom api 2022-09-05 10:55:29 +03:00
Peng Xiao 7cb1a6e317 fix: disable shapesInViewport for now because it will trigger new persist calls 2022-09-02 23:14:50 +08:00
Peng Xiao 0196b792e2 fix: optimize redo/undo 2022-09-02 22:54:51 +08:00
Peng Xiao 886c98a222 chore: dependencies 2022-09-02 21:38:40 +08:00
Peng Xiao afe9fdf5be fix: whiteboard is not being correctly persisted 2022-09-02 14:40:31 +08:00
Peng Xiao e9d71cc217 fix: do not deselect shapes 2022-09-01 16:40:24 +08:00
Konstantinos Kaloutas f1d406f82a feat: cut command and shortcuts 2022-09-01 10:01:42 +03:00
Konstantinos Kaloutas 1b6d8b054f fix: hide context bar on context menu 2022-08-31 17:01:48 +03:00
Konstantinos Kaloutas 27c0f0ebdd fix: block pan on context menu 2022-08-31 15:46:07 +03:00
Peng Xiao 9f58518318 feat: pasting image/video urls 2022-08-31 13:25:38 +08:00
Peng Xiao 62f1f627b7 chore: run pretty-quick 2022-08-31 11:10:55 +08:00
Peng Xiao b0b46ccc8d fix: move outside of viewport issue 2022-08-31 00:57:50 +08:00
Konstantinos Kaloutas 260131eaa6 feat: select element on context menu 2022-08-30 12:24:06 +03:00
Konstantinos Kaloutas 3ae3d4efa0 fix: prevent middle click paste on linux 2022-08-29 11:56:24 +03:00
Konstantinos Kaloutas d8d1955303 fix: merge conflicts 2022-08-29 10:49:46 +03:00
Konstantinos Kaloutas 4ccd9e4206 Merge branch 'whiteboards' into enhance/whiteboards-ui 2022-08-29 10:32:12 +03:00
Peng Xiao 230310d0a9 fix: editing shape state issue 2022-08-29 15:04:09 +08:00
Konstantinos Kaloutas 9adadaae02 fix: remove leftover code 2022-08-29 09:55:00 +03:00
Konstantinos Kaloutas 72ec492e8f chore: remove showContextMenu state 2022-08-29 08:32:15 +03:00
Konstantinos Kaloutas 49ee95de21 fix: remove context bar fade effects 2022-08-29 08:29:58 +03:00
Konstantinos Kaloutas ed22a9104a fix: canvas position on scroll zoom 2022-08-29 08:29:11 +03:00
Konstantinos Kaloutas ab70d7fb4e feat: zoom factor constant 2022-08-29 08:28:05 +03:00
Konstantinos Kaloutas 69355eba73 feat: os dependent mod key 2022-08-29 08:26:00 +03:00
Konstantinos Kaloutas d43de9b83f fix: double click duration 2022-08-29 08:25:25 +03:00
Konstantinos Kaloutas 6798d0c6eb Remove context menu state events 2022-08-26 19:09:24 +03:00
Konstantinos Kaloutas a23c5e203e Fix error 2022-08-26 17:59:12 +03:00
Konstantinos Kaloutas 0ea893f6db Fix error 2022-08-26 17:44:10 +03:00
Konstantinos Kaloutas f7fd54203f Add context menu and pan with middle click 2022-08-26 17:20:32 +03:00
Peng Xiao 3eb4d38034 fix: persist rotating state 2022-08-26 21:59:07 +08:00
Peng Xiao c04c2752e9 chore: prettier & deps 2022-08-26 19:36:25 +08:00
Peng Xiao 0828680f0f chore: faster tldraw build 2022-08-26 19:11:07 +08:00
Peng Xiao a4979c495b fix: stroke color fix 2022-08-25 13:50:49 +08:00
Peng Xiao 3235d2d2ac fix: try using inViewPort optimization again 2022-08-25 11:20:10 +08:00
Peng Xiao aabd56decb fix: do not remove shape when editing or creating 2022-08-24 21:51:06 +08:00
Peng Xiao 0d8477534f fix: remove tln after unmount 2022-08-24 17:34:55 +08:00
Peng Xiao 68dcef4e4f fix: do not toggle isAutoResizing on resizing 2022-08-24 16:00:36 +08:00
Peng Xiao f6a70df284 fix: minor style change 2022-08-24 15:30:31 +08:00
Peng Xiao 5502959b67 fix: Could not find a page named error 2022-08-24 14:38:12 +08:00
Peng Xiao 6b3c5bbd2c fix: remove text shape if content is empty 2022-08-24 14:12:52 +08:00
Peng Xiao 1c54e62580 fix: auto resizing toggle for logseq portal 2022-08-24 13:36:28 +08:00
Peng Xiao 365ac5c995 fix: allow pinching in editing state 2022-08-24 10:55:09 +08:00
Peng Xiao d3cdb59f9d fix: clearEditingState function 2022-08-23 14:56:12 +08:00
Peng Xiao 328e9b5a6c fix: text shape blur issue 2022-08-23 14:49:28 +08:00
Peng Xiao ebfcba284e fix: quick add input got removed sometimes with syncing service 2022-08-23 11:26:41 +08:00
Peng Xiao 7ffdb48cc5 fix: onResetBounds should take zoom into consider 2022-08-22 14:03:30 +08:00
Peng Xiao 4bd023abd3 fix: build issue 2022-08-22 13:51:51 +08:00
Peng Xiao ddb794907d fix: reset bounds action 2022-08-22 13:35:01 +08:00
Peng Xiao 81637484d2 feat: more toolbar actions 2022-08-21 15:36:28 +08:00
Peng Xiao 21c7f53993 feat: youtube link input 2022-08-21 00:40:27 +08:00
Peng Xiao e9b102145f fix: zoomToSelection offset issue 2022-08-20 14:02:18 +08:00
Peng Xiao e262adf0df fix: reduce number of persistence caused by auto-resize 2022-08-20 13:01:58 +08:00
Peng Xiao 5d32ec5a99 fix: copy & pasting into other whiteboards 2022-08-20 11:50:26 +08:00
Peng Xiao c237fe5554 fix: should also scaling the portal header 2022-08-19 11:22:37 +08:00
Peng Xiao d1eab6b4b0 feat: add sizing controls to logseq portal shape 2022-08-18 23:53:46 +08:00
Peng Xiao e07f43e23e feat: pasting video 2022-08-18 17:09:10 +08:00
Peng Xiao 420009681c fix: context bar sometimes blocks the way of pointer events 2022-08-18 14:14:15 +08:00
Peng Xiao 517befe2cc fix: rotate + resizing issue 2022-08-18 12:52:26 +08:00
Peng Xiao f4060ecc79 fix: pinching center offset 2022-08-18 12:18:11 +08:00
Peng Xiao 3436733cea chore: update tldraw deps 2022-08-18 11:57:28 +08:00
Peng Xiao d44a65cefa
Merge pull request #6385 from sawhney17/whiteboard-enhance 2022-08-18 00:19:02 +08:00
Peng Xiao f45f0c2170 fix: stale editing state 2022-08-17 16:38:39 +08:00
Peng Xiao 6e0ed52af6 fix: should blur all inputs after exiting edit mode 2022-08-17 16:10:56 +08:00
Peng Xiao fe8679da2e fix: an experiment on portal editing 2022-08-17 15:53:14 +08:00
sawhney17 8136077686 quick fixes 2022-08-17 10:59:33 +04:00
Peng Xiao 880d7b02c8 fix: keybindings should only be activated when whiteboard is focused 2022-08-17 11:43:08 +08:00
Peng Xiao 7606fa1c04 fix: pinching in LogseqPortalShape 2022-08-17 11:19:46 +08:00