Package Exports
- @easylogic/path
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@easylogic/path) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Path Library with easylogic
How to use
import path from '@easylogic/path'
const d = "M20 20 L 30 30";
const pathObject = new path.PathParser(d);
pathObject.translate(100, 200)
pathObject.scale(1.2, 1.3)
pathObject.reflectionOrigin()
pathObject.flipX()
pathObject.flipY()
pathObject.skewX(10)
pathObject.skewY(10)
pathObject.rotate(90)
pathObject.rotate(90, 10, 10)
pathObject.getBBox()
pathObject.reverse()Development
git clone https://github.com/easylogic/path.git
cd path
npm install
npm run dev build
npm run build