kfb-view 2.2.0 → 2.2.1
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.
- package/.idea/workspace.xml +43 -43
- package/example/index.js +5 -4
- package/lib/kfb-view.js +1 -1
- package/package.json +1 -1
- package/src/components/common/common.js +12 -22
- package/src/components/shape/index.js +8 -4
package/.idea/workspace.xml
CHANGED
|
@@ -73,21 +73,21 @@
|
|
|
73
73
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
74
74
|
<option name="showLibraryContents" value="true" />
|
|
75
75
|
</component>
|
|
76
|
-
<component name="PropertiesComponent"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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"
|
|
89
89
|
}
|
|
90
|
-
}
|
|
90
|
+
}]]></component>
|
|
91
91
|
<component name="RecentsManager">
|
|
92
92
|
<key name="CopyFile.RECENT_KEYS">
|
|
93
93
|
<recent name="$PROJECT_DIR$/src/image" />
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
<recent name="$PROJECT_DIR$/src/components" />
|
|
105
105
|
</key>
|
|
106
106
|
</component>
|
|
107
|
-
<component name="RunManager" selected="npm.
|
|
107
|
+
<component name="RunManager" selected="npm.build:lib">
|
|
108
108
|
<configuration name="build:lib" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
|
|
109
109
|
<package-json value="$PROJECT_DIR$/package.json" />
|
|
110
110
|
<command value="run" />
|
|
@@ -167,8 +167,8 @@
|
|
|
167
167
|
</list>
|
|
168
168
|
<recent_temporary>
|
|
169
169
|
<list>
|
|
170
|
-
<item itemvalue="npm.server:hot" />
|
|
171
170
|
<item itemvalue="npm.build:lib" />
|
|
171
|
+
<item itemvalue="npm.server:hot" />
|
|
172
172
|
<item itemvalue="npm.clean:lib" />
|
|
173
173
|
<item itemvalue="npm.server" />
|
|
174
174
|
<item itemvalue="npm.build:prod" />
|
|
@@ -293,28 +293,7 @@
|
|
|
293
293
|
<workItem from="1657366256057" duration="578000" />
|
|
294
294
|
<workItem from="1657519907711" duration="2848000" />
|
|
295
295
|
<workItem from="1657527397247" duration="15173000" />
|
|
296
|
-
<workItem from="1657587519037" duration="
|
|
297
|
-
</task>
|
|
298
|
-
<task id="LOCAL-00030" summary="优化Curve标注,增加组合">
|
|
299
|
-
<created>1631623386433</created>
|
|
300
|
-
<option name="number" value="00030" />
|
|
301
|
-
<option name="presentableId" value="LOCAL-00030" />
|
|
302
|
-
<option name="project" value="LOCAL" />
|
|
303
|
-
<updated>1631623386433</updated>
|
|
304
|
-
</task>
|
|
305
|
-
<task id="LOCAL-00031" summary="组合标注增加ellipse和rect">
|
|
306
|
-
<created>1631694555711</created>
|
|
307
|
-
<option name="number" value="00031" />
|
|
308
|
-
<option name="presentableId" value="LOCAL-00031" />
|
|
309
|
-
<option name="project" value="LOCAL" />
|
|
310
|
-
<updated>1631694555711</updated>
|
|
311
|
-
</task>
|
|
312
|
-
<task id="LOCAL-00032" summary="2.0.17">
|
|
313
|
-
<created>1631694823499</created>
|
|
314
|
-
<option name="number" value="00032" />
|
|
315
|
-
<option name="presentableId" value="LOCAL-00032" />
|
|
316
|
-
<option name="project" value="LOCAL" />
|
|
317
|
-
<updated>1631694823499</updated>
|
|
296
|
+
<workItem from="1657587519037" duration="20026000" />
|
|
318
297
|
</task>
|
|
319
298
|
<task id="LOCAL-00033" summary="标签优化">
|
|
320
299
|
<created>1631756759803</created>
|
|
@@ -638,7 +617,28 @@
|
|
|
638
617
|
<option name="project" value="LOCAL" />
|
|
639
618
|
<updated>1657607397044</updated>
|
|
640
619
|
</task>
|
|
641
|
-
<
|
|
620
|
+
<task id="LOCAL-00079" summary="2.20.0">
|
|
621
|
+
<created>1657607434015</created>
|
|
622
|
+
<option name="number" value="00079" />
|
|
623
|
+
<option name="presentableId" value="LOCAL-00079" />
|
|
624
|
+
<option name="project" value="LOCAL" />
|
|
625
|
+
<updated>1657607434015</updated>
|
|
626
|
+
</task>
|
|
627
|
+
<task id="LOCAL-00080" summary="2.2.0">
|
|
628
|
+
<created>1657607449348</created>
|
|
629
|
+
<option name="number" value="00080" />
|
|
630
|
+
<option name="presentableId" value="LOCAL-00080" />
|
|
631
|
+
<option name="project" value="LOCAL" />
|
|
632
|
+
<updated>1657607449348</updated>
|
|
633
|
+
</task>
|
|
634
|
+
<task id="LOCAL-00081" summary="加载速度优化">
|
|
635
|
+
<created>1657612318446</created>
|
|
636
|
+
<option name="number" value="00081" />
|
|
637
|
+
<option name="presentableId" value="LOCAL-00081" />
|
|
638
|
+
<option name="project" value="LOCAL" />
|
|
639
|
+
<updated>1657612318447</updated>
|
|
640
|
+
</task>
|
|
641
|
+
<option name="localTasksCounter" value="82" />
|
|
642
642
|
<servers />
|
|
643
643
|
</component>
|
|
644
644
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -680,9 +680,6 @@
|
|
|
680
680
|
<component name="VcsManagerConfiguration">
|
|
681
681
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
682
682
|
<option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
|
|
683
|
-
<MESSAGE value="2.1.12 导出OpenSeadragon" />
|
|
684
|
-
<MESSAGE value="重写绘制逻辑" />
|
|
685
|
-
<MESSAGE value="package.json" />
|
|
686
683
|
<MESSAGE value="组合框异常" />
|
|
687
684
|
<MESSAGE value="2.1.14" />
|
|
688
685
|
<MESSAGE value="闭合区域" />
|
|
@@ -705,7 +702,10 @@
|
|
|
705
702
|
<MESSAGE value="优化选中点" />
|
|
706
703
|
<MESSAGE value="优化标注图形显示,一次最多绘制5000个点,超过的标注延迟加载" />
|
|
707
704
|
<MESSAGE value="键盘事件更新,delete可删除曲线标注点,双击可添加曲线标注点" />
|
|
708
|
-
<
|
|
705
|
+
<MESSAGE value="2.20.0" />
|
|
706
|
+
<MESSAGE value="2.2.0" />
|
|
707
|
+
<MESSAGE value="加载速度优化" />
|
|
708
|
+
<option name="LAST_COMMIT_MESSAGE" value="加载速度优化" />
|
|
709
709
|
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
|
|
710
710
|
</component>
|
|
711
711
|
<component name="XSLT-Support.FileAssociations.UIState">
|
package/example/index.js
CHANGED
|
@@ -324,17 +324,18 @@ instance.get(`/slide/info?file=${fileName}`).then(({data}) => {
|
|
|
324
324
|
|
|
325
325
|
function initLabels() {
|
|
326
326
|
const labels = [];
|
|
327
|
-
|
|
327
|
+
const colors = ['#027AFF', '#f56c6c'];
|
|
328
|
+
for (let i = 0; i < 50000; i++) {
|
|
328
329
|
const point = {
|
|
329
|
-
x:
|
|
330
|
-
y:
|
|
330
|
+
x: Math.random() * data.width,
|
|
331
|
+
y: Math.random() * data.height,
|
|
331
332
|
};
|
|
332
333
|
const label = {
|
|
333
334
|
// fillStyle: 'rgba(2, 122, 255, 1)',
|
|
334
335
|
lineWidth: 6,
|
|
335
336
|
points: [point, point],
|
|
336
337
|
scale: 0.1,
|
|
337
|
-
strokeStyle:
|
|
338
|
+
strokeStyle: Math.random() > .5 ? colors[0] : colors[1],
|
|
338
339
|
tool: 'Dot',
|
|
339
340
|
move: false,
|
|
340
341
|
};
|