d2js-anim-lib
Version:
Lightweight animation library with support for React, Vue, and Angular
40 lines (39 loc) • 1.24 kB
TypeScript
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
import { RotateOptions, BounceOptions, DragOptions } from '../core';
export declare class RotateDirective implements OnInit, OnDestroy {
private el;
options: RotateOptions;
trigger: 'click' | 'hover' | 'mount';
private controller;
constructor(el: ElementRef);
ngOnInit(): void;
onClick(): void;
onMouseEnter(): void;
ngOnDestroy(): void;
}
export declare class BounceDirective implements OnInit, OnDestroy {
private el;
options: BounceOptions;
trigger: 'click' | 'hover' | 'mount';
private controller;
constructor(el: ElementRef);
ngOnInit(): void;
onClick(): void;
onMouseEnter(): void;
ngOnDestroy(): void;
}
export declare class DragDirective implements OnInit, OnDestroy {
private el;
options: DragOptions;
private controller;
constructor(el: ElementRef);
ngOnInit(): void;
ngOnDestroy(): void;
}
export declare class D2jsService {
rotate(element: HTMLElement, options?: RotateOptions): void;
bounce(element: HTMLElement, options?: BounceOptions): void;
enableDrag(element: HTMLElement, options?: DragOptions): () => void;
}
export declare class D2jsModule {
}