Aakansha Doshi
15d79f8fee
chore: upgrade to React 18 ( #5450 )
...
* chore: upgrade to React 18
* better type
* use React.FC to fix type
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-07-22 11:20:36 +05:30
Shubham Shah
958ebeae61
feat: make context menu scrollable ( #4030 )
...
* Make context menu scrollable
* Fix color picker not showing up
* Fix overflow cuts shadow
* style fixes
* fix
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-07-21 14:34:49 +02:00
Gwenaël Gallon
c5cadc7de3
fix: missing translation for "Scale" to Export Dialog ( #5456 )
...
fix: missing translation for "Scale"
2022-07-20 14:52:04 +05:30
David Luzar
a7937681e9
fix: account for safe area for floating buttons on mobile ( #5420 )
2022-07-19 15:44:14 +02:00
David Luzar
792f238d16
refactor: improve typing & check ( #5415 )
2022-07-19 15:44:04 +02:00
Aakansha Doshi
6e0ac52a64
fix: check for ctrl key when wheel event triggered to only disable zooming ( #5459 )
...
* fix: check for ctrl key when wheel event triggered to only disable zooming
* remove newline
2022-07-18 14:39:55 +05:30
David Luzar
5bc40402a6
fix: disable render throttling by default & during resize ( #5451 )
2022-07-16 11:36:55 +02:00
Aakansha Doshi
df14c69977
refactor: don't pass zenModeEnable, viewModeEnabled and toggleZenMode props to LayerUI ( #5444 )
...
refactor: don't pass zenModeEnabled and viewModeEnabled props to LayerUI
2022-07-14 16:13:10 +05:30
Aakansha Doshi
1ea67ba93d
fix: attach wheel event to exscalidraw container only ( #5443 )
2022-07-14 11:08:20 +05:30
Aakansha Doshi
a7153d9d1d
feat: update toast api to account for duration and closable ( #5427 )
...
* feat: update toast api to account for duration and closable
* fix
* update snaps
* update docs
* male toast nullable
* fix snaps
* remove clearToast from App.tsx and replace clearToast prop in Toast comp with onClose
2022-07-11 18:11:13 +05:30
Aakansha Doshi
7efa081976
fix: show toast when browser zoom is not 100% ( #5304 )
...
* fix: show toast when browser zoom is not 100%
* update threshold for detecting zoom
* Make toast permanent for browser zoom
* check if browser zoomed on mount
* retrieve toast params from function getToastParams
* Revert "retrieve toast params from function getToastParams"
This reverts commit cfca580d74c0261c3706f577db5ba7f2213cdce8.
2022-07-08 19:19:00 +05:30
Aakansha Doshi
5deb93a083
fix: prevent browser zoom inside Excalidraw ( #5426 )
...
* fix: prevent browser zoom inside Excalidraw
* prevent default only for =/-
2022-07-08 17:53:40 +05:30
David Luzar
b6bb74d08d
feat: throttle scene rendering to animation framerate ( #5422 )
2022-07-07 11:47:37 +02:00
Aakansha Doshi
76a5bb060e
feat: make toast closable and allow custom duration ( #5308 )
...
* feat: make toast closable and allow custom duration
* use Infinity to keep prevent auto close
* rename to DEFAULT_TOAST_TIMEOUT and move to toast.tsx
* fix
* set closable as false by default and fix design
* tweak css
* reuse variables
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-07-05 21:43:59 +05:30
David Luzar
dac8dda4d4
feat: collab component state handling rewrite & fixes ( #5046 )
2022-07-05 16:03:40 +02:00
David Luzar
120c8f373c
fix: library not scrollable when no published items installed ( #5352 )
...
* fix: library not scrollable when no published items installed
* show empty lib message in one case & fix i18n
2022-06-25 20:10:53 +02:00
David Luzar
af31e9dcc2
fix: focus traps inside popovers ( #5317 )
2022-06-23 17:33:50 +02:00
David Luzar
50bc7e099a
fix: unable to use cmd/ctrl-delete/backspace in inputs ( #5348 )
2022-06-23 17:27:15 +02:00
Aakansha Doshi
39d17c4a3c
fix: delay loading until language imported ( #5344 )
2022-06-22 22:06:29 +05:30
Ishtiaq Bhatti
cdf352d4c3
feat: add sidebar for libraries panel ( #5274 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-06-21 17:03:23 +02:00
David Luzar
4712393b62
fix: stale appState.pendingImageElement
( #5322 )
...
* fix: stale `appState.pendingImageElement`
* unrelated fix for devTools race conditions
* snap fix
2022-06-19 14:13:43 +02:00
David Luzar
fd48c2cf79
fix: non-letter shortcuts being swallowed by color picker ( #5316 )
2022-06-17 12:37:11 +02:00
David Luzar
5feacd9a3b
feat: deduplicate collab avatars based on id
( #5309 )
2022-06-15 15:35:57 +02:00
Aakansha Doshi
ec35d5db51
fix: bind text to correct container when nested ( #5307 )
...
* fix: bind text to correct container when nested
* fix tests
2022-06-15 16:09:12 +05:30
Aakansha Doshi
f1bc90e08a
fix: Allow null in renderFooter prop ( #5282 )
...
* fix: Allow null in render props
* update docs
2022-06-06 20:45:06 +05:30
David Luzar
4a9fac2d1e
fix: unsafely accessing draggingElement ( #5216 )
2022-05-20 17:48:26 +02:00
Aakansha Doshi
07ebd7c68c
feat: support setting/resetting cursor from host ( #5215 )
...
* Support setting/resetting cursor type from host
* add docs
* minor
2022-05-20 18:43:38 +05:30
zsviczian
605aa554d0
fix: Library load button does not work ( #5205 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-05-18 19:46:08 +00:00
Johannes
ef8559d060
fix: do not deselect when not zooming using touchscreen pinch ( #5181 )
...
* Do not deselect when zooming
* do not deselect when trackpad zooming on Safari
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-05-11 23:30:50 +02:00
Johannes
33bb23d2f3
fix: wheel zoom normalization ( #5165 )
...
Co-authored-by: David Luzar <luzar.david@gmail.com>
2022-05-11 22:01:20 +02:00
David Luzar
b27ac257e7
feat: support resubmitting published library items ( #5174 )
2022-05-11 15:56:11 +02:00
David Luzar
d2cc76e52e
feat: support adding multiple library items on canvas ( #5116 )
2022-05-11 15:51:02 +02:00
David Luzar
cad6097d60
feat: factor out url library init & switch to updateLibrary
API ( #5115 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-05-11 15:08:54 +02:00
Aakansha Doshi
4ee48d2729
fix: rename src to avatarUrl in collaborator ( #5177 )
...
* fix: rename to in collaborator
* update pr link
* fallback to intials on image error
2022-05-11 15:54:10 +05:30
Aakansha Doshi
68f23d652f
feat: support custom elements in @excalidraw/excalidraw ( #5164 )
...
* feat: support custom elements in @excalidraw/excalidraw
* revert
* fix css
* fix offsets
* fix overflow of custom elements in example
* fix overflow in comments input
* make sure comment input never overflows the viewport
* remove offsetschange
* expose setActiveTool
* rename to onPointerDown
* update docs
* fix
2022-05-11 13:30:15 +05:30
David Luzar
d2e687ed0a
feat: make file handling more robust ( #5057 )
2022-05-09 15:53:04 +02:00
David Luzar
a524eeb66e
fix: eraser removed deleted elements ( #5155 )
...
* fix: eraser removed deleted elements
* rename `getElements` API
* fix one more case of not including deleted elements
2022-05-07 21:01:37 +02:00
Tom Sherman
3d56ceb794
fix: Handle ColorPicker
parentSelector being undefined ( #5152 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-05-07 18:16:14 +00:00
David Luzar
65c32b3319
fix: library multiselect not accounting for published state ( #5132 )
2022-05-07 19:13:10 +02:00
Aakansha Doshi
64d330a332
feat: support customType in activeTool ( #5144 )
...
* feat: support customType in activeTool
* fix
* rewrite types and handling
* tweaks
* fix
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-05-06 18:21:22 +05:30
Aakansha Doshi
9e6d5fdbcb
feat: support src collaborators ( #5114 )
...
* feat: support avatarURLfor collaborators
* fix
* better avatars :)
* use position fixed for tooltips so it renders correctly when offsets updated
* update docs
* Update src/excalidraw-app/collab/CollabWrapper.tsx
* rename avatarUrl to src
2022-05-02 15:15:24 +05:30
David Luzar
d53ac2a61e
fix: library init/import race conditions ( #5101 )
2022-04-29 16:45:02 +02:00
Aakansha Doshi
399ce1e01a
fix: don't bind text to container if double clicked else instead of center ( #5105 )
2022-04-27 17:04:21 +05:30
David Luzar
e6a9ff1b96
fix: toolIcon height not using rem ( #5092 )
2022-04-24 19:21:41 +02:00
David Luzar
832b88249c
feat: stop event propagation when key handled ( #5091 )
...
* feat: stop event propagation when key handled
* don't handle s/g shortcuts if cmd/ctrl/alt pressed
2022-04-24 18:29:38 +02:00
Achille Lacoin
86cf28f2b4
fix: don't merge libraryItems on updateScene ( #5076 )
2022-04-21 10:54:02 +02:00
David Luzar
cd942c3e3b
feat: rewrite library state management & related refactor ( #5067 )
...
* support libraryItems promise for `updateScene()` and use `importLibrary`
* fix typing for `getLibraryItemsFromStorage()`
* remove `libraryItemsFromStorage` hack
if there was a point to it then I'm missing it, but this part will be rewritten anyway
* rewrite state handling
(temporarily removed loading states)
* add async support
* refactor and deduplicate library importing logic
* hide hints when library open
* fix snaps
* support promise in `initialData.libraryItems`
* add default to params instead
2022-04-20 14:40:03 +02:00
David Luzar
55ccd5b79b
feat: delay initial loading message & tweak design ( #5049 )
2022-04-19 19:08:13 +02:00
David Luzar
a3fbe40b26
fix: eraser cursor showing on theme change when not using eraser ( #4990 )
2022-04-17 22:47:36 +02:00
zsviczian
7d4189c624
fix: Add image button not working on iPad ( #5038 )
2022-04-15 12:20:51 +02:00