浏览代码

perf(print): 清理不需要的 print

gavin.chen 2 年之前
父节点
当前提交
6640c8d0e8

+ 0 - 2
lib/measure_page_test.dart

@@ -421,7 +421,6 @@ class _MeasureLeftBoardState extends State<_MeasureLeftBoard> {
       final item = ItemMetaConverter(dto).output();
       workingItems.add(item);
     }
-    print("workingItems: ${workingItems.length}");
   }
 
   void _visualAreaChanged(sender, IVisualArea e) {
@@ -434,7 +433,6 @@ class _MeasureLeftBoardState extends State<_MeasureLeftBoard> {
 
   void _setAvailableModes(String name) {
     modeType = name;
-    print("_setAvailableModes: $name");
     loadItems();
   }
 

+ 0 - 5
lib/process/calcuators/trace.dart

@@ -3,7 +3,6 @@ import 'package:fis_measure/interfaces/date_types/vector.dart';
 import 'package:fis_measure/interfaces/process/items/terms.dart';
 import 'package:fis_measure/process/calcuators/formulas/general.dart';
 import 'package:fis_measure/process/primitives/multi_method/multiple_trace.dart';
-import 'package:flutter/cupertino.dart';
 import 'calculator.dart';
 
 class TraceCal extends Calculator<TraceItemAbstract, double> {
@@ -25,11 +24,7 @@ class TraceCal extends Calculator<TraceItemAbstract, double> {
                 e.clone().addVector(DVector(-canvasOffset.x, -canvasOffset.y)))
             .addVector(DVector(coordinateOffset.left, -coordinateOffset.top)))
         .toList();
-    final points = feature.innerPoints.map((e) => viewport.convert(e)).toList();
-    // 翻转y轴坐标
     final yFlippedPoints = regionPoints.map((e) => DPoint(e.x, -e.y)).toList();
-    // final points_X = points.map((e) => e.x).toList();
-    // print("横坐标集合: $points_X");
     double fakeOutputDate = 0;
     var countVTIResult = GeneralFormulas.countVTI(yFlippedPoints);
     var outputVTI = countVTIResult[0];

+ 0 - 1
lib/process/primitives/spline.dart

@@ -310,7 +310,6 @@ class _AreaPerimeterCalc extends Calculator<Spline, double> {
             points[i + 1], points[i + 2], tension, tension, tolerance);
       }
     }
-    // print("面积计算拟合点数 ${polyLineSegment.length}");
     final area = calcArea(polyLineSegment);
     return [perimeter, area];
   }

+ 0 - 2
lib/process/workspace/application.dart

@@ -607,8 +607,6 @@ class Application implements IApplication {
         visual.setUnAcitve();
       }
       area.isActive = true;
-      print("切换到${area.mode.name}模式,TODO:切换区域自动切换测量项");
-      // switchItemByName("---"); //TODO:切换区域自动切换测量项
       visualAreaChanged.emit(this, area);
       return true;
     }

+ 0 - 1
lib/utils/js_utils.dart

@@ -21,7 +21,6 @@ js.JsObject callShellGetClipPlaneData(msg) {
 
 /// JS call Shell 方法,获取 AI 切割面
 js.JsObject callShellGetVesselClipPlanePoints(msg) {
-  print("webview 触发 Dart_getVesselClipPlanePoints: $msg");
   return callShellMethod('getVesselClipPlanePoints', []);
 }
 

+ 0 - 1
lib/view/3d_view/carotid_player.dart

@@ -101,7 +101,6 @@ class _CarotidPlayerState extends State<CarotidPlayer> {
   }
 
   void _loadCarotidImageBytes(Object sender, String base64Url) async {
-    print("更新颈动脉2D");
     final oldImage = image;
     image = await getImage(base64Url);
     oldImage?.dispose();

+ 0 - 2
lib/view/3d_view/measure_3d_view.dart

@@ -176,8 +176,6 @@ class _Measure3DViewState extends State<Measure3DView> {
 
   /// AI 切割成功的回调
   void _aiClipStateCallBack(bool success) async {
-    // debugPrint("webview 触发 Dart_aiClipStateCallBack :$success");
-    print("webview 触发 Dart_aiClipStateCallBack :$success");
     if (success) {
       measure3DViewController.needAutoDetection = true;
       // callShellMethod('aiClipStateCallBack', [res]);

+ 1 - 2
lib/view/mobile_view/mobile_control_board/progress_bar.dart

@@ -329,8 +329,7 @@ class _CursorTrack extends StatelessWidget {
     return Positioned(
       top: 0,
       child: GestureDetector(
-        onTap: () =>
-            print("tap the progress"), //TODO:[Gavin] 此处应该触发一下选中的tip的显示事件
+        onTap: () => {}, //TODO:[Gavin] 此处应该触发一下选中的tip的显示事件
         onHorizontalDragUpdate: (DragUpdateDetails details) {
           cursorUpdateCallback(details.localPosition.dx);
         },

+ 0 - 1
lib/view/mobile_view/mobile_measure_main_view.dart

@@ -156,7 +156,6 @@ class _MobileMeasureMainViewState extends State<MobileMeasureMainView> {
 
   /// 保存图片
   void capturePng() async {
-    print('capturePng');
     if (!isCaptureState) {
       setState(() {
         isCaptureState = true;

+ 0 - 2
lib/view/player/control_board/tone_bar.dart

@@ -39,7 +39,6 @@ class _ContrastToneBarState extends State<_ContrastToneBar> {
         color: Colors.white,
       ),
       onChange: (v) {
-        // print('setContrast $v');
         playerController.setContrast(v.toInt());
       },
     );
@@ -104,7 +103,6 @@ class _BrightnessToneBarState extends State<_BrightnessToneBar> {
         color: Colors.white,
       ),
       onChange: (v) {
-        // print('set brightness $v');
         playerController.setBrightness(v.toInt());
       },
     );