@obliczeniowo/elementary
Version:
Library made in Angular version 20
84 lines (76 loc) • 3.42 kB
TypeScript
import * as _angular_animations from '@angular/animations';
import * as i0 from '@angular/core';
import { ElementRef } from '@angular/core';
import * as i4 from '@angular/common';
import { Point2D } from '@obliczeniowo/elementary/classes';
declare class Animations {
/**
* Rotate animation by 180 degreases
*
* in HTML use:
* <div [@openClose]="isOpen ? 'open' : 'closed'">
* to provide animation
*/
static rotate180deg: _angular_animations.AnimationTriggerMetadata;
/**
* Fade in/out animation
*
* in HTML use:
* <div [@fadeInOut]="show ? 'in' : 'out'">
*/
static fadeInOut(inSeconds?: number, outSeconds?: number): _angular_animations.AnimationTriggerMetadata;
}
declare class FadeInOutComponent {
state: i0.InputSignal<boolean>;
static ɵfac: i0.ɵɵFactoryDeclaration<FadeInOutComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<FadeInOutComponent, "obl-fade-in-out", never, { "state": { "alias": "state"; "required": false; "isSignal": true; }; }, {}, never, ["[in]", "[out]"], false, never>;
}
declare class ScrollAnimationComponent {
private readonly root;
protected options: {
root: null;
rootMargin: string;
threshold: number[];
};
animations: i0.InputSignal<string[]>;
container: ElementRef<HTMLDivElement>;
protected observer: IntersectionObserver;
constructor(root: ElementRef);
ngAfterViewInit(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollAnimationComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ScrollAnimationComponent, "obl-scroll-animation", never, { "animations": { "alias": "animations"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
}
declare class TypeTextComponent {
text: i0.InputSignal<string>;
interval: i0.InputSignal<number>;
animText: i0.WritableSignal<string>;
private time;
constructor();
static ɵfac: i0.ɵɵFactoryDeclaration<TypeTextComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TypeTextComponent, "obl-type-text", never, { "text": { "alias": "text"; "required": true; "isSignal": true; }; "interval": { "alias": "interval"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
}
declare class AnimationsModule {
static ɵfac: i0.ɵɵFactoryDeclaration<AnimationsModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<AnimationsModule, [typeof FadeInOutComponent, typeof ScrollAnimationComponent, typeof TypeTextComponent], [typeof i4.CommonModule], [typeof FadeInOutComponent, typeof ScrollAnimationComponent, typeof TypeTextComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<AnimationsModule>;
}
declare class OblSourceToTargetAnimation {
protected start: Point2D;
protected end: Point2D;
protected element: HTMLElement;
protected timer: any;
protected count: number;
protected interval: number;
protected maxRounds: number;
constructor(target: HTMLElement | any, destination: HTMLElement | any, message: string, options?: {
interval?: number;
maxRounds?: number;
styles?: {
[name: string]: string;
};
});
startAnim(): void;
remove(): void;
}
export { Animations, AnimationsModule, FadeInOutComponent, OblSourceToTargetAnimation, ScrollAnimationComponent, TypeTextComponent };