in src/site/resources/images/svg/diagrams.js [221:263]
this.insertNotes = function(evt,y){
if(this.noteCount>0){
joinTop = y;
y += padding;
e = document.createElementNS(namespace, "line");
e.setAttributeNS(null, "x1", this.width/2-padding*2);
e.setAttributeNS(null, "y1", y);
e.setAttributeNS(null, "x2", this.width/2+padding*2);
e.setAttributeNS(null, "y2", joinTop);
e.setAttributeNS(null, "class", "note connect");
evt.target.appendChild(e);
height = this.heightNotes();
e = document.createElementNS(namespace, "polygon");
e.setAttributeNS(null, "points", "0,"+(y+padding)+" 0,"+(y+height)+" "+this.width+","+(y+height)+" "+this.width+","+y+" "+padding+","+y);
e.setAttributeNS(null, "class", "note");
evt.target.appendChild(e);
e = document.createElementNS(namespace, "polygon");
e.setAttributeNS(null, "points", ""+padding+","+y+" 0,"+(y+padding)+" "+padding+","+(y+padding));
e.setAttributeNS(null, "class", "note corner");
evt.target.appendChild(e);
y += padding;
for(i=0;i<this.noteCount;++i){
y += textHeight;
e = document.createElementNS(namespace, "text");
e.setAttributeNS(null, "x", padding);
e.setAttributeNS(null, "y", y);
e.setAttributeNS(null, "class", "note");
e.appendChild(document.createTextNode(this.noteList[i]));
evt.target.appendChild(e);
}
}
}