kfb-view 2.2.2 → 2.2.3

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,7 +36,9 @@
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="" />
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>
40
42
  <option name="SHOW_DIALOG" value="false" />
41
43
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
42
44
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -46,8 +48,8 @@
46
48
  <option name="RECENT_TEMPLATES">
47
49
  <list>
48
50
  <option value="CSS File" />
49
- <option value="JavaScript File" />
50
51
  <option value="HTML File" />
52
+ <option value="JavaScript File" />
51
53
  </list>
52
54
  </option>
53
55
  </component>
@@ -95,11 +97,11 @@
95
97
  <recent name="$PROJECT_DIR$/src/components/rotation" />
96
98
  </key>
97
99
  <key name="MoveFile.RECENT_KEYS">
100
+ <recent name="$PROJECT_DIR$/src/components/grid" />
98
101
  <recent name="$PROJECT_DIR$" />
99
102
  <recent name="$PROJECT_DIR$/src" />
100
103
  <recent name="$PROJECT_DIR$/example" />
101
104
  <recent name="$PROJECT_DIR$/src/tool" />
102
- <recent name="$PROJECT_DIR$/src/components" />
103
105
  </key>
104
106
  </component>
105
107
  <component name="RunManager" selected="npm.build:lib">
@@ -165,8 +167,8 @@
165
167
  </list>
166
168
  <recent_temporary>
167
169
  <list>
168
- <item itemvalue="npm.build:lib" />
169
170
  <item itemvalue="npm.server:hot" />
171
+ <item itemvalue="npm.build:lib" />
170
172
  <item itemvalue="npm.clean:lib" />
171
173
  <item itemvalue="npm.server" />
172
174
  <item itemvalue="npm.build:prod" />
@@ -297,28 +299,10 @@
297
299
  <workItem from="1658365477621" duration="2695000" />
298
300
  <workItem from="1658371298489" duration="3932000" />
299
301
  <workItem from="1658393509298" duration="2844000" />
300
- <workItem from="1658398367362" duration="819000" />
301
- </task>
302
- <task id="LOCAL-00037" summary="Curve is obsolete. Please use polygon instead">
303
- <created>1631760521355</created>
304
- <option name="number" value="00037" />
305
- <option name="presentableId" value="LOCAL-00037" />
306
- <option name="project" value="LOCAL" />
307
- <updated>1631760521355</updated>
308
- </task>
309
- <task id="LOCAL-00038" summary="优化调整">
310
- <created>1632362091089</created>
311
- <option name="number" value="00038" />
312
- <option name="presentableId" value="LOCAL-00038" />
313
- <option name="project" value="LOCAL" />
314
- <updated>1632362091089</updated>
315
- </task>
316
- <task id="LOCAL-00039" summary="2.1.2">
317
- <created>1632362102053</created>
318
- <option name="number" value="00039" />
319
- <option name="presentableId" value="LOCAL-00039" />
320
- <option name="project" value="LOCAL" />
321
- <updated>1632362102053</updated>
302
+ <workItem from="1658398367362" duration="1815000" />
303
+ <workItem from="1658401123366" duration="603000" />
304
+ <workItem from="1658513789094" duration="298000" />
305
+ <workItem from="1658666796644" duration="14031000" />
322
306
  </task>
323
307
  <task id="LOCAL-00040" summary="修复navigator中图片宽高一致时不显示">
324
308
  <created>1632364163945</created>
@@ -642,7 +626,28 @@
642
626
  <option name="project" value="LOCAL" />
643
627
  <updated>1658398987163</updated>
644
628
  </task>
645
- <option name="localTasksCounter" value="86" />
629
+ <task id="LOCAL-00086" summary="2.2.2">
630
+ <created>1658399404095</created>
631
+ <option name="number" value="00086" />
632
+ <option name="presentableId" value="LOCAL-00086" />
633
+ <option name="project" value="LOCAL" />
634
+ <updated>1658399404095</updated>
635
+ </task>
636
+ <task id="LOCAL-00087" summary="增加网格线和标尺">
637
+ <created>1658710072174</created>
638
+ <option name="number" value="00087" />
639
+ <option name="presentableId" value="LOCAL-00087" />
640
+ <option name="project" value="LOCAL" />
641
+ <updated>1658710072175</updated>
642
+ </task>
643
+ <task id="LOCAL-00088" summary="标注信息优化显示">
644
+ <created>1658713081785</created>
645
+ <option name="number" value="00088" />
646
+ <option name="presentableId" value="LOCAL-00088" />
647
+ <option name="project" value="LOCAL" />
648
+ <updated>1658713081785</updated>
649
+ </task>
650
+ <option name="localTasksCounter" value="89" />
646
651
  <servers />
647
652
  </component>
648
653
  <component name="TypeScriptGeneratedFilesManager">
@@ -684,9 +689,6 @@
684
689
  <component name="VcsManagerConfiguration">
685
690
  <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
