Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
EditorUi.prototype.centerShapePicker=function(b,e,g,n,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,n-=q.height+6):y==mxConstants.DIRECTION_SOUTH?(g-=q.width/2-10,n+=e.height+6):y==mxConstants.DIRECTION_WEST?(g-=q.width+6,n-=q.height/2-10):y==mxConstants.DIRECTION_EAST&&(g+=e.width+6,n-=q.height/2-10);b.style.left=g+"px";b.style.top=n+"px"};