Skip to content

Commit

Permalink
fix: SENSEBEE-7983: 【SDK】【单步骤标注任务】--线条步骤点击清除标注数据没有效果
Browse files Browse the repository at this point in the history
  • Loading branch information
laoluo committed Oct 20, 2021
1 parent 46a156b commit 1da14c0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1834,6 +1834,15 @@ class LineToolOperation extends BasicToolOperation {
super.clearCanvas();
}

/**
* 清除当前的所有数据
*/
public clearResult() {
this.setResult([]);
this.setSelectedLineID(undefined);
this.render();
}

public exportData() {
return [this.lineList, this.basicImgInfo];
}
Expand Down

0 comments on commit 1da14c0

Please sign in to comment.