W3C home > Mailing lists > Public > www-svg@w3.org > January 2006

Effect of 'animateMotion' on transform.animVal

From: Cameron McCormack <cam-www-svg@aka.mcc.id.au>
Date: Tue, 10 Jan 2006 10:31:19 +1100
To: www-svg@w3.org
Message-ID: <20060109233119.GA11106@port.mcc.id.au>

Hi WG.

I'd like to get something clarified about 'animateMotion'.  If an
object's position is animated using this element, does the animated
transform value reflect this?  While the text for 'animateTransform'[1]

  The 'animateTransform' element animates a transformation attribute on
  a target element, [...]

and I'm guessing that by "a transformation attribute" it means "the
transform attribute", the text for 'animationMotion'[2] is less clear:

  The 'animateMotion' element causes a referenced element to move along
  a motion path.

It also says:

  The various (x,y) points of the shape provide a supplemental
  transformation matrix onto the CTM for the referenced object which
  causes a translation along the x- and y-axes of the current user
  coordinate system by the (x,y) values of the shape computed over time.
  Thus, the referenced object is translated over time by the offset of
  the motion path relative to the origin of the current user coordinate
  system. The supplemental transformation is applied on top of any
  transformations due to the target element's transform attribute or any
  animations on that attribute due to 'animateTransform' elements on the
  target element.

so there is an extra transformation in there that at least manifests
itself in the return value of SVGLocatable.getCTM.  But it doesn't say
if it should go in the animVal.

Perhaps if it doesn't affect the animated transform value it is because
'animateMotion' can be applied to elements that don't implement
SVGTransformable.  In the list of elements that can be animated with
'animateMotion', only one of them doesn't implement SVGTransformable:
'mask'.  But then, 'mask' doesn't implement SVGLocatable either, so I'm
not sure what it means to animate its motion when it doesn't have a CTM.

It would be great if this could be clarified for me.



[1] http://www.w3.org/TR/SVG11/animate.html#AnimateTransformElement
[2] http://www.w3.org/TR/SVG11/animate.html#AnimateMotionElement

 Cameron McCormack			ICQ: 26955922
 cam (at) mcc.id.au			MSN: cam (at) mcc.id.au
 http://mcc.id.au/			JBR: heycam (at) jabber.org
Received on Monday, 9 January 2006 23:31:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:06 UTC