grobToDev(x, dev)
The difference between this function and primToDev()
is
that this one takes care of setting up coordinate systems based on
the grid viewports so that
SVG output is positioned correctly, then it calls primToDev()
to produce the actual SVG elements.