hanbaoshan
2020-12-24 c748495762da3fdaeffa3bfbfde6607cd4f45a42
实景图固定区域高度调整
2个文件已修改
12 ■■■■ 已修改文件
src/pages/panoramicView/components/LabelMark.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/panoramicView/components/TracePlot.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/panoramicView/components/LabelMark.vue
@@ -205,7 +205,7 @@
      panoramaPath: '',
      cameraData: [],
      fixedW: 960,
      fixedH: 540,
      fixedH: 700,
      imgW: 0,
      imgH: 0,
      traceX: 0,
src/pages/panoramicView/components/TracePlot.vue
@@ -22,8 +22,8 @@
    ></canvas> -->
    <canvas
      ref="trackArea"
      width="960"
      height="540"
      :width="fixedW"
      :height="fixedH"
      :style="{backgroundImage:`url(${panoramaPath})`,backgroundSize:`${bgW}px ${bgH}px`}"
    ></canvas>
  </div>
@@ -51,7 +51,7 @@
      searchStartTimeStamp: 0,
      searchEndTimeStamp: 0,
      fixedW: 960,
      fixedH: 540,
      fixedH: 700,
      bgW: 0,
      bgH: 0
    }
@@ -73,8 +73,8 @@
      getPanoramaPic().then(res => {
        let { panoramaPath, width, height } = res.data;
        _this.panoramaPath = panoramaPath + '?' + Math.random();
        //_this.cW = width;
        //_this.cH = height;
        _this.cW = width;
        _this.cH = height;
        //判断长宽比
        let ratio = res.data.width/res.data.height;
        if(ratio > (_this.fixedW/_this.fixedH)){