kfb-view 3.0.5 → 3.0.6

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": "3.0.5",
4
+ "version": "3.0.6",
5
5
  "author": "qifeng.fan <qifeng.fan@hzztai.com>",
6
6
  "license": "MIT",
7
7
  "main": "lib/kfb-view.js",
@@ -277,8 +277,8 @@ export class Board extends ViewerCommon {
277
277
  this.$emit(EVENT_END_PAINTING, this.getPaintOptions());
278
278
  // 是否只绘制一次
279
279
  if (this[this.tool].options.once) {
280
- this.endDraw();
281
280
  this.$emit(EVENT_STOP_PAINTING, this.getPaintOptions());
281
+ this.endDraw();
282
282
  } else if (this[this.tool].options.clear) { // 是否结束绘画时清空画布
283
283
  this.points = [];
284
284
  this.clearCanvas();
@@ -376,6 +376,7 @@ export class Board extends ViewerCommon {
376
376
  }
377
377
 
378
378
  getPaintOptions() {
379
+ console.log(this.tool);
379
380
  const form = new LabelModel({
380
381
  ...this[this.tool].options,
381
382
  points: this.points,
@@ -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
  });