kfb-view 2.1.15 → 2.1.18

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.
@@ -37,10 +37,8 @@
37
37
  </component>
38
38
  <component name="ChangeListManager">
39
39
  <list default="true" id="55024232-8108-4dc9-9bd3-0fd2aa2f34f8" name="Default Changelist" comment="">
40
- <change beforePath="$PROJECT_DIR$/example/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/example/index.js" afterDir="false" />
40
+ <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
41
41
  <change beforePath="$PROJECT_DIR$/src/components/shape/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/shape/index.js" afterDir="false" />
42
- <change beforePath="$PROJECT_DIR$/src/tool/Ellipse.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/tool/Ellipse.js" afterDir="false" />
43
- <change beforePath="$PROJECT_DIR$/src/tool/Rectangle.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/tool/Rectangle.js" afterDir="false" />
44
42
  </list>
45
43
  <option name="SHOW_DIALOG" value="false" />
46
44
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -75,20 +73,20 @@
75
73
  <option name="hideEmptyMiddlePackages" value="true" />
76
74
  <option name="showLibraryContents" value="true" />
77
75
  </component>
78
- <component name="PropertiesComponent"><![CDATA[{
79
- "keyToString": {
80
- "DefaultHtmlFileTemplate": "HTML File",
81
- "WebServerToolWindowFactoryState": "false",
82
- "dart.analysis.tool.window.visible": "false",
83
- "last_opened_file_path": "/home/fanqifeng/WebstormProjects/kfb-view",
84
- "node.js.detected.package.eslint": "true",
85
- "node.js.selected.package.eslint": "(autodetect)",
86
- "nodejs_interpreter_path": "/home/fanqifeng/.nvm/versions/node/v10.15.1/bin/node",
87
- "nodejs_package_manager_path": "npm",
88
- "settings.editor.selected.configurable": "settings.nodejs",
89
- "vue.rearranger.settings.migration": "true"
76
+ <component name="PropertiesComponent">{
77
+ &quot;keyToString&quot;: {
78
+ &quot;DefaultHtmlFileTemplate&quot;: &quot;HTML File&quot;,
79
+ &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
80
+ &quot;dart.analysis.tool.window.visible&quot;: &quot;false&quot;,
81
+ &quot;last_opened_file_path&quot;: &quot;/home/fanqifeng/WebstormProjects/kfb-view&quot;,
82
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
83
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
84
+ &quot;nodejs_interpreter_path&quot;: &quot;/home/fanqifeng/.nvm/versions/node/v10.15.1/bin/node&quot;,
85
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
86
+ &quot;settings.editor.selected.configurable&quot;: &quot;settings.nodejs&quot;,
87
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
90
88
  }
91
- }]]></component>
89
+ }</component>
92
90
  <component name="RecentsManager">
93
91
  <key name="CopyFile.RECENT_KEYS">
94
92
  <recent name="$PROJECT_DIR$/src/image" />
@@ -105,7 +103,7 @@
105
103
  <recent name="$PROJECT_DIR$/src/components" />
106
104
  </key>
107
105
  </component>
108
- <component name="RunManager" selected="npm.build:lib">
106
+ <component name="RunManager" selected="npm.server:hot">
109
107
  <configuration name="build:lib" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
110
108
  <package-json value="$PROJECT_DIR$/package.json" />
111
109
  <command value="run" />
@@ -168,8 +166,8 @@
168
166
  </list>
169
167
  <recent_temporary>
170
168
  <list>
171
- <item itemvalue="npm.build:lib" />
172
169
  <item itemvalue="npm.server:hot" />
170
+ <item itemvalue="npm.build:lib" />
173
171
  <item itemvalue="npm.clean:lib" />
174
172
  <item itemvalue="npm.server" />
175
173
  <item itemvalue="npm.build:prod" />
@@ -284,35 +282,11 @@
284
282
  <workItem from="1650589238076" duration="604000" />
285
283
  <workItem from="1650594995272" duration="693000" />
286
284
  <workItem from="1650933544613" duration="12971000" />
287
- <workItem from="1650955699322" duration="7243000" />
288
- </task>
289
- <task id="LOCAL-00011" summary="修改">
290
- <created>1605162932797</created>
291
- <option name="number" value="00011" />
292
- <option name="presentableId" value="LOCAL-00011" />
293
- <option name="project" value="LOCAL" />
294
- <updated>1605162932798</updated>
295
- </task>
296
- <task id="LOCAL-00012" summary="增加DOT方法">
297
- <created>1607062988217</created>
298
- <option name="number" value="00012" />
299
- <option name="presentableId" value="LOCAL-00012" />
300
- <option name="project" value="LOCAL" />
301
- <updated>1607062988217</updated>
302
- </task>
303
- <task id="LOCAL-00013" summary="dot缩放">
304
- <created>1607069786469</created>
305
- <option name="number" value="00013" />
306
- <option name="presentableId" value="LOCAL-00013" />
307
- <option name="project" value="LOCAL" />
308
- <updated>1607069786469</updated>
309
- </task>
310
- <task id="LOCAL-00014" summary="键盘事件">
311
- <created>1607071473692</created>
312
- <option name="number" value="00014" />
313
- <option name="presentableId" value="LOCAL-00014" />
314
- <option name="project" value="LOCAL" />
315
- <updated>1607071473692</updated>
285
+ <workItem from="1650955699322" duration="15593000" />
286
+ <workItem from="1651017904143" duration="11822000" />
287
+ <workItem from="1651131294475" duration="3438000" />
288
+ <workItem from="1651749414024" duration="8391000" />
289
+ <workItem from="1657096942600" duration="240000" />
316
290
  </task>
317
291
  <task id="LOCAL-00015" summary="绘制实心点空心点">
318
292
  <created>1607074652376</created>
@@ -629,7 +603,35 @@
629
603
  <option name="project" value="LOCAL" />
630
604
  <updated>1650965886754</updated>
631
605
  </task>
632
- <option name="localTasksCounter" value="60" />
606
+ <task id="LOCAL-00060" summary="闭合曲线">
607
+ <created>1650966647247</created>
608
+ <option name="number" value="00060" />
609
+ <option name="presentableId" value="LOCAL-00060" />
610
+ <option name="project" value="LOCAL" />
611
+ <updated>1650966647247</updated>
612
+ </task>
613
+ <task id="LOCAL-00061" summary="2.1.16">
614
+ <created>1650967323558</created>
615
+ <option name="number" value="00061" />
616
+ <option name="presentableId" value="LOCAL-00061" />
617
+ <option name="project" value="LOCAL" />
618
+ <updated>1650967323558</updated>
619
+ </task>
620
+ <task id="LOCAL-00062" summary="优化加载速度">
621
+ <created>1651037514502</created>
622
+ <option name="number" value="00062" />
623
+ <option name="presentableId" value="LOCAL-00062" />
624
+ <option name="project" value="LOCAL" />
625
+ <updated>1651037514503</updated>
626
+ </task>
627
+ <task id="LOCAL-00063" summary="2.1.17">
628
+ <created>1651037523261</created>
629
+ <option name="number" value="00063" />
630
+ <option name="presentableId" value="LOCAL-00063" />
631
+ <option name="project" value="LOCAL" />
632
+ <updated>1651037523261</updated>
633
+ </task>
634
+ <option name="localTasksCounter" value="64" />
633
635
  <servers />
634
636
  </component>
635
637
  <component name="TypeScriptGeneratedFilesManager">
@@ -671,10 +673,6 @@
671
673
  <component name="VcsManagerConfiguration">
672
674
  <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
673
675
  <option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
674
- <MESSAGE value="2.1.1" />
675
- <MESSAGE value="eslint" />
676
- <MESSAGE value="Curve is obsolete. Please use polygon instead" />
677
- <MESSAGE value="优化调整" />
678
676
  <MESSAGE value="2.1.2" />
679
677
  <MESSAGE value="修复navigator中图片宽高一致时不显示" />
680
678
  <MESSAGE value="2.1.3" />
@@ -696,7 +694,11 @@
696
694
  <MESSAGE value="2.1.14" />
697
695
  <MESSAGE value="闭合区域" />
698
696
  <MESSAGE value="2.1.15" />
699
- <option name="LAST_COMMIT_MESSAGE" value="2.1.15" />
697
+ <MESSAGE value="闭合曲线" />
698
+ <MESSAGE value="2.1.16" />
699
+ <MESSAGE value="优化加载速度" />
700
+ <MESSAGE value="2.1.17" />
701
+ <option name="LAST_COMMIT_MESSAGE" value="2.1.17" />
700
702
  <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
701
703
  </component>
702
704
  <component name="XSLT-Support.FileAssociations.UIState">
package/example/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import {KfbView, hslToRgb, rgbToHsl, cacheGammaTable} from '../src';
2
2
  import axios from 'axios';
3
- import {EVENT_TAILORING_SCREENSHOT} from '../src/const/event';
4
3
 
5
4
  const fileName = '/upload/large_file/last/2022/04/26/d31a31bf1ae5b73fca63f72e2affc879/胃镜1.kfb';
6
5
 
@@ -313,6 +312,31 @@ instance.get(`/slide/info?file=${fileName}`).then(({data}) => {
313
312
  setTimeout(() => {
314
313
  // kv.destroy();
315
314
  }, 6000);
315
+ initLabels();
316
+
317
+ function initLabels() {
318
+ const labels = [];
319
+ for (let i = 0; i < 10000; i++) {
320
+ const point = {
321
+ x: data.width / 2 + Math.random() * 10000,
322
+ y: data.height / 2 + Math.random() * 10000,
323
+ };
324
+ const label = {
325
+ // fillStyle: 'rgba(2, 122, 255, 1)',
326
+ lineWidth: 6,
327
+ points: [point, point],
328
+ scale: 0.1,
329
+ strokeStyle: '#027AFF',
330
+ tool: 'Dot',
331
+ };
332
+ labels.push(label);
333
+ }
334
+ kv.initLabelList(labels);
335
+ }
336
+
337
+ document.querySelector('#reDraw').addEventListener('click', () => {
338
+ initLabels();
339
+ });
316
340
  });
317
341
 
318
342
  /**