Browse Source

修复门旋转角度错误问题

haojianlong 4 năm trước cách đây
mục cha
commit
b72f449118
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      persagy-web-big/src/items/floor/SDoorItem.ts

+ 1 - 1
persagy-web-big/src/items/floor/SDoorItem.ts

@@ -151,7 +151,7 @@ export class SDoorItem extends SGraphItem {
      */
     onDraw(painter: SPainter): void {
         painter.translate(this.p.x, this.p.y);
-        painter.rotate(this.ang);
+        painter.rotate((this.ang * 180) / Math.PI);
         painter.pen.lineWidth = 100;
         painter.pen.color = ItemColor.doorColor;
         painter.drawLine(0, 0, this.r, 0);