W3C home > Mailing lists > Public > public-svg-ig@w3.org > July to September 2008

Re: y-axis reversal (was: Re: Agenda for Sept 25th call)

From: Helder Miguel Magalh„es <helder.magalhaes@efacec.pt>
Date: Mon, 29 Sep 2008 08:57:12 +0000
Message-ID: <BA0FD0EA8282D74CAE2088A5DCB4474B05276453@S005.maia.efacec.pt>
To: <public-svg-ig@w3.org>

Greetings everyone! :-)

(Bruce Rindahl)
> I am constantly fighting with the SVG default of the Y-direction is 
> positive downward on the screen. It is opposite of all GIS application 
> as well as graphs and PostScript/PDF.

As a coincidence, I've also recently bumped into this while trying to track down specific coordinates using Inkscape to aid hand editing for experiments. Inkscape (also) uses the bottom-left corner of the document as (0, 0) for the UI coordinates, which made a simple task a bit more complicated... You may take a look at Inkscape code to understand how it performs the SVG coordinates<->UI coordinates translation in order to achieve your objective. ;-)

(Robin Berjon)
> Once options for all those issues are outlined, it boils down to 
> looking at the implementation cost, and whether the use case justifies 
> it. One big question there will be whether doing this in the UAs is 
> justified, or whether creating a tool to handle coordinates inversion 
> automatically (for instance in XSLT) would be simpler.

Due to the possible implementation requirements and (possibly) breaking compatibility with previous versions of the specification (I'd have to investigate further to support this), I'd say that this should be done at the UA level. I'd like to call for more feedback before trying (it may already be there or the might be a configuration setting I'm not aware of) to post a feature request in Inkscape and/or other potential editors.


  Helder Magalh„es
Received on Tuesday, 30 September 2008 03:00:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:28:23 UTC