2 Achegas 6a7086483b ... f90df3c5a8

Autor SHA1 Mensaxe Data
  xushiting f90df3c5a8 Merge branch 'master' of http://192.168.0.115:3000/bill/public-fuse hai 1 ano
  xushiting bdc486638f 修复bug:http://192.168.0.21/index.php?m=bug&f=view&bugID=43019 hai 1 ano
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/view/case/draw/board/editCAD/Renderer/Draw.js

+ 1 - 1
src/view/case/draw/board/editCAD/Renderer/Draw.js

@@ -235,7 +235,7 @@ export default class Draw {
         let pt = coordinate.getScreenXY({ x: geometry.center.x, y: geometry.center.y })
         const fontWidth1 = geometry.sideWidth
         //let dy = (points[3].y - points[0].y)/fontInfo.textValues.length/2
-        let dy = geometry.sideThickness/fontInfo.height/2
+        let dy = geometry.sideThickness/fontInfo.height/2*coordinate.ratio
         for(let i=0;i<fontInfo.textValues.length;++i){
             // const line1 = mathUtil.createLine1({ x: (points[0].x + points[3].x) / 2, y: (points[0].y + points[3].y) / 2 }, { x: (points[2].x + points[1].x) / 2, y: (points[2].y + points[1].y) / 2 })
             // const fontStart1 = mathUtil.getDisPointsLine(line1, pt, fontWidth1 / 2, fontWidth1 / 2)