Socket
Socket
Sign inDemoInstall

@evanshortiss/radial-indicator

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @evanshortiss/radial-indicator

A simple and light weight circular indicator plugin.


Version published
Weekly downloads
1
Maintainers
1
Install size
20.5 kB
Created
Weekly downloads
 

Readme

Source

radial-indicator

This package is a fork of radialIndicator by Sudhanshu Yadav.

I wanted to add TypeScript support and make it available via npm, but it seemed unmaintained so forking was easier.

Notable changes:

  • Version restarted at 1.0.0
  • Added TypeScript support
  • Removed AngularJS support
  • Added standardjs linting/format
  • Published on npm as @evanshortiss/radial-indicator
  • Changed name from camel case to use hyphens

Installation

Current install is from GitHub types branch. might publish to npm eventually.

npm install @evanshortiss/radial-indicator -S

TypeScript Usage

import radialIndicator from '@evanshortiss/radial-indicator'

// Can access interfaces as properties on the import
let indicator: radialIndicator.RadialIndicatorInstance|undefined

// Create a bar that goes from green to red
indicator = radialIndicator('#indicator-container', {
  initValue: 100,
  barColor: {
    100: '#33FF66',
    0: '#ff0000'
  },
  reverse: true,
  interpolate: true,
  radius: 30,
  fontColor: '#000'
})

// Set to 50% 
indicator.value(50)

Original README Content (Still Relevant)

A simple and light weight circular indicator plugin.

Check demo and documentation on http://ignitersworld.com/lab/radialIndicator.html

Major updates

1.4.0

  • Added option to support rendering in the opposite direction.

1.2.0

  • Added option to allow user interaction on mouse and touch events.
  • Added precision option to support float value.

1.1.0

  • Fixed draw issue on ipad and android devices and added onAnimationComplete callback.

FAQs

Last updated on 02 May 2019

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc