
On Wed, Apr 26, 2006 at 11:37:13AM -0500, ted@...11... wrote:
On Wed, 26 Apr 2006, Aaron Spike wrote:
I'm still rather hating the way I'm currently implementing attributes for storing live effects parameters.
Okay, I'm going to go off on a tangent here, but take a trip with me :)
I'd really, really, really like path effects to be implemented as extensions. I've got most of the code done to do this, I'll finish it up and get it into the main repository. With that, I'm going to suggest this syntax:
<path inkscape:path-effects="org.inkscape.patheffect.a, org.inkscape.patheffect.b" inkscape:extension-param-org.inkscape.patheffect.a-val1="1023" inkscape:extension-param-org.inkscape.patheffect.a-val2="bob" inkscape:extension-param-org.inkscape.patheffect.b-val1="1"
Concerning 'chattiness', the 'org.inkscape.' could be dropped since it is redundant with the 'inkscape:' prefix.
Bryce
d="M 1 2 L 3 4" inkscape:path-effect-orig-d="M 1 0 L 2 3" inkscape:pressures="1.0 0.8" inkscape:tilts="45 134" inkscape:pressures-orig="0.9 0.4" inkscape:tilts-orig="23 34"/>
I realize that this is a little chatty. I'm counting on gzip to fix that ;) But, seriosuly, it works with the code that already does parameters for extensions and it provides doing multiple effects. I think the only downside is that you can't include the same path effect twice with different parameters. If we want to do that, I think we'll have to go with child nodes.
--Ted
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&da... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel