Giter Site home page Giter Site logo

baku89 / pave Goto Github PK

View Code? Open in Web Editor NEW
42.0 3.0 1.0 1.3 MB

A environment-agnostic toolkit for manipulating SVG/Path2D curves

Home Page: https://baku89.github.io/pave/

License: MIT License

TypeScript 99.18% JavaScript 0.82%
canvas canvas2d graphics svg path2d vector-graphics

pave's Introduction

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.

pave's People

Contributors

baku89 avatar mmmintdesign avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mmmintdesign

pave's Issues

Weird Path.arc results

I noticed that the arc breaks or gets drawn wrong with specific angles.
Some examples are:
Path.arc([20, 40], 10, 0.3217505543966421, -2.819842099193151)
Path.arc([40, 40], 10, -1.82, 1.33)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.