react-pixi-fiber 1.0.0-beta.13 → 1.0.0-beta.16

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 ADDED
@@ -0,0 +1,521 @@
1
+ # CHANGELOG
2
+ -----------
3
+
4
+ All notable changes to this project will be documented in this file.
5
+
6
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
7
+ and this project adheres to [Semantic Versioning](http://semver.org/).
8
+
9
+ ## [Unreleased]
10
+
11
+
12
+ ## [1.0.0-beta.16] - 2022-01-08
13
+
14
+ ### Added
15
+ - Added ReactDOM-like prop validation in development ([#47])
16
+ - Add ES format output
17
+ - Added missing `prop-types` dependency ([#221])
18
+
19
+ ### Changed
20
+ - Updated build dependencies
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])
25
+
26
+ ### Fixed
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
31
+
32
+ ### Removed
33
+ - Removed `performance-now` dependency
34
+
35
+
36
+ ## [0.14.2] - 2020-11-28
37
+
38
+ ### Fixed
39
+ - Fixed compatibility with React 17 and React.Suspense ([#196])
40
+
41
+
42
+ ## [0.14.1] - 2020-07-13
43
+
44
+ ### Fixed
45
+ - Fixed type compatibility with PixiJS v5.3.0 ([#185])
46
+
47
+
48
+ ## [0.14.0] - 2020-04-04
49
+
50
+ ### Added
51
+ - Added <NineSlicePlane /> component ([#176])
52
+
53
+ ### Fixed
54
+ - Fixed applyProps type definition ([#176])
55
+ - Fixed `StagePropsWithOptions` type definition to work with both PixiJS v4 and v5 ([#180])
56
+ - Fixed `StageProps` type definition to include `Container` props and exclude width and height ([#182])
57
+
58
+
59
+ ## [0.13.2] - 2020-02-17
60
+
61
+ ### Fixed
62
+ - Fixed `Stage` not to resize renderer if app is provided in props ([#174])
63
+
64
+
65
+ ## [0.13.1] - 2020-02-13
66
+
67
+ ### Added
68
+ - Added exports for type of props for built-in components ([#170])
69
+
70
+
71
+ ## [0.13.0] - 2020-02-03
72
+
73
+ ### Added
74
+ - Added `style` prop to `BitmapText` type ([#166])
75
+
76
+ ### Fixed
77
+ - Fixed type definitions to work with both PixiJS v4 and v5 ([#166])
78
+ - Fixed type definitions for properties of type `any` being replaced with `PointLike` ([#166])
79
+ - Fixed type definitions for built-in components to be able to use `ref`s ([#166])
80
+ - Fixed type definitions for `AppContext` which was exported as type, not as value ([#166])
81
+
82
+
83
+ ## [0.12.3] - 2020-01-28
84
+
85
+ ### Added
86
+ - Added missing type definitions ([#163])
87
+
88
+ ### Fixed
89
+ - Fixed type definitions for `CustomPIXIComponents` ([#163])
90
+ - Fixed type definitions for `Stage` to be able to use `ref`s ([#165])
91
+
92
+
93
+ ## [0.12.2] - 2020-01-20
94
+
95
+ ### Added
96
+ - Added support for point like props ([#162])
97
+
98
+ ### Changed
99
+ - Rewrote types definition
100
+
101
+
102
+ ## [0.12.1] - 2019-12-26
103
+
104
+ ### Fixed
105
+ - Fixed `ReactPixiFiber` to destroy child components when parent is removed from tree ([#157])
106
+
107
+
108
+ ## [0.12.0] - 2019-11-23
109
+
110
+ ### Added
111
+ - Added `app` prop to `Stage` ([#154])
112
+
113
+ ### Deprecated
114
+ - Deprecated `width` and `height` props of `Stage` ([#153])
115
+
116
+
117
+ ## [0.11.1] - 2019-10-25
118
+
119
+ ### Fixed
120
+ - Fixed usage of Point copy/copyFrom in PixiJS v5 ([#149])
121
+
122
+
123
+ ## [0.11.0] - 2019-10-22
124
+
125
+ ### Changed
126
+ - Exposed `createStageClass` from `Stage` ([#147])
127
+ - Changed dev tools version reported to be `React` version instead of `ReactPixiFiber` version ([#148])
128
+
129
+
130
+ ## [0.10.0] - 2019-10-18
131
+
132
+ ### Added
133
+ - Added `usePixiAppCreator`, `usePixiApp` and `usePixiTicker` hooks ([#127])
134
+
135
+ ### Changed
136
+ - Improved hooks support ([#127])
137
+
138
+
139
+ ## [0.9.3] - 2019-08-29
140
+
141
+ ### Changed
142
+ - Changed `console.warn` calls into `fbjs/lib/warning` calls.
143
+
144
+ ### Fixed
145
+ - Fixed setting default prop value when removing prop from instance ([#141])
146
+
147
+
148
+ ## [0.9.2] - 2019-08-01
149
+
150
+ ### Fixed
151
+ - Fixed type definition to include `withApp` ([#125])
152
+
153
+
154
+ ## [0.9.1] - 2019-07-31
155
+
156
+ ### Fixed
157
+ - Fixed renderer to be secondary when using `<Stage />` component
158
+
159
+
160
+ ## [0.9.0] - 2019-07-01
161
+
162
+ ### Added
163
+ - Added `scheduler`
164
+
165
+ ### Changed
166
+ - Updated `react-reconciler` to `0.20.4` ([#122])
167
+
168
+ ### Fixed
169
+ - Fixed PixiJS v5 compatibility issues ([#118])
170
+
171
+
172
+ ## [0.8.2] - 2019-07-01
173
+
174
+ ### Changed
175
+ - Changed `render` to inject into dev tools once per `containerTag`
176
+
177
+ ### Fixed
178
+ - Fixed `setPixiValue` for Point values when using PixiJS v5 ([#120])
179
+
180
+
181
+ ## [0.8.1] - 2019-05-29
182
+
183
+ ### Fixed
184
+ - Fixed interactive elements type definition ([#109])
185
+
186
+ ### Removed
187
+ - Removed `package.json` references from bundled code ([#112])
188
+
189
+
190
+ ## [0.8.0] - 2019-02-24
191
+
192
+ ### Added
193
+ - Expose `applyProps` from `ReactPixiFiber` ([#95])
194
+ - Added example of "native" Animated target for `react-pixi-fiber` ([#95])
195
+ - Added custom test environment for `jest` ([#97])
196
+
197
+ ### Changed
198
+ - Replaced deprecated canvas-prebuilt development dependency by canvas ([#97])
199
+
200
+ ### Fixed
201
+ - Fixed `customDidAttach` of example `<DraggableContainer />` component ([#91])
202
+ - Fixed `insertBefore` method of `ReactPixiFiber` ([#98])
203
+
204
+
205
+ ## [0.7.0] - 2018-12-27
206
+
207
+ ### Added
208
+ - Added unstable_batchedUpdates API ([#89])
209
+
210
+
211
+ ## [0.6.2] - 2018-11-14
212
+
213
+ ### Fixed
214
+ - Fixed PixiJS event props not being passed to `<Stage />` component ([#85])
215
+
216
+
217
+ ## [0.6.1] - 2018-11-10
218
+
219
+ ### Fixed
220
+ - Fixed context not passed through from primary renderer (`react-dom`) into `react-pixi-fiber` ([#84])
221
+
222
+
223
+ ## [0.6.0] - 2018-11-10
224
+
225
+ ### Fixed
226
+ - Fixed React 16.6.0 compatibility ([#83])
227
+
228
+
229
+ ## [0.5.1] - 2018-11-02
230
+
231
+ ### Added
232
+ - Added AppContext to type definition ([#81])
233
+
234
+ ### Fixed
235
+ - Fixed render function type definition ([#76])
236
+
237
+
238
+ ## [0.5.0] - 2018-10-10
239
+
240
+ ### Added
241
+ - Added support for New Context API ([#72])
242
+
243
+ ### Fixed
244
+ - Fixed React 16.5.0 compatibility ([#71])
245
+
246
+
247
+ ## [0.4.9] - 2018-07-09
248
+
249
+ ### Changed
250
+ - Changed `defaultApplyProps` to wrap console warnings in dev flag ([#67])
251
+
252
+
253
+ ## [0.4.8] - 2018-06-25
254
+
255
+ ### Changed
256
+ - Updated `react-reconciler` to `0.12.0` ([#65])
257
+
258
+ ### Fixed
259
+ - Removed namespace from Typescript definition ([#64])
260
+
261
+
262
+ ## [0.4.7] - 2018-06-10
263
+
264
+ ### Changed
265
+ - Changed `<Stage />` to support `width` and `height` passed in `options` prop ([#60])
266
+
267
+ ### Fixed
268
+ - Fixed TypeScript definitions to support TypeScript 2.9 ([#58])
269
+ - Fixed memory leak when mounting/unmounting `<Stage />` ([#61])
270
+
271
+
272
+ ## [0.4.6] - 2018-05-22
273
+
274
+ ### Fixed
275
+ - Fixed TypeScript definitions ([#54])
276
+
277
+
278
+ ## [0.4.5] - 2018-05-18
279
+
280
+ ### Changed
281
+ - Updated `react-reconciler` to `0.10.0` ([#53])
282
+
283
+
284
+ ## [0.4.4] - 2018-05-09
285
+
286
+ ### Fixed
287
+ - Fixed cjs build of react-pixi-alias
288
+
289
+
290
+ ## [0.4.3] - 2018-03-28
291
+
292
+ ### Fixed
293
+ - Fixed entry point to load module by env
294
+ - Fixed `commitUpdate` for `CustomPIXIComponents` ([#44])
295
+
296
+
297
+ ## [0.4.2] - 2018-03-27
298
+
299
+ ### Fixed
300
+ - Fixed cjs build
301
+
302
+
303
+ ## [0.4.1] - 2018-03-27 [YANKED]
304
+
305
+ ### Added
306
+ - Added unit tests ([#6])
307
+
308
+ ### Changed
309
+ - Changed bundler from babel-cli to Rollup
310
+
311
+ ### Fixed
312
+ - Fixed `prepareUpdate` to return diff of props ([#43])
313
+
314
+
315
+ ## [0.4.0] - 2018-02-28
316
+
317
+ ### Fixed
318
+ - Fixed DisplayObject members passed to Stage as props not being applied to root Container ([#38])
319
+
320
+
321
+ ## [0.3.1] - 2018-02-25
322
+
323
+ ### Fixed
324
+ - Fixed PropTypes warning in Stage ([#34])
325
+ - Added `react-pixi-alias.js` file to distributed package `files` list ([#37])
326
+
327
+
328
+ ## [0.3.0] - 2018-02-15
329
+
330
+ ### Added
331
+ - Added parser for PIXI.Point-like props - Point-like DisplayObject members can now be assigned using string, number, array and Point/ObservablePoint ([#19])
332
+ - Added support for custom components using `react-pixi` API ([#19])
333
+
334
+ ### Changed
335
+ - Changed `<Stage />` to pass `options` prop to `PIXI.Application` ([#28])
336
+ - Changed `<Stage />` to pass not consumed props to rendered canvas ([#29])
337
+ - Changed `<Stage />` to resize renderer when dimensions are changed ([#30])
338
+ - Changed inconsistent usage of reconciler config functions to use regular functions instead of anonymous arrow functions
339
+ - Changed `PIXI.DisplayObject` members handling when passed as props - `undefined` values will now be replaced with default values if default defined
340
+
341
+ ### Fixed
342
+ - Fixed deprecated usage of `PIXI.BitmapText` to `PIXI.extras.BitmapText`
343
+
344
+ ### Removed
345
+ - Removed `backgroundColor` prop from `<Stage />` ([#28])
346
+
347
+
348
+ ## [0.2.5] - 2018-02-11
349
+
350
+ ### Added
351
+ - Added back removed `useSyncScheduling` option ([#15])
352
+
353
+ ### Fixed
354
+ - Added `index.d.ts` file to distributed package `files` list ([#4], [#8])
355
+
356
+
357
+ ## [0.2.4] - 2018-02-07 [YANKED]
358
+
359
+ ### Removed
360
+ - Removed deprecated `useSyncScheduling` option ([#15])
361
+
362
+
363
+ ## [0.2.3] - 2018-02-06
364
+
365
+ ### Added
366
+ - Added an alias for "easy" migration from [`react-pixi`](https://github.com/Izzimach/react-pixi) ([#9])
367
+ - Added TypeScript definitions ([#8])
368
+
369
+
370
+ ## [0.2.2] - 2018-01-17
371
+
372
+ ### Fixed
373
+ - Fixed distributed cjs files by using `transform-es2015-modules-commonjs` with `babel` ([#4])
374
+
375
+
376
+ ## [0.2.1] - 2018-01-17
377
+
378
+ ### Added
379
+ - Added `<ParticleContainer />` component
380
+ - Added development build script
381
+ - Added `files` to `package.json`
382
+
383
+
384
+ ## [0.2.0] - 2018-01-05
385
+
386
+ ### Added
387
+ - Added standalone `render` function ([#2])
388
+
389
+
390
+ ## [0.1.1] - 2018-01-05
391
+
392
+ ### Fixed
393
+ - Added missing `performance-now` dependency
394
+
395
+
396
+ ## 0.1.0 - 2018-01-05
397
+
398
+ ### Added
399
+ - Added `ReactPixiFiber` renderer
400
+ - Added `<Stage />` component
401
+ - Added `<BitmapText />` component
402
+ - Added `<Container />` component
403
+ - Added `<Graphics />` component
404
+ - Added `<Sprite />` component
405
+ - Added `<Text />` component
406
+ - Added `<TilingSprite />` component
407
+
408
+
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
411
+ [0.14.2]: https://github.com/michalochman/react-pixi-fiber/compare/v0.14.1...v0.14.2
412
+ [0.14.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.14.0...v0.14.1
413
+ [0.14.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.13.2...v0.14.0
414
+ [0.13.2]: https://github.com/michalochman/react-pixi-fiber/compare/v0.13.1...v0.13.2
415
+ [0.13.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.13.0...v0.13.1
416
+ [0.13.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.12.3...v0.13.0
417
+ [0.12.3]: https://github.com/michalochman/react-pixi-fiber/compare/v0.12.2...v0.12.3
418
+ [0.12.2]: https://github.com/michalochman/react-pixi-fiber/compare/v0.12.1...v0.12.2
419
+ [0.12.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.12.0...v0.12.1
420
+ [0.12.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.11.1...v0.12.0
421
+ [0.11.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.11.0...v0.11.1
422
+ [0.11.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.10.0...v0.11.0
423
+ [0.10.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.9.3...v0.10.0
424
+ [0.9.3]: https://github.com/michalochman/react-pixi-fiber/compare/v0.9.2...v0.9.3
425
+ [0.9.2]: https://github.com/michalochman/react-pixi-fiber/compare/v0.9.1...v0.9.2
426
+ [0.9.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.9.0...v0.9.1
427
+ [0.9.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.8.2...v0.9.0
428
+ [0.8.2]: https://github.com/michalochman/react-pixi-fiber/compare/v0.8.1...v0.8.2
429
+ [0.8.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.8.0...v0.8.1
430
+ [0.8.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.7.0...v0.8.0
431
+ [0.7.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.6.2...v0.7.0
432
+ [0.6.2]: https://github.com/michalochman/react-pixi-fiber/compare/v0.6.1...v0.6.2
433
+ [0.6.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.6.0...v0.6.1
434
+ [0.6.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.5.1...v0.6.0
435
+ [0.5.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.5.0...v0.5.1
436
+ [0.5.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.4.9...v0.5.0
437
+ [0.4.9]: https://github.com/michalochman/react-pixi-fiber/compare/v0.4.8...v0.4.9
438
+ [0.4.8]: https://github.com/michalochman/react-pixi-fiber/compare/v0.4.7...v0.4.8
439
+ [0.4.7]: https://github.com/michalochman/react-pixi-fiber/compare/v0.4.6...v0.4.7
440
+ [0.4.6]: https://github.com/michalochman/react-pixi-fiber/compare/v0.4.5...v0.4.6
441
+ [0.4.5]: https://github.com/michalochman/react-pixi-fiber/compare/v0.4.4...v0.4.5
442
+ [0.4.4]: https://github.com/michalochman/react-pixi-fiber/compare/v0.4.3...v0.4.4
443
+ [0.4.3]: https://github.com/michalochman/react-pixi-fiber/compare/v0.4.2...v0.4.3
444
+ [0.4.2]: https://github.com/michalochman/react-pixi-fiber/compare/v0.4.1...v0.4.2
445
+ [0.4.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.4.0...v0.4.1
446
+ [0.4.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.3.1...v0.4.0
447
+ [0.3.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.3.0...v0.3.1
448
+ [0.3.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.2.5...v0.3.0
449
+ [0.2.5]: https://github.com/michalochman/react-pixi-fiber/compare/v0.2.4...v0.2.5
450
+ [0.2.4]: https://github.com/michalochman/react-pixi-fiber/compare/v0.2.3...v0.2.4
451
+ [0.2.3]: https://github.com/michalochman/react-pixi-fiber/compare/v0.2.2...v0.2.3
452
+ [0.2.2]: https://github.com/michalochman/react-pixi-fiber/compare/v0.2.1...v0.2.2
453
+ [0.2.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.2.0...v0.2.1
454
+ [0.2.0]: https://github.com/michalochman/react-pixi-fiber/compare/v0.1.1...v0.2.0
455
+ [0.1.1]: https://github.com/michalochman/react-pixi-fiber/compare/v0.1.0...v0.1.1
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
462
+ [#196]: https://github.com/michalochman/react-pixi-fiber/issues/196
463
+ [#185]: https://github.com/michalochman/react-pixi-fiber/issues/185
464
+ [#182]: https://github.com/michalochman/react-pixi-fiber/pull/182
465
+ [#180]: https://github.com/michalochman/react-pixi-fiber/pull/180
466
+ [#174]: https://github.com/michalochman/react-pixi-fiber/pull/174
467
+ [#170]: https://github.com/michalochman/react-pixi-fiber/pull/170
468
+ [#166]: https://github.com/michalochman/react-pixi-fiber/pull/166
469
+ [#165]: https://github.com/michalochman/react-pixi-fiber/pull/165
470
+ [#163]: https://github.com/michalochman/react-pixi-fiber/pull/163
471
+ [#162]: https://github.com/michalochman/react-pixi-fiber/pull/162
472
+ [#157]: https://github.com/michalochman/react-pixi-fiber/pull/157
473
+ [#154]: https://github.com/michalochman/react-pixi-fiber/pull/154
474
+ [#153]: https://github.com/michalochman/react-pixi-fiber/pull/153
475
+ [#149]: https://github.com/michalochman/react-pixi-fiber/issues/149
476
+ [#148]: https://github.com/michalochman/react-pixi-fiber/pull/148
477
+ [#147]: https://github.com/michalochman/react-pixi-fiber/pull/147
478
+ [#141]: https://github.com/michalochman/react-pixi-fiber/pull/141
479
+ [#127]: https://github.com/michalochman/react-pixi-fiber/pull/127
480
+ [#125]: https://github.com/michalochman/react-pixi-fiber/issues/125
481
+ [#122]: https://github.com/michalochman/react-pixi-fiber/issues/122
482
+ [#120]: https://github.com/michalochman/react-pixi-fiber/issues/120
483
+ [#118]: https://github.com/michalochman/react-pixi-fiber/issues/118
484
+ [#112]: https://github.com/michalochman/react-pixi-fiber/pull/112
485
+ [#109]: https://github.com/michalochman/react-pixi-fiber/pull/109
486
+ [#98]: https://github.com/michalochman/react-pixi-fiber/pull/98
487
+ [#97]: https://github.com/michalochman/react-pixi-fiber/pull/97
488
+ [#95]: https://github.com/michalochman/react-pixi-fiber/pull/95
489
+ [#91]: https://github.com/michalochman/react-pixi-fiber/issues/91
490
+ [#89]: https://github.com/michalochman/react-pixi-fiber/pull/89
491
+ [#85]: https://github.com/michalochman/react-pixi-fiber/issues/85
492
+ [#84]: https://github.com/michalochman/react-pixi-fiber/pull/84
493
+ [#83]: https://github.com/michalochman/react-pixi-fiber/pull/83
494
+ [#81]: https://github.com/michalochman/react-pixi-fiber/issues/81
495
+ [#76]: https://github.com/michalochman/react-pixi-fiber/pull/76
496
+ [#72]: https://github.com/michalochman/react-pixi-fiber/pull/72
497
+ [#71]: https://github.com/michalochman/react-pixi-fiber/issues/71
498
+ [#67]: https://github.com/michalochman/react-pixi-fiber/pull/67
499
+ [#65]: https://github.com/michalochman/react-pixi-fiber/pull/65
500
+ [#64]: https://github.com/michalochman/react-pixi-fiber/pull/64
501
+ [#61]: https://github.com/michalochman/react-pixi-fiber/pull/61
502
+ [#60]: https://github.com/michalochman/react-pixi-fiber/pull/60
503
+ [#58]: https://github.com/michalochman/react-pixi-fiber/issues/58
504
+ [#54]: https://github.com/michalochman/react-pixi-fiber/issues/54
505
+ [#53]: https://github.com/michalochman/react-pixi-fiber/pull/53
506
+ [#47]: https://github.com/michalochman/react-pixi-fiber/pull/47
507
+ [#44]: https://github.com/michalochman/react-pixi-fiber/issues/44
508
+ [#43]: https://github.com/michalochman/react-pixi-fiber/issues/43
509
+ [#38]: https://github.com/michalochman/react-pixi-fiber/issues/38
510
+ [#37]: https://github.com/michalochman/react-pixi-fiber/pull/37
511
+ [#34]: https://github.com/michalochman/react-pixi-fiber/pull/34
512
+ [#30]: https://github.com/michalochman/react-pixi-fiber/pull/31
513
+ [#29]: https://github.com/michalochman/react-pixi-fiber/issues/29
514
+ [#28]: https://github.com/michalochman/react-pixi-fiber/issues/28
515
+ [#19]: https://github.com/michalochman/react-pixi-fiber/issues/19
516
+ [#15]: https://github.com/michalochman/react-pixi-fiber/issues/15
517
+ [#9]: https://github.com/michalochman/react-pixi-fiber/issues/9
518
+ [#8]: https://github.com/michalochman/react-pixi-fiber/issues/8
519
+ [#6]: https://github.com/michalochman/react-pixi-fiber/issues/6
520
+ [#4]: https://github.com/michalochman/react-pixi-fiber/issues/4
521
+ [#2]: https://github.com/michalochman/react-pixi-fiber/issues/2
package/README.md CHANGED
@@ -15,6 +15,22 @@ For React <16.0.0 see [`react-pixi`].
15
15
  See [Rotating Bunny](https://codesandbox.io/s/q7oj1p0jo6) demo.
16
16
 
17
17
 
18
+
19
+
20
+ ## Installing
21
+
22
+ The current version assumes [React] >16.0.0 and [PixiJS] >4.4.0
23
+
24
+ yarn add react-pixi-fiber prop-types pixi.js
25
+
26
+ or
27
+
28
+ npm install react-pixi-fiber prop-types pixi.js --save
29
+
30
+ Refer to next sections to see usage examples.
31
+
32
+ This package works flawlessly with [Create React App](https://github.com/facebookincubator/create-react-app) – see examples below, they already use it.
33
+
18
34
  ## Usage
19
35
 
20
36
  ### With ReactDOM
@@ -73,19 +89,6 @@ This example will render [`PIXI.Text`] object into a [Root Container] of PIXI Ap
73
89
  4. Wait few seconds and browse examples that will open in new browser window.
74
90
 
75
91
 
76
- ## Installing
77
-
78
- The current version assumes [React] >16.0.0 and [PixiJS] >4.4.0
79
-
80
- yarn add react-pixi-fiber
81
-
82
- or
83
-
84
- npm install react-pixi-fiber --save
85
-
86
- This package works flawlessly with [Create React App](https://github.com/facebookincubator/create-react-app) – see examples above, they already use it.
87
-
88
-
89
92
  ## Migrating from [`react-pixi`]
90
93
 
91
94
  It is possible to use React Pixi Fiber as a drop-in replacement for `react-pixi`.
@@ -496,7 +499,7 @@ Yes! Awesome!
496
499
 
497
500
  ### What version of PixiJS I can use?
498
501
 
499
- Both PixiJS v4 and v5 are supported.
502
+ PixiJS v4, v5 and v6 are supported.
500
503
 
501
504
  ### Can I use already existing [`PIXI.Application`]?
502
505
 
@@ -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"}