pixi-react

Write PIXI apps using React declarative style

MIT License

Downloads
55.6K
Stars
2.1K
Committers
56

Bot releases are visible (Hide)

pixi-react - v6.6.5

Published by inlet about 3 years ago

Improved

Export internal types (InteractionEvents)

pixi-react - v6.6.4

Published by inlet about 3 years ago

Improved

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 ...
}
pixi-react - v6.6.2

Published by inlet over 3 years ago

Add fixes for element creation regarding the config for custom components

pixi-react - v6.6.1

Published by inlet over 3 years ago

Added

You can now provide a config object in a PixiComponent to control the the reconciliation behaviour, see:

https://reactpixi.org/custom-components#config

pixi-react - v6.5.3

Published by inlet over 3 years ago

Updated

  • dependecies
  • docz (added a temporary fix to make the build pass)

Added

  • Make <Text /> component compliant with react-spring
pixi-react - v6.5.2

Published by inlet over 3 years ago

Update react-spring types

pixi-react - v6.5.1

Published by inlet over 3 years ago

Fixed

Return changes for native components needed to commit updates during reconciliation.

pixi-react - v6.5.0

Published by inlet over 3 years ago

Improved

  • Default autoDensity=true, you can disable it: <Stage options={{ autoDensity: false }}>
  • Validate AnimatedSprite.texture for FrameObject as well
pixi-react - v6.4.0

Published by inlet over 3 years ago

Updated

  • React reconciler
  • React Spring to stable v9
  • Modules

Removed

  • postinstall script for react-spring
pixi-react - v6.3.0

Published by inlet over 3 years ago

Improved rendering stage when renderOnComponentChange is set to true

pixi-react - v6.2.1

Published by inlet over 3 years ago

Update Interaction Event types for pixi v6

pixi-react - v6.2.0

Published by inlet over 3 years ago

Support for Pixi.js v6 πŸŽ‰

pixi-react - v6.1.0

Published by inlet over 3 years ago

Added

  • Add unmountComponentAtNode to remove a container from internal roots list
  • Update docs regarding render via DOM and custom render

Updated

  • Node modules
  • Stage now uses the unmountComponentAtNode on componentWillUnmount
pixi-react - v6.0.5

Published by inlet almost 4 years ago

Fixed

Add postinstall.js to npm files and move replace-in-file to deps

pixi-react - v6.0.3

Published by inlet almost 4 years ago

Fixed

The useTicker hook now correctly unmounts

pixi-react - v6.0.2

Published by inlet almost 4 years ago

Fixes

Unmount native sub children

pixi-react - v6.0.1

Published by inlet almost 4 years ago

Update modules to latest (incl. React v17.0.1)

pixi-react - v6.0.0

Published by inlet about 4 years ago

React 17 compatible πŸŽ‰

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.

pixi-react - v5.2.0

Published by inlet about 4 years ago

Added

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>
pixi-react - v5.1.7

Published by inlet about 4 years ago

Improved

Now the devtools will be injected once, this prevents warning errors or duplicate injections.