JointJS 링크연결
-
JointJS 필요부분 정리Front-End 2018. 11. 2. 13:31
링크 Arrow 모양 변경 https://jsfiddle.net/vtalas/4copge0m/ 링크 양방향 화살표 없애기defaultLink: new joint.shapes.app.Link({ markup: [ '', '', '', '', '', //'' ].join(''), }), Object 간 Link연결시 이벤트 모니터링 graph.on('change:source change:target', function(link) { if (link.get('source').id && link.get('target').id) { // both ends of the link are connected. } }) 스텐실 Custom Object 생성{ type: 'devs.Model', attrs: { body :..