measure_main_view.dart 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. import 'dart:async';
  2. import 'dart:ui';
  3. import 'package:fis_i18n/i18n.dart';
  4. import 'package:fis_jsonrpc/rpc.dart';
  5. import 'package:fis_measure/interfaces/date_types/int_size.dart';
  6. import 'package:fis_measure/interfaces/enums/operate.dart';
  7. import 'package:fis_measure/interfaces/process/calculators/output.dart';
  8. import 'package:fis_measure/interfaces/process/items/item_feature.dart';
  9. import 'package:fis_measure/interfaces/process/player/play_controller.dart';
  10. import 'package:fis_measure/interfaces/process/standard_line/calibration.dart';
  11. import 'package:fis_measure/interfaces/process/workspace/application.dart';
  12. import 'package:fis_measure/interfaces/process/workspace/measure_3d_view_controller.dart';
  13. import 'package:fis_measure/process/workspace/measure_3d_view_controller.dart';
  14. import 'package:fis_measure/process/workspace/measure_data_controller.dart';
  15. import 'package:fis_measure/process/workspace/measure_handler.dart';
  16. import 'package:fis_measure/process/workspace/third_part/application.dart';
  17. import 'package:fis_measure/process/workspace/third_part/calibration_controller.dart';
  18. import 'package:fis_measure/utils/canvas.dart';
  19. import 'package:fis_measure/utils/prompt_box.dart';
  20. import 'package:fis_measure/values/colors.dart';
  21. import 'package:fis_measure/view/button_group/button_group.dart';
  22. import 'package:fis_measure/view/3d_view/carotid_player.dart';
  23. import 'package:fis_measure/view/gesture/annotation/annotation_gesture.dart';
  24. import 'package:fis_measure/view/measure/measure_result.dart';
  25. import 'package:fis_measure/view/paint/ai_patint.dart';
  26. import 'package:fis_measure/view/paint/ai_patint_controller.dart';
  27. import 'package:fis_measure/view/paint/ai_patint_result.dart';
  28. import 'package:fis_measure/view/result/results_panel.dart';
  29. import 'package:fis_measure/view/standard_line/calibration_canvas.dart';
  30. import 'package:fis_measure/view/standard_line/calibration_gesture.dart';
  31. import 'package:fis_ui/index.dart';
  32. import 'package:flutter/material.dart';
  33. import 'package:flutter/rendering.dart';
  34. import 'package:get/get.dart';
  35. import 'package:fis_measure/view/canvas/active_canvas.dart';
  36. import 'package:fis_measure/view/canvas/annotation_canvas.dart';
  37. import 'package:fis_measure/view/canvas/records_canvas.dart';
  38. import 'package:fis_measure/view/gesture/mouse_gesture.dart';
  39. import 'package:fis_measure/view/pause/pause_panel.dart';
  40. import 'package:fis_measure/view/player/controller.dart';
  41. import 'package:fis_measure/view/player/player.dart';
  42. import 'package:fis_measure/view/loadding/loadding.dart';
  43. class MeasureMainView extends StatefulWidget implements FWidget {
  44. const MeasureMainView({Key? key}) : super(key: key);
  45. @override
  46. State<StatefulWidget> createState() => _MeasureMainViewState();
  47. }
  48. class _MeasureMainViewState extends State<MeasureMainView> {
  49. late final application = Get.find<IApplication>();
  50. late final playerController = Get.find<IPlayerController>();
  51. late final measure3DViewController = Get.find<Measure3DViewController>();
  52. late final measureHandler = Get.find<MeasureHandler>();
  53. /// 测量数据
  54. final measureData = Get.find<MeasureDataController>();
  55. late bool canMeasure = application.canMeasure;
  56. late final aiPatintController = Get.find<AiPatintController>();
  57. late bool enableCarotid2DMeasure = false;
  58. bool isCaptureState = false;
  59. late double calibrationLine = 4;
  60. final List<OutputItem> outputs = [];
  61. /// 是否显示loading加载提示
  62. bool _ifShowLoadingTips = false;
  63. /// loading加载提示文字
  64. String _loadingTipsText = '';
  65. /// loading加载触发计时器
  66. Timer? _streamLoadingTimer;
  67. /// 是否显示进度条
  68. bool ifShowProgressBar = true;
  69. /// 是否是首次加载的新Vid
  70. bool isNewVid = true;
  71. /// 参考校准线控制器
  72. IStandardLineCalibrationController? standardLineCalibrationController;
  73. final playerKey = GlobalKey();
  74. final _key = GlobalKey();
  75. bool get inAnnotation =>
  76. application.currentOperateType == MeasureOperateType.annotation;
  77. @override
  78. void initState() {
  79. super.initState();
  80. installStandardLine();
  81. VidPlayerController vidPlayerController =
  82. playerController as VidPlayerController;
  83. WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
  84. onCanMeasureChanged(this, application.canMeasure);
  85. application.canMeasureChanged.addListener(onCanMeasureChanged);
  86. application.operateTypeChanged.addListener(onOperateTypeChanged);
  87. measure3DViewController.updatePlayerMode.addListener(_onModeChanged);
  88. /// [Carotid] ✅在此判断是否为颈动脉2D图像,如果是,则不显示进度条且读取设置播放器单帧缓存
  89. if (measure3DViewController.curMeasureMode == MeasureMode.carotid2DMode) {
  90. vidPlayerController.pause();
  91. vidPlayerController
  92. .set2DMeasureFrame(measure3DViewController.image4Measure!);
  93. setState(() {
  94. enableCarotid2DMeasure = true;
  95. ifShowProgressBar = false;
  96. });
  97. application.clearRecords();
  98. }
  99. });
  100. vidPlayerController.errorOccured.addListener(_onErrorOccured);
  101. playerController.frameLoadStateChanged.addListener(_onLoadStateChanged);
  102. }
  103. @override
  104. void dispose() {
  105. application.canMeasureChanged.removeListener(onCanMeasureChanged);
  106. application.operateTypeChanged.removeListener(onOperateTypeChanged);
  107. measure3DViewController.updatePlayerMode.removeListener(_onModeChanged);
  108. playerController.frameLoadStateChanged.removeListener(_onLoadStateChanged);
  109. uninstallStandardLine();
  110. super.dispose();
  111. }
  112. /// 装载参考校准线
  113. void installStandardLine() {
  114. if (application.isThirdPart) {
  115. final standradLine = (application as ThirdPartApplication).standardLine;
  116. standardLineCalibrationController =
  117. StandardLineCalibrationController(application, standradLine);
  118. standardLineCalibrationController!.editStateChanged
  119. .addListener(onStandardLineCalibrationStateChanged);
  120. Get.put<IStandardLineCalibrationController>(
  121. standardLineCalibrationController!);
  122. }
  123. }
  124. /// 卸载参考校准线
  125. void uninstallStandardLine() {
  126. standardLineCalibrationController?.editStateChanged
  127. .removeListener(onStandardLineCalibrationStateChanged);
  128. Get.delete<IStandardLineCalibrationController>();
  129. }
  130. /// 流式加载出错
  131. void _onErrorOccured(Object s, String? error) {
  132. /// 第一次收到加载出错,不显示错误信息,直接重新加载一次,如果再次收到加载出错,显示错误信息
  133. if (isNewVid) {
  134. ///TODO:[Gavin] 如果不重新加载,在生产环境下会由于流式加载出错而导致无法播放
  135. /// 由于 debug 环境下不会出问题,所以下面用了 debugPrint
  136. /// debugPrint('流式加载出错: $error,尝试重新加载');
  137. isNewVid = false;
  138. Future.delayed(const Duration(milliseconds: 100), () {
  139. playerController.locateTo(0);
  140. playerController.play();
  141. });
  142. setState(() {
  143. _ifShowLoadingTips = error?.isNotEmpty ?? false;
  144. });
  145. } else {
  146. setState(() {
  147. _ifShowLoadingTips = error?.isNotEmpty ?? false;
  148. _loadingTipsText = error ?? '';
  149. });
  150. }
  151. }
  152. /// 流式加载loadding
  153. void _onLoadStateChanged(sender, bool e) {
  154. if (e) {
  155. _streamLoadingTimer?.cancel();
  156. _streamLoadingTimer = Timer(const Duration(milliseconds: 100), () {
  157. setState(() {
  158. _ifShowLoadingTips = true;
  159. ///TODO:[Gavin] i18n
  160. _loadingTipsText = '加载中';
  161. });
  162. });
  163. } else {
  164. _streamLoadingTimer?.cancel();
  165. if (_ifShowLoadingTips) {
  166. setState(() {
  167. _ifShowLoadingTips = false;
  168. });
  169. }
  170. }
  171. }
  172. /// 模式改变触发更新
  173. /// [Carotid] ✅组件不销毁的情况下,切换模式的时候,可以触发
  174. void _onModeChanged(Object s, MeasureMode mode) {
  175. switch (mode) {
  176. case MeasureMode.vidMode:
  177. playerController.play();
  178. setState(() {
  179. ifShowProgressBar = true;
  180. enableCarotid2DMeasure = false;
  181. });
  182. break;
  183. case MeasureMode.carotid2DMode:
  184. setState(() {
  185. ifShowProgressBar = false;
  186. enableCarotid2DMeasure = true;
  187. });
  188. break;
  189. case MeasureMode.carotid3DMode:
  190. break;
  191. }
  192. }
  193. /// 保存图片
  194. void capturePng() async {
  195. isCaptureState = true;
  196. setState(() {});
  197. final features = <IMeasureItemFeature>[];
  198. for (var item in application.measureItems) {
  199. if (item.measuredFeatures.isNotEmpty) {
  200. features.addAll(item.measuredFeatures);
  201. }
  202. if (item.feature != null) {
  203. features.add(item.feature!);
  204. }
  205. }
  206. MeasureResult measureResult = MeasureResult(
  207. measureApplicationName: application.applicationName,
  208. features: features,
  209. );
  210. //加延时是为了等待UI消失,防止截图截到UI
  211. await Future.delayed(const Duration(milliseconds: 10), () async {
  212. final RenderRepaintBoundary? boundary =
  213. _key.currentContext?.findRenderObject() as RenderRepaintBoundary?;
  214. if (boundary != null) {
  215. final image = await boundary.toImage();
  216. final byteData = await image.toByteData(format: ImageByteFormat.png);
  217. final pngBytes = byteData!.buffer.asUint8List();
  218. isCaptureState = false;
  219. PromptBox.snackbar(
  220. i18nBook.measure.saveLocation.t +
  221. ' > ' +
  222. i18nBook.measure.measureImage.t,
  223. duration: const Duration(milliseconds: 1500),
  224. ///TODO:[Gavin] i18n (截图保存成功)->(截图成功),因为可能上传失败
  225. title: i18nBook.measure.screenshotSavedSuccessfully.t,
  226. textColor: Colors.white,
  227. backgroundColor: Colors.black.withOpacity(0.7));
  228. setState(() {});
  229. measureData.saveImage.call(
  230. pngBytes,
  231. measureData.measureImageData.patientCode ?? '',
  232. measureData.measureImageData.recordCode ?? '',
  233. measureData.measureImageData.remedicalCode ?? '',
  234. measureResult.toDisplay(),
  235. );
  236. }
  237. });
  238. }
  239. void onCanMeasureChanged(Object sender, bool e) {
  240. if (e != canMeasure) {
  241. setState(() {
  242. canMeasure = e;
  243. });
  244. }
  245. }
  246. void onOperateTypeChanged(Object sender, MeasureOperateType e) {
  247. setState(() {});
  248. }
  249. void onStandardLineCalibrationStateChanged(
  250. Object sender, StandardLineCalibrationEditState e) {
  251. setState(() {
  252. if (e == StandardLineCalibrationEditState.drawn) {
  253. Get.dialog(buildCalibrationLine());
  254. }
  255. });
  256. }
  257. FWidget buildCalibrationLine() {
  258. return FSimpleDialog(
  259. title: FText(
  260. i18nBook.measure.guideCalibration.t,
  261. style: const TextStyle(
  262. color: Colors.white,
  263. fontSize: 18,
  264. ),
  265. ),
  266. isDefault: true,
  267. cancelString: i18nBook.common.cancel.t,
  268. okString: i18nBook.common.confirm.t,
  269. onOk: () {
  270. standardLineCalibrationController!.confirmEdit(calibrationLine);
  271. Get.back();
  272. },
  273. onCancel: () {
  274. standardLineCalibrationController!.cancelEdit();
  275. Get.back();
  276. },
  277. children: [
  278. buildCalibrationLineItem(
  279. i18nBook.measure.length.t,
  280. FTextField(
  281. decoration: InputDecoration(
  282. hintText: i18nBook.common.input.t + i18nBook.measure.length.t,
  283. hintStyle: const TextStyle(
  284. fontSize: 16,
  285. ),
  286. enabledBorder: OutlineInputBorder(
  287. borderSide: BorderSide(
  288. color: Colors.white.withOpacity(0.5),
  289. width: 0.5,
  290. style: BorderStyle.solid,
  291. ),
  292. ),
  293. focusedBorder: const OutlineInputBorder(
  294. borderSide: BorderSide(
  295. color: Colors.blue,
  296. width: 0.5,
  297. style: BorderStyle.solid,
  298. ),
  299. ),
  300. filled: true,
  301. ),
  302. onChanged: (val) => calibrationLine = double.parse(val),
  303. ),
  304. ),
  305. buildCalibrationLineItem(
  306. i18nBook.measure.unit.t,
  307. const FText('cm'),
  308. ),
  309. ],
  310. );
  311. }
  312. FWidget buildCalibrationLineItem(String name, FWidget itemWidget) {
  313. return FContainer(
  314. padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 25),
  315. child: FRow(
  316. children: [
  317. FContainer(
  318. width: 60,
  319. child: FText(name),
  320. ),
  321. FExpanded(
  322. child: itemWidget,
  323. ),
  324. ],
  325. ),
  326. );
  327. }
  328. @override
  329. Widget build(BuildContext context) {
  330. MeasureCanvasExt.setFontFamily(
  331. Theme.of(context).textTheme.labelLarge?.fontFamily,
  332. );
  333. bool canShowAI = [
  334. DiagnosisConclusionEnum.Benign,
  335. DiagnosisConclusionEnum.Malignant,
  336. DiagnosisConclusionEnum.BenignAndMalignant
  337. ].contains(measureData.diagnosisConclusion);
  338. return Container(
  339. color: MeasureColors.Background,
  340. child: RepaintBoundary(
  341. child: Column(
  342. children: [
  343. Expanded(
  344. child: Row(
  345. crossAxisAlignment: CrossAxisAlignment.start,
  346. children: [
  347. Expanded(
  348. child: RepaintBoundary(
  349. key: _key,
  350. child: CustomMultiChildLayout(
  351. delegate: _LayerLayoutDelegate(),
  352. children: [
  353. LayoutId(
  354. id: _LayerLayoutIds.player,
  355. child: enableCarotid2DMeasure
  356. ? CarotidPlayer(
  357. measure3DViewController,
  358. )
  359. : VidPlayer(
  360. playerController as VidPlayerController,
  361. ),
  362. ),
  363. if (canMeasure) ...[
  364. LayoutId(
  365. id: _LayerLayoutIds.recordsCanvas,
  366. child: const MeasureRecordsCanvasPanel(),
  367. ),
  368. LayoutId(
  369. id: _LayerLayoutIds.activeMeasure,
  370. child: const MeasureActiveCanvasPanel(),
  371. ),
  372. LayoutId(
  373. id: _LayerLayoutIds.activeAnnotation,
  374. child: const AnnotationCanvas(),
  375. ),
  376. if (application.isThirdPart)
  377. LayoutId(
  378. id: _LayerLayoutIds.standardLineCalibration,
  379. child: StandardLineCalibrationCanvas(
  380. standardLineCalibrationController!),
  381. ),
  382. LayoutId(
  383. id: _LayerLayoutIds.gesture,
  384. child: _buildGestureLayer(),
  385. ),
  386. LayoutId(
  387. id: _LayerLayoutIds.result,
  388. child: const MeasureResultPanel(),
  389. ),
  390. if (!isCaptureState)
  391. LayoutId(
  392. id: _LayerLayoutIds.buttonGroups,
  393. child: ButtonGroup(
  394. capturePng: () => capturePng(),
  395. ),
  396. )
  397. ],
  398. if (canShowAI) ...[
  399. LayoutId(
  400. id: _LayerLayoutIds.paintAI,
  401. child: AIPaintInfo(
  402. playerController as VidPlayerController,
  403. ),
  404. )
  405. ],
  406. if (enableCarotid2DMeasure) ...[
  407. LayoutId(
  408. id: _LayerLayoutIds.aiTips,
  409. child: _buildAiTips(),
  410. )
  411. ],
  412. if (_ifShowLoadingTips)
  413. LayoutId(
  414. id: _LayerLayoutIds.loadingTipsOverlay,
  415. child: _buildLoadingOrError(_loadingTipsText),
  416. ),
  417. ],
  418. ),
  419. ),
  420. ),
  421. if (canShowAI && !measureHandler.fullScreenState) ...[
  422. Obx(() {
  423. if (aiPatintController.state.ifShowAi) {
  424. return SizedBox(
  425. width: 200,
  426. child: AIPaintInfoReslut(
  427. playerController as VidPlayerController,
  428. ),
  429. );
  430. } else {
  431. return const SizedBox();
  432. }
  433. })
  434. ]
  435. ],
  436. ),
  437. ),
  438. ifShowProgressBar ? const MeasurePausePanel() : Container(),
  439. ],
  440. ),
  441. ),
  442. );
  443. }
  444. Widget _buildLoadingOrError([String? loadingText = '加载失败']) {
  445. return FStack(
  446. children: [
  447. FMouseRegion(
  448. child: FContainer(
  449. width: double.infinity,
  450. height: double.infinity,
  451. color: Colors.black.withOpacity(.5),
  452. child: const FSizedBox(),
  453. ),
  454. ),
  455. FCenter(
  456. child: FContainer(
  457. padding: const EdgeInsets.symmetric(
  458. vertical: 20,
  459. horizontal: 40,
  460. ),
  461. child: FStack(children: [
  462. FCenter(
  463. child: FColumn(mainAxisSize: MainAxisSize.min, children: [
  464. const SpinKitChasingDots(
  465. color: Colors.white,
  466. size: 30,
  467. ),
  468. const FSizedBox(height: 20),
  469. FText(
  470. loadingText!.isNotEmpty ? loadingText : '加载中',
  471. style: const TextStyle(
  472. color: Colors.white,
  473. ),
  474. ),
  475. ]),
  476. )
  477. ]),
  478. ),
  479. ),
  480. ],
  481. );
  482. }
  483. Widget _buildGestureLayer() {
  484. if (application.isThirdPart) {
  485. if (standardLineCalibrationController!.isEditing) {
  486. return StandardLineCalibrationGesture(
  487. standardLineCalibrationController!);
  488. }
  489. }
  490. return inAnnotation
  491. ? const AnnotationGestureLayer()
  492. : const MeasureMouseGesturePanel();
  493. }
  494. Widget _buildAiTips() {
  495. return Transform(
  496. transform: Matrix4.translationValues(0, -18, 0),
  497. child: const Text(
  498. '提醒:自动测量可能存在误差,仅供参考',
  499. style: TextStyle(color: Colors.grey, fontSize: 18, height: 1),
  500. ),
  501. );
  502. }
  503. }
  504. class _LayerLayoutDelegate extends MultiChildLayoutDelegate {
  505. Offset? layoutOffset;
  506. Size? layoutSize;
  507. _LayerLayoutDelegate();
  508. @override
  509. void performLayout(Size size) {
  510. if (!hasChild(_LayerLayoutIds.player)) return;
  511. final application = Get.find<IApplication>();
  512. final vidFrame = application.frameData;
  513. final imageSize = IntSize.fill(vidFrame?.width ?? 0, vidFrame?.height ?? 0);
  514. /// 以Contain方式填充布局,计算定位偏移量
  515. calcSize(size, imageSize);
  516. final offset = layoutOffset!;
  517. final renderSize = layoutSize!;
  518. /// 同步图像显示尺寸
  519. application.displaySize = renderSize;
  520. layoutLayer(_LayerLayoutIds.player, offset, renderSize);
  521. layoutLayer(_LayerLayoutIds.loadingTipsOverlay, offset, renderSize);
  522. // layoutLayer(_LayerLayoutIds.playerLoadding, offset, renderSize);
  523. /// 其他层按播放器尺寸位置层叠布局
  524. layoutLayer(_LayerLayoutIds.recordsCanvas, offset, renderSize);
  525. layoutLayer(_LayerLayoutIds.activeMeasure, offset, renderSize);
  526. layoutLayer(_LayerLayoutIds.activeAnnotation, offset, renderSize);
  527. layoutLayer(_LayerLayoutIds.standardLineCalibration, offset, renderSize);
  528. layoutLayer(_LayerLayoutIds.gesture, offset, renderSize);
  529. layoutLayer(
  530. _LayerLayoutIds.result,
  531. const Offset(20, 2),
  532. renderSize,
  533. );
  534. layoutLayer(_LayerLayoutIds.pause, offset, renderSize);
  535. layoutLayer(_LayerLayoutIds.paintAI, offset, renderSize);
  536. layoutLayer(_LayerLayoutIds.aiTips, Offset(0.0, size.height), renderSize);
  537. layoutLayer(_LayerLayoutIds.buttonGroups, offset, renderSize);
  538. }
  539. void layoutLayer(_LayerLayoutIds layoutId, Offset offset, Size size) {
  540. if (hasChild(layoutId)) {
  541. layoutChild(
  542. layoutId,
  543. BoxConstraints.loose(size),
  544. );
  545. positionChild(layoutId, offset);
  546. }
  547. }
  548. void calcSize(Size size, IntSize imageSize) {
  549. final parentWHRatio = size.width / size.height;
  550. final imageWHRatio = imageSize.width / imageSize.height;
  551. if (imageWHRatio < parentWHRatio) {
  552. // 高度撑满
  553. final layoutWidth = size.height * imageWHRatio;
  554. final layoutHeight = size.height;
  555. final offsetX = (size.width - layoutWidth) / 2;
  556. layoutOffset = Offset(offsetX, 0);
  557. layoutSize = Size(layoutWidth, layoutHeight);
  558. } else if (imageWHRatio > parentWHRatio) {
  559. // 宽度撑满
  560. final layoutWidth = size.width;
  561. final layoutHeight = size.width / imageWHRatio;
  562. final offsetY = (size.height - layoutHeight) / 2;
  563. layoutOffset = Offset(0, offsetY);
  564. layoutSize = Size(layoutWidth, layoutHeight);
  565. } else {
  566. layoutOffset = Offset.zero;
  567. layoutSize = size;
  568. }
  569. }
  570. @override
  571. bool shouldRelayout(covariant MultiChildLayoutDelegate oldDelegate) {
  572. return false;
  573. }
  574. }
  575. enum _LayerLayoutIds {
  576. /// 播放器
  577. player,
  578. /// 流式加载提示蒙层
  579. loadingTipsOverlay,
  580. /// 测量记录画板
  581. recordsCanvas,
  582. /// 活动测量画板
  583. activeMeasure,
  584. /// 活动注释画板
  585. activeAnnotation,
  586. /// 结果面板
  587. result,
  588. /// 手势面板
  589. gesture,
  590. /// 暂停画板 后面需要优化命名
  591. pause,
  592. /// AI画板
  593. paintAI,
  594. /// AI 自动测量提示语[提醒:自动测量可能存在误差,仅供参考]
  595. aiTips,
  596. /// 按钮组
  597. buttonGroups,
  598. /// 参考校准线画板
  599. standardLineCalibration,
  600. }