【发布时间】:2016-09-26 12:50:39
【问题描述】:
在jointJS中,我希望每个元素检查传入连接链接的数量。所以这是我根据文档制作的代码,但它不起作用:
_.each(this.graph.getElements(), function(element) {
var inboundLinksCount = this.graph.getConnectedLinks(element, {inbound: true}).length;
alert(inboundLinksCount);
}
这是getConnectedLinks在jointJS中的文档:
http://resources.jointjs.com/docs/jointjs/v1.0/joint.html#dia.Graph.prototype.getConnectedLinks
有什么想法吗?
【问题讨论】:
标签: jquery graph element jointjs rappid