Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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();
}
)
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();
}
)
function loadHtmlTemplate(userSpecifiedContainer, callback) {
userSpecifiedContainer.html(pathvisioNS['tmp/pathvisiojs.html']);
var diagramContainer = userSpecifiedContainer.select('#diagram-container');
callback(diagramContainer);
}