zhangzengfei
2022-05-24 afe81c13ea8567efe83e7c73ec72c4b2aea8ed63
修复wasmplayer区域显示问题
1个文件已修改
7 ■■■■ 已修改文件
src/components/wasmPlayer/index.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/wasmPlayer/index.vue
@@ -258,9 +258,10 @@
        _this.canvas.style.cursor = "default"
      })
      _this.canvasData.polygon.forEach(function(v, i) {
        if (v.location.length === 0) {
        if (v.location && v.location.length === 0) {
          return
        }
        _this.ctx.strokeStyle = "yellow"
        _this.ctx.beginPath()
        _this.ctx.moveTo(v.location[0].x / _this.showProportion, v.location[0].y / _this.showProportionY)
@@ -510,7 +511,9 @@
  width: 100%;
  height: 100%;
}
#area-canvas {
  z-index: 1;
}
video {
  object-fit: fill;
  width: 100%;