Kinetic.js を使用してオブジェクトを作成しています。jsPlumb.js を使用して 2 つのオブジェクトをソースと宛先として接続したいのですが、接続できません。私のコードは次のようになります
var end0=stage.find("#"+source.attrs.id);
var end1=stage.find("#"+destination.attrs.id);
jsPlumb.makeSource(end0);
jsPlumb.makeTarget(end1);
jsPlumb.connect({
source:e0,
target:e1,
paintStyle:{ lineWidth:10, strokeStyle:'black' },
endpoint:new jsPlumb.Endpoints.Rectangle({width:10, height:15}),
anchor:[ "Perimeter", { shape:"Circle" } ]
});
一緒に使用できますか?はいの場合、例を教えてください