<script setup lang="ts">
const props = defineProps(['koef'])
import Item from './item.vue';
const k = ref(props.koef || 1)
watch(props, () => {
    if (k.value !== props.koef) {
        k.value = props.koef || 1
    }
}, { deep: true })
</script>
<template>
    <TresMesh :position="[0, 0, 0]" :rotate-x="Math.PI * -0.5" receive-shadow cast-shadow v-if="false">
        <TresCircleGeometry :args="[8, 8, 1]" />
        <TresMeshStandardMaterial color="pink" />
    </TresMesh>
    <Suspense>
        <TresGroup :translate-y="-2" :scale="1.25">
            <Item model-url="/models/kosynka.glb" ref-position="kosynka" />
            <Item model-url="/models/krepleniye_planok.glb" ref-position="krepleniye_planok" />
            <Item model-url="/models/osnova_stolba.glb" />
            <Item model-url="/models/planki.glb" ref-position="planki" />
            <Item model-url="/models/stolb.glb" ref-position="stolb" />
            <Item model-url="/models/verh.glb" ref-position="verh" />
        </TresGroup>
    </Suspense>
</template>