cubify
v0.0.3
Published
transform path d attribute into list of cubic bezier segment
Downloads
1
Readme
cubify
Convert d
of SVG path into list of cubic bezier curves. Source code adopted from Snap.svg ( specifically path.js ), rearranged specific for this particular usage.
Formally @zbryikt/pathconvert, refactored and transferred here.
Usage
Install:
npm install cubify
use require
for Node.js or include with <script>
in website:
<script src="path-to-cubify-dist/index.js"></script>
require("cubify"); /* for Node.js */
result = cubify(d);
License
The original source code is released under Apache License
The adopted code is released under MIT License.