Appearance
Using Ogma with requireJS
Example of usage with requireJS:
html
<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>