3044 Commits

Author SHA1 Message Date
zsviczian
b82a0749b1 fixed maxZoom 2023-04-04 19:14:59 +02:00
zsviczian
a772362599 more detailed debug 2023-04-04 18:55:40 +02:00
zsviczian
3f11ca0a44 debug 2023-04-04 18:47:35 +02:00
zsviczian
808e4711f9 debug total render size 2023-04-04 18:42:34 +02:00
zsviczian
a26e8bade8
Update renderElement.ts 2023-04-04 16:50:48 +02:00
zsviczian
fc7135c5d1
Update renderElement.ts 2023-04-04 16:38:26 +02:00
zsviczian
f017a60101
Update renderElement.ts 2023-04-04 16:17:08 +02:00
zsviczian
17f9f64eda
Update renderElement.ts 2023-04-04 16:12:05 +02:00
zsviczian
619e4061f5
cappedElementCanvasSize 2023-04-04 16:01:47 +02:00
zsviczian
028ad1ee81
Update utils.ts 2023-04-04 13:26:53 +02:00
zsviczian
09a05a4a1c
Update utils.ts 2023-04-04 13:20:11 +02:00
zsviczian
c4738b31fb
Update utils.ts 2023-04-04 13:18:51 +02:00
zsviczian
87e6638e9e
Update utils.ts 2023-04-04 13:16:24 +02:00
zsviczian
0a6d41ecf9
watchdog 2023-04-04 13:15:35 +02:00
zsviczian
11109fcc62
Update renderScene.ts 2023-04-04 10:49:48 +02:00
zsviczian
c7346e3a77 always throttle render 2023-04-03 22:24:18 +02:00
zsviczian
fd030de669 debug 2023-04-03 21:45:38 +02:00
zsviczian
f77975cee5 debug 2023-04-03 21:41:48 +02:00
zsviczian
f994e5d71d debug 2023-04-03 21:36:01 +02:00
zsviczian
77028f4d08 debug 2023-04-03 21:31:35 +02:00
zsviczian
fb29bb4816 debug 2023-04-03 21:26:53 +02:00
zsviczian
23fcddb2a3 debug 2023-04-03 21:22:33 +02:00
zsviczian
b314b939b2 checkpoints 2023-04-03 21:14:31 +02:00
zsviczian
bc687fea1b log renderScene 2023-04-03 21:08:18 +02:00
zsviczian
e15f313fe7 debug 2023-04-03 20:59:37 +02:00
zsviczian
9f02922c91 attempt at catching the point before freeze 2023-04-03 20:52:21 +02:00
zsviczian
2b6819eb2d fix canvas too large 2023-04-03 20:19:13 +02:00
zsviczian
c0e9b8d7bc
Update renderElement.ts 2023-04-03 19:35:28 +02:00
zsviczian
c8c683c025
Update renderElement.ts 2023-04-03 19:28:53 +02:00
zsviczian
2117fbbc57
Update renderElement.ts 2023-04-03 19:26:25 +02:00
zsviczian
3b9953f57f
link 2023-04-03 12:15:11 +02:00
zsviczian
7d1efb7f8b
Attempt at implementing #4036 2023-04-03 12:05:19 +02:00
Coyote
d2b8f4d2f8
fix: getDefaultLineHeight should return default font family line height for unknown font (#6399)
* fix(getDefaultLineHeight): make getDefaultLineHeight always has a default value

* test: add getDefaultLineHeight test case when using unknown font

* test: add getDefaultLineHeight test case when using unknown font

* Revert "test: add getDefaultLineHeight test case when using unknown font"

This reverts commit d41da5493b6edab9e599a13a23c387d38345bf03.

* test: add getDefaultLineHeight test case when using unknown font

* newline

* newline

* tweaks

* trigger action

* trigger action

* fix

---------

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2023-03-30 00:46:23 +05:30
Aakansha Doshi
f8e65bb77e
fix: Revert use ideographic textBaseline to improve layout shift when editing text" (#6400)
Revert "fix: use `ideographic` textBaseline to improve layout shift when editing text (#6384)"

This reverts commit 9e52c30ce86d7f7e61ffdb5ecad2523e179f620e.
2023-03-29 18:53:03 +05:30
Milos Vetesnik
3030e96d62
feat: starting migration from GA to Matomo for better privacy (#6398)
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-03-29 11:13:06 +02:00
dongfang
44453b725d
fix: call stack size exceeded when paste large text (#6373) (#6396)
* fix: call stack size exceeded when paste large text (#6373)

* fix: add test case for paste multi-line text

* fix

* tweak

* add missing assertion

* add comments

* lint

---------

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2023-03-29 13:45:30 +05:30
Type Horror
25bb6738ea
feat: Add fitToContent and animate to scrollToContent (#6319)
Co-authored-by: Brice Leroy <brice@brigalabs.com>
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-03-25 23:26:58 +01:00
David Luzar
9e52c30ce8
fix: use ideographic textBaseline to improve layout shift when editing text (#6384) 2023-03-22 18:33:37 +01:00
Aakansha Doshi
83383977f5
feat: add line height attribute to text element (#6360)
* feat: add line height attribute to text element

* lint

* update line height when redrawing text bounding box

* fix tests

* retain line height when pasting styles

* fix test

* create a util for calculating ling height using old algo

* update line height when resizing multiple text elements

* make line height backward compatible

* udpate line height for older element when font size updated

* remove logs

* Add specs

* lint

* review fixes

* simplify by changing `lineHeight` from px to unitless

* make param non-optional

* update comment

* fix: jumping text due to font size being calculated incorrectly

* update line height when font family is updated

* lint

* Add spec

* more specs

* rename to getDefaultLineHeight

* fix getting lineHeight for potentially undefined fontFamily

* reduce duplication

* fix fallback

* refactor and comment tweaks

* fix

---------

Co-authored-by: dwelle <luzar.david@gmail.com>
2023-03-22 11:32:38 +05:30
David Luzar
ac4c8b3ca7
fix: chrome crashing when embedding scene on chrome arm (#6383) 2023-03-21 18:48:49 +01:00
zsviczian
5c8941467d
fix: division by zero in findFocusPointForEllipse leads to infinite loop in wrapText freezing Excalidraw (#6377)
* Update collision.ts

* Update textElement.ts

* Update textElement.ts

* tweak

* fix

* remove unnecessary `Math.sign`

* change check and add doc

* Add a case for negative max width and specs

* fix

---------

Co-authored-by: dwelle <luzar.david@gmail.com>
Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
2023-03-20 17:50:09 +05:30
Samyat Gautam
0726911fa6
fix: containerizing text incorrectly updates arrow bindings (#6369)
Co-authored-by: dwelle <luzar.david@gmail.com>
2023-03-18 15:00:28 +00:00
dependabot[bot]
7e330c8ee1
build(deps-dev): bump webpack from 5.73.0 to 5.76.0 in /src/packages/utils (#6354)
build(deps-dev): bump webpack in /src/packages/utils

Bumps [webpack](https://github.com/webpack/webpack) from 5.73.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 11:04:13 +05:30
dependabot[bot]
7d21747644
build(deps-dev): bump webpack from 5.73.0 to 5.76.0 in /src/packages/excalidraw (#6355)
build(deps-dev): bump webpack in /src/packages/excalidraw

Bumps [webpack](https://github.com/webpack/webpack) from 5.73.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 11:04:01 +05:30
dependabot[bot]
e718136aea
build(deps): bump webpack from 5.74.0 to 5.76.1 in /dev-docs (#6356)
Bumps [webpack](https://github.com/webpack/webpack) from 5.74.0 to 5.76.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.74.0...v5.76.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-15 11:03:40 +05:30
Salah Eddine Daci
fe83e2922d
build: move TS and types to devDependencies (#6346) 2023-03-14 12:06:57 +00:00
David Luzar
20edddcd4e
fix: ensure export preview is centered (#6337) 2023-03-14 13:03:55 +01:00
Aakansha Doshi
f6e8be399e
fix: hide text align for labelled arrows (#6339)
* fix: hide text align for labelled arrows

* lintttt

* since we fetch seledcted Elements including the bound text hence this block can be removed

* fix
2023-03-14 17:21:46 +05:30
Aakansha Doshi
ab49cad6b1
perf: break early if the line width <= max width of the container (#6347)
* fix: break early if the line width <= max width of the container

* Remove dead code

* remove dead code

* lint

* remove
2023-03-14 17:18:16 +05:30
Aakansha Doshi
6aeb18b784
fix: refresh dimensions when elements loaded from shareable link and blob (#6333)
* fix: refresh dimensions when elements loaded from shareable link

* refresh text dimensions when loading from file

* remove log
2023-03-14 17:08:23 +05:30