GoJS over leaflet. I have several Parts in the Tool layer (legend, buttons…) The diagram’s nodes and links on lower layers respond to clicks those buttons and panels above, but logically should be stopped. Is there an elegant way of stopping the propagation?
Yes, that’s intentional – you normally don’t want objects in layers like “Tool” to respond to clicks.
But if you do, you can set GraphObject.isActionable to true. Buttons do that, for example – see https://gojs.net/latest/extensions/Buttons.js – so that a Button in an Adornment will work.