/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/scene/container/Effect.ts
33 строки
1 KB
Alexander Farber
fix: minor typos in comments and docs, add missing @params and @returns (#11590)
05 авг 2025, 11:39
Не верифицирован
05 авг 2025, 11:39
0c79e14
Код
Авторство
О чём код?
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. * @param options - The options for the effect. * @returns A new instance of the effect. * @category rendering * @advanced */ export interface EffectConstructor { new(options?: any): Effect test?(options: any): boolean }