forma icon indicating copy to clipboard operation
forma copied to clipboard

SVG linearGradient `stop missing offset` error

Open yisibl opened this issue 2 years ago • 2 comments

<svg
  viewBox="0 0 10 10"
  xmlns="http://www.w3.org/2000/svg"
  xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
    <linearGradient id="myGradient" gradientTransform="rotate(90)">
      <stop offset="0" stop-color="gold" />
      <stop offset=".58" stop-color="red" />
    </linearGradient>
  </defs>

  <circle cx="5" cy="5" r="4" fill="url('#myGradient')" />
</svg>
thread 'main' panicked at 'stop missing offset', demo/src/demos/svg.rs:839:3

yisibl avatar May 18 '23 09:05 yisibl

The SVG parser in forma is mostly for demo purposes. Replacing it with usvg will make it more useful.

dragostis avatar May 22 '23 10:05 dragostis

usvg is great, do you have plans to migrate to usvg?

yisibl avatar May 22 '23 11:05 yisibl