abs-svg-path
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/abs-svg-path package

0.1.1 • Public • Published

abs-svg-path

redefine an svg path with absolute coordinates

Installation

With packin or component

$ packin add jkroso/abs-svg-path

then in your app:

var abs = require('abs-svg-path')

API

abs(path)

redefine path with absolute coordinates

abs([['l',10,20],['l',30,40]]) // => [['L',10,20],['L',40,60]]
abs([
  ['q', 1,2, 33,44],
  ['L', 50,60],
  ['c', 1,2, 3,4, 33,44]
]) // => [['Q',1,2,33,44],['L', 50, 60],['C',51,62, 53,64, 83,104]]

Running the tests

Just run make test

Dependents (0)

Package Sidebar

Install

npm i abs-svg-path

Weekly Downloads

761,896

Version

0.1.1

License

MIT

Last publish

Collaborators

  • jkroso