Skip to content

Commit

Permalink
per point annotartion
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierpuigf committed Jan 27, 2020
1 parent eb75abb commit 0e8b9f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions annotationTools/js/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function annotation(anno_id) {

// Annotation time of each point
this.time_point = new Array();
this.closing_time = null;

// Element id for drawn first point:
this.point_id = null;
Expand Down
1 change: 1 addition & 0 deletions annotationTools/js/draw_event.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ function DrawCanvasClosePolygon() {
var anno = null;

if(draw_anno) {
draw_anno.closing_time = get_date()
draw_anno.DeletePolygon();
anno = draw_anno;
draw_anno = null;
Expand Down
1 change: 1 addition & 0 deletions annotationTools/js/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ function handler() {
html_str += '<time>' + anno.time_point[jj] + '</time>';
html_str += '</pt>';
}
html_str += '<closed_date>' + anno.closing_time + '</closed_date>';
html_str += '</polygon>';
html_str += '</object>';
$(LM_xml).children("annotation").append($(html_str));
Expand Down

0 comments on commit 0e8b9f5

Please sign in to comment.