Skip to content

Commit 83d632a

Browse files
authored
Merge branch 'master' into fix/2514-update-types-three-webglprogram
2 parents aed925b + 4a367bf commit 83d632a

32 files changed

+304
-147
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ jobs:
2222
credentials:
2323
username: ${{ github.actor }}
2424
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
# 0.159.0 is mandatory; others are informational
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
three-version: ['0.159.0', '0.180.0', 'latest']
31+
continue-on-error: ${{ matrix.three-version != '0.159.0' }}
32+
name: test (w/ three@${{ matrix['three-version'] }})
33+
2534
steps:
2635
- uses: actions/checkout@v4
2736
- run: corepack enable
@@ -30,7 +39,19 @@ jobs:
3039
cache: 'yarn'
3140
- run: yarn install
3241
- run: yarn build
33-
- run: yarn test
42+
- run: yarn eslint:ci
43+
- run: yarn typecheck
44+
- run: yarn prettier
45+
- run: (cd test/e2e; ./e2e.sh ${{ matrix.three-version }})
46+
- name: Upload Playwright screenshots
47+
if: always()
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: playwright-screenshots-${{ matrix.three-version }}
51+
path: |
52+
test-results/**
53+
if-no-files-found: ignore
54+
retention-days: 7
3455

3556
build-and-release:
3657
needs: test

docs/abstractions/positional-audio.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ sourcecode: src/core/PositionalAudio.tsx
99
</li>
1010
</Grid>
1111

12-
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.vercel.app/?path=/story/abstractions-positionalaudio--positional-audio-scene-st) ![](https://img.shields.io/badge/-suspense-brightgreen)
12+
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.vercel.app/?path=/story/abstractions-positionalaudio--positional-audio-scene-st)
13+
[![](https://img.shields.io/badge/-suspense-brightgreen)](https://r3f.docs.pmnd.rs/api/hooks#useloader)
1314

1415
A wrapper around [THREE.PositionalAudio](https://threejs.org/docs/#api/en/audio/PositionalAudio). Add this to groups or meshes to tie them to a sound that plays when the camera comes near.
1516

docs/abstractions/splat.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Splat
33
sourcecode: src/core/Splat.tsx
44
---
55

6+
[![](https://img.shields.io/badge/-suspense-brightgreen)](https://r3f.docs.pmnd.rs/api/hooks#useloader)
7+
68
<Grid cols={4}>
79
<li>
810
<Codesandbox id="qp4jmf" />

docs/abstractions/svg.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sourcecode: src/core/Svg.tsx
44
---
55

66
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.pmnd.rs/?path=/story/abstractions-svg--svg-st)
7+
[![](https://img.shields.io/badge/-suspense-brightgreen)](https://r3f.docs.pmnd.rs/api/hooks#useloader)
78

89
Wrapper around the `three` [svg loader](https://threejs.org/examples/?q=sv#webgl_loader_svg) demo.
910

docs/abstractions/text.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: Text
33
sourcecode: src/core/Text.tsx
44
---
55

6-
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.vercel.app/?path=/story/abstractions-text--text-st) ![](https://img.shields.io/badge/-suspense-brightgreen)
6+
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.vercel.app/?path=/story/abstractions-text--text-st)
7+
[![](https://img.shields.io/badge/-suspense-brightgreen)](https://r3f.docs.pmnd.rs/api/hooks#useloader)
78

89
<Grid cols={4}>
910
<li>

docs/abstractions/text3d.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: Text3D
33
sourcecode: src/core/Text3D.tsx
44
---
55

6-
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.vercel.app/?path=/story/abstractions-text3d--text-3-d-st) ![](https://img.shields.io/badge/-suspense-brightgreen)
6+
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.vercel.app/?path=/story/abstractions-text3d--text-3-d-st)
7+
[![](https://img.shields.io/badge/-suspense-brightgreen)](https://r3f.docs.pmnd.rs/api/hooks#useloader)
78

89
<Grid cols={4}>
910
<li>

docs/gizmos/grid.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Grid
33
sourcecode: src/core/Grid.tsx
44
---
55

6-
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.vercel.app/?path=/story/gizmos-grid--use-grid-scene-st)
6+
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.pmnd.rs/?path=/docs/gizmos-grid--docs)
77

88
<Grid cols={4}>
99
<li>

docs/gizmos/pivot-controls.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ type PivotControlsProps = {
5959
onDragEnd?: () => void
6060
/** Set this to false if you want the gizmo to be visible through faces */
6161
depthTest?: boolean
62+
/** Render order of pivot control - default is 500 */
63+
renderOrder?: number
6264
opacity?: number
6365
visible?: boolean
6466
userData?: { [key: string]: any }

docs/loaders/cube-texture-use-cube-texture.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sourcecode: src/core/CubeTexture.tsx
44
---
55

66
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.pmnd.rs/?path=/story/abstractions-cubetexture)
7+
[![](https://img.shields.io/badge/-suspense-brightgreen)](https://r3f.docs.pmnd.rs/api/hooks#useloader)
78

89
A convenience hook that uses `useLoader` and `CubeTextureLoader`
910

docs/loaders/fbx-use-fbx.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sourcecode: src/core/Fbx.tsx
44
---
55

66
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.pmnd.rs/?path=/story/loaders-fbx)
7+
[![](https://img.shields.io/badge/-suspense-brightgreen)](https://r3f.docs.pmnd.rs/api/hooks#useloader)
78

89
A convenience hook that uses `useLoader` and `FBXLoader`:
910

0 commit comments

Comments
 (0)