Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AG-12655 Skip unordered category animations #2947

Open
wants to merge 2 commits into
base: latest
Choose a base branch
from
Open

Conversation

jacobp100
Copy link
Contributor

@jacobp100 jacobp100 commented Nov 8, 2024


let categoryAnimatable = true;
for (const series of this.boundSeries) {
if (!this.includeInvisibleDomains && !series.isEnabled()) continue;
Copy link
Contributor

@iMoses iMoses Nov 11, 2024

Choose a reason for hiding this comment

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

nit: includeInvisibleDomains is always true in category axes, so this always returns false

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's to match the original logic - in case this value ever changes


if (normalizedNextIndex === -1) {
// All subsequent values must be extending (i.e. appending to) the normalized domain
normalizedIndex = Number.MAX_SAFE_INTEGER;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: use Infinity to keep consistent with similar logic in our codebase

@iMoses
Copy link
Contributor

iMoses commented Nov 11, 2024

Can we extract this code into cartesianChart.ts?
It'll help us by reducing coupling between the axis and series classes, and will keep logic closer to where it's supposed to be.

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