0.2.0 • Published 1 year ago

simplesvg v0.2.0

Weekly downloads
364
License
MIT
Repository
github
Last release
1 year ago

simplesvg

A very simple svg wrapper, inspired by original vivagraph

usage

You can grab it from CDN:

<script src='https://cdn.jsdelivr.net/npm/simplesvg@0.1.1/dist/simplesvg.min.js'></script>

Or get it via npm:

npm i simplesvg

And then use it like so:

var sivg = require('simplesvg'); // sivg is available as global variable in CDN distribution
var circle = sivg('circle', {
  r: 21,
  cx: 42,
  cy: 42,
  stroke: '#000',
  fill: 'deepskyblue'
});

// `circle` is a regular DOM element, you can append it to parent:
document.getElementById('scene').appendChild(circle);

install

With npm do:

npm install simplesvg

license

MIT

0.2.0

1 year ago

0.1.2

2 years ago

0.1.3

2 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago