TGML Coordinate System

The origin of the TGML default coordinate system is in the upper-left corner. Values of x increase as you move right, and values of y increase as you move down.

Container elements such as TGML and Component establish new coordinate systems. Group is also a container element, but does not establish a new coordinate system.


Coordinates

The unit of measurement for coordinates is the device independent pixel, which is 1/96 of an inch (96dpi). The data type for coordinates and lengths (that is, Width and Height) is Double.

Initial Scale

A TGML viewer uses the Width, Height and Stretch attributes of the outermost TGML element to determine the initial scale. Stretch specifies if the document is scaled to fit within the work area (preserving the aspect ratio or not) or if the original size is preserved (scale 1:1).