this.unitListener=function(n,y){g.setUnit(y.getProperty("unit"))};x.addListener(mxEvent.SIZE,f);x.container.addEventListener("scroll",d);x.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(n){k=n;m.style.background=k.bkgClr;z()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(n,y,K,B){if(l&&4<n.height||
!l&&4<n.width){if(null!=g.guidePart)try{v.putImageData(g.guidePart.imgData1,g.guidePart.x1,g.guidePart.y1),v.putImageData(g.guidePart.imgData2,g.guidePart.x2,g.guidePart.y2),v.putImageData(g.guidePart.imgData3,g.guidePart.x3,g.guidePart.y3)}catch(V){}var F=g.origGuideMove.apply(this,arguments);try{v.lineWidth=.5;v.strokeStyle=k.guideClr;v.setLineDash([2]);if(l){var G=n.y+F.y+e-this.graph.container.scrollTop;var N=0;var J=G+n.height/2;var E=e/2;var H=G+n.height;var S=0;var U=v.getImageData(N,G-1,e,
3);A(N,G,e,G);G--;var Q=v.getImageData(E,J-1,e,3);A(E,J,e,J);J--;var W=v.getImageData(S,H-1,e,3);A(S,H,e,H);H--}else G=0,N=n.x+F.x+e-this.graph.container.scrollLeft,J=e/2,E=N+n.width/2,H=0,S=N+n.width,U=v.getImageData(N-1,G,3,e),A(N,G,N,e),N--,Q=v.getImageData(E-1,J,3,e),A(E,J,E,e),E--,W=v.getImageData(S-1,H,3,e),A(S,H,S,e),S--;if(null==g.guidePart||g.guidePart.x1!=N||g.guidePart.y1!=G)g.guidePart={imgData1:U,x1:N,y1:G,imgData2:Q,x2:E,y2:J,imgData3:W,x3:S,y3:H}}catch(V){}}else F=g.origGuideMove.apply(this,
arguments);return F};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){var n=g.origGuideDestroy.apply(this,arguments);if(null!=g.guidePart)try{v.putImageData(g.guidePart.imgData1,g.guidePart.x1,g.guidePart.y1),v.putImageData(g.guidePart.imgData2,g.guidePart.x2,g.guidePart.y2),v.putImageData(g.guidePart.imgData3,g.guidePart.x3,g.guidePart.y3),g.guidePart=null}catch(y){}return n}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;
The product receives input or data, but it does
        not validate or incorrectly validates that the input has the
        properties that are required to process the data safely and
        correctly.