MCPcopy
hub / github.com/pixijs/pixijs / IHitArea

Interface IHitArea

src/events/FederatedEventTarget.ts:109–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 * @standard
108 */
109export interface IHitArea
110{
111 /**
112 * Checks if the given coordinates are inside this hit area.
113 * @param {number} x - The x coordinate to check
114 * @param {number} y - The y coordinate to check
115 * @returns True if the coordinates are inside the hit area
116 */
117 contains(x: number, y: number): boolean;
118}
119
120/**
121 * Function type for handlers, e.g., onclick

Callers 8

containsPointMethod · 0.65
postrenderMethod · 0.65
hitPruneFnMethod · 0.65
isRenderingToScreenFunction · 0.65
initCopyPageDropdownFunction · 0.65

Implementers 7

Circlesrc/maths/shapes/Circle.ts
Trianglesrc/maths/shapes/Triangle.ts
Polygonsrc/maths/shapes/Polygon.ts
Rectanglesrc/maths/shapes/Rectangle.ts
Ellipsesrc/maths/shapes/Ellipse.ts
RoundedRectanglesrc/maths/shapes/RoundedRectangle.ts
SystemRunnersrc/rendering/renderers/shared/system/

Calls

no outgoing calls

Tested by

no test coverage detected