JSPM

@easylogic/path

0.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q23658F
  • License MIT

simple path manipulate library with easylogic

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 

License : MIT