(13761) Drawing tools. URL gradients don't copy with shapes

I'm testing various old SVGs I drew in Inkscape to see how they work in the 8.3 drawing tools. If I copy/paste objects that were drawn in Inkscape in this way, the gradients get left behind. In this video I'm copying a few objects that have basic gradients from one drawing to another and they lose their gradients.

Gradients created within Ignition's drawing tools copy fine. This only impacts drawings made outside of Ignition. It's not a big deal but I figured I'd mention it in case it's easy to fix. I've attached the SVG I'm using to make it easy to reproduce the behavior.

Ballscrew-optimized

Hi Steve, I'm the developer of the Drawing Editor. I appreciate you making this post and it is especially useful that you attached the affected SVG.

In this case, you'll notice the fill of the affected elements is url(#someid) , meaning that the fill references an element with id someid . Implementing a copy-paste for such gradients would be tricky(but not impossible), as the SVG spec is enormously flexible as to where the element with id someid can be placed within the SVG (XML) and we'd need to figure out some way to solve collisions for id - ie the drawing that you paste a gradient into might already have a gradient with someid

I think it's a worthy feature to have, but it is likely to get lower priority than other feature requests.

I'll go ahead and create a feature ticket now.

3 Likes

That's both understandable and reasonable. I can work with things as they are. I just wanted to provide feedback on how to eventually improve the drawing tools so that future releases would be as flexible as possible.

SVGs are complicated. You have to cut the scope off somewhere; at least for the first pass :slight_smile:

1 Like