Changes between Version 1 and Version 2 of docs_ngl


Ignore:
Timestamp:
May 14, 2018, 5:22:17 AM (2 years ago)
Author:
ehb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • docs_ngl

    v1 v2  
    55 * [http://nglviewer.org NGL] provides a WebGL based molecular viewer
    66 * examples
     7  * module json (note height & width must be specified, else the viewer will have no size):
     8{{{
     9     ...
     10     ,{
     11            "role"            : "output"
     12            ,"id"              : "nglplot"
     13            ,"label"           : "Example NGL"
     14            ,"type"            : "ngl"
     15            ,"height"          : "600px"
     16            ,"width"           : "400px"
     17      }
     18      ...
     19}}}
     20  * executable JSON output
     21{{{
     22{
     23    "loadname"    : "myfile.pdb"
     24    ,"loadparams" : {
     25                       "ext" : "pdb"
     26                       ,"name" : "a name"
     27                    }
     28
     29}
     30   * notes:
     31    * Required:
     32     * "loadname" is passed to [http://nglviewer.org/ngl/api/class/src/stage/stage.js~Stage.html#instance-method-loadFile stage.loadFile()]
     33    * Optional:
     34     * "loadparams" is passed as the 2nd argument to [http://nglviewer.org/ngl/api/class/src/stage/stage.js~Stage.html#instance-method-loadFile stage.loadFile()]
     35      * "loadparams" : "ext" is an optional file extension to determine file type (if not specified in "loadname").
     36      * "loadparams" : "name" is optional name for the data
     37
    738 * stage