import { ElementRef, OnInit } from '@angular/core'; import { CommonService } from '../../utilities/service/common.service'; import { SpinnerService } from './spinner.service'; export declare class BzSpinnerComponent implements OnInit { private _spinnerService; private _commonService; private BASE_STROKE_WIDTH; private _strokeWidth; circleStrokeWidth: string; circleRadius: number; viewBox: string; circleStrokeDashArray: number; animationName: string; headElement: HTMLElement; diameterValue: number; statusClass: string; set diameter(value: number); color: string; set status(value: string); spinnerContainer: ElementRef; constructor(_spinnerService: SpinnerService, _commonService: CommonService); ngOnInit(): void; ngAfterViewInit(): void; /** * Set spinner animation * * @author Federico Gambardella * @return {void} */ private _setSpinnerAnimation; /** * Get circle radius * * @returns */ private _getCircleRadius; /** * The view box of the spinner's svg element. * */ private _getViewBox; /** * The stroke circumference of the svg circle. * */ private _getStrokeCircumference; /** * Stroke width of the circle in percent. * */ private _getCircleStrokeWidth; /** * Stringyfy animation variables and name. * * @returns */ private _stringifyAnimation; /** * Set circular radius. * * @author Federico Gambardella * @return {void} */ private _setCircularRadius; /** * Set circular stroke width. * * @author Federico Gambardella * @return {void} */ private _setCircularStrokeWidth; /** * Sert view box. * * @author Federico Gambardella * @return {void} */ private _setViewBox; /** * Set circle stroke dash array. * * @author Federico Gambardella * @return {void} */ private _setCircleStrokeDashArray; /** * Config spinner. * * @author Federico Gambardella * @return {void} */ private _configSpinner; /** * Set animation label * * @author Federico Gambardella * @returns {HTMLElement} */ private _setAnimationLabel; /** * Get header element. * * @author Federico Gambardella * @returns {HTMLElement} */ private _getHeaderElement; /** * Check if there is an style element with the current animation. * * @author Federico Gambardella * @returns {boolean} */ private _isAnimationStyle; /** * Create keyframe by animation label. * * @author Federico Gambardella * @return {void} */ private _createKeyFrame; }