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">
24 lines (23 loc) • 970 B
TypeScript
import type { Rectangle } from '../maths/shapes/Rectangle';
import type { Effect } from '../scene/container/Effect';
import type { Filter } from './Filter';
/**
* A filter effect is an effect that can be applied to a container that involves applying special pixel effects
* to that container as it is rendered. Used internally when the filters property is modified on a container.
* @internal
*/
export declare class FilterEffect implements Effect {
/** read only filters array - to modify, set it again! */
filters: readonly Filter[];
/**
* If specified, rather than calculating the bounds of the container that the filter
* will apply to, we use this rect instead. This is a local rect - so will have the containers transform
* applied to it
*/
filterArea?: Rectangle;
/** the pipe that knows how to handle this effect */
pipe: string;
/** the priority of this effect */
priority: number;
destroy(): void;
}