Browse Source

修复bug:http://192.168.0.21/index.php?m=bug&f=view&bugID=43019

xushiting 1 year ago
parent
commit
bdc486638f
1 changed files with 1 additions and 1 deletions
  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)