Skip to content

Commit 81c3722

Browse files
committed
annotations
1 parent 95dfa66 commit 81c3722

File tree

1 file changed

+3
-9
lines changed
  • services/static-webserver/client/source/class/osparc/workbench

1 file changed

+3
-9
lines changed

services/static-webserver/client/source/class/osparc/workbench/Annotation.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ qx.Class.define("osparc.workbench.Annotation", {
7777

7878
attributes: {
7979
check: "Object",
80-
nullable: false,
81-
apply: "__applyAttributes",
80+
nullable: false
8281
},
8382

8483
svgCanvas: {
@@ -180,13 +179,6 @@ qx.Class.define("osparc.workbench.Annotation", {
180179
}
181180
},
182181

183-
__applyAttributes: function(attrs) {
184-
const representation = this.getRepresentation();
185-
if (representation) {
186-
this.fireEvent("annotationChanged");
187-
}
188-
},
189-
190182
getRepresentationPosition: function() {
191183
const representation = this.getRepresentation();
192184
if (representation) {
@@ -241,6 +233,7 @@ qx.Class.define("osparc.workbench.Annotation", {
241233
const representation = this.getRepresentation();
242234
if (representation) {
243235
osparc.wrapper.Svg.updateText(representation, newText);
236+
this.fireEvent("annotationChanged");
244237
}
245238
},
246239

@@ -249,6 +242,7 @@ qx.Class.define("osparc.workbench.Annotation", {
249242
const representation = this.getRepresentation();
250243
if (representation) {
251244
osparc.wrapper.Svg.updateTextSize(representation, fontSize);
245+
this.fireEvent("annotationChanged");
252246
}
253247
},
254248

0 commit comments

Comments
 (0)