curvify-svg-path

1.0.1 • Public • Published

curvify-svg-path

a rewrite of normalize-svg-path that does away with svg-arc-to-cubic-bezier

Build status

install

$ npm install michaelrhodes/curvify-svg-path#1.0.0

use

var abs = require('abs-svg-path')
var parse = require('parse-svg-path')
var curvify = require('curvify-svg-path')
 
curvify(abs(parse('M0 0 L10 10 A10 10 0 0 0 20 20 Z')))
=> [['M',0,0],['C',0,0,10,10,10,10],['C',10,15.5,14.5,20,20,20],['C',20,20,0,0,0,0]]
curvify x 1,405,052 ops/sec ±0.98% (86 runs sampled)
normalize x 1,261,684 ops/sec ±0.97% (87 runs sampled)

obey

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i curvify-svg-path

Weekly Downloads

70

Version

1.0.1

License

MIT

Unpacked Size

10.3 kB

Total Files

7

Last publish

Collaborators

  • michaelrhodes