react-pixi-fiber 1.0.0-beta.7 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -9,18 +9,25 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
9
9
  ## [Unreleased]
10
10
 
11
11
 
12
- ## [1.0.0-beta.7] - 2020-12-12
12
+ ## [1.0.0-beta.16] - 2022-01-08
13
13
 
14
14
  ### Added
15
15
  - Added ReactDOM-like prop validation in development ([#47])
16
16
  - Add ES format output
17
+ - Added missing `prop-types` dependency ([#221])
17
18
 
18
19
  ### Changed
19
20
  - Updated build dependencies
20
21
  - Updated dev dependencies
22
+ - Changed `Stage` class and function component types to be the same ([#225])
23
+ - Changed Stage to delay destroying PIXI.Application when unmounting
24
+ - Changed usePixiApp to throw an error when used outside of <Stage /> ([#227])
21
25
 
22
26
  ### Fixed
23
27
  - Fixed type of `oldProps` sent to `customApplyProps` of `CustomPIXIComponent`
28
+ - Fixed hook-based `Stage` to render and rerender synchronously ([#204])
29
+ - Fixed type compatibility with PixiJS v6.0.0 ([#210])
30
+ - Fixed breaking change when undefined values were assigned to props with previously defined values
24
31
 
25
32
  ### Removed
26
33
  - Removed `performance-now` dependency
@@ -399,8 +406,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
399
406
  - Added `<TilingSprite />` component
400
407
 
401
408
 
402
- [Unreleased]: https://github.com/michalochman/react-pixi-fiber/compare/v1.0.0-beta.7...HEAD
403
- [1.0.0-beta.7]: https://github.com/michalochman/react-pixi-fiber/compare/v0.14.2...v1.0.0-beta.7
409
+ [Unreleased]: https://github.com/michalochman/react-pixi-fiber/compare/v1.0.0-beta.16...HEAD
410
+ [1.0.0-beta.16]: https://github.com/michalochman/react-pixi-fiber/compare/v0.14.3...v1.0.0-beta.16
404
411
  [0.14.2]: https://github.com/michalochman/react-pixi-fiber/compare/v0.14.1...v0.14.2
405
412
  [0.14.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.14.0...v0.14.1
406
413
  [0.14.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.13.2...v0.14.0
@@ -447,6 +454,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
447
454
  [0.2.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.1.1...v0.2.0
448
455
  [0.1.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.1.0...v0.1.1
449
456
 
457
+ [#227]: https://github.com/michalochman/react-pixi-fiber/issues/227
458
+ [#225]: https://github.com/michalochman/react-pixi-fiber/issues/225
459
+ [#221]: https://github.com/michalochman/react-pixi-fiber/issues/221
460
+ [#210]: https://github.com/michalochman/react-pixi-fiber/issues/210
461
+ [#204]: https://github.com/michalochman/react-pixi-fiber/issues/204
450
462
  [#196]: https://github.com/michalochman/react-pixi-fiber/issues/196
451
463
  [#185]: https://github.com/michalochman/react-pixi-fiber/issues/185
452
464
  [#182]: https://github.com/michalochman/react-pixi-fiber/pull/182
package/README.md CHANGED
@@ -1,20 +1,60 @@
1
- # ReactPixiFiber – React Fiber renderer for PixiJS
2
- [![npm](https://img.shields.io/npm/v/react-pixi-fiber.svg)](https://npmjs.com/package/react-pixi-fiber)
3
- [![License](https://img.shields.io/github/license/michalochman/react-pixi-fiber.svg)](https://github.com/michalochman/react-pixi-fiber/blob/master/LICENSE)
4
- [![CircleCI](https://img.shields.io/circleci/project/github/michalochman/react-pixi-fiber/master.svg)](https://circleci.com/gh/michalochman/react-pixi-fiber/tree/master)
5
- [![codecov](https://img.shields.io/codecov/c/github/michalochman/react-pixi-fiber/master.svg)](https://codecov.io/gh/michalochman/react-pixi-fiber/branch/master)
6
- [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
7
- [![gitter](https://img.shields.io/gitter/room/react-pixi-fiber/Lobby.svg)](https://gitter.im/react-pixi-fiber/Lobby)
8
-
9
- ReactPixiFiber is a JavaScript library for writing PixiJS applications using React declarative style in React 16 and React 17.
10
-
11
- For React <16.0.0 see [`react-pixi`].
1
+ <div align="center">
2
+ <img alt="ReactPixiFiber" src="./react-pixi.svg" width="500" />
3
+ </div>
4
+
5
+ <div align="center">
6
+ <h1>ReactPixiFiber – React Fiber renderer for PixiJS</h1>
7
+
8
+ <p>
9
+ ReactPixiFiber is a JavaScript library for writing <a href="https://pixijs.com/">PixiJS</a> applications using <a href="https://reactjs.org/">React</a> declarative style in React 16 and above.
10
+ <br />
11
+ For React <16.0.0 see <a href="https://github.com/Izzimach/react-pixi">react-pixi</a>.
12
+ </p>
13
+
14
+ <a href="https://npmjs.com/package/react-pixi-fiber">
15
+ <img alt="npm" src="https://img.shields.io/npm/v/react-pixi-fiber.svg" />
16
+ </a>
17
+ <a href="https://github.com/michalochman/react-pixi-fiber/blob/master/LICENSE">
18
+ <img alt="License" src="https://img.shields.io/github/license/michalochman/react-pixi-fiber.svg" />
19
+ </a>
20
+ <a href="https://circleci.com/gh/michalochman/react-pixi-fiber/tree/master">
21
+ <img alt="CircleCI" src="https://img.shields.io/circleci/project/github/michalochman/react-pixi-fiber/master.svg" />
22
+ </a>
23
+ <a href="https://codecov.io/gh/michalochman/react-pixi-fiber/branch/master">
24
+ <img alt="codecov" src="https://img.shields.io/codecov/c/github/michalochman/react-pixi-fiber/master.svg" />
25
+ </a>
26
+ <a href="
27
+ [![styled with prettier]()](">
28
+ <img alt="styled with prettier" src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg" />
29
+ </a>
30
+ <a href="https://gitter.im/react-pixi-fiber/Lobby">
31
+ <img alt="gitter" src="https://img.shields.io/gitter/room/react-pixi-fiber/Lobby.svg" />
32
+ </a>
33
+ </div>
12
34
 
13
35
  ## Demo
14
36
 
15
37
  See [Rotating Bunny](https://codesandbox.io/s/q7oj1p0jo6) demo.
16
38
 
17
39
 
40
+ ## 🚀 Migrating from version `0.x.y`? 🚀
41
+
42
+ Read [migration guide](#migrating-from-react-pixi-fiber0xy-before-version-100).
43
+
44
+ ## Installing
45
+
46
+ The current version assumes [React] >16.0.0 and [PixiJS] >4.4.0
47
+
48
+ yarn add react-pixi-fiber prop-types pixi.js
49
+
50
+ or
51
+
52
+ npm install react-pixi-fiber prop-types pixi.js --save
53
+
54
+ Refer to next sections to see usage examples.
55
+
56
+ This package works flawlessly with [Create React App](https://github.com/facebookincubator/create-react-app) – see examples below, they already use it.
57
+
18
58
  ## Usage
19
59
 
20
60
  ### With ReactDOM
@@ -73,20 +113,173 @@ This example will render [`PIXI.Text`] object into a [Root Container] of PIXI Ap
73
113
  4. Wait few seconds and browse examples that will open in new browser window.
74
114
 
75
115
 
76
- ## Installing
116
+ ## Migrating from `react-pixi-fiber@0.x.y` (before version `1.0.0`)
77
117
 
78
- The current version assumes [React] >16.0.0 and [PixiJS] >4.4.0
118
+ <details>
119
+ <summary>
120
+ <strong>Changed built-in <code>Stage</code> and the one returned by <code>createStageClass()</code> to have the same API</strong>
121
+ </summary>
79
122
 
80
- yarn add react-pixi-fiber
123
+ It is now possible to get `ref` to built-in `Stage`.
81
124
 
82
- or
125
+ Unless you are using class-based `Stage` component explicitly in your application, for example you are extending it, you should prefer to use built-in `Stage` instead of creating it with `createStageClass()`.
126
+
127
+ Data available on the `Stage` "instance":
128
+ * `_app` - PIXI.Application instance
129
+ * `_canvas` - HTMLCanvasElement instance
130
+ * `props` - props passed to Stage component
131
+
132
+ For example:
133
+ ```js
134
+ import * as React from "react";
135
+ import { Stage, Text } from "react-pixi-fiber";
136
+
137
+ const width = 600;
138
+ const height = 400;
139
+ const options = {
140
+ backgroundColor: 0x56789a,
141
+ width: width,
142
+ height: height
143
+ };
144
+ const style = {
145
+ width: width,
146
+ height: height
147
+ };
148
+
149
+ function App() {
150
+ const stageRef = React.useRef()
151
+ React.useEffect(() => {
152
+ // Access PIXI.Application instance
153
+ console.log(stageRef.current?._app.current)
154
+ // Access HTMLCanvasElement instance
155
+ console.log(stageRef.current?._canvas.current)
156
+ // Access props passed to Stage component
157
+ console.log(stageRef.current?.props)
158
+ }, [])
159
+
160
+ return (
161
+ <Stage options={options} style={style} ref={stageRef}>
162
+ <Text x={100} y={100} text="Hello world!" />
163
+ </Stage>
164
+ );
165
+ }
166
+ ```
167
+ </details>
168
+
169
+ <details>
170
+ <summary>
171
+ <strong>Changed <code>PIXI.Application</code> exposed by <code>Stage</code> to be React <code>ref</code></strong>
172
+ </summary>
173
+
174
+ This is only relevant if you were using `createStageClass()` to create `Stage` component, as it was impossible to get `ref` when using built-in `Stage` as if was a function component, which triggered `Warning: Function components cannot be given refs` error.
175
+
176
+ For example:
177
+ ```diff
178
+ import * as React from "react";
179
+ import { createStageClass, Text } from "react-pixi-fiber";
180
+
181
+ const Stage = createStageClass()
182
+
183
+ const width = 600;
184
+ const height = 400;
185
+ const options = {
186
+ backgroundColor: 0x56789a,
187
+ width: width,
188
+ height: height
189
+ };
190
+ const style = {
191
+ width: width,
192
+ height: height
193
+ };
194
+
195
+ function App() {
196
+ const stageRef = React.useRef()
197
+ React.useEffect(() => {
198
+ - console.log(stageRef.current?._app.renderer)
199
+ + console.log(stageRef.current?._app.current.renderer)
200
+ }, [])
83
201
 
84
- npm install react-pixi-fiber --save
202
+ return (
203
+ <Stage options={options} style={style} ref={stageRef}>
204
+ <Text x={100} y={100} text="Hello world!" />
205
+ </Stage>
206
+ );
207
+ }
208
+ ```
209
+ </details>
85
210
 
86
- This package works flawlessly with [Create React App](https://github.com/facebookincubator/create-react-app) – see examples above, they already use it.
211
+ <details>
212
+ <summary>
213
+ <strong>Changed <code>oldProps</code> in <code>customApplyProps</code> to not be initialised when the component is first rendered</strong>
214
+ </summary>
87
215
 
216
+ Make sure to check if `oldProps` is initialised before trying to read properties from it.
217
+
218
+ For example:
219
+ ```diff
220
+ import { Container, CustomPIXIComponent } from "react-pixi-fiber"
221
+
222
+ const TYPE = "CustomContainer"
223
+ const behavior = {
224
+ customApplyProps: function (instance, oldProps, newProps) {
225
+ - const { customProp: oldCustomProp, ...otherOldProps } = oldProps
226
+ + const { customProp: oldCustomProp, ...otherOldProps } = oldProps ?? {}
227
+ const { customProp, ...otherNewProps } = newProps
228
+ if (customProp !== oldCustomProp) {
229
+ // Do something when customProp value have changed
230
+ }
231
+ this.applyDisplayObjectProps(otherOldProps, otherNewProps)
232
+ },
233
+ customDisplayObject: function ({ customProp, ...props }) {
234
+ const container = new PIXI.Container(props)
235
+ if (customProp === "foo") {
236
+ // Do something when customProp is equal to "foo"
237
+ }
238
+ return container
239
+ },
240
+ }
241
+
242
+ export default CustomPIXIComponent(behavior, TYPE)
243
+ ```
244
+ </details>
245
+
246
+ <details>
247
+ <summary>
248
+ <strong>Changed <code>applyProps</code> to <code>applyDisplayObjectProps</code></strong>
249
+ </summary>
250
+
251
+
252
+ `react-pixi-fiber` now needs to know the type of component (e.g. `"Sprite"`) to properly apply the props.
253
+
254
+ For example:
255
+ ```diff
256
+ -import { applyProps } from "react-pixi-fiber"
257
+ +import { applyDisplayObjectProps } from "react-pixi-fiber"
258
+
259
+ function ApplyAnimatedValues(instance, props) {
260
+ if (instance instanceof PIXI.DisplayObject) {
261
+ - applyProps(instance, {}, props)
262
+ + // Component has custom way of applying props - use that
263
+ + if (typeof instance._customApplyProps === "function") {
264
+ + instance._customApplyProps(instance, {}, props)
265
+ + }
266
+ + // Component doesn't have custom way of applying props - use default way
267
+ + else {
268
+ + const type = instance.constructor.name
269
+ + applyDisplayObjectProps(type, instance, {}, props)
270
+ }
271
+ } else {
272
+ return false
273
+ }
274
+ }
275
+ ```
276
+
277
+ Refer to the implementation, when in doubt:
278
+ * old `applyProps` -> https://github.com/michalochman/react-pixi-fiber/blob/64e8e9f991f51b407f3af108da732e186429454a/src/ReactPixiFiber.js#L43
279
+ * new `applyDisplayObjectProps` -> https://github.com/michalochman/react-pixi-fiber/blob/3a9b71b8d18180117bf70459dd6b4419c5ef1c21/src/ReactPixiFiberComponent.js#L161
280
+ </details>
88
281
 
89
- ## Migrating from [`react-pixi`]
282
+ ## Migrating from `react-pixi`
90
283
 
91
284
  It is possible to use React Pixi Fiber as a drop-in replacement for `react-pixi`.
92
285
 
@@ -496,7 +689,7 @@ Yes! Awesome!
496
689
 
497
690
  ### What version of PixiJS I can use?
498
691
 
499
- Both PixiJS v4 and v5 are supported.
692
+ PixiJS v4, v5 and v6 are supported.
500
693
 
501
694
  ### Can I use already existing [`PIXI.Application`]?
502
695
 
@@ -7,21 +7,40 @@ var ReactPixiFiber = require('react-pixi-fiber');
7
7
 
8
8
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
9
 
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n["default"] = e;
25
+ return Object.freeze(n);
26
+ }
27
+
10
28
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
29
+ var ReactPixiFiber__namespace = /*#__PURE__*/_interopNamespace(ReactPixiFiber);
11
30
 
12
31
  // Note: ReactPIXI.factories is not supported
13
32
 
14
- var CustomPIXIComponent = ReactPixiFiber.CustomPIXIComponent;
15
- var render = ReactDOM__default['default'].render;
16
- var unmountComponentAtNode = ReactDOM__default['default'].unmountComponentAtNode;
17
- var BitmapText = ReactPixiFiber.BitmapText;
18
- var DisplayObjectContainer = ReactPixiFiber.Container;
19
- var Graphics = ReactPixiFiber.Graphics;
20
- var ParticleContainer = ReactPixiFiber.ParticleContainer;
21
- var Sprite = ReactPixiFiber.Sprite;
22
- var Stage = ReactPixiFiber.Stage;
23
- var Text = ReactPixiFiber.Text;
24
- var TilingSprite = ReactPixiFiber.TilingSprite;
33
+ var CustomPIXIComponent = ReactPixiFiber__namespace.CustomPIXIComponent;
34
+ var render = ReactDOM__default["default"].render;
35
+ var unmountComponentAtNode = ReactDOM__default["default"].unmountComponentAtNode;
36
+ var BitmapText = ReactPixiFiber__namespace.BitmapText;
37
+ var DisplayObjectContainer = ReactPixiFiber__namespace.Container;
38
+ var Graphics = ReactPixiFiber__namespace.Graphics;
39
+ var ParticleContainer = ReactPixiFiber__namespace.ParticleContainer;
40
+ var Sprite = ReactPixiFiber__namespace.Sprite;
41
+ var Stage = ReactPixiFiber__namespace.Stage;
42
+ var Text = ReactPixiFiber__namespace.Text;
43
+ var TilingSprite = ReactPixiFiber__namespace.TilingSprite;
25
44
  var ReactPIXI = {
26
45
  // Render methods
27
46
  CustomPIXIComponent: CustomPIXIComponent,
@@ -47,6 +66,6 @@ exports.Sprite = Sprite;
47
66
  exports.Stage = Stage;
48
67
  exports.Text = Text;
49
68
  exports.TilingSprite = TilingSprite;
50
- exports.default = ReactPIXI;
69
+ exports["default"] = ReactPIXI;
51
70
  exports.render = render;
52
71
  exports.unmountComponentAtNode = unmountComponentAtNode;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react-dom"),t=require("react-pixi-fiber");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(e),n=t.CustomPIXIComponent,i=o.default.render,p=o.default.unmountComponentAtNode,a=t.BitmapText,s=t.Container,u=t.Graphics,x=t.ParticleContainer,m=t.Sprite,l=t.Stage,C=t.Text,c=t.TilingSprite,d={CustomPIXIComponent:n,render:i,unmountComponentAtNode:p,BitmapText:a,DisplayObjectContainer:s,Graphics:u,ParticleContainer:x,Sprite:m,Stage:l,Text:C,TilingSprite:c};exports.BitmapText=a,exports.CustomPIXIComponent=n,exports.DisplayObjectContainer=s,exports.Graphics=u,exports.ParticleContainer=x,exports.Sprite=m,exports.Stage=l,exports.Text=C,exports.TilingSprite=c,exports.default=d,exports.render=i,exports.unmountComponentAtNode=p;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react-dom"),t=require("react-pixi-fiber");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o=r(e),i=n(t),p=i.CustomPIXIComponent,a=o.default.render,u=o.default.unmountComponentAtNode,s=i.BitmapText,c=i.Container,l=i.Graphics,x=i.ParticleContainer,f=i.Sprite,d=i.Stage,m=i.Text,C=i.TilingSprite,b={CustomPIXIComponent:p,render:a,unmountComponentAtNode:u,BitmapText:s,DisplayObjectContainer:c,Graphics:l,ParticleContainer:x,Sprite:f,Stage:d,Text:m,TilingSprite:C};exports.BitmapText=s,exports.CustomPIXIComponent=p,exports.DisplayObjectContainer=c,exports.Graphics=l,exports.ParticleContainer=x,exports.Sprite=f,exports.Stage=d,exports.Text=m,exports.TilingSprite=C,exports.default=b,exports.render=a,exports.unmountComponentAtNode=u;
2
2
  //# sourceMappingURL=react-pixi-alias.production.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-pixi-alias.production.min.js","sources":["../src/react-pixi-alias/index.js"],"sourcesContent":["import ReactDOM from \"react-dom\";\nimport * as ReactPixiFiber from \"react-pixi-fiber\";\n\n// react-pixi like API\n// Note: ReactPIXI.factories is not supported\n\nexport const CustomPIXIComponent = ReactPixiFiber.CustomPIXIComponent;\nexport const render = ReactDOM.render;\nexport const unmountComponentAtNode = ReactDOM.unmountComponentAtNode;\nexport const BitmapText = ReactPixiFiber.BitmapText;\nexport const DisplayObjectContainer = ReactPixiFiber.Container;\nexport const Graphics = ReactPixiFiber.Graphics;\nexport const ParticleContainer = ReactPixiFiber.ParticleContainer;\nexport const Sprite = ReactPixiFiber.Sprite;\nexport const Stage = ReactPixiFiber.Stage;\nexport const Text = ReactPixiFiber.Text;\nexport const TilingSprite = ReactPixiFiber.TilingSprite;\n\nconst ReactPIXI = {\n // Render methods\n CustomPIXIComponent,\n render,\n unmountComponentAtNode,\n // Components\n BitmapText,\n DisplayObjectContainer,\n Graphics,\n ParticleContainer,\n Sprite,\n Stage,\n Text,\n TilingSprite,\n};\n\nexport default ReactPIXI;\n"],"names":["CustomPIXIComponent","ReactPixiFiber","render","ReactDOM","unmountComponentAtNode","BitmapText","DisplayObjectContainer","Graphics","ParticleContainer","Sprite","Stage","Text","TilingSprite","ReactPIXI"],"mappings":"gNAMaA,EAAsBC,sBACtBC,EAASC,UAASD,OAClBE,EAAyBD,UAASC,uBAClCC,EAAaJ,aACbK,EAAyBL,YACzBM,EAAWN,WACXO,EAAoBP,oBACpBQ,EAASR,SACTS,EAAQT,QACRU,EAAOV,OACPW,EAAeX,eAEtBY,EAAY,CAEhBb,oBAAAA,EACAE,OAAAA,EACAE,uBAAAA,EAEAC,WAAAA,EACAC,uBAAAA,EACAC,SAAAA,EACAC,kBAAAA,EACAC,OAAAA,EACAC,MAAAA,EACAC,KAAAA,EACAC,aAAAA"}
1
+ {"version":3,"file":"react-pixi-alias.production.min.js","sources":["../src/react-pixi-alias/index.js"],"sourcesContent":["import ReactDOM from \"react-dom\";\nimport * as ReactPixiFiber from \"react-pixi-fiber\";\n\n// react-pixi like API\n// Note: ReactPIXI.factories is not supported\n\nexport const CustomPIXIComponent = ReactPixiFiber.CustomPIXIComponent;\nexport const render = ReactDOM.render;\nexport const unmountComponentAtNode = ReactDOM.unmountComponentAtNode;\nexport const BitmapText = ReactPixiFiber.BitmapText;\nexport const DisplayObjectContainer = ReactPixiFiber.Container;\nexport const Graphics = ReactPixiFiber.Graphics;\nexport const ParticleContainer = ReactPixiFiber.ParticleContainer;\nexport const Sprite = ReactPixiFiber.Sprite;\nexport const Stage = ReactPixiFiber.Stage;\nexport const Text = ReactPixiFiber.Text;\nexport const TilingSprite = ReactPixiFiber.TilingSprite;\n\nconst ReactPIXI = {\n // Render methods\n CustomPIXIComponent,\n render,\n unmountComponentAtNode,\n // Components\n BitmapText,\n DisplayObjectContainer,\n Graphics,\n ParticleContainer,\n Sprite,\n Stage,\n Text,\n TilingSprite,\n};\n\nexport default ReactPIXI;\n"],"names":["CustomPIXIComponent","ReactPixiFiber","render","ReactDOM","unmountComponentAtNode","BitmapText","DisplayObjectContainer","Container","Graphics","ParticleContainer","Sprite","Stage","Text","TilingSprite","ReactPIXI"],"mappings":"sfAMaA,EAAsBC,EAAeD,oBACrCE,EAASC,EAAQ,QAACD,OAClBE,EAAyBD,EAAQ,QAACC,uBAClCC,EAAaJ,EAAeI,WAC5BC,EAAyBL,EAAeM,UACxCC,EAAWP,EAAeO,SAC1BC,EAAoBR,EAAeQ,kBACnCC,EAAST,EAAeS,OACxBC,EAAQV,EAAeU,MACvBC,EAAOX,EAAeW,KACtBC,EAAeZ,EAAeY,aAErCC,EAAY,CAEhBd,oBAAAA,EACAE,OAAAA,EACAE,uBAAAA,EAEAC,WAAAA,EACAC,uBAAAA,EACAE,SAAAA,EACAC,kBAAAA,EACAC,OAAAA,EACAC,MAAAA,EACAC,KAAAA,EACAC,aAAAA"}