-
Notifications
You must be signed in to change notification settings - Fork 10
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
engine: missing dep on / reference to pako
library
#53
Comments
I've looked into this a bit (since it should be relevant for tour export in glue). We had talked before about doing something like That being said, we can use import if we replace this line with something like
Up to some formatting, that makes the output JavaScript in that block be
Not the most elegant fix, but it would work. Worth noting that in a CommonJS setting (e.g. Node), we could use |
Hmm, will the But I'm sure that there's a solution here. It would be nice to figure out something scalable too — some things might become easier if the engine itself is able to take advantage of external JavaScript libraries. I know that ScriptSharp has some kind of system for creating stub C# classes that have magic annotations that say how they should translate into JS: they're used for the low-level WebGL calls at a minimum. If we could get to the point where an external dep like |
Ah, yeah, as written this will almost certainly not work. It is good to know that we can get ScriptSharp to generate promise-y code with the assignment to Generating stub classes to translate to JS sounds interesting; I'll look into that. |
Cool. Stubs classes won't help with the core issue of async imports here, but again, I'm sure there's a way to solve that one. |
engine/wwtlib/Layers/Layer.cs
includes a literal reference to thepako
decompression library. We don't include that code right now, so the engine crashes in certain usages.Triggered by https://bit.ly/wwt-neowise2020 , which loads http://data1.wwtassets.org/packages/2020/07_neowise/Comet_NEOWISE_July_2020.wtt .
The text was updated successfully, but these errors were encountered: