Integration with RequireJS
Example of usage with requireJS:
<script src="require.js"></script>
<script>
requirejs(['path/to/ogma-min'], function (Ogma) {
const ogma = new Ogma({graph: {nodes: [{id: 0, color: 'blue'}]}});
console.log(ogma.getNode(0).color);
});
</script>