<script setup lang="ts">
import { TresCanvas } from '@tresjs/core'
import { OrbitControls } from '@tresjs/cientos'

const controlsState = reactive({
    minDistance: 1,
    maxDistance: 10,
    enablePan: false,
    enableZoom: false,
    maxPolarAngle: (Math.PI / 2) - 0.2,
})
</script>
<template>
    <div class="container min-w-full">
        <TresCanvas shadows>
            <TresPerspectiveCamera :position="[8, 2, -4]" />
            <OrbitControls v-bind="controlsState" make-default />
            <ModelParametric />
        </TresCanvas>
    </div>
</template>

<style scoped>
.container {
    height: 600px;
    display: block;
}
</style>