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

Re: animateMotion along things other than paths?

From: Dirk Schulze <dschulze@adobe.com>
Date: Sun, 30 Dec 2012 16:12:07 -0800
To: Alex Danilo <alex@abbra.com>
CC: David Dailey <ddailey@zoominternet.net>, "www-svg@w3.org" <www-svg@w3.org>
Message-ID: <360B4AB2-AC4B-469D-A715-2B15FA0243D3@adobe.com>

On Dec 30, 2012, at 2:19 PM, "Alex Danilo" <alex@abbra.com> wrote:

> Hi Dirk,
> 
> --Original Message--:
>> 
>> 
>> On Dec 29, 2012, at 4:40 PM, "Alex Danilo" <alex@abbra.com> wrote:
>> 
>>> Hi David,
>>> 
>>> There's no reason this would be hard. Quite the opposite in fact, it'd likely
>>> re-use much of the existing code in a renderer.
>>> 
>>> If it were to happen, the starting point of the motion and direction would
>>> follow the rules for stroking which mandates where dashing starts and goes.
>> 
>> With negative or positive offsets, the starting point would move as well? Does it mean you need to set stroke-dasharray-offset on the animation shape to change the starting point?

That is a great idea in general. I just wonder if you would always want to use this starting point for animations.

Greetings
Dirk

> 
> No, I mean we define the exact start point and direction for stroking on all the
> basic shaped which is only needed when you apply a dash.
> 
> So you'd use that definition as the path for animateMotion.
> 
> Cheers,
> Alex
> 
>> Greetings,
>> Dirk
>> 
>> 
>>> 
>>> Cheers,
>>> Alex
>>> 
>>> --Original Message--:
>>>> Just for fun, I tried using
>>>> 
>>>> 
>>>> <animateMotion dur="5s" rotate="auto" repeatCount="indefinite" >
>>>> 
>>>>   <mpath xlink:href="#E"/>
>>>> 
>>>> </animateMotion>
>>>> 
>>>> 
>>>> where #E actually refers to an ellipse rather than a path.  (Yes I am aware than I can make an ellipse using <path>)
>>>> 
>>>> 
>>>> Of course the spec [1] requires that the referenced geometry must be a path, but it made me wonder if this should not be extended to simple things like <circle>, <ellipse>, <polygon>, <star>, <rect> or even <use>. (Use would actually be quite handy for the thing I am working on at present)
>>>> 
>>>> 
>>>> Cheers
>>>> 
>>>> David
>>>> 
>>>> 
>>>> [1] http://www.w3.org/TR/SVG11/animate.html#AnimateMotionElement
>>> 
>>> 
>> 
>> 
>> 
> 
Received on Monday, 31 December 2012 00:12:36 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:53 GMT