Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Carter-Sondrol opened this issue Jun 22, 2023 · 1 comment
Open

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

Carter-Sondrol opened this issue Jun 22, 2023 · 1 comment

Comments

@Carter-Sondrol
Copy link

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

  • @pixi/react version: e.g. 7.0.0
  • pixi.js version: e.g. 7.1.0
  • React version: e.g. 18.0.0
  • ReactDOM version: 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

@alexcupertme
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants