Angular module that uses SVG to create a circular progressbar
This release is missing some files on npm due to a build issue. Please use version 5.0.1 or above.
Fixes an error with the RoundProgressService
provider when using ahead-of-time compilation.
OnPush
change detection.This release does some long overdue internal cleanup inside the component in order to generate less ES5 code. The changes will only be breaking if you were extending the RoundProgressComponent
or were accessing some of its private APIs.
_renderer
constructor parameter was removed._diameter
getter was converted into a method called _getDiameter
._elementHeight
getter was converted into a method called _getElementHeight
._viewBox
getter was converted into a method called _getViewBox
._paddingBottom
getter was converted into a method called _getPaddingBottom
.dependencies
to peerDependencies
.In order to align the project with the conventions set by the Angular community, the RoundProgressConfig
provider has been removed in favor of providing the default values via the ROUND_PROGRESS_DEFAULTS
injection token.
import {NgModule} from '@angular/core';
import {RoundProgressModule, RoundProgressConfig} from 'angular-svg-round-progressbar';
@NgModule({
imports: [RoundProgressModule]
})
export class YourModule {
constructor(private _config: RoundProgressConfig) {
_config.setDefaults({
color: '#f00',
background: '#0f0'
});
}
};
import {NgModule} from '@angular/core';
import {
RoundProgressModule,
ROUND_PROGRESS_DEFAULTS
} from 'angular-svg-round-progressbar';
@NgModule({
imports: [RoundProgressModule],
providers: [{
provide: ROUND_PROGRESS_DEFAULTS,
useValue: {
color: '#f00',
background: '#0f0'
}
}]
})
export class YourModule {};
Fixes an issue with the published files on NPM due to a TypeScript version mismatch.
Bumps the minimum required Angular version to 5.0.0.
Fixes an SVG error that was being logged when the max
is set to 0.
Bumps the minimum required Angular version to 4.0.0.