seek start

This commit is contained in:
Kseninia Mikhaylova 2024-06-26 18:01:58 +03:00
parent e5725ee0c2
commit d489734b6d
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import { IMAGE_URL, SERVER_URL, } from '../../constants'
import { onMounted, onUnmounted, reactive, ref } from 'vue';
import { Box3, Vector2, Vector3 } from 'three';
import { useTresContext } from '@tresjs/core';
import { useTresContext, useSeek } from '@tresjs/core';
import { useGLTF } from '@tresjs/cientos'
const max_size = reactive({
@ -43,6 +43,7 @@ function shadows_and_pos(scene: any) {
const models = ref<model3DType[]>([])
const clickable = ref<clickableAreaType[]>([])
const { controls, raycaster, camera, scene } = useTresContext()
const { seekAllByName } = useSeek()
const loadModels = async () => {
const res = await fetch(`${SERVER_URL}/api/obj/element/?parent__isnull=True`)