kfb-view 2.2.1 → 2.2.2

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" />
@@ -73,21 +71,21 @@
73
71
  <option name="hideEmptyMiddlePackages" value="true" />
74
72
  <option name="showLibraryContents" value="true" />
75
73
  </component>
76
- <component name="PropertiesComponent"><![CDATA[{
77
- "keyToString": {
78
- "DefaultHtmlFileTemplate": "HTML File",
79
- "WebServerToolWindowFactoryState": "false",
80
- "dart.analysis.tool.window.visible": "false",
81
- "last_opened_file_path": "/home/fanqifeng/WebstormProjects/kfb_view_example",
82
- "node.js.detected.package.eslint": "true",
83
- "node.js.selected.package.eslint": "(autodetect)",
84
- "nodejs_interpreter_path": "/home/fanqifeng/.nvm/versions/node/v10.15.1/bin/node",
85
- "nodejs_package_manager_path": "npm",
86
- "settings.editor.selected.configurable": "settings.nodejs",
87
- "ts.external.directory.path": "/opt/WebStorm/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external",
88
- "vue.rearranger.settings.migration": "true"
74
+ <component name="PropertiesComponent">{
75
+ &quot;keyToString&quot;: {
76
+ &quot;DefaultHtmlFileTemplate&quot;: &quot;HTML File&quot;,
77
+ &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
78
+ &quot;dart.analysis.tool.window.visible&quot;: &quot;false&quot;,
79
+ &quot;last_opened_file_path&quot;: &quot;/home/fanqifeng/WebstormProjects/kfb-view&quot;,
80
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
81
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
82
+ &quot;nodejs_interpreter_path&quot;: &quot;/home/fanqifeng/.nvm/versions/node/v10.15.1/bin/node&quot;,
83
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
84
+ &quot;settings.editor.selected.configurable&quot;: &quot;settings.nodejs&quot;,
85
+ &quot;ts.external.directory.path&quot;: &quot;/opt/WebStorm/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external&quot;,
86
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
89
87
  }
90
- }]]></component>
88
+ }</component>
91
89
  <component name="RecentsManager">
92
90
  <key name="CopyFile.RECENT_KEYS">
93
91
  <recent name="$PROJECT_DIR$/src/image" />
@@ -293,35 +291,13 @@
293
291
  <workItem from="1657366256057" duration="578000" />
294
292
  <workItem from="1657519907711" duration="2848000" />
295
293
  <workItem from="1657527397247" duration="15173000" />
296
- <workItem from="1657587519037" duration="20026000" />
297
- </task>
298
- <task id="LOCAL-00033" summary="标签优化">
299
- <created>1631756759803</created>
300
- <option name="number" value="00033" />
301
- <option name="presentableId" value="LOCAL-00033" />
302
- <option name="project" value="LOCAL" />
303
- <updated>1631756759803</updated>
304
- </task>
305
- <task id="LOCAL-00034" summary="标签优化">
306
- <created>1631757323462</created>
307
- <option name="number" value="00034" />
308
- <option name="presentableId" value="LOCAL-00034" />
309
- <option name="project" value="LOCAL" />
310
- <updated>1631757323462</updated>
311
- </task>
312
- <task id="LOCAL-00035" summary="2.1.1">
313
- <created>1631758578474</created>
314
- <option name="number" value="00035" />
315
- <option name="presentableId" value="LOCAL-00035" />
316
- <option name="project" value="LOCAL" />
317
- <updated>1631758578474</updated>
318
- </task>
319
- <task id="LOCAL-00036" summary="eslint">
320
- <created>1631760254126</created>
321
- <option name="number" value="00036" />
322
- <option name="presentableId" value="LOCAL-00036" />
323
- <option name="project" value="LOCAL" />
324
- <updated>1631760254126</updated>
294
+ <workItem from="1657587519037" duration="20593000" />
295
+ <workItem from="1657785384118" duration="336000" />
296
+ <workItem from="1658133724686" duration="5036000" />
297
+ <workItem from="1658365477621" duration="2695000" />
298
+ <workItem from="1658371298489" duration="3932000" />
299
+ <workItem from="1658393509298" duration="2844000" />
300
+ <workItem from="1658398367362" duration="819000" />
325
301
  </task>
326
302
  <task id="LOCAL-00037" summary="Curve is obsolete. Please use polygon instead">
327
303
  <created>1631760521355</created>
@@ -638,7 +614,35 @@
638
614
  <option name="project" value="LOCAL" />
639
615
  <updated>1657612318447</updated>
640
616
  </task>
641
- <option name="localTasksCounter" value="82" />
617
+ <task id="LOCAL-00082" summary="2.2.1">
618
+ <created>1657612343466</created>
619
+ <option name="number" value="00082" />
620
+ <option name="presentableId" value="LOCAL-00082" />
621
+ <option name="project" value="LOCAL" />
622
+ <updated>1657612343466</updated>
623
+ </task>
624
+ <task id="LOCAL-00083" summary="index.js">
625
+ <created>1657785699795</created>
626
+ <option name="number" value="00083" />
627
+ <option name="presentableId" value="LOCAL-00083" />
628
+ <option name="project" value="LOCAL" />
629
+ <updated>1657785699797</updated>
630
+ </task>
631
+ <task id="LOCAL-00084" summary="导航轨迹显示">
632
+ <created>1658394875542</created>
633
+ <option name="number" value="00084" />
634
+ <option name="presentableId" value="LOCAL-00084" />
635
+ <option name="project" value="LOCAL" />
636
+ <updated>1658394875543</updated>
637
+ </task>
638
+ <task id="LOCAL-00085" summary="刻度线显示">
639
+ <created>1658398987159</created>
640
+ <option name="number" value="00085" />
641
+ <option name="presentableId" value="LOCAL-00085" />
642
+ <option name="project" value="LOCAL" />
643
+ <updated>1658398987163</updated>
644
+ </task>
645
+ <option name="localTasksCounter" value="86" />
642
646
  <servers />
643
647
  </component>
644
648
  <component name="TypeScriptGeneratedFilesManager">
@@ -680,10 +684,6 @@
680
684
  <component name="VcsManagerConfiguration">
681
685
  <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
682
686
  <option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
683
- <MESSAGE value="组合框异常" />
684
- <MESSAGE value="2.1.14" />
685
- <MESSAGE value="闭合区域" />
686
- <MESSAGE value="2.1.15" />
687
687
  <MESSAGE value="闭合曲线" />
688
688
  <MESSAGE value="2.1.16" />
689
689
  <MESSAGE value="优化加载速度" />
@@ -705,7 +705,11 @@
705
705
  <MESSAGE value="2.20.0" />
706
706
  <MESSAGE value="2.2.0" />
707
707
  <MESSAGE value="加载速度优化" />
708
- <option name="LAST_COMMIT_MESSAGE" value="加载速度优化" />
708
+ <MESSAGE value="2.2.1" />
709
+ <MESSAGE value="index.js" />
710
+ <MESSAGE value="导航轨迹显示" />
711
+ <MESSAGE value="刻度线显示" />
712
+ <option name="LAST_COMMIT_MESSAGE" value="刻度线显示" />
709
713
  <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
710
714
  </component>
711
715
  <component name="XSLT-Support.FileAssociations.UIState">
package/example/index.js CHANGED
@@ -40,16 +40,20 @@ instance.get(`/slide/info?file=${fileName}`).then(({data}) => {
40
40
  ROI: false,
41
41
  },
42
42
  graduation: {
43
- right: 30,
43
+ left: 30,
44
+ bottom: 10,
44
45
  },
45
46
  navigator: {
46
47
  disabled: false,
47
- height: 200,
48
48
  style: 'right: 0;top: 0',
49
49
  thumbnail: `/api/slide/getImage?file=${fileName}&type=thumbnail`,
50
- vestige: true,
50
+ scale: data.scanScale,
51
51
  vestigeZoom: .1,
52
52
  },
53
+ pxConversion: {
54
+ unit: 'um',
55
+ imageCapRes: data.imageCapRes,
56
+ },
53
57
  openSeadragonOptions: {
54
58
  maxZoomLevel: data.scanScale * 10,
55
59
  // imageLoaderLimit: 1,
@@ -182,6 +186,11 @@ instance.get(`/slide/info?file=${fileName}`).then(({data}) => {
182
186
  /* kv.board.startDraw({
183
187
  tool: KfbView.marks.POLYGON,
184
188
  });*/
189
+ kv.viewer.addHandler('zoom', (res) => {
190
+ const zoom = kv.viewer.viewport.viewportToImageZoom(res.zoom) *
191
+ kv.$options.scale;
192
+ // console.log(zoom.toFixed(2) / 1);
193
+ });
185
194
  console.log(kv);
186
195
  let list = [];
187
196
  document.querySelector('#a').onchange = debounce(changeRange, 500);
@@ -320,7 +329,8 @@ instance.get(`/slide/info?file=${fileName}`).then(({data}) => {
320
329
  setTimeout(() => {
321
330
  // kv.destroy();
322
331
  }, 6000);
323
- initLabels();
332
+
333
+ // initLabels();
324
334
 
325
335
  function initLabels() {
326
336
  const labels = [];