Download static/j2s/JSV/common/RepaintManager.js from patonlab/cascade: direct link, hf CLI and curl.
- Browser
- Download file 706 Bytes
-
https://huggingface.co/spaces/patonlab/cascade/resolve/main/static/j2s/JSV/common/RepaintManager.js
- Command line
-
hf download hf://spaces/patonlab/cascade/static/j2s/JSV/common/RepaintManager.js
-
curl -L -o RepaintManager.js https://huggingface.co/spaces/patonlab/cascade/resolve/main/static/j2s/JSV/common/RepaintManager.js
706 Bytes
| Clazz.declarePackage ("JSV.common"); | |
| c$ = Clazz.decorateAsClass (function () { | |
| this.repaintPending = false; | |
| this.vwr = null; | |
| Clazz.instantialize (this, arguments); | |
| }, JSV.common, "RepaintManager"); | |
| Clazz.makeConstructor (c$, | |
| function (viewer) { | |
| this.vwr = viewer; | |
| }, "JSV.common.JSViewer"); | |
| Clazz.defineMethod (c$, "refresh", | |
| function () { | |
| if (this.repaintPending) { | |
| return false; | |
| }this.repaintPending = true; | |
| var applet = this.vwr.html5Applet; | |
| { | |
| if (typeof Jmol != "undefined" && Jmol._repaint && applet) | |
| Jmol._repaint(applet, false); | |
| this.repaintDone(); | |
| }return true; | |
| }); | |
| Clazz.defineMethod (c$, "repaintDone", | |
| function () { | |
| this.repaintPending = false; | |
| this.notify (); | |
| }); | |