Make require a dependency
Improve library canvas and context inheritance
Update arcs example using new nx inheritance