0.0.3 • Published 2 years ago

cubify v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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.