@av8orbynight wrote:
I'm at a bit of a loss on how I should be using DragZoomingTool.js from https://gojs.net/latest/extensions/DragZooming.html in my typescript based code (Angular 2+ CLI).
This is the message I'm getting if I simply copy/paste the code globally in my component:
If I try to create a DragZoomingTool class, I run in to various errors.
If I try to extend go.Tool:
class DragZoomingTool extends go.Tool {
foo(){}
}
I get "Argument of type 'typeof Tool' is not assignable to parameter of type 'Constructor'" at:
go.Diagram.inherit(DragZoomingTool, go.Tool);Would you be able to steer me into the right way of using DragZoomingTool in Angular 2+?
Thanks for your help.
Posts: 9
Participants: 2
