kfb-view 3.0.2 → 3.0.3
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 +34 -30
- package/example/index.js +20 -17
- package/lib/kfb-view.js +1 -1
- package/package.json +1 -1
- package/src/components/tailoring/index.js +32 -4
- package/src/view.js +3 -0
package/.idea/workspace.xml
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
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
46
|
<change beforePath="$PROJECT_DIR$/src/components/tailoring/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/tailoring/index.js" afterDir="false" />
|
|
47
|
+
<change beforePath="$PROJECT_DIR$/src/view.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/view.js" afterDir="false" />
|
|
47
48
|
</list>
|
|
48
49
|
<option name="SHOW_DIALOG" value="false" />
|
|
49
50
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -79,24 +80,25 @@
|
|
|
79
80
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
80
81
|
<option name="showLibraryContents" value="true" />
|
|
81
82
|
</component>
|
|
82
|
-
<component name="PropertiesComponent"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
83
|
+
<component name="PropertiesComponent"><![CDATA[{
|
|
84
|
+
"keyToString": {
|
|
85
|
+
"DefaultHtmlFileTemplate": "HTML File",
|
|
86
|
+
"Project.color": "4c401d",
|
|
87
|
+
"WebServerToolWindowFactoryState": "false",
|
|
88
|
+
"dart.analysis.tool.window.visible": "false",
|
|
89
|
+
"git-widget-placeholder": "master",
|
|
90
|
+
"last_opened_file_path": "/home/fanqifeng/WebstormProjects/kfb-view",
|
|
91
|
+
"node.js.detected.package.eslint": "true",
|
|
92
|
+
"node.js.detected.package.tslint": "true",
|
|
93
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
94
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
95
|
+
"nodejs_interpreter_path": "/home/fanqifeng/.nvm/versions/node/v10.15.1/bin/node",
|
|
96
|
+
"nodejs_package_manager_path": "npm",
|
|
97
|
+
"settings.editor.selected.configurable": "settings.nodejs",
|
|
98
|
+
"ts.external.directory.path": "/opt/WebStorm/plugins/javascript-impl/jsLanguageServicesImpl/external",
|
|
99
|
+
"vue.rearranger.settings.migration": "true"
|
|
98
100
|
}
|
|
99
|
-
}
|
|
101
|
+
}]]></component>
|
|
100
102
|
<component name="RecentsManager">
|
|
101
103
|
<key name="CopyFile.RECENT_KEYS">
|
|
102
104
|
<recent name="$PROJECT_DIR$/src/plugin/openseadragon" />
|
|
@@ -113,7 +115,7 @@
|
|
|
113
115
|
<recent name="$PROJECT_DIR$/src/tool" />
|
|
114
116
|
</key>
|
|
115
117
|
</component>
|
|
116
|
-
<component name="RunManager" selected="npm.
|
|
118
|
+
<component name="RunManager" selected="npm.server:hot">
|
|
117
119
|
<configuration name="build:lib" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
|
|
118
120
|
<package-json value="$PROJECT_DIR$/package.json" />
|
|
119
121
|
<command value="run" />
|
|
@@ -176,8 +178,8 @@
|
|
|
176
178
|
</list>
|
|
177
179
|
<recent_temporary>
|
|
178
180
|
<list>
|
|
179
|
-
<item itemvalue="npm.build:lib" />
|
|
180
181
|
<item itemvalue="npm.server:hot" />
|
|
182
|
+
<item itemvalue="npm.build:lib" />
|
|
181
183
|
<item itemvalue="npm.server" />
|
|
182
184
|
<item itemvalue="npm.clean:lib" />
|
|
183
185
|
<item itemvalue="npm.build:prod" />
|
|
@@ -410,14 +412,9 @@
|
|
|
410
412
|
<workItem from="1678926296962" duration="2385000" />
|
|
411
413
|
<workItem from="1679708561519" duration="550000" />
|
|
412
414
|
<workItem from="1679728741473" duration="161000" />
|
|
413
|
-
<workItem from="1680268962874" duration="
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
<created>1657540107150</created>
|
|
417
|
-
<option name="number" value="00075" />
|
|
418
|
-
<option name="presentableId" value="LOCAL-00075" />
|
|
419
|
-
<option name="project" value="LOCAL" />
|
|
420
|
-
<updated>1657540107150</updated>
|
|
415
|
+
<workItem from="1680268962874" duration="1136000" />
|
|
416
|
+
<workItem from="1680271989452" duration="591000" />
|
|
417
|
+
<workItem from="1680437372638" duration="2675000" />
|
|
421
418
|
</task>
|
|
422
419
|
<task id="LOCAL-00076" summary="优化选中点">
|
|
423
420
|
<created>1657588323251</created>
|
|
@@ -755,7 +752,14 @@
|
|
|
755
752
|
<option name="project" value="LOCAL" />
|
|
756
753
|
<updated>1678929156803</updated>
|
|
757
754
|
</task>
|
|
758
|
-
<
|
|
755
|
+
<task id="LOCAL-00124" summary="build:3.0.2 截图图片格式自定义">
|
|
756
|
+
<created>1680269167145</created>
|
|
757
|
+
<option name="number" value="00124" />
|
|
758
|
+
<option name="presentableId" value="LOCAL-00124" />
|
|
759
|
+
<option name="project" value="LOCAL" />
|
|
760
|
+
<updated>1680269167145</updated>
|
|
761
|
+
</task>
|
|
762
|
+
<option name="localTasksCounter" value="125" />
|
|
759
763
|
<servers />
|
|
760
764
|
</component>
|
|
761
765
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -798,7 +802,6 @@
|
|
|
798
802
|
<component name="VcsManagerConfiguration">
|
|
799
803
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
|
800
804
|
<option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
|
|
801
|
-
<MESSAGE value="2.2.9" />
|
|
802
805
|
<MESSAGE value="矩形框的选中点变成线" />
|
|
803
806
|
<MESSAGE value="2.3.0" />
|
|
804
807
|
<MESSAGE value="矩形移动点默认隐藏,悬浮显示" />
|
|
@@ -823,7 +826,8 @@
|
|
|
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
|
+
<option name="LAST_COMMIT_MESSAGE" value="build:3.0.2 截图图片格式自定义" />
|
|
827
831
|
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
|
|
828
832
|
</component>
|
|
829
833
|
<component name="XSLT-Support.FileAssociations.UIState">
|
package/example/index.js
CHANGED
|
@@ -78,6 +78,9 @@ instance.get(`/process/info?file=${fileName}`).then(({data}) => {
|
|
|
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
|
/*
|