Sfoglia il codice sorgente

feat:面积显示乱码

jinx 3 anni fa
parent
commit
2b8a37a3a7
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      main.js

+ 3 - 1
main.js

@@ -136763,7 +136763,9 @@ and limitations under the License.
            t.setTextColor(this.MTEXT_TEXT_COLOR),
            this.setFontForText(e.measurement.name, t);
            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, {
                maxWidth: this.FRAME_DIM_W
            }),