Skip to content

Conversation

ShaMan123
Copy link
Contributor

@ShaMan123 ShaMan123 commented Apr 20, 2022

Gist

Solves an edge case for #7882.

Group doesn't render selected objects if preserveObjectStacking is false. This poses a problem when calling isTargetTransparent and toCanvasElement.
This PR solves these cases.

  • the rendering cycle now passes a context object that can be used for various cases. Very useful. I needed it to inform group to render itself with all its objects. This is used by isTargetTransparent and toCanvasElement and even enhances the filter option of toCanvasElement that is now deep.
  • adapted logic
  • added tests

View the diff

@github-actions
Copy link
Contributor

github-actions bot commented Apr 20, 2022

Code Coverage Summary

> fabric@5.1.0 coverage:report
> nyc report --reporter=lcov --reporter=text

-----------|---------|----------|---------|---------|-----------------------------------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                             
-----------|---------|----------|---------|---------|-----------------------------------------------
All files  |   83.14 |    76.14 |   85.57 |   82.87 |                                               
 fabric.js |   83.14 |    76.14 |   85.57 |   82.87 | ...,30889,30963,30974-31039,31162,31261,31497 
-----------|---------|----------|---------|---------|-----------------------------------------------

important for custom objects
@github-actions
Copy link
Contributor

github-actions bot commented Apr 22, 2022

Code Coverage Summary

> fabric@5.1.0 coverage:report
> nyc report --reporter=lcov --reporter=text

-----------|---------|----------|---------|---------|-----------------------------------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                             
-----------|---------|----------|---------|---------|-----------------------------------------------
All files  |   83.14 |    76.14 |   85.57 |   82.87 |                                               
 fabric.js |   83.14 |    76.14 |   85.57 |   82.87 | ...,30889,30963,30974-31039,31162,31261,31497 
-----------|---------|----------|---------|---------|-----------------------------------------------

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Apr 22, 2022

Code Coverage Summary

> fabric@5.1.0 coverage:report
> nyc report --reporter=lcov --reporter=text

-----------|---------|----------|---------|---------|-----------------------------------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                             
-----------|---------|----------|---------|---------|-----------------------------------------------
All files  |   83.14 |    76.14 |   85.57 |   82.87 |                                               
 fabric.js |   83.14 |    76.14 |   85.57 |   82.87 | ...,30889,30963,30974-31039,31162,31261,31497 
-----------|---------|----------|---------|---------|-----------------------------------------------

@github-actions
Copy link
Contributor

github-actions bot commented Apr 26, 2022

Code Coverage Summary

> fabric@5.1.0 coverage:report
> nyc report --reporter=lcov --reporter=text

-----------|---------|----------|---------|---------|-----------------------------------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                             
-----------|---------|----------|---------|---------|-----------------------------------------------
All files  |   83.14 |    76.16 |   85.57 |   82.87 |                                               
 fabric.js |   83.14 |    76.16 |   85.57 |   82.87 | ...,30889,30963,30974-31039,31162,31261,31497 
-----------|---------|----------|---------|---------|-----------------------------------------------

@github-actions
Copy link
Contributor

github-actions bot commented Apr 26, 2022

Code Coverage Summary

> fabric@5.1.0 coverage:report
> nyc report --reporter=lcov --reporter=text

-----------|---------|----------|---------|---------|-----------------------------------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                             
-----------|---------|----------|---------|---------|-----------------------------------------------
All files  |   83.14 |    76.16 |   85.57 |   82.87 |                                               
 fabric.js |   83.14 |    76.16 |   85.57 |   82.87 | ...,30889,30963,30974-31039,31162,31261,31497 
-----------|---------|----------|---------|---------|-----------------------------------------------

@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2022

Code Coverage Summary

> fabric@5.1.0 coverage:report
> nyc report --reporter=lcov --reporter=text

-----------|---------|----------|---------|---------|-----------------------------------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                             
-----------|---------|----------|---------|---------|-----------------------------------------------
All files  |   83.11 |    76.13 |   85.57 |   82.83 |                                               
 fabric.js |   83.11 |    76.13 |   85.57 |   82.83 | ...,30915,30989,31000-31065,31188,31287,31523 
-----------|---------|----------|---------|---------|-----------------------------------------------

Copy link
Contributor Author

@ShaMan123 ShaMan123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated from #7882

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2022

Code Coverage Summary

> fabric@5.1.0 coverage:report
> nyc report --reporter=lcov --reporter=text

-----------|---------|----------|---------|---------|-----------------------------------------------
File       | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s                             
-----------|---------|----------|---------|---------|-----------------------------------------------
All files  |   83.15 |    76.21 |   85.56 |   82.87 |                                               
 fabric.js |   83.15 |    76.21 |   85.56 |   82.87 | ...,30924,30998,31009-31074,31197,31296,31532 
-----------|---------|----------|---------|---------|-----------------------------------------------

@stale
Copy link

stale bot commented Jun 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue marked as stale by the stale bot label Jun 12, 2022
@ShaMan123 ShaMan123 removed the stale Issue marked as stale by the stale bot label Jun 13, 2022
@stale
Copy link

stale bot commented Jun 28, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue marked as stale by the stale bot label Jun 28, 2022
@ShaMan123 ShaMan123 removed the stale Issue marked as stale by the stale bot label Jun 28, 2022
@stale
Copy link

stale bot commented Jul 30, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue marked as stale by the stale bot label Jul 30, 2022
@ShaMan123 ShaMan123 removed the stale Issue marked as stale by the stale bot label Aug 1, 2022
@stale
Copy link

stale bot commented Sep 21, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue marked as stale by the stale bot label Sep 21, 2022
@ShaMan123 ShaMan123 removed the stale Issue marked as stale by the stale bot label Sep 21, 2022
@asturur asturur removed the group label Jan 14, 2024
@asturur asturur closed this Jan 14, 2024
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