|
@@ -1,8 +1,7 @@
|
|
|
<script setup lang="ts">
|
|
|
-import { WebGLRenderer } from 'three'
|
|
|
import { TextGeometry, FontLoader } from 'three-stdlib'
|
|
|
|
|
|
-import { computed, inject, Ref, useSlots } from 'vue'
|
|
|
+import { computed, useSlots } from 'vue'
|
|
|
import { useCientos } from './useCientos'
|
|
|
|
|
|
type Glyph = {
|
|
@@ -58,7 +57,7 @@ const loader = new FontLoader()
|
|
|
const slots = useSlots()
|
|
|
|
|
|
const localText = computed(() => {
|
|
|
- return props.text || slots.default()?.[0]?.children.trim() || 'TresJS'
|
|
|
+ return props.text || slots.default()[0].children.trim() || 'TresJS'
|
|
|
})
|
|
|
|
|
|
const font = await new Promise((resolve, reject) => {
|