kfb-view 2.0.17 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,9 +36,7 @@
36
36
  </select>
37
37
  </component>
38
38
  <component name="ChangeListManager">
39
- <list default="true" id="55024232-8108-4dc9-9bd3-0fd2aa2f34f8" name="Default Changelist" comment="">
40
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
41
- </list>
39
+ <list default="true" id="55024232-8108-4dc9-9bd3-0fd2aa2f34f8" name="Default Changelist" comment="" />
42
40
  <option name="SHOW_DIALOG" value="false" />
43
41
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
44
42
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -101,35 +99,35 @@
101
99
  </key>
102
100
  </component>
103
101
  <component name="RunManager" selected="npm.build:lib">
104
- <configuration name="build:dev" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
102
+ <configuration name="build:lib" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
105
103
  <package-json value="$PROJECT_DIR$/package.json" />
106
104
  <command value="run" />
107
105
  <scripts>
108
- <script value="build:dev" />
106
+ <script value="build:lib" />
109
107
  </scripts>
110
108
  <node-interpreter value="project" />
109
+ <package-manager value="npm" />
111
110
  <envs />
112
111
  <method v="2" />
113
112
  </configuration>
114
- <configuration name="build:lib" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
113
+ <configuration name="build:prod" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
115
114
  <package-json value="$PROJECT_DIR$/package.json" />
116
115
  <command value="run" />
117
116
  <scripts>
118
- <script value="build:lib" />
117
+ <script value="build:prod" />
119
118
  </scripts>
120
119
  <node-interpreter value="project" />
121
120
  <package-manager value="npm" />
122
121
  <envs />
123
122
  <method v="2" />
124
123
  </configuration>
125
- <configuration name="build:prod" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
124
+ <configuration name="lint" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
126
125
  <package-json value="$PROJECT_DIR$/package.json" />
127
126
  <command value="run" />
128
127
  <scripts>
129
- <script value="build:prod" />
128
+ <script value="lint" />
130
129
  </scripts>
131
130
  <node-interpreter value="project" />
132
- <package-manager value="npm" />
133
131
  <envs />
134
132
  <method v="2" />
135
133
  </configuration>
@@ -156,19 +154,19 @@
156
154
  <method v="2" />
157
155
  </configuration>
158
156
  <list>
159
- <item itemvalue="npm.build:dev" />
160
157
  <item itemvalue="npm.server:dev" />
161
158
  <item itemvalue="npm.server:hot" />
162
159
  <item itemvalue="npm.build:lib" />
163
160
  <item itemvalue="npm.build:prod" />
161
+ <item itemvalue="npm.lint" />
164
162
  </list>
165
163
  <recent_temporary>
166
164
  <list>
167
165
  <item itemvalue="npm.build:lib" />
168
- <item itemvalue="npm.server:dev" />
169
166
  <item itemvalue="npm.server:hot" />
167
+ <item itemvalue="npm.lint" />
170
168
  <item itemvalue="npm.build:prod" />
171
- <item itemvalue="npm.build:dev" />
169
+ <item itemvalue="npm.server:dev" />
172
170
  </list>
173
171
  </recent_temporary>
174
172
  </component>
@@ -231,7 +229,21 @@
231
229
  <workItem from="1630585626678" duration="1572000" />
232
230
  <workItem from="1631256025694" duration="2632000" />
233
231
  <workItem from="1631343012139" duration="12587000" />
234
- <workItem from="1631665536248" duration="9139000" />
232
+ <workItem from="1631665536248" duration="9947000" />
233
+ <workItem from="1631751049128" duration="15257000" />
234
+ <workItem from="1632269649302" duration="15644000" />
235
+ <workItem from="1632442983325" duration="942000" />
236
+ <workItem from="1632452605749" duration="612000" />
237
+ <workItem from="1632615323445" duration="735000" />
238
+ <workItem from="1632701267211" duration="2657000" />
239
+ <workItem from="1632902494154" duration="1200000" />
240
+ <workItem from="1632988331348" duration="597000" />
241
+ <workItem from="1633433313520" duration="532000" />
242
+ <workItem from="1633434001653" duration="14000" />
243
+ <workItem from="1634268135304" duration="1276000" />
244
+ <workItem from="1634344422400" duration="3753000" />
245
+ <workItem from="1634435147345" duration="2072000" />
246
+ <workItem from="1634438173344" duration="675000" />
235
247
  </task>
236
248
  <task id="LOCAL-00001" summary="2.0.0重构">
237
249
  <created>1600767106537</created>
@@ -450,7 +462,105 @@
450
462
  <option name="project" value="LOCAL" />
451
463
  <updated>1631694555711</updated>
452
464
  </task>
453
- <option name="localTasksCounter" value="32" />
465
+ <task id="LOCAL-00032" summary="2.0.17">
466
+ <created>1631694823499</created>
467
+ <option name="number" value="00032" />
468
+ <option name="presentableId" value="LOCAL-00032" />
469
+ <option name="project" value="LOCAL" />
470
+ <updated>1631694823499</updated>
471
+ </task>
472
+ <task id="LOCAL-00033" summary="标签优化">
473
+ <created>1631756759803</created>
474
+ <option name="number" value="00033" />
475
+ <option name="presentableId" value="LOCAL-00033" />
476
+ <option name="project" value="LOCAL" />
477
+ <updated>1631756759803</updated>
478
+ </task>
479
+ <task id="LOCAL-00034" summary="标签优化">
480
+ <created>1631757323462</created>
481
+ <option name="number" value="00034" />
482
+ <option name="presentableId" value="LOCAL-00034" />
483
+ <option name="project" value="LOCAL" />
484
+ <updated>1631757323462</updated>
485
+ </task>
486
+ <task id="LOCAL-00035" summary="2.1.1">
487
+ <created>1631758578474</created>
488
+ <option name="number" value="00035" />
489
+ <option name="presentableId" value="LOCAL-00035" />
490
+ <option name="project" value="LOCAL" />
491
+ <updated>1631758578474</updated>
492
+ </task>
493
+ <task id="LOCAL-00036" summary="eslint">
494
+ <created>1631760254126</created>
495
+ <option name="number" value="00036" />
496
+ <option name="presentableId" value="LOCAL-00036" />
497
+ <option name="project" value="LOCAL" />
498
+ <updated>1631760254126</updated>
499
+ </task>
500
+ <task id="LOCAL-00037" summary="Curve is obsolete. Please use polygon instead">
501
+ <created>1631760521355</created>
502
+ <option name="number" value="00037" />
503
+ <option name="presentableId" value="LOCAL-00037" />
504
+ <option name="project" value="LOCAL" />
505
+ <updated>1631760521355</updated>
506
+ </task>
507
+ <task id="LOCAL-00038" summary="优化调整">
508
+ <created>1632362091089</created>
509
+ <option name="number" value="00038" />
510
+ <option name="presentableId" value="LOCAL-00038" />
511
+ <option name="project" value="LOCAL" />
512
+ <updated>1632362091089</updated>
513
+ </task>
514
+ <task id="LOCAL-00039" summary="2.1.2">
515
+ <created>1632362102053</created>
516
+ <option name="number" value="00039" />
517
+ <option name="presentableId" value="LOCAL-00039" />
518
+ <option name="project" value="LOCAL" />
519
+ <updated>1632362102053</updated>
520
+ </task>
521
+ <task id="LOCAL-00040" summary="修复navigator中图片宽高一致时不显示">
522
+ <created>1632364163945</created>
523
+ <option name="number" value="00040" />
524
+ <option name="presentableId" value="LOCAL-00040" />
525
+ <option name="project" value="LOCAL" />
526
+ <updated>1632364163945</updated>
527
+ </task>
528
+ <task id="LOCAL-00041" summary="2.1.3">
529
+ <created>1632364173513</created>
530
+ <option name="number" value="00041" />
531
+ <option name="presentableId" value="LOCAL-00041" />
532
+ <option name="project" value="LOCAL" />
533
+ <updated>1632364173513</updated>
534
+ </task>
535
+ <task id="LOCAL-00042" summary="2.1.4">
536
+ <created>1632364377230</created>
537
+ <option name="number" value="00042" />
538
+ <option name="presentableId" value="LOCAL-00042" />
539
+ <option name="project" value="LOCAL" />
540
+ <updated>1632364377230</updated>
541
+ </task>
542
+ <task id="LOCAL-00043" summary="navigator 获取元素方式修改">
543
+ <created>1632379605009</created>
544
+ <option name="number" value="00043" />
545
+ <option name="presentableId" value="LOCAL-00043" />
546
+ <option name="project" value="LOCAL" />
547
+ <updated>1632379605009</updated>
548
+ </task>
549
+ <task id="LOCAL-00044" summary="chrome 49版本兼容">
550
+ <created>1634268789961</created>
551
+ <option name="number" value="00044" />
552
+ <option name="presentableId" value="LOCAL-00044" />
553
+ <option name="project" value="LOCAL" />
554
+ <updated>1634268789961</updated>
555
+ </task>
556
+ <task id="LOCAL-00045" summary="刻度线显示异常">
557
+ <created>1634437932304</created>
558
+ <option name="number" value="00045" />
559
+ <option name="presentableId" value="LOCAL-00045" />
560
+ <option name="project" value="LOCAL" />
561
+ <updated>1634437932304</updated>
562
+ </task>
563
+ <option name="localTasksCounter" value="46" />
454
564
  <servers />
455
565
  </component>
456
566
  <component name="TypeScriptGeneratedFilesManager">
@@ -493,19 +603,6 @@
493
603
  <component name="VcsManagerConfiguration">
494
604
  <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
495
605
  <option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
496
- <MESSAGE value="area组件重构完成" />
497
- <MESSAGE value="area完善" />
498
- <MESSAGE value="增加label.model" />
499
- <MESSAGE value="细节完善" />
500
- <MESSAGE value="修改" />
501
- <MESSAGE value="增加DOT方法" />
502
- <MESSAGE value="dot缩放" />
503
- <MESSAGE value="键盘事件" />
504
- <MESSAGE value="绘制实心点空心点" />
505
- <MESSAGE value="2.0.6" />
506
- <MESSAGE value="2.0.7" />
507
- <MESSAGE value="2.0.8单个标注允许拖动" />
508
- <MESSAGE value="2.0.9单个标注允许移动和调整大小" />
509
606
  <MESSAGE value="2.0.10缩略图" />
510
607
  <MESSAGE value="2.0.11截图优化" />
511
608
  <MESSAGE value="2.0.12增加lib打包" />
@@ -518,7 +615,20 @@
518
615
  <MESSAGE value="优化Curve标注,增加是否是闭合曲线参数" />
519
616
  <MESSAGE value="优化Curve标注,增加组合" />
520
617
  <MESSAGE value="组合标注增加ellipse和rect" />
521
- <option name="LAST_COMMIT_MESSAGE" value="组合标注增加ellipse和rect" />
618
+ <MESSAGE value="2.0.17" />
619
+ <MESSAGE value="标签优化" />
620
+ <MESSAGE value="2.1.1" />
621
+ <MESSAGE value="eslint" />
622
+ <MESSAGE value="Curve is obsolete. Please use polygon instead" />
623
+ <MESSAGE value="优化调整" />
624
+ <MESSAGE value="2.1.2" />
625
+ <MESSAGE value="修复navigator中图片宽高一致时不显示" />
626
+ <MESSAGE value="2.1.3" />
627
+ <MESSAGE value="2.1.4" />
628
+ <MESSAGE value="navigator 获取元素方式修改" />
629
+ <MESSAGE value="chrome 49版本兼容" />
630
+ <MESSAGE value="刻度线显示异常" />
631
+ <option name="LAST_COMMIT_MESSAGE" value="刻度线显示异常" />
522
632
  <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
523
633
  </component>
524
634
  <component name="WindowStateProjectService">
@@ -526,34 +636,40 @@
526
636
  <screen x="0" y="27" width="2560" height="1348" />
527
637
  </state>
528
638
  <state x="738" y="358" width="1084" height="756" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.27.2560.1348@0.27.2560.1348" timestamp="1626252602840" />
529
- <state x="1106" y="264" width="920" height="1030" key="CommitChangelistDialog2" timestamp="1631694555646">
530
- <screen x="0" y="27" width="2560" height="1348" />
639
+ <state x="804" y="176" width="937" height="804" key="CommitChangelistDialog2" timestamp="1634437932051">
640
+ <screen x="0" y="27" width="1861" height="1052" />
531
641
  </state>
532
- <state x="1106" y="264" width="920" height="1030" key="CommitChangelistDialog2/0.27.2560.1348@0.27.2560.1348" timestamp="1631694555646" />
533
- <state x="100" y="125" width="2360" height="1150" key="DiffContextDialog" timestamp="1631689866188">
642
+ <state x="804" y="176" width="937" height="804" key="CommitChangelistDialog2/0.27.1861.1052@0.27.1861.1052" timestamp="1634437932051" />
643
+ <state x="1106" y="264" width="920" height="1030" key="CommitChangelistDialog2/0.27.2560.1348@0.27.2560.1348" timestamp="1632379604925" />
644
+ <state x="233" y="564" width="2360" height="1150" key="DiffContextDialog" timestamp="1632379478129">
534
645
  <screen x="0" y="27" width="2560" height="1348" />
535
646
  </state>
536
- <state x="100" y="125" width="2360" height="1150" key="DiffContextDialog/0.27.2560.1348@0.27.2560.1348" timestamp="1631689866188" />
537
- <state x="1063" y="458" width="424" height="484" key="FileChooserDialogImpl" timestamp="1630485689567">
538
- <screen x="0" y="27" width="2560" height="1348" />
647
+ <state x="233" y="564" width="2360" height="1150" key="DiffContextDialog/0.27.2560.1348@0.27.2560.1348" timestamp="1632379478129" />
648
+ <state x="1595" y="688" width="424" height="484" key="FileChooserDialogImpl" timestamp="1632743649599">
649
+ <screen x="0" y="27" width="3840" height="2068" />
539
650
  </state>
540
651
  <state x="1063" y="458" width="424" height="484" key="FileChooserDialogImpl/0.27.2560.1348@0.27.2560.1348" timestamp="1630485689567" />
541
- <state width="2533" height="281" key="GridCell.Tab.0.bottom" timestamp="1631689852426">
542
- <screen x="0" y="27" width="2560" height="1348" />
652
+ <state x="1595" y="688" key="FileChooserDialogImpl/0.27.3840.2068@0.27.3840.2068" timestamp="1632743649599" />
653
+ <state width="1834" height="301" key="GridCell.Tab.0.bottom" timestamp="1634436647542">
654
+ <screen x="0" y="27" width="1861" height="1052" />
543
655
  </state>
544
- <state width="2533" height="281" key="GridCell.Tab.0.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1631689852426" />
545
- <state width="2533" height="281" key="GridCell.Tab.0.center" timestamp="1631689852424">
546
- <screen x="0" y="27" width="2560" height="1348" />
656
+ <state width="1834" height="301" key="GridCell.Tab.0.bottom/0.27.1861.1052@0.27.1861.1052" timestamp="1634436647542" />
657
+ <state width="2533" height="408" key="GridCell.Tab.0.bottom/0.27.2560.1348@0.27.2560.1348" timestamp="1632382458365" />
658
+ <state width="1834" height="301" key="GridCell.Tab.0.center" timestamp="1634436647540">
659
+ <screen x="0" y="27" width="1861" height="1052" />
547
660
  </state>
548
- <state width="2533" height="281" key="GridCell.Tab.0.center/0.27.2560.1348@0.27.2560.1348" timestamp="1631689852424" />
549
- <state width="2533" height="281" key="GridCell.Tab.0.left" timestamp="1631689852423">
550
- <screen x="0" y="27" width="2560" height="1348" />
661
+ <state width="1834" height="301" key="GridCell.Tab.0.center/0.27.1861.1052@0.27.1861.1052" timestamp="1634436647540" />
662
+ <state width="2533" height="408" key="GridCell.Tab.0.center/0.27.2560.1348@0.27.2560.1348" timestamp="1632382458362" />
663
+ <state width="1834" height="301" key="GridCell.Tab.0.left" timestamp="1634436647539">
664
+ <screen x="0" y="27" width="1861" height="1052" />
551
665
  </state>
552
- <state width="2533" height="281" key="GridCell.Tab.0.left/0.27.2560.1348@0.27.2560.1348" timestamp="1631689852423" />
553
- <state width="2533" height="281" key="GridCell.Tab.0.right" timestamp="1631689852425">
554
- <screen x="0" y="27" width="2560" height="1348" />
666
+ <state width="1834" height="301" key="GridCell.Tab.0.left/0.27.1861.1052@0.27.1861.1052" timestamp="1634436647539" />
667
+ <state width="2533" height="408" key="GridCell.Tab.0.left/0.27.2560.1348@0.27.2560.1348" timestamp="1632382458361" />
668
+ <state width="1834" height="301" key="GridCell.Tab.0.right" timestamp="1634436647541">
669
+ <screen x="0" y="27" width="1861" height="1052" />
555
670
  </state>
556
- <state width="2533" height="281" key="GridCell.Tab.0.right/0.27.2560.1348@0.27.2560.1348" timestamp="1631689852425" />
671
+ <state width="1834" height="301" key="GridCell.Tab.0.right/0.27.1861.1052@0.27.1861.1052" timestamp="1634436647541" />
672
+ <state width="2533" height="408" key="GridCell.Tab.0.right/0.27.2560.1348@0.27.2560.1348" timestamp="1632382458364" />
557
673
  <state width="2533" height="457" key="GridCell.Tab.1.bottom" timestamp="1626673542669">
558
674
  <screen x="0" y="27" width="2560" height="1348" />
559
675
  </state>
@@ -606,13 +722,19 @@
606
722
  <screen x="0" y="27" width="2560" height="1348" />
607
723
  </state>
608
724
  <state x="1031" y="327" width="487" height="745" key="RollbackChangesDialog/0.27.2560.1348@0.27.2560.1348" timestamp="1630460804017" />
609
- <state x="875" y="434" width="800" height="531" key="Vcs.Push.Dialog.v2" timestamp="1631623398486">
725
+ <state x="1122" y="606" width="306" height="187" key="VCS.ChangelistChooser" timestamp="1631757307782">
610
726
  <screen x="0" y="27" width="2560" height="1348" />
611
727
  </state>
612
- <state x="875" y="434" width="800" height="531" key="Vcs.Push.Dialog.v2/0.27.2560.1348@0.27.2560.1348" timestamp="1631623398486" />
613
- <state x="971" y="387" width="617" height="626" key="find.popup" timestamp="1631693859462">
614
- <screen x="0" y="27" width="2560" height="1348" />
728
+ <state x="1122" y="606" width="306" height="187" key="VCS.ChangelistChooser/0.27.2560.1348@0.27.2560.1348" timestamp="1631757307782" />
729
+ <state x="636" y="327" width="800" height="531" key="Vcs.Push.Dialog.v2" timestamp="1634268799005">
730
+ <screen x="0" y="27" width="1861" height="1052" />
731
+ </state>
732
+ <state x="636" y="327" key="Vcs.Push.Dialog.v2/0.27.1861.1052@0.27.1861.1052" timestamp="1634268799005" />
733
+ <state x="875" y="434" width="800" height="531" key="Vcs.Push.Dialog.v2/0.27.2560.1348@0.27.2560.1348" timestamp="1632364390828" />
734
+ <state x="704" y="306" width="839" height="626" key="find.popup" timestamp="1634435934505">
735
+ <screen x="0" y="27" width="1861" height="1052" />
615
736
  </state>
