kfb-view 2.4.1 → 2.4.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kfb-view",
3
3
  "description": "一个在线kfb的阅片软件",
4
- "version": "2.4.1",
4
+ "version": "2.4.3",
5
5
  "author": "qifeng.fan <qifeng.fan@hzztai.com>",
6
6
  "license": "MIT",
7
7
  "main": "lib/kfb-view.js",
@@ -168,10 +168,10 @@ export class Shape extends ViewerCommon {
168
168
  regionLabelList.forEach((item) => {
169
169
  this.combination.setContent(this.canvas, item);
170
170
  this.combination.draw({
171
- points: item.viewerElementPoints,
171
+ points: this.imageToViewerElementPoints(item.points),
172
172
  tool: item.tool,
173
- }, item.child.map(({viewerElementPoints, tool}) => ({
174
- points: viewerElementPoints,
173
+ }, item.child.map(({points, tool}) => ({
174
+ points: this.imageToViewerElementPoints(points),
175
175
  tool,
176
176
  })), this.viewport.getRotation());
177
177
  });