For custom shapes, we have the facility to define the distanceToEdge
function to determine where the links touch the node-shape.
When node.display
is image, how do we do this?
I have a square image which has some transparent elements in its background and the thing representing the 'actual' node is in the middle of the image.
Right now, the links touch the transparent parts of the image, instead of the 'thing in the center'.
I've tried the imageCropping
options, but they mangle the image when cropping happens.