src/bidirectional-arrow-wire/docs/partials/bidirectional-arrow-basic-code.mustache
YUI().use('bidirectional-arrow-wire', function(Y) {
var mygraphic = new Y.Graphic({render: "#layer"});
var wire = mygraphic.addShape({
type: Y.BidirectionalArrowWire,
stroke: {
weight: 4,
color: "rgb(173,216,230)"
},
src: {
getXY: function() {
return [50,50];
}
},
tgt: {
getXY: function() {
return [400,150];
}
}
});
});