Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

yields/svg-create

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svg-create

Create SVG elements

Installation

Install with component(1):

$ component install yields/svg-create

API

create(tag[, length])

Create an array of svg elements of tag, with length which is defaulted to 1.

var els = create('text', 8);
assert(8 == els.length);
els.forEach(function(el){
  assert('text' == el.tagName);
});

License

MIT

About

Create svg elements

Resources

Stars

Watchers

Forks

Packages

No packages published