source: trip-planner-front/node_modules/@angular/material/progress-spinner/progress-spinner.d.ts@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 4.6 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { NumberInput } from '@angular/cdk/coercion';
9import { Platform } from '@angular/cdk/platform';
10import { ElementRef, InjectionToken, OnInit } from '@angular/core';
11import { CanColor } from '@angular/material/core';
12/** Possible mode for a progress spinner. */
13export declare type ProgressSpinnerMode = 'determinate' | 'indeterminate';
14/** @docs-private */
15declare const _MatProgressSpinnerBase: import("@angular/material/core/common-behaviors/constructor").Constructor<CanColor> & import("@angular/material/core/common-behaviors/constructor").AbstractConstructor<CanColor> & {
16 new (_elementRef: ElementRef): {
17 _elementRef: ElementRef;
18 };
19};
20/** Default `mat-progress-spinner` options that can be overridden. */
21export interface MatProgressSpinnerDefaultOptions {
22 /** Diameter of the spinner. */
23 diameter?: number;
24 /** Width of the spinner's stroke. */
25 strokeWidth?: number;
26 /**
27 * Whether the animations should be force to be enabled, ignoring if the current environment is
28 * using NoopAnimationsModule.
29 */
30 _forceAnimations?: boolean;
31}
32/** Injection token to be used to override the default options for `mat-progress-spinner`. */
33export declare const MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS: InjectionToken<MatProgressSpinnerDefaultOptions>;
34/** @docs-private */
35export declare function MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS_FACTORY(): MatProgressSpinnerDefaultOptions;
36/**
37 * `<mat-progress-spinner>` component.
38 */
39export declare class MatProgressSpinner extends _MatProgressSpinnerBase implements OnInit, CanColor {
40 private _document;
41 private _diameter;
42 private _value;
43 private _strokeWidth;
44 private _fallbackAnimation;
45 /**
46 * Element to which we should add the generated style tags for the indeterminate animation.
47 * For most elements this is the document, but for the ones in the Shadow DOM we need to
48 * use the shadow root.
49 */
50 private _styleRoot;
51 /**
52 * Tracks diameters of existing instances to de-dupe generated styles (default d = 100).
53 * We need to keep track of which elements the diameters were attached to, because for
54 * elements in the Shadow DOM the style tags are attached to the shadow root, rather
55 * than the document head.
56 */
57 private static _diameters;
58 /** Whether the _mat-animation-noopable class should be applied, disabling animations. */
59 _noopAnimations: boolean;
60 /** A string that is used for setting the spinner animation-name CSS property */
61 _spinnerAnimationLabel: string;
62 /** The diameter of the progress spinner (will set width and height of svg). */
63 get diameter(): number;
64 set diameter(size: number);
65 /** Stroke width of the progress spinner. */
66 get strokeWidth(): number;
67 set strokeWidth(value: number);
68 /** Mode of the progress circle */
69 mode: ProgressSpinnerMode;
70 /** Value of the progress circle. */
71 get value(): number;
72 set value(newValue: number);
73 constructor(elementRef: ElementRef<HTMLElement>, platform: Platform, _document: any, animationMode: string, defaults?: MatProgressSpinnerDefaultOptions);
74 ngOnInit(): void;
75 /** The radius of the spinner, adjusted for stroke width. */
76 _getCircleRadius(): number;
77 /** The view box of the spinner's svg element. */
78 _getViewBox(): string;
79 /** The stroke circumference of the svg circle. */
80 _getStrokeCircumference(): number;
81 /** The dash offset of the svg circle. */
82 _getStrokeDashOffset(): number | null;
83 /** Stroke width of the circle in percent. */
84 _getCircleStrokeWidth(): number;
85 /** Dynamically generates a style tag containing the correct animation for this diameter. */
86 private _attachStyleNode;
87 /** Generates animation styles adjusted for the spinner's diameter. */
88 private _getAnimationText;
89 /** Returns the circle diameter formatted for use with the animation-name CSS property. */
90 private _getSpinnerAnimationLabel;
91 static ngAcceptInputType_diameter: NumberInput;
92 static ngAcceptInputType_strokeWidth: NumberInput;
93 static ngAcceptInputType_value: NumberInput;
94}
95/**
96 * `<mat-spinner>` component.
97 *
98 * This is a component definition to be used as a convenience reference to create an
99 * indeterminate `<mat-progress-spinner>` instance.
100 */
101export declare class MatSpinner extends MatProgressSpinner {
102 constructor(elementRef: ElementRef<HTMLElement>, platform: Platform, document: any, animationMode: string, defaults?: MatProgressSpinnerDefaultOptions);
103}
104export {};
Note: See TracBrowser for help on using the repository browser.