--- a/src_js/iconolab-bundle/src/components/editor/Canvas.vue Mon Feb 20 17:46:45 2017 +0100
+++ b/src_js/iconolab-bundle/src/components/editor/Canvas.vue Mon Feb 20 18:33:36 2017 +0100
@@ -41,6 +41,12 @@
export default {
props: {
image: String,
+ annotation: {
+ type: Object,
+ default: function () {
+ return null;
+ }
+ },
tooltip: {
type: Boolean,
default: function () {
@@ -64,7 +70,6 @@
imgMinSize: 0,
imageWidth: 0,
imageHeight: 0,
- annotation: null
}
},
watch: {
@@ -165,10 +170,6 @@
this.paper.unclick();
},
- setAnnotation: function(annotation) {
- this.annotation = annotation;
- },
-
loadAnnotation: function() {
if (this.annotation.fragment.length > 0) {
var pieces = this.annotation.fragment.split(';');