@react-three/fiber 8.15.19 → 8.16.1

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +956 -944
  2. package/dist/declarations/src/core/events.d.ts +93 -93
  3. package/dist/declarations/src/core/hooks.d.ts +57 -57
  4. package/dist/declarations/src/core/index.d.ts +87 -87
  5. package/dist/declarations/src/core/loop.d.ts +38 -38
  6. package/dist/declarations/src/core/renderer.d.ts +58 -58
  7. package/dist/declarations/src/core/store.d.ts +138 -138
  8. package/dist/declarations/src/core/utils.d.ts +131 -131
  9. package/dist/declarations/src/index.d.ts +12 -12
  10. package/dist/declarations/src/native/Canvas.d.ts +14 -14
  11. package/dist/declarations/src/native/events.d.ts +5 -5
  12. package/dist/declarations/src/native/polyfills.d.ts +1 -1
  13. package/dist/declarations/src/native.d.ts +12 -12
  14. package/dist/declarations/src/three-types.d.ts +393 -393
  15. package/dist/declarations/src/web/Canvas.d.ts +24 -24
  16. package/dist/declarations/src/web/events.d.ts +5 -5
  17. package/dist/{index-b90e75f9.cjs.dev.js → index-382d4f47.cjs.dev.js} +92 -73
  18. package/dist/{index-e6b5343a.esm.js → index-d98fd1c7.esm.js} +92 -73
  19. package/dist/{index-87af8422.cjs.prod.js → index-e8d6e828.cjs.prod.js} +92 -73
  20. package/dist/react-three-fiber.cjs.dev.js +4 -4
  21. package/dist/react-three-fiber.cjs.prod.js +4 -4
  22. package/dist/react-three-fiber.esm.js +5 -5
  23. package/native/dist/react-three-fiber-native.cjs.dev.js +7 -7
  24. package/native/dist/react-three-fiber-native.cjs.prod.js +7 -7
  25. package/native/dist/react-three-fiber-native.esm.js +8 -8
  26. package/native/package.json +5 -5
  27. package/package.json +1 -1
  28. package/readme.md +253 -253
