parse-svg-path

WebJar for parse-svg-path

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

parse-svg-path
Last Version

Last Version

0.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

parse-svg-path
WebJar for parse-svg-path
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jkroso/parse-svg-path

Download parse-svg-path

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/parse-svg-path/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>parse-svg-path</artifactId>
    <version>0.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/parse-svg-path/
implementation 'org.webjars.npm:parse-svg-path:0.1.2'
// https://jarcasting.com/artifacts/org.webjars.npm/parse-svg-path/
implementation ("org.webjars.npm:parse-svg-path:0.1.2")
'org.webjars.npm:parse-svg-path:jar:0.1.2'
<dependency org="org.webjars.npm" name="parse-svg-path" rev="0.1.2">
  <artifact name="parse-svg-path" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='parse-svg-path', version='0.1.2')
)
libraryDependencies += "org.webjars.npm" % "parse-svg-path" % "0.1.2"
[org.webjars.npm/parse-svg-path "0.1.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.1.2