A small library to have any gradient follow along any SVG path
MIT License
https://github.com/cereallarceny/gradient-path/compare/v2.2.0...v2.3.0
Published by cereallarceny over 5 years ago
A lot of internal changes, nothing to outwards facing.
One breaking change:
flattenSegments()
, instead, just write this yourself. There's no need for it to be a permanent part of the library. This can easily be replaced with the following:const data = getData({ path, segments, samples, precision });
const flattenedData = data.flatMap(({ samples }) => samples); // boom.
https://github.com/mnsht/gradient-path/compare/v2.0.0...v2.1.0
Published by cereallarceny over 5 years ago
So much stuff. We did a complete rewrite here of the entire library, including a ton of new Storybook stories for you to try out. The API is entirely different at this point, so... everything is a breaking change. If you're starting with this project now, start at this version.
https://github.com/mnsht/gradient-path/compare/v1.0.2...v2.0.0
Published by cereallarceny over 5 years ago
https://github.com/mnsht/gradient-path/compare/1.0.1...v1.0.2