0.1.4-beta • Published 4 years ago

angular-circliful v0.1.4-beta

Weekly downloads
47
License
MIT
Repository
github
Last release
4 years ago

Angular Circliful

Draws an animatable svg circle with some other features in your angular projects.

Getting started

Install circliful in your project

npm install angular-circliful

Once installed you need to import the module:

import {AngularCirclifulModule} from 'angular-circliful';

@NgModule({
  ...
  imports: [AngularCirclifulModule, ...],
  ...
})
export class AppModule {}

Integrate the component somewhere in your Application

export class YourComponent {
percent = { value: 60 };
strokeWidth: 15;
color: 'blue';
}
<ac-angular-circliful 
[percent]="percent" 
[strokeWidth]="strokeWidth"
[color]="color">
</ac-angular-circliful>

Available Options

propertydefaulttypedescription
percent/objectthe percentage of the circle
color#666stringcolor foreground circle
gradient/objectstartColor and endColor for gradient of foreground circle
customClasses/objectset custom css classes for each svg child element
strokeLinecapbuttstringstyle of stroke endings
strokeWidth15numberstroke width of foreground circle
progressColors/arrayholds an array of objects with color and percent, the percent value is the starting point for the color change
backgroundCircle/objectconfig for the background circle
animatetruebooleananimation of the foreground circle
animateInViewfalsebooleananimation of the foreground circle in viewport
text/objectconfig for the info text
point/objectconfig for a point in the center

percent percentage text and percentage fill of foreground circle

propertydefaulttype
value/number
color/string
noPercentageSignfalseboolean

gradient start end end color of gradient

propertydefaulttype
startColor/string
endColor/string

customClasses set custom css classes for each svg child element

propertydefaulttype
foregroundCircle/string
backgroundCircle/string
percent/string
text/string
svgContainer/string
point/string

progressColors holds an array of objects with color and percent, the percent value is the starting point for the color change

propertydefaulttype
color/string
percent/number

backgroundCircle config for the background circle

propertydefaulttype
color/string
strokeWidth/number

text config for the info text

propertydefaulttype
position'middle'string
x/number
y/number
content/string

point config for a point in the center

propertydefaulttype
color/string
radius/number

Donation

If you find this module useful or/and use it commercially feel free to donate me a cup of coffee :)

npm.io

0.1.4-beta

4 years ago

0.1.3-beta

4 years ago

0.1.2-beta

4 years ago

0.1.1-beta

4 years ago

0.1.0-beta

4 years ago

0.0.9-beta

4 years ago

0.0.8-beta

4 years ago

0.0.7-beta

4 years ago

0.0.5-beta

4 years ago

0.0.4-beta

4 years ago

0.0.3-beta

4 years ago

0.0.2-beta

4 years ago

0.0.1-beta

4 years ago