0.1.2 • Published 8 years ago

parse-svg-path v0.1.2

Weekly downloads
176,243
License
MIT
Repository
github
Last release
8 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-pdflooped-eventsinline-style-editorimage360viewer@revideo-test/2dextended-domfl-svg2canvasfrontend-npm-goodiesopentype-geometrykpmp-custom-plotly.jsnormalize-svg-coordsplotly.jsplotly.js-cartesian-esmplotly.js-esmplotly.js-fix2point-at-lengthmorph-chartpixi.jsreact-social-media-iconsscong-react-fork-pdf-renderrehax-solidjsreact-telareact-native-redashreact-native-ticker-tapereact-pdf-renderrobin-path@asutrick/react-pdf-renderaframe-svgfile-componentcanvas-sketch-utilcanvas-sketch-util-umd@crunchr/plotly.jssvg-to-ttf-flutter-iconssvg-to-polysvg-mesh-3dsvg-path-boundssvg-line-segmentssvg-linearizesvg-protectsvg-path-sdfsvg-path-morph@community-garden/osmbuildingssvgosu@dhilt/plotly.js@digidem/react-pdf-rendertxt2svgcraftml@chibiland/pixiaxelra-react-native-redashsimple-svg-captchaanthillvizswiftvgsvgjellytween-svg-path@muros-ct/plotly.js@newcrom/plotly.js@exodus/react-native-redash@exadoctor/viz@r-pdf-rtl/render@revideo/2d@nutshelllabs/render@novalabs/pdf-rendervega-webgl-renderervideo-template-model@mesh.js/core@iconscout/unicons@motion-canvas/2d@lx-frontend/svg2canvas@flsh/svg2canvas@gorhom/sticky-item@giliweb/plotly.js@iiif/vault-helpers@react-pdf-jepek/render@react-pdf/render@react-18-pdf/render@react-18-pdf/rootwe-editcustom-plotly.js@jsxcad/convert-svg@kausal/plotly-custom@kjossendal/render@giangtong/plotly.js@jaksmok-react-pdf/render@hfribeiro/ska-plotly@jens-2020/render@hoangho1147/hoang-sankey-plotly@jkroso/move@lachie-pdf/render@shauncenter/react-pdf-render@tiger-za-pdf/render@tidepool/viz@uoa-eresearch/plotly.js@steel97/pixi.js@yunser/sketch-lib@yunser/ui-std@accurat/acc-data-portrait@ads.silva/render@ahone/svg2canvas@aloudata/bigraph
0.1.2

8 years ago

0.1.1

10 years ago

0.1.0

10 years ago