Language: JavaScript
Label: safe
CWE: CWE-400 \u2014 Uncontrolled Resource Consumption
The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources.

Code:
S?aa.apply(this,arguments):(this.autoTranslate=!0,this.view.x0=H.x,this.view.y0=H.y,H=a.view.translate.x,V=a.view.translate.y,a.view.setTranslate(ea,S),a.container.scrollLeft+=Math.round((ea-H)*a.view.scale),a.container.scrollTop+=Math.round((S-V)*a.view.scale),this.autoTranslate=!1)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",this.getGraphBounds()))}}}var T=a.view.getBackgroundPane(),U=a.view.getDrawPane();a.cumulativeZoomFactor=1;var fa=null,ha=null,ba=null,qa=null,I=null,L=function(H){null!=
fa&&window.clearTimeout(fa);0<=H&&window.setTimeout(function(){if(!a.isMouseDown||qa)fa=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&(null!=a.view.backgroundPageShape&&null!=a.view.backgroundPageShape.node&&(mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform-origin",null),mxUtils.setPrefixedStyle(a.view.backgroundPageShape.node.style,"transform",null)),U.style.transformOrigin="",T.style.transformOrigin="",mxClient.IS_SF?(U.style.transform="scale(1)",
T.style.transform="scale(1)",window.setTimeout(function(){U.style.transform="";T.style.transform=""},0)):(U.style.transform="",T.style.transform=""),a.view.getDecoratorPane().style.opacity="",a.view.getOverlayPane().style.opacity="");var S=new mxPoint(a.container.scrollLeft,a.container.scrollTop),V=mxUtils.getOffset(a.container),ea=a.view.scale,ka=0,wa=0;null!=ha&&(ka=a.container.offsetWidth/2-ha.x+V.x,wa=a.container.offsetHeight/2-ha.y+V.y);a.zoom(a.cumulativeZoomFactor,null,a.isFastZoomEnabled()?
20:null);a.view.scale!=ea&&(null!=ba&&(ka+=S.x-ba.x,wa+=S.y-ba.y),null!=b&&f.chromelessResize(!1,null,ka*(a.cumulativeZoomFactor-1),wa*(a.cumulativeZoomFactor-1)),!mxUtils.hasScrollbars(a.container)||0==ka&&0==wa||(a.container.scrollLeft-=ka*(a.cumulativeZoomFactor-1),a.container.scrollTop-=wa*(a.cumulativeZoomFactor-1)));null!=I&&U.setAttribute("filter",I);a.cumulativeZoomFactor=1;I=qa=ha=ba=fa=null}),null!=H?H:a.isFastZoomEnabled()?f.wheelZoomDelay:f.lazyZoomDelay)},0)};a.lazyZoom=function(H,S,