8000 [Exaforce fork] Component | Scatter: Only resolve label overlap when needed by curran · Pull Request #26 · ExaForce/unovis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Exaforce fork] Component | Scatter: Only resolve label overlap when needed #26

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

curran
Copy link
@curran curran commented May 13, 2025

Closes f5#564

Technical note: The check if (this.config.label) alone isn't sufficient because:

  • The label config could be defined, but it might return empty/null values for all data points. For example, if the label accessor function is defined as d => d.label but none of the data points actually have a label property or all have empty values.
  • By checking if any point actually has a label (pointDataFlat.some(d => d._point.label)), we avoid unnecessary label overlap resolution calculations when no labels will be displayed, even though the label accessor is configured.

@curran curran changed the base branch from main to 1.5.1-exaforce May 13, 2025 16:02
@curran curran changed the base branch from 1.5.1-exaforce to main May 13, 2025 16:02
@rokotyan rokotyan marked this pull request as draft May 14, 2025 18:15
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.

Performance: don't call collideLabels if there are no labels
2 participants
0