diff --git a/client/static/js/annotation-editor.js b/client/static/js/annotation-editor.js index 1b2b500..6eb40e8 100644 --- a/client/static/js/annotation-editor.js +++ b/client/static/js/annotation-editor.js @@ -144,6 +144,7 @@ function annotationEditor() { active.set('stroke', e.detail.color); active.areaColor = e.detail.color; } + active.dirty = true; self.canvas.renderAll(); self.isDirty = true; window.dispatchEvent(new CustomEvent('annotations-changed', { detail: { json: self.getAnnotationsJson() } })); @@ -166,6 +167,7 @@ function annotationEditor() { active.set('strokeWidth', e.detail.width); active.areaStrokeWidth = e.detail.width; } + active.dirty = true; self.canvas.renderAll(); self.isDirty = true; window.dispatchEvent(new CustomEvent('annotations-changed', { detail: { json: self.getAnnotationsJson() } })); @@ -188,6 +190,7 @@ function annotationEditor() { active.set('strokeDashArray', dashArr); active.areaLineDash = self.currentLineDash.slice(); } + active.dirty = true; self.canvas.renderAll(); self.isDirty = true; window.dispatchEvent(new CustomEvent('annotations-changed', { detail: { json: self.getAnnotationsJson() } })); diff --git a/client/templates/maker/task_drawing.html b/client/templates/maker/task_drawing.html index d582dc1..be2008e 100644 --- a/client/templates/maker/task_drawing.html +++ b/client/templates/maker/task_drawing.html @@ -353,7 +353,7 @@ - +