Lines Matching refs:model

267 …l.cell||l.child,!1);if(null!=m)if(g=!0,l.constructor!=mxGeometryChange||a.model.isEdge(l.cell))mxU…
268 …=30;e()},cascadeOpacity:function(a,b,c){for(var d=a.model.getChildCount(b),e=0;e<d;e++){var f=a.mo…
269 c),mxEffects.cascadeOpacity(a,f,c))}b=a.model.getEdges(b);if(null!=b)for(e=0;e<b.length;e++)d=a.get…
379 …opy:function(a,b){b=b||a.getSelectionCells();var c=a.getExportableCells(a.model.getTopmostCells(b)…
490 …ll!=a){c(a,b);for(var d=a.view.graph,e=d.model.getChildCount(a.cell),f=0;f<e;f++){var g=d.view.get…
713 …unction(){return!this.horizontal&&null!=this.state&&this.state.view.graph.model.isVertex(this.stat…
777 …==d||d))&&(d=this.graph.model.getEdgeCount(a),0<d))for(var f=0;f<d;f++){var g=this.graph.model.get…
778 …nction(a,b,c){if(!c)return this.graph.model.getParent(b)==a;if(b==a)return!1;for(;null!=b&&b!=a;)b…
781 mxGraphLayout.prototype.setEdgePoints=function(a,b){if(null!=a){var c=this.graph.model,d=c.getGeome…
849 …arallels(a,b);this.graph.model.beginUpdate();try{for(var d in c){var e=c[d];1<e.length&&this.layou…
873 …0;g<f.length;g++){var k=a.getVisibleTerminal(f[g],!1);if(k!=b[e]&&a.graph.model.isVertex(k)&&!a.is…
884model.getParent(b[f])==e[g]){c[f].swimlaneIndex=g;break}g=a.getEdges(b[f]);c[f].connectsAsSource=[…
935 …f[4*e+1+t];r!=l&&(x=-x);var u=u+x,t=f[4*e+t],y=k.model.getTerminal(n,!0);this.layout.isPort(y)&&k.
937 …&(x=-x),u-=x,t=f[4*e+2-t],r=k.model.getTerminal(n,!1),p=this.layout.getVisibleTerminal(n,!1),this.…
944 …hicalLayout.prototype.traverseAncestors=!0;mxHierarchicalLayout.prototype.model=null;mxHierarchica… method in mxHierarchicalLayout
945 …erarchicalEdgeStyle.POLYLINE;mxHierarchicalLayout.prototype.getModel=function(){return this.model};
946 mxHierarchicalLayout.prototype.execute=function(a,b){this.parent=a;var c=this.graph.model;this.edge…
948 …pe.findRoots=function(a,b){var c=[];if(null!=a&&null!=b){var d=this.graph.model,e=null,f=-1E5,g;fo…
949 …(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b=[],d=this.graph.…
951 …aph.view.getVisibleTerminal(a,b));null!=e&&(this.isPort(e)&&(e=this.graph.model.getParent(e)),c.pu…
953 0;e<b.length;e++){k=b[e];d=[];for(f in k)d.push(k[f]);this.model=new mxGraphHierarchyModel(this,d,t… variable
954 mxHierarchicalLayout.prototype.filterDescendants=function(a,b){var c=this.graph.model;c.isVertex(a)…
957 …mxHierarchicalLayout.prototype.layeringStage=function(){this.model.initialRank();this.model.fixRan…
960 …xSwimlaneLayout.prototype.traverseAncestors=!0;mxSwimlaneLayout.prototype.model=null;mxSwimlaneLay… method in mxSwimlaneLayout
961 …mxHierarchicalEdgeStyle.POLYLINE;mxSwimlaneLayout.prototype.getModel=function(){return this.model};
962 mxSwimlaneLayout.prototype.execute=function(a,b){this.parent=a;var c=this.graph.model;this.edgesCac…
964 mxSwimlaneLayout.prototype.updateGroupBounds=function(){var a=[],b=this.model,c;for(c in b.edgeMapp…
966 2;k.height=a.height+d.height+2*this.parentBorder;this.graph.model.setGeometry(f,k);this.graph.moveC…
967 …pe.findRoots=function(a,b){var c=[];if(null!=a&&null!=b){var d=this.graph.model,e=null,f=-1E5,g;fo…
968 …(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b=[],d=this.graph.…
970 …aph.view.getVisibleTerminal(a,b));null!=e&&(this.isPort(e)&&(e=this.graph.model.getParent(e)),c.pu…
972 …verse(this.roots[e],!0,null,c,l,b,null);b=[];for(f in c)b.push(c[f]);this.model=new mxSwimlaneMode… variable
973 mxSwimlaneLayout.prototype.filterDescendants=function(a,b){var c=this.graph.model;c.isVertex(a)&&a!…
975 …=d[l]&&(d[l]=a);null!==g&&delete g[l];var m=this.getEdges(a),l=this.graph.model;for(c=0;c<m.length…
976 …a)};mxSwimlaneLayout.prototype.layeringStage=function(){this.model.initialRank();this.model.fixRan…
1008 ….getChildAt(a,e),this.getChildAt(b,e),c)};function mxRootChange(a,b){this.model=a;this.previous=th…
1009 …root=this.previous;this.previous=this.model.rootChanged(this.previous)};function mxChildChange(a,b…
1010 …d){var a=this.model.getParent(this.child),b=null!=a?a.getIndex(this.child):0;null==this.previous&&…
1011model.terminalForCellChanged(a,c,!0):this.model.terminalForCellChanged(a,null,!0));null!=d&&(b?thi…
1012model=a;this.cell=b;this.previous=this.terminal=c;this.source=d}mxTerminalChange.prototype.execute…
1013model.valueForCellChanged(this.cell,this.previous))};function mxStyleChange(a,b,c){this.model=a;th…
1014model.geometryForCellChanged(this.cell,this.previous))};function mxCollapseChange(a,b,c){this.mode…
1015model=a;this.cell=b;this.previous=this.visible=c}mxVisibleChange.prototype.execute=function(){null…
1128 this.autoSize&&(this.graph.model.isEdge(c.cell)||"fill"!=c.style[mxConstants.STYLE_OVERFLOW])&&wind…
1148model.getParent(a.cell):"swimlane"==f?(d[b]=c==mxConstants.STYLE_STROKECOLOR||c==mxConstants.STYLE…
1174 …pacingBottom*c:0))}e=a.text.getTextRotation();0!=e&&null!=a&&a.view.graph.model.isVertex(a.cell)&&…
1184 mxCellRenderer.prototype.redrawShape=function(a,b,c){var d=a.view.graph.model,e=!1;null!=a.shape&&n…
1249 …tate(!1);null!=this.graph.model.getTerminal(a.cell,!0)&&null==c||null==c&&null==b.getTerminalPoint…
1264 …a,d),0<d.width||0<d.height)){var e=new mxPoint(b.x,b.y),g=b=!1;this.graph.model.isVertex(a.cell)&&…
1295 …_FASTER?mxConstants.DIALECT_PREFERHTML:mxConstants.DIALECT_MIXEDHTML;this.model=null!=b?b:new mxGr…
1296 …unction(a,b){this.graphModelChanged(b.getProperty("edit").changes)});this.model.addListener(mxEven…
1297 …pe.mouseListeners=null;mxGraph.prototype.isMouseDown=!1;mxGraph.prototype.model=null;mxGraph.proto… method in mxGraph
1310 …new mxCellEditor(this)};mxGraph.prototype.getModel=function(){return this.model};mxGraph.prototype…
1312model.contains(a))if(this.model.isEdge(a)||this.model.isVertex(a))c.put(a,!0),d.push(a);else for(v…
1314model.contains(a[c])&&this.isCellVisible(a[c]))for(var d=this.model.getParent(a[c]);null!=d&&d!=th…
1315 …a instanceof mxChildChange){var b=this.model.getParent(a.child);this.view.invalidate(a.child,!0,!0…
1317 …veStateForCell=function(a){for(var b=this.model.getChildCount(a),c=0;c<b;c++)this.removeStateForCe…
1320 …(a){a=null!=a?a:this.model.getRoot();this.removeCellOverlays(a);for(var b=this.model.getChildCount…
1323model.beginUpdate();try{var d=a.value;this.cellLabelChanged(a,b,this.isAutoSizeCell(a));this.fireE…
1324 …hanged=function(a,b,c){this.model.beginUpdate();try{this.model.setValue(a,b),c&&this.cellSizeUpdat…
1325 …(a){var b=this.isCellSelected(a.cell);e=e||b;return!e||b||a.cell!=c&&this.model.isAncestor(a.cell,…
1326 …ToggleEvent(b)&&mxEvent.isAltDown(b)))){d=c;for(a=[];null!=d;){var d=this.model.getParent(d),f=thi…
1327 mxGraph.prototype.isSiblingSelected=function(a){for(var b=this.model,c=b.getParent(a),d=b.getChildC…
1344 …le(a)};mxGraph.prototype.getCellStyle=function(a){var b=this.model.getStyle(a);a=this.model.isEdge…
1346 …ionCells();if(null!=b){this.model.beginUpdate();try{for(var c=0;c<b.length;c++)this.model.setStyle…
1347 …his.getEditableCells(this.getSelectionCells());mxUtils.setCellStyles(this.model,c,a,b)};mxGraph.pr…
1348model,d,a,b,c))};mxGraph.prototype.getOriginForCell=function(a){a=this.model.getParent(a);for(var …
1349 …){var e=this.getOriginForCell(b[d]),f=this.getCellGeometry(b[d]);if(!this.model.isEdge(b[d])&&null…
1350 …sortCells(b);this.model.beginUpdate();try{for(d=0;d<b.length;d++)e=this.getOriginForCell(b[d]),f=t…
1351 …(new mxEventObject(mxEvent.ALIGN_CELLS,"align",a,"cells",b))}finally{this.model.endUpdate()}}}retu…
1352model.beginUpdate();try{var b=this.model.getStyle(a);null==b||0==b.length?this.model.setStyle(a,th…
1354model.beginUpdate();try{this.cellsOrdered(b,a,c),this.fireEvent(new mxEventObject(mxEvent.ORDER_CE…
1355model.beginUpdate();try{for(var d=0;d<a.length;d++){var e=this.model.getParent(a[d]);b?c?this.mode…
1356model.getParent(a);null==e&&(e=this.model.getParent(c[0]));this.model.beginUpdate();try{null==this…
1357model.endUpdate()}}return a};mxGraph.prototype.getCellsForGroup=function(a){var b=[];if(null!=a&&0…
1359model.beginUpdate();try{for(var c=0;c<a.length;c++){var d=this.model.getChildren(a[c]);if(null!=d&…
1360model.setGeometry(d[g],l))}}}this.removeCellsAfterUngroup(a);this.fireEvent(new mxEventObject(mxEv…
1361model.beginUpdate();try{var b=this.getDefaultParent(),c=this.model.getChildCount(b);this.cellsAdde…
1362 …null!=c?c:!1;d=null!=d?d:0;e=null!=e?e:0;f=null!=f?f:0;g=null!=g?g:0;this.model.beginUpdate();try{…
1363 …ght+2*b+p.y+d+f+p.height);this.model.setGeometry(a[k],l);this.moveCells(m,b+p.x-n.x+g,b+p.y-n.y+d)…
1364 …l;if(null!=a&&0<a.length)for(var c=0;c<a.length;c++)if(this.model.isVertex(a[c])||this.model.isEdg…
1365model.cloneCells(a,!0,c),g=0;g<a.length;g++)if(!b&&this.model.isEdge(e[g])&&null!=this.getEdgeVali…
1366model.getParent(a[g]));if(null!=n&&null!=p)if(c=d?0:p.origin.x,p=d?0:p.origin.y,this.model.isEdge(…
1369model.getChildCount(b));this.model.beginUpdate();try{this.cellsAdded(a,b,c,d,e,null!=f?f:!1,!0),th…
1370model.beginUpdate();try{for(var l=f?this.view.getState(b):null,m=null!=l?l.origin:null,n=new mxPoi…
1371 …ax(0,t.x),t.y=Math.max(0,t.y));this.model.setGeometry(a[l],t)}}b==p&&c+l>this.model.getChildCount(…
1372model.endUpdate()}}};mxGraph.prototype.autoSizeCell=function(a,b){if(null!=b?b:1)for(var c=this.mo…
1373 …this.view.getState(c[e])||d.get(c[e])||(d.put(c[e],!0),a.push(c[e]))}this.model.beginUpdate();try{…
1374 a,"includeEdges",b))}finally{this.model.endUpdate()}return a};
1375model.beginUpdate();try{for(var d=new mxDictionary,e=0;e<a.length;e++)d.put(a[e],!0);for(e=0;e<a.l…
1376model.setGeometry(d,g),this.model.setTerminal(d,null,f))}}),k=0;k<f.length;k++)d.get(f[k])||(d.put…
1377 …b,c,d,e,f,g,k){d=d||0;e=e||0;k=null!=k?k:this.model.getParent(a);f=this.model.getTerminal(a,!0);th…
1378model.setGeometry(a,m))}}this.cellsMoved(b,d,e,!1,!1);this.cellsAdded(b,k,this.model.getChildCount…
1379model.beginUpdate();try{this.cellsToggled(b,a),this.fireEvent(new mxEventObject(mxEvent.TOGGLE_CEL…
1380model.beginUpdate();try{this.cellsFolded(c,a,b,d),this.fireEvent(new mxEventObject(mxEvent.FOLD_CE…
1381model.beginUpdate();try{for(var e=0;e<a.length;e++)if((!d||this.isCellFoldable(a[e],b))&&b!=this.i…
1382 …a,b){if(null!=a){var c=this.model.getGeometry(a);null!=c&&(c=c.clone(),this.updateAlternateBounds(…
1385model.getEdgeCount(a[c]),e=0;e<d;e++)b.push(this.model.getEdgeAt(a[c],e));d=this.model.getChildren…
1386model.beginUpdate();try{var c=this.getPreferredSizeForCell(a),d=this.model.getGeometry(a);if(null!…
1387 c.width+8),e&&(d.width=c.width+8),d.height=c.height);this.model.setStyle(a,g)}else{var k=this.view.…
1388model.getChildren(a));if(null!=n){var p=this.view.translate,q=this.view.scale,r=(n.y+n.height)/q-d…
1389 …{var c=null;if(null!=a){var d=this.view.createState(a),e=d.style;if(!this.model.isEdge(a)){var f=e…
1392model.beginUpdate();try{var d=this.cellsResized(a,b,c);this.fireEvent(new mxEventObject(mxEvent.RE…
1393model.beginUpdate();try{for(var e=0;e<a.length;e++)d.push(this.cellResized(a[e],b[e],!1,c)),this.i…
1394model.getGeometry(a);if(null!=e&&(e.x!=b.x||e.y!=b.y||e.width!=b.width||e.height!=b.height)){var f…
1395model.getGeometry(a),d=0!=c.width?b.width/c.width:1,c=0!=c.height?b.height/c.height:1,e=this.model
1396 mxGraph.prototype.scaleCell=function(a,b,c,d){var e=this.model.getGeometry(a);if(null!=e){var f=thi…
1397 …is.model.isVertex(a)?this.cellResized(a,e,!0,d):this.model.setGeometry(a,e)}};mxGraph.prototype.ex…
1399model.getTopmostCells(a);this.model.beginUpdate();try{for(var l=new mxDictionary,m=0;m<a.length;m+…
1400model.getTerminal(r,!0))||n(this.model.getTerminal(r,!1)))||p.push(a[m])}a=p;d&&(a=this.cloneCells…
1401model.getParent(k[m]),null!=q&&q.relative&&this.model.isEdge(r)&&this.model.contains(r)&&this.mode…
1402model.beginUpdate();try{d&&this.disconnectGraph(a);for(var g=0;g<a.length;g++)this.translateCell(a…
1403model.getGeometry(a);if(null!=d){b=parseFloat(b);c=parseFloat(c);d=d.clone();d.translate(b,c);d.re…
1404 …loat(d.offset.x+b)),d.offset.y=Math.round(parseFloat(d.offset.y+c)))}this.model.setGeometry(a,d)}};
1405 …ion(a){if(null!=a&&!this.model.isEdge(a)){var b=this.model.getParent(a);if(null!=b&&b!=this.getDef…
1407 …if(null!=c&&(this.isConstrainRelativeChildren()||!c.relative)){var d=this.model.getParent(a);this.…
1408 …ntersect(d))}if(null!=e){d=[a];if(!this.isCellCollapsed(a))for(var f=this.model.getDescendants(a),…
1409 …&(c.offset=new mxPoint),c.offset.x+=f,c.offset.y+=g):(c.x+=f,c.y+=g);this.model.setGeometry(a,c)}}…
1410model.beginUpdate();try{for(c=0;c<a.length;c++){var d=this.model.getEdges(a[c]);if(null!=d)for(var…
1411 …ge=function(a){var b=this.model.getGeometry(a);null!=b&&null!=b.points&&0<b.points.length&&(b=b.cl…
1417 mxGraph.prototype.setConnectionConstraint=function(a,b,c,d){if(null!=d){this.model.beginUpdate();tr…
1419 …STYLE_EXIT_PERIMETER:mxConstants.STYLE_ENTRY_PERIMETER,"0",[a]))}finally{this.model.endUpdate()}}};
1423model.beginUpdate();try{var e=this.model.getTerminal(a,c);this.cellConnected(a,b,c,d);this.fireEve…
1424model.beginUpdate();try{var e=this.model.getTerminal(a,c);this.setConnectionConstraint(a,b,c,d);th…
1425 c,"previous",e))}finally{this.model.endUpdate()}}};
1426model.beginUpdate();try{for(var b=this.view.scale,c=this.view.translate,d=new mxDictionary,e=0;e<a…
1427model.getParent(p);null==p&&(f.setTerminalPoint(new mxPoint(n[0].x/b-c.x+l,n[0].y/b-c.y+m),!0),thi…
1428 …{return!1};mxGraph.prototype.getTerminalForPort=function(a,b){return this.model.getParent(a)};mxGr…
1429model.getRoot(),b=this.getCurrentRoot();if(null!=b){for(var c=this.model.getParent(b);c!=a&&!this.…
1430 …at(this.model.getEdges(a)));d=this.view.getBounds(d);if(c){c=this.model.getChildCount(a);for(var e…
1431model.isVertex(a[d])){var e=this.getCellGeometry(a[d]);if(null!=e){var f=null;if(this.model.isEdge…
1432model.getParent(a[d]),e.relative?this.model.isVertex(k)&&k!=this.view.currentRoot&&(g=this.getBoun…
1451model.getGeometry(a)};mxGraph.prototype.isCellVisible=function(a){return this.model.isVisible(a)};…
1455model.getTerminal(a,!0)&&null==this.model.getTerminal(a,!1))return null;if(!this.allowLoops&&b==c&…
1456 "\n"}var e=this.model.getDirectedEdgeCount(b,!0,a),f=this.model.getDirectedEdgeCount(c,!1,a);if(nul…
1457model.getRoot();b=null!=b?b:{};for(var c=!0,d=this.model.getChildCount(a),e=0;e<d;e++){var f=this.
1458model.getTerminal(a,!0),this.model.getTerminal(a,!1))||""):d+(this.getCellValidationError(a)||"");…
1459 …ationError=function(a){var b=this.model.getDirectedEdgeCount(a,!0),c=this.model.getDirectedEdgeCou…
1461 mxGraph.prototype.convertValueToString=function(a){a=this.model.getValue(a);if(null!=a){if(mxUtils.…
1471 …ype.isSwimlane=function(a,b){return null==a||this.model.getParent(a)==this.model.getRoot()||this.m…
1473model.getGeometry(a);return this.isCellsLocked()||null!=b&&this.model.isVertex(a)&&b.relative};mxG…
1474 …Cloneable=a};mxGraph.prototype.getExportableCells=function(a){return this.model.filterCells(a,mxUt…
1475 mxGraph.prototype.getImportableCells=function(a){return this.model.filterCells(a,mxUtils.bind(this,…
1476 mxGraph.prototype.getDeletableCells=function(a){return this.model.filterCells(a,mxUtils.bind(this,f…
1477model.isEdge(a)&&this.edgeLabelsMovable||this.model.isVertex(a)&&this.vertexLabelsMovable)};mxGrap…
1478 mxGraph.prototype.getMovableCells=function(a){return this.model.filterCells(a,mxUtils.bind(this,fun…
1483 …litEnabled=a};mxGraph.prototype.getResizableCells=function(a){return this.model.filterCells(a,mxUt…
1485 …llsBendable=a};mxGraph.prototype.getEditableCells=function(a){return this.model.filterCells(a,mxUt…
1487 …urce=function(a){return null==a&&this.allowDanglingEdges||null!=a&&(!this.model.isEdge(a)||this.co…
1492 …a){return!1};mxGraph.prototype.getFoldableCells=function(a,b){return this.model.filterCells(a,mxUt…
1493model.getChildCount(a)&&0!=c[mxConstants.STYLE_FOLDABLE]};mxGraph.prototype.isValidDropTarget=func…
1494model.isEdge(a)&&null!=b&&1==b.length&&this.isCellConnectable(b[0])&&null==this.getEdgeValidationE…
1495model.getParent(e);null!=f&&this.isSwimlane(f)&&f!=c;)f=this.model.getParent(f);f==c&&(c=e)}for(;n…
1496model.getParent(g);return this.model.isLayer(c)||null!=g?null:c};mxGraph.prototype.getDefaultParen…
1497 …rentRoot(),null==c&&(c=this.model.getRoot()));if(null!=c)for(var d=this.model.getChildCount(c),e=0…
1498model.getChildCount(c)-1;0<=g;g--){var k=this.model.getChildAt(c,g),l=this.getCellAt(a,b,k,d,e,f);…
1501 mxGraph.prototype.getChildCells=function(a,b,c){a=null!=a?a:this.getDefaultParent();a=this.model.ge…
1502model.getChildCount(a),m=0;m<l;m++){var n=this.model.getChildAt(a,m);if(k||!this.isCellVisible(n))…
1503 …aph.prototype.isValidAncestor=function(a,b,c){return c?this.model.isAncestor(b,a):this.model.getPa…
1508 …c=this.getDefaultParent()),null!=c)for(var g=this.model.getChildCount(c),k=0;k<g;k++){var l=this.m…
1509 ….getChildCount(a),g=null,k=0,l=0;l<f;l++){var m=e.getChildAt(a,l);if(this.model.isVertex(m)&&this.…
1510 …(d=this.model.getEdgeCount(a),0<d))for(var g=0;g<d;g++){var k=this.model.getEdgeAt(a,g),l=this.mod…
1514model.getParent(e):this.getDefaultParent(),f=this.model.getChildCount(d);null==e&&0<f?(a=this.mode…
1515model.getChildAt(d,0>b?f-1:b)),this.setSelectionCell(a)):this.getCurrentRoot()!=d&&this.setSelecti…
1516 …0==this.model.getChildCount(c))&&this.model.isVertex(c)&&a&&!this.model.isEdge(this.model.getParen…
1518 mxGraph.prototype.createHandler=function(a){var b=null;if(null!=a)if(this.model.isEdge(a.cell))var …
1537 null!=this.model&&null!=this.graphModelChangeListener&&(this.model.removeListener(this.graphModelCh…
1561model.getValue(c);d=a.model.getValue(d);c=!this.validNeighborsAllowed;for(var e=this.validNeighbor…
1600 …pagateSelectionCell=function(a,b,c){var d=this.graph.model.getParent(a);return b?(b=this.graph.mod…
1601 …vent())||null==b||this.graph.isCellSelected(b.cell)))for(var c=this.graph.model,d=this.graph.view.…
1602 …sHandled(a))return this.graph.cellEditor.getEditingCell()!=a;a=this.graph.model.getParent(a)}retur…
1606 …ectCellForEvent(c,b.getEvent());if(this.isMoveEnabled()){var d=this.graph.model,e=d.getGeometry(c)…
1613model.getParent(a),f=2>this.graph.model.getChildCount(e),g=new mxDictionary;a=this.graph.getOpposi…
1614 …t(a)){b.put(a,c);d++;for(var c=this.graph.model.getChildCount(a),e=0;e<c;e++)d+=this.addStates(thi…
1616 …xGraphHandler.prototype.isValidDropTarget=function(a,b){return this.graph.model.getParent(this.cel…
1625 (e.text.originalPointerEvents=e.text.pointerEvents),e.text.pointerEvents=!1)),this.graph.model.isVe…
1626 …r d=this.graph.view.scale,e=0;e<c.length;e++){var f=c[e][0];if(this.graph.model.isEdge(f.cell)){va…
1637 this.graph.model.getParent(a[l]);null==m||k.get(m)||(k.put(m,!0),g.push(m))}}a=this.graph.moveCells…
1638 …ull!=a&&(this.graph.model.isEdge(a.cell)||this.graph.model.isVertex(a.cell))&&this.graph.isCellDel…
1728 …&&null!=l.geometry&&l.geometry.relative&&l.parent!=g.parent;)l=this.graph.model.getParent(l);null!…
1737 ….getState(this.currentFocus.cell)?this.reset():this.redraw()});this.graph.model.addListener(mxEven…
1753 …type.destroy=function(){this.reset();null!=this.resetHandler&&(this.graph.model.removeListener(thi…
1781 b++)));a=this.graph.model.getGeometry(this.state.cell);null==a||a.relative||this.graph.isSwimlane(t…
1795model.getChildCount(this.state.cell),this.inTolerance=!0,this.childOffsetY=this.childOffsetX=0,thi…
1804 …andler.prototype.isGhostPreview=function(){return 0<this.state.view.graph.model.getChildCount(this…
1826model.getGeometry(a);null!=b&&(d==mxEvent.LABEL_HANDLE?(d=-mxUtils.toRadians(this.state.style[mxCo…
1840 …ntHighlightVisible=function(){return!this.graph.isCellSelected(this.graph.model.getParent(this.sta…
1841 …Visible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=this.p…
1842 …y(),this.parentHighlight=null):this.parentHighlightEnabled&&a&&this.graph.model.isVertex(b)&&null!…
1845 …troy(),this.preview=null);if(null!=this.parentHighlight){var a=this.graph.model.getParent(this.sta…
1872 …HANDLE;if(this.isSource||this.isTarget){if(a=this.state.cell,b=this.graph.model.getTerminal(a,this…
1908 …w.scale;var e=new mxPoint(e.x*c,e.y*c),f=this.graph.model.getParent(this.state.cell);this.graph.mo…
1924 …estroy(),this.shape=null);if(null!=this.parentHighlight){var a=this.graph.model.getParent(this.sta…
1967 …ate&&null!=this.shape&&(this.shape.scale=this.state.view.scale,this.graph.model.isEdge(this.state.…
1998model.contains(a.previous)?0<=mxUtils.indexOf(this.idrefs,c):!0};a.isExcluded=function(a,c,d,e){re…
2091model.beginUpdate();try{this.graph.model.clear(),this.graph.view.scale=1,this.readGraphState(a),th…
2092 …tring:function(){return this.message}};}else this.resetGraph(),this.graph.model.clear(),this.fireE…
2093 …his.graph.getModel()):this.graph.encodeCells(mxUtils.sortCells(this.graph.model.getTopmostCells(th…
2128 …geFormat.height==b.previousFormat.height&&b.ignoreColor&&b.ignoreImage||e.model.execute(b)});v.cla…
2167model.getParent(a);if(b)d=this.graph.model.isEdge(a)?null:this.graph.getCellGeometry(a),d=!this.gr…
2203 for(e.consume();null!=h&&a.model.isVertex(h)&&null!=f&&f.relative;)cell=h,h=a.model.getParent(cell)…
2210model);this.sidebar.createThumb([c],25,25,d,null,!0,!1,c.geometry.width,c.geometry.height);mxEvent…
2225 …!1,null);else{for(var c=c||b.getSelectionCells(),c=b.getExportableCells(b.model.getTopmostCells(c)…
2288 …et("collapsible").setEnabled(b&&(a.isContainer(a.getSelectionCell())||0<a.model.getChildCount(a.ge…
2309 …),d=new mxDictionary,e=[],c=0;c<b.length;c++){var f=a.isTableCell(b[c])?a.model.getParent(b[c]):b[…
2328 …(a){a=new ChangePageSetup(this,null,a);a.ignoreColor=!0;this.editor.graph.model.execute(a)});var d…
2332model.getParent(d),g=e.getView().scale;c=null;1==e.getSelectionCount()&&e.model.isVertex(d)&&null!…
2335 …this.isControlDown(a)&&mxEvent.isShiftDown(a)&&mxEvent.isAltDown(a)){if(e.model.isVertex(e.getSele…
2336 …EdgeLength,a,!0);null!=b&&0<b.length&&(1==b.length&&e.model.isEdge(b[0])?e.setSelectionCell(e.mode…
2363 …nsume(a)})));this.tooltipCloseImage.style.display=l?"":"none";this.graph2.model.clear();this.graph…
2364 b=this.graph2.cloneCells(b);this.editorUi.insertHandler(b,null,this.graph2.model,m?null:this.editor…
2499 …;a=this.graph.cloneCells(a);this.editorUi.insertHandler(l,null,this.graph.model,this.editorUi.edit…
2502 …function(a,b){var d=this.editorUi.editor.graph,e=d.getCellStyle(a),c=[];d.model.beginUpdate();try{…
2503 …=mxUtils.getValue(l,"composite","0"))for(var m=d.model.getChildCount(g);0<=m;m--)d.model.remove(d.
2504 …{var n=l[k[m]];null!=n&&d.setCellStyles(k[m],n,[g])}c.push(g)}}}finally{d.model.endUpdate()}return…
2506 c.getDefaultParent())){c.model.beginUpdate();try{h=Math.round(h);g=Math.round(g);if(b&&c.isSplitTar…
2507 …ellsInserted","cells",m))}catch(w){this.editorUi.handleError(w)}finally{c.model.endUpdate()}null!=…
2509model.beginUpdate();try{var l=h.getCellGeometry(a),m=h.getCellGeometry(b[e]),n=h.model.getParent(a…
2510model.isEdge(a)||null!=l&&!l.relative&&p),x=h.getCellAt((f.x+q+h.view.translate.x)*h.view.scale,(f…
2511model.isEdge(a))h.model.setTerminal(a,b[e],d==mxConstants.DIRECTION_NORTH);else if(h.model.isEdge(…
2512model.setGeometry(b[e],f),h.cellsMoved(b,q,u,null,null,!0),k=b.slice(),g=1==k.length?k[0]:null,b.p…
2513 …etCellGeometry(a);e=c.getCellGeometry(b);null!=h&&null!=e&&(e=e.clone(),c.model.isEdge(a)?(a=c.vie…
2514 …slate.x)/f.scale,h.y=(a.y-f.translate.y)/f.scale),f=c.defaultEdgeLength,c.model.isEdge(b)&&null!=e…
2516 …ight/2+f:d==mxConstants.DIRECTION_WEST&&(e.x=e.x-h.width/2-e.width/2-f),c.model.isEdge(b)&&null!=e…
2520model.isVertex(e[p])?m=p:null==l&&g.model.isEdge(e[p])&&null==g.model.getTerminal(e[p],!0)&&(l=p),…
2521 e&&null!=K&&null!=t&&K!=y?(k=a.model.isEdge(t.cell)||null==l?m:l,a.setSelectionCells(this.dropAndCo…
2524model.isEdge(x.cell)?"none":"",this.previewElement.style.left=x.x+"px",this.previewElement.style.t…
2525model.getParent(t.cell),q=d.translate.x*d.scale,v=d.translate.y*d.scale;null!=k&&!k.relative&&a.mo…
2526 u.currentHighlight.state&&a.model.isEdge(u.currentHighlight.state.cell)?(this.previewElement.style.…
2527 …ainer(b.cell)});if(null!=g&&!this.graph.isCellConnectable(g)&&!this.graph.model.isEdge(g)){var f=t…
2529model.isEdge(h.cell))&&S>this.dropTargetDelay&&!this.isDropStyleTargetIgnored(h)&&(a.model.isVerte…
2530 …ull,null!=I&&(y.parentNode.removeChild(y),I=null)):null!=x&&null!=I&&(l=a.model.isEdge(x.cell)?a.v…
2531 …l!=t&&!mxEvent.isAltDown(d)&&null==K){f=mxRectangle.fromRectangle(t);if(a.model.isEdge(t.cell)){va…
2534 …!=x&&K==y&&(h=x);l=(null==m||a.isCellConnectable(e[m]))&&(a.model.isEdge(g)&&null!=m||a.model.isVe…
2535 …lay||a.model.isEdge(g)?h:null,null!=t&&l){f=[L,M,E,H,C,G];for(l=0;l<f.length;l++)null!=f[l].parent…
2536 this.roundDrop.height/2)+"px",null==a.model.getTerminal(g,!0)&&a.container.appendChild(L),null==a.m…
2541 …d)&&1==e.getSelectionCount()&&e.model.isVertex(e.getSelectionCell())){b=null;for(var c=0;c<a.lengt…
2568 …(),e=this.view.scale;if(!mxEvent.isAltDown(c.getEvent())&&null!=d)if(this.model.isEdge(d.cell))if(…
2570model.getParent(d.cell),f=this.model.getParent(p);if(!this.isCellSelected(f)){var q=this.getCellGe…
2571 this.model.getChildAt(p,0)!=d.cell||mxUtils.intersects(n,new mxRectangle(d.x+q.width*e-2,d.y,2,q.he…
2572 …rt(c.getGraphX(),c.getGraphY(),q),c.consume())),d=this.view.getState(this.model.getParent(d.cell))…
2573 …Y())>d){var e=this.selectionCellsHandler.getHandler(c.cell);null==e&&this.model.isEdge(c.cell)&&(e…
2576 …se if(c=b.getState(),null!=c&&this.isCellEditable(c.cell)){e=null;if(this.model.isEdge(c.cell)){if…
2578model.getParent(c.cell),f=this.model.getParent(n),!this.isCellSelected(f)))if(mxUtils.intersects(d…
2580 "row-resize")}n=this.view.getState(this.model.getParent(n.cell))}}null!=e&&c.setCursor(e)}}),mouseU…
2584model.getParent(b[e]):this.graph.isTableRow(a)&&this.graph.isTableRow(b[e])&&this.graph.isCellSele…
2592 "locked","0"))return!0;a=this.model.getParent(a)}return!1};var L=null;this.addListener(mxEvent.FIRE…
2593 …lected(a.cell)||c.isTableRow(a.cell)&&c.selectionCellsHandler.isHandled(c.model.getParent(a.cell))…
2619 …etVerticesAndEdges=function(a,b){a=null!=a?a:!0;b=null!=b?b:!0;var c=this.model;return c.filterDes…
2620 …(!this.isSwimlane(a)||0==c)&&""==this.getLabel(a)&&0<this.model.getChildCount(a)&&(a=this.model.ge…
2621model.getChildCount(a))for(c=0;c<this.model.getChildCount(a);c++){var d=this.model.getChildAt(a,c)…
2622model.beginUpdate();try{for(var d=0;d<b.length;d++)for(var e=this.getCurrentCellStyle(b[d]),f=0;f<…
2624model.getChildCount(c)-1;0<=g;g--){var k=this.model.getChildAt(c,g),h=this.getScaledCellAt(a,b,k,d…
2625 …Graph.prototype.getCompositeParent=function(a){for(;this.isPart(a);){var b=this.model.getParent(a);
2626 if(!this.model.isVertex(b))break;a=b}return a};Graph.prototype.filterSelectionCells=function(a){var…
2637 ….childLayout};this.layoutManager.getLayout=function(a,b){var d=this.graph.model.getParent(a);if(b!…
2643 ….shape&&(this.model.isEdge(c.cell)&&null!=c.absolutePoints&&1<c.absolutePoints.length?d.push(this.…
2650 …totype.updatePlaceholders=function(){var a=!1,b;for(b in this.model.cells){var d=this.model.cells[…
2652 …"0"));return b};Graph.prototype.isSplitTarget=function(a,b,d){return!this.model.isEdge(b[0])&&!mxE…
2653 …entCellStyle(a);return!this.isCellLocked(a)&&(this.model.isEdge(a)&&this.edgeLabelsMovable||this.m…
2654 …ll=function(a){do{var b=this.getLinkForCell(a);if(null!=b)return b;a=this.model.getParent(a)}while…
2660 …l;if(0<a.length){for(b=a[0];!this.model.isLayer(b);)b=this.model.getParent(b);for(var d=1;d<a.leng…
2665model.getParent(g);null==k&&(k=this.getGlobalVariable(h));null==k&&null!=d&&(k=d[h])}e.push(b.subs…
2666model.isVertex(a[1])?(this.setSelectionCell(a[1]),this.scrollCellToVisible(a[1]),null!=d&&(mxEvent…
2667 …,h){f=f?f:!1;if(a.geometry.relative&&this.model.isEdge(a.parent))return[];for(;a.geometry.relative…
2668 …this.model.getParent(a));d=this.view.scale;var p=this.view.translate,l=p.x*d,p=p.y*d;null!=n&&this…
2669model.isEdge(f[v])&&f[v]!=a)if(!this.model.isAncestor(a,f[v])&&this.isContainer(f[v])&&(null==q||f…
2670 …u=q;c=mxUtils.bind(this,function(c){if(null==k||null!=c||null==u&&g){this.model.beginUpdate();try{…
2671 !1)[0];null!=c&&this.addCells([z],this.model.getParent(a),null,null,null,!0);var f=this.getCellGeom…
2672model.getParent(a),null,"",a,z,this.createCurrentEdgeStyle());if(null!=l&&this.connectionHandler.i…
2673 …is.fireEvent(new mxEventObject("cellsInserted","cells",[l]))}finally{this.model.endUpdate()}}if(nu…
2674 …ateElement("div"),b=[],d,e;for(e in this.model.cells)if(d=this.model.cells[e],this.model.isVertex(…
2675model.getValue(a);if(null!=b&&"object"==typeof b){var d=null;if(this.isReplacePlaceholders(a)&&nul…
2677 …s,arguments);if(null!=a&&null!=this.layoutManager){var d=this.model.getParent(a);this.model.isVert…
2678 …Manager&&null!=b.alternateBounds){var e=this.layoutManager.getLayout(this.model.getParent(a));null…
2679model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutMana…
2680 …ackLayout||n.resizeLast||this.resizeParentStacks(m,n,g,l)}}}}finally{this.model.endUpdate()}this.i…
2681model.beginUpdate();try{var c=this.getCellsBeyond(a.x,a.y,b,!0,!0);for(b=0;b<c.length;b++)if(c[b]!…
2682model.beginUpdate();try{for(var c=b.horizontal;null!=a&&null!=b&&b.constructor==mxStackLayout&&b.h…
2683 f));a=this.model.getParent(a);b=this.layoutManager.getLayout(a)}}finally{this.model.endUpdate()}}};…
2700 …h.selectionModel.addListener(mxEvent.CHANGE,this.resetHandler);this.graph.model.addListener(mxEven…
2702 …(this.currentState.cell)||!mxEvent.isTouchEvent(b.getEvent())||this.graph.model.isVertex(b.getCell…
2704 …ection(),e):this.isActive()?1==this.graph.getSelectionCount()&&this.graph.model.isEdge(this.graph.…
2713 …getGraphX(),f=d.getGraphY(),c=this.getStateAt(a,c,f);null==c||!this.graph.model.isEdge(c.cell)||th…
2715 …e=this.getState(this.currentState);if(null!=this.currentState&&this.graph.model.isVertex(this.curr…
2716 …entState.cell)&&(b=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.cur…
2719 …nd(this,function(a,b){var c=this.graph.model.isVertex(a)&&this.graph.getCellGeometry(a);null==a||t…
2722 HoverIcons.prototype.computeBoundingBox=function(){var a=this.graph.model.isEdge(this.currentState.…
2723 …aph.isCellConnectable(b)&&(a=b)}if(this.graph.isCellLocked(a)||this.graph.model.isEdge(a))a=null;a…
2724 …else{null!=a&&null!=a.cell.geometry&&a.cell.geometry.relative&&this.graph.model.isEdge(a.cell.pare…
2729 …on(a,b,d){for(var e=this.model.getChildCells(a,!0),c=0;c<e.length;c++)if(null!=d&&(e[c].value=d[c]…
2732model.isVertex(a)&&this.isTableRow(this.model.getParent(a))};Graph.prototype.isTableRow=function(a…
2733 …};Graph.prototype.isStackChild=function(a){return this.model.isVertex(a)&&this.isStack(this.model.…
2739 TableLayout.prototype.getRowLayout=function(a,b){for(var d=this.graph.model.getChildCells(a,!0),e=t…
2746 …unction(a,c){c=null!=c?c:!0;var d=this.getState(a);null!=d&&c&&this.graph.model.isEdge(d.cell)&&nu…
2747model.isEdge(d.cell)&&null!=d.style&&1!=d.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(d)…
2749 function(a){c.apply(this,arguments);this.graph.model.isEdge(a.cell)&&1!=a.style[mxConstants.STYLE_C…
2776model.beginUpdate();try{for(var d=0;d<c.length;d++)if(this.model.isVertex(c[d])||this.model.isEdge…
2777 …Identity.get(d)]=d.getId();for(var e=this.model.getChildCount(d),f=0;f<e;f++)this.createCellLookup…
2778model.beginUpdate();try{if(1!=k.length||this.isCellLocked(this.getDefaultParent()))for(f=0;f<k.len…
2779 …oxFromGeometry(a,!0);null!=l&&this.moveCells(a,b-l.x,c-l.y)}}finally{this.model.endUpdate()}}retur…
2780 …=this.getCellGeometry(c[e]);null!=J&&J.relative&&!this.model.isEdge(a[e])&&null==d.get(this.model.…
2781model.getParent(a)!=this.model.getRoot()&&!this.model.isEdge(a)){var c=this.getCurrentCellStyle(a,…
2782model.getParent(a),this.isTable(h)||this.isTableRow(h))&&(h=this.getCellAt(f,k,null,!0,!1));c=null…
2783model.remove(m[b]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,null,[c]);this.se…
2784model.endUpdate()}return c};var l=Graph.prototype.selectCell;Graph.prototype.selectCell=function(a…
2785 …gth>e||!a&&0<e)return;for(var c=0;c<this.model.getChildCount(b);c++)g(this.model.getChildAt(b,c))}…
2786model.beginUpdate();try{this.model.setGeometry(b,c),this.model.setGeometry(a[0],e)}finally{this.mo…
2787model.beginUpdate();try{k=[];for(h=0;h<a.length;h++)if(null!=e&&this.isTableRow(a[h])){var J=this.
2788model.getChildCells(a[h],!0),Y=this.model.getChildCells(W[0],!0),ba=Y.length-p.length;if(0<ba)for(…
2789model.contains(k[h])&&0==this.model.getChildCount(k[h])&&this.model.remove(k[h]);d&&this.updateCus…
2790model.getChildCount(e)&&1==this.model.getChildCount(f)?0>mxUtils.indexOf(a,f)&&0>mxUtils.indexOf(c…
2791 …ustomLinksForCell(a,b);for(var c=this.model.getChildCount(b),d=0;d<c;d++)this.updateCustomLinksFor…
2793 …lidRoot=function(a){for(var b=this.model.getChildCount(a),c=0,d=0;d<b;d++){var e=this.model.getChi…
2795 …apply(this,arguments);if(b&&null!=a&&null!=this.layoutManager){var c=this.model.getParent(a);null!…
2800 …etry))){var b=a.cell;this.isTableCell(b)&&(b=this.model.getParent(b));this.isTableRow(b)&&(b=this.
2801 …;Graph.prototype.invalidateDescendantsWithPlaceholders=function(a){a=this.model.getDescendants(a);…
2803model.beginUpdate();try{if(null!=a.value&&"object"==typeof a.value){if(this.isReplacePlaceholders(…
2804model.getParent(e)}var f=a.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage…
2805model.getParent(a[c]);null==e||b.get(e)||(b.put(e,!0),d.push(e))}for(c=0;c<d.length;c++)if(e=this.…
2807 …abel",a.value||""));null!=c?d.setAttribute(b,c):d.removeAttribute(b);this.model.setValue(a,d)};var…
2808model.getParent(a[e]);if(this.model.isEdge(f)&&0>mxUtils.indexOf(a,f))return null}for(var f=q.appl…
2809 …ent.getClientX(a),mxEvent.getClientY(a));if(null!=a&&!this.model.isVertex(b)){var d=this.model.isE…
2813 …ue="Text";d.geometry=new mxGeometry(0,0,0,0);d.vertex=!0;if(null!=c&&this.model.isEdge(c.cell)){d.…
2816 …"href",d),null!=b&&mxEvent.addGestureListeners(a[c],null,null,b))}});this.model.addListener(mxEven…
2817 …null,function(a,b,c){return null==g.getLinkForCell(a.cell)}),b=null==b||g.model.isAncestor(a,b.cel…
2822 …(var c=0;c<a.length;c++)this.isTableCell(a[c])&&(a[c]=this.model.getParent(a[c]));a=this.model.get…
2827 …d-e)/(c.length-1),d=e,f=1;f<c.length-1;f++){var l=this.view.getState(this.model.getParent(c[f].cel…
2835model.getParent(a.cell);!(f&&null==J||d)&&null!=e;)d=null!=J?J.get(e):c.isCellSelected(e),e=c.mode…
2841model.beginUpdate();try{for(var d=0;d<a.length;d++){var e=this.model.getParent(a[d]);if(this.isTab…
2874 …(this,arguments),""==b&&this.graph.isCellDeletable(a.cell)&&0==this.graph.model.getChildCount(a.ce…
2878 …var c=this.graph.getCellStyle(a);if(null==c.childLayout){var d=this.graph.model.getParent(a),e=nul…
2879model.setGeometry(d,e)}}};var C=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelec…
2881 …dEvent=function(a,b){return!(!this.graph.isSwimlane(a.cell)&&0<this.graph.model.getChildCount(a.ce…
2883 …leCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getPa…
2885 …s,arguments);if(this.graph.isTable(this.state.cell)){var b=this.graph,c=b.model,d=this.state,e=thi…
2891 …;mxVertexHandler.prototype.refreshMoveHandles=function(){var a=this.graph.model;if(null!=this.move…
2913 …olerance&&(g=0))));this.reset();if(c){if(this.isSpaceEvent(b)){this.graph.model.beginUpdate();try{…
2914 …null!=l&&(l=l.clone(),l.translate(f,g),this.graph.model.setGeometry(k[c],l))}}finally{this.graph.m…
2924 …style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.stat…
2968 …!this.isSpecialColor(a.style[mxConstants.STYLE_FILLCOLOR])&&(a.view.graph.model.isVertex(a.cell)||…
2983 …ntSize=q+"px";a.removeAttribute("size")});for(var t=0;t<v.length;t++)0==l.model.getChildCount(v[t]…
3014 …ces[0]),h=f;k&&(f="0"==(d.isStack(e.vertices[0])?e.style:d.getCellStyle(d.model.getParent(e.vertic…
3046 …h=c)});l=this.addGeometryHandler(q,function(a,c,d){e.isTableCell(d)&&(d=e.model.getParent(d));if(e…
3059 …e.display="none";1==e.cells.length&&d.model.isEdge(a)?(f=d.model.getGeometry(a),null!=f.sourcePoin…
3060 null==d.model.getTerminal(a,!1)?(t.value=f.targetPoint.x,w.value=f.targetPoint.y):v.style.display="…
3213 …g,f,h);t(m,k,g,f,h);null!=k&&(k=this.postProcessCellStyle(k));return k};h.model.beginUpdate();try{…
3214 new mxPoint(0,8)}finally{h.model.endUpdate()}}),x=document.createElement("div");x.style.position="r…
3226 …n d.background},function(a){a=new ChangePageSetup(b,a);a.ignoreImage=!0;d.model.execute(a)},"#ffff…
3236 …)a=new ChangePageSetup(b,null,null,a),a.ignoreColor=!0,a.ignoreImage=!0,d.model.execute(a)});this.…
3248model.getChildCells(this.state.cell,!0);if(0<g.length){var A="0"!=mxUtils.getValue(this.state.styl…
3425 d=b.model.getParent(a.cell),d=b.model.getChildCells(d,!0),e=[],f=0;f<d.length;f++)d[f]!=a.cell&&b.i…
3505 …on(a){function b(a){if(null!=a){for(var b=!0,d=0;d<a.length&&b;d++)b=b&&c.model.isEdge(a[d]);var e…
3515model.beginUpdate();try{var b=c.ungroupCells();if(null!=a)for(var d=0;d<a.length;d++)c.model.conta…
3532 …angePageSetup(d,null,null,null,a/100),a.ignoreColor=!0,a.ignoreImage=!0,c.model.execute(a))}),mxRe…
3534 …d);a.ignoreColor=!0;a.ignoreImage=!0;a.foldingEnabled=!c.foldingEnabled;c.model.execute(a)});k.set…
3539 …ll;"U"==a.nodeName&&c.replaceElement(a)});for(var e=0;e<a.length;e++)0==c.model.getChildCount(a[e]…
3589 …Stack(e)||d.isStackChild(e),h=f,g=f;k&&(c=d.isStack(e)?c:d.getCellStyle(d.model.getParent(e)),g="0…
3590 …ells([b],a.x,a.y),d.fireEvent(new mxEventObject("cellsInserted","cells",d.model.getDescendants(c[0…
3605 …TYLE_FONTFAMILY||"fontSource"==a[k])f=!0;if(f)for(f=0;f<c.length;f++)0==e.model.getChildCount(c[f]…
3696model.beginUpdate();try{a.editor.setGraphXml(mxUtils.parseXml(b).documentElement),a.hideDialog()}c…
3697 ….graph.importCells(m));a.hideDialog()}catch(n){e=n}finally{a.editor.graph.model.endUpdate()}}null!…
3714 …w.scale));l.scale(c/h.view.scale);(new mxImageExport).drawState(h.getView().getState(h.model.root),
3739 …Event.addListener(e,"dragend",function(a){null!=p&&null!=q&&g.addCell(c,g.model.root,q);q=p=null;a…
3740model.isVisible(c)?"hide":"show"));g.model.isVisible(c)?(k.setAttribute("src",Editor.visibleImage)…
3744 …h),mxEvent.addListener(h,"click",function(b){g.isEnabled()&&g.addCell(c,g.model.root,a-1);mxEvent.…
3745 …h),mxEvent.addListener(h,"click",function(b){g.isEnabled()&&g.addCell(c,g.model.root,a+1);mxEvent.…
3746model.getChildCount(g.model.root);n.innerHTML="";C.clear();for(var b=u-1;0<=b;b--)mxUtils.bind(thi…
3750 …ed()){g.model.beginUpdate();try{var b=g.model.root.getIndex(v);g.removeCells([v],!1);0==g.model.ge…
3751 …:0<b&&b<=g.model.getChildCount(g.model.root)?g.setDefaultParent(g.model.getChildAt(g.model.root,b-…
3752 …tSelectionCount()&&g.model.isAncestor(c,g.getSelectionCell())&&a.addCheckmark(d,Editor.checkmarkIm…
3754model.beginUpdate();try{a=g.cloneCell(v),g.cellLabelChanged(a,mxResources.get("untitledLayer")),a.…
3755model.root);g.setDefaultParent(b)}finally{g.model.endUpdate()}}mxEvent.consume(a)});g.isEnabled()|…
9990 …e="+this.getSize()+" ("+n+")\nUser="+f+l+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+D…
9995 …ible(b.cell),b.view.graph.cellEditor.resize());p.apply(this,arguments)};n.model.beginUpdate();try{…
9996 …selectPage(this.ui.pages[0],!0)}finally{n.container.style.visibility="";n.model.endUpdate();n.cell…
10008 …table()||null!=d&&d.ignoreEdit||this.fileChanged()}),this.ui.editor.graph.model.addListener(mxEven…
10041 …moveListeners=function(){null!=this.changeListener&&(this.ui.editor.graph.model.removeListener(thi…
10264 …isabled","disabled")}function l(c,d,e){M.innerHTML="";var m=p.model.getDescendants(p.model.getRoot…
10265 …)),b.updatePageRoot(m),p.model.setRoot(m.root),c=(c+1)%b.pages.length;while(!l(!0,d,e)&&c!=J);t&&(…
10266 …(B=B||J==t);if(null!=J&&null!=J.cell.value&&(B||null==y)&&(p.model.isVertex(J.cell)||p.model.isEdg…
10275 p.isCellEditable(c)&&p.model.setValue(c,L(f,x,F.value,A-x.length,p.getCurrentCellStyle(c)));C.style…
10276 …nction(){try{if(null!=x&&null!=t&&F.value){var c=t.cell,f=p.getLabel(c);p.model.setValue(c,L(f,x,F…
10277 …lPos>=A)break;e[m.id]={replAllMrk:z,replAllPos:A};p.isCellEditable(m)&&(p.model.setValue(m,L(g,x,F…
10278 A-x.length,p.getCurrentCellStyle(m))),d++)}c!=b.currentPage&&b.editor.graph.model.execute(new Selec…
10351 …sValidationErrors"),mxResources.get("ok"));else if(d&&b.hideDialog(),l=!c.model.contains(f),!d||l|…
10413 …ectedLayers={};this.okBtn.setAttribute("disabled","disabled");for(var e=g.model,e=e.getChildCells(…
10461 …s[0]:null,d=c.editorUi.editor.graph;return null!=f&&(d.isSwimlane(f)||0<d.model.getChildCount(f))}…
10462 …pe:"bool",defVal:!1,isVisible:function(b,c){var f=c.editorUi.editor.graph.model;return 0<b.vertice…
10544 !0;d.shadowVisible=b;f.model.execute(d)},{install:function(b){this.listener=function(){b(f.shadowVi…
10617 …Utils.indexOf(g,b);0<=f&&g.splice(f,1);m.removeTagsForCells(m.model.getDescendants(m.model.getRoot…
10621 n);m.model.addListener(mxEvent.CHANGE,n);m.addListener(mxEvent.REFRESH,n);var y=document.createElem…
10632 …tils.bind(this,function(){f||(f=!0,this.model.beginUpdate())}),m=mxUtils.bind(this,function(){f&&(…
10640 …f("*"==b[f])var d=this.model.getRoot(),c=c.concat(this.model.filterDescendants(function(b){return …
10641 ….model.getDescendants(this.model.getRoot());for(var l=0,m={},g=0;g<b.length;g++)0<b[g].length&&(m[…
10642model.root||this.model.isVertex(c[g])||this.model.isEdge(c[g])){var p=this.getTagsForCell(c[g]),k=…
10644model.beginUpdate();try{for(var f=0;f<b.length;f++){for(var d=this.getTagsForCell(b[f]),e=d.split(…
10645model.endUpdate()}}};Graph.prototype.toggleCells=function(b){this.model.beginUpdate();try{for(var …
10652 …ull==this.defaultParent){var b=this.model.getChildCount(this.model.root),c,f=0;do c=this.model.get…
10672 …s,arguments)};document.body.appendChild(m.container);b.updatePageRoot(x);m.model.setRoot(x.root)}t=
10711model.beginUpdate();try{var f=null!=this.pages?this.pages.slice():null,d=b.getElementsByTagName("d…
10712model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(b…
10727 …r"==b?1:m.apply(this,arguments)};document.body.appendChild(f.container);f.model.setRoot(p.root)}}n…
10736 …phXml(b);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root);if(null!=url…
10747 … in value for "+n.id+": "+I)}try{var y=b.getAttribute("style");null!=y&&e.model.setStyle(n,y)}catc…
10749 D:"dh"==key?E.height+=D:E[key]=parseFloat(G[key])}e.model.setGeometry(n,E)}}}catch(I){null!=window.…
10751 …moveListener(this.descriptorChangedListener),f.close());this.editor.graph.model.clear();this.edito…
10752 this.setCurrentFile(null);null!=f&&this.updateDocumentTitle();this.editor.graph.model.clear();this.…
10753 …File;this.setGraphEnabled(!0);this.setMode(b.getMode());this.editor.graph.model.prefix=Editor.guid…
10769 …,E=mxUtils.bind(this,function(b,f,d,e){b=y.cloneCells(mxUtils.sortCells(y.model.getTopmostCells(b)…
10785 …var f=new ChangePageSetup(this,null,b);f.ignoreColor=!0;this.editor.graph.model.execute(f)}});var …
10863 …htbox"),!0),y=this.addEditButton(f,q),C=y.getEditInput(),F=1<l.model.getChildCount(l.model.getRoot…
10876 arguments)};document.body.appendChild(f.container);f.model.setRoot(p.root)}this.editor.exportToCanv…
10881 this.editor.graph;if(null!=b&&0<b.length){l.model.beginUpdate();try{var m=mxUtils.parseXml(b);b={};…
10882 [1]))){var t=q[0].getAttribute("name");null!=t&&""!=t&&this.editor.graph.model.execute(new RenamePa…
10883model.execute(new ChangePage(this,G,G,E,!0));k.push(G)}this.updatePageLinks(b,k)}}if(null!=p&&"mxG…
10885 0;k<d.model.getChildCount(c);k++)this.updatePageLinksForCell(b,d.model.getChildAt(c,k))};EditorUi.p…
11614 …ent.title=b,b=this.editor.graph,b.invalidateDescendantsWithPlaceholders(b.model.getRoot()),b.view.…
11616 …rguments)};n.getGlobalVariable=m;document.body.appendChild(n.container);n.model.setRoot(p.root)}if…
11619 …tate(n.getView().getState(n.model.root),G);G.finish(mxUtils.bind(this,function(){try{E.drawState(n…
11814 …p(c);b.ignoreColor=!0;b.ignoreImage=!0;b.mathEnabled=!c.isMathEnabled();g.model.execute(b)}),p.set…
11820 …tion("copyAsImage",mxUtils.bind(this,function(){var b=mxUtils.sortCells(g.model.getTopmostCells(g.…
11837 …c.editor.graph,k=new mxOrgChartLayout(b,d,e,f),l=b.getDefaultParent();1<b.model.getChildCount(b.ge…
11853 …nts);mxLog.debug("leaving shape",b,k)};b.drawState(g.getView().getState(g.model.root),e);mxLog.sho…
11926 …l.splice(e,1);break}e=new b(this.editorUi,k,l);this.editorUi.editor.graph.model.execute(e)}this.ed…
11930 …tils.bind(this,function(){var d=new b(this.editorUi,[],[]);c.editor.graph.model.execute(d)}),e);d.…
11938model.root;null!=b.model&&b.model.rootChanged(b.root);d.view.clear(b.root,!0);d.clearSelection();t…
11945 this.updatePageRoot(b);g.model.setRoot(b.root);b=g.getSvg(null,null,null,null,null,null,null,null,n…
11949 …&this.editor.graph.mathEnabled||Editor.MathJaxClear()});this.editor.graph.model.addListener(mxEven…
11961 ….view.currentRoot||this.model.contains(this.view.currentRoot)||(this.view.currentRoot=null);null==…
11966 …xCodec(d.ownerDocument),b.root=c.decode(d).root):b.root=this.editor.graph.model.createRoot()}else …
11968model.createUndoableEdit();c.ignoreEdit=!0;var g=new SelectPage(this,b,d);g.execute();c.add(g);c.n…
11970 …=e?e:this.pages.length;var d=new ChangePage(this,b,b,e);this.editor.graph.model.execute(d)}return …
11972model.beginUpdate();try{var c=this.currentPage;c==b&&1<this.pages.length?(d==this.pages.length-1?d…
11973 …ribute("id");var k={},n=c.createCellLookup([c.model.root]),d=new DiagramPage(g);d.root=c.cloneCell…
11974 …me"),mxUtils.bind(this,function(d){null!=d&&0<d.length&&this.editor.graph.model.execute(new Rename…
11975 EditorUi.prototype.movePage=function(b,e){this.editor.graph.model.execute(new MovePage(this,b,e))};…
12002model.beginUpdate();try{for(var g=e.slice(),k=0;k<e.length;k++)"1"==mxUtils.getValue(this.getCurre…
12003model.beginUpdate();try{var c=[];this.traverse(d,!0,mxUtils.bind(this,function(b,e){var f=null!=e&…
12006 …?c:!0;v.model.beginUpdate();try{var d=v.model.getParent(b),e=v.getIncomingTreeEdges(b),g=v.cloneCe…
12008 ….model.getTerminal(e[0],!0));if(null!=q){for(var t=k==mxConstants.DIRECTION_SOUTH||k==mxConstants.…
12009model.getTerminal(q[u],!1),k==f(y)&&(x=v.view.getState(y),y!=b&&null!=x&&(t&&c!=x.getCenterX()<m.g…
12010 …oneCells([d[0],b]);v.model.setTerminal(d[0],e[1],!1);v.model.setTerminal(e[0],e[1],!0);v.model.set…
12011model.endUpdate()}}function p(b,c){v.model.beginUpdate();try{var d=v.model.getParent(b),e=v.getInc…
12012 ….view.currentRoot==d&&(p=new mxRectangle);for(m=0;m<e.length;m++){var q=v.model.getTerminal(e[m],!…
12014model.endUpdate()}}function q(b,c,d){b=v.getOutgoingTreeEdges(b);d=v.view.getState(d);var e=[];if(…
12015 …e.length&&v.setSelectionCell(v.model.getTerminal(e[0],!1))):(d=v.getIncomingTreeEdges(b),null!=d&&…
12017model.getEdgeCount(d)&&this.addMenuItems(c,["selectConnections"],null,e)}};u.actions.addAction("se…
12018model.getTerminal(b[0],!0)),null!=b)){for(var c=[],d=0;d<b.length;d++)c.push(v.model.getTerminal(b…
12019 …tSelectionCell();if(v.isEnabled()&&v.model.isVertex(d)){if(null!=c&&mxEvent.isAltDown(c))v.setSele…
12021 …tIncomingTreeEdges(g.cell),g=0;g<k.length;g++)mxUtils.remove(k[g],c)}this.model.beginUpdate();try{…
12022model.getTerminal(k[0],!0),l[f])}}}finally{this.model.endUpdate()}return l};var y=v.moveCells;v.mo…
12023model.getParent(c[q]);break}if(null!=n&&g!=n&&null!=this.view.getState(c[0])){var t=v.getIncomingT…
12024model.setTerminal(m[q],n,!0);else if(b(c[q])&&(t=v.getIncomingTreeEdges(c[q]),0<t.length))if(!f)b(…
12025 function(c,d,e,f){var g=v.model,k=null;g.beginUpdate();try{if(k=C.apply(this,arguments),b(c))for(va…
12026 …ShiftDown(c))));if(null!=d&&0<d.length)1==d.length&&v.model.isEdge(d[0])?v.setSelectionCell(v.mode…
12095 …onCell();g.call(this,b,e,null,c);this.addMenuItems(b,["editTooltip"],c);d.model.isVertex(e)&&this.…
12193model.beginUpdate();try{d=b.addCell(d),b.fireEvent(new mxEventObject("cellsInserted","cells",[d]))…