On Tue, 2014-04-29 at 13:47 +0200, Krzysztof KosiĆski wrote:
I am looking for a way to join two (potentially non-end) nodes from
different paths into one, so when I move the node both paths are modified accordingly.
This is currently impossible to represent in SVG without elaborate hacks.
I've thought about this issue too since I've had artworks that would have been easier with it. But looking at the svg specification, it's just not built to think of nodes as objects, even storing an index, the nodes last-known position or both, it would get very fiddly to store.
That said, there might be a design that could work in the UI but not reflect in the svg itself.
At the moment when using the node-tool on a group, we ignore the group an automatically drill down to the object under focus. What if when it did this it checked other paths in that same group layer for nodes at that exact point?
The user would do this: select two paths, group them, select one node (currently not possible) from each path and use the align tool to put them in the same place. Or perhaps a button to do that.
The code would do this: selected->path's->group is not selected group. loop through objects in the group and check for nodes that have the exact coordinates of the selected node in the selected path. Moving them all at the same time.
Complications: Move computation time for moving nodes in groups.
Thoughts?
Best Regards, Martin Owens