Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(): Properly include the text on a path hack into the dimensions calculations. still an hack #10355

Merged
merged 6 commits into from
Dec 26, 2024

Conversation

asturur
Copy link
Member

@asturur asturur commented Dec 24, 2024

Description

Make so that the text on a path inside a group looks less broken

Warning

This update could disrupt apps with text on a path that do not use center/center as origin.
This update make text on a path object a bit bigger to properly include text.

This before was done at cache level but not at object dimension level, leaving the text outside the bounding box.
While this was working ok for single object and a bit of padding it was wrong and it didn't work when text was in side a group.

Fabric 5 is considered not more developed and deprecated.
This fix and the next one are shipped into a minor version update 5.5. If you heavily depend on text on a path and you didn't find any bug till now, just don't move to 5.5.

V6 is getting an entirely differen treatment for text on a path.

Copy link

codesandbox bot commented Dec 24, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link
Contributor

github-actions bot commented Dec 24, 2024

Code Coverage Summary

> [email protected] coverage:report
> nyc report --reporter=lcov --reporter=text

-----------|---------|----------|---------|---------|-----------------------------------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                             
-----------|---------|----------|---------|---------|-----------------------------------------------
All files  |   83.39 |    77.39 |   86.25 |   83.11 |                                               
 fabric.js |   83.39 |    77.39 |   86.25 |   83.11 | ...,30573-30638,30761,30860,31079,31121-31123 
-----------|---------|----------|---------|---------|-----------------------------------------------

Copy link
Contributor

github-actions bot commented Dec 24, 2024

Code Coverage Summary

> [email protected] coverage:report
> nyc report --reporter=lcov --reporter=text

-----------|---------|----------|---------|---------|-----------------------------------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                             
-----------|---------|----------|---------|---------|-----------------------------------------------
All files  |   83.39 |    77.38 |   86.25 |   83.11 |                                               
 fabric.js |   83.39 |    77.38 |   86.25 |   83.11 | ...,30573-30638,30761,30860,31079,31121-31123 
-----------|---------|----------|---------|---------|-----------------------------------------------

Copy link
Contributor

github-actions bot commented Dec 24, 2024

Code Coverage Summary

> [email protected] coverage:report
> nyc report --reporter=lcov --reporter=text

-----------|---------|----------|---------|---------|-----------------------------------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                             
-----------|---------|----------|---------|---------|-----------------------------------------------
All files  |   83.39 |    77.38 |   86.25 |   83.11 |                                               
 fabric.js |   83.39 |    77.38 |   86.25 |   83.11 | ...,30573-30638,30761,30860,31079,31121-31123 
-----------|---------|----------|---------|---------|-----------------------------------------------

Copy link
Contributor

github-actions bot commented Dec 25, 2024

Code Coverage Summary

> [email protected] coverage:report
> nyc report --reporter=lcov --reporter=text

-----------|---------|----------|---------|---------|-----------------------------------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                             
-----------|---------|----------|---------|---------|-----------------------------------------------
All files  |   83.39 |    77.38 |   86.25 |   83.11 |                                               
 fabric.js |   83.39 |    77.38 |   86.25 |   83.11 | ...,30573-30638,30761,30860,31079,31121-31123 
-----------|---------|----------|---------|---------|-----------------------------------------------

Copy link
Contributor

github-actions bot commented Dec 26, 2024

Code Coverage Summary

> [email protected] coverage:report
> nyc report --reporter=lcov --reporter=text

-----------|---------|----------|---------|---------|-----------------------------------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                             
-----------|---------|----------|---------|---------|-----------------------------------------------
All files  |   83.39 |    77.38 |   86.25 |   83.11 |                                               
 fabric.js |   83.39 |    77.38 |   86.25 |   83.11 | ...,30573-30638,30761,30860,31079,31121-31123 
-----------|---------|----------|---------|---------|-----------------------------------------------

@asturur asturur merged commit fe663c7 into 5.x Dec 26, 2024
10 of 11 checks passed
@asturur asturur deleted the cache-fix-part1 branch December 26, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants