@wolsok/thanos
Version:
Wolf Soko's implementation of a cool Thanos snapping vaporizing effect for destroying dom elements
27 lines • 1.05 kB
TypeScript
import { NgZone } from '@angular/core';
import { Observable } from 'rxjs';
import { AnimationState } from './animation.state';
import type { WsThanosOptions } from './ws-thanos.options';
import * as i0 from "@angular/core";
export declare class WsThanosService {
private thanosOptions;
private ngZone;
constructor(thanosOptions: WsThanosOptions, ngZone: NgZone);
private static getParticleIndicesForBase;
private static getColorIndicesForCoord;
private static updateParticles;
private static drawParticles;
private static prepareCanvasForVaporize;
private static createParticlesForImageData;
private static getXYFromFlowField;
/**
* start the vaporizeAndScrollIntoView-effect.
*
* It's running outside the ngZone.
*/
vaporize(elem: HTMLElement): Observable<AnimationState>;
private vaporizeIntern;
static ɵfac: i0.ɵɵFactoryDeclaration<WsThanosService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<WsThanosService>;
}
//# sourceMappingURL=ws-thanos.service.d.ts.map