@react-three/fiber 8.14.6 → 8.14.7

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