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.initCanvas=function(){var b=this.editor.graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b.view.scale)))};b.view.getBackgroundPageBounds=function(){var B=this.graph.getPageLayout(),N=this.graph.getPageSize();return new mxRectangle(this.scale*(this.translate.x+B.x*N.width),this.scale*(this.translate.y+B.y*N.height),this.scale*B.width*N.width,
this.scale*B.height*N.height)};b.getPreferredPageSize=function(B,N,Z){B=this.getPageLayout();N=this.getPageSize();return new mxRectangle(0,0,B.width*N.width,B.height*N.height)};var e=null,g=this;if(this.editor.isChromelessView()){this.chromelessResize=e=mxUtils.bind(this,function(B,N,Z,U){if(null!=b.container&&!b.isViewer()){Z=null!=Z?Z:0;U=null!=U?U:0;var aa=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),Y=mxUtils.hasScrollbars(b.container),ka=b.view.translate,qa=b.view.scale,