abs-svg-path

WebJar for abs-svg-path

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

abs-svg-path
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

abs-svg-path
WebJar for abs-svg-path
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download abs-svg-path

How to add to project

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

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.

abs-svg-path

redefine an svg path with absolute coordinates

Installation

With packin or component

$ packin add jkroso/abs-svg-path

then in your app:

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

API

abs(path)

redefine path with absolute coordinates

abs([['l',10,20],['l',30,40]]) // => [['L',10,20],['L',40,60]]
abs([
  ['q', 1,2, 33,44],
  ['L', 50,60],
  ['c', 1,2, 3,4, 33,44]
]) // => [['Q',1,2,33,44],['L', 50, 60],['C',51,62, 53,64, 83,104]]

Running the tests

Just run make test

Versions

Version
0.1.1