-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Avoid importing Cesium3DTileset in Picking.js #8261
Comments
@lilleyse please make this a priority before the October release |
@puckey All the code in
Yes, something like that might work. |
Ahhh, I do see that @puckey were you using the latest version of cesium before you upgraded to the 1.62 release? |
I wasn't using the very latest version before – I must have been a few releases behind. |
Gotcha, no problem @puckey |
Since updating to the latest version of Cesium, I noticed my project's bundle size had grown 85% by over 850kb minified.
I tracked down a large chunk of it to a single
instanceof Cesium3DTileset
use here: https://github.com/AnalyticalGraphicsInc/cesium/blob/d26ccfea38dcf4623cf5da3faca141913c64cfe1/Source/Scene/Picking.js#L549 causing the bundle size to grow by 549 kB, while I do not useCesium3DTileset
in my project.Perhaps instead of using
instanceof
we could have a statictype
enum property to check against? For exampleif (primitive.type === Type.Cesium3DTileset)
The text was updated successfully, but these errors were encountered: