Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

piecon-component

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

piecon-component

Pie charts for component/favicon

latest
npmnpm
Version
0.0.3
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

pie

FAQs

Package last updated on 23 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts