Hi, i would like to trigger an event when the link path is recalculated (IE the link is dragged or a the path is changed or one of the endpoints is dragged, etc…). AFAIK I’d do that in updateRoute()
, so basically I’d need to create an extension of go.Link
and have it fire the event. The question is (other than “am I thinking it in the right direction?”), can I trigger a custom event from within goJS? Seems like a waste to have to create/handle the event outside…
What’s the purpose of the event? Is there a reason you can’t do what you want with just the override of the method Link.computePoints? (Not updateRoute
.)