Skip to content

fix(xychart): preserve in-flight annotation motion - #2035

Open
minwookshin wants to merge 1 commit into
airbnb:masterfrom
minwookshin:fix/annotation-continuous-motion
Open

minwookshin wants to merge 1 commit into
airbnb:masterfrom
minwookshin:fix/annotation-continuous-motion

Conversation

@minwookshin

Copy link
Copy Markdown

Fixes #1766.

Keep the annotation's spring in absolute coordinates so changing one axis or rerendering its content preserves the current motion instead of snapping to the previous target. The annotation still receives its current target coordinates, with the animated group applying the offset.

Validation: all 179 XYChart tests pass, including two regressions that fail before the fix; package TypeScript and CJS/ESM builds and scoped ESLint pass. A Chrome check also verifies consecutive updates, an unrelated rerender, and the final resting position.

This branch has not been deployed

No deployments
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.

XYChart: AnimatedAnnotation animates incorrectly

1 participant