New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@evanshortiss/radial-indicator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evanshortiss/radial-indicator

A simple and light weight circular indicator plugin.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 02 May 2019

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc