pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
28 lines (27 loc) • 954 B
TypeScript
import type { Point } from '../../maths/point/Point';
import type { PointData } from '../../maths/point/PointData';
import type { Bounds } from './bounds/Bounds';
import type { Container } from './Container';
/**
* An effect that can be applied to a container. This is used to create effects such as filters/masks etc.
* @category rendering
* @advanced
*/
export interface Effect {
pipe: string;
priority: number;
addBounds?(bounds: Bounds, skipUpdateTransform?: boolean): void;
addLocalBounds?(bounds: Bounds, localRoot: Container): void;
containsPoint?(point: PointData, hitTestFn: (container: Container, point: Point) => boolean): boolean;
destroy(): void;
}
/**
* The constructor for an Effect.
* It is used to create instances of effects that can be applied to containers.
* @category rendering
* @advanced
*/
export interface EffectConstructor {
new (options?: any): Effect;
test?(options: any): boolean;
}