kfb-view 2.4.1 → 3.0.0-beta2

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.
@@ -43,6 +43,10 @@
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/plugin/openseadragon/openseadragon.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.js" afterDir="false" />
47
+ <change beforePath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.js.map" afterDir="false" />
48
+ <change beforePath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.min.js" afterDir="false" />
49
+ <change beforePath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.min.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugin/openseadragon/openseadragon.min.js.map" afterDir="false" />
46
50
  </list>
47
51
  <option name="SHOW_DIALOG" value="false" />
48
52
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -84,7 +88,7 @@
84
88
  "Project.color": "4c401d",
85
89
  "WebServerToolWindowFactoryState": "false",
86
90
  "dart.analysis.tool.window.visible": "false",
87
- "last_opened_file_path": "/home/fanqifeng/WebstormProjects/kfb-view",
91
+ "last_opened_file_path": "/home/fanqifeng/WebstormProjects/kfb-view/src/plugin/openseadragon",
88
92
  "node.js.detected.package.eslint": "true",
89
93
  "node.js.detected.package.tslint": "true",
90
94
  "node.js.selected.package.eslint": "(autodetect)",
@@ -98,11 +102,11 @@
98
102
  }]]></component>
99
103
  <component name="RecentsManager">
100
104
  <key name="CopyFile.RECENT_KEYS">
105
+ <recent name="$PROJECT_DIR$/src/plugin/openseadragon" />
101
106
  <recent name="$PROJECT_DIR$/example" />
102
107
  <recent name="$PROJECT_DIR$/src/image" />
103
108
  <recent name="$PROJECT_DIR$/src/plugin" />
104
109
  <recent name="$PROJECT_DIR$/src/components/cache" />
105
- <recent name="$PROJECT_DIR$/src/components/rotation" />
106
110
  </key>
107
111
  <key name="MoveFile.RECENT_KEYS">
108
112
  <recent name="$PROJECT_DIR$/src/components/grid" />
@@ -176,8 +180,8 @@
176
180
  <recent_temporary>
177
181
  <list>
178
182
  <item itemvalue="npm.build:lib" />
179
- <item itemvalue="npm.server:hot" />
180
183
  <item itemvalue="npm.server" />
184
+ <item itemvalue="npm.server:hot" />
181
185
  <item itemvalue="npm.clean:lib" />
182
186
  <item itemvalue="npm.build:prod" />
183
187
  </list>
@@ -389,14 +393,10 @@
389
393
  <workItem from="1671501857160" duration="90000" />
390
394
  <workItem from="1671751607914" duration="9693000" />
391
395
  <workItem from="1671762555964" duration="1197000" />
392
- <workItem from="1675327241367" duration="367000" />
393
- </task>
394
- <task id="LOCAL-00070" summary="标注时增加右键拖动视野">
395
- <created>1657537220254</created>
396
- <option name="number" value="00070" />
397
- <option name="presentableId" value="LOCAL-00070" />
398
- <option name="project" value="LOCAL" />
399
- <updated>1657537220255</updated>
396
+ <workItem from="1675327241367" duration="1458000" />
397
+ <workItem from="1675384282016" duration="594000" />
398
+ <workItem from="1675385204348" duration="1462000" />
399
+ <workItem from="1675843622628" duration="4524000" />
400
400
  </task>
401
401
  <task id="LOCAL-00071" summary="曲线绘制中,按删除键,删除上一个标注点">
402
402
  <created>1657538768786</created>
@@ -734,7 +734,14 @@
734
734
  <option name="project" value="LOCAL" />
735
735
  <updated>1675327595052</updated>
736
736
  </task>
737
- <option name="localTasksCounter" value="119" />
737
+ <task id="LOCAL-00119" summary="2.4.1">
738
+ <created>1675327616880</created>
739
+ <option name="number" value="00119" />
740
+ <option name="presentableId" value="LOCAL-00119" />
741
+ <option name="project" value="LOCAL" />
742
+ <updated>1675327616880</updated>
743
+ </task>
744
+ <option name="localTasksCounter" value="120" />
738
745
  <servers />
739
746
  </component>
740
747
  <component name="TypeScriptGeneratedFilesManager">
@@ -747,6 +754,7 @@
747
754
  <option value="Default.Author" />
748
755
  <option value="Default.Date" />
749
756
  <option value="Default.Subject" />
757
+ <option value="Space.CommitStatus" />
750
758
  </list>
751
759
  </option>
752
760
  </component>
@@ -776,7 +784,6 @@
776
784
  <component name="VcsManagerConfiguration">
777
785
  <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
778
786
  <option name="LOCAL_CHANGES_DETAILS_PREVIEW_SHOWN" value="false" />
779
- <MESSAGE value="2.2.5" />
780
787
  <MESSAGE value="2.2.8" />
781
788
  <MESSAGE value="优化标注信息显示" />
782
789
  <MESSAGE value="标注事件回调" />
@@ -801,7 +808,8 @@
801
808
  <MESSAGE value="2.4.0,绘制标注优化,一次只绘制2000个,分批绘制" />
802
809
  <MESSAGE value="截图区域范围数值保留2位小数" />
803
810
  <MESSAGE value="标注位置跳转增加参数,是否显示跳转动画" />
804
- <option name="LAST_COMMIT_MESSAGE" value="标注位置跳转增加参数,是否显示跳转动画" />
811
+ <MESSAGE value="2.4.1" />
812
+ <option name="LAST_COMMIT_MESSAGE" value="2.4.1" />
805
813
  <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
806
814
  </component>
807
815
  <component name="XSLT-Support.FileAssociations.UIState">
@@ -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: 3001,
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
- rendered.canvas,
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
- if (!cacheImage[tile.url]) {
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[tile.url] = canvas;
200
+ cacheImage[url] = canvas;
200
201
  }
201
202
  context.drawImage(
202
- cacheImage[tile.url],
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`).