Skip to content

Commit 0e8b9f5

Browse files
committed
per point annotartion
1 parent eb75abb commit 0e8b9f5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

annotationTools/js/annotation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function annotation(anno_id) {
3333

3434
// Annotation time of each point
3535
this.time_point = new Array();
36+
this.closing_time = null;
3637

3738
// Element id for drawn first point:
3839
this.point_id = null;

annotationTools/js/draw_event.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ function DrawCanvasClosePolygon() {
179179
var anno = null;
180180

181181
if(draw_anno) {
182+
draw_anno.closing_time = get_date()
182183
draw_anno.DeletePolygon();
183184
anno = draw_anno;
184185
draw_anno = null;

annotationTools/js/handler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ function handler() {
340340
html_str += '<time>' + anno.time_point[jj] + '</time>';
341341
html_str += '</pt>';
342342
}
343+
html_str += '<closed_date>' + anno.closing_time + '</closed_date>';
343344
html_str += '</polygon>';
344345
html_str += '</object>';
345346
$(LM_xml).children("annotation").append($(html_str));

0 commit comments

Comments
 (0)