Skip to content

Commit 7875aef

Browse files
s-rigaudSamuel Rigaud
and
Samuel Rigaud
authored
chore: fix typos (#3518)
Co-authored-by: Samuel Rigaud <[email protected]>
1 parent a6acdbf commit 7875aef

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

docs/getting-started/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Some helpful material:
161161

162162
- [Threejs-docs](https://threejs.org/docs) and [examples](https://threejs.org/examples)
163163
- [Discover Threejs](https://discoverthreejs.com), especially the [Tips and Tricks](https://discoverthreejs.com/tips-and-tricks) chapter for best practices
164-
- [Bruno Simons Threejs Jouney](https://threejs-journey.com), arguably the best learning resource, now includes a full [R3F chapter](https://threejs-journey.com/lessons/what-are-react-and-react-three-fiber)
164+
- [Bruno Simons Threejs Journey](https://threejs-journey.com), arguably the best learning resource, now includes a full [R3F chapter](https://threejs-journey.com/lessons/what-are-react-and-react-three-fiber)
165165

166166
<a href="https://threejs-journey.com">
167167
<img src="../banner-journey.jpg" />

example/src/demos/Portals.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function Portal({
6565
}, [scale])
6666

6767
useFrame((state) => {
68-
// Copy the default cameras whereabous
68+
// Copy the default cameras whereabouts
6969
camera.position.copy(state.camera.position)
7070
camera.rotation.copy(state.camera.rotation)
7171
camera.scale.copy(state.camera.scale)
@@ -97,8 +97,8 @@ function Portal({
9797
<meshBasicMaterial map={fbo.texture} map-encoding={THREE.SRGBColorSpace} />
9898
</mesh>
9999
{/* A portal by default now has its own state, separate from the root state.
100-
The third argument to createPortal allows you to override parts of it, in here for example
101-
we place our own camera and override the events definition with a lower proprity than
100+
The third argument to createPortal allows you to override parts of it, in here for example
101+
we place our own camera and override the events definition with a lower priority than
102102
the previous layer, and our custom compute function. */}
103103
{createPortal(children, scene, { camera, events: { compute, priority: events.priority - 1 } })}
104104
</>

packages/fiber/CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@
528528

529529
### Patch Changes
530530

531-
- 564edbbb: fix port inject layers, it should allow root props to overwrite indefined portal props"
531+
- 564edbbb: fix port inject layers, it should allow root props to overwrite undefined portal props"
532532

533533
## 8.10.1
534534

@@ -959,7 +959,7 @@
959959

960960
### Patch Changes
961961

962-
- 7aa2eab: fix: remove zustand subcribe selector
962+
- 7aa2eab: fix: remove zustand subscribe selector
963963

964964
## 7.0.18
965965

@@ -983,7 +983,7 @@
983983

984984
### Patch Changes
985985

986-
- c5645e8: fix primitve leftovers on switch
986+
- c5645e8: fix primitive leftovers on switch
987987

988988
## 7.0.14
989989

@@ -1065,7 +1065,7 @@
10651065

10661066
- 96ae1ad: fix javascript interpreting negative renderpriority as positive
10671067

1068-
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
1068+
This is a major breaking change that will fix an edge-case. It will only affect you if you used negative useFrame indices, for instance
10691069

10701070
```jsx
10711071
useFrame(..., -1)

packages/fiber/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"maintainers": [
1515
"Josh Ellis (https://github.com/joshuaellis)",
1616
"Cody Bennett (https://github.com/codyjasonbennett)",
17-
"Kris Baumgarnter (https://github.com/krispya)"
17+
"Kris Baumgarter (https://github.com/krispya)"
1818
],
1919
"bugs": {
2020
"url": "https://github.com/pmndrs/react-three-fiber/issues"

packages/fiber/src/core/renderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ function Provider<TCanvas extends HTMLCanvasElement | OffscreenCanvas>({
440440
const state = store.getState()
441441
// Flag the canvas active, rendering will now begin
442442
state.set((state) => ({ internal: { ...state.internal, active: true } }))
443-
// Notifiy that init is completed, the scene graph exists, but nothing has yet rendered
443+
// Notify that init is completed, the scene graph exists, but nothing has yet rendered
444444
if (onCreated) onCreated(state)
445445
// Connect events to the targets parent, this is done to ensure events are registered on
446446
// a shared target, and not on the canvas itself

packages/fiber/tests/events.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ describe('events', () => {
190190
expect(handlePointerOut).toHaveBeenCalled()
191191
})
192192

193-
it('should handle stopPropogation', async () => {
193+
it('should handle stopPropagation', async () => {
194194
const handlePointerEnter = jest.fn().mockImplementation((e) => {
195195
expect(() => e.stopPropagation()).not.toThrow()
196196
})

packages/test-renderer/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298

299299
### Patch Changes
300300

301-
- 7aa2eab: fix: remove zustand subcribe selector
301+
- 7aa2eab: fix: remove zustand subscribe selector
302302
- Updated dependencies [7aa2eab]
303303
- @react-three/fiber@7.0.19
304304

@@ -330,7 +330,7 @@
330330

331331
### Patch Changes
332332

333-
- c5645e8: fix primitve leftovers on switch
333+
- c5645e8: fix primitive leftovers on switch
334334
- Updated dependencies [c5645e8]
335335
- @react-three/fiber@7.0.15
336336

packages/test-renderer/markdown/rttr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Returns an object representing the [`scene graph`](https://threejs.org/manual/#e
7171
renderer.fireEvent(testInstance, eventName, mockEventData)
7272
```
7373

74-
Native method to fire events on the specific part of the rendererd tree through passing an element within the tree and an event name. The third argument is appended to the [`MockSyntheticEvent`](#create-fireevent-mocksyntheticevent) passed to the event handler.
74+
Native method to fire events on the specific part of the rendered tree through passing an element within the tree and an event name. The third argument is appended to the [`MockSyntheticEvent`](#create-fireevent-mocksyntheticevent) passed to the event handler.
7575

7676
Event names follow camelCase convention (e.g. `pointerUp`), or you can pass event handler name instead (e.g. `onPointerUp`).
7777

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ createRoot(document.getElementById('root')).render(
9191

9292
<details>
9393
<summary>Show TypeScript example</summary>
94-
94+
9595
```bash
9696
npm install @types/three
9797
```
@@ -220,7 +220,7 @@ Some helpful material:
220220

221221
- [Threejs-docs](https://threejs.org/docs) and [examples](https://threejs.org/examples)
222222
- [Discover Threejs](https://discoverthreejs.com), especially the [Tips and Tricks](https://discoverthreejs.com/tips-and-tricks) chapter for best practices
223-
- [Bruno Simons Threejs Jouney](https://threejs-journey.com), arguably the best learning resource, now includes a full [R3F chapter](https://threejs-journey.com/lessons/what-are-react-and-react-three-fiber)
223+
- [Bruno Simons Threejs Journey](https://threejs-journey.com), arguably the best learning resource, now includes a full [R3F chapter](https://threejs-journey.com/lessons/what-are-react-and-react-three-fiber)
224224

225225
<a href="https://threejs-journey.com"><img src="docs/banner-journey.jpg" /></a>
226226

0 commit comments

Comments
 (0)