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:
b.container.scrollLeft)<N&&Math.abs(this.scrollTop-b.container.scrollTop)<N&&Math.abs(this.startX-O.getGraphX())<N&&Math.abs(this.startY-O.getGraphY())<N&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?k():u(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var H=b.view.validate,ka=new mxPoint,ea=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&ea!=g.currentPage){ea=g.currentPage;var A=
b.getBoundingBoxFromGeometry(b.model.getCells(),!0);null==A&&(A=new mxRectangle(b.view.translate.x*b.view.scale,b.view.translate.y*b.view.scale));A=b.getPageLayout(A,ka,1);var O=b.getDefaultTranslate(A);this.x0=A.x;this.y0=A.y;if(O.x!=this.translate.x||O.y!=this.translate.y)this.invalidate(),this.translate.x=O.x,this.translate.y=O.y}O=b.getPagePadding();var X=b.getPageSize();A=O.x-(this.x0||0)*X.width;O=O.y-(this.y0||0)*X.height;if(this.translate.x!=A||this.translate.y!=O)this.invalidate(),this.translate.x=
A,this.translate.y=O}H.apply(this,arguments)};if(!b.isViewer()){var ca=b.sizeDidChange;b.sizeDidChange=function(){if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();if(!this.autoTranslate){var A=this.getPageLayout(),O=this.getDefaultTranslate(A),X=this.view.translate.x,U=this.view.translate.y;if(O.x!=X||O.y!=U){this.view.x0=A.x;this.view.y0=A.y;this.autoTranslate=!0;this.view.setTranslate(O.x,O.y);this.container.scrollLeft+=Math.round((O.x-X)*this.view.scale);