orb icon indicating copy to clipboard operation
orb copied to clipboard

Option to disable zoom/pan/drag

Open rgomesf opened this issue 1 year ago • 1 comments

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

rgomesf avatar May 31 '23 12:05 rgomesf

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!

tonilastre avatar Jun 09 '23 08:06 tonilastre