浏览代码

feat:面积显示乱码

jinx 3 年之前
父节点
当前提交
2b8a37a3a7
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      main.js

+ 3 - 1
main.js

@@ -136763,7 +136763,9 @@ and limitations under the License.
            t.setTextColor(this.MTEXT_TEXT_COLOR),
            t.setTextColor(this.MTEXT_TEXT_COLOR),
            this.setFontForText(e.measurement.name, t);
            this.setFontForText(e.measurement.name, t);
            var r = a.ToolSpec.of(e.measurement.type).type === a.ToolType.AREA ? "area" : "distance"
            var r = a.ToolSpec.of(e.measurement.type).type === a.ToolType.AREA ? "area" : "distance"
-             , o = e.measurement.name + ": " + this.UoMService.convert(e.measurement.value, r, 2, void 0, void 0, !0);
+             , areaName = a.ToolType.AREA ? 'area':e.measurement.name
+			 o = areaName + ": " + this.UoMService.convert(e.measurement.value, r, 2, void 0, void 0, !0);
+			 
            t.text(o, this.MTEXT_H_OFFSET, n, {
            t.text(o, this.MTEXT_H_OFFSET, n, {
                maxWidth: this.FRAME_DIM_W
                maxWidth: this.FRAME_DIM_W
            }),
            }),