fix(interaction): reapply some interactions when update #5845
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
存在问题
部分交互 A 触发之后,某些交互 B 需要重新应用才能生效。 比如当 slider 滑动之后,比例尺、图形都发生了变化,element highlight 交互就需要重新应用,才能在新的尺度下对新的图形应用。类似 sliderFilter 的 A 类交互有:
需要重新应用的 B 类交互有
解决办法
对于 B 类交互,设置 props:
在执行 A 交互的更新操作的时候,重新应用这些交互
说明
slider 和 scrollbar 相关截图的更新只是元素 id 的变化,图表本身没有变化。