How to correctly display, for example, a rectangle with x, y coordinates is greater than 100,000. So far, it turns out to form a canvas with dimensions from 0.0 to max (x, y) and lines draw this object. So I know that he is in the lower right corner. How to automatically focus on it? or output only this object to canvas, i.e. sizes from min (x, y) to max (x, y) of the object.