On 11-Mar-2015 07:42, Tavmjong Bah wrote:
I also plan an expandable menu that allows setting the 'viewBox' directly as well as handling the case (hopefully rare) where the X scale and Y scale differ.
I suspect that X:Y set in the viewbox to anything other than 1:1 will not stay that way in a round trip through any other graphic format. Maybe one that has an exactly equivalent viewbox concept, if there is such a format. What is probably going to happen is that the corresponding transform will be applied and the new coordinates written to the other format (which has X:Y == 1:1), and when read back into Inkscape the new viewbox will still have X:Y scale be 1:1 but the size of the viewbox will have been scaled to compensate. "Probably" because I have never tested this scenario. It is also fairly likely that many of the other file formats will just screw up that export, since they may well assume a 1:1 viewport scale. So please, when you do implement this, test exports to other formats and note those that have problems.
Regards,
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech