Closed Nek closed 2 years ago
It's actually just hdom. Example incoming.
And here I've added empty gradientTransform to the gradients and it made it work. https://codesandbox.io/s/loving-sun-xyn8xp?file=/src/index.ts
Also, convertTree doesn't convert numerical values into percentage strings. What am I doing wrong?
Well, I guess it's partially me. I've added gradientUnits: "objectBoundingBox"
and it fixed the issue.
svg.convertTree on defs with gradients produces a piece of data that makes updateDOM from @thi.ng/transducers-hdom break. Minimal reproduction is available here: https://codesandbox.io/s/new-sunset-3tyefg?file=/src/index.ts Please check the console.