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
I'm trying to use a custom node render, to make larger nodes with this code:
function nodeRender(r, n) {
//the Raphael set is obligatory, containing all you want to display
return r.set()
.push(r.rect(-30, -13, 130, 60).attr({
'fill': '#FFF',
'fill-opacity': 0,
'stroke-width': 2,
r: 9
}))
.push(r.text(35, 10, n.label).attr({
opacity: 1,
'font-size': 16
}))
}
But when i do that, some nodes go out of bound of the selected canvas, i think i need to tell dracula the new node size, but i'm not sure how to do that.
Hi,
I'm trying to use a custom node render, to make larger nodes with this code:
But when i do that, some nodes go out of bound of the selected canvas, i think i need to tell dracula the new node size, but i'm not sure how to do that.
I have a full example here: https://jsfiddle.net/tkheyznr/1/
(i hope jsfiddle is ok)
Thanks in advance
The text was updated successfully, but these errors were encountered: