Re: [Inkscape-devel] Glue : SVG Support ? Inkscape Sypport ?
On Wed, Nov 10, 2004 at 12:55:55PM +1100, NAGY Endre wrote:
When do you expect connector support to be available. I could not find a reference to it in the Milestone document for the 0.40 release.
It isn't mentioned in the NEWS items because it isn't considered user-ready. E.g. there's no way of forming or breaking connections other than editing the SVG (say using inkscape's XML editor). What I've done is just enough for the non-inkscape work I'm doing: I can write SVG files from a java program, and when I'm using inkscape I can drag boxes around and have the lines follow.
The insight that would get me started would be, what would be the content of the SVG that supports a "connection" ?. As I mentioned in my original posting I am creating SVG programmatically and wanted to use Inkscape to edit an imported file that allready contained connected elements. An example SVG with a brief pointer to the relevent elements and attributes would be helpful.
See the inkscape:connection-start="#ID" and inkscape:connection-end="#ID" attributes in the appended example file, and note the two xmlns lines in the <svg> element's attributes.
pjrm.
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
<rect style="fill:#0000ff;stroke:#000" id="my-rect" x="400" y="200" width="180" height="100" /> <ellipse style="fill:#ff0000;stroke:#000" id="my-ellipse" cx="150" cy="250" rx="80" ry="50" /> <path style="fill:none;stroke:#000" d="M 230,250 L 400,250" inkscape:connection-start="#my-rect" inkscape:connection-end="#my-ellipse" /> </svg>
On Wed, Nov 10, 2004 at 02:00:31PM +1100, Peter Moulder wrote:
See the inkscape:connection-start="#ID" and inkscape:connection-end="#ID" attributes in the appended example file, and note the two xmlns lines in the <svg> element's attributes.
Aack! I didn't see this go in! So cool! Between text-follows-path and this, Inkscape has everything I ever wanted now! Wooo! :)
participants (2)
-
Kees Cook
-
Peter Moulder