<template>
    <div id="cesiumContainer" class="cesium-container"></div>
    <button @click="exportImage()" class="btn-class">下载场景图片</button>
</template>
<script setup>
import { onMounted } from 'vue';
import { addSceneScreenshot, exportImage } from './function';

onMounted(() => {
    addSceneScreenshot()
});
</script>

<style>
.cesium-container {
width: 100%;
height: 100vh;
}
.btn-class {
    position: absolute;
    top: 10px;
    left: 10px;
}
</style>