List Info

Thread: Animating CSS: invalid values again




Animating CSS: invalid values again
user name
2006-08-14 08:08:05
Hi Cameron,

thanks for the fast reply.
Hmmm, that's strange. I still get the same error, although
I removed the trailing ";" as you described.
Loading the document is no problem, but starting the Update
Manager I get about 30-50 errors with different CSS-Values.
I use Java Version 1.5.06 and I just tested Java 1.4_12 but
with the same result.
My Batik-Version is the newest in the SVN-Repository.

Perhaps any further suggestions?

Thanks for help.

Florian

org.w3c.dom.DOMException: file:/D:/Data/Documents and
Settings/florian.pepping/Desktop/florian.svg:
The attribute "fill-opacity" represents an
invalid CSS value ("0,0029999613761901855").
Original message:
For input string: "0029999613761901855"
	at
org.apache.batik.css.engine.CSSEngine.setMainProperties(CSSE
ngine.java:1031)
	at
org.apache.batik.css.engine.CSSEngine$CSSNavigableDocumentHa
ndler.overrideStylePropertyChanged(CSSEngine.java:2555)
	at
org.apache.batik.dom.svg.SVGOMDocument.overrideStyleProperty
Changed(SVGOMDocument.java:486)
	at
org.apache.batik.dom.svg.SVGStylableElement$OverrideStyleDec
laration.propertyChanged(SVGStylableElement.java:749)
	at
org.apache.batik.css.dom.CSSOMStyleDeclaration.setProperty(C
SSOMStyleDeclaration.java:156)
	at
org.apache.batik.dom.svg.SVGStylableElement.updatePropertyVa
lue(SVGStylableElement.java:179)
	at
org.apache.batik.anim.AnimationEngine.tick(AnimationEngine.j
ava:321)
	at
org.apache.batik.bridge.SVGAnimationEngine.access$2(SVGAnima
tionEngine.java:1)
	at
org.apache.batik.bridge.SVGAnimationEngine$AnimationTickRunn
able.run(SVGAnimationEngine.java:657)
	at
org.apache.batik.util.RunnableQueue.run(RunnableQueue.java:2
36)
	at java.lang.Thread.run(Unknown Source)

##############################################

I simplified my animation a little bit but unfortunately
with no result.

<?xml version="1.0"
encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg
" xmlnslink=
"http://www.w3.org/1999/x
link"
contentScriptType="text/ecmascript"
zoomAndPan="magnify"
contentStyleType="text/css"
style="shape-rendering:geometricPrecision;
text-rendering:geometricPrecision;
image-rendering:optimizeQuality; fill-rule:evenodd;
clip-rule:evenodd" version="1.0"
width="145.2mm" xml:space="preserve"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 145.2 133.298"
height="133.298mm">
 <defs>
  <style type="text/css"
xml:space="preserve">
   <![CDATA[
    .str0
{stroke:#1F1A17;stroke-width:0.176;stroke-linecap:round;stro
ke-linejoin:round}
    .fil2 {fill:#FF0000}
    .fil0 {fill:#FF0000}
    .fil1 {fill:#FF0000}
    .fil3 {fill:#FF0000}
   ]]>
  </style>
 </defs>
 <g
transform="translate(-97.0351,-1020.94)">
   <g id="s1">
    <rect transform="matrix(0.444444 0.2566 0
0.501264 137.723 1069.59)" width="71.802"
class="fil1 str0" id="_84631240"
height="71.802"/>
    <polygon id="_84630264" class="fil2
str0" points="201.547,1069.59 169.635,1088.02
169.635,1124.01 201.547,1105.58 "/>
    <polygon id="_178553640"
class="fil3 str0" points="201.547,1069.59
169.635,1088.02 137.723,1069.59 169.635,1051.17
"/>
   </g>
  </g>
<animate id="ausblenden"
xlink:href="#s1"
 attributeName="fill-opacity" 
 attributeType="XML"
 from="1.0"
 to="0.0"
 begin ="1s"
 dur="5s"
 fill="freeze"
 repeatCount="1"/>

</svg

-----Original Message-----
From: Cameron McCormack [mailto:cammcc.id.au] 
Sent: Monday, August 14, 2006 9:01 AM
To: batik-usersxmlgraphics.apache.org
Subject: Re: Animating CSS: invalid values again

Hi Florian.

Pepping, Florian:
> referring to the message of Andreas Neuman from the 31
of July, I still
> get an error while animating the CSS-Value
"fill-opacity".

This works for me with the latest SVN code (after removing
the trailing
semicolon from the ‘ausblenden’ element’s begin
attribute.

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycamjabber.org  ▪  ICQ 26955922  ▪  MSN cammcc.id.au

------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org

Animating CSS: invalid values again
user name
2006-08-14 08:18:12
Pepping, Florian:
> thanks for the fast reply.
> Hmmm, that's strange. I still get the same error,
although I removed the trailing ";" as you
described. Loading the document is no problem, but starting
the Update Manager I get about 30-50 errors with different
CSS-Values.
> I use Java Version 1.5.06 and I just tested Java 1.4_12
but with the same result.
> My Batik-Version is the newest in the SVN-Repository.
> 
> Perhaps any further suggestions?

Oh dear, I see the problem now.  It’s using the locale
settings to
generate that number, using a comma instead of a dot. 
I’ll fix it in
SVN presently.

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycamjabber.org  ▪  ICQ 26955922  ▪  MSN cammcc.id.au

------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org

Animating CSS: invalid values again
user name
2006-08-14 08:43:43
Cameron McCormack:
> Oh dear, I see the problem now.  It’s using the
locale settings to
> generate that number, using a comma instead of a dot. 
I’ll fix it in
> SVN presently.

Ok, fixed hopefully.  Could you give the new code a try?

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycamjabber.org  ▪  ICQ 26955922  ▪  MSN cammcc.id.au

------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-users-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-users-helpxmlgraphics.apache.org

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )