Skip to content

Commit 87b2897

Browse files
committed
new type
1 parent 7aea0a3 commit 87b2897

File tree

1 file changed

+7
-0
lines changed
  • services/static-webserver/client/source/class/osparc/workbench

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ qx.Class.define("osparc.workbench.Annotation", {
5252
NOTE: "note",
5353
RECT: "rect",
5454
TEXT: "text",
55+
CONVERSATION: "conversation",
5556
},
5657
},
5758

@@ -66,6 +67,7 @@ qx.Class.define("osparc.workbench.Annotation", {
6667
"note", // osparc.workbench.Annotation.TYPES.NOTE
6768
"rect", // osparc.workbench.Annotation.TYPES.RECT
6869
"text", // osparc.workbench.Annotation.TYPES.TEXT
70+
"conversation", // osparc.workbench.Annotation.TYPES.CONVERSATION
6971
],
7072
nullable: false
7173
},
@@ -116,6 +118,11 @@ qx.Class.define("osparc.workbench.Annotation", {
116118
case this.self().TYPES.TEXT:
117119
representation = this.__svgLayer.drawAnnotationText(attrs.x, attrs.y, attrs.text, this.getColor(), attrs.fontSize);
118120
break;
121+
case this.self().TYPES.CONVERSATION: {
122+
console.log("attrs", attrs);
123+
representation = this.__svgLayer.drawAnnotationRect(100, 30, attrs.x, attrs.y, "#00FF00");
124+
break;
125+
}
119126
}
120127
if (representation) {
121128
osparc.wrapper.Svg.makeDraggable(representation);

0 commit comments

Comments
 (0)