d3-icon

0.0.1 • Public • Published

d3-icon

This (very simple) D3.js module shall help to include common icons in your documents.

Installing

If you use NPM, npm install d3-icon. Otherwise, download the latest release.

    <script src="https://d3js.org/d3.v4.js"></script> 
    <script src="your/path/to/node/modules/d3-icon.js"></script> 

Usage

To draw a heart, use the following code fragment:

 
    var heartIcon = d3.icon({type: 'heart'});
    

To see in detail, how it works, have a look at the example.html. Run "npm run prepublish" to create the build folder used there.

Credits

Usefull stuff taken from D3 shape module.

Readme

Keywords

Package Sidebar

Install

npm i d3-icon

Weekly Downloads

3

Version

0.0.1

License

BSD-3-Clause

Last publish

Collaborators

  • ee_comsysto