W3C home > Mailing lists > Public > www-svg@w3.org > October 2013

Re: Other coordinate issues

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 8 Oct 2013 20:45:07 -0700
Message-ID: <CAAWBYDAjSijaLq59k3Q-BC=+PdtQvCy59msiyyT4JWD7ifZrmA@mail.gmail.com>
To: David Dailey <ddailey@zoominternet.net>
Cc: www-svg <www-svg@w3.org>
On Tue, Oct 8, 2013 at 7:19 PM, David Dailey <ddailey@zoominternet.net> wrote:
> a.       When one has reset part of a document to have a different viewport
> than another, or when one simply has changed the zoom level, it might be
> quite nice to be able to do something like <elementWithCoordinateSystem
> mousecoordinates=”local”> so that one doesn’t have to write quite so much
> script to figure out where the mouse is in the new local space.

The CSSOM View spec is finally defining a set of
coordinate-transforming functions for converting between points
relative to various boxes, getting rects/quads from elements relative
to some other box, etc.  These'll apply to SVG as well, obviously, and
should help solve this problem in a generic fashion.

> b.      It might be nice to be able to specify units on a viewbox as percent
> of the screen instead of as absolute units. One can do it through script,
> but then with script who needs SVG?

Just allow units in the viewBox definition, and then use the vw/vh
units, which are percentages of the viewport.

~TJ
Received on Wednesday, 9 October 2013 03:45:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:46 UTC