Browse Source

fix: pass attrs down to canvas (#422)

Alvaro Saburido 1 year ago
parent
commit
aeab3e8632
2 changed files with 2 additions and 0 deletions
  1. 1 0
      playground/src/components/TheExperience.vue
  2. 1 0
      src/components/TresCanvas.vue

+ 1 - 0
playground/src/components/TheExperience.vue

@@ -35,6 +35,7 @@ watchEffect(() => {
   <TresCanvas
     v-bind="gl"
     ref="canvas"
+    class="awiwi"
   >
     <TresPerspectiveCamera
       :position="[7, 7, 7]"

+ 1 - 0
src/components/TresCanvas.vue

@@ -181,6 +181,7 @@ onMounted(() => {
   <canvas
     ref="canvas"
     :data-scene="scene.uuid"
+    v-bind="$attrs"
     :style="{
       display: 'block',
       width: '100%',