UNPKG

angular-custom-cursor

Version:
25 lines (24 loc) 1.02 kB
import { AfterViewInit, OnDestroy, Renderer2, ElementRef } from '@angular/core'; import * as i0 from "@angular/core"; export declare class AngularCustomCursorComponent implements AfterViewInit, OnDestroy { private renderer; private el; cursorImage: string; private INTERVAL_POSITION; private INTERVAL_ROTATION; private lastCursorPos; private currentCursorPos; private lastCursorAngle; private cursorAngle; private cursorEl; private cursorImageEl; private mouseMoveListener; private positionInterval; private rotationInterval; constructor(renderer: Renderer2, el: ElementRef); ngAfterViewInit(): void; private setCurrentCursorProps; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<AngularCustomCursorComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<AngularCustomCursorComponent, "lib-angular-custom-cursor", never, { "cursorImage": { "alias": "cursorImage"; "required": false; }; }, {}, never, never, true, never>; }