Write PIXI apps using React declarative style
MIT License
Bot releases are visible (Hide)
Published by inlet about 3 years ago
Export internal types (InteractionEvents
)
Published by inlet about 3 years ago
useTick
now uses the ticker instance as this
, example:
const Counter = () => {
useTick(function tick(){
console.log(this.elapsedMS) ;
});
return ...
}
or use the second param to retrieve the ticker instance:
const Counter = () => {
useTick((delta, ticker) => {
console.log(ticker.elapsedMS) ;
})
return ...
}
Published by inlet over 3 years ago
Add fixes for element creation regarding the config for custom components
Published by inlet over 3 years ago
You can now provide a config
object in a PixiComponent
to control the the reconciliation behaviour, see:
Published by inlet over 3 years ago
<Text />
component compliant with react-spring
Published by inlet over 3 years ago
Update react-spring types
Published by inlet over 3 years ago
Return changes for native components needed to commit updates during reconciliation.
Published by inlet over 3 years ago
autoDensity=true
, you can disable it: <Stage options={{ autoDensity: false }}>
AnimatedSprite.texture
for FrameObject
as wellPublished by inlet over 3 years ago
react-spring
Published by inlet over 3 years ago
Improved rendering stage when renderOnComponentChange
is set to true
Published by inlet over 3 years ago
Update Interaction Event types for pixi v6
Published by inlet over 3 years ago
Support for Pixi.js v6 π
Published by inlet over 3 years ago
unmountComponentAtNode
to remove a container from internal roots
listunmountComponentAtNode
on componentWillUnmount
Published by inlet almost 4 years ago
Add postinstall.js
to npm files and move replace-in-file
to deps
Published by inlet almost 4 years ago
The useTicker
hook now correctly unmounts
Published by inlet almost 4 years ago
Unmount native sub children
Published by inlet almost 4 years ago
Update modules to latest (incl. React v17.0.1
)
Published by inlet about 4 years ago
As you might have noticed, React 17 just landed with quite some improvements. Hooray, this means that I had to implement new methods to the reconciler as well. I'm happy to inform you that ReactPixi is now fully compatible with React 17.
NOTE: This release is not compatible with React 16.x or older. If you need to stick to React 16.x make sure to use ReactPixi v5.x.
Published by inlet about 4 years ago
Support for pixi legacy without having to create aliases in your project π
npm install pixi.js-legacy
import { Stage } from '@inlet/react-pixi/legacy';
<Stage options={{ forceCanvas: true }}>... </Canvas>
Published by inlet about 4 years ago
Now the devtools will be injected once, this prevents warning errors or duplicate injections.