Adjust Coordinate system

Hello!

As the documentation explains, the document coordinates system, has it’s origin (point 0,0) on the Top Left corner, and the Y axis increases downwards. Is there a way to change this origin ?

As I’m trying to integrate some points from a coordinate system which has the Y axis increasing upwards (as most of the coordinates systems).
I’m currently adopting the GoJS document coordinates system by converting the Y coordinates accordingly.

Thanks!

Yes, use conversion functions that negate the y value in your Binding of Node.location, (in both directions if TwoWay).

It’s also commonplace to convert Points and Sizes by scaling them, in case the world coordinates used by your model don’t really match the pixel-like coordinates used by default in GoJS Diagrams. (That’s independent of the Diagram.scale property used for zooming in and out.)