Skip to content

Releases: pixijs/pixi-react

v5.0.3

27 Jul 13:48
Compare
Choose a tag to compare

Fixed

Ref's in custom components (PixiComponent):

import { Graphics } from 'pixi.js';

interface RectangleProps {
  x: number;
  y: number;
  color: number;
}

const Rectangle = PixiComponent<RectangleProps, Graphics>('Rectangle', {
  create: () => new Graphics(),
  applyProps: (ins, _, props) => {
    ins.x = props.x;
    ins.y = props.y;
    ins.beginFill(props.color);
    ins.drawRect(0, 0, 100, 100);
    ins.endFill();
  },
});

const App = () => (
  <Rectangle 
    ref={rect => console.assert(rect instanceof Graphics)}
    x={100} 
    y={100} 
    color={0xff0000} 
  />
);

v5.0.2

27 Jul 10:37
Compare
Choose a tag to compare

Fixes

AutoDensity is now set to PIXI.Application allowing app.renderer.resize to set width, height and css styles correctly.

v5.0.1

29 Jun 12:33
Compare
Choose a tag to compare

Fixed

Change the applyDefaultProps behaviour, fixes #235

Prop is not undefined?
   Set direct PIXI value

Prop has a default value?
  Set value to default

Else?
  Show a warn log

v5.0.0

19 Jun 15:17
Compare
Choose a tag to compare

New major release 🎉

Now compatible with PIXI v5.3+.

v4.1.2

10 Jun 11:16
Compare
Choose a tag to compare

Improved

Supports multiple renderer contexts

v4.1.1

09 Jun 15:45
Compare
Choose a tag to compare

Fixed

  • Inject fiber into devtools

v4.1.0

05 Jun 10:10
Compare
Choose a tag to compare

Added

  • Update renderer resolution on options.resolution change
  • Auto resolution, move browser across screens with diff resolutions auto updates the renderer resolution

v4.0.0

26 May 10:44
Compare
Choose a tag to compare

Added

Support for updating the PIXI stage on React component change 🙌

See https://reactpixi.org/stage/#custom-stage-updates

v3.0.0

22 May 08:58
Compare
Choose a tag to compare

Fixed

  • Typings for PointLike supporting { x: number, y: number }

Improved

Removed

  • Graphics preventDefault prop.

    Breaking change

v2.0.0

12 May 16:09
Compare
Choose a tag to compare

v2.0.0 🎉

  • Uses latest react-reconciler
  • Upgrade docz and internals
  • Update configs
  • Remove lodash and use lodash submodules instead