686
691
  <option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
687
- <MESSAGE value="闭合曲线" />
688
- <MESSAGE value="2.1.16" />
689
- <MESSAGE value="优化加载速度" />
690
692
  <MESSAGE value="2.1.17" />
691
693
  <MESSAGE value="2.1.18" />
692
694
  <MESSAGE value="增加曲线开始点显示" />
@@ -709,7 +711,10 @@
709
711
  <MESSAGE value="index.js" />
710
712
  <MESSAGE value="导航轨迹显示" />
711
713
  <MESSAGE value="刻度线显示" />
712
- <option name="LAST_COMMIT_MESSAGE" value="刻度线显示" />
714
+ <MESSAGE value="2.2.2" />
715
+ <MESSAGE value="增加网格线和标尺" />
716
+ <MESSAGE value="标注信息优化显示" />
717
+ <option name="LAST_COMMIT_MESSAGE" value="标注信息优化显示" />
713
718
  <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
714
719
  </component>
715
720
  <component name="XSLT-Support.FileAssociations.UIState">
@@ -65,9 +65,10 @@ module.exports = function() {
65
65
  context: ['/api', '/image.php', '/process.php'],
66
66
  // target: 'http://gastric.label.hzztai.com/',
67
67
  // target: 'http://192.168.1.91:7007',
68
- target: 'http://192.168.1.91',
68
+ // target: 'http://192.168.1.91',
69
69
  // target: 'https://tct.hzztai.com',
70
70
  // target: 'https://pis-ningbo.hzztai.com',
71
+ target: 'https://pis-test.hzztai.com',
71
72
  secure: false,
72
73
  changeOrigin: true,
73
74
  },
package/example/index.js CHANGED
@@ -2,7 +2,7 @@ import {KfbView, hslToRgb, rgbToHsl, cacheGammaTable} from '../src';
2
2
  import axios from 'axios';
3
3
  import {EVENT_DB_CLICK_LABEL} from '../src/const/event';
4
4
 
5
- const fileName = '/upload/large_file/last/2022/04/26/d31a31bf1ae5b73fca63f72e2affc879/胃镜1.kfb';
5
+ const fileName = '/upload/large_file/last/2022/06/22/3625ce6de8197c7315ce9e05b4ef233b/IHC.kfb';
6
6
 
7
7
  const instance = axios.create({
8
8
  baseURL: '/api',
@@ -48,12 +48,15 @@ instance.get(`/slide/info?file=${fileName}`).then(({data}) => {
48
48
  style: 'right: 0;top: 0',
49
49
  thumbnail: `/api/slide/getImage?file=${fileName}&type=thumbnail`,
50
50
  scale: data.scanScale,
51
- vestigeZoom: .1,
52
51
  },
53
52
  pxConversion: {
54
53
  unit: 'um',
55
54
  imageCapRes: data.imageCapRes,
56
55
  },
56
+ grid: {
57
+ show: true,
58
+ ruler: true,
59
+ },
57
60
  openSeadragonOptions: {
58
61
  maxZoomLevel: data.scanScale * 10,
59
62
  // imageLoaderLimit: 1,
@@ -182,6 +185,11 @@ instance.get(`/slide/info?file=${fileName}`).then(({data}) => {
182
185
  size.y,
183
186
  );
184
187
  },
188
+ measure: {
189
+ handler(content, label) {
190
+ return [...content, '标注人: xxx'];
191
+ },
192
+ },
185
193
  });
186
194
  /* kv.board.startDraw({
187
195
  tool: KfbView.marks.POLYGON,
@@ -189,7 +197,7 @@ instance.get(`/slide/info?file=${fileName}`).then(({data}) => {
189
197
  kv.viewer.addHandler('zoom', (res) => {
190
198
  const zoom = kv.viewer.viewport.viewportToImageZoom(res.zoom) *
191
199
  kv.$options.scale;
192
- // console.log(zoom.toFixed(2) / 1);
200
+ console.log(zoom.toFixed(2) / 1);
193
201
  });
194
202
  console.log(kv);
195
203
  let list = [];
@@ -222,7 +230,7 @@ instance.get(`/slide/info?file=${fileName}`).then(({data}) => {
222
230
  lineWidth: 10,
223
231
  isROI: false,
224
232
  once: true,
225
- measure: false,
233
+ measure: true,
226
234
  resize: false,
227
235
  move: false,
228
236
  fillStyle: '#ff00ff8d',
@@ -328,6 +336,11 @@ instance.get(`/slide/info?file=${fileName}`).then(({data}) => {
328
336
  });*/
329
337
  setTimeout(() => {
330
338
  // kv.destroy();
339
+ kv.navigator.toggleNavigator();
340
+ setTimeout(() => {
341
+ // kv.destroy();
342
+ kv.navigator.toggleNavigator();
343
+ }, 6000);
331
344
  }, 6000);
332
345
 
333
346
  // initLabels();