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

Clarify boundsID #6334

Merged
merged 2 commits into from
Jan 16, 2020
Merged

Clarify boundsID #6334

merged 2 commits into from
Jan 16, 2020

Conversation

ivanpopelyshev
Copy link
Collaborator

@ivanpopelyshev ivanpopelyshev commented Jan 16, 2020

It is my fault that #6261 had conflicts, because I made a mistake in review. The problem appeared when we tried to merge #6304 and found that field is still used.

So, lets clear how exactly _boundsID is handled:

DisplayObject invalidates its _boundsID. The dependent inner object, _bounds, tracks its version, and it is being updated in calculateBounds. The tracker is stored in _bounds.updateID.

No more lastBoundsID.

In future, I hope to separate global bounds from local ones and content bounds, thus I store updateID in object that contains the result - we will have multiple objects like that.

Alternatives:

  1. Merge this, then merge it with TS convertion
  2. I integrate that PR in typescript convertion
  3. We disbandle this thing and leave _lastBounds

@ivanpopelyshev ivanpopelyshev changed the title Dev bounds again Clarify boundsID Jan 16, 2020
@codecov-io
Copy link

Codecov Report

Merging #6334 into dev will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #6334   +/-   ##
=======================================
  Coverage   77.96%   77.96%           
=======================================
  Files         186      186           
  Lines       10116    10116           
=======================================
  Hits         7887     7887           
  Misses       2229     2229
Impacted Files Coverage Δ
...es/core/src/filters/spriteMask/SpriteMaskFilter.js 95.23% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 51b3f48...2658568. Read the comment docs.

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.

None yet

4 participants