فهرست منبع

Merge branch 'master' of http://git.ius.plus:88/Project-Wing/fis_lib_measure

guanxinyi 9 ماه پیش
والد
کامیت
bdd891ade5
1فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 7 2
      lib/process/workspace/urm/application.dart

+ 7 - 2
lib/process/workspace/urm/application.dart

@@ -32,15 +32,20 @@ class URMApplication extends Application {
 
   @override
   PointInfo createPointInfo(Offset offset, PointInfoType type) {
-    final width = urmDataProcessor.showLeftRight
+    double width = urmDataProcessor.showLeftRight
         ? displaySize.width / 2
         : displaySize.width;
+    if (isAnnotationWorking) {
+      width = displaySize.width;
+    }
     final height = displaySize.height;
     final x = offset.dx / width;
     final y = offset.dy / height;
     Rect zoomArea = urmDataProcessor.measureAreaInFullVisual;
     Offset percentOffset = Offset(x, y);
-    percentOffset = pointPctOutRect(zoomArea, percentOffset);
+    if (!isAnnotationWorking) {
+      percentOffset = pointPctOutRect(zoomArea, percentOffset);
+    }
     final info = PointInfo.fromOffset(percentOffset, type);
     info.hostVisualArea = currentVisualArea; // 未切换区域则沿用当前区域