Lines Matching refs:model

233 …l.cell||l.child,!1);if(null!=m)if(g=!0,l.constructor!=mxGeometryChange||a.model.isEdge(l.cell))mxU…
234 …=30;e()},cascadeOpacity:function(a,b,c){for(var d=a.model.getChildCount(b),e=0;e<d;e++){var f=a.mo…
235 c),mxEffects.cascadeOpacity(a,f,c))}b=a.model.getEdges(b);if(null!=b)for(e=0;e<b.length;e++)d=a.get…
345 …opy:function(a,b){b=b||a.getSelectionCells();var c=a.getExportableCells(a.model.getTopmostCells(b)…
456 …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…
679 …unction(){return!this.horizontal&&null!=this.state&&this.state.view.graph.model.isVertex(this.stat…
743 …==d||d))&&(d=this.graph.model.getEdgeCount(a),0<d))for(var f=0;f<d;f++){var g=this.graph.model.get…
744 …nction(a,b,c){if(!c)return this.graph.model.getParent(b)==a;if(b==a)return!1;for(;null!=b&&b!=a;)b…
747 mxGraphLayout.prototype.setEdgePoints=function(a,b){if(null!=a){var c=this.graph.model,d=c.getGeome…
815 …arallels(a,b);this.graph.model.beginUpdate();try{for(var d in c){var e=c[d];1<e.length&&this.layou…
839 …0;g<f.length;g++){var k=a.getVisibleTerminal(f[g],!1);if(k!=b[e]&&a.graph.model.isVertex(k)&&!a.is…
850model.getParent(b[f])==e[g]){c[f].swimlaneIndex=g;break}g=a.getEdges(b[f]);c[f].connectsAsSource=[…
901 …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.
903 …&(x=-x),u-=x,t=f[4*e+2-t],r=k.model.getTerminal(n,!1),p=this.layout.getVisibleTerminal(n,!1),this.…
910 …hicalLayout.prototype.traverseAncestors=!0;mxHierarchicalLayout.prototype.model=null;mxHierarchica… method in mxHierarchicalLayout
911 …erarchicalEdgeStyle.POLYLINE;mxHierarchicalLayout.prototype.getModel=function(){return this.model};
912 mxHierarchicalLayout.prototype.execute=function(a,b){this.parent=a;var c=this.graph.model;this.edge…
914 …pe.findRoots=function(a,b){var c=[];if(null!=a&&null!=b){var d=this.graph.model,e=null,f=-1E5,g;fo…
915 …(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b=[],d=this.graph.…
917 …aph.view.getVisibleTerminal(a,b));null!=e&&(this.isPort(e)&&(e=this.graph.model.getParent(e)),c.pu…
919 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
920 mxHierarchicalLayout.prototype.filterDescendants=function(a,b){var c=this.graph.model;c.isVertex(a)…
923 …mxHierarchicalLayout.prototype.layeringStage=function(){this.model.initialRank();this.model.fixRan…
926 …xSwimlaneLayout.prototype.traverseAncestors=!0;mxSwimlaneLayout.prototype.model=null;mxSwimlaneLay… method in mxSwimlaneLayout
927 …mxHierarchicalEdgeStyle.POLYLINE;mxSwimlaneLayout.prototype.getModel=function(){return this.model};
928 mxSwimlaneLayout.prototype.execute=function(a,b){this.parent=a;var c=this.graph.model;this.edgesCac…
930 mxSwimlaneLayout.prototype.updateGroupBounds=function(){var a=[],b=this.model,c;for(c in b.edgeMapp…
932 2;k.height=a.height+d.height+2*this.parentBorder;this.graph.model.setGeometry(f,k);this.graph.moveC…
933 …pe.findRoots=function(a,b){var c=[];if(null!=a&&null!=b){var d=this.graph.model,e=null,f=-1E5,g;fo…
934 …(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b=[],d=this.graph.…
936 …aph.view.getVisibleTerminal(a,b));null!=e&&(this.isPort(e)&&(e=this.graph.model.getParent(e)),c.pu…
938 …verse(this.roots[e],!0,null,c,l,b,null);b=[];for(f in c)b.push(c[f]);this.model=new mxSwimlaneMode… variable
939 mxSwimlaneLayout.prototype.filterDescendants=function(a,b){var c=this.graph.model;c.isVertex(a)&&a!…
941 …=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…
942 …a)};mxSwimlaneLayout.prototype.layeringStage=function(){this.model.initialRank();this.model.fixRan…
974 ….getChildAt(a,e),this.getChildAt(b,e),c)};function mxRootChange(a,b){this.model=a;this.previous=th…
975 …root=this.previous;this.previous=this.model.rootChanged(this.previous)};function mxChildChange(a,b…
976 …d){var a=this.model.getParent(this.child),b=null!=a?a.getIndex(this.child):0;null==this.previous&&…
977model.terminalForCellChanged(a,c,!0):this.model.terminalForCellChanged(a,null,!0));null!=d&&(b?thi…
978model=a;this.cell=b;this.previous=this.terminal=c;this.source=d}mxTerminalChange.prototype.execute…
979model.valueForCellChanged(this.cell,this.previous))};function mxStyleChange(a,b,c){this.model=a;th…
980model.geometryForCellChanged(this.cell,this.previous))};function mxCollapseChange(a,b,c){this.mode…
981model=a;this.cell=b;this.previous=this.visible=c}mxVisibleChange.prototype.execute=function(){null…
1094 this.autoSize&&(this.graph.model.isEdge(c.cell)||"fill"!=c.style[mxConstants.STYLE_OVERFLOW])&&wind…
1114model.getParent(a.cell):"swimlane"==f?(d[b]=c==mxConstants.STYLE_STROKECOLOR||c==mxConstants.STYLE…
1140 …pacingBottom*c:0))}e=a.text.getTextRotation();0!=e&&null!=a&&a.view.graph.model.isVertex(a.cell)&&…
1150 mxCellRenderer.prototype.redrawShape=function(a,b,c){var d=a.view.graph.model,e=!1;null!=a.shape&&n…
1215 …tate(!1);null!=this.graph.model.getTerminal(a.cell,!0)&&null==c||null==c&&null==b.getTerminalPoint…
1230 …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)&&…
1261 …_FASTER?mxConstants.DIALECT_PREFERHTML:mxConstants.DIALECT_MIXEDHTML;this.model=null!=b?b:new mxGr…
1262 …unction(a,b){this.graphModelChanged(b.getProperty("edit").changes)});this.model.addListener(mxEven…
1263 …pe.mouseListeners=null;mxGraph.prototype.isMouseDown=!1;mxGraph.prototype.model=null;mxGraph.proto… method in mxGraph
1276 …new mxCellEditor(this)};mxGraph.prototype.getModel=function(){return this.model};mxGraph.prototype…
1278model.contains(a))if(this.model.isEdge(a)||this.model.isVertex(a))c.put(a,!0),d.push(a);else for(v…
1280model.contains(a[c])&&this.isCellVisible(a[c]))for(var d=this.model.getParent(a[c]);null!=d&&d!=th…
1281 …a instanceof mxChildChange){var b=this.model.getParent(a.child);this.view.invalidate(a.child,!0,!0…
1283 …veStateForCell=function(a){for(var b=this.model.getChildCount(a),c=0;c<b;c++)this.removeStateForCe…
1286 …(a){a=null!=a?a:this.model.getRoot();this.removeCellOverlays(a);for(var b=this.model.getChildCount…
1289model.beginUpdate();try{var d=a.value;this.cellLabelChanged(a,b,this.isAutoSizeCell(a));this.fireE…
1290 …hanged=function(a,b,c){this.model.beginUpdate();try{this.model.setValue(a,b),c&&this.cellSizeUpdat…
1291 …(a){var b=this.isCellSelected(a.cell);e=e||b;return!e||b||a.cell!=c&&this.model.isAncestor(a.cell,…
1292 …ToggleEvent(b)&&mxEvent.isAltDown(b)))){d=c;for(a=[];null!=d;){var d=this.model.getParent(d),f=thi…
1293 mxGraph.prototype.isSiblingSelected=function(a){for(var b=this.model,c=b.getParent(a),d=b.getChildC…
1310 …le(a)};mxGraph.prototype.getCellStyle=function(a){var b=this.model.getStyle(a);a=this.model.isEdge…
1312 …ionCells();if(null!=b){this.model.beginUpdate();try{for(var c=0;c<b.length;c++)this.model.setStyle…
1313 …his.getEditableCells(this.getSelectionCells());mxUtils.setCellStyles(this.model,c,a,b)};mxGraph.pr…
1314model,d,a,b,c))};mxGraph.prototype.getOriginForCell=function(a){a=this.model.getParent(a);for(var …
1315 …){var e=this.getOriginForCell(b[d]),f=this.getCellGeometry(b[d]);if(!this.model.isEdge(b[d])&&null…
1316 …sortCells(b);this.model.beginUpdate();try{for(d=0;d<b.length;d++)e=this.getOriginForCell(b[d]),f=t…
1317 …(new mxEventObject(mxEvent.ALIGN_CELLS,"align",a,"cells",b))}finally{this.model.endUpdate()}}}retu…
1318model.beginUpdate();try{var b=this.model.getStyle(a);null==b||0==b.length?this.model.setStyle(a,th…
1320model.beginUpdate();try{this.cellsOrdered(b,a,c),this.fireEvent(new mxEventObject(mxEvent.ORDER_CE…
1321model.beginUpdate();try{for(var d=0;d<a.length;d++){var e=this.model.getParent(a[d]);b?c?this.mode…
1322model.getParent(a);null==e&&(e=this.model.getParent(c[0]));this.model.beginUpdate();try{null==this…
1323model.endUpdate()}}return a};mxGraph.prototype.getCellsForGroup=function(a){var b=[];if(null!=a&&0…
1325model.beginUpdate();try{for(var c=0;c<a.length;c++){var d=this.model.getChildren(a[c]);if(null!=d&…
1326model.setGeometry(d[g],l))}}}this.removeCellsAfterUngroup(a);this.fireEvent(new mxEventObject(mxEv…
1327model.beginUpdate();try{var b=this.getDefaultParent(),c=this.model.getChildCount(b);this.cellsAdde…
1328 …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{…
1329 …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)…
1330 …l;if(null!=a&&0<a.length)for(var c=0;c<a.length;c++)if(this.model.isVertex(a[c])||this.model.isEdg…
1331model.cloneCells(a,!0,c),g=0;g<a.length;g++)if(!b&&this.model.isEdge(e[g])&&null!=this.getEdgeVali…
1332model.getParent(a[g]));if(null!=n&&null!=p)if(c=d?0:p.origin.x,p=d?0:p.origin.y,this.model.isEdge(…
1335model.getChildCount(b));this.model.beginUpdate();try{this.cellsAdded(a,b,c,d,e,null!=f?f:!1,!0),th…
1336model.beginUpdate();try{for(var l=f?this.view.getState(b):null,m=null!=l?l.origin:null,n=new mxPoi…
1337 …ax(0,t.x),t.y=Math.max(0,t.y));this.model.setGeometry(a[l],t)}}b==p&&c+l>this.model.getChildCount(…
1338model.endUpdate()}}};mxGraph.prototype.autoSizeCell=function(a,b){if(null!=b?b:1)for(var c=this.mo…
1339 …this.view.getState(c[e])||d.get(c[e])||(d.put(c[e],!0),a.push(c[e]))}this.model.beginUpdate();try{…
1340 a,"includeEdges",b))}finally{this.model.endUpdate()}return a};
1341model.beginUpdate();try{for(var d=new mxDictionary,e=0;e<a.length;e++)d.put(a[e],!0);for(e=0;e<a.l…
1342model.setGeometry(d,g),this.model.setTerminal(d,null,f))}}),k=0;k<f.length;k++)d.get(f[k])||(d.put…
1343 …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…
1344model.setGeometry(a,m))}}this.cellsMoved(b,d,e,!1,!1);this.cellsAdded(b,k,this.model.getChildCount…
1345model.beginUpdate();try{this.cellsToggled(b,a),this.fireEvent(new mxEventObject(mxEvent.TOGGLE_CEL…
1346model.beginUpdate();try{this.cellsFolded(c,a,b,d),this.fireEvent(new mxEventObject(mxEvent.FOLD_CE…
1347model.beginUpdate();try{for(var e=0;e<a.length;e++)if((!d||this.isCellFoldable(a[e],b))&&b!=this.i…
1348 …a,b){if(null!=a){var c=this.model.getGeometry(a);null!=c&&(c=c.clone(),this.updateAlternateBounds(…
1351model.getEdgeCount(a[c]),e=0;e<d;e++)b.push(this.model.getEdgeAt(a[c],e));d=this.model.getChildren…
1352model.beginUpdate();try{var c=this.getPreferredSizeForCell(a),d=this.model.getGeometry(a);if(null!…
1353 c.width+8),e&&(d.width=c.width+8),d.height=c.height);this.model.setStyle(a,g)}else{var k=this.view.…
1354model.getChildren(a));if(null!=n){var p=this.view.translate,q=this.view.scale,r=(n.y+n.height)/q-d…
1355 …{var c=null;if(null!=a){var d=this.view.createState(a),e=d.style;if(!this.model.isEdge(a)){var f=e…
1358model.beginUpdate();try{var d=this.cellsResized(a,b,c);this.fireEvent(new mxEventObject(mxEvent.RE…
1359model.beginUpdate();try{for(var e=0;e<a.length;e++)d.push(this.cellResized(a[e],b[e],!1,c)),this.i…
1360model.getGeometry(a);if(null!=e&&(e.x!=b.x||e.y!=b.y||e.width!=b.width||e.height!=b.height)){var f…
1361model.getGeometry(a),d=0!=c.width?b.width/c.width:1,c=0!=c.height?b.height/c.height:1,e=this.model
1362 mxGraph.prototype.scaleCell=function(a,b,c,d){var e=this.model.getGeometry(a);if(null!=e){var f=thi…
1363 …is.model.isVertex(a)?this.cellResized(a,e,!0,d):this.model.setGeometry(a,e)}};mxGraph.prototype.ex…
1365model.getTopmostCells(a);this.model.beginUpdate();try{for(var l=new mxDictionary,m=0;m<a.length;m+…
1366model.getTerminal(r,!0))||n(this.model.getTerminal(r,!1)))||p.push(a[m])}a=p;d&&(a=this.cloneCells…
1367model.getParent(k[m]),null!=q&&q.relative&&this.model.isEdge(r)&&this.model.contains(r)&&this.mode…
1368model.beginUpdate();try{d&&this.disconnectGraph(a);for(var g=0;g<a.length;g++)this.translateCell(a…
1369model.getGeometry(a);if(null!=d){b=parseFloat(b);c=parseFloat(c);d=d.clone();d.translate(b,c);d.re…
1370 …loat(d.offset.x+b)),d.offset.y=Math.round(parseFloat(d.offset.y+c)))}this.model.setGeometry(a,d)}};
1371 …ion(a){if(null!=a&&!this.model.isEdge(a)){var b=this.model.getParent(a);if(null!=b&&b!=this.getDef…
1373 …if(null!=c&&(this.isConstrainRelativeChildren()||!c.relative)){var d=this.model.getParent(a);this.…
1374 …ntersect(d))}if(null!=e){d=[a];if(!this.isCellCollapsed(a))for(var f=this.model.getDescendants(a),…
1375 …&(c.offset=new mxPoint),c.offset.x+=f,c.offset.y+=g):(c.x+=f,c.y+=g);this.model.setGeometry(a,c)}}…
1376model.beginUpdate();try{for(c=0;c<a.length;c++){var d=this.model.getEdges(a[c]);if(null!=d)for(var…
1377 …ge=function(a){var b=this.model.getGeometry(a);null!=b&&null!=b.points&&0<b.points.length&&(b=b.cl…
1383 mxGraph.prototype.setConnectionConstraint=function(a,b,c,d){if(null!=d){this.model.beginUpdate();tr…
1385 …STYLE_EXIT_PERIMETER:mxConstants.STYLE_ENTRY_PERIMETER,"0",[a]))}finally{this.model.endUpdate()}}};
1389model.beginUpdate();try{var e=this.model.getTerminal(a,c);this.cellConnected(a,b,c,d);this.fireEve…
1390model.beginUpdate();try{var e=this.model.getTerminal(a,c);this.setConnectionConstraint(a,b,c,d);th…
1391 c,"previous",e))}finally{this.model.endUpdate()}}};
1392model.beginUpdate();try{for(var b=this.view.scale,c=this.view.translate,d=new mxDictionary,e=0;e<a…
1393model.getParent(p);null==p&&(f.setTerminalPoint(new mxPoint(n[0].x/b-c.x+l,n[0].y/b-c.y+m),!0),thi…
1394 …{return!1};mxGraph.prototype.getTerminalForPort=function(a,b){return this.model.getParent(a)};mxGr…
1395model.getRoot(),b=this.getCurrentRoot();if(null!=b){for(var c=this.model.getParent(b);c!=a&&!this.…
1396 …at(this.model.getEdges(a)));d=this.view.getBounds(d);if(c){c=this.model.getChildCount(a);for(var e…
1397model.isVertex(a[d])){var e=this.getCellGeometry(a[d]);if(null!=e){var f=null;if(this.model.isEdge…
1398model.getParent(a[d]),e.relative?this.model.isVertex(k)&&k!=this.view.currentRoot&&(g=this.getBoun…
1417model.getGeometry(a)};mxGraph.prototype.isCellVisible=function(a){return this.model.isVisible(a)};…
1421model.getTerminal(a,!0)&&null==this.model.getTerminal(a,!1))return null;if(!this.allowLoops&&b==c&…
1422 "\n"}var e=this.model.getDirectedEdgeCount(b,!0,a),f=this.model.getDirectedEdgeCount(c,!1,a);if(nul…
1423model.getRoot();b=null!=b?b:{};for(var c=!0,d=this.model.getChildCount(a),e=0;e<d;e++){var f=this.
1424model.getTerminal(a,!0),this.model.getTerminal(a,!1))||""):d+(this.getCellValidationError(a)||"");…
1425 …ationError=function(a){var b=this.model.getDirectedEdgeCount(a,!0),c=this.model.getDirectedEdgeCou…
1427 mxGraph.prototype.convertValueToString=function(a){a=this.model.getValue(a);if(null!=a){if(mxUtils.…
1437 …ype.isSwimlane=function(a,b){return null==a||this.model.getParent(a)==this.model.getRoot()||this.m…
1439model.getGeometry(a);return this.isCellsLocked()||null!=b&&this.model.isVertex(a)&&b.relative};mxG…
1440 …Cloneable=a};mxGraph.prototype.getExportableCells=function(a){return this.model.filterCells(a,mxUt…
1441 mxGraph.prototype.getImportableCells=function(a){return this.model.filterCells(a,mxUtils.bind(this,…
1442 mxGraph.prototype.getDeletableCells=function(a){return this.model.filterCells(a,mxUtils.bind(this,f…
1443model.isEdge(a)&&this.edgeLabelsMovable||this.model.isVertex(a)&&this.vertexLabelsMovable)};mxGrap…
1444 mxGraph.prototype.getMovableCells=function(a){return this.model.filterCells(a,mxUtils.bind(this,fun…
1449 …litEnabled=a};mxGraph.prototype.getResizableCells=function(a){return this.model.filterCells(a,mxUt…
1451 …llsBendable=a};mxGraph.prototype.getEditableCells=function(a){return this.model.filterCells(a,mxUt…
1453 …urce=function(a){return null==a&&this.allowDanglingEdges||null!=a&&(!this.model.isEdge(a)||this.co…
1458 …a){return!1};mxGraph.prototype.getFoldableCells=function(a,b){return this.model.filterCells(a,mxUt…
1459model.getChildCount(a)&&0!=c[mxConstants.STYLE_FOLDABLE]};mxGraph.prototype.isValidDropTarget=func…
1460model.isEdge(a)&&null!=b&&1==b.length&&this.isCellConnectable(b[0])&&null==this.getEdgeValidationE…
1461model.getParent(e);null!=f&&this.isSwimlane(f)&&f!=c;)f=this.model.getParent(f);f==c&&(c=e)}for(;n…
1462model.getParent(g);return this.model.isLayer(c)||null!=g?null:c};mxGraph.prototype.getDefaultParen…
1463 …rentRoot(),null==c&&(c=this.model.getRoot()));if(null!=c)for(var d=this.model.getChildCount(c),e=0…
1464model.getChildCount(c)-1;0<=g;g--){var k=this.model.getChildAt(c,g),l=this.getCellAt(a,b,k,d,e,f);…
1467 mxGraph.prototype.getChildCells=function(a,b,c){a=null!=a?a:this.getDefaultParent();a=this.model.ge…
1468model.getChildCount(a),m=0;m<l;m++){var n=this.model.getChildAt(a,m);if(k||!this.isCellVisible(n))…
1469 …aph.prototype.isValidAncestor=function(a,b,c){return c?this.model.isAncestor(b,a):this.model.getPa…
1474 …c=this.getDefaultParent()),null!=c)for(var g=this.model.getChildCount(c),k=0;k<g;k++){var l=this.m…
1475 ….getChildCount(a),g=null,k=0,l=0;l<f;l++){var m=e.getChildAt(a,l);if(this.model.isVertex(m)&&this.…
1476 …(d=this.model.getEdgeCount(a),0<d))for(var g=0;g<d;g++){var k=this.model.getEdgeAt(a,g),l=this.mod…
1480model.getParent(e):this.getDefaultParent(),f=this.model.getChildCount(d);null==e&&0<f?(a=this.mode…
1481model.getChildAt(d,0>b?f-1:b)),this.setSelectionCell(a)):this.getCurrentRoot()!=d&&this.setSelecti…
1482 …0==this.model.getChildCount(c))&&this.model.isVertex(c)&&a&&!this.model.isEdge(this.model.getParen…
1484 mxGraph.prototype.createHandler=function(a){var b=null;if(null!=a)if(this.model.isEdge(a.cell))var …
1503 null!=this.model&&null!=this.graphModelChangeListener&&(this.model.removeListener(this.graphModelCh…
1527model.getValue(c);d=a.model.getValue(d);c=!this.validNeighborsAllowed;for(var e=this.validNeighbor…
1566 …pagateSelectionCell=function(a,b,c){var d=this.graph.model.getParent(a);return b?(b=this.graph.mod…
1567 …vent())||null==b||this.graph.isCellSelected(b.cell)))for(var c=this.graph.model,d=this.graph.view.…
1568 …sHandled(a))return this.graph.cellEditor.getEditingCell()!=a;a=this.graph.model.getParent(a)}retur…
1572 …ectCellForEvent(c,b.getEvent());if(this.isMoveEnabled()){var d=this.graph.model,e=d.getGeometry(c)…
1579model.getParent(a),f=2>this.graph.model.getChildCount(e),g=new mxDictionary;a=this.graph.getOpposi…
1580 …t(a)){b.put(a,c);d++;for(var c=this.graph.model.getChildCount(a),e=0;e<c;e++)d+=this.addStates(thi…
1582 …xGraphHandler.prototype.isValidDropTarget=function(a,b){return this.graph.model.getParent(this.cel…
1591 (e.text.originalPointerEvents=e.text.pointerEvents),e.text.pointerEvents=!1)),this.graph.model.isVe…
1592 …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…
1603 this.graph.model.getParent(a[l]);null==m||k.get(m)||(k.put(m,!0),g.push(m))}}a=this.graph.moveCells…
1604 …ull!=a&&(this.graph.model.isEdge(a.cell)||this.graph.model.isVertex(a.cell))&&this.graph.isCellDel…
1694 …&&null!=l.geometry&&l.geometry.relative&&l.parent!=g.parent;)l=this.graph.model.getParent(l);null!…
1703 ….getState(this.currentFocus.cell)?this.reset():this.redraw()});this.graph.model.addListener(mxEven…
1719 …type.destroy=function(){this.reset();null!=this.resetHandler&&(this.graph.model.removeListener(thi…
1747 b++)));a=this.graph.model.getGeometry(this.state.cell);null==a||a.relative||this.graph.isSwimlane(t…
1761model.getChildCount(this.state.cell),this.inTolerance=!0,this.childOffsetY=this.childOffsetX=0,thi…
1770 …andler.prototype.isGhostPreview=function(){return 0<this.state.view.graph.model.getChildCount(this…
1792model.getGeometry(a);null!=b&&(d==mxEvent.LABEL_HANDLE?(d=-mxUtils.toRadians(this.state.style[mxCo…
1806 …ntHighlightVisible=function(){return!this.graph.isCellSelected(this.graph.model.getParent(this.sta…
1807 …Visible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=this.p…
1808 …y(),this.parentHighlight=null):this.parentHighlightEnabled&&a&&this.graph.model.isVertex(b)&&null!…
1811 …troy(),this.preview=null);if(null!=this.parentHighlight){var a=this.graph.model.getParent(this.sta…
1838 …HANDLE;if(this.isSource||this.isTarget){if(a=this.state.cell,b=this.graph.model.getTerminal(a,this…
1874 …w.scale;var e=new mxPoint(e.x*c,e.y*c),f=this.graph.model.getParent(this.state.cell);this.graph.mo…
1890 …estroy(),this.shape=null);if(null!=this.parentHighlight){var a=this.graph.model.getParent(this.sta…
1933 …ate&&null!=this.shape&&(this.shape.scale=this.state.view.scale,this.graph.model.isEdge(this.state.…
1964model.contains(a.previous)?0<=mxUtils.indexOf(this.idrefs,c):!0};a.isExcluded=function(a,c,d,e){re…
2057model.beginUpdate();try{this.graph.model.clear(),this.graph.view.scale=1,this.readGraphState(b),th…
2058 …tring:function(){return this.message}};}else this.resetGraph(),this.graph.model.clear(),this.fireE…
2059 …his.graph.getModel()):this.graph.encodeCells(mxUtils.sortCells(this.graph.model.getTopmostCells(th…
2094 …geFormat.height==d.previousFormat.height&&d.ignoreColor&&d.ignoreImage||k.model.execute(d)});y.cla…
2133model.getParent(b);if(d)c=this.graph.model.isEdge(b)?null:this.graph.getCellGeometry(b),c=!this.gr…
2169 for(g.consume();null!=m&&b.model.isVertex(m)&&null!=f&&f.relative;)cell=m,m=b.model.getParent(cell)…
2176model);this.sidebar.createThumb([d],25,25,e,null,!0,!1,d.geometry.width,d.geometry.height);mxEvent…
2191 …!1,null);else{for(var e=e||c.getSelectionCells(),e=c.getExportableCells(c.model.getTopmostCells(e)…
2254 …et("collapsible").setEnabled(c&&(b.isContainer(b.getSelectionCell())||0<b.model.getChildCount(b.ge…
2275 …),e=new mxDictionary,k=[],g=0;g<c.length;g++){var p=b.isTableCell(c[g])?b.model.getParent(c[g]):c[…
2294 …(b){b=new ChangePageSetup(this,null,b);b.ignoreColor=!0;this.editor.graph.model.execute(b)});var e…
2298model.getParent(c),l=k.getView().scale;f=null;1==k.getSelectionCount()&&k.model.isVertex(c)&&null!…
2301 …this.isControlDown(b)&&mxEvent.isShiftDown(b)&&mxEvent.isAltDown(b)){if(k.model.isVertex(k.getSele…
2302 …EdgeLength,b,!0);null!=f&&0<f.length&&(1==f.length&&k.model.isEdge(f[0])?k.setSelectionCell(k.mode…
2319 …(),k=this.view.scale;if(!mxEvent.isAltDown(e.getEvent())&&null!=g)if(this.model.isEdge(g.cell))if(…
2321model.getParent(g.cell),m=this.model.getParent(v);if(!this.isCellSelected(m)){var u=this.getCellGe…
2322 this.model.getChildAt(v,0)!=g.cell||mxUtils.intersects(n,new mxRectangle(g.x+u.width*k-2,g.y,2,u.he…
2323 …rt(e.getGraphX(),e.getGraphY(),u),e.consume())),g=this.view.getState(this.model.getParent(g.cell))…
2324 …Y())>g){var k=this.selectionCellsHandler.getHandler(e.cell);null==k&&this.model.isEdge(e.cell)&&(k…
2327 …se if(e=c.getState(),null!=e&&this.isCellEditable(e.cell)){k=null;if(this.model.isEdge(e.cell)){if…
2329model.getParent(e.cell),m=this.model.getParent(n),!this.isCellSelected(m)))if(mxUtils.intersects(g…
2331 "row-resize")}n=this.view.getState(this.model.getParent(n.cell))}}null!=k&&e.setCursor(k)}}),mouseU…
2335model.getParent(d[e]):this.graph.isTableRow(b)&&this.graph.isTableRow(d[e])&&this.graph.isCellSele…
2343 "locked","0"))return!0;b=this.model.getParent(b)}return!1};var O=null;this.addListener(mxEvent.FIRE…
2344 …lected(b.cell)||f.isTableRow(b.cell)&&f.selectionCellsHandler.isHandled(f.model.getParent(b.cell))…
2370 …etVerticesAndEdges=function(b,d){b=null!=b?b:!0;d=null!=d?d:!0;var f=this.model;return f.filterDes…
2371 …(!this.isSwimlane(b)||0==f)&&""==this.getLabel(b)&&0<this.model.getChildCount(b)&&(b=this.model.ge…
2372model.getChildCount(b))for(f=0;f<this.model.getChildCount(b);f++){var c=this.model.getChildAt(b,f)…
2373model.beginUpdate();try{for(var c=0;c<d.length;c++)for(var e=this.getCurrentCellStyle(d[c]),g=0;g<…
2375model.getChildCount(f)-1;0<=l;l--){var k=this.model.getChildAt(f,l),q=this.getScaledCellAt(b,d,k,c…
2376 …Graph.prototype.getCompositeParent=function(b){for(;this.isPart(b);){var d=this.model.getParent(b);
2377 if(!this.model.isVertex(d))break;b=d}return b};Graph.prototype.filterSelectionCells=function(b){var…
2388 ….childLayout};this.layoutManager.getLayout=function(b,c){var e=this.graph.model.getParent(b);if(c!…
2394 ….shape&&(this.model.isEdge(g.cell)&&null!=g.absolutePoints&&1<g.absolutePoints.length?e.push(this.…
2401 …totype.updatePlaceholders=function(){var b=!1,c;for(c in this.model.cells){var e=this.model.cells[…
2403 …"0"));return c};Graph.prototype.isSplitTarget=function(b,c,e){return!this.model.isEdge(c[0])&&!mxE…
2404 …entCellStyle(b);return!this.isCellLocked(b)&&(this.model.isEdge(b)&&this.edgeLabelsMovable||this.m…
2405 …ll=function(b){do{var c=this.getLinkForCell(b);if(null!=c)return c;b=this.model.getParent(b)}while…
2411 …l;if(0<b.length){for(c=b[0];!this.model.isLayer(c);)c=this.model.getParent(c);for(var e=1;e<b.leng…
2416model.getParent(f);null==t&&(t=this.getGlobalVariable(d));null==t&&null!=e&&(t=e[d])}k.push(c.subs…
2417model.isVertex(b[1])?(this.setSelectionCell(b[1]),this.scrollCellToVisible(b[1]),null!=e&&(mxEvent…
2418 …,d){p=p?p:!1;if(b.geometry.relative&&this.model.isEdge(b.parent))return[];for(;b.geometry.relative…
2419 …this.model.getParent(b));e=this.view.scale;var n=this.view.translate,l=n.x*e,n=n.y*e;null!=m&&this…
2420model.isEdge(p[y])&&p[y]!=b)if(!this.model.isAncestor(b,p[y])&&this.isContainer(p[y])&&(null==u||p…
2421 …v=u;g=mxUtils.bind(this,function(e){if(null==t||null!=e||null==v&&f){this.model.beginUpdate();try{…
2422 !1)[0];null!=e&&this.addCells([B],this.model.getParent(b),null,null,null,!0);var l=this.getCellGeom…
2423model.getParent(b),null,"",b,B,this.createCurrentEdgeStyle());if(null!=m&&this.connectionHandler.i…
2424 …is.fireEvent(new mxEventObject("cellsInserted","cells",[m]))}finally{this.model.endUpdate()}}if(nu…
2425 …ateElement("div"),c=[],e,k;for(k in this.model.cells)if(e=this.model.cells[k],this.model.isVertex(…
2426model.getValue(b);if(null!=c&&"object"==typeof c){var e=null;if(this.isReplacePlaceholders(b)&&nul…
2428 …s,arguments);if(null!=b&&null!=this.layoutManager){var e=this.model.getParent(b);this.model.isVert…
2429 …Manager&&null!=c.alternateBounds){var k=this.layoutManager.getLayout(this.model.getParent(b));null…
2430model.beginUpdate();try{if(mxGraph.prototype.foldCells.apply(this,arguments),null!=this.layoutMana…
2431 …ackLayout||m.resizeLast||this.resizeParentStacks(q,m,f,l)}}}}finally{this.model.endUpdate()}this.i…
2432model.beginUpdate();try{var g=this.getCellsBeyond(b.x,b.y,c,!0,!0);for(c=0;c<g.length;c++)if(g[c]!…
2433model.beginUpdate();try{for(var g=c.horizontal;null!=b&&null!=c&&c.constructor==mxStackLayout&&c.h…
2434 p));b=this.model.getParent(b);c=this.layoutManager.getLayout(b)}}finally{this.model.endUpdate()}}};…
2451 …h.selectionModel.addListener(mxEvent.CHANGE,this.resetHandler);this.graph.model.addListener(mxEven…
2453 …(this.currentState.cell)||!mxEvent.isTouchEvent(c.getEvent())||this.graph.model.isVertex(c.getCell…
2455 …ection(),k):this.isActive()?1==this.graph.getSelectionCount()&&this.graph.model.isEdge(this.graph.…
2464 …getGraphX(),p=e.getGraphY(),g=this.getStateAt(b,g,p);null==g||!this.graph.model.isEdge(g.cell)||th…
2466 …e=this.getState(this.currentState);if(null!=this.currentState&&this.graph.model.isVertex(this.curr…
2467 …entState.cell)&&(c=this.graph.selectionCellsHandler.getHandler(this.graph.model.getParent(this.cur…
2470 …nd(this,function(b,f){var d=this.graph.model.isVertex(b)&&this.graph.getCellGeometry(b);null==b||t…
2473 HoverIcons.prototype.computeBoundingBox=function(){var b=this.graph.model.isEdge(this.currentState.…
2474 …aph.isCellConnectable(c)&&(b=c)}if(this.graph.isCellLocked(b)||this.graph.model.isEdge(b))b=null;b…
2475 …else{null!=b&&null!=b.cell.geometry&&b.cell.geometry.relative&&this.graph.model.isEdge(b.cell.pare…
2480 …on(b,c,e){for(var k=this.model.getChildCells(b,!0),g=0;g<k.length;g++)if(null!=e&&(k[g].value=e[g]…
2483model.isVertex(b)&&this.isTableRow(this.model.getParent(b))};Graph.prototype.isTableRow=function(b…
2484 …};Graph.prototype.isStackChild=function(b){return this.model.isVertex(b)&&this.isStack(this.model.…
2490 TableLayout.prototype.getRowLayout=function(b,c){for(var e=this.graph.model.getChildCells(b,!0),k=t…
2497 …unction(b,d){d=null!=d?d:!0;var f=this.getState(b);null!=f&&d&&this.graph.model.isEdge(f.cell)&&nu…
2498model.isEdge(f.cell)&&null!=f.style&&1!=f.style[mxConstants.STYLE_CURVED]&&this.validEdges.push(f)…
2500 function(b){g.apply(this,arguments);this.graph.model.isEdge(b.cell)&&1!=b.style[mxConstants.STYLE_C…
2527model.beginUpdate();try{for(var c=0;c<f.length;c++)if(this.model.isVertex(f[c])||this.model.isEdge…
2528 …Identity.get(c)]=c.getId();for(var e=this.model.getChildCount(c),g=0;g<e;g++)this.createCellLookup…
2529model.beginUpdate();try{if(1!=k.length||this.isCellLocked(this.getDefaultParent()))for(g=0;g<k.len…
2530 …oxFromGeometry(b,!0);null!=n&&this.moveCells(b,d-n.x,f-n.y)}}finally{this.model.endUpdate()}}retur…
2531 …=this.getCellGeometry(f[e]);null!=m&&m.relative&&!this.model.isEdge(b[e])&&null==c.get(this.model.…
2532model.getParent(b)!=this.model.getRoot()&&!this.model.isEdge(b)){var f=this.getCurrentCellStyle(b,…
2533model.getParent(b),this.isTable(q)||this.isTableRow(q))&&(q=this.getCellAt(l,k,null,!0,!1));c=null…
2534model.remove(H[d]);this.setCellStyles(mxConstants.STYLE_TARGET_PERIMETER_SPACING,null,[c]);this.se…
2535model.endUpdate()}return c};var l=Graph.prototype.selectCell;Graph.prototype.selectCell=function(b…
2536 …gth>e||!b&&0<e)return;for(var f=0;f<this.model.getChildCount(d);f++)k(this.model.getChildAt(d,f))}…
2537model.beginUpdate();try{this.model.setGeometry(d,f),this.model.setGeometry(b[0],e)}finally{this.mo…
2538model.beginUpdate();try{k=[];for(m=0;m<b.length;m++)if(null!=e&&this.isTableRow(b[m])){var n=this.
2539model.getChildCells(b[m],!0),A=this.model.getChildCells(ca[0],!0),p=A.length-u.length;if(0<p)for(v…
2540model.contains(k[m])&&0==this.model.getChildCount(k[m])&&this.model.remove(k[m]);c&&this.updateCus…
2541model.getChildCount(e)&&1==this.model.getChildCount(g)?0>mxUtils.indexOf(b,g)&&0>mxUtils.indexOf(f…
2542 …ustomLinksForCell(b,d);for(var f=this.model.getChildCount(d),c=0;c<f;c++)this.updateCustomLinksFor…
2544 …lidRoot=function(b){for(var d=this.model.getChildCount(b),f=0,c=0;c<d;c++){var e=this.model.getChi…
2546 …apply(this,arguments);if(d&&null!=b&&null!=this.layoutManager){var f=this.model.getParent(b);null!…
2551 …etry))){var d=b.cell;this.isTableCell(d)&&(d=this.model.getParent(d));this.isTableRow(d)&&(d=this.
2552 …;Graph.prototype.invalidateDescendantsWithPlaceholders=function(b){b=this.model.getDescendants(b);…
2554model.beginUpdate();try{if(null!=b.value&&"object"==typeof b.value){if(this.isReplacePlaceholders(…
2555model.getParent(e)}var g=b.value.cloneNode(!0);Graph.translateDiagram&&null!=Graph.diagramLanguage…
2556model.getParent(b[f]);null==e||d.get(e)||(d.put(e,!0),c.push(e))}for(f=0;f<c.length;f++)if(e=this.…
2558 …abel",b.value||""));null!=f?c.setAttribute(d,f):c.removeAttribute(d);this.model.setValue(b,c)};var…
2559model.getParent(b[e]);if(this.model.isEdge(g)&&0>mxUtils.indexOf(b,g))return null}for(var g=u.appl…
2560 …ent.getClientX(b),mxEvent.getClientY(b));if(null!=b&&!this.model.isVertex(d)){var c=this.model.isE…
2564 …ue="Text";c.geometry=new mxGeometry(0,0,0,0);c.vertex=!0;if(null!=f&&this.model.isEdge(f.cell)){c.…
2567 …"href",c),null!=d&&mxEvent.addGestureListeners(b[f],null,null,d))}});this.model.addListener(mxEven…
2568 …null,function(b,d,f){return null==l.getLinkForCell(b.cell)}),d=null==d||l.model.isAncestor(b,d.cel…
2573 …(var f=0;f<b.length;f++)this.isTableCell(b[f])&&(b[f]=this.model.getParent(b[f]));b=this.model.get…
2578 …c-e)/(f.length-1),c=e,g=1;g<f.length-1;g++){var q=this.view.getState(this.model.getParent(f[g].cel…
2586model.getParent(b.cell);!(g&&null==A||c)&&null!=e;)c=null!=A?A.get(e):f.isCellSelected(e),e=f.mode…
2592model.beginUpdate();try{for(var c=0;c<b.length;c++){var e=this.model.getParent(b[c]);if(this.isTab…
2625 …(this,arguments),""==d&&this.graph.isCellDeletable(b.cell)&&0==this.graph.model.getChildCount(b.ce…
2629 …var f=this.graph.getCellStyle(b);if(null==f.childLayout){var c=this.graph.model.getParent(b),e=nul…
2630model.setGeometry(c,e)}}};var E=mxSelectionCellsHandler.prototype.getHandledSelectionCells;mxSelec…
2632 …dEvent=function(b,d){return!(!this.graph.isSwimlane(b.cell)&&0<this.graph.model.getChildCount(b.ce…
2634 …leCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getPa…
2636 …s,arguments);if(this.graph.isTable(this.state.cell)){var d=this.graph,f=d.model,c=this.state,e=thi…
2642 …;mxVertexHandler.prototype.refreshMoveHandles=function(){var b=this.graph.model;if(null!=this.move…
2664 …olerance&&(l=0))));this.reset();if(f){if(this.isSpaceEvent(d)){this.graph.model.beginUpdate();try{…
2665 …null!=q&&(q=q.clone(),q.translate(g,l),this.graph.model.setGeometry(k[f],q))}}finally{this.graph.m…
2675 …style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(this.stat…
2702model.getChildCells(this.state.cell,!0);if(0<l.length){var k="0"!=mxUtils.getValue(this.state.styl…
2703 0,ya=0;ya<q.cells.length;ya++)z.model.isVisible(q.cells[ya])?n=q.x:(0<n&&b.lineTo(d+n-g.width,f+da.…
2879 c=d.model.getParent(b.cell),c=d.model.getChildCells(c,!0),e=[],g=0;g<c.length;g++)c[g]!=b.cell&&d.i…
2960 …on(b){function d(b){if(null!=b){for(var d=!0,f=0;f<b.length&&d;f++)d=d&&g.model.isEdge(b[f]);var c…
2970model.beginUpdate();try{var d=g.ungroupCells();if(null!=b)for(var c=0;c<b.length;c++)g.model.conta…
2987 …angePageSetup(e,null,null,null,b/100),b.ignoreColor=!0,b.ignoreImage=!0,g.model.execute(b))}),mxRe…
2989 …e);b.ignoreColor=!0;b.ignoreImage=!0;b.foldingEnabled=!g.foldingEnabled;g.model.execute(b)});t.set…
2994 …ll;"U"==b.nodeName&&g.replaceElement(b)});for(var f=0;f<b.length;f++)0==g.model.getChildCount(b[f]…
3030 …e="+this.getSize()+" ("+t+")\nUser="+d+f+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+D…
3035 …ible(b.cell),b.view.graph.cellEditor.resize());q.apply(this,arguments)};t.model.beginUpdate();try{…
3036 …selectPage(this.ui.pages[0],!0)}finally{t.container.style.visibility="";t.model.endUpdate();t.cell…
3048 …table()||null!=e&&e.ignoreEdit||this.fileChanged()}),this.ui.editor.graph.model.addListener(mxEven…
3081 …moveListeners=function(){null!=this.changeListener&&(this.ui.editor.graph.model.removeListener(thi…
3129 …s[0]:null,f=d.editorUi.editor.graph;return null!=c&&(f.isSwimlane(c)||0<f.model.getChildCount(c))}…
3130 …pe:"bool",defVal:!1,isVisible:function(b,d){var c=d.editorUi.editor.graph.model;return 0<b.vertice…
3212 !0;f.shadowVisible=b;c.model.execute(f)},{install:function(b){this.listener=function(){b(c.shadowVi…
3285 …Utils.indexOf(m,b);0<=c&&m.splice(c,1);l.removeTagsForCells(l.model.getDescendants(l.model.getRoot…
3289 v);l.model.addListener(mxEvent.CHANGE,v);l.addListener(mxEvent.REFRESH,v);var p=document.createElem…
3300 …tils.bind(this,function(){c||(c=!0,this.model.beginUpdate())}),l=mxUtils.bind(this,function(){c&&(…
3308 …f("*"==b[c])var f=this.model.getRoot(),d=d.concat(this.model.filterDescendants(function(b){return …
3309 ….model.getDescendants(this.model.getRoot());for(var g=0,l={},m=0;m<b.length;m++)0<b[m].length&&(l[…
3310model.root||this.model.isVertex(d[m])||this.model.isEdge(d[m])){var k=this.getTagsForCell(d[m]),n=…
3312model.beginUpdate();try{for(var c=0;c<b.length;c++){for(var f=this.getTagsForCell(b[c]),e=f.split(…
3313model.endUpdate()}}};Graph.prototype.toggleCells=function(b){this.model.beginUpdate();try{for(var …
3320 …ull==this.defaultParent){var b=this.model.getChildCount(this.model.root),d,c=0;do d=this.model.get…
3340 …s,arguments)};document.body.appendChild(l.container);b.updatePageRoot(B);l.model.setRoot(B.root)}u=
3379model.beginUpdate();try{var c=null!=this.pages?this.pages.slice():null,e=b.getElementsByTagName("d…
3380model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(b…
3395 …r"==b?1:l.apply(this,arguments)};document.body.appendChild(d.container);d.model.setRoot(n.root)}}u…
3404 …phXml(b);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root);if(null!=url…
3415 … in value for "+p.id+": "+O)}try{var B=b.getAttribute("style");null!=B&&g.model.setStyle(p,B)}catc…
3417 C:"dh"==key?K.height+=C:K[key]=parseFloat(E[key])}g.model.setGeometry(p,K)}}}catch(O){null!=window.…
3419 …moveListener(this.descriptorChangedListener),d.close());this.editor.graph.model.clear();this.edito…
3420 this.setCurrentFile(null);null!=d&&this.updateDocumentTitle();this.editor.graph.model.clear();this.…
3421 …File;this.setGraphEnabled(!0);this.setMode(b.getMode());this.editor.graph.model.prefix=Editor.guid…
3437 …,K=mxUtils.bind(this,function(b,d,e,g){b=B.cloneCells(mxUtils.sortCells(B.model.getTopmostCells(b)…
3453 …var c=new ChangePageSetup(this,null,b);c.ignoreColor=!0;this.editor.graph.model.execute(c)}});var …
3531 …htbox"),!0),B=this.addEditButton(d,t),F=B.getEditInput(),M=1<f.model.getChildCount(f.model.getRoot…
3544 arguments)};document.body.appendChild(d.container);d.model.setRoot(q.root)}this.editor.exportToCanv…
3549 this.editor.graph;if(null!=b&&0<b.length){f.model.beginUpdate();try{var l=mxUtils.parseXml(b);b={};…
3550 [1]))){var t=q[0].getAttribute("name");null!=t&&""!=t&&this.editor.graph.model.execute(new RenamePa…
3551model.execute(new ChangePage(this,E,E,K,!0));n.push(E)}this.updatePageLinks(b,n)}}if(null!=m&&"mxG…
3553 0;p<e.model.getChildCount(c);p++)this.updatePageLinksForCell(b,e.model.getChildAt(c,p))};EditorUi.p…
4029 …ppendChild(c.container);b=(new mxCodec(b.ownerDocument)).decode(b).root;c.model.setRoot(b);b=c.get…