Skip to content

Repository files navigation

Progress

Circular progress indicator using canvas.

js progress indicator component

Installation

$ npm install progress-component

Example

varProgress=require('progress');varprogress=newProgress;document.body.appendChild(progress.el);varn=0;varid=setInterval(function(){if(n==100)clearInterval(id);progress.update(n++);},50);

API

Progress#update(n)

Update the indicator to n and re-draw.

Progress#font(family)

Change the font to family.

Progress#fontSize(n)

Change the font size to n.

Progress#size(n)

Change the indicator diameter to n, defaults to 50.

License

MIT

About

Circular progress indicator using Canvas

Resources

Stars

30 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages