bx-865-apps #1

Merged
ksenia_mikhailova merged 140 commits from bx-865-apps into main 2024-06-27 15:03:27 +03:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit d489734b6d - Show all commits

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`)