Stephane,
Since you are working on the CSS properties, you might be able to help me. I checked closer the documentation ( I wanted to understand why Batik has a CSSOMReadOnlyStyleDeclaration ). The SVGStylableElement interface has a read-only CSSStyleDeclaration attribute, using getStyle() is not therefore allowed to change the style of an element. Should I apply back the StyleDeclaration on the element with : element.setAttribute('style',style.getCssText()); { see previous example } Or is there another way to update dynamically the CSS properties as far as the model is concerned ? Nicolas > -----Original Message----- > From: Stephane Hillion [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 9:13 AM > To: [EMAIL PROTECTED] > Subject: RE: Batik development > > > > From: Nicolas Socheleau [mailto:[EMAIL PROTECTED]] > > Sent: jeudi 28 février 2002 14:55 > > To: Vincent Hardy (E-mail); '[EMAIL PROTECTED]' > > Subject: RE: Batik development > > > > > > Thanks Vincent, > > > > I noticed the work done on the geometry of shapes to make this > > interactive. > > I've been playing with some scripts moving shapes around. I > noticed also > > that others attributes ( namely CSS properties ) are not > interactive. Is > > this a work in progress ? > > > > I used the following script which does not return any error : > > > > function hide( evt, targetID ) > > { > > var element = evt.target.ownerDocument.getElementbyId( > targetID ); > > var style = element.getStyle(); > > style.setProperty('visibility','hidden','important'); > > } > > > > After looking at the code, I realized that the > CSSStyleDeclaration doesn't > > support updates. Is somebody working on that ? > > > > I am working on a rewrite of the CSS processor with dynamic > updates support. > But don't hold your breath, there is a lot of work to be done. > Let's say in 1 or 2 months you will be able to run your > 'hide()' function... > -- > Stephane. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]