pixijs / pixi-react

Write PIXI apps using React declarative style
https://pixijs.io/pixi-react/
MIT License
2.42k stars 180 forks source link

Bug: Property 'geometry' does not exist on type Graphics #443

Open Carter-Sondrol opened 1 year ago

Carter-Sondrol commented 1 year ago

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 as

Property 'geometry' does not exist on type 'IntrinsicAttributes & Partial<Omit<Graphics, P | ReadonlyKeys<Graphics> | "draw"> & WithPointLike<P>> & { ...; } & InteractionEvents & { ...; }'.

Environment

Possible Solution

I believe the type definitions just need to be updated

Additional Information

No response

alexcupertme commented 1 year ago

Same for SimpleRope and SimpleMesh. No points argument. And also not accepting textureScale besides typization (points atleast works with ts-nocheck)