@angular-mdc/web
Version:
27 lines (26 loc) • 1.08 kB
TypeScript
import { ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
import { MDCComponent } from '@angular-mdc/web/base';
import { MDCLineRippleFoundation } from '@material/line-ripple';
export declare class MdcLineRipple extends MDCComponent<MDCLineRippleFoundation> implements OnInit, OnDestroy {
private _ngZone;
elementRef: ElementRef<HTMLElement>;
/** Emits whenever the component is destroyed. */
private _destroy;
getDefaultFoundation(): MDCLineRippleFoundation;
constructor(_ngZone: NgZone, elementRef: ElementRef<HTMLElement>);
ngOnInit(): void;
destroy(): void;
ngOnDestroy(): void;
/** Activates the line ripple */
activate(): void;
/** Deactivates the line ripple */
deactivate(): void;
/**
* Sets the transform origin given a user's click location.
* The `rippleCenter` is the x-coordinate of the middle of the ripple.
*/
setRippleCenter(xCoordinate: number): void;
private _loadListeners;
/** Retrieves the DOM element of the component host. */
private _getHostElement;
}