It would speed things up, for sure. The code currently iterated through every item in the selections, calling inkscape once to get this information then parsing through it to extract the selected nodes would be great.
Even better would be if the x,y,w,h could be exposed via DOM so that no shell out to inkscape would be required.
Also, I think this extension should work in .45 if the optiongroup was not used... say a number choice 1-4 for the direction and 1-9 for the anchor. But that is ugly :)
-Rob A>
On Nov 29, 2007 11:44 AM, Terry Brown <terry_n_brown@...12...> wrote:
Very cool, you demonstration's a good one but I suspect there are all sorts of other applications for such a tool. I have a making-slides-in-inkscape program that also creeps along because of invoking inkscape many times to get positions of things... on my todo list is a patch to add a switch for inkscape to dump x,y,w,h for everything - hopefully that would help you too?
Cheers -Terry