UNPKG

@obliczeniowo/elementary

Version:
45 lines (40 loc) 2 kB
import * as i0 from '@angular/core'; import { AfterViewInit, OnDestroy, Renderer2, ElementRef, OnInit, OnChanges, SimpleChanges } from '@angular/core'; import { DrawingSvgInterface } from '@obliczeniowo/elementary/drawing'; import * as i3 from '@angular/common'; import * as i4 from '@obliczeniowo/elementary/icons'; declare class SpinnerComponent implements AfterViewInit, OnDestroy { protected renderer: Renderer2; protected dc: DrawingSvgInterface; protected time: any; svg: ElementRef<SVGSVGElement>; constructor(renderer: Renderer2); ngAfterViewInit(): void; draw(dt: number): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "obl-spinner", never, {}, {}, never, never, false, never>; } declare class LoadingStateComponent implements OnInit, OnDestroy, OnChanges { status: 'waiting' | 'failure' | 'progress' | 'done'; protected highlighted: number[]; protected offset: number; readonly ray = 6; readonly positions: { x: number; y: number; }[]; protected time: any; ngOnInit(): void; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; protected setTime(): void; static ɵfac: i0.ɵɵFactoryDeclaration<LoadingStateComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<LoadingStateComponent, "obl-loading-state", never, { "status": { "alias": "status"; "required": false; }; }, {}, never, never, false, never>; } declare class LoadingModule { static ɵfac: i0.ɵɵFactoryDeclaration<LoadingModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<LoadingModule, [typeof SpinnerComponent, typeof LoadingStateComponent], [typeof i3.CommonModule, typeof i4.IconsModule], [typeof SpinnerComponent, typeof LoadingStateComponent]>; static ɵinj: i0.ɵɵInjectorDeclaration<LoadingModule>; } export { LoadingModule, LoadingStateComponent, SpinnerComponent };