I want a fat arrow in jsPlumb with a pretty tip.
This is what I want:
This is what I get:
How can I change the settings?
Here's what I currently use:
PaintStyle: { stroke: "#f00", strokeWidth: 20 },
connector: ["Straight"],
connectorOverlays:[["Arrow", { location:1, width:70, length:70 } ]]
I have been using arrows in SVG before. There, I could simply change the SVG code of the head to be moved forward so that the end of the line (the coordinates of the line end point) is inside the arrowhead triangle. I don't seem to be able to do this in jsPlumb.
I see it is difficult to convey the problem.
Here's a next try:
Setting the location to 0.99 actually did the thing for me. Try this:
PaintStyle: { stroke: "#f00", strokeWidth: 20 },
connector: ["Straight"],
connectorOverlays:[["Arrow", { location:0.99, width:70, length:70 } ]]
This could probably work. Please try it out
connector: ["StateMachine", {curviness:0.001}],
connectorOverlays:[
[
"Arrow",
{ location: [0.5, 0.5], width: 70, length: 70 }
]
]
Check out the Overlay location section in this webpage https://jsplumbtoolkit.com/community/doc/overlays.html#adding
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With