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

adjust empty string fix to match -native #6209

Closed
wants to merge 1 commit into from

Conversation

ansis
Copy link
Contributor

@ansis ansis commented Feb 21, 2018

This should not change behaviour. This just brings -js slightly closer to the -native fix: mapbox/mapbox-gl-native#11206

benchmarks:
The benchmarks looked good except for Layout. But I wasn't able to reproduce the that difference on later runs.

Launch Checklist

  • briefly describe the changes in this PR
  • [N/A] write tests for all new functionality
  • [N/A] document any changes to public APIs
  • post benchmark scores
  • manually test the debug page

@ansis ansis requested a review from ChrisLoer February 21, 2018 20:06
@@ -170,6 +167,11 @@ class Placement {
offscreen = offscreen && placedIconBoxes.offscreen;
}

const hasTextData = Boolean(symbolInstance.collisionArrays.textBox || symbolInstance.collisionArrays.textCircles);
const hasIconData = Boolean(symbolInstance.collisionArrays && symbolInstance.collisionArrays.iconBox);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The symbolInstance.collisionArrays && was needed to satisfy flow complaining about symbolInstance.collisionArrays being possible undefined. I'm not sure why flow didn't complain for the line above.

@mourner
Copy link
Member

mourner commented Jul 25, 2018

@ChrisLoer looks like this might have gotten lost in notifications — can you revisit?

@ChrisLoer
Copy link
Contributor

Oops you're right @mourner , sorry I totally lost track of this @ansis -- so much that I ended up making effectively the same change as part of #6925. I don't think there's anything left for this PR to do.

@ChrisLoer ChrisLoer closed this Jul 25, 2018
@mourner mourner deleted the empty-string-fix-adjust branch August 1, 2019 12:25
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.

3 participants