pixijs / pixi-react

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

Support graphics-extra #312

Closed AdrienLemaire closed 2 years ago

AdrienLemaire commented 2 years ago

Description

A lot of Graphics methods have the warning

Note: Only available with @pixi/graphics-extras.

It would be nice if react-pixi Graphics component could use graphics-extra if that package has been npm installed.

Until then, how do you recommend to do something like drawStar ?

AdrienLemaire commented 2 years ago

Reading the code, I understood that we only need to call import '@pixi/graphics-extras'; and Graphics will be mutated with the extra methods. Unrelated to react-pixi