Use GoJS in with GWT

Hi, we’d like to know if ther is a way to use GoJS in a GWT application.


If you want to be able to use GoJS in a GWT app, I believe that the best course of action is to create a custom GWT widget using JSNI and Overlay Types. Those Overlay Type definitions, written in Java for GWT, would constitute a wrapper or veneer library that would make use of the go.js JavaScript library at run-time.

We have not written such a wrapper library for GWT, but I believe it would not be difficult to do so for just those bits of functionality that you need to use.

It might not be too hard to automatically translate the GoJS.d.ts TypeScript definition library into custom GWT widget definitions, which would save a lot of work and avoid a lot of potential errors that might arise with a hand-written effort.