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

Fix/3137/Floor Labels Are Disappearing #3778

Merged
merged 14 commits into from
Oct 16, 2024

Conversation

phanlezz
Copy link
Collaborator

@phanlezz phanlezz commented Oct 9, 2024

Fix Floor Labels Are Disappearing

Closes: #3137

Description

This adds a experimental feature to the FloorLabel system. When experimental features are enabled, the height of the floor labels gets scaled with the size of the map to increase the distance between folder structures and the floating labels above. In testing, this change result in less flickering of those labels. "Less", because the flickering is not completely removed. We might be able to remove the flickering completely by swapping to native three.js text instead of our current approach.

Definition of Done

A PR is only ready for merge once all the following acceptance criteria are fulfilled:

  • Changes have been manually tested
  • All TODOs related to this PR have been closed
  • There are automated tests for newly written code and bug fixes
  • All bugs discovered while working on this PR have been submitted as issues (if not already an open issue) Tech: Investigate three.js native text rendering as a replacement for FloorLabels #3786
  • Documentation (GH-pages, analysis/visualization READMEs, parser READMEs, --help, etc.) has been updated (almost always necessary except for bug fixes)
  • CHANGELOG.md has been updated

Screenshots or gifs

@phanlezz phanlezz force-pushed the fix/3137/floor-labels-are-disappearing branch from 4cb4bcd to 4ca5bbd Compare October 14, 2024 10:52
@phanlezz phanlezz marked this pull request as ready for review October 14, 2024 10:53
@phanlezz
Copy link
Collaborator Author

For the review:
This is very much a subjective topic. Not the flickering itself, but the amount of "float" a label has above a folder. These values can be changed in exchange for more or less flickering.
Please try small and big maps, with experimental features enables/disabled, with height scaling (metric menu) of 1 and 5.

@phanlezz
Copy link
Collaborator Author

I'm not sure what the problem is with the e2e tests. Must be a GitHub/Chrome thing? I will look tomorrow into this.

@phanlezz phanlezz force-pushed the fix/3137/floor-labels-are-disappearing branch from 97d58b7 to 5989c13 Compare October 16, 2024 07:09
@phanlezz phanlezz force-pushed the fix/3137/floor-labels-are-disappearing branch from 5989c13 to bbc2785 Compare October 16, 2024 09:48
@phanlezz phanlezz enabled auto-merge (rebase) October 16, 2024 09:48
Copy link

sonarcloud bot commented Oct 16, 2024

Copy link

sonarcloud bot commented Oct 16, 2024

@phanlezz phanlezz merged commit 0318121 into main Oct 16, 2024
7 checks passed
@phanlezz phanlezz deleted the fix/3137/floor-labels-are-disappearing branch October 16, 2024 10:02
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.

Floor labels are disappearing
2 participants