Explorar o código

refactor(app): Add tres version to the canvas as a data attribute

Jaime Torrealba hai 1 ano
pai
achega
db7b9e1b7f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/components/TresCanvas.vue

+ 2 - 0
src/components/TresCanvas.vue

@@ -21,6 +21,7 @@ import {
   h, 
   getCurrentInstance,
 } from 'vue'
+import pkg from '../../package.json'
 import {
   useTresContextProvider,
   useLogger,
@@ -187,6 +188,7 @@ onMounted(() => {
     ref="canvas"
     :data-scene="scene.uuid"
     :class="$attrs.class"
+    :data-tres="`tresjs ${pkg.version}`"
     :style="{
       display: 'block',
       width: '100%',