kfb-view 2.1.12 → 2.1.13
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 +55 -39
- package/example/index.js +2 -1
- package/lib/kfb-view.js +1 -1
- package/package.json +1 -1
- package/src/components/board/index.js +19 -2
- package/src/components/rotation/index.js +2 -0
- package/src/components/shape/index.js +39 -8
- package/src/model/label.model.js +8 -3
- package/src/tool/Arrow.js +2 -9
- package/src/tool/Bilateral.js +2 -9
- package/src/tool/Brush.js +14 -8
- package/src/tool/Combination.js +5 -1
- package/src/tool/Dot.js +3 -5
- package/src/tool/Ellipse.js +6 -14
- package/src/tool/Flag.js +2 -8
- package/src/tool/Font.js +2 -3
- package/src/tool/Line.js +2 -4
- package/src/tool/Polygon.js +6 -23
- package/src/tool/Rectangle.js +5 -14
- package/src/tool/Star.js +3 -6
- package/src/util/canvas.js +0 -4
- package/test.html +315 -0
package/.idea/workspace.xml
CHANGED
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
<component name="ChangeListManager">
|
|
39
39
|
<list default="true" id="55024232-8108-4dc9-9bd3-0fd2aa2f34f8" name="Default Changelist" comment="">
|
|
40
40
|
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
41
|
-
<change beforePath="$PROJECT_DIR$/src/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.js" afterDir="false" />
|
|
42
41
|
</list>
|
|
43
42
|
<option name="SHOW_DIALOG" value="false" />
|
|
44
43
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -50,6 +49,7 @@
|
|
|
50
49
|
<list>
|
|
51
50
|
<option value="CSS File" />
|
|
52
51
|
<option value="JavaScript File" />
|
|
52
|
+
<option value="HTML File" />
|
|
53
53
|
</list>
|
|
54
54
|
</option>
|
|
55
55
|
</component>
|
|
@@ -72,25 +72,21 @@
|
|
|
72
72
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
73
73
|
<option name="showLibraryContents" value="true" />
|
|
74
74
|
</component>
|
|
75
|
-
<component name="PropertiesComponent"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
<component name="PropertiesComponent"><![CDATA[{
|
|
76
|
+
"keyToString": {
|
|
77
|
+
"DefaultHtmlFileTemplate": "HTML File",
|
|
78
|
+
"WebServerToolWindowFactoryState": "false",
|
|
79
|
+
"dart.analysis.tool.window.visible": "false",
|
|
80
|
+
"last_opened_file_path": "/home/fanqifeng/WebstormProjects/pis/stable",
|
|
81
|
+
"node.js.detected.package.eslint": "true",
|
|
82
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
83
|
+
"nodejs_interpreter_path": "/home/fanqifeng/.nvm/versions/node/v10.15.1/bin/node",
|
|
84
|
+
"nodejs_package_manager_path": "npm",
|
|
85
|
+
"settings.editor.selected.configurable": "settings.nodejs",
|
|
86
|
+
"vue.rearranger.settings.migration": "true"
|
|
84
87
|
}
|
|
85
|
-
}
|
|
88
|
+
}]]></component>
|
|
86
89
|
<component name="RecentsManager">
|
|
87
|
-
<key name="MoveFile.RECENT_KEYS">
|
|
88
|
-
<recent name="$PROJECT_DIR$/src" />
|
|
89
|
-
<recent name="$PROJECT_DIR$/example" />
|
|
90
|
-
<recent name="$PROJECT_DIR$/src/tool" />
|
|
91
|
-
<recent name="$PROJECT_DIR$" />
|
|
92
|
-
<recent name="$PROJECT_DIR$/src/components" />
|
|
93
|
-
</key>
|
|
94
90
|
<key name="CopyFile.RECENT_KEYS">
|
|
95
91
|
<recent name="$PROJECT_DIR$/src/image" />
|
|
96
92
|
<recent name="$PROJECT_DIR$/src/plugin" />
|
|
@@ -98,8 +94,15 @@
|
|
|
98
94
|
<recent name="$PROJECT_DIR$/src/components/cache" />
|
|
99
95
|
<recent name="$PROJECT_DIR$/src/components/rotation" />
|
|
100
96
|
</key>
|
|
97
|
+
<key name="MoveFile.RECENT_KEYS">
|
|
98
|
+
<recent name="$PROJECT_DIR$" />
|
|
99
|
+
<recent name="$PROJECT_DIR$/src" />
|
|
100
|
+
<recent name="$PROJECT_DIR$/example" />
|
|
101
|
+
<recent name="$PROJECT_DIR$/src/tool" />
|
|
102
|
+
<recent name="$PROJECT_DIR$/src/components" />
|
|
103
|
+
</key>
|
|
101
104
|
</component>
|
|
102
|
-
<component name="RunManager" selected="npm.
|
|
105
|
+
<component name="RunManager" selected="npm.server:hot">
|
|
103
106
|
<configuration name="build:lib" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
|
|
104
107
|
<package-json value="$PROJECT_DIR$/package.json" />
|
|
105
108
|
<command value="run" />
|
|
@@ -162,11 +165,11 @@
|
|
|
162
165
|
</list>
|
|
163
166
|
<recent_temporary>
|
|
164
167
|
<list>
|
|
168
|
+
<item itemvalue="npm.server:hot" />
|
|
165
169
|
<item itemvalue="npm.build:lib" />
|
|
166
170
|
<item itemvalue="npm.clean:lib" />
|
|
167
171
|
<item itemvalue="npm.server" />
|
|
168
172
|
<item itemvalue="npm.build:prod" />
|
|
169
|
-
<item itemvalue="npm.server:hot" />
|
|
170
173
|
</list>
|
|
171
174
|
</recent_temporary>
|
|
172
175
|
</component>
|
|
@@ -264,21 +267,20 @@
|
|
|
264
267
|
<workItem from="1649210756779" duration="440000" />
|
|
265
268
|
<workItem from="1649917532637" duration="802000" />
|
|
266
269
|
<workItem from="1649923434423" duration="255000" />
|
|
267
|
-
<workItem from="1649923736794" duration="
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
<
|
|
271
|
-
<
|
|
272
|
-
<
|
|
273
|
-
<
|
|
274
|
-
<
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
<
|
|
278
|
-
<
|
|
279
|
-
<
|
|
280
|
-
<
|
|
281
|
-
<updated>1601112505680</updated>
|
|
270
|
+
<workItem from="1649923736794" duration="744000" />
|
|
271
|
+
<workItem from="1650519575562" duration="1826000" />
|
|
272
|
+
<workItem from="1650521431705" duration="2841000" />
|
|
273
|
+
<workItem from="1650527477296" duration="1125000" />
|
|
274
|
+
<workItem from="1650529092962" duration="1112000" />
|
|
275
|
+
<workItem from="1650530390912" duration="1348000" />
|
|
276
|
+
<workItem from="1650531786738" duration="2653000" />
|
|
277
|
+
<workItem from="1650538093995" duration="384000" />
|
|
278
|
+
<workItem from="1650541568847" duration="346000" />
|
|
279
|
+
<workItem from="1650541990494" duration="598000" />
|
|
280
|
+
<workItem from="1650586441903" duration="1432000" />
|
|
281
|
+
<workItem from="1650589238076" duration="604000" />
|
|
282
|
+
<workItem from="1650594995272" duration="693000" />
|
|
283
|
+
<workItem from="1650933544613" duration="8851000" />
|
|
282
284
|
</task>
|
|
283
285
|
<task id="LOCAL-00006" summary="area完善">
|
|
284
286
|
<created>1601372334068</created>
|
|
@@ -609,7 +611,21 @@
|
|
|
609
611
|
<option name="project" value="LOCAL" />
|
|
610
612
|
<updated>1649917728743</updated>
|
|
611
613
|
</task>
|
|
612
|
-
<
|
|
614
|
+
<task id="LOCAL-00053" summary="2.1.12 导出OpenSeadragon">
|
|
615
|
+
<created>1649924762254</created>
|
|
616
|
+
<option name="number" value="00053" />
|
|
617
|
+
<option name="presentableId" value="LOCAL-00053" />
|
|
618
|
+
<option name="project" value="LOCAL" />
|
|
619
|
+
<updated>1649924762255</updated>
|
|
620
|
+
</task>
|
|
621
|
+
<task id="LOCAL-00054" summary="重写绘制逻辑">
|
|
622
|
+
<created>1650950240006</created>
|
|
623
|
+
<option name="number" value="00054" />
|
|
624
|
+
<option name="presentableId" value="LOCAL-00054" />
|
|
625
|
+
<option name="project" value="LOCAL" />
|
|
626
|
+
<updated>1650950240006</updated>
|
|
627
|
+
</task>
|
|
628
|
+
<option name="localTasksCounter" value="55" />
|
|
613
629
|
<servers />
|
|
614
630
|
</component>
|
|
615
631
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -651,8 +667,6 @@
|
|
|
651
667
|
<component name="VcsManagerConfiguration">
|
|
652
668
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
653
669
|
<option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
|
|
654
|
-
<MESSAGE value="优化代码结构" />
|
|
655
|
-
<MESSAGE value="2.0.16" />
|
|
656
670
|
<MESSAGE value="优化Curve标注,增加是否是闭合曲线参数" />
|
|
657
671
|
<MESSAGE value="优化Curve标注,增加组合" />
|
|
658
672
|
<MESSAGE value="组合标注增加ellipse和rect" />
|
|
@@ -676,7 +690,9 @@
|
|
|
676
690
|
<MESSAGE value="增加图像处理操作" />
|
|
677
691
|
<MESSAGE value="2.1.10" />
|
|
678
692
|
<MESSAGE value="2.1.11 截图优化" />
|
|
679
|
-
<
|
|
693
|
+
<MESSAGE value="2.1.12 导出OpenSeadragon" />
|
|
694
|
+
<MESSAGE value="重写绘制逻辑" />
|
|
695
|
+
<option name="LAST_COMMIT_MESSAGE" value="重写绘制逻辑" />
|
|
680
696
|
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
|
|
681
697
|
</component>
|
|
682
698
|
<component name="XSLT-Support.FileAssociations.UIState">
|
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_TAILORING_SCREENSHOT} from '../src/const/event';
|
|
4
4
|
|
|
5
|
-
const fileName = '/upload/large_file/last/2022/
|
|
5
|
+
const fileName = '/upload/large_file/last/2022/04/26/d31a31bf1ae5b73fca63f72e2affc879/胃镜1.kfb';
|
|
6
6
|
|
|
7
7
|
const instance = axios.create({
|
|
8
8
|
baseURL: '/api',
|
|
@@ -210,6 +210,7 @@ instance.get(`/slide/info?file=${fileName}`).then(({data}) => {
|
|
|
210
210
|
rect.onclick = () => {
|
|
211
211
|
kv.board.startDraw({
|
|
212
212
|
tool: KfbView.marks.RECTANGLE,
|
|
213
|
+
lineWidth: 10,
|
|
213
214
|
isROI: true,
|
|
214
215
|
once: true,
|
|
215
216
|
measure: false,
|