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