
On Tue, 2007-02-06 at 06:50 -0600, Aaron Spike wrote:
Tavmjong Bah wrote:
As I reported earlier, the Envelope extension (AKA Summers Night) is broken in 0.44 and 0.45. I finally got time to look at it an the fix is trivial, just deleting a line. Three other lines can also be deleted as they are no longer necessary. It was due to a flip in the y coordinate. Patch attached.
Tav, the y coord flip hasn't yet happened. :-)
The effect uses command line arguments to determine the bounding boxes.
From the 0.44.1 release notes:
* The --query-* command line parameters now return the true SVG bounding box of the object instead of the Inkscape coordinate system bbox (with inverted Y axis). The new behavior makes more sense for scripting use of Inkscape.
I'll try to find some time to look into this. Please make sure there is a bug in the tracker assigned to me.
Will do.
Aaron Spike
Index: share/extensions/summersnight.py
--- share/extensions/summersnight.py (revision 14044) +++ share/extensions/summersnight.py (working copy) @@ -50,10 +50,6 @@ f = os.popen("inkscape --query-%s --query-id=%s %s" % (query,id,file)) self.q[query] = float(f.read()) f.close()
#glean document height from the SVG
docheight = inkex.unittouu(inkex.xml.xpath.Evaluate('/svg/@height',self.document)[0].value)
#Flip inkscapes transposed renderer coords
self.q['y'] = docheight - self.q['y'] - self.q['height'] #process path d = obj.attributes.getNamedItem('d')
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