I'm using KonvaJS to create a canvas which can connect 'nodes' by using 'connections'. I created 2 Layers
, one NodeLayer
and one ConnectionLayer
. I always want to render the NodeLayer
on top of the ConnectionLayer
. So they're rendered as followed:
<Stage>
<ConnectionLayer />
<NodeLayer />
</Stage>
This makes sure that the Nodes are always rendered on top of the connections. I'm trying to add a tooltip on my connections, but because the NodeLayer
is on top of the connectionLayer
the tooltip wont show when it's positioned behind a node.
Is there a way to render the tooltip on top of nodes from within the connectionLayer
while not changing the order of the layers?