You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Cameron McCormack <ca...@mcc.id.au> on 2006/08/02 11:01:26 UTC
Re: SMIL animation: invalid CSS value again
Thomas DeWeese:
> This is an invalid CSS value (CSS doesn't allow scientific notation).
> I'm guessing the problem is that the SMIL engine doesn't 'restrict' it's
> self when animating CSS values.
Indeed.
> I'm guessing that Cameron will want to look at
> batik.svggen.SVGGeneratorContext and it's use of DecimalFormat to avoid
> use of scientific notation when stringitizing floats.
Seems a bit silly, but looks like I had to use a format string like:
"0.0###########################################################"
Anyway, fixed in SVN.
--
Cameron McCormack, http://mcc.id.au/
xmpp:heycam@jabber.org ▪ ICQ 26955922 ▪ MSN cam@mcc.id.au
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: SMIL animation: invalid CSS value again
Posted by Andreas Neumann <ne...@karto.baug.ethz.ch>.
Cool,
can confirm that it works fine now.
These examples seem to work already:
http://www.carto.net/papers/svg/samples/anim.svg
http://www.carto.net/papers/svg/samples/animated_bustrack.svg
Good to see that keySplines already work!
A lot of tests / examples can be found at http://olaf.kilu.de/svgtest/
I don't know if you are aware of this resource. It's quite comprehensive.
Maybe you can contact Dr. Olaf Hoffmann to give the Batik SVN version a
try and report the bugs.
Andreas
Cameron McCormack wrote:
>Thomas DeWeese:
>
>
>> This is an invalid CSS value (CSS doesn't allow scientific notation).
>>I'm guessing the problem is that the SMIL engine doesn't 'restrict' it's
>>self when animating CSS values.
>>
>>
>
>Indeed.
>
>
>
>> I'm guessing that Cameron will want to look at
>>batik.svggen.SVGGeneratorContext and it's use of DecimalFormat to avoid
>>use of scientific notation when stringitizing floats.
>>
>>
>
>Seems a bit silly, but looks like I had to use a format string like:
>
> "0.0###########################################################"
>
>Anyway, fixed in SVN.
>
>
>
--
----------------------------------------------
Andreas Neumann
Institute of Cartography
ETH Zurich
Wolfgang-Paulistrasse 15
CH-8093 Zurich, Switzerland
Phone: ++41-44-633 3031, Fax: ++41-44-633 1153
e-mail: neumann@karto.baug.ethz.ch
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org