Skip to content

Release - #2281

Merged
wang1212 merged 3 commits into
masterfrom
release
Dec 1, 2026
Merged

Release#2281
wang1212 merged 3 commits into
masterfrom
release

Conversation

@wang1212

@wang1212 wang1212 commented Dec 1, 2026

Copy link
Copy Markdown
Member

No description provided.

Wu Shuwen and others added 3 commits November 13, 2026 21:32
#2274)

* fix(g-canvas): keep group clipPath for children in optimized rendering

With enableRenderingOptimization, renderDisplayObjectOptimized restored the
context right after drawing the object that owns the clipPath, so the clip of
a Group never reached its children. Keep the clip in renderState.restoreStack
until the walk leaves the subtree, as renderDisplayObject does, and restore
the cached context state with it so cached styles do not go stale.

Closes #1915

* perf(g-canvas): check the clip subtree with contains in optimized rendering

compareDocumentPosition walked both nodes to the root and scanned siblings
when leaving a clipped subtree, which grows with many sibling clipped
groups. parent.contains(object) walks up to the clip owner only and gives
the same answer here, since an object is never its own pushed clip parent.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Dec 1, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f99bca3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@wang1212
wang1212 merged commit e41675b into master Dec 1, 2026
5 checks passed
@wang1212
wang1212 deleted the release branch December 1, 2026 12:24
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