-
Notifications
You must be signed in to change notification settings - Fork 25
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
Geometry Preview refactor - separate into several files, allow running in browser directly #628
Conversation
… Download the unminified version too for those I could locate
…ng changes so use TweenLite 2.x) https://github.com/greensock/GSAP
This looks great @jmarrec, as an FYI, I've tried to keep the html and code here in sync with:
NREL uses those measures to view models from PAT, etc. If NREL is willing to support you doing it could you consider porting these changes back to the |
openstudiocoalition/OpenStudioApplication#628 * Extract the inline jS from geometry_preview.html into separate jS files * Upgrades these dependencies (to a version without major breaking changes), and downloads the unminified version that matches, so one could technically swap to these to debug something * Be explicit about which versions of these dependencies we use * Allows running the geometry_preview in your browser directly with some json data. * Add separate entry points `runFromJSON` and `runFromFile` openstudiocoalition/OpenStudioApplication#629 * Opt-in feature to enable the geometry diagnostics from this PR:
Backported at NREL/openstudio-common-measures-gem#156 Tested the measures locally + inside the OS App (I ended up embedding the jS files + data into the report.html to avoid issues) |
I find the geometry_preview.html awful to work with, as it has a lot of embedded jS into it.
Also, having the ability to run it directly into your browser is helpful for testing out changes.
This PR:
runFromJSON
andrunFromFile