Zsolt Viczian
38b58ea1da
testing iOS
2022-03-21 18:39:00 +01:00
Zsolt Viczian
89a0dbafde
testing
2022-03-21 18:25:11 +01:00
Zsolt Viczian
01789c3375
testing
2022-03-21 18:19:42 +01:00
Zsolt Viczian
563caa3f07
iOS debug
2022-03-21 18:14:02 +01:00
zsviczian
bb04943564
debugging iOS
2022-03-21 15:35:14 +01:00
zsviczian
7bcc1f2a41
debugging iOS
2022-03-21 15:31:55 +01:00
zsviczian
fb449b6758
debugging iOS
2022-03-21 15:24:01 +01:00
zsviczian
8d60f22ff7
Update Actions.tsx
2022-03-21 15:20:13 +01:00
zsviczian
93bd035d03
debugging iOS
2022-03-21 15:18:55 +01:00
Zsolt Viczian
4dec449516
cleanup
2022-03-20 19:12:50 +01:00
Zsolt Viczian
c45433c8db
testing to understand why it does not work on iOS
2022-03-20 19:03:16 +01:00
Zsolt Viczian
22cd6f5115
setDeviceType
2022-03-20 18:21:19 +01:00
Zsolt Viczian
53ba9dffd9
setDeviceType
2022-03-20 18:14:47 +01:00
Zsolt Viczian
7e7864ca3d
testing
2022-03-20 17:51:53 +01:00
Zsolt Viczian
15d88d0fe0
passing penDetected to ShapesSwitcher
2022-03-20 17:40:25 +01:00
Zsolt Viczian
24d7380333
penMode
2022-03-20 17:07:25 +01:00
Zsolt Viczian
0ecb53e2f2
updated test, set penMode on ToolButton change
2022-03-20 12:13:35 +01:00
Zsolt Viczian
cf8024bdc0
moved penMode from state to context
2022-03-20 11:36:02 +01:00
Aakansha Doshi
ceb43ed8fb
fix: erase all elements which are hit with single point click ( #4934 )
2022-03-17 21:03:59 +05:30
Ives van Hoorne
8c0a0415de
update README.md to show commands in code blocks ( #4932 )
2022-03-16 18:49:28 +01:00
zsviczian
192debd829
fix: Add multiElement-edit finalize action to Desktop (currently only visible in Mobile view) ( #4764 )
...
* add finalize action to Desktop UI
* Update LayerUI.tsx
* add size to panel component
* finzalize button style
* add finalize button
* changed isMobile to DeviceInfo, added isTouchScreen
* cleanup
* rename deviceInfo to deviceType
* rename deviceInfo to deviceType
* added updateObject
* Update App.tsx
2022-03-16 15:59:30 +01:00
Aakansha Doshi
1cfb4dfd8b
feat: Map shortcut O to ellipse and Add eraser shortcut E ( #4930 )
...
* feat: Add erase shortcut Shift+E
* map o to ellipse and E to Eraser
* fix tests
* use key
* move eraser to tools and rename shape to tools
2022-03-16 18:31:20 +05:30
dependabot[bot]
fb32886355
chore(deps-dev): bump ts-loader in /src/packages/excalidraw ( #4912 )
...
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader ) from 9.2.6 to 9.2.8.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases )
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.2.6...v9.2.8 )
---
updated-dependencies:
- dependency-name: ts-loader
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-16 13:25:36 +05:30
Aakansha Doshi
065df495ba
fix: Hide eraser in view mode in desktop ( #4929 )
2022-03-16 13:09:34 +05:30
Aakansha Doshi
558227f744
feat: update eraser cursor ( #4922 )
...
* feat: update eraser cursor
* fix dark theme
* check before adding active class
* use custom cursor instead of DOM manipulation
* cache canvas and redraw only when theme changes
* use oc colors
* remove
* cache preview data url
* increase linwidth
* update coords for cursor
* add white 2px outline
* improvements
* use 1px line width 6px radius for outer
* improve
2022-03-15 20:56:39 +05:30
Aakansha Doshi
6d45430344
fix: undo when erasing elements by clicking ( #4921 )
...
* fix: undo when erasing elements by clicking
* newline remove
2022-03-14 14:59:55 +05:30
dependabot[bot]
3aa0c5ebc0
chore(deps-dev): bump css-loader in /src/packages/excalidraw ( #4911 )
...
Bumps [css-loader](https://github.com/webpack-contrib/css-loader ) from 6.6.0 to 6.7.1.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases )
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v6.6.0...v6.7.1 )
---
updated-dependencies:
- dependency-name: css-loader
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-14 14:47:01 +05:30
dependabot[bot]
e940993e0e
chore(deps-dev): bump css-loader in /src/packages/utils ( #4914 )
...
Bumps [css-loader](https://github.com/webpack-contrib/css-loader ) from 6.5.1 to 6.7.1.
- [Release notes](https://github.com/webpack-contrib/css-loader/releases )
- [Changelog](https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/css-loader/compare/v6.5.1...v6.7.1 )
---
updated-dependencies:
- dependency-name: css-loader
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-14 14:45:33 +05:30
dependabot[bot]
8f90aeb8d5
chore(deps-dev): bump ts-loader in /src/packages/utils ( #4913 )
...
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader ) from 9.2.6 to 9.2.8.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases )
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.2.6...v9.2.8 )
---
updated-dependencies:
- dependency-name: ts-loader
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-14 14:45:02 +05:30
Aakansha Doshi
e92d133973
fix: undo when erasing ( #4900 )
2022-03-11 20:44:17 +05:30
David Luzar
b682d88167
fix: incorrectly erasing on mobile ( #4899 )
...
* fix: incorrectly erasing on mobile
* reintroduce fix for erasing on single-point click
* fix snaps
2022-03-11 15:45:59 +01:00
Aakansha Doshi
7daf1a7944
feat: Add Eraser 🎉 ( #4887 )
...
* feat: Add Eraser 🎉
* Eraser working
* remove unused state
* fix
* toggle eraser
* Support deselect with Alt/Option
* rename actionDelete -> actionErase
* Add util isEraserActive
* show eraser in mobile
* render eraser conditionally in mobile
* use selection if eraser in local storage state
* Add sampling to erase accurately
* use pointerDownState
* set eraser to false in AllowedExcalidrawElementTypes
* rename/reword fixes
* don't use updateScene
* handle bound text when erasing
* fix hover state in mobile
* consider all hitElements instead of a single
* code improvements
* revert to select if eraser active and elements selected
* show eraser in zenmode
* erase element when clicked on element while eraser active
* set groupIds to empty when eraser active
* fix test
* remove dragged distance
2022-03-11 19:53:42 +05:30
Excalidraw Bot
5c0eff50a0
chore: Update translations from Crowdin ( #4729 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-03-09 12:21:26 +01:00
Milos Vetesnik
19056d635b
feat: added optional REACT_APP_WS_SERVER_URL for forks usecases ( #4889 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-03-09 12:13:59 +01:00
Tom Milligan
4d5f00ff08
fix: don't crash on drop highlighted text onto canvas ( #4890 )
2022-03-09 11:51:13 +01:00
David Luzar
20de06ef50
fix: paste styles shortcut ( #4886 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2022-03-09 10:59:44 +01:00
zsviczian
1849ff6ee2
fix: freedraw element's background fill color missing from SVG when exporting with package API exportToSvg() ( #4871 )
2022-03-06 23:35:16 +01:00
Milos Vetesnik
6765fc16be
fix: improve pointer syncing performance ( #4883 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-03-06 22:11:14 +00:00
Milos Vetesnik
5ca4f5bbf4
feat: rewrite collab server connecting ( #4881 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-03-06 22:43:02 +01:00
David Luzar
9392ec276d
fix: collab room initialization ( #4882 )
2022-03-06 15:59:56 +01:00
Aakansha Doshi
b26e4fcf99
build: support runtime React Jsx in @excalidraw/utils ( #4866 )
...
* build: support runtime React Jsx
* revert version
* upgrade
2022-03-04 10:58:02 +05:30
David Luzar
45f3410da8
build: release @excalidraw/utils 0.1.1 ( #4862 )
2022-03-03 14:59:08 +01:00
David Luzar
94b387ef7b
fix: ensure verticalAlign properties not shown when no element selected ( #4860 )
...
* fix: ensure verticalAlign properties not shown when no element selected
* show verticalAlign prop if selection contains at least one applicable element
* simplify
2022-03-02 23:56:20 +01:00
David Luzar
6d0716eb6b
fix: binding text to non-bindable containers and not always preferring selection ( #4655 )
2022-03-02 17:04:09 +01:00
Aakansha Doshi
8e26d5b500
feat: support vertical text align for bound containers ( #4852 )
...
* feat: support vertical text align for bound containers
* update icons
* use const
* fix lint
* rename to and show when text editor active
* don't update vertical align if not center
* fix svgs
* fix y coords when vertical align bottm
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-03-02 20:06:07 +05:30
luzpaz
c5a7723185
chore: fix various typos ( #4857 )
...
Found via `codespell -q 3 -S ./src/locales,./yarn.lock,./src/packages/excalidraw/yarn.lock -L afterall,doubleclick,originaly,reenable,whats,sur`
2022-03-02 11:37:12 +05:30
Aakansha Doshi
49172ac2d3
feat: support custom colors 🎉 ( #4843 )
...
* feat: support custom colors 🎉
* remove canvasBackground
* fix tests
* Remove custom color when elements deleted
* persist custom color across sessions
* Choose 5 latest custom colors when populating from elements
* fix tests
* styling
* don't use up/down arrow for custom colors
* Always push latest color to the begining
* don't check if valid in custom color
* calculate custom colors on color picker open
* revert unnecessary changes
* remove newlines
* simplify state
* tweak label
* fix custom color shortcuts throwing if color not exists
* fix
* early return
Co-authored-by: dwelle <luzar.david@gmail.com>
2022-02-28 19:04:26 +05:30
David Luzar
618a846451
chore: remove firebase-tools
( #4792 )
2022-02-28 10:54:20 +01:00
Aakansha Doshi
d9f49ffd67
fix: Don't show align icons for single bound container element ( #4846 )
...
* fix: Don't show align icons for single bound container element
* check 2nd element as well
2022-02-28 11:08:28 +05:30
Jesse Jurman
46e43baad1
feat: Support Links in Exported SVG ( #4791 )
2022-02-25 21:42:10 +01:00