svgdom::addStyle
addStyle style \ properties pnode doc
Styles are defined inside a <defs> </defs> section, either local to a <group/> or the document itself.
The styles representing window classes are added to the svg document style section.
The style is added to the <defs/> section of the given group »pnode«.
addStyle is being used by ::dumper::tagconfigure, ::dumper::classStyle, ::dumper::styleTkPathNew clients.
Example 8.5. ::dumper::tagconfigure using addStyle
... # is a text/css and CDATA object and has to be added as # such! The style is named after the tag. # fixme (Roger) 10/23/2008 : Doesn't work! svgdom::addStyle $tag \ [resolve::property $pairs font ]
Copyright © 2009–2010 Arndt Roger Schneider