nega-donut

0.0.0 • Public • Published

nega-donut

<nega-donut>

SVG Donut as a WebComponent

Published on webcomponents.org

See: Documentation, Demo.

Usage

Installation

npm install --save nega-donut

In an html file

<html>
  <head>
    <script type="module">
      import 'nega-donut/nega-donut.js';
    </script>
  </head>
  <body>
    <nega-donut value="200" percent="90"></nega-donut>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement, html} from '@polymer/polymer';
import 'nega-donut/nega-donut.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
      <nega-donut value="200" percent="90"></nega-donut>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Contributing

Feel free to fork and send over PRs. Still a lot of places this can be improved, i.e. styling, more options, or better behaviors.

Installation

git clone https://github.com/kennethklee/nega-donut
cd nega-donut
npm install

Running locally

$ npm start

Running tests

$ npm test

Dependencies (2)

Dev Dependencies (6)

Package Sidebar

Install

npm i nega-donut

Weekly Downloads

0

Version

0.0.0

License

ISC

Unpacked Size

11.1 kB

Total Files

8

Last publish

Collaborators

  • kennethkl