package/CHANGELOG.md CHANGED
@@ -1,944 +1,956 @@
1
- # @react-three/fiber
2
-
3
- ## 8.15.19
4
-
5
- ### Patch Changes
6
-
7
- - 74926b94: fix(types): avoid emitting THREE.XRFrame
8
-
9
- ## 8.15.18
10
-
11
- ### Patch Changes
12
-
13
- - 8c01939a: fix: correctly pass frames in invalidate
14
-
15
- ## 8.15.17
16
-
17
- ### Patch Changes
18
-
19
- - 16c2ee97: fix(types): support @types/three@0.162.0
20
-
21
- ## 8.15.16
22
-
23
- ### Patch Changes
24
-
25
- - 71cd8f96: fix: tonemapping config overwrites userland
26
- - 0bb12fd1: fix(types): remove usage of THREE.Vector
27
-
28
- ## 8.15.14
29
-
30
- ### Patch Changes
31
-
32
- - 0afc9c12: fix: portal events, update examples
33
-
34
- ## 8.15.13
35
-
36
- ### Patch Changes
37
-
38
- - 0a399f6d: fix(native): use MSAA for antialias on iOS
39
-
40
- ## 8.15.12
41
-
42
- ### Patch Changes
43
-
44
- - 496d6f0d: fix: useLoader and XRFrame type fixes
45
-
46
- ## 8.15.11
47
-
48
- ### Patch Changes
49
-
50
- - 3d9af04d: fix: update import from three examples
51
-
52
- ## 8.15.10
53
-
54
- ### Patch Changes
55
-
56
- - 49158164: fix: don't recursively dispose primitives
57
-
58
- ## 8.15.9
59
-
60
- ### Patch Changes
61
-
62
- - 4cbc5530: fix(native): deopt iOS blob URI path
63
-
64
- ## 8.15.8
65
-
66
- ### Patch Changes
67
-
68
- - 70680832: fix: revert stable sort
69
-
70
- ## 8.15.7
71
-
72
- ### Patch Changes
73
-
74
- - 07e39e2e: fix(types): remove use of Object3D generic
75
-
76
- ## 8.15.6
77
-
78
- ### Patch Changes
79
-
80
- - 7bb2950b: experiment: stable object sort
81
-
82
- ## 8.15.5
83
-
84
- ### Patch Changes
85
-
86
- - 0e44fd8b: fix(types): preserve deprecated JSX annotations
87
-
88
- ## 8.15.4
89
-
90
- ### Patch Changes
91
-
92
- - 634e5db5: fix(native): harden Blob URI check for Android
93
-
94
- ## 8.15.3
95
-
96
- ### Patch Changes
97
-
98
- - beab4344: fix(native): workaround Android content policy for Blob URI
99
-
100
- ## 8.15.2
101
-
102
- ### Patch Changes
103
-
104
- - 086d3932: fix: size check and raycaster camera
105
-
106
- ## 8.15.1
107
-
108
- ### Patch Changes
109
-
110
- - 2d39676d: fix: ignore deprecated types, use correct XRFrame definition
111
-
112
- ## 8.15.0
113
-
114
- ### Minor Changes
115
-
116
- - cca8b6bb: feat: export buildGraph
117
-
118
- ## 8.14.7
119
-
120
- ### Patch Changes
121
-
122
- - 0f63a287: fix(native): restore polyfill conversions, drop networking
123
-
124
- ## 8.14.6
125
-
126
- ### Patch Changes
127
-
128
- - 465fa0fb: fix(native): revert usage of networking stack
129
-
130
- ## 8.14.5
131
-
132
- ### Patch Changes
133
-
134
- - f372a5b5: fix(applyProps): loosen copy identity in dev
135
-
136
- ## 8.14.4
137
-
138
- ### Patch Changes
139
-
140
- - dc7e5739: fix(native): amend BlobManager over globals
141
-
142
- ## 8.14.3
143
-
144
- ### Patch Changes
145
-
146
- - d77b0990: fix(native): drop fsstat for react-native-web
147
-
148
- ## 8.14.2
149
-
150
- ### Patch Changes
151
-
152
- - 33e8baef: fix: native perf, loader types
153
-
154
- ## 8.14.1
155
-
156
- ### Patch Changes
157
-
158
- - c99907bf: fix(native): prefer local uri for fs
159
-
160
- ## 8.14.0
161
-
162
- ### Minor Changes
163
-
164
- - 89e96bf4: feat: react-native-web, native globals fixes
165
-
166
- ## 8.13.9
167
-
168
- ### Patch Changes
169
-
170
- - 44d57b3c: fix(native): TextureLoader should remain consistent with FileLoader
171
-
172
- ## 8.13.8
173
-
174
- ### Patch Changes
175
-
176
- - 5da26d52: fix(useLoader): dispose loaders
177
-
178
- ## 8.13.7
179
-
180
- ### Patch Changes
181
-
182
- - 37b9502a: fix(Canvas): pass scene prop
183
-
184
- ## 8.13.6
185
-
186
- ### Patch Changes
187
-
188
- - 0597495c: fix: harden XR init against Renderer shim
189
-
190
- ## 8.13.5
191
-
192
- ### Patch Changes
193
-
194
- - 7a3b543b: fix: three type regressions
195
-
196
- ## 8.13.4
197
-
198
- ### Patch Changes
199
-
200
- - 824ee0f7: fix: safely diff instances
201
-
202
- ## 8.13.3
203
-
204
- ### Patch Changes
205
-
206
- - ffdb5fc4: revert nested portals, up suspend-react
207
-
208
- ## 8.13.2
209
-
210
- ### Patch Changes
211
-
212
- - bbabdf07: update suspend-react
213
-
214
- ## 8.13.1
215
-
216
- ### Patch Changes
217
-
218
- - c9fe03ba: fix: primitive swap and reactive portals
219
-
220
- ## 8.13.0
221
-
222
- ### Minor Changes
223
-
224
- - ecfc48b7: feat: CanvasProps alias, respect r152 color management
225
-
226
- ## 8.12.2
227
-
228
- ### Patch Changes
229
-
230
- - c5193468: fix: safeguard window.devicePixelRatio
231
-
232
- ## 8.12.1
233
-
234
- ### Patch Changes
235
-
236
- - 571f07ac: fix: safeguard window.devicePixelRatio
237
-
238
- ## 8.12.0
239
-
240
- ### Minor Changes
241
-
242
- - 1928d095: feat: `scene` render prop for custom THREE.Scene
243
-
244
- ## 8.11.11
245
-
246
- ### Patch Changes
247
-
248
- - f03c6ef8: feat: `scene` render prop for custom THREE.Scene
249
-
250
- ## 8.11.10
251
-
252
- ### Patch Changes
253
-
254
- - 12907836: fix onpointerlostcapture which fired before pointerup
255
-
256
- ## 8.11.9
257
-
258
- ### Patch Changes
259
-
260
- - 6b5f572c: fix: treeshake THREE.ColorManagement
261
-
262
- ## 8.11.8
263
-
264
- ### Patch Changes
265
-
266
- - 350cd3f3: fix(Canvas): inline render-effect
267
-
268
- ## 8.11.7
269
-
270
- ### Patch Changes
271
-
272
- - 96af62d5: fix: don't overwrite public cameras
273
-
274
- ## 8.11.6
275
-
276
- ### Patch Changes
277
-
278
- - 7d319c18: Fix is.equ obj:shallow, allow it to test arrays 1 level deep, fix canvas.camera prop being stale
279
-
280
- ## 8.11.5
281
-
282
- ### Patch Changes
283
-
284
- - c658f763: fix: update canvas prop types
285
-
286
- ## 8.11.4
287
-
288
- ### Patch Changes
289
-
290
- - 970aa58b: fix: play nice with offscreencanvas
291
-
292
- ## 8.11.3
293
-
294
- ### Patch Changes
295
-
296
- - 2bce569c: fix: progressively set colormanagement
297
-
298
- ## 8.11.2
299
-
300
- ### Patch Changes
301
-
302
- - 41d655cd: fix: hmr, srgb encode
303
-
304
- ## 8.11.1
305
-
306
- ### Patch Changes
307
-
308
- - 58cadeff: fix: skip circular onUpdate calls
309
-
310
- ## 8.11.0
311
-
312
- ### Minor Changes
313
-
314
- - 2917a47b: events.update, allow raycast w/o user interaction
315
- - 521bfb07: events.update, allow raycast w/o user interaction
316
-
317
- ## 8.10.4
318
-
319
- ### Patch Changes
320
-
321
- - d9e6316d: fix: transpile class properties
322
-
323
- ## 8.10.3
324
-
325
- ### Patch Changes
326
-
327
- - d06d2879: fix: align useLoader type, public fields from builds
328
-
329
- ## 8.10.2
330
-
331
- ### Patch Changes
332
-
333
- - 564edbbb: fix port inject layers, it should allow root props to overwrite indefined portal props"
334
-
335
- ## 8.10.1
336
-
337
- ### Patch Changes
338
-
339
- - bfa0298f: fix memoized identity
340
-
341
- ## 8.10.0
342
-
343
- ### Minor Changes
344
-
345
- - 24c4dba4: shortcut for shadow type
346
-
347
- ## 8.9.2
348
-
349
- ### Patch Changes
350
-
351
- - 2aeb6500: fix: primitives are incorrectly swapped on key change in maps
352
-
353
- ## 8.9.1
354
-
355
- ### Patch Changes
356
-
357
- - 0cf11797: fix(events): type spread event props
358
-
359
- ## 8.9.0
360
-
361
- ### Minor Changes
362
-
363
- - a458b4dd: fix(loop): export flush methods and types
364
-
365
- ## 8.8.11
366
-
367
- ### Patch Changes
368
-
369
- - 2068f0cc: fix: events pointerlock, useLoader extension types
370
-
371
- ## 8.8.10
372
-
373
- ### Patch Changes
374
-
375
- - 00c24718: fix: invalidate pierced props
376
-
377
- ## 8.8.9
378
-
379
- ### Patch Changes
380
-
381
- - 4254400e: fix(createPortal): use correct JSX type
382
-
383
- ## 8.8.8
384
-
385
- ### Patch Changes
386
-
387
- - fcb183e3: fix: call onUpdate for attached children prop update
388
-
389
- ## 8.8.7
390
-
391
- ### Patch Changes
392
-
393
- - bedb16e7: fix: prefer named functions, for loops in hot paths
394
-
395
- ## 8.8.6
396
-
397
- ### Patch Changes
398
-
399
- - 02a558bb: fix: upgrade deps
400
-
401
- ## 8.8.5
402
-
403
- ### Patch Changes
404
-
405
- - 530a06d6: fix: upgrade deps to work-around CRA
406
-
407
- ## 8.8.4
408
-
409
- ### Patch Changes
410
-
411
- - 2f2dc9f9: chore: upgrade bridge to harden suspense behavior
412
-
413
- ## 8.8.3
414
-
415
- ### Patch Changes
416
-
417
- - 9f571239: fix #2506, events should fall back to rootstate"
418
-
419
- ## 8.8.2
420
-
421
- ### Patch Changes
422
-
423
- - dc389ed6: fix(Canvas): prevent remount on context update
424
-
425
- ## 8.8.1
426
-
427
- ### Patch Changes
428
-
429
- - 370d3ae5: refactor: pull context bridge from its-fine
430
-
431
- ## 8.8.0
432
-
433
- ### Minor Changes
434
-
435
- - 46d8b440: bridge cross-container context
436
-
437
- ## 8.7.4
438
-
439
- ### Patch Changes
440
-
441
- - 259c8895: fix: use self to get global context before window
442
-
443
- ## 8.7.3
444
-
445
- ### Patch Changes
446
-
447
- - eb5a3be4: fix: if there is an eventsource pointerevent will be set to none
448
-
449
- ## 8.7.2
450
-
451
- ### Patch Changes
452
-
453
- - 7f801e60: fix: events in portals carry the wrong raycaster, camera, etc
454
-
455
- ## 8.7.1
456
-
457
- ### Patch Changes
458
-
459
- - 962cc270: fix: allow canvas eventsource to be a ref
460
-
461
- ## 8.7.0
462
-
463
- ### Minor Changes
464
-
465
- - f5db1b78: feat: useInstanceHandle, flushGlobalEffects
466
-
467
- ## 8.6.2
468
-
469
- ### Patch Changes
470
-
471
- - 57c12e9c: fix(types): @react-three/drei declaration files
472
-
473
- ## 8.6.1
474
-
475
- ### Patch Changes
476
-
477
- - 7a0b5670: fix(core): don't append to unmounted containers
478
-
479
- ## 8.6.0
480
-
481
- ### Minor Changes
482
-
483
- - 85c80e70: eventsource and eventprefix on the canvas component
484
-
485
- ## 8.5.1
486
-
487
- ### Patch Changes
488
-
489
- - 87821d9: fix: null-check instance.children on reconstruct
490
-
491
- ## 8.5.0
492
-
493
- ### Minor Changes
494
-
495
- - edc8252: feat: handle primitive children, auto-attach via instanceof
496
-
497
- ## 8.3.1
498
-
499
- ### Patch Changes
500
-
501
- - aaeb2b8: fix(types): accept readonly arrays for vector props
502
-
503
- ## 8.3.0
504
-
505
- ### Minor Changes
506
-
507
- - 9c450ec: feat: improve errors
508
-
509
- ## 8.2.3
510
-
511
- ### Patch Changes
512
-
513
- - b8d2eab: fix: improve useLoader signature, initial size on createRoot
514
-
515
- ## 8.2.2
516
-
517
- ### Patch Changes
518
-
519
- - acd6f04: fix: warn on stray text
520
-
521
- ## 8.2.1
522
-
523
- ### Patch Changes
524
-
525
- - 25e35a1: fix: prefer useLayoutEffect in react-native
526
-
527
- ## 8.2.0
528
-
529
- ### Minor Changes
530
-
531
- - 9770d7d: feat: expose ThreeElements interface for JSX elements
532
-
533
- ## 8.1.0
534
-
535
- ### Minor Changes
536
-
537
- - 8d0f708c: Expose position information in state.size
538
-
539
- ## 8.0.27
540
-
541
- ### Patch Changes
542
-
543
- - 7940995: fix: resume on xrsession end, export internal events
544
-
545
- ## 8.0.26
546
-
547
- ### Patch Changes
548
-
549
- - 7b6df9df: fix: infinite loop updating cam viewport
550
-
551
- ## 8.0.25
552
-
553
- ### Patch Changes
554
-
555
- - b7cd0f42: update viewport on camera changes
556
-
557
- ## 8.0.24
558
-
559
- ### Patch Changes
560
-
561
- - ee8e785: fix: attach timings
562
-
563
- ## 8.0.23
564
-
565
- ### Patch Changes
566
-
567
- - 29d03c64: revert multi attach
568
-
569
- ## 8.0.22
570
-
571
- ### Patch Changes
572
-
573
- - 419e854: fix: always prepare primitives
574
-
575
- ## 8.0.21
576
-
577
- ### Patch Changes
578
-
579
- - 3098b9b: fix: resizing in worker contexts, copy over attachments on reconstruct
580
-
581
- ## 8.0.20
582
-
583
- ### Patch Changes
584
-
585
- - 4c87bce: fix: attach, devtools, and perf fixes
586
-
587
- ## 8.0.19
588
-
589
- ### Patch Changes
590
-
591
- - 360b45a: fix: handle attach on reconstruct
592
-
593
- ## 8.0.18
594
-
595
- ### Patch Changes
596
-
597
- - be567c1: fix: suspense attach and three compat in webpack
598
-
599
- ## 8.0.17
600
-
601
- ### Patch Changes
602
-
603
- - 9e3369e: fix dom resize, improve native tree shaking
604
-
605
- ## 8.0.16
606
-
607
- ### Patch Changes
608
-
609
- - 669c45c: correctly type useLoader results
610
-
611
- ## 8.0.15
612
-
613
- ### Patch Changes
614
-
615
- - c4715d5f: allow invalidate to preempt more than 1 frame
616
-
617
- ## 8.0.14
618
-
619
- ### Patch Changes
620
-
621
- - 5559a119: Add support for recoverable errors
622
-
623
- ## 8.0.13
624
-
625
- ### Patch Changes
626
-
627
- - 9d77d8e2: fix: detach attribute removal
628
-
629
- ## 8.0.12
630
-
631
- ### Patch Changes
632
-
633
- - 3d10413f: fix portal layers
634
-
635
- ## 8.0.11
636
-
637
- ### Patch Changes
638
-
639
- - 5167b1e4: memoized.args can be undefined
640
-
641
- ## 8.0.10
642
-
643
- ### Patch Changes
644
-
645
- - eb321afd: fix: remount bug, allow portals to inject custom size
646
-
647
- ## 8.0.9
648
-
649
- ### Patch Changes
650
-
651
- - 624df949: fix: canvas unmount race condition"
652
-
653
- ## 8.0.8
654
-
655
- ### Patch Changes
656
-
657
- - 952a566: fix: react SSR
658
-
659
- ## 8.0.7
660
-
661
- ### Patch Changes
662
-
663
- - f63806b: fix: react SSR
664
-
665
- ## 8.0.6
666
-
667
- ### Patch Changes
668
-
669
- - d4bafb9: fix re-parenting, useframe not working properly in portals, attach crash
670
-
671
- ## 8.0.5
672
-
673
- ### Patch Changes
674
-
675
- - 227c328: fix pointer for root and portals
676
-
677
- ## 8.0.4
678
-
679
- ### Patch Changes
680
-
681
- - e981a72: fix: mock three color management, loosen peer dep
682
-
683
- ## 8.0.3
684
-
685
- ### Patch Changes
686
-
687
- - 3252aed: setevents needs to spread and be mirrored in portals
688
-
689
- ## 8.0.2
690
-
691
- ### Patch Changes
692
-
693
- - 8035d1f: fix: legacy mode
694
-
695
- ## 8.0.1
696
-
697
- ### Patch Changes
698
-
699
- - 26db195: add legacy flag to turn of three.colormanagement
700
-
701
- ## 8.0.0
702
-
703
- ### Major Changes
704
-
705
- - 385ba9c: v8 major, react-18 compat
706
- - 04c07b8: v8 major, react-18 compat
707
-
708
- ### Patch Changes
709
-
710
- - 347ea79: new beta for library testing
711
-
712
- ## 8.0.0-beta.0
713
-
714
- ### Major Changes
715
-
716
- - 385ba9c: v8 major, react-18 compat
717
-
718
- ## 8.0.0-beta.0
719
-
720
- ### Patch Changes
721
-
722
- - cf6316c: new beta for library testing
723
-
724
- ## 7.0.25
725
-
726
- ### Patch Changes
727
-
728
- - 8698734: Release latest patches
729
-
730
- ## 7.0.24
731
-
732
- ### Patch Changes
733
-
734
- - 7f46ddf: cleanup captured pointers when released (#1914)
735
-
736
- ## 7.0.23
737
-
738
- ### Patch Changes
739
-
740
- - 30d38b1: remove logs
741
-
742
- ## 7.0.22
743
-
744
- ### Patch Changes
745
-
746
- - 259e1fa: add camera:manual
747
-
748
- ## 7.0.21
749
-
750
- ### Patch Changes
751
-
752
- - 65e4147: up usemeasure, add last event to internals"
753
-
754
- ## 7.0.20
755
-
756
- ### Patch Changes
757
-
758
- - 54cb0fd: update react-use-measure, allow it to use the offsetSize
759
-
760
- ## 7.0.19
761
-
762
- ### Patch Changes
763
-
764
- - 7aa2eab: fix: remove zustand subcribe selector
765
-
766
- ## 7.0.18
767
-
768
- ### Patch Changes
769
-
770
- - 6780f58: fix unmount pointer capture
771
-
772
- ## 7.0.17
773
-
774
- ### Patch Changes
775
-
776
- - 894c550: fix: event count
777
-
778
- ## 7.0.16
779
-
780
- ### Patch Changes
781
-
782
- - c7a4220: patch: applyprops returns the same instance
783
-
784
- ## 7.0.15
785
-
786
- ### Patch Changes
787
-
788
- - c5645e8: fix primitve leftovers on switch
789
-
790
- ## 7.0.14
791
-
792
- ### Patch Changes
793
-
794
- - 05af996: fix: revert the is function
795
-
796
- ## 7.0.13
797
-
798
- ### Patch Changes
799
-
800
- - f256558: fix(core): don't overwrite camera rotation
801
- - 51e6fc9: fix(core): safely handle external instances
802
-
803
- ## 7.0.12
804
-
805
- ### Patch Changes
806
-
807
- - 0df6073: fix: missed events
808
-
809
- ## 7.0.11
810
-
811
- ### Patch Changes
812
-
813
- - 62b0a3a: fix: event order of missed pointers
814
-
815
- ## 7.0.10
816
-
817
- ### Patch Changes
818
-
819
- - e019dd4: fixes
820
-
821
- ## 7.0.9
822
-
823
- ### Patch Changes
824
-
825
- - cd266e4: Fix diffProps dashed keys
826
-
827
- ## 7.0.8
828
-
829
- ### Patch Changes
830
-
831
- - 6f68406: Allow getCurrentViewport to receive an array
832
-
833
- ## 7.0.7
834
-
835
- ### Patch Changes
836
-
837
- - 0375896: Simplify useframe, support instanced event cancelation, silence disposal
838
-
839
- ## 7.0.6
840
-
841
- ### Patch Changes
842
-
843
- - fb052ad: Fix babel-env browserslist transpiling into old code"
844
-
845
- ## 7.0.5
846
-
847
- ### Patch Changes
848
-
849
- - c97794a: Add useLoader.clear(Loader, input)
850
-
851
- ## 7.0.4
852
-
853
- ### Patch Changes
854
-
855
- - 974ecfb: Allow elements to define attachFns for specific mount/unmount
856
-
857
- ## 7.0.2
858
-
859
- ### Patch Changes
860
-
861
- - a97aca3: Add controls state field
862
- - 4c703d6: fix rttr didn't work with r130
863
-
864
- ## 7.0.0
865
-
866
- ### Major Changes
867
-
868
- - 96ae1ad: fix javascript interpreting negative renderpriority as positive
869
-
870
- This is a major breaking change that will fix an edge-case. It will only affect you if you used negative useFrame indicies, for instance
871
-
872
- ```jsx
873
- useFrame(..., -1)
874
- ```
875
-
876
- Surprisingly this disabled auto-rendering although the documentation says positive numbers only. As of v7 this will not take over the render loop.
877
-
878
- ```jsx
879
- function Render() {
880
- // Takes over the render-loop, the user has the responsibility to render
881
- useFrame(({ gl, scene, camera }) => {
882
- gl.render(scene, camera)
883
- }, 1)
884
-
885
- function RenderOnTop() {
886
- // This will render on top of the previous call
887
- useFrame(({ gl, ... }) => {
888
- gl.render(...)
889
- }, 2)
890
-
891
- function A() {
892
- // Will *not* take over the render-loop, negative indices can still be useful for sorting
893
- useFrame(() => ..., -1)
894
-
895
- function B() {
896
- // B's useFrame will execute *after* A's
897
- useFrame(() => ..., -2)
898
- ```
899
-
900
- ## 6.2.3
901
-
902
- ### Patch Changes
903
-
904
- - 26bc7eb: typescript changes
905
-
906
- ## 6.2.2
907
-
908
- ### Patch Changes
909
-
910
- - 4f44a2c: use more helpful name with event handling in rttr
911
-
912
- ## 6.2.1
913
-
914
- ### Patch Changes
915
-
916
- - Fix stopPropagation logic
917
-
918
- ## 6.2.0
919
-
920
- ### Minor Changes
921
-
922
- - Allow object3d instances to be attached
923
-
924
- ## 6.1.5
925
-
926
- ### Patch Changes
927
-
928
- - fix(rttr): if children is undefined return an array to map with
929
-
930
- ## 6.1.4
931
-
932
- ### Patch Changes
933
-
934
- - 6faa090: Add shape to types, exclude event functions from event data
935
-
936
- ## 6.1.3
937
-
938
- ### Patch Changes
939
-
940
- - 71e72c0: Fix constructor args with attached children (#1348)
941
- - 015fc03: Only set up pointer/wheel events as passive
942
- - a160e08: Fix event setPointerCapture and stopPropagation.
943
-
944
- ## 6.1.2
1
+ # @react-three/fiber
2
+
3
+ ## 8.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 503efc2e: fix: prevent invalidate from piling up frames
8
+
9
+ ## 8.16.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 6b0ea6eb: feat: add childadded event dispatch
14
+
15
+ ## 8.15.19
16
+
17
+ ### Patch Changes
18
+
19
+ - 74926b94: fix(types): avoid emitting THREE.XRFrame
20
+
21
+ ## 8.15.18
22
+
23
+ ### Patch Changes
24
+
25
+ - 8c01939a: fix: correctly pass frames in invalidate
26
+
27
+ ## 8.15.17
28
+
29
+ ### Patch Changes
30
+
31
+ - 16c2ee97: fix(types): support @types/three@0.162.0
32
+
33
+ ## 8.15.16
34
+
35
+ ### Patch Changes
36
+
37
+ - 71cd8f96: fix: tonemapping config overwrites userland
38
+ - 0bb12fd1: fix(types): remove usage of THREE.Vector
39
+
40
+ ## 8.15.14
41
+
42
+ ### Patch Changes
43
+
44
+ - 0afc9c12: fix: portal events, update examples
45
+
46
+ ## 8.15.13
47
+
48
+ ### Patch Changes
49
+
50
+ - 0a399f6d: fix(native): use MSAA for antialias on iOS
51
+
52
+ ## 8.15.12
53
+
54
+ ### Patch Changes
55
+
56
+ - 496d6f0d: fix: useLoader and XRFrame type fixes
57
+
58
+ ## 8.15.11
59
+
60
+ ### Patch Changes
61
+
62
+ - 3d9af04d: fix: update import from three examples
63
+
64
+ ## 8.15.10
65
+
66
+ ### Patch Changes
67
+
68
+ - 49158164: fix: don't recursively dispose primitives
69
+
70
+ ## 8.15.9
71
+
72
+ ### Patch Changes
73
+
74
+ - 4cbc5530: fix(native): deopt iOS blob URI path
75
+
76
+ ## 8.15.8
77
+
78
+ ### Patch Changes
79
+
80
+ - 70680832: fix: revert stable sort
81
+
82
+ ## 8.15.7
83
+
84
+ ### Patch Changes
85
+
86
+ - 07e39e2e: fix(types): remove use of Object3D generic
87
+
88
+ ## 8.15.6
89
+
90
+ ### Patch Changes
91
+
92
+ - 7bb2950b: experiment: stable object sort
93
+
94
+ ## 8.15.5
95
+
96
+ ### Patch Changes
97
+
98
+ - 0e44fd8b: fix(types): preserve deprecated JSX annotations
99
+
100
+ ## 8.15.4
101
+
102
+ ### Patch Changes
103
+
104
+ - 634e5db5: fix(native): harden Blob URI check for Android
105
+
106
+ ## 8.15.3
107
+
108
+ ### Patch Changes
109
+
110
+ - beab4344: fix(native): workaround Android content policy for Blob URI
111
+
112
+ ## 8.15.2
113
+
114
+ ### Patch Changes
115
+
116
+ - 086d3932: fix: size check and raycaster camera
117
+
118
+ ## 8.15.1
119
+
120
+ ### Patch Changes
121
+
122
+ - 2d39676d: fix: ignore deprecated types, use correct XRFrame definition
123
+
124
+ ## 8.15.0
125
+
126
+ ### Minor Changes
127
+
128
+ - cca8b6bb: feat: export buildGraph
129
+
130
+ ## 8.14.7
131
+
132
+ ### Patch Changes
133
+
134
+ - 0f63a287: fix(native): restore polyfill conversions, drop networking
135
+
136
+ ## 8.14.6
137
+
138
+ ### Patch Changes
139
+
140
+ - 465fa0fb: fix(native): revert usage of networking stack
141
+
142
+ ## 8.14.5
143
+
144
+ ### Patch Changes
145
+
146
+ - f372a5b5: fix(applyProps): loosen copy identity in dev
147
+
148
+ ## 8.14.4
149
+
150
+ ### Patch Changes
151
+
152
+ - dc7e5739: fix(native): amend BlobManager over globals
153
+
154
+ ## 8.14.3
155
+
156
+ ### Patch Changes
157
+
158
+ - d77b0990: fix(native): drop fsstat for react-native-web
159
+
160
+ ## 8.14.2
161
+
162
+ ### Patch Changes
163
+
164
+ - 33e8baef: fix: native perf, loader types
165
+
166
+ ## 8.14.1
167
+
168
+ ### Patch Changes
169
+
170
+ - c99907bf: fix(native): prefer local uri for fs
171
+
172
+ ## 8.14.0
173
+
174
+ ### Minor Changes
175
+
176
+ - 89e96bf4: feat: react-native-web, native globals fixes
177
+
178
+ ## 8.13.9
179
+
180
+ ### Patch Changes
181
+
182
+ - 44d57b3c: fix(native): TextureLoader should remain consistent with FileLoader
183
+
184
+ ## 8.13.8
185
+
186
+ ### Patch Changes
187
+
188
+ - 5da26d52: fix(useLoader): dispose loaders
189
+
190
+ ## 8.13.7
191
+
192
+ ### Patch Changes
193
+
194
+ - 37b9502a: fix(Canvas): pass scene prop
195
+
196
+ ## 8.13.6
197
+
198
+ ### Patch Changes
199
+
200
+ - 0597495c: fix: harden XR init against Renderer shim
201
+
202
+ ## 8.13.5
203
+
204
+ ### Patch Changes
205
+
206
+ - 7a3b543b: fix: three type regressions
207
+
208
+ ## 8.13.4
209
+
210
+ ### Patch Changes
211
+
212
+ - 824ee0f7: fix: safely diff instances
213
+
214
+ ## 8.13.3
215
+
216
+ ### Patch Changes
217
+
218
+ - ffdb5fc4: revert nested portals, up suspend-react
219
+
220
+ ## 8.13.2
221
+
222
+ ### Patch Changes
223
+
224
+ - bbabdf07: update suspend-react
225
+
226
+ ## 8.13.1
227
+
228
+ ### Patch Changes
229
+
230
+ - c9fe03ba: fix: primitive swap and reactive portals
231
+
232
+ ## 8.13.0
233
+
234
+ ### Minor Changes
235
+
236
+ - ecfc48b7: feat: CanvasProps alias, respect r152 color management
237
+
238
+ ## 8.12.2
239
+
240
+ ### Patch Changes
241
+
242
+ - c5193468: fix: safeguard window.devicePixelRatio
243
+
244
+ ## 8.12.1
245
+
246
+ ### Patch Changes
247
+
248
+ - 571f07ac: fix: safeguard window.devicePixelRatio
249
+
250
+ ## 8.12.0
251
+
252
+ ### Minor Changes
253
+
254
+ - 1928d095: feat: `scene` render prop for custom THREE.Scene
255
+
256
+ ## 8.11.11
257
+
258
+ ### Patch Changes
259
+
260
+ - f03c6ef8: feat: `scene` render prop for custom THREE.Scene
261
+
262
+ ## 8.11.10
263
+
264
+ ### Patch Changes
265
+
266
+ - 12907836: fix onpointerlostcapture which fired before pointerup
267
+
268
+ ## 8.11.9
269
+
270
+ ### Patch Changes
271
+
272
+ - 6b5f572c: fix: treeshake THREE.ColorManagement
273
+
274
+ ## 8.11.8
275
+
276
+ ### Patch Changes
277
+
278
+ - 350cd3f3: fix(Canvas): inline render-effect
279
+
280
+ ## 8.11.7
281
+
282
+ ### Patch Changes
283
+
284
+ - 96af62d5: fix: don't overwrite public cameras
285
+
286
+ ## 8.11.6
287
+
288
+ ### Patch Changes
289
+
290
+ - 7d319c18: Fix is.equ obj:shallow, allow it to test arrays 1 level deep, fix canvas.camera prop being stale
291
+
292
+ ## 8.11.5
293
+
294
+ ### Patch Changes
295
+
296
+ - c658f763: fix: update canvas prop types
297
+
298
+ ## 8.11.4
299
+
300
+ ### Patch Changes
301
+
302
+ - 970aa58b: fix: play nice with offscreencanvas
303
+
304
+ ## 8.11.3
305
+
306
+ ### Patch Changes
307
+
308
+ - 2bce569c: fix: progressively set colormanagement
309
+
310
+ ## 8.11.2
311
+
312
+ ### Patch Changes
313
+
314
+ - 41d655cd: fix: hmr, srgb encode
315
+
316
+ ## 8.11.1
317
+
318
+ ### Patch Changes
319
+
320
+ - 58cadeff: fix: skip circular onUpdate calls
321
+
322
+ ## 8.11.0
323
+
324
+ ### Minor Changes
325
+
326
+ - 2917a47b: events.update, allow raycast w/o user interaction
327
+ - 521bfb07: events.update, allow raycast w/o user interaction
328
+
329
+ ## 8.10.4
330
+
331
+ ### Patch Changes
332
+
333
+ - d9e6316d: fix: transpile class properties
334
+
335
+ ## 8.10.3
336
+
337
+ ### Patch Changes
338
+
339
+ - d06d2879: fix: align useLoader type, public fields from builds
340
+
341
+ ## 8.10.2
342
+
343
+ ### Patch Changes
344
+
345
+ - 564edbbb: fix port inject layers, it should allow root props to overwrite indefined portal props"
346
+
347
+ ## 8.10.1
348
+
349
+ ### Patch Changes
350
+
351
+ - bfa0298f: fix memoized identity
352
+
353
+ ## 8.10.0
354
+
355
+ ### Minor Changes
356
+
357
+ - 24c4dba4: shortcut for shadow type
358
+
359
+ ## 8.9.2
360
+
361
+ ### Patch Changes
362
+
363
+ - 2aeb6500: fix: primitives are incorrectly swapped on key change in maps
364
+
365
+ ## 8.9.1
366
+
367
+ ### Patch Changes
368
+
369
+ - 0cf11797: fix(events): type spread event props
370
+
371
+ ## 8.9.0
372
+
373
+ ### Minor Changes
374
+
375
+ - a458b4dd: fix(loop): export flush methods and types
376
+
377
+ ## 8.8.11
378
+
379
+ ### Patch Changes
380
+
381
+ - 2068f0cc: fix: events pointerlock, useLoader extension types
382
+
383
+ ## 8.8.10
384
+
385
+ ### Patch Changes
386
+
387
+ - 00c24718: fix: invalidate pierced props
388
+
389
+ ## 8.8.9
390
+
391
+ ### Patch Changes
392
+
393
+ - 4254400e: fix(createPortal): use correct JSX type
394
+
395
+ ## 8.8.8
396
+
397
+ ### Patch Changes
398
+
399
+ - fcb183e3: fix: call onUpdate for attached children prop update
400
+
401
+ ## 8.8.7
402
+
403
+ ### Patch Changes
404
+
405
+ - bedb16e7: fix: prefer named functions, for loops in hot paths
406
+
407
+ ## 8.8.6
408
+
409
+ ### Patch Changes
410
+
411
+ - 02a558bb: fix: upgrade deps
412
+
413
+ ## 8.8.5
414
+
415
+ ### Patch Changes
416
+
417
+ - 530a06d6: fix: upgrade deps to work-around CRA
418
+
419
+ ## 8.8.4
420
+
421
+ ### Patch Changes
422
+
423
+ - 2f2dc9f9: chore: upgrade bridge to harden suspense behavior
424
+
425
+ ## 8.8.3
426
+
427
+ ### Patch Changes
428
+
429
+ - 9f571239: fix #2506, events should fall back to rootstate"
430
+
431
+ ## 8.8.2
432
+
433
+ ### Patch Changes
434
+
435
+ - dc389ed6: fix(Canvas): prevent remount on context update
436
+
437
+ ## 8.8.1
438
+
439
+ ### Patch Changes
440
+
441
+ - 370d3ae5: refactor: pull context bridge from its-fine
442
+
443
+ ## 8.8.0
444
+
445
+ ### Minor Changes
446
+
447
+ - 46d8b440: bridge cross-container context
448
+
449
+ ## 8.7.4
450
+
451
+ ### Patch Changes
452
+
453
+ - 259c8895: fix: use self to get global context before window
454
+
455
+ ## 8.7.3
456
+
457
+ ### Patch Changes
458
+
459
+ - eb5a3be4: fix: if there is an eventsource pointerevent will be set to none
460
+
461
+ ## 8.7.2
462
+
463
+ ### Patch Changes
464
+
465
+ - 7f801e60: fix: events in portals carry the wrong raycaster, camera, etc
466
+
467
+ ## 8.7.1
468
+
469
+ ### Patch Changes
470
+
471
+ - 962cc270: fix: allow canvas eventsource to be a ref
472
+
473
+ ## 8.7.0
474
+
475
+ ### Minor Changes
476
+
477
+ - f5db1b78: feat: useInstanceHandle, flushGlobalEffects
478
+
479
+ ## 8.6.2
480
+
481
+ ### Patch Changes
482
+
483
+ - 57c12e9c: fix(types): @react-three/drei declaration files
484
+
485
+ ## 8.6.1
486
+
487
+ ### Patch Changes
488
+
489
+ - 7a0b5670: fix(core): don't append to unmounted containers
490
+
491
+ ## 8.6.0
492
+
493
+ ### Minor Changes
494
+
495
+ - 85c80e70: eventsource and eventprefix on the canvas component
496
+
497
+ ## 8.5.1
498
+
499
+ ### Patch Changes
500
+
501
+ - 87821d9: fix: null-check instance.children on reconstruct
502
+
503
+ ## 8.5.0
504
+
505
+ ### Minor Changes
506
+
507
+ - edc8252: feat: handle primitive children, auto-attach via instanceof
508
+
509
+ ## 8.3.1
510
+
511
+ ### Patch Changes
512
+
513
+ - aaeb2b8: fix(types): accept readonly arrays for vector props
514
+
515
+ ## 8.3.0
516
+
517
+ ### Minor Changes
518
+
519
+ - 9c450ec: feat: improve errors
520
+
521
+ ## 8.2.3
522
+
523
+ ### Patch Changes
524
+
525
+ - b8d2eab: fix: improve useLoader signature, initial size on createRoot
526
+
527
+ ## 8.2.2
528
+
529
+ ### Patch Changes
530
+
531
+ - acd6f04: fix: warn on stray text
532
+
533
+ ## 8.2.1
534
+
535
+ ### Patch Changes
536
+
537
+ - 25e35a1: fix: prefer useLayoutEffect in react-native
538
+
539
+ ## 8.2.0
540
+
541
+ ### Minor Changes
542
+
543
+ - 9770d7d: feat: expose ThreeElements interface for JSX elements
544
+
545
+ ## 8.1.0
546
+
547
+ ### Minor Changes
548
+
549
+ - 8d0f708c: Expose position information in state.size
550
+
551
+ ## 8.0.27
552
+
553
+ ### Patch Changes
554
+
555
+ - 7940995: fix: resume on xrsession end, export internal events
556
+
557
+ ## 8.0.26
558
+
559
+ ### Patch Changes
560
+
561
+ - 7b6df9df: fix: infinite loop updating cam viewport
562
+
563
+ ## 8.0.25
564
+
565
+ ### Patch Changes
566
+
567
+ - b7cd0f42: update viewport on camera changes
568
+
569
+ ## 8.0.24
570
+
571
+ ### Patch Changes
572
+
573
+ - ee8e785: fix: attach timings
574
+
575
+ ## 8.0.23
576
+
577
+ ### Patch Changes
578
+
579
+ - 29d03c64: revert multi attach
580
+
581
+ ## 8.0.22
582
+
583
+ ### Patch Changes
584
+
585
+ - 419e854: fix: always prepare primitives
586
+
587
+ ## 8.0.21
588
+
589
+ ### Patch Changes
590
+
591
+ - 3098b9b: fix: resizing in worker contexts, copy over attachments on reconstruct
592
+
593
+ ## 8.0.20
594
+
595
+ ### Patch Changes
596
+
597
+ - 4c87bce: fix: attach, devtools, and perf fixes
598
+
599
+ ## 8.0.19
600
+
601
+ ### Patch Changes
602
+
603
+ - 360b45a: fix: handle attach on reconstruct
604
+
605
+ ## 8.0.18
606
+
607
+ ### Patch Changes
608
+
609
+ - be567c1: fix: suspense attach and three compat in webpack
610
+
611
+ ## 8.0.17
612
+
613
+ ### Patch Changes
614
+
615
+ - 9e3369e: fix dom resize, improve native tree shaking
616
+
617
+ ## 8.0.16
618
+
619
+ ### Patch Changes
620
+
621
+ - 669c45c: correctly type useLoader results
622
+
623
+ ## 8.0.15
624
+
625
+ ### Patch Changes
626
+
627
+ - c4715d5f: allow invalidate to preempt more than 1 frame
628
+
629
+ ## 8.0.14
630
+
631
+ ### Patch Changes
632
+
633
+ - 5559a119: Add support for recoverable errors
634
+
635
+ ## 8.0.13
636
+
637
+ ### Patch Changes
638
+
639
+ - 9d77d8e2: fix: detach attribute removal
640
+
641
+ ## 8.0.12
642
+
643
+ ### Patch Changes
644
+
645
+ - 3d10413f: fix portal layers
646
+
647
+ ## 8.0.11
648
+
649
+ ### Patch Changes
650
+
651
+ - 5167b1e4: memoized.args can be undefined
652
+
653
+ ## 8.0.10
654
+
655
+ ### Patch Changes
656
+
657
+ - eb321afd: fix: remount bug, allow portals to inject custom size
658
+
659
+ ## 8.0.9
660
+
661
+ ### Patch Changes
662
+
663
+ - 624df949: fix: canvas unmount race condition"
664
+
665
+ ## 8.0.8
666
+
667
+ ### Patch Changes
668
+
669
+ - 952a566: fix: react SSR
670
+
671
+ ## 8.0.7
672
+
673
+ ### Patch Changes
674
+
675
+ - f63806b: fix: react SSR
676
+
677
+ ## 8.0.6
678
+
679
+ ### Patch Changes
680
+
681
+ - d4bafb9: fix re-parenting, useframe not working properly in portals, attach crash
682
+
683
+ ## 8.0.5
684
+
685
+ ### Patch Changes
686
+
687
+ - 227c328: fix pointer for root and portals
688
+
689
+ ## 8.0.4
690
+
691
+ ### Patch Changes
692
+
693
+ - e981a72: fix: mock three color management, loosen peer dep
694
+
695
+ ## 8.0.3
696
+
697
+ ### Patch Changes
698
+
699
+ - 3252aed: setevents needs to spread and be mirrored in portals
700
+
701
+ ## 8.0.2
702
+
703
+ ### Patch Changes
704
+
705
+ - 8035d1f: fix: legacy mode
706
+
707
+ ## 8.0.1
708
+
709
+ ### Patch Changes
710
+
711
+ - 26db195: add legacy flag to turn of three.colormanagement
712
+
713
+ ## 8.0.0
714
+
715
+ ### Major Changes
716
+
717
+ - 385ba9c: v8 major, react-18 compat
718
+ - 04c07b8: v8 major, react-18 compat
719
+
720
+ ### Patch Changes
721
+
722
+ - 347ea79: new beta for library testing
723
+
724
+ ## 8.0.0-beta.0
725
+
726
+ ### Major Changes
727
+
728
+ - 385ba9c: v8 major, react-18 compat
729
+
730
+ ## 8.0.0-beta.0
731
+
732
+ ### Patch Changes
733
+
734
+ - cf6316c: new beta for library testing
735
+
736
+ ## 7.0.25
737
+
738
+ ### Patch Changes
739
+
740
+ - 8698734: Release latest patches
741
+
742
+ ## 7.0.24
743
+
744
+ ### Patch Changes
745
+
746
+ - 7f46ddf: cleanup captured pointers when released (#1914)
747
+
748
+ ## 7.0.23
749
+
750
+ ### Patch Changes
751
+
752
+ - 30d38b1: remove logs
753
+
754
+ ## 7.0.22
755
+
756
+ ### Patch Changes
757
+
758
+ - 259e1fa: add camera:manual
759
+
760
+ ## 7.0.21
761
+
762
+ ### Patch Changes
763
+
764
+ - 65e4147: up usemeasure, add last event to internals"
765
+
766
+ ## 7.0.20
767
+
768
+ ### Patch Changes
769
+
770
+ - 54cb0fd: update react-use-measure, allow it to use the offsetSize
771
+
772
+ ## 7.0.19
773
+
774
+ ### Patch Changes
775
+
776
+ - 7aa2eab: fix: remove zustand subcribe selector
777
+
778
+ ## 7.0.18
779
+
780
+ ### Patch Changes
781
+
782
+ - 6780f58: fix unmount pointer capture
783
+
784
+ ## 7.0.17
785
+
786
+ ### Patch Changes
787
+
788
+ - 894c550: fix: event count
789
+
790
+ ## 7.0.16
791
+
792
+ ### Patch Changes
793
+
794
+ - c7a4220: patch: applyprops returns the same instance
795
+
796
+ ## 7.0.15
797
+
798
+ ### Patch Changes
799
+
800
+ - c5645e8: fix primitve leftovers on switch
801
+
802
+ ## 7.0.14
803
+
804
+ ### Patch Changes
805
+
806
+ - 05af996: fix: revert the is function
807
+
808
+ ## 7.0.13
809
+
810
+ ### Patch Changes
811
+
812
+ - f256558: fix(core): don't overwrite camera rotation
813
+ - 51e6fc9: fix(core): safely handle external instances
814
+
815
+ ## 7.0.12
816
+
817
+ ### Patch Changes
818
+
819
+ - 0df6073: fix: missed events
820
+
821
+ ## 7.0.11
822
+
823
+ ### Patch Changes
824
+
825
+ - 62b0a3a: fix: event order of missed pointers
826
+
827
+ ## 7.0.10
828
+
829
+ ### Patch Changes
830
+
831
+ - e019dd4: fixes
832
+
833
+ ## 7.0.9
834
+
835
+ ### Patch Changes
836
+
837
+ - cd266e4: Fix diffProps dashed keys
838
+
839
+ ## 7.0.8
840
+
841
+ ### Patch Changes
842
+
843
+ - 6f68406: Allow getCurrentViewport to receive an array
844
+
845
+ ## 7.0.7
846
+
847
+ ### Patch Changes
848
+
849
+ - 0375896: Simplify useframe, support instanced event cancelation, silence disposal
850
+
851
+ ## 7.0.6
852
+
853
+ ### Patch Changes
854
+
855
+ - fb052ad: Fix babel-env browserslist transpiling into old code"
856
+
857
+ ## 7.0.5
858
+
859
+ ### Patch Changes
860
+
861
+ - c97794a: Add useLoader.clear(Loader, input)
862
+
863
+ ## 7.0.4
864
+
865
+ ### Patch Changes
866
+
867
+ - 974ecfb: Allow elements to define attachFns for specific mount/unmount
868
+
869
+ ## 7.0.2
870
+
871
+ ### Patch Changes
872
+
873
+ - a97aca3: Add controls state field
874
+ - 4c703d6: fix rttr didn't work with r130
875
+
876
+ ## 7.0.0
877
+
878
+ ### Major Changes
879
+
880
+ - 96ae1ad: fix javascript interpreting negative renderpriority as positive
881
+
882
+ This is a major breaking change that will fix an edge-case. It will only affect you if you used negative useFrame indicies, for instance
883
+
884
+ ```jsx
885
+ useFrame(..., -1)
886
+ ```
887
+
888
+ Surprisingly this disabled auto-rendering although the documentation says positive numbers only. As of v7 this will not take over the render loop.
889
+
890
+ ```jsx
891
+ function Render() {
892
+ // Takes over the render-loop, the user has the responsibility to render
893
+ useFrame(({ gl, scene, camera }) => {
894
+ gl.render(scene, camera)
895
+ }, 1)
896
+
897
+ function RenderOnTop() {
898
+ // This will render on top of the previous call
899
+ useFrame(({ gl, ... }) => {
900
+ gl.render(...)
901
+ }, 2)
902
+
903
+ function A() {
904
+ // Will *not* take over the render-loop, negative indices can still be useful for sorting
905
+ useFrame(() => ..., -1)
906
+
907
+ function B() {
908
+ // B's useFrame will execute *after* A's
909
+ useFrame(() => ..., -2)
910
+ ```
911
+
912
+ ## 6.2.3
913
+
914
+ ### Patch Changes
915
+
916
+ - 26bc7eb: typescript changes
917
+
918
+ ## 6.2.2
919
+
920
+ ### Patch Changes
921
+
922
+ - 4f44a2c: use more helpful name with event handling in rttr
923
+
924
+ ## 6.2.1
925
+
926
+ ### Patch Changes
927
+
928
+ - Fix stopPropagation logic
929
+
930
+ ## 6.2.0
931
+
932
+ ### Minor Changes
933
+
934
+ - Allow object3d instances to be attached
935
+
936
+ ## 6.1.5
937
+
938
+ ### Patch Changes
939
+
940
+ - fix(rttr): if children is undefined return an array to map with
941
+
942
+ ## 6.1.4
943
+
944
+ ### Patch Changes
945
+
946
+ - 6faa090: Add shape to types, exclude event functions from event data
947
+
948
+ ## 6.1.3
949
+
950
+ ### Patch Changes
951
+
952
+ - 71e72c0: Fix constructor args with attached children (#1348)
953
+ - 015fc03: Only set up pointer/wheel events as passive
954
+ - a160e08: Fix event setPointerCapture and stopPropagation.
955
+
956
+ ## 6.1.2