Hey,
I want to setup a mouseDown
handler for nodes within a diagram
. I’ve set up the template using the following approach:
$(go.Node, 'Auto',
{
isActionable: true,
actionDown: function () {
//Dance like a ninja ;)
}
}
$(go.Shape, 'Rectangle', {
fill: '#FFF',
width: 10,
height: 10
}),
new go.Binding('location', 'latlong', calcDiagramLocation.bind(this, map))
);
But this approach has the effect, that the default behavior of selecting the node won’t be executed. I simply want to add additional behavior.