Bug in importing SVG: transform ignored on <line>

The transform attribute placed directly on a element is ignored. Example:

&lt;svg
    version="1.1"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    viewBox="-2 -2 4 4">
  &lt;g stroke="black" stroke-width="0.05">
    &lt;line x1="0" y1="0" x2="1" y2="1"/>
    &lt;line x1="1" y1="0" x2="0" y2="1" transform="translate(1,0)"/>
  &lt;/g>
&lt;/svg>

In a browser or other software it renders as two line segments forming a V shape. In LightBurn they form a cross, because the transform is ignored.

If the is wrapped in a element, the transform on the element works fine.

As far as I can tell, is the only element type that is supported, but the transform on it is not. It’s definitely a bug.

A bit disappointing that nobody even cared enough to confirm the bug. I understand that only a subset of SVG spec is supported in LightBurn, but that’s like the most basic thing.

1 Like

Thank you for reporting this and the Bump.
Much appreciated.
I missed this when it went by the first time.

I’ll push it into the Dev channel tonight.
I apologize for the delay.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.