How to use the tmp/pathvisiojs.html function in tmp

To help you get started, we’ve selected a few tmp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wikipathways / pvjs / test / compare3col.html View on Github external
function(err, results) {
                        results.svg.documentElement.setAttribute('style', 'display: none; ');
                        results.svg.documentElement.setAttribute('width', '500px');
                        results.svg.documentElement.setAttribute('height', '500px');
                        var pathwayContainer = results.html.querySelector('#pathway-container').appendChild(results.svg.documentElement)

                        var oSerializer = new XMLSerializer();
                        pathvisioNS['tmp/pathvisiojs.html'] = oSerializer.serializeToString(results.html);
                        callback();
                      }
                      )
github wikipathways / pvjs / test / compare3options.html View on Github external
function(err, results) {
        results.svg.documentElement.setAttribute('style', 'display: none; ');
        results.svg.documentElement.setAttribute('width', '500px');
        results.svg.documentElement.setAttribute('height', '500px');
        var pathwayContainer = results.html.querySelector('#pathway-container').appendChild(results.svg.documentElement)

        var oSerializer = new XMLSerializer();
        pathvisioNS['tmp/pathvisiojs.html'] = oSerializer.serializeToString(results.html);
        callback();
      }
    )
github wikipathways / pvjs / src / js / pathvisiojs / view / pathway-diagram / pathway-diagram.js View on Github external
function loadHtmlTemplate(userSpecifiedContainer, callback) {
    userSpecifiedContainer.html(pathvisioNS['tmp/pathvisiojs.html']);
    var diagramContainer = userSpecifiedContainer.select('#diagram-container');
    callback(diagramContainer);
  }