abs-svg-path
redefine an svg path with absolute coordinates
Last updated 11 years ago by jkroso .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install abs-svg-path 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.1                                ...           latest (11 years ago)

2 Versions

  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |