kfb-view 3.0.0-beta1 → 3.0.0-beta3
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 +21 -19
- package/config/webpack.dev.conf.js +1 -1
- package/example/index.js +16 -5
- package/lib/kfb-view.js +1 -1
- package/package.json +1 -1
- package/src/plugin/openseadragon/openseadragon.js +17570 -17124
package/.idea/workspace.xml
CHANGED
|
@@ -82,24 +82,24 @@
|
|
|
82
82
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
83
83
|
<option name="showLibraryContents" value="true" />
|
|
84
84
|
</component>
|
|
85
|
-
<component name="PropertiesComponent"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
85
|
+
<component name="PropertiesComponent">{
|
|
86
|
+
"keyToString": {
|
|
87
|
+
"DefaultHtmlFileTemplate": "HTML File",
|
|
88
|
+
"Project.color": "4c401d",
|
|
89
|
+
"WebServerToolWindowFactoryState": "false",
|
|
90
|
+
"dart.analysis.tool.window.visible": "false",
|
|
91
|
+
"last_opened_file_path": "/home/fanqifeng/WebstormProjects/kfb-view/src/plugin/openseadragon",
|
|
92
|
+
"node.js.detected.package.eslint": "true",
|
|
93
|
+
"node.js.detected.package.tslint": "true",
|
|
94
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
95
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
96
|
+
"nodejs_interpreter_path": "/home/fanqifeng/.nvm/versions/node/v10.15.1/bin/node",
|
|
97
|
+
"nodejs_package_manager_path": "npm",
|
|
98
|
+
"settings.editor.selected.configurable": "settings.nodejs",
|
|
99
|
+
"ts.external.directory.path": "/opt/WebStorm/plugins/javascript-impl/jsLanguageServicesImpl/external",
|
|
100
|
+
"vue.rearranger.settings.migration": "true"
|
|
101
101
|
}
|
|
102
|
-
}
|
|
102
|
+
}</component>
|
|
103
103
|
<component name="RecentsManager">
|
|
104
104
|
<key name="CopyFile.RECENT_KEYS">
|
|
105
105
|
<recent name="$PROJECT_DIR$/src/plugin/openseadragon" />
|
|
@@ -180,8 +180,8 @@
|
|
|
180
180
|
<recent_temporary>
|
|
181
181
|
<list>
|
|
182
182
|
<item itemvalue="npm.build:lib" />
|
|
183
|
-
<item itemvalue="npm.server:hot" />
|
|
184
183
|
<item itemvalue="npm.server" />
|
|
184
|
+
<item itemvalue="npm.server:hot" />
|
|
185
185
|
<item itemvalue="npm.clean:lib" />
|
|
186
186
|
<item itemvalue="npm.build:prod" />
|
|
187
187
|
</list>
|
|
@@ -396,7 +396,9 @@
|
|
|
396
396
|
<workItem from="1675327241367" duration="1458000" />
|
|
397
397
|
<workItem from="1675384282016" duration="594000" />
|
|
398
398
|
<workItem from="1675385204348" duration="1462000" />
|
|
399
|
-
<workItem from="1675843622628" duration="
|
|
399
|
+
<workItem from="1675843622628" duration="4524000" />
|
|
400
|
+
<workItem from="1675848342418" duration="2364000" />
|
|
401
|
+
<workItem from="1675902452322" duration="324000" />
|
|
400
402
|
</task>
|
|
401
403
|
<task id="LOCAL-00071" summary="曲线绘制中,按删除键,删除上一个标注点">
|
|
402
404
|
<created>1657538768786</created>
|
|
@@ -3,7 +3,7 @@ const webpackMerge = require('webpack-merge');
|
|
|
3
3
|
const baseWebpackConfig = require('./webpack.base.conf');
|
|
4
4
|
const METADATA = webpackMerge(baseWebpackConfig().metadata, {
|
|
5
5
|
host: '0.0.0.0',
|
|
6
|
-
port:
|
|
6
|
+
port: 3101,
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
process.env.NODE_ENV = process.env.NODE_ENV ?
|
package/example/index.js
CHANGED
|
@@ -136,7 +136,7 @@ instance.get(`/process/info?file=${fileName}`).then(({data}) => {
|
|
|
136
136
|
if (rangeB === 0 && rangeA === 1 && rangeS === 0 && rangeL === 0 &&
|
|
137
137
|
rangeR === 0 && rangeG === 0) {
|
|
138
138
|
context.drawImage(
|
|
139
|
-
|
|
139
|
+
initRendered.canvas,
|
|
140
140
|
0,
|
|
141
141
|
0,
|
|
142
142
|
sourceWidth,
|
|
@@ -148,7 +148,8 @@ instance.get(`/process/info?file=${fileName}`).then(({data}) => {
|
|
|
148
148
|
);
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
|
-
|
|
151
|
+
const url = tile.getUrl();
|
|
152
|
+
if (!cacheImage[url]) {
|
|
152
153
|
const sourceLength = sourceWidth * sourceHeight;
|
|
153
154
|
const canvas = rendered.canvas;
|
|
154
155
|
let imageData = initRendered.getImageData(0, 0, canvas.width,
|
|
@@ -196,10 +197,10 @@ instance.get(`/process/info?file=${fileName}`).then(({data}) => {
|
|
|
196
197
|
imageData.data[i * 4 + 2] = b;
|
|
197
198
|
}
|
|
198
199
|
rendered.putImageData(imageData, 0, 0);
|
|
199
|
-
cacheImage[
|
|
200
|
+
cacheImage[url] = canvas;
|
|
200
201
|
}
|
|
201
202
|
context.drawImage(
|
|
202
|
-
cacheImage[
|
|
203
|
+
cacheImage[url],
|
|
203
204
|
0,
|
|
204
205
|
0,
|
|
205
206
|
sourceWidth,
|
|
@@ -412,7 +413,7 @@ instance.get(`/process/info?file=${fileName}`).then(({data}) => {
|
|
|
412
413
|
}, 6000);
|
|
413
414
|
}, 6000);
|
|
414
415
|
|
|
415
|
-
initLabels();
|
|
416
|
+
// initLabels();
|
|
416
417
|
|
|
417
418
|
function initLabels() {
|
|
418
419
|
const labels = [];
|
|
@@ -441,6 +442,16 @@ instance.get(`/process/info?file=${fileName}`).then(({data}) => {
|
|
|
441
442
|
kv.initLabelList(labels);
|
|
442
443
|
}
|
|
443
444
|
|
|
445
|
+
document.querySelector('#reDraw').addEventListener('click', () => {
|
|
446
|
+
document.querySelector('#a').value = 1;
|
|
447
|
+
document.querySelector('#s').value = 0;
|
|
448
|
+
document.querySelector('#l').value = 0;
|
|
449
|
+
document.querySelector('#r').value = 0;
|
|
450
|
+
document.querySelector('#g').value = 0;
|
|
451
|
+
document.querySelector('#b').value = 0;
|
|
452
|
+
kv.viewer.forceRedraw();
|
|
453
|
+
});
|
|
454
|
+
|
|
444
455
|
/*
|
|
445
456
|
instance.get(
|
|
446
457
|
`/image_annotation?file=${fileName}&slide_label_id=38749&user_id=27`).
|