Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
EditorUi.prototype.centerShapePicker=function(b,e,g,p,y){if(y==mxConstants.DIRECTION_EAST||y==mxConstants.DIRECTION_WEST)b.style.width="40px";var q=b.getBoundingClientRect();y==mxConstants.DIRECTION_NORTH?(g-=q.width/2-10,p-=q.height+6):y==mxConstants.DIRECTION_SOUTH?(g-=q.width/2-10,p+=e.height+6):y==mxConstants.DIRECTION_WEST?(g-=q.width+6,p-=q.height/2-10):y==mxConstants.DIRECTION_EAST&&(g+=e.width+6,p-=q.height/2-10);b.style.left=g+"px";b.style.top=p+"px"};