kfb-view 3.0.2 → 3.0.4
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 +27 -22
- package/example/index.js +24 -21
- package/lib/kfb-view.js +1 -1
- package/package.json +1 -1
- package/src/components/navigator/index.js +15 -15
- package/src/components/tailoring/index.js +32 -4
- package/src/view.js +3 -0
package/.idea/workspace.xml
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<change beforePath="$PROJECT_DIR$/config/webpack.dev.conf.js" beforeDir="false" afterPath="$PROJECT_DIR$/config/webpack.dev.conf.js" afterDir="false" />
|
|
44
44
|
<change beforePath="$PROJECT_DIR$/example/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/example/index.js" afterDir="false" />
|
|
45
45
|
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
46
|
-
<change beforePath="$PROJECT_DIR$/src/components/
|
|
46
|
+
<change beforePath="$PROJECT_DIR$/src/components/navigator/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/navigator/index.js" afterDir="false" />
|
|
47
47
|
</list>
|
|
48
48
|
<option name="SHOW_DIALOG" value="false" />
|
|
49
49
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"Project.color": "4c401d",
|
|
86
86
|
"WebServerToolWindowFactoryState": "false",
|
|
87
87
|
"dart.analysis.tool.window.visible": "false",
|
|
88
|
+
"git-widget-placeholder": "master",
|
|
88
89
|
"last_opened_file_path": "/home/fanqifeng/WebstormProjects/kfb-view",
|
|
89
90
|
"node.js.detected.package.eslint": "true",
|
|
90
91
|
"node.js.detected.package.tslint": "true",
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
<recent name="$PROJECT_DIR$/src/tool" />
|
|
114
115
|
</key>
|
|
115
116
|
</component>
|
|
116
|
-
<component name="RunManager" selected="npm.
|
|
117
|
+
<component name="RunManager" selected="npm.server:hot">
|
|
117
118
|
<configuration name="build:lib" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
|
|
118
119
|
<package-json value="$PROJECT_DIR$/package.json" />
|
|
119
120
|
<command value="run" />
|
|
@@ -176,8 +177,8 @@
|
|
|
176
177
|
</list>
|
|
177
178
|
<recent_temporary>
|
|
178
179
|
<list>
|
|
179
|
-
<item itemvalue="npm.build:lib" />
|
|
180
180
|
<item itemvalue="npm.server:hot" />
|
|
181
|
+
<item itemvalue="npm.build:lib" />
|
|
181
182
|
<item itemvalue="npm.server" />
|
|
182
183
|
<item itemvalue="npm.clean:lib" />
|
|
183
184
|
<item itemvalue="npm.build:prod" />
|
|
@@ -410,21 +411,11 @@
|
|
|
410
411
|
<workItem from="1678926296962" duration="2385000" />
|
|
411
412
|
<workItem from="1679708561519" duration="550000" />
|
|
412
413
|
<workItem from="1679728741473" duration="161000" />
|
|
413
|
-
<workItem from="1680268962874" duration="
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
<
|
|
417
|
-
<
|
|
418
|
-
<option name="presentableId" value="LOCAL-00075" />
|
|
419
|
-
<option name="project" value="LOCAL" />
|
|
420
|
-
<updated>1657540107150</updated>
|
|
421
|
-
</task>
|
|
422
|
-
<task id="LOCAL-00076" summary="优化选中点">
|
|
423
|
-
<created>1657588323251</created>
|
|
424
|
-
<option name="number" value="00076" />
|
|
425
|
-
<option name="presentableId" value="LOCAL-00076" />
|
|
426
|
-
<option name="project" value="LOCAL" />
|
|
427
|
-
<updated>1657588323252</updated>
|
|
414
|
+
<workItem from="1680268962874" duration="1136000" />
|
|
415
|
+
<workItem from="1680271989452" duration="591000" />
|
|
416
|
+
<workItem from="1680437372638" duration="2994000" />
|
|
417
|
+
<workItem from="1680440411212" duration="49000" />
|
|
418
|
+
<workItem from="1680526343598" duration="695000" />
|
|
428
419
|
</task>
|
|
429
420
|
<task id="LOCAL-00077" summary="优化标注图形显示,一次最多绘制5000个点,超过的标注延迟加载">
|
|
430
421
|
<created>1657592781786</created>
|
|
@@ -755,7 +746,21 @@
|
|
|
755
746
|
<option name="project" value="LOCAL" />
|
|
756
747
|
<updated>1678929156803</updated>
|
|
757
748
|
</task>
|
|
758
|
-
<
|
|
749
|
+
<task id="LOCAL-00124" summary="build:3.0.2 截图图片格式自定义">
|
|
750
|
+
<created>1680269167145</created>
|
|
751
|
+
<option name="number" value="00124" />
|
|
752
|
+
<option name="presentableId" value="LOCAL-00124" />
|
|
753
|
+
<option name="project" value="LOCAL" />
|
|
754
|
+
<updated>1680269167145</updated>
|
|
755
|
+
</task>
|
|
756
|
+
<task id="LOCAL-00125" summary="build:3.0.3 截图支持设置分辨率,质量,格式">
|
|
757
|
+
<created>1680440104839</created>
|
|
758
|
+
<option name="number" value="00125" />
|
|
759
|
+
<option name="presentableId" value="LOCAL-00125" />
|
|
760
|
+
<option name="project" value="LOCAL" />
|
|
761
|
+
<updated>1680440104840</updated>
|
|
762
|
+
</task>
|
|
763
|
+
<option name="localTasksCounter" value="126" />
|
|
759
764
|
<servers />
|
|
760
765
|
</component>
|
|
761
766
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -798,8 +803,6 @@
|
|
|
798
803
|
<component name="VcsManagerConfiguration">
|
|
799
804
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
800
805
|
<option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
|
|
801
|
-
<MESSAGE value="2.2.9" />
|
|
802
|
-
<MESSAGE value="矩形框的选中点变成线" />
|
|
803
806
|
<MESSAGE value="2.3.0" />
|
|
804
807
|
<MESSAGE value="矩形移动点默认隐藏,悬浮显示" />
|
|
805
808
|
<MESSAGE value="label.model.js" />
|
|
@@ -823,7 +826,9 @@
|
|
|
823
826
|
<MESSAGE value="feat:增加停止绘画事件" />
|
|
824
827
|
<MESSAGE value="feat:截图生成的图片保留标注信息" />
|
|
825
828
|
<MESSAGE value="build:3.0.1" />
|
|
826
|
-
<
|
|
829
|
+
<MESSAGE value="build:3.0.2 截图图片格式自定义" />
|
|
830
|
+
<MESSAGE value="build:3.0.3 截图支持设置分辨率,质量,格式" />
|
|
831
|
+
<option name="LAST_COMMIT_MESSAGE" value="build:3.0.3 截图支持设置分辨率,质量,格式" />
|
|
827
832
|
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
|
|
828
833
|
</component>
|
|
829
834
|
<component name="XSLT-Support.FileAssociations.UIState">
|
package/example/index.js
CHANGED
|
@@ -69,15 +69,18 @@ instance.get(`/process/info?file=${fileName}`).then(({data}) => {
|
|
|
69
69
|
bottom: 10,
|
|
70
70
|
},
|
|
71
71
|
navigator: {
|
|
72
|
-
|
|
73
|
-
style: '
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
thumbnail: `/api/process/getImage?file=${fileName}&type=thumbnail`,
|
|
73
|
+
style: 'left: 0;bottom: 0',
|
|
74
|
+
width: 300,
|
|
75
|
+
height: 300,
|
|
76
76
|
},
|
|
77
77
|
pxConversion: {
|
|
78
78
|
unit: 'um',
|
|
79
79
|
imageCapRes: data.imageCapRes || 1,
|
|
80
80
|
},
|
|
81
|
+
tailoring: {
|
|
82
|
+
suffix: 'png',
|
|
83
|
+
},
|
|
81
84
|
grid: {
|
|
82
85
|
show: false,
|
|
83
86
|
ruler: false,
|
|
@@ -406,14 +409,14 @@ instance.get(`/process/info?file=${fileName}`).then(({data}) => {
|
|
|
406
409
|
}
|
|
407
410
|
});
|
|
408
411
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
412
|
+
kv.tailoring.init(
|
|
413
|
+
{
|
|
414
|
+
left: 0,
|
|
415
|
+
top: 0,
|
|
416
|
+
height: 900,
|
|
417
|
+
width: 1600,
|
|
418
|
+
color: '#F00',
|
|
419
|
+
});
|
|
417
420
|
setTimeout(() => {
|
|
418
421
|
// kv.destroy();
|
|
419
422
|
setTimeout(() => {
|
|
@@ -458,15 +461,15 @@ instance.get(`/process/info?file=${fileName}`).then(({data}) => {
|
|
|
458
461
|
document.querySelector('#g').value = 0;
|
|
459
462
|
document.querySelector('#b').value = 0;
|
|
460
463
|
kv.viewer.forceRedraw();
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
464
|
+
/* const { width, height } = kv.$options;
|
|
465
|
+
kv.tailoring.init(
|
|
466
|
+
{
|
|
467
|
+
left: width / 2 - 100,
|
|
468
|
+
top: height / 2 - 100,
|
|
469
|
+
height: 200,
|
|
470
|
+
width: 200,
|
|
471
|
+
color: '#ff0000',
|
|
472
|
+
});*/
|
|
470
473
|
});
|
|
471
474
|
|
|
472
475
|
/*
|