Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
angular-svg-progress
Advanced tools
https://badgen.net/bundlephobia/minzip/angular-svg-progress 1.7 min zipped lightweight progress bar
SVG Progress component for angular and ionic framework consist of bar, heart and circular loaders.
npm install --save angular-svg-progress
AngularSvgProgressModule
moduleAdd 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 {}
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>
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 Name | Type | Description | Default Value |
---|---|---|---|
shape | string | Shape of progress component. [bar, heart, circle] | rectangle |
width | number | Total width in numbers(pixel) | 100 |
height | number | Total height in numbers(pixel) | 100 |
svgProgress | number | Dynamic progress value(in percentage) | NA |
progressColor | string | Color of the progress indicator | red |
borderColor | string | Color of the svg progress component border | black |
showPercentage | boolean | To show the progress value | false |
percentageColor | string | Progress value text color | black |
showMiddleText | boolean | To show static text in the middle of the loader | false |
middleText | string /number | static/dynamic text in the middle of the loader | NA |
middleTextStyle | Object of type{textSize:number,fillColor:string,fontWeight:number/string} | style object for static text in the middle of the loader | null |
direction | string | Direction in which progress indicator grows. [horizontal,vertical] | horizontal |
backgroundFill | string | background color of the component svg | #eee8dc |
fontSize | number | Font size of the progress value text(pixel) | 15 |
borderRadius | number | Border radius for the svg component [only for shape bar] | 10 |
radius | number | Radius of the circular progress | 50 |
circleWidth | number | Width of the circular disk | 15 |
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:
FAQs
SVG progress loader compactable for angular and ionic
The npm package angular-svg-progress receives a total of 2 weekly downloads. As such, angular-svg-progress popularity was classified as not popular.
We found that angular-svg-progress demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.