这是对我之前提问How to add a link with crow's foot erd notation in jointjs
的跟进以下是Thirumal帮助下的代码。
var lnk = createLink(parent, child).set(createLabel('0,N 1,1'));
lnk.attr({'.connection-wrap': { text: "FK columns: "+row.cols.replace(",",", ") } })
.attr({'.marker-source': { d: 'M 10 0 L 10 20 L 10 10 L 0 10 L 10 10 a 5,5 0 1,0 10,0 a 5,5 0 1,0 -10,0', fill: '#FFFFFF'} })
.attr({'.marker-target': { d: "M 0 0 L 10 10 L 0 10 L 10 10 L 0 20 L 10 10 a 5,5 0 1,0 10,0 a 5,5 0 1,0 -10,0", fill: '#FFFFFF'} });
乌鸦的脚看起来与灰色矩形有些脱节。无论我在何处拖动目标,如何使三个手指都动态连接到目标灰色矩形?
谢谢,