0.1.2 • Published 9 years ago

parse-svg-path v0.1.2

Weekly downloads
176,243
License
MIT
Repository
github
Last release
9 years ago

parse-svg-path

A minimal svg path parser. For the delux model see hughsk/svg-path-parser or for the streaming model see nfroidure/SVGPathData.

Installation

  • packin: packin add jkroso/parse-svg-path
  • component: component install jkroso/parse-svg-path
  • npm: npm install parse-svg-path

then in your app:

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

API

parse(string)

parse an svg path data string. Generates an Array of commands where each command is an Array of the form [command, arg1, arg2, ...]

parse('m1 2 3 4') // => [['m',1,2],['l',3,4]]

Running the tests

Just run make and navigate your browser to the test directory.

@infinitebrahmanuniverse/nolb-parse-@everything-registry/sub-chunk-2411temporary-react-pdfswiftvgsvg-protectsvg-path-sdfsvgosusvg-path-morphsvg-mesh-3dsvg-path-boundssvg-line-segmentssvg-linearizesvgjellywe-editsvg-to-polysvg-to-ttf-flutter-iconsvideo-template-modelimage360viewerhyphy-visioninline-style-editorlooped-eventskpmp-custom-plotly.js@tiger-za-pdf/render@tidepool/viz@uoa-eresearch/plotly.js@yunser/sketch-lib@yunser/ui-stdaframe-svgfile-componentaxelra-react-native-redashanthillviz@asutrick/react-pdf-render@cloudhubreact-pdf/render@gorhom/sticky-item@accurat/acc-data-portrait@ahone/svg2canvas@ads.silva/render@crunchr/plotly.js@aloudata/bigraph@community-garden/osmbuildings@revideo-test/2dtxt2svgtween-svg-path@chibiland/pixivega-webgl-renderer@lachie-pdf/render@motion-canvas/2d@muros-ct/plotly.js@newcrom/plotly.js@kausal/plotly-custom@kjossendal/render@react-pdf/render@react-pdf-jepek/render@react-18-pdf/render@react-18-pdf/root@r-pdf-rtl/render@revideo/2dmorph-chartopentype-geometryscong-react-fork-pdf-renderrobin-pathrehax-solidjsreact-native-ticker-tapereact-native-redashnormalize-svg-coordspixi-unsafepoint-at-lengthplotly.jsplotly.js-esmplotly.js-cartesian-esmplotly.js-fix2react-pdf-renderreact-telareact-social-media-iconssimple-svg-captchacanvas-sketch-utilcanvas-sketch-util-umdcraftmlcustom-plotly.jsdraw-svg-pathfrontend-npm-goodies@shauncenter/react-pdf-render@steel97/pixi.js@svg-to-motion-canvas/2dextended-domfl-svg2canvas@jkroso/move@lx-frontend/svg2canvas@jaksmok-react-pdf/render@flsh/svg2canvas@digidem/react-pdf-render@dhilt/plotly.js@iconscout/unicons@iiif/vault-helpers@novalabs/pdf-render@nutshelllabs/render@exadoctor/viz@hoangho1147/hoang-sankey-plotly@hfribeiro/ska-plotly@exodus/react-native-redash@jens-2020/render
0.1.2

9 years ago

0.1.1

12 years ago

0.1.0

12 years ago