UNPKG

2.94 kBMarkdownView Raw
1# @react-three/fiber
2
3## 7.0.17
4
5### Patch Changes
6
7- 894c550: fix: event count
8
9## 7.0.16
10
11### Patch Changes
12
13- c7a4220: patch: applyprops returns the same instance
14
15## 7.0.15
16
17### Patch Changes
18
19- c5645e8: fix primitve leftovers on switch
20
21## 7.0.14
22
23### Patch Changes
24
25- 05af996: fix: revert the is function
26
27## 7.0.13
28
29### Patch Changes
30
31- f256558: fix(core): don't overwrite camera rotation
32- 51e6fc9: fix(core): safely handle external instances
33
34## 7.0.12
35
36### Patch Changes
37
38- 0df6073: fix: missed events
39
40## 7.0.11
41
42### Patch Changes
43
44- 62b0a3a: fix: event order of missed pointers
45
46## 7.0.10
47
48### Patch Changes
49
50- e019dd4: fixes
51
52## 7.0.9
53
54### Patch Changes
55
56- cd266e4: Fix diffProps dashed keys
57
58## 7.0.8
59
60### Patch Changes
61
62- 6f68406: Allow getCurrentViewport to receive an array
63
64## 7.0.7
65
66### Patch Changes
67
68- 0375896: Simplify useframe, support instanced event cancelation, silence disposal
69
70## 7.0.6
71
72### Patch Changes
73
74- fb052ad: Fix babel-env browserslist transpiling into old code"
75
76## 7.0.5
77
78### Patch Changes
79
80- c97794a: Add useLoader.clear(Loader, input)
81
82## 7.0.4
83
84### Patch Changes
85
86- 974ecfb: Allow elements to define attachFns for specific mount/unmount
87
88## 7.0.2
89
90### Patch Changes
91
92- a97aca3: Add controls state field
93- 4c703d6: fix rttr didn't work with r130
94
95## 7.0.0
96
97### Major Changes
98
99- 96ae1ad: fix javascript interpreting negative renderpriority as positive
100
101This is a major breaking change that will fix an edge-case. It will only affect you if you used negative useFrame indicies, for instance
102
103```jsx
104useFrame(..., -1)
105```
106
107Surprisingly this disabled auto-rendering although the documentation says positive numbers only. As of v7 this will not take over the render loop.
108
109```jsx
110function Render() {
111 // Takes over the render-loop, the user has the responsibility to render
112 useFrame(({ gl, scene, camera }) => {
113 gl.render(scene, camera)
114 }, 1)
115
116function RenderOnTop() {
117 // This will render on top of the previous call
118 useFrame(({ gl, ... }) => {
119 gl.render(...)
120 }, 2)
121
122function A() {
123 // Will *not* take over the render-loop, negative indices can still be useful for sorting
124 useFrame(() => ..., -1)
125
126function B() {
127 // B's useFrame will execute *after* A's
128 useFrame(() => ..., -2)
129```
130
131## 6.2.3
132
133### Patch Changes
134
135- 26bc7eb: typescript changes
136
137## 6.2.2
138
139### Patch Changes
140
141- 4f44a2c: use more helpful name with event handling in rttr
142
143## 6.2.1
144
145### Patch Changes
146
147- Fix stopPropagation logic
148
149## 6.2.0
150
151### Minor Changes
152
153- Allow object3d instances to be attached
154
155## 6.1.5
156
157### Patch Changes
158
159- fix(rttr): if children is undefined return an array to map with
160
161## 6.1.4
162
163### Patch Changes
164
165- 6faa090: Add shape to types, exclude event functions from event data
166
167## 6.1.3
168
169### Patch Changes
170
171- 71e72c0: Fix constructor args with attached children (#1348)
172- 015fc03: Only set up pointer/wheel events as passive
173- a160e08: Fix event setPointerCapture and stopPropagation.
174
175## 6.1.2