Aakansha Doshi
c725f84334
build: extract all i18n files into locales folder ( #5419 )
3 years ago
Aakansha Doshi
11a3380d83
build: automate release step fully ( #5414 )
...
* build: automate release step fully
* exit process when error
* Add npm scripts for release and prerelease
* update docs with release setps
3 years ago
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>
3 years ago
David Luzar
dac8dda4d4
feat: collab component state handling rewrite & fixes ( #5046 )
3 years ago
Aakansha Doshi
a1a62468a6
docs: fix command to trigger release ( #5413 )
3 years ago
Aakansha Doshi
6102380051
build: use next and preview tags instead of separate packages for next and preview release ( #5346 )
...
* build: use next and preview tags instead of separate packages for next and preview release
* add tag
* dummy diff
* revert dummy tweak
* don't use readme_next
* add note for latest release readme
* Add warning emoji for note
* move note to top
* remove readme next
* fix
* dummy change for release
* remove double note
* Revert "dummy change for release"
This reverts commit d3655cdee4
.
3 years ago
Aakansha Doshi
d05745070b
fix: typecast file to fix the build ( #5410 )
...
* fix: typecast file to fix the build
* update type for fileOpen
* fix
3 years ago
dependabot[bot]
a7705848ec
chore(deps-dev): bump webpack-dev-server from 4.9.0 to 4.9.3 in /src/packages/excalidraw ( #5404 )
...
chore(deps-dev): bump webpack-dev-server in /src/packages/excalidraw
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.9.0 to 4.9.3.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.9.0...v4.9.3 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
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>
3 years ago
dependabot[bot]
69e1bae8dd
chore(deps-dev): bump @babel/preset-env from 7.17.10 to 7.18.6 in /src/packages/excalidraw ( #5405 )
...
chore(deps-dev): bump @babel/preset-env in /src/packages/excalidraw
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.17.10 to 7.18.6.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.18.6/packages/babel-preset-env )
---
updated-dependencies:
- dependency-name: "@babel/preset-env"
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>
3 years ago
dependabot[bot]
d361757e4a
chore(deps-dev): bump @babel/plugin-transform-runtime from 7.17.10 to 7.18.6 in /src/packages/utils ( #5388 )
...
chore(deps-dev): bump @babel/plugin-transform-runtime
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime ) from 7.17.10 to 7.18.6.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.18.6/packages/babel-plugin-transform-runtime )
---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
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>
3 years ago
David Luzar
0ef202f2df
feat: support debugging PWA in dev ( #4853 )
...
* feat: support enabling pwa in dev
* enable workbox debug
* add prebuild script
* fix lint
3 years ago
David Luzar
bbfd2b3cd3
fix: file handle not persisted when importing excalidraw files ( #5372 )
3 years ago
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
3 years ago
David Luzar
af31e9dcc2
fix: focus traps inside popovers ( #5317 )
3 years ago
David Luzar
50bc7e099a
fix: unable to use cmd/ctrl-delete/backspace in inputs ( #5348 )
3 years ago
Aakansha Doshi
39d17c4a3c
fix: delay loading until language imported ( #5344 )
3 years ago
Aakansha Doshi
de95c68d75
fix: remove unnecessary options passed to language detector ( #5336 )
3 years ago
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>
3 years ago
David Luzar
4712393b62
fix: stale `appState.pendingImageElement` ( #5322 )
...
* fix: stale `appState.pendingImageElement`
* unrelated fix for devTools race conditions
* snap fix
3 years ago
David Luzar
fd48c2cf79
fix: non-letter shortcuts being swallowed by color picker ( #5316 )
3 years ago
David Luzar
5feacd9a3b
feat: deduplicate collab avatars based on `id` ( #5309 )
3 years ago
Aakansha Doshi
ec35d5db51
fix: bind text to correct container when nested ( #5307 )
...
* fix: bind text to correct container when nested
* fix tests
3 years ago
Aakansha Doshi
84b47a2ed5
fix: copy bound text style when copying element having bound text ( #5305 )
...
* fix: copy bound text style when copying element having bound text
* fix
* fix tests
3 years ago
Aakansha Doshi
6196fba286
docs: migrate example to typescript ( #5243 )
...
* docs: migrate example to typescript
* fix
* fix sidebar
* fix
3 years ago
Aakansha Doshi
5daff2d3cd
fix: copy arrow head when using copy styles ( #5303 )
...
* fix: copy arrow head when using copy styles
* remove mutations & check against `arrow` type
* fix lint
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
f1bc90e08a
fix: Allow null in renderFooter prop ( #5282 )
...
* fix: Allow null in render props
* update docs
3 years ago
Aakansha Doshi
aabcdc20fd
docs: prevent touch so that pointermove works in touch devices ( #5241 )
3 years ago
Aakansha Doshi
269fbcc2f3
docs: remove dragging threshold when interacting with custom elements ( #5240 )
3 years ago
jasonphillips
d08179c215
fix: transpile browser-fs-access in package build ( #5041 )
3 years ago
Aakansha Doshi
90e739d444
docs: fix offsets in the example when dragging custom elements ( #5238 )
3 years ago
David Luzar
4a9fac2d1e
fix: unsafely accessing draggingElement ( #5216 )
3 years ago
Aakansha Doshi
07ebd7c68c
feat: support setting/resetting cursor from host ( #5215 )
...
* Support setting/resetting cursor type from host
* add docs
* minor
3 years ago
David Luzar
92f30f7ed6
test: add tests for loading library from file picker ( #5206 )
3 years ago
zsviczian
605aa554d0
fix: Library load button does not work ( #5205 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Milos Vetesnik
bed9fca4a5
feat: go-to-excalidrawplus button ( #5202 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
ab1a30073c
feat: expose utilitis to convert scene coords to viewport coords and vice versa ( #5187 )
...
* feat: expose utilitis to convert scene coords to viewport coords and vice versa
* add return value
3 years ago
Excalidraw Bot
31049d06e8
chore: Update translations from Crowdin ( #5061 )
3 years ago
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>
3 years ago
Johannes
33bb23d2f3
fix: wheel zoom normalization ( #5165 )
...
Co-authored-by: David Luzar <luzar.david@gmail.com>
3 years ago
David Luzar
b27ac257e7
feat: support resubmitting published library items ( #5174 )
3 years ago
David Luzar
d2cc76e52e
feat: support adding multiple library items on canvas ( #5116 )
3 years ago
David Luzar
cad6097d60
feat: factor out url library init & switch to `updateLibrary` API ( #5115 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
3 years ago
David Luzar
2537b225ac
fix: hide sidebar when `custom` tool active ( #5179 )
3 years ago
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
3 years ago
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
3 years ago
dependabot[bot]
a078508c05
chore(deps-dev): bump sass-loader in /src/packages/utils ( #4813 )
...
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader ) from 12.4.0 to 12.6.0.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases )
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v12.4.0...v12.6.0 )
---
updated-dependencies:
- dependency-name: sass-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>
3 years ago
dependabot[bot]
abf4dc9256
chore(deps-dev): bump @babel/preset-env in /src/packages/excalidraw ( #5121 )
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.16.7 to 7.17.10.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.17.10/packages/babel-preset-env )
---
updated-dependencies:
- dependency-name: "@babel/preset-env"
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>
3 years ago
dependabot[bot]
ba8f12d588
chore(deps-dev): bump webpack-dev-server in /src/packages/excalidraw ( #5158 )
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.7.4 to 4.9.0.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.7.4...v4.9.0 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
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>
3 years ago
dependabot[bot]
d57560db06
chore(deps-dev): bump typescript in /src/packages/excalidraw ( #5119 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.5.4 to 4.6.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.4...v4.6.4 )
---
updated-dependencies:
- dependency-name: typescript
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>
3 years ago
dependabot[bot]
0d26049b4e
chore(deps-dev): bump babel-loader in /src/packages/excalidraw ( #5086 )
...
Bumps [babel-loader](https://github.com/babel/babel-loader ) from 8.2.3 to 8.2.5.
- [Release notes](https://github.com/babel/babel-loader/releases )
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel-loader/compare/v8.2.3...v8.2.5 )
---
updated-dependencies:
- dependency-name: babel-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>
3 years ago
dependabot[bot]
f72e9b6ea5
chore(deps-dev): bump ts-loader in /src/packages/utils ( #5123 )
...
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader ) from 9.2.8 to 9.3.0.
- [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.8...v9.3.0 )
---
updated-dependencies:
- dependency-name: ts-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>
3 years ago
dependabot[bot]
803909abb6
chore(deps-dev): bump webpack in /src/packages/utils ( #5167 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.66.0 to 5.72.1.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.66.0...v5.72.1 )
---
updated-dependencies:
- dependency-name: webpack
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>
3 years ago
dependabot[bot]
e29152ab30
chore(deps-dev): bump @babel/plugin-transform-runtime ( #5118 )
...
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime ) from 7.17.0 to 7.17.10.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.17.10/packages/babel-plugin-transform-runtime )
---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
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>
3 years ago
dependabot[bot]
f4aa36b35d
chore(deps-dev): bump ts-loader in /src/packages/excalidraw ( #5117 )
...
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader ) from 9.2.8 to 9.3.0.
- [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.8...v9.3.0 )
---
updated-dependencies:
- dependency-name: ts-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>
3 years ago
dependabot[bot]
4a980ed5db
chore(deps-dev): bump autoprefixer in /src/packages/excalidraw ( #5159 )
...
Bumps [autoprefixer](https://github.com/postcss/autoprefixer ) from 10.4.5 to 10.4.7.
- [Release notes](https://github.com/postcss/autoprefixer/releases )
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.5...10.4.7 )
---
updated-dependencies:
- dependency-name: autoprefixer
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>
3 years ago
David Luzar
d2e687ed0a
feat: make file handling more robust ( #5057 )
3 years ago
DanielJGeiger
0d70690ec8
fix: Don't save deleted ExcalidrawElements to Firebase ( #5108 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
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
3 years ago
Tom Sherman
3d56ceb794
fix: Handle `ColorPicker` parentSelector being undefined ( #5152 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
David Luzar
65c32b3319
fix: library multiselect not accounting for published state ( #5132 )
3 years ago
Nicholas Fitton
9e8e047aae
fix: Chart display fix ( #5154 )
3 years ago
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>
3 years ago
Aakansha Doshi
1ed1529f96
fix: update opacity of bound text when opacity of container updated ( #5142 )
3 years ago
Aakansha Doshi
b30066ca19
fix: jumping of text when typing single line in bound text ( #5139 )
...
* fix: jumping of text when typing single line in bound text
* add comment
3 years ago
Aakansha Doshi
aae8e2fa5d
feat: export MIME_TYPES supported by excalidraw ( #5135 )
...
* feat: export MIME_TYPES supported by excalidraw
* Update src/packages/excalidraw/CHANGELOG.md
3 years ago
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
3 years ago
dependabot[bot]
22b2e10ddb
chore(deps-dev): bump @babel/plugin-transform-runtime ( #5125 )
...
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime ) from 7.16.8 to 7.17.10.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.17.10/packages/babel-plugin-transform-runtime )
---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
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>
3 years ago
David Luzar
d53ac2a61e
fix: library init/import race conditions ( #5101 )
3 years ago
Aakansha Doshi
6a0f800716
feat: export exportToClipboard util from package ( #5103 )
...
* feat: export copyToClipboard from package
* use promise constructor for better browser supprt
* add type to exportToClipboard
* update docs
* use json instead of text and use selected element in actionCopy
* pass `files` in example `exportToClipboard`
* fix bad access
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Johannes
aee1e2451e
fix: remove opacity scroll wheel interaction ( #5111 )
3 years ago
Aakansha Doshi
da94eb1284
fix: use excalidraw asset path in fonts when exporting to svg ( #5065 )
...
* fix: use excalidraw asset path in fonts when exporting
* fix
* fix
* introduce env variables and determine asset path correctly
* fix snaps
* use env vars to determine pkg name and version
* update docs
* quotes
3 years ago
Achille Lacoin
ea51251fe6
fix: propagate keydown events from excalidraw-wysiwyg inputs ( #5099 )
...
* fix: allow propagation for keydown events originating from `excalidraw-wysiwyg`
* revert check on the handleKeyDown function
3 years ago
Aakansha Doshi
399ce1e01a
fix: don't bind text to container if double clicked else instead of center ( #5105 )
3 years ago
dependabot[bot]
7df8302ba2
chore(deps-dev): bump babel-loader in /src/packages/utils ( #5088 )
...
Bumps [babel-loader](https://github.com/babel/babel-loader ) from 8.2.3 to 8.2.5.
- [Release notes](https://github.com/babel/babel-loader/releases )
- [Changelog](https://github.com/babel/babel-loader/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel-loader/compare/v8.2.3...v8.2.5 )
---
updated-dependencies:
- dependency-name: babel-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>
3 years ago
dependabot[bot]
af8c59b5bb
chore(deps): bump minimist in /src/packages/excalidraw ( #5039 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
dependabot[bot]
cf0f00285b
chore(deps): bump minimist from 1.2.5 to 1.2.6 in /src/packages/utils ( #5040 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Achille Lacoin
af93cedc08
EXCALIDRAW_EXPORT_SOURCE_PATH -> EXCALIDRAW_EXPORT_SOURCE ( #5102 )
3 years ago
Achille Lacoin
b6a6f2d465
feat: Expose `window.EXCALIDRAW_EXPORT_SOURCE` which host can use to overwrite the source field in exports ( #5095 )
...
* Expose `window.EXCALIDRAW_EXPORT_SOURCE` which host can use to overwrite the source field in exports
* Update src/packages/excalidraw/CHANGELOG.md
Co-authored-by: David Luzar <luzar.david@gmail.com>
* address review comments
* Update src/packages/excalidraw/README_NEXT.md
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* Update src/packages/excalidraw/README_NEXT.md
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* EXCALIDRAW_EXPORT_SOURCE -> EXCALIDRAW_EXPORT_SOURCE_PATH
Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
3 years ago
dependabot[bot]
6bcbf8b50a
chore(deps): bump node-forge in /src/packages/excalidraw ( #5071 )
...
Bumps [node-forge](https://github.com/digitalbazaar/forge ) from 1.2.1 to 1.3.1.
- [Release notes](https://github.com/digitalbazaar/forge/releases )
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md )
- [Commits](https://github.com/digitalbazaar/forge/compare/v1.2.1...v1.3.1 )
---
updated-dependencies:
- dependency-name: node-forge
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
dependabot[bot]
666516d7e9
chore(deps): bump async from 2.6.3 to 2.6.4 in /src/packages/excalidraw ( #5069 )
...
Bumps [async](https://github.com/caolan/async ) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases )
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md )
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4 )
---
updated-dependencies:
- dependency-name: async
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
dependabot[bot]
b941c5b661
chore(deps-dev): bump webpack in /src/packages/excalidraw ( #5027 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.65.0 to 5.72.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.65.0...v5.72.0 )
---
updated-dependencies:
- dependency-name: webpack
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>
3 years ago
dependabot[bot]
aa2971e8c5
chore(deps-dev): bump autoprefixer in /src/packages/excalidraw ( #5087 )
...
Bumps [autoprefixer](https://github.com/postcss/autoprefixer ) from 10.4.2 to 10.4.5.
- [Release notes](https://github.com/postcss/autoprefixer/releases )
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.2...10.4.5 )
---
updated-dependencies:
- dependency-name: autoprefixer
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>
3 years ago
David Luzar
e6a9ff1b96
fix: toolIcon height not using rem ( #5092 )
3 years ago
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
3 years ago
Aakansha Doshi
9902092fd1
fix setting webpack public path ( #5081 )
3 years ago
Achille Lacoin
8f0863d335
add a prefix to the extension for image embbedding sceneData ( #5079 )
3 years ago
David Luzar
9423ac3263
fix: Excalidraw named export type ( #5078 )
3 years ago
Aakansha Doshi
a66cfe2627
fix: boundElementIds when arrows bound to elements are deleted ( #5077 )
...
* fix: boundElementIds when arrows bound to elements are deleted
* fix type checks and updating unrelated elements
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Achille Lacoin
86cf28f2b4
fix: don't merge libraryItems on updateScene ( #5076 )
3 years ago
Achille Lacoin
b5a46dd671
fix: SVG metadata extraction regex on multiline elements ( #5074 )
...
* Fix SVG metadata extraction regex on multiline elements
* remove multiline flag
3 years ago
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
3 years ago
David Luzar
55ccd5b79b
feat: delay initial loading message & tweak design ( #5049 )
3 years ago
Excalidraw Bot
4348c55c31
chore: Update translations from Crowdin ( #4894 )
3 years ago
David Luzar
a3fbe40b26
fix: eraser cursor showing on theme change when not using eraser ( #4990 )
3 years ago
David Luzar
4d13dbf625
feat: reconcile when saving to firebase ( #4991 )
...
* naming tweaks
* do not mark local element as duplicate when there's no remote counterpart
* merge instead of overwrite elements when saving to firebase & reconcile local state
* decouple syncing from persistence
* fix ts
* clarify doc
* fix reconciliation not removing duplicates
3 years ago
Achille Lacoin
3840e2f4e6
feat: embed scene support for png export in npm package ( #5047 )
...
* feat: embed scene support for png export in npm package
* move logic to the callback function
* add exportEmbedScene checkbox in package example
* update readme and changelog
* add PR link in changelog
* reverse sort changelog items
3 years ago
Aakansha Doshi
52d10bb41e
feat: hide trash button during collaboration ( #5037 )
...
* feat: hide trash button during collaboration
* visually hide the trash icon
* pointer events none
* tweak env docs
* fix typo
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
96c87f920a
build: export only named exports from the package ( #5045 )
...
* build: export only named exports from the package
* update docs
* Update src/packages/excalidraw/CHANGELOG.md
* fix lint
3 years ago
zsviczian
7d4189c624
fix: Add image button not working on iPad ( #5038 )
3 years ago
David Luzar
f3e17c90d3
fix: ensure svg image dimensions are always set ( #5044 )
3 years ago
David Luzar
70b3a9de49
feat: library restoring changes ( #4995 )
...
* restore library items in all cases & refactor
* export `restoreLibraryItems` from package
* feat: rerender library menu when updating via API
* update readme & changelog
* fix changelog
3 years ago
zsviczian
bf6d0eeef7
fix: Pinch zoom in view mode ( #5001 )
3 years ago
David Luzar
5359e4fec9
feat: refactor local persistence & fix race condition on SW reload ( #5032 )
3 years ago
David Luzar
58fe639b8d
fix: select whole group on righclick & few lock-related fixes ( #5022 )
3 years ago
Tom Sherman
327ed0e2d1
feat: Element locking ( #4964 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
Co-authored-by: Zsolt Viczian <viczian.zsolt@gmail.com>
3 years ago
Achille Lacoin
c2fce6d8c4
fix: export serializeLibraryAsJSON from the package ( #5017 )
3 years ago
David Luzar
cb6b7559b4
fix: support copying PNG to clipboard on Safari ( #3746 )
3 years ago
David Luzar
77d789ed8e
fix: more copyText fixes ( #5016 )
3 years ago
Faustino Kialungila
89471094ce
fix: Copy to clipboard all text nodes as text ( #5014 )
...
* fix: Copy to clipboard all text nodes as text
* fix: support copying text even if there are selected elements that are no text
* patch: makes paragraphs betwen texts of each element
* patch: allow copying text for bound text
3 years ago
Faustino Kialungila
670ceafc84
feat: Copy to clipboard all text nodes as text ( #5013 )
...
* Copy to clipboard all text nodes as text
* fix: only show the option for text elements
3 years ago
Achille Lacoin
873afdacd3
feat: create and expose serializeLibraryAsJSON ( #5009 )
...
Co-authored-by: David Luzar <luzar.david@gmail.com>
3 years ago
Valerii Gusev
880e4feede
fix: update cursorButton once freedraw is released ( #4996 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
David Luzar
9ba7ca3845
feat: hide penMode button on reload if not enabled ( #4992 )
3 years ago
zsviczian
734bb4d2ed
fix: decouple actionFinalize and actionErase ( #4984 )
...
* Update actionCanvas.tsx
* Update actionFinalize.tsx
* lint
* remove Escape trigger from actionErase
* revert to lastActiveTool only if coming from eraser tool
* unrelated: fix restoring `appState.activeTool`
* one more restoring fix
* fix tests
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
David Luzar
f2d2f97546
fix: using stale state when switching tools ( #4989 )
3 years ago
Aakansha Doshi
2fa69ddc32
refactor: move elementLocked to activeTool.locked ( #4983 )
...
* refactor: move elementLocked to activeTool.locked
* fix
* fix snap
* update docs
* Update src/packages/excalidraw/CHANGELOG.md
* revert
* make lastActiveToolBeforeEraser required and nullable
* fix snap
3 years ago
zsviczian
1331cffe93
feat: Eraser toggle to switch back to the previous tool ( #4981 )
...
* add typeBeforeEraser
* ESC to switch to lastActiveToolBeforeEraser
3 years ago
David Luzar
f242721f3b
chore: add ga for most actions ( #4829 )
3 years ago
zsviczian
e940aeb1a3
fix: updateWysiwygStyle updatedElement is undefined TypeError ( #4980 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
connorhanafee
580e719580
fix: adding check for link length to prevent early return ( #4982 )
...
Co-authored-by: Connor Hanafee <connorp@Connors-MacBook-Pro.local>
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
127af9db23
refactor: rename elementType to activeTool and make it an object ( #4968 )
...
* refactor: rename elementType to activeTool
* update docs
* fix snap
* update activeToll to be an object and review fixes
* fix tests
* fix
3 years ago
Aakansha Doshi
2209e2c1e8
fix: show link icon for bound text containers ( #4960 )
3 years ago
zsviczian
ed31980f84
feat: Save penDetected and penMode, and detect pen already on ToolButton click ( #4955 )
...
* save penMode and penDetected to browser cache
* added on pointer down
* added onPointerDown
* factor out and merge handlers
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
db28595302
fix: cancel erase elements on pointer up if eraser is not active on pointer up ( #4956 )
...
* fix: erase elements on pointer up if present
* cancel erase on pointer up if eraser is not active
3 years ago
Aakansha Doshi
cded1cd63d
fix: restore original opacities when alt pressed while erasing ( #4954 )
3 years ago
Aakansha Doshi
8e447b4c32
fix: don't bind text to container if already present ( #4946 )
...
* fix: don't bind text to container if already present
* Add specs and update condition
3 years ago
dependabot[bot]
e29d3fc5e6
chore(deps-dev): bump mini-css-extract-plugin ( #4872 )
...
Bumps [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin ) from 2.4.6 to 2.6.0.
- [Release notes](https://github.com/webpack-contrib/mini-css-extract-plugin/releases )
- [Changelog](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.4.6...v2.6.0 )
---
updated-dependencies:
- dependency-name: mini-css-extract-plugin
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>
3 years ago
Aakansha Doshi
625ecc64ed
feat: Support binding text to container via context menu ( #4935 )
...
* feat: Support binding text to closest container
* Bind text to selected container
* show bind action in canvas and selected container after binding
* allow binding if container has no bound text
* fix
* move logic to show/hide bind actions to contextMenuPredicate
* don't show bind action when clicking on bounding box and not elemnts
3 years ago
Aakansha Doshi
ceb43ed8fb
fix: erase all elements which are hit with single point click ( #4934 )
3 years ago
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
3 years ago
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
3 years ago
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>
3 years ago
Aakansha Doshi
065df495ba
fix: Hide eraser in view mode in desktop ( #4929 )
3 years ago
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
3 years ago
Aakansha Doshi
6d45430344
fix: undo when erasing elements by clicking ( #4921 )
...
* fix: undo when erasing elements by clicking
* newline remove
3 years ago
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>
3 years ago
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>
3 years ago
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>
3 years ago
Aakansha Doshi
e92d133973
fix: undo when erasing ( #4900 )
3 years ago
David Luzar
b682d88167
fix: incorrectly erasing on mobile ( #4899 )
...
* fix: incorrectly erasing on mobile
* reintroduce fix for erasing on single-point click
* fix snaps
3 years ago
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
3 years ago
Excalidraw Bot
5c0eff50a0
chore: Update translations from Crowdin ( #4729 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Milos Vetesnik
19056d635b
feat: added optional REACT_APP_WS_SERVER_URL for forks usecases ( #4889 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Tom Milligan
4d5f00ff08
fix: don't crash on drop highlighted text onto canvas ( #4890 )
3 years ago
David Luzar
20de06ef50
fix: paste styles shortcut ( #4886 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
3 years ago
zsviczian
1849ff6ee2
fix: freedraw element's background fill color missing from SVG when exporting with package API exportToSvg() ( #4871 )
3 years ago
Milos Vetesnik
6765fc16be
fix: improve pointer syncing performance ( #4883 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Milos Vetesnik
5ca4f5bbf4
feat: rewrite collab server connecting ( #4881 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
David Luzar
9392ec276d
fix: collab room initialization ( #4882 )
3 years ago
Aakansha Doshi
b26e4fcf99
build: support runtime React Jsx in @excalidraw/utils ( #4866 )
...
* build: support runtime React Jsx
* revert version
* upgrade
3 years ago
David Luzar
45f3410da8
build: release @excalidraw/utils 0.1.1 ( #4862 )
3 years ago
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
3 years ago
David Luzar
6d0716eb6b
fix: binding text to non-bindable containers and not always preferring selection ( #4655 )
3 years ago
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>
3 years ago
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`
3 years ago
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>
3 years ago
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
3 years ago
Jesse Jurman
46e43baad1
feat: Support Links in Exported SVG ( #4791 )
3 years ago
Aakansha Doshi
bd35b682fa
fix: redraw text bounding box when pasting styles ( #4845 )
3 years ago
Aakansha Doshi
1acfaf6b6e
feat: Scale font size when bound text containers resized with shift pressed ( #4828 )
...
* feat: Scale font size when bound text containers resized with shift pressed
* revert fontsize once shift pressed/released after resize
* make slightly more typesafe
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
5cf7087754
fix: restore cursor position after bound text container value updated ( #4836 )
...
* fix: restore cursor position after bound text container value updated
* only restore cursor when the cursor is not at the end of the line
* compute diff before setting the cursor
3 years ago
Aakansha Doshi
21e9fcb2f5
chore: Add tracking for hyperlinks ( #4703 )
...
* chore: Add tracking for hyperlinks
* update
* fix
* remove
* tweak
* disable ga logging in dev again
* add logging for hyperlink `edit` & support for tracking in manager
* event label tweaks
* fix tests & make more typesafe
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
e203203993
refactor: don't pass array to handleBindTextResize ( #4826 )
3 years ago
Aakansha Doshi
f224e4d596
fix: support resizing multiple bound text containers ( #4824 )
3 years ago
Andelf
f792eb5ae7
fix: also check overflowY: overlay in detectScroll ( #4806 )
...
* fix: also check overflowY: overlay in detectScroll
* fix lint
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
4604c8d823
fix: stuck resizing when resizing bound text container very fast beyond threshold ( #4804 )
...
* fix: stuck resizing when resizing bound text container very fast beyond threshold
* fix
* fix
3 years ago
Aakansha Doshi
0896892f8a
docs: release @excalidraw/excalidraw@0.11.0 🎉 ( #4799 )
...
* docs: release @excalidraw/excalidraw@0.11.0 🎉
* Add commit link for bad commits
3 years ago
Aakansha Doshi
7fe225ee99
fix: rename --color-primary-chubb to --color-primary-contrast-offset and fallback to primary color if not present ( #4803 )
...
* fix: fallback to primary color if --color-primary-chubb not present
* rename to --color-primary-contrast-offset
* use contarst-offset
Co-authored-by: David Luzar <luzar.david@gmail.com>
* Update src/packages/excalidraw/README_NEXT.md
* remove
* Update src/packages/excalidraw/README_NEXT.md
Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: David Luzar <luzar.david@gmail.com>
3 years ago
David Luzar
5c61613a2e
fix: don't bump element version when adding files data ( #4794 )
...
* fix: don't bump element version when adding files data
* fix lint
3 years ago
Aakansha Doshi
b2767924de
feat: show group/group and link action in mobile ( #4795 )
3 years ago
Aakansha Doshi
987526d1e5
docs: tweak documentation for release and add examples ( #4786 )
...
* docs: tweak documentation for release
* Add image in initial data
* Add image
* remove watermark and make export work
* update readme
3 years ago
Aakansha Doshi
14d1d39e8e
chore: variable naming :) ( #4782 )
3 years ago
Aakansha Doshi
69336b4832
build: rename release command to 'release package' ( #4783 )
3 years ago
dependabot[bot]
32b677fb8a
chore(deps): bump follow-redirects in /src/packages/excalidraw ( #4781 )
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Aakansha Doshi
a60860867c
build: release preview package when triggered via comment ( #4750 )
...
* build: autorelease preview on every commit during pull request
* add github workflow
* update readme
* update docs
* log changed files
* remove depth
* fetch pr head
* remove console.log
* log pr number
* pull pr number
* use pull request number in release version
* dummy
* dummy
* dummy
* fix
* dummy
* fix
* Add comment and set output as version
* dummy
* fix
* fix
* set output through js toolkit
* install
* dummy
* update
* fix
* fix
* typo
* update
* condition
* typo
* testing
* wrap conditions
* echo
* hope it works
* test
* test
* yay test again
* test updated
* remove reaction
* run if comment triggered
* fix
* fix
* Update script after testing in fork
* remove
* update changelog
* update readme
* update
* remove
* append pr number then commit hash
3 years ago
zsviczian
7a61196462
fix: mobile link click ( #4742 )
...
* add tolerance to redirect pointerDown_Up check
* Update src/components/App.tsx
Co-authored-by: David Luzar <luzar.david@gmail.com>
* Update App.tsx
* lint
* lint
* fix for ipad/mobile
* Update App.tsx
* Update App.tsx
* Update App.tsx
* testing if isIPad works on iOS15
* Update App.tsx
* Update keys.ts
* Update keys.ts
* lint
* test
* removed isTouchScreen
* isTouchScreen
* lint
* lint
* Update App.tsx
* tweak
Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: ad1992 <aakansha1216@gmail.com>
3 years ago
David Luzar
9653d676fe
fix: contextMenu timer & pointers not correctly reset on iOS ( #4765 )
3 years ago
Arun
0cdd0eebf1
feat: support background fill for freedraw shapes ( #4610 )
...
* feat: support background fill for freedraw shapes
* refactor & support fill style
* make filled freedraw shapes selectable from inside
* get hit test on solid freedraw shapes to somewhat work
* fix SVG export of unclosed freedraw shapes & improve types
* fix lint
* type tweaks
* reuse `hitTestCurveInside` for collision tests
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
ae8b1d8bf7
build: deploy excalidraw package example ( #4762 )
...
* build: deploy excalidraw package example
* deploy public
* install deps script
* new lines
3 years ago
Aakansha Doshi
92ffe8dda6
fix: use absolute coords when rendering link popover ( #4753 )
3 years ago
dependabot[bot]
4d9dbd5a45
chore(deps-dev): bump css-loader in /src/packages/excalidraw ( #4712 )
...
Bumps [css-loader](https://github.com/webpack-contrib/css-loader ) from 6.5.1 to 6.6.0.
- [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.6.0 )
---
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>
3 years ago
dependabot[bot]
c66cabaefd
chore(deps-dev): bump webpack-cli in /src/packages/excalidraw ( #4664 )
...
Bumps [webpack-cli](https://github.com/webpack/webpack-cli ) from 4.9.1 to 4.9.2.
- [Release notes](https://github.com/webpack/webpack-cli/releases )
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.1...webpack-cli@4.9.2 )
---
updated-dependencies:
- dependency-name: webpack-cli
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>
3 years ago
dependabot[bot]
e073128469
chore(deps-dev): bump @babel/core in /src/packages/utils ( #4754 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.16.7 to 7.17.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.17.2/packages/babel-core )
---
updated-dependencies:
- dependency-name: "@babel/core"
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>
3 years ago
dependabot[bot]
37c8b9c2ff
chore(deps-dev): bump webpack-dev-server in /src/packages/excalidraw ( #4713 )
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.7.3 to 4.7.4.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.7.3...v4.7.4 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
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>
3 years ago
dependabot[bot]
7c567408c5
chore(deps-dev): bump @babel/core in /src/packages/excalidraw ( #4707 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.16.7 to 7.17.0.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.17.0/packages/babel-core )
---
updated-dependencies:
- dependency-name: "@babel/core"
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>
3 years ago
dependabot[bot]
54612621aa
chore(deps-dev): bump terser-webpack-plugin in /src/packages/excalidraw ( #4709 )
...
Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin ) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases )
- [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.3.0...v5.3.1 )
---
updated-dependencies:
- dependency-name: terser-webpack-plugin
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>
3 years ago
Arun
d27b3bbebe
fix: changing font size when text is not selected or edited ( #4751 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
e4ffc9812e
docs: changelog tweaks ( #4749 )
3 years ago
David Luzar
a066317d3c
feat: add `onLinkOpen` component prop ( #4694 )
...
Co-authored-by: ad1992 <aakansha1216@gmail.com>
3 years ago
David Luzar
050bc1ce2b
feat: keep selected tool on canvas reset ( #4728 )
3 years ago
David Luzar
5007df6522
fix: disable contextmenu on non-secondary `pen` events or `touch` ( #4675 )
3 years ago
zsviczian
d450c36581
fix: mobile context menu won't show on long press ( #4741 )
...
* scribble fix only if not Android
* Update src/components/App.tsx
Co-authored-by: David Luzar <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
66c92fc65a
feat: Make whole element clickable in view mode when it has hyperlink ( #4735 )
...
* feat: Make whole element clickable in view mode when it has hyperlink
* redirect to link if pointerup and pointer down is exactly same point
* don't make element clickable in mobile
3 years ago
David Luzar
5f1cd4591a
fix: do not open links twice ( #4738 )
3 years ago
Aakansha Doshi
9be6243873
fix: make link icon clickable in mobile ( #4736 )
3 years ago
David Luzar
c3f6d6d344
test: revert node v16 requirement for tests ( #4737 )
3 years ago
David Luzar
339636caab
feat: allow any precision when zooming ( #4730 )
3 years ago
David Luzar
08115ef311
fix: Apple Pen missing strokes ( #4705 )
3 years ago
Excalidraw Bot
e68abdbab4
chore: Update translations from Crowdin ( #4590 )
3 years ago
David Luzar
8aff076782
feat: throttle `pointermove` events per framerate ( #4727 )
3 years ago
zsviczian
96de887cc8
fix: freedraw slow movement jittery lines ( #4726 )
...
Co-authored-by: David Luzar <luzar.david@gmail.com>
3 years ago
zsviczian
98ea46664c
fix: Disable three finger pinch zoom in penMode ( #4725 )
3 years ago
Aakansha Doshi
00e30ca0e4
fix: remove click listener for opening popup ( #4700 )
...
* fix: remove click listener for oening popup
* fix
3 years ago
David Luzar
de6371aac4
fix: link popup position not accounting for offsets ( #4695 )
3 years ago
Aakansha Doshi
f47ddb988f
feat: Support hyperlinks 🔥 ( #4620 )
...
* feat: Support hypelinks
* dont show edit when link not present
* auto submit on blur
* Add link button in sidebar and do it react way
* add key to hyperlink to remount when element selection changes
* autofocus input
* remove click handler and use pointerup/down to show /hide popup
* add keydown and support enter/escape to submit
* show extrrnal link icon when element has link
* use icons and open link in new tab
* dnt submit unless link updated
* renamed ffiles
* remove unnecessary changes
* update snap
* hide link popup once user starts interacting with element and show again only if clicked outside and clicked on element again
* render link icon outside the element
* fix hit testing
* rewrite implementation to render hyperlinks outside elements and hide when element selected
* remove
* remove
* tweak icon position and size
* rotate link icon when element rotated, handle zooming and render exactly where ne resize handle is rendered
* no need to create a new reference anymore for element when link added/updated
* rotate the link image as well when rotating element
* calculate hitbox of link icon and show pointer when hovering over link icon
* open link when clicked on link icon
* show tooltip when hovering over link icon
* show link action only when single element selected
* support other protocols
* add shortcut cmd/ctrl+k to edit/update link
* don't hide popup after submit
* renderes decreased woo
* Add context mneu label to add/edit link
* fix tests
* remove tick and show trash when in edit mode
* show edit view when element contains link
* fix snap
* horizontally center the hyperlink container with respect to elemnt
* fix padding
* remove checkcircle
* show popup on hover of selected element and dismiss when outside hitbox
* check if element has link before setting popup state
* move logic of auto hide to hyperlink and dnt hide when editing
* hide popover when drag/resize/rotate
* unmount during autohide
* autohide after 500ms
* fix regression
* prevent cmd/ctrl+k when inside link editor
* submit when input not updated
* allow custom urls
* fix centering of popup when zoomed
* fix hitbox during zoom
* fix
* tweak link normalization
* touch hyperlink tooltip DOM only if needed
* consider 0 if no offsetY
* reduce hitbox of link icon and make sure link icon doesn't show on top of higher z-index elements
* show link tooltip only if element has higher z-index
* dnt show hyperlink popup when selection changes from element with link to element with no link and also hide popover when element type changes from selection to something else
* lint: EOL
* fix link icon tooltip positioning
* open the link only when last pointer down and last pointer up hit the link hitbox
* render tooltip after 300ms delay
* ensure link popup and editor input have same height
* wip: cache the link icon canvas
* fix the image quality after caching using device pixel ratio yay
* some cleanup
* remove unused selectedElementIds from renderConfig
* Update src/renderer/renderElement.ts
* fix `opener` vulnerability
* tweak styling
* decrease padding
* open local links in the same tab
* fix caching
* code style refactor
* remove unnecessary save & restore
* show link shortcut in help dialog
* submit on cmd/ctrl+k
* merge state props
* Add title for link
* update editview if prop changes
* tweak link action logic
* make `Hyperlink` compo editor state fully controlled
* dont show popup when context menu open
* show in contextMenu only for single selection & change pos
* set button `selected` state
* set contextMenuOpen on pointerdown
* set contextMenyOpen to false when action triggered
* don't render link icons on export
* fix tests
* fix buttons wrap
* move focus states to input top-level rule
* fix elements sharing `Hyperlink` state
* fix hitbox for link icon in case of rect
* Early return if hitting link icon
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
zsviczian
59cbf5fde5
fix: penMode darkmode style ( #4692 )
3 years ago
zsviczian
4486fbc2c6
feat: Added penMode for palm rejection ( #4657 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
edfbac9d7d
feat: support unbinding bound text ( #4686 )
...
* feat: support unbinding text
* fix unbound text
* move the unbind option next to group action
* use boundTextElement.id when unbinding
* update original text so it takes same bounding box when unbind
* Add spec
* recompute measurements when unbinding
3 years ago
rulikrulit
719ae7b72f
fix: reset unmounted state for the component ( #4682 )
...
* Reset unmounted state for the component
* update changelog
Co-authored-by: ad1992 <aakansha1216@gmail.com>
3 years ago
David Luzar
631a228ca1
fix: typing `_+` in wysiwyg not working ( #4681 )
3 years ago
David Luzar
4b5270ab12
fix: keyboard-zooming in wysiwyg should zoom canvas ( #4676 )
3 years ago
dwelle
dcee594b66
remove forgotten debug statements
3 years ago
David Luzar
79d323fab1
refactor: simplify zoom by removing `zoom.translation` ( #4477 )
3 years ago
zsviczian
e4edda4555
fix: sceneCoordsToViewportCoords, jumping text when there is an offset ( #4413 ) ( #4630 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: thxnder <tswwe@qq.com>
3 years ago
Aakansha Doshi
ca89d47d4c
feat: Sync local storage state across tabs when out of sync ( #4545 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
18c526d877
feat: support contextMenuLabel to be of function type to support dynmaic labels ( #4654 )
3 years ago
dependabot[bot]
cbc6bd1ad8
chore(deps): bump nanoid in /src/packages/excalidraw ( #4628 )
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.23 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.23...3.2.0 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
dependabot[bot]
83d9282dbf
chore(deps): bump nanoid from 3.1.23 to 3.2.0 in /src/packages/utils ( #4629 )
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.23 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.23...3.2.0 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Aakansha Doshi
abff780983
perf: cache approx line height in textwysiwg ( #4651 )
3 years ago
zsviczian
c009e03c8e
fix: Right-click object menu displays partially off-screen ( #4572 ) ( #4631 )
3 years ago
Aakansha Doshi
24bf4cb5fb
fix: support collaboration in bound text ( #4573 )
...
* fix: support collaboration in bounded text
* align implementation irrespective of collab/submit
* don't wrap when submitted
* fix
* tests: exit editor via ESCAPE instead to remove async hacks
* simplify and remove dead comment
* remove mutating coords in submit since its taken care in updateWysiwygStyle
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
dependabot[bot]
0850ab0dd0
chore(deps-dev): bump @babel/plugin-transform-runtime ( #4577 )
...
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime ) from 7.16.4 to 7.16.8.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.8/packages/babel-plugin-transform-runtime )
---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
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>
3 years ago
dependabot[bot]
a7473169ba
chore(deps-dev): bump webpack-dev-server in /src/packages/excalidraw ( #4595 )
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.7.2 to 4.7.3.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.7.2...v4.7.3 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
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>
3 years ago
dependabot[bot]
f6325b1e5e
chore(deps-dev): bump webpack in /src/packages/utils ( #4602 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.65.0 to 5.66.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.65.0...v5.66.0 )
---
updated-dependencies:
- dependency-name: webpack
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>
3 years ago
dependabot[bot]
d9cc7d1033
chore(deps): bump follow-redirects from 1.14.6 to 1.14.7 in /src/packages/excalidraw ( #4609 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Excalidraw Bot
9373961857
chore: Update translations from Crowdin ( #4322 )
...
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
David Luzar
1fd2fe56ee
fix: cmd/ctrl native browser behavior blocked in inputs ( #4589 )
...
* fix: cmd/ctrl native browser behavior blocked in inputs
* add basic test for fontSize increase/decrease via keyboard
* add tests for fontSize resizing via keyboard outside wysiwyg
* Update src/element/textWysiwyg.test.tsx
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* Update src/tests/resize.test.tsx
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* Update src/tests/resize.test.tsx
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
3 years ago
Aakansha Doshi
dba71e358d
fix: use cached width when calculating min width during resize ( #4585 )
3 years ago
David Luzar
1ef287027b
fix: support collaboration in bounded text ( #4580 )
3 years ago
David Luzar
a51ed9ced6
feat: support decreasing/increasing `fontSize` via keyboard ( #4553 )
...
Co-authored-by: david <dw@dw.local>
3 years ago
dependabot[bot]
4501d6d630
chore(deps-dev): bump @babel/preset-env in /src/packages/utils ( #4510 )
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.16.4 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-preset-env )
---
updated-dependencies:
- dependency-name: "@babel/preset-env"
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>
3 years ago
Aakansha Doshi
50bd5fbae1
fix: don't mutate the bounded text if not updated when submitted ( #4543 )
...
* fix: don't mutate the bounded text if not updated when submitted
* dont update text for bounded text unless submitted
* add specs
* use node 16
* fix
* Update text when editing and cache prev text
* update prev text when props updated
* remove only
* type properly and remove unnecessary type checks
* cache original text and compare with editor value to fix alignement issue after editing and add specs
* naming tweak
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
dependabot[bot]
62bead66d7
chore(deps-dev): bump typescript in /src/packages/excalidraw ( #4432 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.5.3 to 4.5.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.3...v4.5.4 )
---
updated-dependencies:
- dependency-name: typescript
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>
3 years ago
dependabot[bot]
b3073984b3
chore(deps-dev): bump @babel/core in /src/packages/excalidraw ( #4513 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.16.0 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-core )
---
updated-dependencies:
- dependency-name: "@babel/core"
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>
3 years ago
dependabot[bot]
3c9ee13979
chore(deps-dev): bump autoprefixer in /src/packages/excalidraw ( #4554 )
...
Bumps [autoprefixer](https://github.com/postcss/autoprefixer ) from 10.4.0 to 10.4.2.
- [Release notes](https://github.com/postcss/autoprefixer/releases )
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.0...10.4.2 )
---
updated-dependencies:
- dependency-name: autoprefixer
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>
3 years ago
dependabot[bot]
228c8136cf
chore(deps-dev): bump mini-css-extract-plugin ( #4555 )
...
Bumps [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin ) from 2.4.5 to 2.4.6.
- [Release notes](https://github.com/webpack-contrib/mini-css-extract-plugin/releases )
- [Changelog](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.4.5...v2.4.6 )
---
updated-dependencies:
- dependency-name: mini-css-extract-plugin
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>
3 years ago
Arun
0a89c4b0c8
fix: prevent canvas drag while editing text ( #4552 )
3 years ago
Aakansha Doshi
c03845bac3
fix: support shift+P for freedraw ( #4550 )
...
* fix: support shift+P for freedraw
* newline
* show shift+p first
3 years ago
David Luzar
d5a6014076
fix: prefer spreadsheet data over image ( #4533 )
3 years ago
Jérémy Mouzin
74861b1398
Fix shortcut for Draw tool in help dialog, it's not SHIFT+P anymore but just X ( #4548 )
3 years ago
Milos Vetesnik
ac71ee7278
feat: link to new LP for excalidraw plus ( #4549 )
3 years ago
dependabot[bot]
9088df8f5a
chore(deps-dev): bump @babel/preset-typescript in /src/packages/utils ( #4526 )
...
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript ) from 7.16.5 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-preset-typescript )
---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
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>
3 years ago
dependabot[bot]
c5fe0cd446
chore(deps-dev): bump webpack-dev-server in /src/packages/excalidraw ( #4525 )
...
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server ) from 4.7.1 to 4.7.2.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases )
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v4.7.1...v4.7.2 )
---
updated-dependencies:
- dependency-name: webpack-dev-server
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>
3 years ago
dependabot[bot]
9f8783c2dd
chore(deps-dev): bump @babel/plugin-transform-typescript ( #4527 )
...
Bumps [@babel/plugin-transform-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-typescript ) from 7.16.1 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-plugin-transform-typescript )
---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-typescript"
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>
3 years ago
Aakansha Doshi
b475412199
feat: support updating library in updateScene API ( #4546 )
...
* feat: support updating library in updateScene API
* fix
* update docs
* Update src/packages/excalidraw/CHANGELOG.md
3 years ago
Aakansha Doshi
5f1616f2c5
fix: show text properties button states correctly for bounded text ( #4542 )
...
* fix: show text properties button states correctly for bounded text
* rename
3 years ago
Aakansha Doshi
cec92c1d17
feat: update stroke color of bounded text along with container ( #4541 )
3 years ago
dependabot[bot]
5f476e09d4
chore(deps-dev): bump @babel/core in /src/packages/utils ( #4528 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.16.5 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-core )
---
updated-dependencies:
- dependency-name: "@babel/core"
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>
3 years ago
Aakansha Doshi
a2e8806f57
fix: rotate bounded text when container is rotated before typing ( #4535 )
3 years ago
Aakansha Doshi
b71e702991
fix: undo should work when selecting bounded textr ( #4537 )
3 years ago
Aakansha Doshi
5c67329be6
fix: Reduce padding to 5px for bounded text ( #4530 )
...
* fix: Reduce padding to 5px
* reduce width by 50 to fix tests
* Push the word if appending space exceeds max width when breaking words
* fix spec
3 years ago
David Luzar
28546fbb55
fix: bound text doesn't inherit container ( #4521 )
3 years ago
David Luzar
b621d065de
feat: hints and shortcuts help around deep selection ( #4502 )
3 years ago
dependabot[bot]
96580c92a5
chore(deps-dev): bump @babel/plugin-transform-arrow-functions ( #4515 )
...
Bumps [@babel/plugin-transform-arrow-functions](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-arrow-functions ) from 7.16.5 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-plugin-transform-arrow-functions )
---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-arrow-functions"
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>
3 years ago
dependabot[bot]
4be701416a
chore(deps-dev): bump @babel/preset-react in /src/packages/excalidraw ( #4519 )
...
Bumps [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react ) from 7.16.0 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-preset-react )
---
updated-dependencies:
- dependency-name: "@babel/preset-react"
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>
3 years ago
dependabot[bot]
1acb1e33f1
chore(deps-dev): bump @babel/preset-env in /src/packages/excalidraw ( #4516 )
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.16.4 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-preset-env )
---
updated-dependencies:
- dependency-name: "@babel/preset-env"
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>
3 years ago
dependabot[bot]
986e1e40d3
chore(deps-dev): bump @babel/preset-typescript ( #4514 )
...
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript ) from 7.16.0 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-preset-typescript )
---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
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>
3 years ago
dependabot[bot]
fab4a0e060
chore(deps-dev): bump @babel/plugin-transform-runtime ( #4508 )
...
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime ) from 7.16.4 to 7.16.7.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.7/packages/babel-plugin-transform-runtime )
---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
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>
3 years ago
dependabot[bot]
c50f81b829
chore(deps-dev): bump @babel/plugin-transform-arrow-functions ( #4426 )
...
Bumps [@babel/plugin-transform-arrow-functions](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-arrow-functions ) from 7.16.0 to 7.16.5.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.5/packages/babel-plugin-transform-arrow-functions )
---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-arrow-functions"
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>
3 years ago
dependabot[bot]
b122c8c4eb
chore(deps-dev): bump @babel/plugin-transform-async-to-generator ( #4437 )
...
Bumps [@babel/plugin-transform-async-to-generator](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-async-to-generator ) from 7.16.0 to 7.16.5.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.5/packages/babel-plugin-transform-async-to-generator )
---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-async-to-generator"
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>
3 years ago
dependabot[bot]
9a7216fe94
chore(deps-dev): bump terser-webpack-plugin in /src/packages/excalidraw ( #4423 )
...
Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin ) from 5.2.5 to 5.3.0.
- [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases )
- [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.2.5...v5.3.0 )
---
updated-dependencies:
- dependency-name: terser-webpack-plugin
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>
3 years ago
dependabot[bot]
8eee749076
chore(deps-dev): bump @babel/preset-typescript in /src/packages/utils ( #4430 )
...
Bumps [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript ) from 7.16.0 to 7.16.5.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.5/packages/babel-preset-typescript )
---
updated-dependencies:
- dependency-name: "@babel/preset-typescript"
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>
3 years ago
dependabot[bot]
2158ad0656
chore(deps-dev): bump @babel/core in /src/packages/utils ( #4435 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.16.0 to 7.16.5.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.16.5/packages/babel-core )
---
updated-dependencies:
- dependency-name: "@babel/core"
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>
3 years ago
zsviczian
477cce2ed6
fix: Text wrapping with grid ( #4505 ) ( #4506 )
3 years ago
Aakansha Doshi
dd8e465304
feat: Support updating text properties by clicking on container ( #4499 )
3 years ago
Aakansha Doshi
11396a21de
fix: check if process is defined before using so it works in browser ( #4497 )
...
* refactor: use isTestEnv() utils where applicable
* check if process is defined
3 years ago
Aakansha Doshi
38236bc5e0
tests: Add tests for wrapText util ( #4495 )
3 years ago
Aakansha Doshi
63ce5b82d7
fix: pending review fixes for sticky notes ( #4493 )
3 years ago
David Luzar
bae0e985b2
fix: prevent browser from scrolling when panning ( #4489 )
3 years ago
Aakansha Doshi
04f852a40a
build: Added example folder for testing @excalidraw/excalidraw in local ( #4488 )
...
* build: Added example folder for testing @excalidraw/excalidraw in local
* remove unnecessary files
* use scss
* update docs
* newline
* remove index
* remove yarn
* use the bundled excalidraw.development.js for better testing and font will also be available
* remove src folder from example
3 years ago
Aakansha Doshi
f463c047c0
fix: pasted elements except binded text once paste action is complete ( #4472 )
3 years ago
Aakansha Doshi
1fd347cade
fix: don't select binded text when ungrouping ( #4470 )
3 years ago
Aakansha Doshi
ef62390841
fix: set height correctly when text properties updated while editing in container until first submit ( #4469 )
...
* fix: set height correctly when text properties updated while editing in container
* rename PADDING to BOUND_TEXT_PADDING
3 years ago
Aakansha Doshi
bf2bca221e
fix: align and distribute binded text in container and cleanup ( #4468 )
3 years ago
Aakansha Doshi
d0733b1960
fix: move binded text when moving container using keyboard ( #4466 )
3 years ago
Aakansha Doshi
64c2d76cfa
fix: support dragging binded text in container selected in a group ( #4462 )
...
* fix: support moving binded text when container selected via group
* update coords of bounded text only when element doesn't belong to any group or element in group is selected
* dnt drag binded text when nested group selected
* Update src/element/dragElements.ts
Co-authored-by: David Luzar <luzar.david@gmail.com>
Co-authored-by: David Luzar <luzar.david@gmail.com>
3 years ago
zsviczian
c76784b774
fix: Scope drag and drop events to Excalidraw container to prevent overriding the host drag and drop events ( #4445 )
...
* cross-env
* reverting lib
https://github.com/excalidraw/excalidraw/issues/4282
* Revert "reverting lib"
This reverts commit 840726806a
.
* Update package.json
* Update App.tsx
* Update App.tsx
* lint
* updated changelog
* Update src/packages/excalidraw/CHANGELOG.md
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
* Update src/packages/excalidraw/CHANGELOG.md
* Move fixes above build header
* Update src/packages/excalidraw/CHANGELOG.md
* lint
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
Co-authored-by: David Luzar <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
25e54e5999
fix: vertically align single line when deleting text in bounded container ( #4460 )
3 years ago
Aakansha Doshi
55b7a7d554
fix: update height correctly when updating text properties in binded text ( #4459 )
...
* fix: update height correctly when updating text properties in binded text
* read height from editor style so its accurate
* fix
3 years ago
David Luzar
c1c37a6ee7
fix: align library item previews to center ( #4447 )
3 years ago
Aakansha Doshi
25b529f519
fix: vertically center align text when text deleted ( #4457 )
3 years ago
Aakansha Doshi
8e6a747873
fix: vertically center the first line as user starts typing in container ( #4454 )
...
* fix: vertically center the first line as user starts typing in container
* fix
3 years ago
Aakansha Doshi
089b05db1b
fix: switch cursor to center of container when adding text when dimensions are too small ( #4452 )
3 years ago
Aakansha Doshi
081e097cef
fix: vertically center align the bounded text correctly when zoomed ( #4444 )
...
* fix: vertically center align the bounded text correctly when zoomed
* dnt add offsets since its calculated correctly
* set editor max width better when offsets present
* Update src/element/textWysiwyg.tsx
* const
* revert
3 years ago
Aakansha Doshi
8b5657e1ce
fix: support updating stroke color for text by typing in color picker input ( #4415 )
...
* fix: support updating stroke color for text by typing in color picker input
* restore focus when clicked on same property unless its color picker input and submit text on color picker blur
* focus editor on color picker blur
* don't focus text editor when color picker is active
3 years ago
Aakansha Doshi
8b2b03347c
fix: bound text not atomic with container when changing z-index ( #4414 )
...
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
Aakansha Doshi
c2a8712593
fix: update viewport coords correctly when editing text ( #4416 )
3 years ago
Aakansha Doshi
ff1d7728a0
fix: use word-break break-word only and update text editor height only when binded to container ( #4410 )
3 years ago
Aakansha Doshi
98b5c37e45
feat: bind text to shapes when pressing enter and support sticky notes 🎉 ( #4343 )
...
* feat: Word wrap inside rect and increase height when size exceeded
* fixes for auto increase in height
* fix height
* respect newlines when wrapping text
* shift text area when height increases beyond mid rect height until it reaches to the top
* select bound text if present when rect selected
* mutate y coord after text submit
* Add padding of 30px and update dimensions acordingly
* Don't allow selecting bound text element directly
* support deletion of bound text element when rect deleted
* trim text
* Support autoshrink and improve algo
* calculate approx line height instead of hardcoding
* use textContainerId instead of storing textContainer element itself
* rename boundTextElement -> boundTextElementId
* fix text properties not getting reflected after edit inside rect
* Support resizing
* remove ts ignore
* increase height of container when text height increases while resizing
* use original text when editing/resizing so it adjusts based on original text
* fix tests
* add util isRectangleElement
* use isTextElement util everywhere
* disable selecting text inside rect when selectAll
* Bind text to circle and diamond as well
* fix tests
* vertically center align the text always
* better vertical align
* Disable binding arrows for text inside shapes
* set min width for text container when text is binded to container
* update dimensions of container if its less than min width/ min height
* Allow selecting of text container for transparent containers when clicked inside
* fix test
* preserve whitespaces between long word exceeding width and next word
Use word break instead of whitespace no wrap for better readability and support safari
* Perf improvements for measuring text width and resizing
* Use canvas measureText instead of our algo. This has reduced the perf ~ 10 times
* Rewrite wrapText algo to break in words appropriately and for longer words
calculate the char width in order unless max width reached. This makes the
the number of runs linear (max text length times) which was earlier
textLength * textLength-1/2 as I was slicing the chars from end until max width reached for each run
* Add a util to calculate getApproxCharsToFitInWidth to calculate min chars to fit in a line
* use console.info so eslint doesnt warn :p
* cache char width and don't call resize unless min width exceeded
* update line height and height correctly when text properties inside container updated
* improve vertical centering when text properties updated, not yet perfect though
* when double clicked inside a conatiner take the cursor to end of text same as what happens when enter is pressed
* Add hint when container selected
* Select container when escape key is pressed after submitting text
* fix copy/paste when using copy/paste action
* fix copy when dragged with alt pressed
* fix export to svg/png
* fix add to library
* Fix copy as png/svg
* Don't allow selecting text when using selection tool and support resizing when multiple elements include ones with binded text selectec
* fix rotation jump
* moove all text utils to textElement.ts
* resize text element only after container resized so that width doesnt change when editing
* insert the remaining chars for long words once it goes beyond line
* fix typo, use string for character type
* renaming
* fix bugs in word wrap algo
* make grouping work
* set boundTextElementId only when text present else unset it
* rename textContainerId to containerId
* fix
* fix snap
* use originalText in redrawTextBoundingBox so height is calculated properly and center align works after props updated
* use boundElementIds and also support binding text in images 🎉
* fix the sw/se ends when resizing from ne/nw
* fix y coord when resizing from north
* bind when enter is pressed, double click/text tool willl edit the binded text if present else create a new text
* bind when clicked on center of container
* use pre-wrap instead of normal so it works in ff
* use container boundTextElement when container present and trying to edit text
* review fixes
* make getBoundTextElementId type safe and check for existence when using this function
* fix
* don't duplicate boundElementIds when text submitted
* only remove last trailing space if present which we have added when joining words
* set width correctly when resizing to fix alignment issues
* make duplication work using cmd/ctrl+d
* set X coord correctly during resize
* don't allow resize to negative dimensions when text is bounded to container
* fix, check last char is space
* remove logs
* make sure text editor doesn't go beyond viewport and set container dimensions in case it overflows
* add a util isTextBindableContainer to check if the container could bind text
3 years ago
David Luzar
7db63bd397
feat: redesign toolbar & tweaks ( #4387 )
3 years ago
David Luzar
390da3fd0f
feat: change `boundElementIds` → `boundElements` ( #4404 )
3 years ago
David Luzar
104664cb9e
feat: support selecting multiple points when editing line ( #4373 )
3 years ago
dependabot[bot]
c822055ec8
chore(deps-dev): bump sass-loader in /src/packages/utils ( #4390 )
...
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader ) from 12.3.0 to 12.4.0.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases )
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v12.3.0...v12.4.0 )
---
updated-dependencies:
- dependency-name: sass-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>
3 years ago
dependabot[bot]
e15d73d94c
chore(deps-dev): bump typescript in /src/packages/excalidraw ( #4392 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.2...v4.5.3 )
---
updated-dependencies:
- dependency-name: typescript
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>
3 years ago
dependabot[bot]
80ee097b85
chore(deps-dev): bump webpack in /src/packages/utils ( #4391 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.64.4 to 5.65.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.64.4...v5.65.0 )
---
updated-dependencies:
- dependency-name: webpack
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>
3 years ago
dependabot[bot]
10048b877b
chore(deps-dev): bump webpack in /src/packages/excalidraw ( #4389 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.64.4 to 5.65.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.64.4...v5.65.0 )
---
updated-dependencies:
- dependency-name: webpack
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>
3 years ago
dependabot[bot]
5dd5862bb9
chore(deps-dev): bump sass-loader in /src/packages/excalidraw ( #4393 )
...
Bumps [sass-loader](https://github.com/webpack-contrib/sass-loader ) from 12.3.0 to 12.4.0.
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases )
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v12.3.0...v12.4.0 )
---
updated-dependencies:
- dependency-name: sass-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>
3 years ago
Preet
79989fedda
chore: bump roughjs version ( #4386 )
...
Co-authored-by: dwelle <luzar.david@gmail.com>
3 years ago
David Luzar
ed8fb40b63
fix: make firebase config parsing not fail on undefined env ( #4381 )
3 years ago
Aakansha Doshi
6e391728fe
build: remove file loader and migrate to asset modules webpack for font assets ( #4380 )
...
* build: use type:javascript/auto so font file assets aren't duplicated
* update changelog
* remove file loader and use asset modules
* fix
3 years ago