W3C home > Mailing lists > Public > www-svg@w3.org > July 2012

Re: Pan Wrap

From: Cyril Concolato <cyril.concolato@telecom-paristech.fr>
Date: Tue, 17 Jul 2012 10:10:32 +0200
Message-ID: <50051DF8.4030808@telecom-paristech.fr>
To: www-svg@w3.org
Hi Doug,

Le 7/16/2012 4:56 PM, Doug Schepers a écrit :
> Hi, folks-
> I was just reminded of a use case I thought of long ago, but never 
> articulated: the ability to wrap an SVG image on either (or both) the 
> x or y axis.
> This would be most useful for maps, though there would be other uses. 
> For example, when panning east to west on a map, currently, you just 
> "run out" of map... you bump into the western border; if we allowed 
> pan wrapping, the western (leftmost) border would attach seamlessly to 
> the eastern (rightmost) border, making a continuous pan. See this 
> submarine cable map for a practical example [1].
> This might complicate the viewBox (depending on how that interaction 
> is defined), but I still think we should discuss it.
> I imagine this working much like CSS background tiling; it could be as 
> simple as having a 'pan-wrap' property, with values 'repeat-x | 
> repeat-x | repeat | none'.
This looks like you want the "spreadMethod = "pad | reflect | repeat"" 
(or a improved version) of the gradient elements apply to a pattern 
element, no?

My 2 cents,

> This is one of those things that would be relatively simple to do in a 
> UA, and hard to do in script or markup (I think).
> [1] http://submarine-cable-map-2012.telegeography.com/
> Regards-
> -Doug
Received on Tuesday, 17 July 2012 08:10:55 UTC

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