Aakansha Doshi
a2e8806f57
fix: rotate bounded text when container is rotated before typing ( #4535 )
2022-01-04 18:03:24 +05:30
Aakansha Doshi
b71e702991
fix: undo should work when selecting bounded textr ( #4537 )
2022-01-04 18:02:16 +05:30
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
2022-01-03 17:59:26 +05:30
David Luzar
28546fbb55
fix: bound text doesn't inherit container ( #4521 )
2021-12-31 14:55:02 +01:00
dependabot[bot]
b0cccbb9e8
chore(deps): bump @tldraw/vec from 1.2.9 to 1.4.0 ( #4517 )
...
Bumps [@tldraw/vec](https://github.com/tldraw/tldraw ) from 1.2.9 to 1.4.0.
- [Release notes](https://github.com/tldraw/tldraw/releases )
- [Commits](https://github.com/tldraw/tldraw/compare/v1.2.9...v1.4.0 )
---
updated-dependencies:
- dependency-name: "@tldraw/vec"
dependency-type: direct:production
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>
2021-12-31 14:44:44 +02:00
David Luzar
b621d065de
feat: hints and shortcuts help around deep selection ( #4502 )
2021-12-31 11:00:20 +01:00
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>
2021-12-31 12:42:29 +05:30
dependabot[bot]
975441549b
chore(deps): bump sass from 1.43.5 to 1.45.2 ( #4518 )
...
Bumps [sass](https://github.com/sass/dart-sass ) from 1.43.5 to 1.45.2.
- [Release notes](https://github.com/sass/dart-sass/releases )
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sass/dart-sass/compare/1.43.5...1.45.2 )
---
updated-dependencies:
- dependency-name: sass
dependency-type: direct:production
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>
2021-12-31 12:42:04 +05:30
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>
2021-12-31 12:41:31 +05:30
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>
2021-12-31 01:11:22 +00:00
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>
2021-12-31 01:00:57 +00:00
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>
2021-12-31 02:59:42 +02:00
dependabot[bot]
b265ebf88f
chore(deps): bump @tldraw/vec from 1.1.5 to 1.2.9 ( #4479 )
...
Bumps [@tldraw/vec](https://github.com/tldraw/tldraw ) from 1.1.5 to 1.2.9.
- [Release notes](https://github.com/tldraw/tldraw/releases )
- [Commits](https://github.com/tldraw/tldraw/compare/v1.1.5...v1.2.9 )
---
updated-dependencies:
- dependency-name: "@tldraw/vec"
dependency-type: direct:production
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>
2021-12-31 02:52:36 +02:00
dependabot[bot]
351845019e
chore(deps-dev): bump @types/pako from 1.0.2 to 1.0.3 ( #4481 )
...
Bumps [@types/pako](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/pako ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/pako )
---
updated-dependencies:
- dependency-name: "@types/pako"
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>
2021-12-31 02:51:20 +02:00
dependabot[bot]
c0fcce6f27
chore(deps): bump @testing-library/jest-dom from 5.15.1 to 5.16.1 ( #4395 )
...
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom ) from 5.15.1 to 5.16.1.
- [Release notes](https://github.com/testing-library/jest-dom/releases )
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md )
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.15.1...v5.16.1 )
---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
dependency-type: direct:production
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>
2021-12-31 02:50:30 +02:00
dependabot[bot]
b093d2d2b6
chore(deps-dev): bump prettier from 2.5.0 to 2.5.1 ( #4360 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/2.5.0...2.5.1 )
---
updated-dependencies:
- dependency-name: prettier
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>
2021-12-31 02:49:43 +02:00
dependabot[bot]
69548c5502
chore(deps): bump @types/react from 17.0.37 to 17.0.38 ( #4483 )
...
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ) from 17.0.37 to 17.0.38.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
---
updated-dependencies:
- dependency-name: "@types/react"
dependency-type: direct:production
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>
2021-12-31 02:49:15 +02:00
dependabot[bot]
6ca0afa6e5
chore(deps-dev): bump @types/chai from 4.2.22 to 4.3.0 ( #4394 )
...
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai ) from 4.2.22 to 4.3.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai )
---
updated-dependencies:
- dependency-name: "@types/chai"
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>
2021-12-31 02:48:59 +02:00
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>
2021-12-31 02:47:42 +02:00
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>
2021-12-31 02:47:16 +02:00
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>
2021-12-31 02:46:52 +02:00
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>
2021-12-31 02:46:36 +02:00
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>
2021-12-31 02:45:49 +02:00
dependabot[bot]
74c3fea7f5
chore(deps): bump typescript from 4.5.2 to 4.5.4 ( #4442 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.5.2 to 4.5.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.2...v4.5.4 )
---
updated-dependencies:
- dependency-name: typescript
dependency-type: direct:production
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>
2021-12-31 02:45:31 +02:00
dependabot[bot]
5e456e6d05
chore(deps-dev): bump lint-staged from 12.1.2 to 12.1.4 ( #4478 )
...
Bumps [lint-staged](https://github.com/okonet/lint-staged ) from 12.1.2 to 12.1.4.
- [Release notes](https://github.com/okonet/lint-staged/releases )
- [Commits](https://github.com/okonet/lint-staged/compare/v12.1.2...v12.1.4 )
---
updated-dependencies:
- dependency-name: lint-staged
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>
2021-12-31 02:45:09 +02:00
zsviczian
477cce2ed6
fix: Text wrapping with grid ( #4505 ) ( #4506 )
2021-12-30 19:10:31 +01:00
Aakansha Doshi
dd8e465304
feat: Support updating text properties by clicking on container ( #4499 )
2021-12-29 16:49:52 +05:30
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
2021-12-28 17:17:41 +05:30
Aakansha Doshi
38236bc5e0
tests: Add tests for wrapText util ( #4495 )
2021-12-28 16:52:57 +05:30
Aakansha Doshi
63ce5b82d7
fix: pending review fixes for sticky notes ( #4493 )
2021-12-28 16:24:44 +05:30
David Luzar
bae0e985b2
fix: prevent browser from scrolling when panning ( #4489 )
2021-12-27 14:18:11 +01:00
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
2021-12-27 18:01:33 +05:30
Aakansha Doshi
f463c047c0
fix: pasted elements except binded text once paste action is complete ( #4472 )
2021-12-23 22:07:16 +05:30
Aakansha Doshi
1fd347cade
fix: don't select binded text when ungrouping ( #4470 )
2021-12-23 21:36:29 +05:30
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
2021-12-23 17:02:35 +05:30
Aakansha Doshi
bf2bca221e
fix: align and distribute binded text in container and cleanup ( #4468 )
2021-12-23 17:02:13 +05:30
Aakansha Doshi
d0733b1960
fix: move binded text when moving container using keyboard ( #4466 )
2021-12-23 01:47:14 +05:30
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>
2021-12-22 19:16:49 +05:30
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 840726806a55ac53704024619a498abf767c60cb.
* 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>
2021-12-22 18:55:34 +05:30
Aakansha Doshi
25e54e5999
fix: vertically align single line when deleting text in bounded container ( #4460 )
2021-12-22 15:32:21 +05:30
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
2021-12-22 12:08:51 +05:30
David Luzar
c1c37a6ee7
fix: align library item previews to center ( #4447 )
2021-12-21 19:59:36 +01:00
Aakansha Doshi
25b529f519
fix: vertically center align text when text deleted ( #4457 )
2021-12-22 00:07:55 +05:30
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
2021-12-21 23:08:36 +05:30
Aakansha Doshi
089b05db1b
fix: switch cursor to center of container when adding text when dimensions are too small ( #4452 )
2021-12-21 19:00:01 +05:30
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
2021-12-21 17:13:11 +05:30
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
2021-12-17 20:15:22 +05:30
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>
2021-12-17 13:10:37 +00:00
Aakansha Doshi
c2a8712593
fix: update viewport coords correctly when editing text ( #4416 )
2021-12-17 11:38:18 +01:00
Aakansha Doshi
ff1d7728a0
fix: use word-break break-word only and update text editor height only when binded to container ( #4410 )
2021-12-17 15:24:23 +05:30