Lines Matching refs:view

271 …idth,m=a.height,n=mxUtils.getValue(a.style,mxConstants.STYLE_STARTSIZE)*a.view.scale;0<n&&(mxUtils…
292 for(d=null;null!=f;)g=f.cloneNode(!0),f==a.view.drawPane.ownerSVGElement?(c.appendChild(g),d=g):e.a…
297 …seInt(b.style.height);b.style.width=Math.round(c*a.view.scale)+"px";b.style.height=Math.round(e*a.
396 ….previewElement.style.visibility)){var b=this.currentGraph.view.scale,c=this.currentGraph.view.tra…
401 …=new mxPoint(e,c),c=this.currentGuide.move(f,c,d,!0),f=!1,e=c.x,c=c.y;else if(d)var d=a.view.scale,
402 g=a.view.translate,k=a.gridSize/2,e=(a.snap(e/d-g.x-k)+g.x)*d,c=(a.snap(c/d-g.y-k)+g.y)*d;null!=thi…
427 …turn Math.round(this.tdy)};this.start=function(){this.t0x=a.view.translate.x;this.t0y=a.view.trans…
429 …se{var b=a.panDx,d=a.panDy;if(0!=b||0!=d)a.panGraph(0,0),a.view.setTranslate(this.t0x+b/a.view.sca…
430 this.t0y+d/a.view.scale)}};this.destroy=function(){a.removeMouseListener(this.mouseListener);mxEven…
451 …tModel().isVertex(a)&&(0!=e.x||0!=e.y))){var f=this.graph.view.getTranslate(),g=this.graph.view.ge…
453 …x*c.width,b.y+=a.y*c.height)):(b.x+=a.x,b.y+=a.y))}null==b&&(b=this.graph.view.getTranslate(),b=ne…
456 …ion(a,b,c){if(null!=a){c(a,b);for(var d=a.view.graph,e=d.model.getChildCount(a.cell),f=0;f<e;f++){…
570 "hidden"}return b};mxGuide.prototype.getDelta=function(a,b,c,d,e){var f=this.graph.view.scale;if(th…
665 …eWithCss3():(this.updateSize(this.node,null==this.state||null==this.state.view.textDiv),mxClient.I…
676 null!=this.state?this.state.view.textDiv:null;if(null==this.offsetWidth||null==this.offsetHeight)nu…
679 …sInverted=function(){return!this.horizontal&&null!=this.state&&this.state.view.graph.model.isVerte…
684 …t(this.node);this.updateSize(this.node,null==this.state||null==this.state.view.textDiv);this.offse…
692 …etOpacity(this.node,this.opacity);var e,f=0,g=null!=this.state?this.state.view.textDiv:null,k=this…
743 …EdgeAt(a,f),k=this.graph.model.getTerminal(g,!0)==a;if(!b||k)k=this.graph.view.getVisibleTerminal(…
755 …;b=this.graph.getView().getState(e);null!=b&&(c-=f?b.x:b.y);c/=this.graph.view.scale;for(b=0;b<k;b…
817 …tity.get(c);b=mxObjectIdentity.get(b);if(this.checkOverlap&&(a=this.graph.view.getState(a),null!=a…
821 …yout;mxEdgeLabelLayout.prototype.execute=function(a){for(var b=this.graph.view,c=this.graph.getMod…
901 …el.getTerminal(n,!0);this.layout.isPort(y)&&k.model.getParent(y)==p&&(t=k.view.getState(y),t=null!…
903 …isibleTerminal(n,!1),this.layout.isPort(r)&&k.model.getParent(r)==p&&(t=k.view.getState(r),t=null!…
917 ….view.getState(a),e=null!=d?d.getVisibleTerminal(b):this.graph.view.getVisibleTerminal(a,b);null==…
936 ….view.getState(a),e=null!=d?d.getVisibleTerminal(b):this.graph.view.getVisibleTerminal(a,b);null==…
1023 …nit(a.view.getDrawPane())});this.printControls&&(this.graph.cellRenderer.initControl=function(a,b,…
1038 mxPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.grap…
1050view=a;this.cell=b;this.style=null!=c?c:{};this.origin=new mxPoint;this.absoluteOffset=new mxPoint… method in mxCellState
1054 …ction(a){var b=this.getVisibleTerminalState(a);if(null==b)return!1;a=this.view.graph.getConnection…
1056 mxCellState.prototype.updateCachedBounds=function(){var a=this.view.translate,b=this.view.scale;thi…
1057 mxCellState.prototype.setState=function(a){this.view=a.view;this.cell=a.cell;this.style=a.style;thi…
1058 mxCellState.prototype.clone=function(){var a=new mxCellState(this.view,this.cell,this.style);if(nul…
1059 …is.unscaledHeight;return a};mxCellState.prototype.destroy=function(){this.view.graph.cellRenderer.…
1068 …aph.isEditing()&&this.resize()});this.graph.view.addListener(mxEvent.SCALE,this.zoomHandler);this.…
1080 …DDLE?a.shape.getLabelBounds(b):b;null!=e&&(b.width=parseFloat(e)*c);if(!a.view.graph.cellRenderer.…
1088 mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view
1096 …xtNode.style.visibility="visible",this.textNode=null);a=a?null:this.graph.view.getState(this.editi…
1099 …ph.getView().scale,d=this.getMinimumSize(a),e=d.width,d=d.height;if(!b&&a.view.graph.cellRenderer.…
1104 …his.changeHandler),this.changeHandler=null);this.zoomHandler&&(this.graph.view.removeListener(this…
1108 …initializeShape=function(a){a.shape.dialect=a.view.graph.dialect;this.configureShape(a);a.shape.in…
1109 …e.createIndicatorShape=function(a){a.shape.indicatorShape=this.getShape(a.view.graph.getIndicatorS…
1110 …on(a){var b=this.getShape(a.style[mxConstants.STYLE_SHAPE]);null==b&&(b=a.view.graph.getModel().is…
1111view.graph.getImage(a);a.shape.indicatorColor=a.view.graph.getIndicatorColor(a);a.shape.indicatorS…
1114 …){var d=c==mxConstants.STYLE_FONTCOLOR?a.text:a.shape;if(null!=d){var e=a.view.graph,f=d[b],g=null…
1115 ….style[c]))}};mxCellRenderer.prototype.getLabelValue=function(a){return a.view.graph.getLabel(a.ce…
1116 mxCellRenderer.prototype.createLabel=function(a,b){var c=a.view.graph;c.getModel().isEdge(a.cell);i…
1118view.graph.dialect;a.text.style=a.style;a.text.state=a;this.initializeLabel(a,a.text);this.configu…
1120 …xClient.NO_FO&&b.dialect!=mxConstants.DIALECT_SVG?b.init(a.view.graph.container):b.init(a.view.get…
1121view.graph.getCellOverlays(a.cell),c=null;if(null!=b)for(var c=new mxDictionary,d=0;d<b.length;d++…
1122 …rlays=c};mxCellRenderer.prototype.initializeOverlay=function(a,b){b.init(a.view.getOverlayPane())};
1123 mxCellRenderer.prototype.installCellOverlayListeners=function(a,b,c){var d=a.view.graph;mxEvent.add…
1124 "event",c,"cell",a.cell))})};mxCellRenderer.prototype.createControl=function(a){var b=a.view.graph,…
1125 mxCellRenderer.prototype.createControlClickHandler=function(a){var b=a.view.graph;return mxUtils.bi…
1126view.graph;e.isHtmlLabel(a.cell)&&mxClient.NO_FO&&e.dialect==mxConstants.DIALECT_SVG?(b.dialect=mx…
1129view.graph,c=function(c){var d=a;if(b.dialect!=mxConstants.DIALECT_SVG&&"IMG"==mxEvent.getSource(c…
1131view.graph,d=this.getLabelValue(a),e=c.isWrapping(a.cell),f=c.isLabelClipped(a.cell),g=a.view.grap…
1136 …ape=function(a){a.redraw()};mxCellRenderer.prototype.getTextScale=function(a){return a.view.scale};
1137 mxCellRenderer.prototype.getLabelBounds=function(a){var b=a.view.graph,c=a.view.scale,d=b.getModel(…
1139 ….STYLE_OVERFLOW]||"1"==a.style[mxConstants.STYLE_BLOCK_SPACING])){var c=a.view.scale,d=a.text.getS…
1140 …*c+a.text.spacingBottom*c:0))}e=a.text.getTextRotation();0!=e&&null!=a&&a.view.graph.model.isVerte…
1142 ….sin(d);a.overlays.visit(function(d,k){var g=k.overlay.getBounds(a);if(!a.view.graph.getModel().is…
1143 …(n-g.height/2)}if(b||null==k.bounds||k.scale!=a.view.scale||!k.bounds.equals(g))k.bounds=g,k.scale…
1144view.graph.getFoldingImage(a);if(null!=a.control&&null!=c){var c=this.getControlBounds(a,c.width,c…
1145 …unds=function(a,b,c){if(null!=a.control){var d=a.view.scale,e=a.getCenterX(),f=a.getCenterY();if(!…
1146 f),g,k,new mxPoint(a.getCenterX(),a.getCenterY())),e=f.x,f=f.y)}return a.view.graph.getModel().isEd…
1147view.getDrawPane()&&d[e].node.parentNode!=a.view.getOverlayPane(),g=f?c:b;if(null!=g&&g.nextSiblin…
1148 a.view.graph.container;)g=g.parentNode;null!=g&&null!=g.nextSibling?g.nextSibling!=d[e].node&&d[e].…
1150view.graph.model,e=!1;null!=a.shape&&null!=a.shape.style&&null!=a.style&&a.shape.style[mxConstants…
1151view.graph.selectionCellsHandler.updateHandler(a))):b||null==a.shape||mxUtils.equalEntries(a.shape…
1152 …a.shape.bounds=new mxRectangle(a.x,a.y,a.width,a.height)),a.shape.scale=a.view.scale,null==c||c?th…
1153 ….prototype.isShapeInvalid=function(a,b){return null==b.bounds||b.scale!=a.view.scale||null==a.abso…
1155 var mxEdgeStyle={EntityRelation:function(a,b,c,d,e){var f=a.view,g=f.graph;d=mxUtils.getValue(a.sty…
1158 d[b],c=a.view.transformControlPoint(a,c),e.push(new mxPoint(c.x,c.y))}else if(null!=b){var f=a.view
1160view.transformControlPoint(a,f),g=f.y<k||f.y>n,k=f.x<l||f.x>m;else l=Math.max(b.x,c.x),m=Math.min(…
1162 …b.height,c.y+c.height)-f)/2)))))},TopToBottom:function(a,b,c,d,e){var f=a.view;d=null!=d&&0<d.leng…
1164view.scale);b=mxEdgeStyle.scaleCellState(b,a.view.scale);var g=mxEdgeStyle.scaleCellState(c,a.view
1165 [],q=0;q<d.length;q++){var r=a.view.transformControlPoint(a,d[q],!0);null!=r&&p.push(r)}if(0==p.len…
1167 …())}else d=m,l=!0;m=f[n];null==m&&null!=g&&(m=new mxPoint(a.view.getRoutingCenterX(g),a.view.getRo…
1168 …h.round(f.x*a.view.scale*10)/10,f.y=Math.round(f.y*a.view.scale*10)/10,null==k||1<=Math.abs(k.x-f.…
1173view.graph,g=null==l?!1:f.getModel().isEdge(l.cell),k=null==m?!1:f.getModel().isEdge(m.cell),f=mxE…
1184 a.view.scale*10)/10,Math.round(mxEdgeStyle.wayPoints1[v][1]*a.view.scale*10)/10));for(a=1;a<e.lengt…
1249 …t.getClientX(c),c=mxEvent.getClientY(c),c=mxUtils.convertPoint(b,d,c),d=a.view.getState(a.getCellA…
1259 …tRootChange(a,b){this.view=a;this.previous=this.root=b;this.isUp=null==b;if(!this.isUp)for(var c=t…
1260view.currentRoot;this.view.currentRoot=this.previous;this.previous=a;a=this.view.graph.getTranslat…
1262view=this.createGraphView();this.view.rendering=null!=e?e:this.view.rendering;this.graphModelChang…
1263 …h.prototype.isMouseDown=!1;mxGraph.prototype.model=null;mxGraph.prototype.view=null;mxGraph.protot… method in mxGraph
1273 …function(a){this.container=a;this.cellEditor=this.createCellEditor();this.view.init();this.sizeDid…
1276 …type.getModel=function(){return this.model};mxGraph.prototype.getView=function(){return this.view};
1279 …r b=0;b<a.length;b++)this.processChange(a[b]);this.updateSelection();this.view.validate();this.siz…
1280 …isCellVisible(a[c]))for(var d=this.model.getParent(a[c]);null!=d&&d!=this.view.currentRoot;){if(th…
1281view.scale=1,this.view.translate.x=0,this.view.translate.y=0),this.fireEvent(new mxEventObject(mxE…
1282view.currentRoot==a.child&&this.home();b!=a.previous&&(null!=b&&this.view.invalidate(b,!1,!1),null…
1283 …+)this.removeStateForCell(this.model.getChildAt(a,c));this.view.invalidate(a,!1,!0);this.view.remo…
1284 …tion(a,b){null==a.overlays&&(a.overlays=[]);a.overlays.push(b);var c=this.view.getState(a);null!=c…
1285 …=c?(a.overlays.splice(c,1),0==a.overlays.length&&(a.overlays=null),c=this.view.getState(a),null!=c…
1286 …rlays=function(a){var b=a.overlays;if(null!=b){a.overlays=null;var c=this.view.getState(a);null!=c…
1292 …AltDown(b)))){d=c;for(a=[];null!=d;){var d=this.model.getParent(d),f=this.view.getState(d);this.is…
1294 …Consumed(b)&&!c.isConsumed()&&this.connectionHandler.isEnabled()&&(b=this.view.getState(this.conne…
1297view.getDrawPane().ownerSVGElement;var g=this.container.scrollWidth+d-f}else g=Math.max(e.clientWi…
1298 b=this.container.scrollHeight+d-f):(b=Math.max(e.clientHeight,e.scrollHeight)+d-f,a=this.view.getCa…
1300 …Width):0))};mxGraph.prototype.getPreferredPageSize=function(a,b,c){a=this.view.translate;var d=thi…
1301 …=this.view.getGraphBounds();if(0<g.width&&0<g.height){b&&null!=g.x&&null!=g.y&&(g=g.clone(),g.widt…
1302view.scale!=e&&this.view.setScale(e):mxUtils.hasScrollbars(this.container)?(this.view.setScale(e),…
1303 …h.floor(this.view.translate.x-g.x/k+a/e+c/2):a,null!=g.y?Math.floor(this.view.translate.y-g.y/k+a/…
1304 …var d=this.getPreferredPageSize(a,Math.max(1,c),Math.max(1,b));null!=d&&(c=d.width*this.view.scale,
1305view.scale)}null!=this.minimumGraphSize&&(c=Math.max(c,this.minimumGraphSize.width*this.view.scale…
1307 mxGraph.prototype.updatePageBreaks=function(a,b,c){b=this.view.scale;c=this.view.translate;var d=th…
1309 …is.dialect,d.pointerEvents=!1,d.isDashed=this.pageBreakDashed,d.init(this.view.backgroundPane),d.r…
1310 mxGraph.prototype.getCurrentCellStyle=function(a,b){var c=b?null:this.view.getState(a);return null!…
1325 …(d,e,f,null,null,!0);for(var b=b.concat(d),g=0;g<d.length;g++){var k=this.view.getState(d[g]),l=th…
1330 …his.model.isVertex(a[c])||this.model.isEdge(a[c])){var d=this.view.getBoundingBox(this.view.getSta…
1331view.scale,l=this.view.translate,e=this.model.cloneCells(a,!0,c),g=0;g<a.length;g++)if(!b&&this.mo…
1332 p=this.view.getState(this.model.getParent(a[g]));if(null!=n&&null!=p)if(c=d?0:p.origin.x,p=d?0:p.or…
1336view.getState(b):null,m=null!=l?l.origin:null,n=new mxPoint(0,0),l=0;l<a.length;l++)if(null==a[l])…
1339 …onary,e=0;e<a.length;e++)d.put(a[e],!0);for(e=0;e<c.length;e++)null!=this.view.getState(c[e])||d.g…
1341view.scale,c=this.view.translate;this.model.beginUpdate();try{for(var d=new mxDictionary,e=0;e<a.l…
1342 …(new mxPoint(k[m].x/b-c.x-l.origin.x,k[m].y/b-c.y-l.origin.y),f)):(k=this.view.getState(k),null!=k…
1343 …ell(a);var l=this.view.getState(a),m=this.getCellGeometry(c);if(null!=m&&null!=m.points&&null!=l){…
1353 c.width+8),e&&(d.width=c.width+8),d.height=c.height);this.model.setStyle(a,g)}else{var k=this.view.…
1354 …c.height}if(!b&&!e){var n=this.view.getBounds(this.model.getChildren(a));if(null!=n){var p=this.vi…
1355 mxGraph.prototype.getPreferredSizeForCell=function(a,b){var c=null;if(null!=a){var d=this.view.crea…
1376 … f=this.view.getState(d[e]),g=null!=f?f.getVisibleTerminal(!0):this.view.getVisibleTerminal(d[e],!…
1378 mxGraph.prototype.getOutlineConstraint=function(a,b,c){if(null!=b.shape){c=this.view.getPerimeterBo…
1386 …on(a,b,c){c=null!=c?c:!0;var d=null;if(null!=a&&null!=b.point){var e=this.view.getPerimeterBounds(…
1387view.scale,d=new mxPoint(e.x+b.point.x*e.width+b.dx*d,e.y+b.point.y*e.height+b.dy*d),l=a.style[mxC…
1392view.scale,c=this.view.translate,d=new mxDictionary,e=0;e<a.length;e++)d.put(a[e],!0);for(e=0;e<a.…
1394view.currentRoot};mxGraph.prototype.getTranslateForRoot=function(a){return null};mxGraph.prototype…
1395view.setCurrentRoot(null):this.view.setCurrentRoot(c);null!=this.view.getState(b)&&this.setSelecti…
1396 …turn this.view.getGraphBounds()};mxGraph.prototype.getCellBounds=function(a,b,c){var d=[a];b&&(d=d…
1398 …e k=this.model.getParent(a[d]),e.relative?this.model.isVertex(k)&&k!=this.view.currentRoot&&(g=thi…
1399 …dd(f))}}return c};mxGraph.prototype.refresh=function(a){this.view.clear(a,null==a);this.view.valid…
1400 mxGraph.prototype.snapDelta=function(a,b,c,d,e){var f=this.view.translate,g=this.view.scale;!c&&thi…
1401 …)this.container.scrollLeft=-a,this.container.scrollTop=-b;else{var c=this.view.getCanvas();if(this…
1405view.scale?this.view.setTranslate(0,0):(this.view.translate.x=0,this.view.translate.y=0,this.view.…
1406view.translate,m=this.view.scale,n=a?g-k.width:0,p=b?f-k.height:0;e?(k.x-=l.x,k.y-=l.y,a=this.cont…
1407 (a-g)/2,this.container.scrollTop=(b-f)/2):this.view.setTranslate(a?Math.floor(l.x-k.x/m+n*c/m):l.x,…
1408view.scale*a*100)/100,d=this.view.getState(this.getSelectionCell());a=c/this.view.scale;if(this.ke…
1409view.scale),d*=f,e*=f;this.view.scaleAndTranslate(c,this.view.translate.x+d,this.view.translate.y+…
1410 g)*this.view.scale+Math.round(l*a+e))}};
1412view.scale*b;mxUtils.hasScrollbars(this.container)?(this.view.setScale(c),this.container.scrollLef…
1413view.translate.x,d=-this.view.translate.y,e=this.view.getState(a);null!=e&&(c=new mxRectangle(c+e.…
1414 d.x,this.view.translate.y=d.y,this.view.setTranslate(c.x,c.y)))};
1415 …ls.hasScrollbars(this.container)){c=this.container;a.x+=this.view.translate.x;a.y+=this.view.trans…
1416view.setTranslate(d,g)}else{var g=-this.view.translate.x,k=-this.view.translate.y,l=this.view.scal…
1418 …a){var b=a.style[mxConstants.STYLE_ORTHOGONAL];if(null!=b)return b;a=this.view.getEdgeStyle(a);ret…
1424 …his.validateCell(a,b);null!=e&&(d+=e);null==this.model.getParent(a)&&this.view.validate();return 0…
1463 …if(null!=g)return g;if(this.isCellVisible(f)&&this.isSwimlane(f)&&(g=this.view.getState(f),this.in…
1464 …Visible(k)&&(e&&this.model.isEdge(k)||d&&this.model.isVertex(k))&&(l=this.view.getState(k),null!=l…
1468 …)n=this.view.getState(g[m]),l=null!=n?n.getVisibleTerminal(!0):this.view.getVisibleTerminal(g[m],!…
1470 … k=this.view.getState(a[g]),l=null!=k?k.getVisibleTerminal(!0):this.view.getVisibleTerminal(a[g],!…
1471 … g=this.view.getState(d[f]),k=null!=g?g.getVisibleTerminal(!0):this.view.getVisibleTerminal(d[f],!…
1472 …is.container,mxEvent.getClientX(a),mxEvent.getClientY(a)),d=this.view.scale,e=this.view.translate,…
1473 …)for(var q=m.getChildCount(e),r=0;r<q;r++){var t=m.getChildAt(e,r),u=this.view.getState(t);if(null…
1474 …del.getChildCount(c),k=0;k<g;k++){var l=this.model.getChildAt(c,k),m=this.view.getState(l);this.is…
1475 …for(var n=this.getConnections(m,b?a:null),p=0,q=0,r=0;r<n.length;r++)this.view.getVisibleTerminal(…
1480 …s.model.getChildAt(d,0),this.setSelectionCell(a)):null!=e&&!b||null==this.view.getState(d)||null==…
1481 …l.filterDescendants(mxUtils.bind(this,function(b){return b!=a&&null!=this.view.getState(b)}),a):th…
1482 ….getDefaultParent();var e=mxUtils.bind(this,function(c){return null!=this.view.getState(c)&&((d||0…
1484 …!0),c=a.getVisibleTerminalState(!1),d=this.getCellGeometry(a.cell),b=this.view.getEdgeStyle(a,null…
1487 …null==a.getCell()&&this.isMouseDown&&b==mxEvent.MOUSE_MOVE&&(a.state=this.view.getState(this.getCe…
1488 …vent.getClientY(a);b=mxUtils.convertPoint(this.container,b,a);return this.view.getState(this.getCe…
1498 …r.scrollLeft||0!=this.container.scrollTop)){var d=this.view.scale,e=this.view.translate;this.view.…
1502 …er.destroy(),null!=this.cellEditor&&this.cellEditor.destroy(),null!=this.view&&this.view.destroy(),
1505 mxCellOverlay.prototype.getBounds=function(a){var b=a.view.graph.getModel().isEdge(a.cell),c=a.view
1513view.translate,n=this.viewport.getBoundingClientRect(),l=(mxEvent.getClientX(f)-n.left)*e/this.sou…
1514 ….getClientX(a)-b.x)*e/this.source.view.scale,d=(mxEvent.getClientY(a)-b.y)*e/this.source.view.scal…
1517 ….drawPane.parentNode.removeChild(this.drawPane);this.drawPane=this.source.view.getDrawPane().clone…
1518 …Svg=function(a){var b=mxClient.IS_IE11?Math.max(1,this.source.view.scale):this.source.view.scale;A…
1550 function mxTemporaryCellStates(a,b,c,d,e,f){b=null!=b?b:1;this.view=a;this.oldValidateCellState=a.v…
1551 …(l)}a.setGraphBounds(b||new mxRectangle)}}mxTemporaryCellStates.prototype.view=null;mxTemporaryCel… method in mxTemporaryCellStates
1552view.setScale(this.oldScale);this.view.setStates(this.oldStates);this.view.setGraphBounds(this.old…
1555view.updateCellState(a);var e=d.getGeometry(a.cell);0==b&&0==c||null==e||e.relative&&null==this.de…
1556view.updateCellState(a);var f=this.graph.getCellGeometry(a.cell),g=a.view.getState(e.getParent(a.c…
1557 …var b=this.graph.getModel(),c=b.getEdgeCount(a.cell),d=0;d<c;d++){var e=a.view.getState(b.getEdgeA…
1567view.getState(c.getParent(b.cell));null!=d&&!this.graph.isCellSelected(d.cell)&&(c.isVertex(d.cell…
1570view.getState(a);if(null!=c){if(!(b.isSource(c.control)||this.graph.isToggleEvent(b.getEvent())&&m…
1574 …turn null!=this.graph.view.getState(a)&&b.isVertex(a)&&null!=b.getGeometry(a)&&!b.getGeometry(a).r…
1576 …,d=0;d<a.length;d++)if(c.isVertex(a[d])||c.isEdge(a[d])){var e=this.graph.view.getState(a[d]);if(n…
1579 ….graph.getEdges(this.cell),this.cell);for(b=0;b<a.length;b++)c=this.graph.view.getState(a[b]),null…
1580 b!=(this.target||e))})}};mxGraphHandler.prototype.addStates=function(a,b){var c=this.graph.view.get…
1581 …mxGraphHandler.prototype.snap=function(a){var b=this.scaleGrid?this.graph.view.scale:1;a.x=this.gr…
1590 …lls&&this.allCells.visit(mxUtils.bind(this,function(d,e){var f=this.graph.view.getState(e.cell);f!…
1591 …BoundingBox.x+=a,e.text.unrotatedBoundingBox.y+=b)):(e.view.graph.cellRenderer.redraw(e,!0),e.view
1592view.scale,e=0;e<c.length;e++){var f=c[e][0];if(this.graph.model.isEdge(f.cell)){var g=this.graph.…
1593view.updateFixedTerminalPoint(f,l,!1,this.graph.getConnectionConstraint(f,l,!1)):(l=m[m.length-1],…
1597 …is.cloning||null!=b.text&&b.text.updateBoundingBox();b.view.invalidate(b.cell)})),this.graph.view.…
1604 mxGraphHandler.prototype.shouldRemoveParent=function(a){a=this.graph.view.getState(a);return null!=…
1609 …this.initialScale&&(this.initialScale=null):(this.initialScale=this.graph.view.scale,this.active||…
1617 …inScale,b));null!=this.maxScale&&(b=Math.min(this.maxScale,b));this.graph.view.scale!=b&&(this.gra…
1636 …(this.getHandledSelectionCells(),!1),c=0;c<b.length;c++){var d=this.graph.view.getState(b[c]);if(n…
1637 b.destroy()}));for(c=0;c<b.length;c++)d=this.graph.view.getState(b[c]),null!=d&&(e=this.handlers.ge…
1645 …tants.INVALID_COLOR);a.dialect=mxConstants.DIALECT_SVG;a.scale=this.graph.view.scale;a.svgStrokeTo…
1646 …te),this.constraintHandler.reset()):null!=this.previous&&null==this.graph.view.getState(this.previ…
1667 …!=this.marker.highlight&&null!=this.marker.highlight.shape&&(c=this.graph.view.scale,null!=this.co…
1670 …(a.getEvent())&&null!=this.previous){var c=this.graph.gridSize*this.graph.view.scale/2,d=null!=thi…
1680view.updateFixedTerminalPoint(this.edgeState,this.previous,!0,this.sourceConstraint);null!=this.cu…
1681 …nvertWaypoint(e);c[d]=e}this.graph.view.updatePoints(this.edgeState,c,this.previous,this.currentSt…
1682 mxConnectionHandler.prototype.getTargetPerimeterPoint=function(a,b){var c=null,d=a.view,e=d.getPeri…
1683 mxConnectionHandler.prototype.getSourcePerimeterPoint=function(a,b,c){c=null;var d=a.view,e=d.getPe…
1685 …s.graph.tolerance))null==this.waypoints&&(this.waypoints=[]),c=this.graph.view.scale,b=new mxPoint…
1695view.scale,r=this.graph.view.translate;p.points=[];for(a=0;a<this.waypoints.length;a++){var t=this…
1698 …raph.getModel().getGeometry(d);if(null!=c){var e=this.graph.view.translate,f=this.graph.view.scale…
1699 if(0<g){var k=this.graph.view.getState(b);if(null!=k){var l=k.x/f-e.x,e=k.y/f-e.y;Math.abs(l-c.x)<=…
1703view.getState(this.currentFocus.cell)?this.reset():this.redraw()});this.graph.model.addListener(mx…
1709 …),e=new mxRectangle(a.getGraphX()-e,a.getGraphY()-e,2*e,2*e),k=this.graph.view.getState(this.getCe…
1713 …entFocus&&null!=this.constraints&&null!=this.focusIcons){var a=this.graph.view.getState(this.curre…
1719 …etHandler&&(this.graph.model.removeListener(this.resetHandler),this.graph.view.removeListener(this…
1731 …haredDiv&&(this.sharedDiv=null))};function mxHandle(a,b,c,d){this.graph=a.view.graph;this.state=a;…
1733 mxHandle.prototype.processEvent=function(a){var b=this.graph.view.scale,c=this.graph.view.translate…
1737 …ation()),a=this.rotatePoint(this.flipPoint(a),b),b=this.graph.view.scale,c=this.graph.view.transla…
1741view.graph.cellRenderer.redraw(this.state,!0),this.state.view.invalidate(this.state.cell),this.sta…
1744 mxVertexHandler.prototype.init=function(){this.graph=this.state.view.graph;this.selectionBounds=thi…
1751 …ngth&&(this.minBounds=this.graph.view.getBounds(a),null!=this.minBounds)){var a=this.state.view.sc…
1761 …=this.createGhostPreview();else{a=this.state.view.graph.model;b=a.getParent(this.state.cell);this.…
1762view.graph.view.getState(b));this.selectionBorder.node.style.display=c==mxEvent.ROTATION_HANDLE?"i…
1765 …llRenderer.createShape(this.state);a.init(this.graph.view.getOverlayPane());a.scale=this.state.vie…
1770 …};mxVertexHandler.prototype.isGhostPreview=function(){return 0<this.state.view.graph.model.getChil…
1771 …var b=new mxPoint(a.getGraphX(),a.getGraphY()),c=this.graph.view.translate,d=this.graph.view.scale…
1774 …0"),d=new mxPoint(a.getGraphX(),a.getGraphY()),e=this.graph.view.translate,f=this.graph.view.scale…
1780 …dler.prototype.updateLivePreview=function(a){var b=this.graph.view.scale,c=this.graph.view.transla…
1781view.scale*c.x,this.state.absoluteOffset.y=this.state.view.scale*c.y),this.state.view.updateVertex…
1784view.invalidate(this.state.cell,!1,!1),this.state.view.validate());this.graph.getModel().beginUpda…
1786 …,n=c.x-this.startX,p=c.y-this.startY,c=m*n+l*p,n=l*n-m*p,p=c,q=this.graph.view.scale,r=this.isRecu…
1792 …xConstants.STYLE_ROTATION]||"0"),g=Math.cos(d),c=Math.sin(d),d=this.graph.view.scale,g=mxUtils.get…
1793 b)):null!=this.unscaledBounds&&(d=this.graph.view.scale,0==this.childOffsetX&&0==this.childOffsetY|…
1805view.graph.isEditing()||!this.handlesVisible?"hidden":""));null!=this.selectionBorder&&(this.selec…
1807 …lightVisible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=t…
1811view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.preview&&(this.p…
1813 …reset();d&&this.graph.cellRenderer.redraw(this.state,!1,a.view.isRendering())}),this.state.view.gr…
1816 mxEdgeHandler.prototype.init=function(){this.graph=this.state.view.graph;this.marker=this.createMar…
1825 …sValidState=function(a){var c=b.graph.getModel(),c=b.graph.view.getTerminalPort(a,b.graph.view.get…
1829 …),d=this.graph.getCellGeometry(this.state.cell);return(null!=d?this.graph.view.getEdgeStyle(this.s…
1839 …tSnapToTerminalTolerance=function(){return this.graph.gridSize*this.graph.view.scale/2};mxEdgeHand…
1844 …,"transparent"),a=this.graph.getModel(),a=this.graph.view.getTerminalPort(this.state,this.graph.vi…
1847 …);if(null==l||null==this.graph.getConnectionPoint(k,l))g[0]=new mxPoint(k.view.getRoutingCenterX(k…
1848view.getRoutingCenterY(k))}k=this.state.getVisibleTerminalState(!1);null!=k&&(l=this.graph.getConn…
1852 …his.marker.highlight&&null!=this.marker.highlight.shape){var n=this.graph.view.scale;null!=this.co…
1854 …nalState(g,!1);this.isSource&&null==f||a.view.updateFixedTerminalPoint(a,f,!0,k);this.isTarget&&nu…
1855 …&(this.error=this.graph.allowDanglingEdges?null:""));a.view.updatePoints(a,this.points,f,g);a.view
1864view.scale-this.graph.view.translate.x),f.y=this.roundLength(f.y/this.graph.view.scale-this.graph.
1869 …d(1E4*g.x)/1E4;e.y=Math.round(g.y);e.offset=new mxPoint(0,0);g=this.graph.view.getPoint(a,e);e.off…
1874view.translate;c=this.graph.view.scale;var e=new mxPoint(e.x*c,e.y*c),f=this.graph.model.getParent…
1882 …tomHandleVisible=function(a){return!this.graph.isEditing()&&1==this.state.view.graph.getSelectionC…
1886 …ate),this.shape.points=this.abspoints.slice(),this.shape.scale=this.state.view.scale,this.shape.is…
1890view.graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.marker&&(this.ma…
1901 …){var a=this.state.absolutePoints;if(null!=a){var b=Math.max(1,this.graph.view.scale);if(2==a.leng…
1903 c=this.state.getVisibleTerminalState(!1),f=this.state.view.getScale(),g=this.state.view.getTranslat…
1906 …ew mxPoint(b.x,k)]}this.points=k;a.view.updateFixedTerminalPoints(a,f,g);a.view.updatePoints(a,thi…
1928 …andler=mxUtils.bind(this,function(){if(null!=this.state){var a=this.graph.view.getState(this.state…
1933 …nction(){null!=this.state&&null!=this.shape&&(this.shape.scale=this.state.view.scale,this.graph.mo…
1934 "0"),this.shape.strokewidth=this.getStrokeWidth()/this.state.view.scale,this.shape.outline=!0),null…
2053 …late.x=0;this.graph.currentTranslate.y=0;this.updateGraphComponents();this.graph.view.setScale(1)};
2057 …e){this.graph.model.beginUpdate();try{this.graph.model.clear(),this.graph.view.scale=1,this.readGr…
2059view.translate.x||0!=this.graph.view.translate.y)b.setAttribute("dx",Math.round(100*this.graph.vie…
2061 …e.updateGraphComponents=function(){var b=this.graph;null!=b.container&&(b.view.validateBackground(…
2064 g.length;d++)null!=b.view.getState(g[d])&&k.push(g[d]);b.setSelectionCells(k)}};c.addListener(mxEve…
2123view.backgroundPageShape&&(g=this.getBackgroundPageBounds(),f=1+g.x,g=1+g.y);e=-Math.round(e-mxUti…
2126view.canvas;null!=f.ownerSVGElement&&(f=f.ownerSVGElement);var l=this.gridSize*this.view.scale*thi…
2128 …is.dialect,c.isDashed=this.pageBreakDashed,c.pointerEvents=!1,c.init(this.view.backgroundPane),c.r…
2131 …k.apply(this,arguments);this.dialect==mxConstants.DIALECT_SVG||null==this.view.backgroundPageShape…
2132 …mxUtils.hasScrollbars(this.container)||(this.view.backgroundPageShape.node.style.marginLeft=b+"px"…
2134view.getState(f),e=this.graph.isCellSelected(b);null!=c&&(d.isVertex(f)||d.isEdge(f));){var g=this…
2137 … endFill endSize".split(" ");this.setDefaultStyle=function(b){try{var d=k.view.getState(b);if(null…
2144 …ger=!1;k.init(this.diagramContainer);mxClient.IS_SVG&&null!=k.view.getDrawPane()&&(c=k.view.getDra…
2152 …)),window.setTimeout(function(){null!=C.hoverIcons&&C.hoverIcons.update(k.view.getState(f[f.length…
2161view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(…
2166 …ddListener("wheel",e);b.addListener(mxEvent.ESCAPE,e);b.view.addListener(mxEvent.SCALE,e);b.view.a…
2169 …tils.bind(this,function(d){q(d);null!=c.hoverIcons&&c.hoverIcons.update(b.view.getState(d))}),e)})…
2171 c.hoverIcons.update(b.view.getState(d))},function(d){b.selectCellsForConnectVertex(d)},l,this.hover…
2174 …ength){var l=this,q=this.editor.graph,f=document.createElement("div");g=q.view.getState(e);var m=n…
2176 …x=q.snap(Math.round(b/q.view.scale)-q.view.translate.x-d.geometry.width/2);f.geometry.y=q.snap(Mat…
2177 q.scrollCellToVisible(f);q.startEditingAtCell(f);null!=l.hoverIcons&&l.hoverIcons.update(q.view.get…
2192view.getState(e[k]);if(null!=u){var v=c.getCellGeometry(l[k]);null!=v&&v.relative&&!g.isEdge(e[k])…
2195 …((b.container.offsetWidth-34)/b.view.scale)),Math.max(0,Math.round((b.container.offsetHeight-34)/b…
2196 … l=b.pageVisible?b.view.getBackgroundPageBounds():b.getGraphBounds(),g=mxUtils.hasScrollbars(b.con…
2197 …ider/d;g&&(f=Math.max(f,0),A=Math.max(A,0));if(g||l.width<v||l.height<n)b.view.scaleAndTranslate(d…
2198 …rollTop=H*d/q,b.container.scrollLeft=k*d/q;else if(0!=c||0!=e)l=b.view.translate,b.view.setTransla…
2206 p(mxUtils.bind(this,function(d){b.isLightboxView()?(1==b.view.scale?this.lightboxFit():b.zoomTo(1),…
2216 b.view.validate;b.view.validate=function(){if(null!=this.graph.container&&mxUtils.hasScrollbars(thi…
2217view.translate.x==e&&this.view.translate.y==f?M.apply(this,arguments):(this.autoTranslate=!0,this.
2218view.scale),this.autoTranslate=!1)}else this.fireEvent(new mxEventObject(mxEvent.SIZE,"bounds",thi…
2219view.backgroundPageShape.node.style,"transform",null)),K.style.transformOrigin="",E.style.transfor…
2220 …),l=b.view.scale,g=0,q=0;null!=L&&(g=b.container.offsetWidth/2-L.x+f.x,q=b.container.offsetHeight/…
2221 …T)){T=Date.now();d?.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor*=(this…
2222view.scale*this.cumulativeZoomFactor*20)/20/this.view.scale):.15>=this.view.scale*this.cumulativeZ…
2224 …+this.cumulativeZoomFactor+")";null!=b.view.backgroundPageShape&&null!=b.view.backgroundPageShape.…
2225 …ansform","scale("+this.cumulativeZoomFactor+")"));b.view.getDecoratorPane().style.opacity="0";b.vi…
2226 …ScrollWheelEvent(d))c=b.view.getTranslate(),e=40/b.view.scale,mxEvent.isShiftDown(d)?b.view.setTra…
2229 EditorUi.prototype.lightboxFit=function(b){if(this.isDiagramEmpty())this.editor.graph.view.setScale…
2231 …t("invalidOrMissingFile")+": "+k.message)}}))}catch(b){}this.editor.graph.view.validate();this.edi…
2236 …ainer.style.overflow&&(c.container.scrollTop=0,c.container.scrollLeft=0,c.view.scaleAndTranslate(1…
2237 …crollTop=0,b.container.scrollLeft=0,mxUtils.hasScrollbars(b.container)||b.view.setTranslate(0,0);e…
2238 …else{var c=b.getGraphBounds(),e=Math.max(c.width,b.scrollTileSize.width*b.view.scale);b.container.…
2239view.scale))/4)));b.container.scrollLeft=Math.floor(Math.max(0,c.x-Math.max(0,(b.container.clientW…
2240view.translate.x*c.view.scale-c.container.scrollLeft,g=c.view.translate.y*c.view.scale-c.container…
2241view.scale-g);c.defaultPageVisible=b;this.fireEvent(new mxEventObject("pageViewChanged"))};functio…
2246view.validateBackground();this.fireEvent(new mxEventObject("backgroundColorChanged"))};EditorUi.pr…
2247 …r.graph.pageFormat=b;c||(this.editor.graph.pageVisible?(this.editor.graph.view.validateBackground(…
2248view.validateBackground(),this.editor.graph.sizeDidChange()):this.actions.get("pageView").funct();…
2253 …up").setEnabled(k&&b.getModel().isVertex(b.getModel().getParent(p[0])));b.view.getState(b.getSelec…
2254view.currentRoot);this.actions.get("collapsible").setEnabled(c&&(b.isContainer(b.getSelectionCell(…
2295 …age=function(b){this.editor.graph.setBackgroundImage(b);this.editor.graph.view.validateBackgroundI…
2302 …ToVisible(k.getSelectionCell()),null!=e.hoverIcons&&e.hoverIcons.update(k.view.getState(k.getSelec…
2319 …e")&&this.isEnabled()){var e=c.getProperty("event"),g=e.getState(),k=this.view.scale;if(!mxEvent.i…
2323 …dles.length+1,m.start(e.getGraphX(),e.getGraphY(),u),e.consume())),g=this.view.getState(this.model…
2325 var m=this.view.getEdgeStyle(e),n=m==mxEdgeStyle.EntityRelation;q||l!=mxEvent.LABEL_HANDLE||(g=l);i…
2328 …er";else if(null!=e.visibleSourceState||null!=e.visibleTargetState)g=this.view.getEdgeStyle(e),k="…
2330 …{if(this.isSwimlane(n.cell)){var m=this.getActualStartSize(n.cell),v=this.view.scale;(0<m.x||0<m.w…
2331view.getState(this.model.getParent(n.cell))}}null!=k&&e.setCursor(k)}}),mouseUp:mxUtils.bind(this,…
2333 …=this.graph.pageScale,e=f.width*c,f=f.height*c,c=this.graph.view.translate,l=this.graph.view.scale…
2344 ….connectionHandler.constraintHandler.isStateIgnored=function(b,d){var f=b.view.graph;return d&&(f.…
2367 …c){mxCellRenderer.prototype.initializeLabel.apply(this,arguments);var e=b.view.graph.tolerance,k=!…
2368 f&&f!=c.node;){if("a"==f.nodeName.toLowerCase()){b.view.graph.labelLinkClicked(b,f,d);break}f=f.par…
2370 …pe.getCommonStyle=function(b){for(var d={},f=0;f<b.length;f++){var c=this.view.getState(b[f]);this…
2375 …Visible(k)&&(e&&this.model.isEdge(k)||c&&this.model.isVertex(k))&&(q=this.view.getState(k),null!=q…
2380 …(b[f]);return d};Graph.prototype.updateCssTransform=function(){var b=this.view.getDrawPane();if(nu…
2382 …n(b,d,f){var c=this.useCssTransforms,e=this.view.scale,g=this.view.translate;c&&(this.view.scale=1…
2383 new mxPoint(0,0),this.useCssTransforms=!1);p.apply(this,arguments);c&&(this.view.scale=e,this.view.…
2393 Graph.prototype.getNodesForCells=function(b){for(var c=[],e=0;e<b.length;e++){var k=this.view.getSt…
2394 Graph.prototype.createWipeAnimations=function(b,c){for(var e=[],k=0;k<b.length;k++){var g=this.view
2400view.scale-this.view.translate.x)/b.width),k=Math.floor(Math.ceil(c.y/this.view.scale-this.view.tr…
2401 …is.model.cells[c];this.isReplacePlaceholders(e)&&(this.view.invalidate(e,!1,!1),b=!0)}b&&this.view
2417 …oVisible(b[1]),null!=e&&(mxEvent.isTouchEvent(c)?e.update(e.getState(this.view.getState(b[1]))):e.…
2419 …e),q.y+=l.geometry.height/2);var m=this.view.getState(this.model.getParent(b));e=this.view.scale;v…
2420view.getState(b),u=null,v=null;if(null!=p){p=p.reverse();for(var y=0;y<p.length;y++)if(!this.isCel…
2430view.getState(e[p]),d=this.getCellGeometry(e[p]);if(null!=t&&null!=d){var f=Math.round(d.width-t.w…
2432 …eyond(b.x,b.y,c,!0,!0);for(c=0;c<g.length;c++)if(g[c]!=b.cell){var p=this.view.getState(g[c]),t=th…
2433view.getState(b);null!=t&&null!=p&&(p=p.clone(),c.horizontal?p.width+=e+Math.min(0,t.width/this.vi…
2437view.scale*b,160))/this.view.scale;mxGraph.prototype.zoom.apply(this,arguments)};Graph.prototype.z…
2438 …{.15>=this.view.scale?this.zoom((this.view.scale-.01)/this.view.scale):this.zoom(Math.round(1/this…
2439 …))/20;this.zoomTo(g);if(mxUtils.hasScrollbars(this.container)){var p=this.view.translate;this.cont…
2443 …nt: infinite;\n}\n@keyframes "+b+" {\nto {\nstroke-dashoffset: "+-16*this.view.scale+";\n}\n}"};Gr…
2451 …h.view.addListener(mxEvent.SCALE_AND_TRANSLATE,this.repaintHandler);this.graph.view.addListener(mx…
2452 this.graph.view.addListener(mxEvent.DOWN,this.repaintHandler);this.graph.view.addListener(mxEvent.U…
2455 …aph.getSelectionCell())?this.reset():this.update(this.getState(this.graph.view.getState(this.graph…
2463 …nt=b))};HoverIcons.prototype.getStateAt=function(b,c,e){return this.graph.view.getState(this.graph…
2474 …his.graph.isCellLocked(b)||this.graph.model.isEdge(b))b=null;b=this.graph.view.getState(b);null!=b…
2498 …ts);if(null!=this.state&&null!=this.node&&this.state.view.graph.enableFlowAnimation&&this.state.vi…
2499 …HED,"0")&&b[1].setAttribute("stroke-dasharray",8*this.state.view.scale);var d=this.state.view.grap…
2509 …arguments);"1"==b.getAttribute("placeholders")&&null!=c.state&&(e=c.state.view.graph.replacePlaceh…
2523 …graph.createEdge(null,null,null,null,null,b);b=new mxCellState(this.graph.view,b,this.graph.getCel…
2531view.getState(b[e]);if(null!=q){var m=this.getCellGeometry(f[e]);null!=m&&m.relative&&!this.model.…
2535 …SelectionCell(),e=null,g=[],k=mxUtils.bind(this,function(d){if(null!=this.view.getState(d)&&(this.…
2536 …es=function(b,d){var f=!1;if(null!=d&&1==b.length){var c=this.view.getState(d),e=this.view.getStat…
2548 …TerminalPoint(n,!0);f.setGeometry(g,m);var H=this.view.getState(g),v=this.view.getState(l),u=this.
2549 …2;var x=m.width;m.width=m.height;m.height=x;f.setGeometry(g,m)}var J=this.view.getState(g);if(null…
2551 …ableRow(d)&&(d=this.model.getParent(d));var f=this.view.getState(d);null!=f&&null!=f.shape&&(this.
2552view.getState(b[d]);null!=f&&null!=f.shape&&null!=f.shape.stencil&&this.stencilHasPlaceholders(f.s…
2556 …ll==e||d.get(e)||(d.put(e,!0),c.push(e))}for(f=0;f<c.length;f++)if(e=this.view.getState(c[f]),null…
2557 [],f=0;f<b.length;f++)this.isCellDeletable(b[f])&&this.isTransparentState(this.view.getState(b[f]))…
2560 …(b));if(null!=b&&!this.model.isVertex(d)){var c=this.model.isEdge(d)?this.view.getState(d):null,e=…
2561 …d(c.cell))||!(null!=c||mxClient.IS_SVG&&e==this.view.getCanvas().ownerSVGElement)||(null==c&&(c=th…
2562view.scale-this.view.translate.x,f=this.container.scrollTop/this.view.scale-this.view.translate.y;…
2563 …s.view.scale-this.view.translate.x-b.width/2)),this.snap(Math.round((this.container.scrollTop+this…
2564 …entWidth/2/this.view.scale-this.view.translate.x-b.width/2)),this.snap(Math.round(this.container.c…
2565view.getRelativePoint(f,b,d);c.geometry.x=Math.round(1E4*e.x)/1E4;c.geometry.y=Math.round(e.y);c.g…
2566 e.x-(null!=f?f.origin.x:0),c.geometry.y=Math.round(d/this.view.scale)-e.y-(null!=f?f.origin.y:0),c.…
2568 …ull==l.getLinkForCell(b.cell)}),d=null==d||l.model.isAncestor(b,d.cell)?l.view.getState(b):null;d!…
2577 …l,e=null,g=0;g<d.length;g++)if(this.getModel().isVertex(d[g])){var l=this.view.getState(d[g]);if(n…
2578view.translate;k=this.view.scale;e=e/k-(b?l.x:l.y);c=c/k-(b?l.x:l.y);this.getModel().beginUpdate()…
2580view.revalidate(),this.sizeDidChange();try{d=null!=d?d:1;f=null!=f?f:0;e=null!=e?e:!0;g=null!=g?g:…
2581view.scale;"diagram"==v&&null!=this.backgroundImage&&(p=mxRectangle.fromRectangle(p),p.add(new mxR…
2584 …n Z.apply(this,arguments)};var N=this.backgroundImage;if(null!=N){d=x/d;var aa=this.view.translate,
2585 …s,arguments);return null==f||b.view.graph.isCustomLink(f)?null:f};k.getLinkTargetForCellState=func…
2586view.graph,c=null!=A?A.get(b.cell):f.isCellSelected(b.cell),e=f.model.getParent(b.cell);!(g&&null=…
2603 …Swimlane(f)&&this.hitsSwimlaneContent(f,d.graphX,d.graphY)||(d.state=this.view.getState(f),null!=d…
2605 …])})};mxCellEditor.prototype.isContentEditing=function(){var b=this.graph.view.getState(this.editi…
2610 …s.graph.getStartEditingCell(b,d);x.apply(this,arguments);var f=this.graph.view.getState(b);this.te…
2614 …,0)}))};mxCellEditor.prototype.toggleViewMode=function(){var b=this.graph.view.getState(this.editi…
2620 ….getView().getState(this.editingCell),this.codeViewMode&&null!=b){var f=b.view.scale;this.bounds=m…
2628view.translate,e=this.graph.view.scale;d=this.roundLength((this.bounds.x+this.currentDx)/e-f.x);f=…
2634 function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model…
2636view.getCellStates(f.getChildCells(this.state.cell,!0));if(0<l.length){for(var k=f.getChildCells(l…
2637 …lState(d.view,k[f],d.getCellStyle(k[f])),l.x=c.x+m.x*d.view.scale,l.y=c.y+m.y*d.view.scale,l.width…
2638view.scale;this.shape.bounds.width=1;this.shape.bounds.y=c.y+(f==k.length-1?0:b.y*this.graph.view.…
2640 …ate.width,this.shape.bounds.y=this.state.y+this.state.height+m*this.graph.view.scale,this.shape.bo…
2644 …his.moveHandles.push(f);this.graph.container.appendChild(f)}})(this.graph.view.getState(b.getChild…
2647 …s.index!=mxEvent.LABEL_HANDLE){null==this.hint&&(this.hint=b(),this.state.view.graph.container.app…
2648 this.state.view.scale;var f=this.state.view.unit;this.hint.innerHTML=c(this.roundLength(this.bounds…
2650view.graph.container.appendChild(this.hint));var e=this.graph.view.translate,g=this.graph.view.sca…
2663 …ntX&&null!=this.currentY&&(c=this.first.x,e=this.first.y,g=(this.currentX-c)/this.graph.view.scale,
2664view.scale,mxEvent.isAltDown(d.getEvent())||(g=this.graph.snap(g),l=this.graph.snap(l),this.graph.…
2666 …is.isSpaceEvent(d)?(c=this.x+this.width,f=this.y+this.height,e=this.graph.view.scale,mxEvent.isAlt…
2672 …graph.getCellGeometry(b[0]);if(d.isEdge(f)&&null!=c&&c.relative&&(d=this.graph.view.getState(b[0]),
2675 …this.state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVerte…
2676 …_ROTATION,0)+90,360),this.state.view.graph.setCellStyles(mxConstants.STYLE_ROTATION,b,[this.state.…
2678 …nts.HANDLE_STROKECOLOR);f.dialect=mxConstants.DIALECT_SVG;f.init(this.graph.view.getOverlayPane());
2684 …onstraintHandler.isEnabled=mxUtils.bind(this,function(){return this.state.view.graph.connectionHan…
2701 …)}};b.prototype.paintTableForeground=function(b,d,f,c,e){var z=this.state.view.graph,g=z.getActual…
2760 f,c,g):(l=this.state.view.graph.cellRenderer.getShape(l),null!=l&&l!=G&&(l=new l,l.apply(this.state…
2764 …c=mxUtils.getValue(d.style,"size",c)*d.view.scale);d=parseFloat(d.style[mxConstants.STYLE_STROKEWI…
2765 …nstants.STYLE_STROKEWIDTH]||1)*d.view.scale/2-1;null!=d.style.backboneSize&&(c+=parseFloat(d.style…
2766 …(b.height,parseFloat(mxUtils.getValue(d.style,"size",C.prototype.size))*d.view.scale))),d.style),d…
2767 …D.prototype.size;null!=d&&(g=mxUtils.getValue(d.style,"size",g));e&&(g*=d.view.scale);var l=b.x,z=…
2769 …I.prototype.size;null!=d&&(g=mxUtils.getValue(d.style,"size",g));e&&(g*=d.view.scale);var l=b.x,z=…
2771 …L.prototype.size;null!=d&&(g=mxUtils.getValue(d.style,"size",g));e&&(g*=d.view.scale);var l=b.x,z=…
2774 …O.prototype.size;null!=d&&(g=mxUtils.getValue(d.style,"size",g));e&&(g*=d.view.scale);var l=b.x,z=…
2859view.scale+f;return new mxPoint(g.x+c*d/4+e*l/2,g.y+e*d/4-c*l/2)},function(d,c,e,g,l,m){d=Math.sqr…
2860view.translate;var l=b.view.scale,m=f?e[0]:e[g],e=f?e[1]:e[g-1],g=e.x-m.x,k=e.y-m.y,q=Math.sqrt(g*…
2868view.invalidate(this.state.cell);b.view.validate()}}return m},Qa={link:function(b){return[Za(b,!0,…
2869view.scale;return new mxPoint(e.x+f*(g+b.shape.strokewidth*b.view.scale)+c*d/2,e.y+c*(g+b.shape.st…
2870 …unction(d,f,c,e,g){d=(b.shape.getStartArrowWidth()-b.shape.strokewidth)*b.view.scale;g=3*mxUtils.g…
2871view.scale;return new mxPoint(e.x+f*(g+b.shape.strokewidth*b.view.scale)+c*d/2,e.y+c*(g+b.shape.st…
2873view.scale;g=3*mxUtils.getNumber(b.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*b.vie…
2874 Math.round(100*(c-b.shape.strokewidth)/3)/100/b.view.scale;b.style.width=Math.round(2*f)/b.view.sca…
2875view.scale;g=3*mxUtils.getNumber(b.style,mxConstants.STYLE_ENDSIZE,mxConstants.ARROW_SIZE/5)*b.vie…
2876 3)/100/b.view.scale;b.style.endWidth=Math.max(0,Math.round(2*f)-b.shape.getEdgeWidth())/b.view.scal…
2878 …-d.x)))},!1,null,function(d){if(mxEvent.isControlDown(d.getEvent())&&(d=b.view.graph,d.isTableRow(…
2899 …=mxStencilRegistry.getStencil(d)?d=mxConstants.SHAPE_RECTANGLE:this.state.view.graph.isSwimlane(th…
2901 …,Math.sin(Ia));mxEdgeStyle.IsometricConnector=function(b,d,f,c,e){var g=b.view;c=null!=c&&0<c.leng…
2955 ….view.scale,d=g.view.translate.x,c=g.view.translate.y;e.actions.get("resetView").funct();1E-5>Math…
2960 …var d=!0,f=0;f<b.length&&d;f++)d=d&&g.model.isEdge(b[f]);var c=g.view.translate,f=g.view.scale,e=c…
2982 …)?g.getGraphBounds():g.getBoundingBox(g.getSelectionCells()),d=g.view.translate,c=g.view.scale;b.x…
2984 …b=g.getPagePadding(),g.container.scrollTop=b.y*g.view.scale-1,g.container.scrollLeft=Math.min(b.x*…
2986 …ontainer)){var b=g.getPagePadding();g.container.scrollLeft=Math.min(b.x*g.view.scale,(g.container.…
3002 …getModel().endUpdate()}});this.addAction("collapsible",function(){var b=g.view.getState(g.getSelec…
3004 …Handler.getHandler(b);if(d instanceof mxEdgeHandler){for(var c=g.view.translate,e=g.view.scale,n=c…
3035 …;t.cellRenderer.redraw=function(b){b.view.graph.isEditing(b.cell)&&(b.view.graph.scrollCellToVisib…
3037 …tor.updateGraphComponents(),t.refresh()):(f!=t.foldingEnabled?t.view.revalidate():t.view.validate(…
3143 …");"auto"==g&&(g=mxUtils.hex2rgba(null!=this.shape.state?this.shape.state.view.graph.shapeBackgrou…
3179 …itor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.view.x0=
3180 null;this.graph.view.y0=null;mxClient.NO_FO=this.graph.mathEnabled&&!this.useForeignObjectForMath?!…
3204 m&&x.scale(m,m);if(v){var t=u.view,A=t.scale;t.scale=1;var y=btoa(unescape(encodeURIComponent(t.cre…
3237 …type==d[e].type){g=!0;break}g||delete d[e]}},e=this.editorUi.editor.graph.view.getState(b);null!=e…
3269 …,b.appendChild(c));var f=this.editorUi.editor.graph,f=1==d.cells.length?f.view.getState(d.cells[0]…
3298 …undImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundI…
3314 …d,c,f){d=null!=d?d:mxConstants.DEFAULT_VALID_COLOR;c=null!=c?c:1E3;b=this.view.getState(b);if(null…
3319 …l!=d?d:!0,(this.shadowVisible=b)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadow…
3332 …r l=d.useCssTransforms,m=d.currentTranslate,k=d.currentScale,n=d.view.translate,q=d.view.scale;d.u…
3333view.translate=new mxPoint(0,0),d.view.scale=1);var u=d.getGraphBounds(),v=0,p=0,x=M.get(),t=1/d.p…
3338 …l&&(d.useCssTransforms=l,d.currentTranslate=m,d.currentScale=k,d.view.translate=n,d.view.scale=q);…
3396 …BoundingBox(c.getSelectionCells()),l=c.view.scale;k=Math.floor(d.x/l-c.view.translate.x);l=Math.fl…
3410 …rs:d.getExportVariables()};t&&(k.grid={size:d.gridSize,steps:d.view.gridSteps,color:d.view.gridCol…
3417 …b.hasAttribute("scale")&&(g.view.scale=parseFloat(b.getAttribute("scale"))),b.hasAttribute("dx")||…
3439 …getSelectionCells(),c=B.view.getBounds(d),f=B.view.scale;c.x/=f;c.y/=f;c.width/=f;c.height/=f;c.x-…
4018view.getDrawPane().ownerSVGElement;this.graph.view.getCanvas();null!=this.graphConfig.border?e.sty…
4020 …urn d.getImageUrl(b)};mxClient.IS_SVG&&this.graph.addSvgShadow(this.graph.view.canvas.ownerSVGElem…
4023 …(this,arguments);b=this.backgroundImage;if(null!=b){var d=this.view.translate,e=this.view.scale,c=…
4024 this.graph.view.scale=this.graphConfig.zoom||1,g=this.setLayersVisible(),this.responsive||(this.gra…
4025 …his.graphConfig.tooltips);this.graph.initialViewState={translate:this.graph.view.translate.clone(),
4026 scale:this.graph.view.scale};null!=g&&this.setLayersVisible(g);this.graph.customLinkClicked=functio…
4033 …etGraphXml=function(b){if(null!=this.graph){this.graph.view.translate=new mxPoint;this.graph.view.…
4034 {translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};c&&this.setLayersVisible(…
4037 …llFolded=!1,this.positionGraph(this.graph.view.translate),this.graph.initialViewState.translate=th…
4038 …1)),this.graph.initialViewState={translate:this.graph.view.translate.clone(),scale:this.graph.view
4042 …t,this.graph.view.setTranslate(Math.floor(this.graph.border-c.x/this.graph.view.scale)+d.x,Math.fl…
4043 …unds(),e=b.border,k=b.view.scale;b.view.setTranslate(null!=c.x?Math.floor(b.view.translate.x-c.x/k…
4054 …urces.get("zoomIn")||"Zoom In"),b(mxUtils.bind(this,function(){this.graph.view.scaleAndTranslate(t…
4055 …);else if(this.autoOrigin){var b=this.graph.getGraphBounds(),c=this.graph.view;0>b.x||0>b.y?(this.…
4664view.graph.getLabel(this.state.cell),isNaN(f)||(a.stroke(),f=g*Math.round(100*f)/1E3,10!=g&&0!=f&&…