Files
PhotonVision/chameleon-server/src/main/resources/web/js/chunk-98e0c8cc.a1d7ab48.js
2019-12-01 01:44:19 -05:00

2 lines
3.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-98e0c8cc"],{"0b81":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("CVselect",{attrs:{name:"Camera",list:t.cameraList},model:{value:t.currentCameraIndex,callback:function(e){t.currentCameraIndex=e},expression:"currentCameraIndex"}}),a("CVselect",{attrs:{name:"Resolution",list:t.resolutionList},model:{value:t.cameraSettings.resolution,callback:function(e){t.$set(t.cameraSettings,"resolution",e)},expression:"cameraSettings.resolution"}}),a("CVselect",{attrs:{name:"Stream Resolution",list:t.streamResolutionList},model:{value:t.cameraSettings.streamDivisor,callback:function(e){t.$set(t.cameraSettings,"streamDivisor",e)},expression:"cameraSettings.streamDivisor"}}),a("CVnumberinput",{attrs:{name:"Diagonal FOV"},model:{value:t.cameraSettings.fov,callback:function(e){t.$set(t.cameraSettings,"fov",e)},expression:"cameraSettings.fov"}}),a("v-btn",{staticStyle:{"margin-top":"10px"},attrs:{small:"",color:"#4baf62"},on:{click:t.sendCameraSettings}},[t._v("Save Camera Settings")])],1)},r=[],n=a("8384"),i=a("9696"),o={name:"CameraSettings",components:{CVselect:n["a"],CVnumberinput:i["a"]},data(){return{}},methods:{sendCameraSettings(){const t=this;this.axios.post("http://"+this.$address+"/api/settings/camera",this.cameraSettings).then((function(e){200===e.status&&(t.$store.state.saveBar=!0)}))}},computed:{currentCameraIndex:{get(){return this.$store.state.currentCameraIndex},set(t){this.$store.commit("currentCameraIndex",t)}},cameraList:{get(){return this.$store.state.cameraList},set(t){this.$store.commit("cameraList",t)}},resolutionList:{get(){let t=[];for(let e of this.$store.state.resolutionList)t.push(`${e["width"]} X ${e["height"]} at ${e["fps"]} FPS, ${e["pixelFormat"]}`);return t}},streamResolutionList:{get(){let t=this.$store.state.resolutionList[this.cameraSettings.resolution],e=[],a=1;for(let s=0;s<4;s++)e.push(`${t["width"]/a} X ${t["height"]/a}`),a*=2;return e}},cameraSettings:{get(){return this.$store.state.cameraSettings},set(t){this.$store.commit("cameraSettings",t)}}}},l=o,c=a("2877"),u=a("6544"),m=a.n(u),d=a("8336"),p=Object(c["a"])(l,s,r,!1,null,"1c3dd6f4",null);e["default"]=p.exports;m()(p,{VBtn:d["a"]})},9696:function(t,e,a){"use strict";var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("v-row",{attrs:{dense:"",align:"center"}},[a("v-col",{attrs:{cols:2}},[a("span",[t._v(t._s(t.name))])]),a("v-col",[a("v-text-field",{staticClass:"mt-0 pt-0",staticStyle:{width:"70px"},attrs:{dark:"","hide-details":"","single-line":"",type:"number"},model:{value:t.localValue,callback:function(e){t.localValue=e},expression:"localValue"}})],1)],1)],1)},r=[],n={name:"NumberInput",props:["name","value"],data(){return{}},computed:{localValue:{get(){return this.value},set(t){this.$emit("input",parseFloat(t))}}}},i=n,o=a("2877"),l=a("6544"),c=a.n(l),u=a("62ad"),m=a("0fd9"),d=a("8654"),p=Object(o["a"])(i,s,r,!1,null,"efc987b0",null);e["a"]=p.exports;c()(p,{VCol:u["a"],VRow:m["a"],VTextField:d["a"]})}}]);
//# sourceMappingURL=chunk-98e0c8cc.a1d7ab48.js.map