I'm trying to translate https://gist.github.com/mbostock/3750558 into F#, and I can get everything to work except for the
dragstart event handler (https://gist.github.com/mbostock/3750558#file-index-html-L35):
var drag = force.drag().on("dragstart", dragstart);
In the WebSharper API
force.Drag is a
.On method. I've also tried to treat the dragstart event in the same way as a click event:
1 2 3
someSelectionOfForceNodes .Call(force.Drag) .On("dragstart", dragstart) // dragstart handler not shown
but in this case the dragstart handler is never called.
What am I missing?