import{e as i}from"./index-cf27e902.js";import{n as s}from"./index-b54f5418.js";import"./three-dc46505d.js";var c=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:"相机视角",expression:"'相机视角'",modifiers:{top:!0}}],staticClass:"camera-viewpoint-container"},[r("el-select",{attrs:{size:"mini",placeholder:"请选择"},model:{value:e.cameraView,callback:function(a){e.cameraView=a},expression:"cameraView"}},e._l(e.cameraList,function(a,o){return r("el-option",{key:o,attrs:{label:a.label,value:a.value}})}),1)],1)},l=[];const m={props:{viewpoint:{type:String,required:!0}},data(){return{cameraView:""}},computed:{cameraList(){const e=[{label:"默认",value:""}];return Object.values(this.$store.getters["camera/get"]).forEach(t=>{e.push({label:t.name,value:t.vid})}),e}},watch:{cameraView:{handler(e){if(e){const t=VIS.engine.compilerManager.getObjectBySymbol(e);i.setCamera(t)}else i.setViewpoint(this.viewpoint);this.$emit("changeCamera",e)}}},mounted(){}},n={};var u=s(m,c,l,!1,p,"9fc110a0",null,null);function p(e){for(let t in n)this[t]=n[t]}const f=function(){return u.exports}();export{f as default};
