Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-svg-progress

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-svg-progress

SVG progress loader compactable for angular and ionic

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

https://badgen.net/bundlephobia/minzip/angular-svg-progress 1.7 min zipped lightweight progress bar

Angular SVG Progress

SVG Progress component for angular and ionic framework consist of bar, heart and circular loaders.

Appearance

Appearence

Features

  • Each loader component is an svg.
  • Consist of bar, heart and circular loaders.
  • Can be scaled to any size.
  • customize color, size, value, border-radius, direction.

Installation

1. Install the NPM Package
npm install --save angular-svg-progress
2. Import AngularSvgProgressModule module

Add AngularSvgProgressModule in your app's root module

import { AngularSvgProgressModule } from 'angular-svg-progress';

// import the module
@NgModule({
  ...
  imports: [
    AngularSvgProgressModule
  ]
})
export class AppModule {}

For Lazy Loaded Components add AngularSvgProgressModule in your child/shared module(s)

import { AngularSvgProgressModule } from 'angular-svg-progress';

@NgModule({
  ...
  imports: [
    AngularSvgProgressModule
  ]
})
export class SharedModule {}

Usage

Basic Usage

This HTML code demonstrates basic usage of this module:

<angular-svg-progress
  [svgProgress]="Progress"
  style="margin-bottom: 25px;"
  [width]="500"
  [shape]="'rectangle'"
  [borderColor]="'#383a3e'"
  [direction]="'horizontal'"
  [showMiddleText]="true"
  [middleTextStyle]="{textSize: 12,fontWeight: 400}"
  [showPercentage]="true"
  [height]="40"
  [progressColor]="'#FF0000'">
</angular-svg-progress>

Advanced Usage

The <angular-svg-progress /> component takes many attributes that allows you to customize the progress. You can use the following table as a reference:

Attribute NameTypeDescriptionDefault Value
shapestringShape of progress component. [bar, heart, circle]rectangle
widthnumberTotal width in numbers(pixel)100
heightnumberTotal height in numbers(pixel)100
svgProgressnumberDynamic progress value(in percentage)NA
progressColorstringColor of the progress indicatorred
borderColorstringColor of the svg progress component borderblack
showPercentagebooleanTo show the progress valuefalse
percentageColorstringProgress value text colorblack
showMiddleTextbooleanTo show static text in the middle of the loaderfalse
middleTextstring /numberstatic/dynamic text in the middle of the loaderNA
middleTextStyleObject of type{textSize:number,fillColor:string,fontWeight:number/string}style object for static text in the middle of the loadernull
directionstringDirection in which progress indicator grows. [horizontal,vertical]horizontal
backgroundFillstringbackground color of the component svg#eee8dc
fontSizenumberFont size of the progress value text(pixel)15
borderRadiusnumberBorder radius for the svg component [only for shape bar]10
radiusnumberRadius of the circular progress50
circleWidthnumberWidth of the circular disk15

Support this project

If you find this project useful, please star the repo to let people know that it's reliable. Also, share it with friends and colleagues that might find this useful as well. Thank you :smile:

Keywords

FAQs

Package last updated on 07 Aug 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