src/components/wasmPlayer/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | 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%;