pixi-react
pixi-react copied to clipboard
Bug: Property 'geometry' does not exist on type Graphics
Current Behavior
It seems the typescript defninitions for @pixi/react Graphics doesn't correctly contain the geometry property
Expected Behavior
The geometry property (and any others that might be missing) should be valid on the JSX component
Steps to Reproduce
Typescript flags <Graphics x={0} y={0} geometry={rect.current} /> as
Property 'geometry' does not exist on type 'IntrinsicAttributes & Partial<Omit<Graphics, P | ReadonlyKeys<Graphics> | "draw"> & WithPointLike<P>> & { ...; } & InteractionEvents & { ...; }'.
Environment
@pixi/reactversion: e.g. 7.0.0pixi.jsversion: e.g. 7.1.0Reactversion: e.g. 18.0.0ReactDOMversion: e.g. 18.0.0- Browser & Version: e.g. Chrome 108
- OS & Version: e.g. Ubuntu 22.04
- Running Example: e.g. https://pixiplayground.com/
Possible Solution
I believe the type definitions just need to be updated
Additional Information
No response
Same for SimpleRope and SimpleMesh. No points argument. And also not accepting textureScale besides typization (points atleast works with ts-nocheck)