orb
orb copied to clipboard
Option to disable zoom/pan/drag
Is there any way in which I can disable interaction with the graph? No zoom/pan and no drag of nodes I'm using fixed position nodes and don't want the user to move them from place
Thanks
Great question, unfortunately, you can't disable zoom/pan/drag now. The only thing you can disable it the click/hover events on nodes/edges with:
const orb = new Orb.Orb(container, {
strategy: {
onMouseClick: null,
onMouseMove: null,
onMouseRightClick: null,
onMouseDoubleClick: null,
},
});
But this feature is something Orb should have, so we will add that!