dumper::styleTkPathNew
styleTkPathNew ID \ window optsl
Generate code for a named style, here the ID must be used in combination with the window. That is, the window will be mapped as a group and the style is part of the group's defs block.
strip the option's name of their leading minus sign (-).
Windows construct a new »viewport« using the <svg/> tag, the <defs/> section is moved from the »group« <g/> up, directly underneath the viewport <svg/>.
This does not affect styles; processed with »styleTkPathNew«, which are regular elements of a »PathCanvas« window! Don't get confused about window styles here.
styleTkPathNew is being used by ::vgcode::style clients.
Example 4.46. ::vgcode::style using styleTkPathNew
... lappend optsl \ [dumper::property $attr $value] } append _styles \ [dumper::styleTkPathNew $param $ta_name $optsl]
Copyright © 2009–2010 Arndt Roger Schneider