Making it responsive?


I’m making a website and I am building with GraphObject.make and I was wondering if there is a way to make the website responsive/ mobile responsive? Since I am using GraphObject I cannot use html to make it responsive and I’ve tried CSS and can’t seem to get that to work. Is there a built in way using gojs to make it responsive?

A GoJS diagram occupies a single DIV element on your page. How is it that you would want GoJS to make your whole website “responsive”?

GoJS has always worked on mobile devices, including tablets and smartphones.

If you are wanting the diagram to resize when the DIV resizes, you’ll need JavaScript to listen to the DIV resize (or screen resize) and then ask the diagram resize:

By the way, when rotating a smartphone/tablet, GoJS will automatically adapt to a new size DIV, because GoJS does handle window “resize” events.