You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since pixi.js 7.1 the type of Text.style is PIXI.TextStyle | Partial<PIXI.ITextStyle>. But pix-react-fiber only allows to set PIXI.TextStyle objects as style attribute (since 7.1 every property is required in PIXI.TextStyle)
Steps to reproduce
<Texttext='Text'// Type '{ fontSize: number; }' is missing the following properties from type 'TextStyle': styleID, _align, _breakWords, _dropShadow, and 57 more.ts(2740)style={{fontSize: 64,}}/>
Additional info
react-pixi-fiber version: 1.0.1
React version:
ReactDOM version:
PixiJS version: 7.1
The text was updated successfully, but these errors were encountered:
There are Issues in the typescript repo that indicate that it is currently not possible to receive the type of the setters, so it seems like we have to manually adjust the type in our types 😟
Description
Since pixi.js 7.1 the type of
Text.style
isPIXI.TextStyle | Partial<PIXI.ITextStyle>
. But pix-react-fiber only allows to setPIXI.TextStyle
objects as style attribute (since 7.1 every property is required inPIXI.TextStyle
)Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: