Skip to content

Commit

Permalink
fix: pass attrs down to canvas (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu authored Oct 19, 2023
1 parent 44845c4 commit aeab3e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions playground/src/components/TheExperience.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ watchEffect(() => {
<TresCanvas
v-bind="gl"
ref="canvas"
class="awiwi"
>
<TresPerspectiveCamera
:position="[7, 7, 7]"
Expand Down
1 change: 1 addition & 0 deletions src/components/TresCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ onMounted(() => {
<canvas
ref="canvas"
:data-scene="scene.uuid"
v-bind="$attrs"
:style="{
display: 'block',
width: '100%',
Expand Down

0 comments on commit aeab3e8

Please sign in to comment.