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-model@community-garden/osmbuildings@revideo-test/2dtxt2svgtween-svg-path@asutrick/react-pdf-render@ahone/svg2canvas@ads.silva/render@aloudata/bigraph@chibiland/pixi@accurat/acc-data-portrait@dhilt/plotly.js@crunchr/plotly.jsvega-webgl-renderer@digidem/react-pdf-render@hoangho1147/hoang-sankey-plotly@hfribeiro/ska-plotly@iconscout/unicons@flsh/svg2canvas@giliweb/plotly.js@giangtong/plotly.js@gorhom/sticky-item@lachie-pdf/render@lx-frontend/svg2canvas@motion-canvas/2d@muros-ct/plotly.js@newcrom/plotly.js@exadoctor/viz@exodus/react-native-redash@mesh.js/core@kausal/plotly-custom@jkroso/move@jens-2020/render@jaksmok-react-pdf/render@kjossendal/render@jsxcad/convert-svg@iiif/vault-helpers@react-pdf/render@react-pdf-jepek/render@react-18-pdf/render@react-18-pdf/root@r-pdf-rtl/render@novalabs/pdf-render@nutshelllabs/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-captchaimage360viewerhyphy-visioninline-style-editorlooped-eventskpmp-custom-plotly.js@tiger-za-pdf/render@tidepool/viz@uoa-eresearch/plotly.js@yunser/sketch-lib@yunser/ui-std@steel97/pixi.js@svg-to-motion-canvas/2daframe-svgfile-componentaxelra-react-native-redashanthillvizcanvas-sketch-utilcanvas-sketch-util-umdcraftmlcustom-plotly.jsdraw-svg-pathextended-dom
0.1.2

9 years ago

0.1.1

12 years ago

0.1.0

12 years ago