Skip to content

fix: replace removed getAllElements API with forEachChildren in WaveScatter#301

Merged
xile611 merged 1 commit intodevelopfrom
fix/wave-scatter-getAllElements
Apr 10, 2026
Merged

fix: replace removed getAllElements API with forEachChildren in WaveScatter#301
xile611 merged 1 commit intodevelopfrom
fix/wave-scatter-getAllElements

Conversation

@xile611
Copy link
Copy Markdown
Contributor

@xile611 xile611 commented Apr 10, 2026

Problem

WaveScatter character crashes on appear action with:

TypeError: mark.getProduct(...).getAllElements is not a function

Root Cause

mark.getProduct() now returns VRender IGroup, which does not have the old VGrammar getAllElements() method.

Fix

Replace product.getAllElements().map(item => item.getGraphicItem()) with product.forEachChildren() to collect child graphics directly from the group — consistent with how the base VChartVisibilityActionProcessor already iterates over group children.

…catter

mark.getProduct() now returns IGroup (VRender) which does not have
the old VGrammar getAllElements() method. Use forEachChildren to
iterate over the group's child graphics instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a runtime crash in the WaveScatter character’s visibility (“appear”) action by updating child-graphic collection logic to match the current VRender IGroup API returned by mark.getProduct().

Changes:

  • Replaced usage of the removed getAllElements() API with forEachChildren() to collect graphics from the mark product group.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xile611 xile611 merged commit 3d9bae8 into develop Apr 10, 2026
9 of 11 checks passed
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.

3 participants