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

createGroundPolylineGeometry dependencies, Scene cleanup #6946

Merged
merged 6 commits into from
Aug 27, 2018
Merged

Conversation

kring
Copy link
Member

@kring kring commented Aug 21, 2018

Hopefully fairly uncontroversial stuff here from our Cesium fork:

  • Remove dependency of createGroundPolylineGeometry on GroundPolylinePrimitive. It was only needed for initializing terrain heights, which was delegated to ApproximateTerrainHeights anyway. This change should make that web worker smaller and in my webpack configuration, at least, it avoids a dependency cycle that makes the build hang.
  • Make Scene more consistent in how it destroys sub-objects. Random, inconsequential, but overall positive change I had kicking around.

I don't these things need to be mentioned in CHANGES.md, but let me know if you disagree.

@cesium-concierge
Copy link

cesium-concierge commented Aug 21, 2018

Thanks for the pull request @kring!

  • ✔️ Signed CLA found.
  • CHANGES.md was not updated.
    • If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.
  • Works (or fails gracefully) in IE11.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

@likangning93
Copy link
Contributor

likangning93 commented Aug 22, 2018

This change should make that web worker smaller and in my webpack configuration, at least, it avoids a dependency cycle that makes the build hang.

@kring is this generally helpful for anyone using webpack? If so, is it worth a mention in CHANGES.md?

});

return GroundPolylinePrimitive._initPromise;
return ApproximateTerrainHeights.initialize();
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we make this same change to GroundPrimitive.initializeTerrainHeights?

@hpinkos
Copy link
Contributor

hpinkos commented Aug 22, 2018

That's my only comment, thanks @kring!

@kring
Copy link
Member Author

kring commented Aug 24, 2018

@kring is this generally helpful for anyone using webpack? If so, is it worth a mention in CHANGES.md?

I'm not sure. The fun thing about webpack is it has a billion configuration options, so other webpack configurations might not have the same problem. I'll add a note though, can't hurt.

@kring
Copy link
Member Author

kring commented Aug 24, 2018

This is ready for another look.

@hpinkos
Copy link
Contributor

hpinkos commented Aug 27, 2018

Thanks @kring!

@hpinkos hpinkos merged commit 40b8f64 into master Aug 27, 2018
@hpinkos hpinkos deleted the minor-tweaks branch August 27, 2018 18:09
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.

4 participants