You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
isn't this implemented already? The ctxRenderer looks like:
functionctxRenderer({ ctx, id, x, y,state: { selected, hover }, style, label }){// do some math herereturn{// bellow arrows// primarily meant for nodes and the labels inside of their boundariesdrawNode(){ctx.drawSomeNode();},// above arrows// primarily meant for labels outside of the nodedrawExternalLabel(){ctx.drawSomeTextOutsideOfTheNode();},// node dimensions defined by node drawingnodeDimensions: { width, height },};}
I have no idea what relation the code has to this issue, it doesn't use custom nodes at all. It doesn't even work: It loads data from nonexistent domains, relies on DOM that you didn't provide etc.
Activity
Thomaash commentedon Sep 10, 2020
Hi @LeoShivas,
isn't this implemented already? The
ctxRendererlooks like:LeoShivas commentedon Sep 16, 2020
Sorry, I don't understand how to use this function in my code.
Here is my code (very simplified and anonymized) :
What is the trick you suggest ?
Thomaash commentedon Sep 20, 2020
Hi @LeoShivas,
I have no idea what relation the code has to this issue, it doesn't use custom nodes at all. It doesn't even work: It loads data from nonexistent domains, relies on DOM that you didn't provide etc.