@baku89/pave
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

Pave is a environment-agnostic toolkit specialized for manipulating SVG/Path2D curves, which includes creating primitives, calculating positions/normals/tangents, offsetting, and resampling paths. All of the API are provided in a functional programming manner, and the path data is represented as an immutable plain object.

Currently, the library heavily depends on Bazier.js by Pomax and Paper.js by Jürg Lehni -- or it might be said that this library is a thin wrapper for them to provide FP-oriented interfaces. Although I'm going to rewrite the whole library with zero dependencies for performance and file size, please consider sponsoring them if you think it'd be useful.

Development

git clone https://github.com/baku89/pave
cd pave
yarn install
yarn test --watch

License

This repository is published under an MIT License. See the included LICENSE file.

Package Sidebar

Install

npm i @baku89/pave

Weekly Downloads

2

Version

0.5.1

License

MIT

Unpacked Size

882 kB

Total Files

93

Last publish

Collaborators

  • baku89