File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ If you are sure that there will be a user gesture before your `<PositionAudio>`
67
67
68
68
| Event | Description |
69
69
| :---------- | :--------------------------------------------------------------- |
70
- | ` root ` | Root component — Inheritance of [ PositionalAudio] ( https://threejs.org/docs/index.html?q=posi#api/en/audio/PositionalAudio ) .|
70
+ | ` root ` | Root reference — Inheritance of [ PositionalAudio] ( https://threejs.org/docs/index.html?q=posi#api/en/audio/PositionalAudio ) .|
71
71
| ` play() ` | Play audio — * Cannot be fired if audio is already running.* |
72
72
| ` pause() ` | Pause audio — * Cannot be fired if audio is already paused.* |
73
73
| ` stop() ` | Stop audio — * Cannot be fired if audio is already stopped.* |
@@ -77,6 +77,8 @@ If you are sure that there will be a user gesture before your `<PositionAudio>`
77
77
``` typescript{1,6}
78
78
const positionalAudioRef = shallowRef(null)
79
79
80
+ console.log(positionalAudioRef.value.root) // root properties
81
+
80
82
const handlerAudio = (action: string) => {
81
83
if (!positionalAudioRef.value) return
82
84
You can’t perform that action at this time.
0 commit comments