Re: Animation in SVG 1.1

And one more question.  If you had this document:

  <svg ...>
    <circle cx="200" cy="200" r="0">
      <animate id="a4" attributeName="r" begin="5s" end="10s"
               from="0" to="100" fill="freeze"/>
    </circle>

    <animate id="a5" begin="a4.end" ... />
  </svg>

and at t=7s you did:

  a4.setAttributeNS(null, "end", "2s");

what would happen?  At t=7s the interval has already begun.  I guess I
can imagine three possibilities:

  - One would be where the interval ends at 7s--despite the fact that
    the attributes on the element now look like no interval could ever
    have been generated--and this 7s time is propagated to a5.

  - A second possibility is that the interval does not change, since it
    cannot be given inconsistent values such as begin="5s" end="2s"; 15s
    is propagated to a5 as a4's end time.

  - A third possibility is that the interval ends but the "impossible"
    time of 2s is propagated to a5.  Should the element be frozen at
    this point because fill="freeze"?  Or not, because the interval
    became invalid?

If I could get a clarification on this and the other, related questions,
I would be greatly appreciative.

Thanks,

Cameron

-- 
  e-mail : cam (at) mcc.id.au    	icq : 26955922
     web : http://mcc.id.au/	        msn : cam-msn (at) aka.mcc.id.au
  office : +61399055779		     jabber : heycam (at) jabber.org

Received on Monday, 14 November 2005 08:51:47 UTC