Skip to content

fix(svg): fix shared vnode in pattern brings render issue#889

Merged
pissang merged 1 commit into
masterfrom
fix-svg-pattern
Feb 9, 2022
Merged

fix(svg): fix shared vnode in pattern brings render issue#889
pissang merged 1 commit into
masterfrom
fix-svg-pattern

Conversation

@pissang
Copy link
Copy Markdown
Contributor

@pissang pissang commented Feb 9, 2022

The vnode svgElement may be shared by multiple patterns because the cache strategy in https://github.com/apache/echarts/blob/master/src/util/decal.ts#L121. It may cause render issue like described in apache/echarts#16449. This PR clones the svgElement to make sure each vnode is unique.

@pissang pissang requested a review from plainheart February 9, 2022 04:45
@pissang pissang merged commit e25b110 into master Feb 9, 2022
@pissang pissang deleted the fix-svg-pattern branch February 9, 2022 13:08
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