-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Javascript LiveGraph Replacement #587
Conversation
…gned version helps it work with the new stricter security policies most browsers have towards java applets.
This is the set of all problems in the OPL (that I could find) which use LiveGraphics.
|
The header reference is to the file Only the file x3dom.js is included with the pull request. What should be done -- include x3dom-full.js? or change the header line calling in x3dom-full.js instead of x3dom.js? |
Whooops. I had to switch over to the full version of x3dom because it turned out I needed 2d geometry objects but I forgot to add it to git. It should be there now. |
Cleaned up some commit messages and changed the window scale to be the average, not the max, of the axes scales.
I've used it on my laptop and on my iPad. If anything it works better on the ipad since you can do a flat rotation of the image with two fingers. (rotates in the plane of the screen). I haven't figured out the key combination to do that on the laptop even after looking at the instructions. There may eventually need to be some tweaks needed to the theme. On the laptop I found reducing the type size to 0.1 from 0.15 and changing the coloring of the tick figures to red made it easier to solve the problems. I solved 15 or so of them in detail. I think this should be pulled -- minor changes in default settings for colors and size can come later. |
This provides a javascript based replacement for the java based LiveGraphics system. It uses the webgl wrapper x3dom. You can read more about the general idea and motivation at: http://webworkgoehle.blogspot.com/2015/05/livegraphics-and-javascript.html
To test all you need to do is pull this pull request, and the associated PG pull request (number 211). Then visit any livegraphics based problem. I've provded a .def file below which has all of the livegraphics that I could find using a grep in the open problem library. You should run through the set and make sure that the graphs all render correctly.
Other small things to test.
$pg{specialPGEnvironmentVars}{use_javascript_for_live3d} = 0;
in localOverrides makes the system go back to the applet verison.
Caveats.