616
- <state x="971" y="387" width="617" height="626" key="find.popup/0.27.2560.1348@0.27.2560.1348" timestamp="1631693859462" />
737
+ <state x="704" y="306" width="839" height="626" key="find.popup/0.27.1861.1052@0.27.1861.1052" timestamp="1634435934505" />
738
+ <state x="969" y="384" width="1154" height="626" key="find.popup/0.27.2560.1348@0.27.2560.1348" timestamp="1632379533248" />
617
739
  </component>
618
740
  </project>
@@ -63,10 +63,11 @@ module.exports = function() {
63
63
  proxy: [
64
64
  {
65
65
  context: ['/api', '/image.php', '/process.php'],
66
- target: 'http://gastric.label.hzztai.com/',
66
+ // target: 'http://gastric.label.hzztai.com/',
67
67
  // target: 'http://192.168.1.91:7007',
68
68
  // target: 'http://192.168.1.112',
69
69
  // target: 'https://tct.hzztai.com',
70
+ target: 'https://pis-ningbo.hzztai.com',
70
71
  secure: false,
71
72
  changeOrigin: true,
72
73
  },
package/example/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {KfbView, cacheGammaTable, hslToRgb, rgbToHsl} from '../src';
2
2
  import axios from 'axios';
3
3
 
4
- const fileName = 'hzzt_test/batch2/low/2017-29213_胃窦_A1-1.kfb';
4
+ const fileName = '/upload/large_file/last/fb6f566d15cc52331e3c4f3e1794a748/T2020-00935.kfb';
5
5
 
6
6
  const instance = axios.create({
7
7
  baseURL: '/api',
8
8
  timeout: 1000,
9
- headers: {'Authorization': 'bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vMTkyLjE2OC4xLjkxOjcwMDcvYXBpL2F1dGgvbG9naW4iLCJpYXQiOjE2MDI3Mjg4NzEsImV4cCI6MTYwMjczMjQ3MSwibmJmIjoxNjAyNzI4ODcxLCJqdGkiOiJOQTJacnpmckduSVN2M0YzIiwic3ViIjoxLCJwcnYiOiJmNjRkNDhhNmNlYzdiZGZhN2ZiZjg5OTQ1NGI0ODhiM2U0NjI1MjBhIn0.8kVRTqSA8GVaxETlHmg-L-VjJF3JvYSJL3fEepwtwX0'},
9
+ headers: {'Authorization': 'bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvcGlzLW5pbmdiby5oenp0YWkuY29tXC9hcGlcL2F1dGhcL2xvZ2luIiwiaWF0IjoxNjMyMzYxNjQxLCJleHAiOjE2MzI5NjY0NDEsIm5iZiI6MTYzMjM2MTY0MSwianRpIjoidGlGYzBMcTRMRjQxMDNzNCIsInN1YiI6NjQsInBydiI6Ijg3ZTBhZjFlZjlmZDE1ODEyZmRlYzk3MTUzYTE0ZTBiMDQ3NTQ2YWEifQ.lwwW8vublDPm-zSbQzeY3HabRN3O0Ud7CzxF4gnlVRo'},
10
10
  });
11
11
 
12
- instance.get(`/slice/info?file=${fileName}`).then(({data}) => {
12
+ instance.get(`/ai/kfb/info?file=${fileName}`).then(({data}) => {
13
13
  let params = {};
14
14
  params.file = fileName;
15
15
  const kv = new KfbView({
@@ -27,7 +27,7 @@ instance.get(`/slice/info?file=${fileName}`).then(({data}) => {
27
27
  disabled: false,
28
28
  height: 200,
29
29
  style: 'right: 0;top: 0',
30
- thumbnail: `/api/slice/get_image?file=${fileName}&type=thumbnail`,
30
+ thumbnail: `/api/ai/kfb/image?file=${fileName}&type=thumbnail`,
31
31
  vestige: true,
32
32
  vestigeZoom: .1,
33
33
  },
@@ -149,7 +149,7 @@ instance.get(`/slice/info?file=${fileName}`).then(({data}) => {
149
149
  },
150
150
  });
151
151
  /* kv.board.startDraw({
152
- tool: KfbView.marks.CURVE,
152
+ tool: KfbView.marks.POLYGON,
153
153
  });*/
154
154
  console.log(kv);
155
155
  let list = [];
@@ -170,7 +170,7 @@ instance.get(`/slice/info?file=${fileName}`).then(({data}) => {
170
170
  const star = document.querySelector('#star');
171
171
  const line = document.querySelector('#line');
172
172
  const ellipse = document.querySelector('#ellipse');
173
- const curve = document.querySelector('#curve');
173
+ const polygon = document.querySelector('#polygon');
174
174
  const curve1 = document.querySelector('#curve1');
175
175
 
176
176
  rect.onclick = () => {
@@ -191,7 +191,7 @@ instance.get(`/slice/info?file=${fileName}`).then(({data}) => {
191
191
  kv.board.startDraw({
192
192
  tool: KfbView.marks.ELLIPSE,
193
193
  // isROI: true,
194
- fillStyle: '#0000ff8d',
194
+ // fillStyle: '#0000ff8d',
195
195
  once: true,
196
196
  });
197
197
  };
@@ -223,15 +223,15 @@ instance.get(`/slice/info?file=${fileName}`).then(({data}) => {
223
223
  once: true,
224
224
  });
225
225
  };
226
- curve.onclick = () => {
226
+ polygon.onclick = () => {
227
227
  kv.board.startDraw({
228
- tool: KfbView.marks.CURVE,
228
+ tool: KfbView.marks.POLYGON,
229
229
  once: true,
230
230
  });
231
231
  };
232
232
  curve1.onclick = () => {
233
233
  kv.board.startDraw({
234
- tool: KfbView.marks.CURVE,
234
+ tool: KfbView.marks.POLYGON,
235
235
  once: true,
236
236
  fillStyle: '#ff00ff8d',
237
237
  });
@@ -245,7 +245,7 @@ instance.get(`/slice/info?file=${fileName}`).then(({data}) => {
245
245
  kv.$on(KfbView.events.EVENT_END_PAINTING, (e) => {
246
246
  console.log(e.detail);
247
247
  list.push(e.detail);
248
- kv.updateLabelList(list);
248
+ kv.initLabelList(list);
249
249
  // kv.board.endDraw();
250
250
  });
251
251
  kv.$on(KfbView.events.EVENT_DELETE_LABEL, (e) => {
@@ -270,6 +270,9 @@ instance.get(`/slice/info?file=${fileName}`).then(({data}) => {
270
270
  kv.$on(KfbView.events.EVENT_TAILORING_SCREENSHOT, (e) => {
271
271
  console.log(e.detail);
272
272
  });*/
273
+ setTimeout(() => {
274
+ // kv.destroy();
275
+ }, 6000);
273
276
  });
274
277
 
275
278
  /**
@@ -9,15 +9,6 @@ body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, l
9
9
  -webkit-font-smoothing: antialiased;
10
10
  }
11
11
 
12
- #hzzt_navigator {
13
- position: absolute;
14
- z-index: 999;
15
- }
16
-
17
- #hzzt_container {
18
- position: relative;
19
- }
20
-
21
12
  .rotation-container {
22
13
  color: #FDFDFD;
23
14
  font-size: 14px;