Skip to content

component/piecon

Repository files navigation

piecon

Pie charts for component/favicon inspired by the original piecon. Styled with CSS!

js pie favicons

Installation

$ component install component/piecon

Styling

Piecon utilizes component/style to enable CSS styling for Canvas rasters. For example the default style is:

.pie {
  color: #EC4E89;
  background: #bbb;
  border: 2px solid white;
}

API

new Piecon([selector])

Initialize a new Piecon with optional CSS selector used for styling, this defaults to ".pie".

Piecon#update(n)

Update the percentage to n, this will automatically draw the pie and replace the favicon.

Piecon#size(n)

Set the diameter to n.

Piecon#reset()

Reset favicon.

License

MIT

About

Pie favicons -- great for upload progress etc

Resources

Stars

Watchers

Forks

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy