tgui-angular
Version:
🚀 Angular UI library for Telegram Web Apps with modern components and theming support | 💼 Author is open to work opportunities | 📧 Contact: a.blagovestnov@gmail.com | 💬 Telegram: @ablagovestnov
33 lines (32 loc) • 1.02 kB
TypeScript
import { signal } from '@angular/core';
import * as i0 from "@angular/core";
export interface RippleWave {
x: number;
y: number;
date: number;
pointerId: number;
}
export declare class RippleService {
private RIPPLE_DELAY;
private WAVE_LIVE;
/**
* Map to track pointer delay timers by pointerId
*/
private pointerDelayTimers;
/**
* Add a new ripple wave effect at the specified coordinates
*/
addWave(x: number, y: number, pointerId: number, currentWaves: RippleWave[]): RippleWave[];
/**
* Handle pointer down event
* @param event Pointer event
* @param wavesSignal Signal for managing waves
*/
handlePointerDown(event: PointerEvent, wavesSignal: ReturnType<typeof signal<RippleWave[]>>): void;
/**
* Handle pointer cancel/up event
*/
handlePointerCancel(pointerId: number): void;
static ɵfac: i0.ɵɵFactoryDeclaration<RippleService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<RippleService>;
}