Closed Anton-4 closed 4 years ago
Nice, I think your idea to merge Fill
and stroke
is a good one.
Merged in. Do you think you might have any other API breaking changes coming soon? Reason I ask is to decide if I should wait for those before publishing a new version, and get a few breaking changes into the new version. Or just go ahead and publish now if you don't have anything planned.
Thanks for reviewing! I have no additional breaking changes planned.
I needed gradients so I implemented them based on the discussion in #26. I am open to suggestions for changes, I thought the fastest way to move things along would be to start with a full implementation that can be changed as you see fit.
Because
Stroke
andFill
use identical arguments in the svg spec, so I replaced those types withPaint
. This also means code will not be backwards compatible.The current examples with exception for the animation were not working for me, I got a
ReferenceError: _Platform_export is not defined.
, possibly because I am using Elm 0.19.1 . I fixed the old examples and added new ones for multiple types of gradients and a pattern.