NorthwoodsSoftware / GoJS

JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.
http://gojs.net
Other
7.7k stars 2.86k forks source link

Change the origin of the diagram's coordinate #201

Closed tibdev78 closed 11 months ago

tibdev78 commented 11 months ago

Hi I'm a beginner in gojs and I've noticed that the origin of the diagram's coordinates is at the centre left and I'd like to change the origin to the bottom left. For example, if I set the coordinate of a point to "0,0", I'd like it to start at the bottom and not in the centre, then if i set to "0,50" it goes up etc... .

Is it possible to change the default behaviour programmatically ?.

simonsarris commented 11 months ago

I cannot think of a reasonable way to change the coordinate system.

You could have your bindings convert so that (0, 50) translates to (0, -50) for GoJS, but that may lead to a lot of confusion later down the line.

For general support please use the forum in the future https://forum.nwoods.com/c/gojs/11