kfb-view 2.1.16 → 2.1.17

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,7 +37,16 @@
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.html" beforeDir="false" afterPath="$PROJECT_DIR$/example/index.html" afterDir="false" />
41
+ <change beforePath="$PROJECT_DIR$/example/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/example/index.js" afterDir="false" />
40
42
  <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
43
+ <change beforePath="$PROJECT_DIR$/src/components/common/common.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/common/common.js" afterDir="false" />
44
+ <change beforePath="$PROJECT_DIR$/src/components/shape/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/shape/index.js" afterDir="false" />
45
+ <change beforePath="$PROJECT_DIR$/src/model/label.model.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/model/label.model.js" afterDir="false" />
46
+ <change beforePath="$PROJECT_DIR$/src/tool/Brush.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/tool/Brush.js" afterDir="false" />
47
+ <change beforePath="$PROJECT_DIR$/src/tool/Font.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/tool/Font.js" afterDir="false" />
48
+ <change beforePath="$PROJECT_DIR$/src/tool/Star.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/tool/Star.js" afterDir="false" />
49
+ <change beforePath="$PROJECT_DIR$/src/util/canvas.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/util/canvas.js" afterDir="false" />
41
50
  <change beforePath="$PROJECT_DIR$/src/view.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/view.js" afterDir="false" />
42
51
  </list>
43
52
  <option name="SHOW_DIALOG" value="false" />
@@ -78,7 +87,7 @@
78
87
  "DefaultHtmlFileTemplate": "HTML File",
79
88
  "WebServerToolWindowFactoryState": "false",
80
89
  "dart.analysis.tool.window.visible": "false",
81
- "last_opened_file_path": "/home/fanqifeng/WebstormProjects/kfb-view",
90
+ "last_opened_file_path": "/home/fanqifeng/WebstormProjects/kfb_view_example",
82
91
  "node.js.detected.package.eslint": "true",
83
92
  "node.js.selected.package.eslint": "(autodetect)",
84
93
  "nodejs_interpreter_path": "/home/fanqifeng/.nvm/versions/node/v10.15.1/bin/node",
@@ -166,8 +175,8 @@
166
175
  </list>
167
176
  <recent_temporary>
168
177
  <list>
169
- <item itemvalue="npm.build:lib" />
170
178
  <item itemvalue="npm.server:hot" />
179
+ <item itemvalue="npm.build:lib" />
171
180
  <item itemvalue="npm.clean:lib" />
172
181
  <item itemvalue="npm.server" />
173
182
  <item itemvalue="npm.build:prod" />
@@ -282,14 +291,8 @@
282
291
  <workItem from="1650589238076" duration="604000" />
283
292
  <workItem from="1650594995272" duration="693000" />
284
293
  <workItem from="1650933544613" duration="12971000" />
285
- <workItem from="1650955699322" duration="7930000" />
286
- </task>
287
- <task id="LOCAL-00012" summary="增加DOT方法">
288
- <created>1607062988217</created>
289
- <option name="number" value="00012" />
290
- <option name="presentableId" value="LOCAL-00012" />
291
- <option name="project" value="LOCAL" />
292
- <updated>1607062988217</updated>
294
+ <workItem from="1650955699322" duration="15593000" />
295
+ <workItem from="1651017904143" duration="11080000" />
293
296
  </task>
294
297
  <task id="LOCAL-00013" summary="dot缩放">
295
298
  <created>1607069786469</created>
@@ -627,7 +630,14 @@
627
630
  <option name="project" value="LOCAL" />
628
631
  <updated>1650966647247</updated>
629
632
  </task>
630
- <option name="localTasksCounter" value="61" />
633
+ <task id="LOCAL-00061" summary="2.1.16">
634
+ <created>1650967323558</created>
635
+ <option name="number" value="00061" />
636
+ <option name="presentableId" value="LOCAL-00061" />
637
+ <option name="project" value="LOCAL" />
638
+ <updated>1650967323558</updated>
639
+ </task>
640
+ <option name="localTasksCounter" value="62" />
631
641
  <servers />
632
642
  </component>
633
643
  <component name="TypeScriptGeneratedFilesManager">
@@ -669,7 +679,6 @@
669
679
  <component name="VcsManagerConfiguration">
670
680
  <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
671
681
  <option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
672
- <MESSAGE value="eslint" />
673
682
  <MESSAGE value="Curve is obsolete. Please use polygon instead" />
674
683
  <MESSAGE value="优化调整" />
675
684
  <MESSAGE value="2.1.2" />
@@ -694,7 +703,8 @@
694
703
  <MESSAGE value="闭合区域" />
695
704
  <MESSAGE value="2.1.15" />
696
705
  <MESSAGE value="闭合曲线" />
697
- <option name="LAST_COMMIT_MESSAGE" value="闭合曲线" />
706
+ <MESSAGE value="2.1.16" />
707
+ <option name="LAST_COMMIT_MESSAGE" value="2.1.16" />
698
708
  <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
699
709
  </component>
700
710
  <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
  /**