Now thinking about it, maybe a solution would be to have a stack of parent redirection on an SVG node and when using the node, to add the <use> node as parent redirection while calling the draw method on the used node.
Or maybe just have a simple variable for parent redirection.
Thanks for the reply.
Maybe some time I'll have a peak and see If I could help implement it.
Sure, any input is welcome.
Here's a screen shot of it's path editor.
Looks good.
I'm also wondering whether my SVG editor could be of use within Lazpaint?
LazPaint has SVG layers, so in theory it would be possible to implement selection of shapes, and for paths, the modification of paths. There would the matrix transformation to consider, because within SVG it is possible transform a part and the SVG layer itself can be transformed.
There is already kind of framework to provide an editor for a layer (
TBGRALayerOriginal), that is used by the (non SVG) vector layers (
TVectorOriginal in LazPaintControls package).
There would be some plumbing to do to detect clicks, whether they land on an SVG shape.