memgraph/demo/static/sigmajs/sigma.export.js
2016-03-19 15:32:24 +01:00

21 lines
479 B
JavaScript

// Hardcoded export for the node.js version:
var sigma = this.sigma,
conrad = this.conrad;
sigma.conrad = conrad;
// Dirty polyfills to permit sigma usage in node
if (HTMLElement === undefined)
var HTMLElement = function() {};
if (window === undefined)
var window = {
addEventListener: function() {}
};
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports)
exports = module.exports = sigma;
exports.sigma = sigma;
}