0.2.0 • Published 3 years ago

simplesvg v0.2.0

Weekly downloads
364
License
MIT
Repository
github
Last release
3 years 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

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago