Yes, I think that should be possible. If you set the 'pathLength' attribute to some known value on the <path> element you want to trace, then you know how long the path will be in advance. Then you can calculate what to set the stroke-dashoffset to (eg. for 10% of the path it would be 10% of the 'pathLength' value).
Then set stoke-dasharray to the 'pathLength' value. You can have a 'keyTimes' that corresponds to each value in the 'values' attribute, and make sure they have the same number of values otherwise it won't work. Another option if you don't want to use 'pathLength' is to query the UA for the pathlength, with pathelement.getTotalLength(). That requires scripting though. Hope this helps /Erik On Fri, 16 Jan 2009 14:31:10 +0100, tim.becker80 <[email protected]> wrote: > Thank you Eric. > Well, yes, the from - to method like in the bustrack example is one > way. > However, it requires multiple <animate> elements and the code is > cumbersome. > If there was a way similar to keyTimes/values with which all the > location values and all the times are in a single <animate> element, > it would be nice. > Is there a way? > > > > > --- In [email protected], Erik Dahlström <e...@...> wrote: >> >> On Thu, 15 Jan 2009 18:18:14 +0100, tim.becker80 > <timothee.bec...@...> wrote: >> >> > Hi. >> > Thanks for your answers the other times. >> > >> > I've been trying to think of a way to use SMIL to produce the >> > following result: >> > Imagine that a point object moves along a defined path and that it >> > reaches every point at a defined time. So in fact, you have x, y, > t >> > coordinates. >> > Using SMIL keytimes and values once for x and once for y, it's > easy >> > to make your object move in the wanted way. >> > >> > What I have not managed to figure out how to do is to have a trail >> > "following the point". It should be something like a polyline that >> > follows the moving point. Following the same trail and reaching > each >> > x, y defined position at the same time as the point. >> > >> > I guess I could do this using multiple 'from - to animations' but > it >> > would be neater to use a method similar to keyTimes - values. Can > you >> > think of anything? >> >> Something similar to the animated bustrack here perhaps? >> >> http://www.carto.net/papers/svg/samples/animated_bustrack.shtml >> >> Cheers >> /Erik >> >> -- >> Erik Dahlstrom, Core Technology Developer, Opera Software >> Co-Chair, W3C SVG Working Group >> Personal blog: http://my.opera.com/macdev_ed >> > > > -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed ------------------------------------ ----- To unsubscribe send a message to: [email protected] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

