Lines Matching refs:graph

479 …nager.prototype.constructor=mxAutoSaveManager;mxAutoSaveManager.prototype.graph=null;mxAutoSaveMan…  method in mxAutoSaveManager
480 …=function(a){null!=this.graph&&this.graph.getModel().removeListener(this.changeHandler);this.graph
483graph=a;this.steps=null!=b?b:6;this.ease=null!=c?c:1.5}mxMorphing.prototype=new mxAnimation;mxMorp… method in mxMorphing
484 …view(this.graph);if(null!=this.cells)for(var b=0;b<this.cells.length;b++)this.animateCell(this.cel…
485graph.getView().getState(a),e=null;if(null!=d&&(e=this.getDelta(d),this.graph.getModel().isVertex(…
486 …function(a){var b=this.getOriginForCell(a.cell),c=this.graph.getView().getTranslate(),d=this.graph
487graph.getModel().getParent(a);a=this.graph.getCellGeometry(a);b=this.getOriginForCell(c);null!=a&&…
490 ….visitStatesRecursive=function(a,b,c){if(null!=a){c(a,b);for(var d=a.view.graph,e=d.model.getChild…
597 …n(){this.addNode(!0,!0)};function mxGuide(a,b){this.graph=a;this.setStates(b)}mxGuide.prototype.gr… method in mxGuide
598 …xGuide.prototype.getGuideTolerance=function(a){return a&&this.graph.gridEnabled?this.graph.gridSiz…
599 …xConstants.DIALECT_SVG,this.guideY.pointerEvents=!1,this.guideY.init(this.graph.getView().getOverl…
600 …s.guideX.pointerEvents=!1,this.guideX.init(this.graph.getView().getOverlayPane())));k=k||f},f=this…
602graph.snapDelta(b,a,!c,k,n);b=this.getDelta(a,l,b.x,p,b.y);c=this.graph.container;k||null==this.gu…
603graph.panDx,p.x),e=Math.max(a.x+a.width+b.x-this.graph.panDx,p.x+p.width)),this.guideY.points=null…
604 "hidden"}return b};mxGuide.prototype.getDelta=function(a,b,c,d,e){var f=this.graph.view.scale;if(th…
713 …rted=function(){return!this.horizontal&&null!=this.state&&this.state.view.graph.model.isVertex(thi…
775 …imageSize,this.imageSize)};function mxGraphLayout(a){this.graph=a}mxGraphLayout.prototype.graph=nu… method in mxGraphLayout
776 …ype.getGraph=function(){return this.graph};mxGraphLayout.prototype.getConstraint=function(a,b,c,d)…
777graph.model.getEdgeCount(a),0<d))for(var f=0;f<d;f++){var g=this.graph.model.getEdgeAt(a,f),k=this…
778graph.model.getParent(b)==a;if(b==a)return!1;for(;null!=b&&b!=a;)b=this.graph.model.getParent(b);r…
779graph.getModel();return!b.isEdge(a)||!this.graph.isCellVisible(a)||null==b.getTerminal(a,!0)||null…
780 …fset=function(a){var b=new mxPoint;if(null!=a&&a!=this.parent){var c=this.graph.getModel();if(c.is…
781 mxGraphLayout.prototype.setEdgePoints=function(a,b){if(null!=a){var c=this.graph.model,d=c.getGeome…
782graph.getModel(),e=d.getGeometry(a),f=null;if(null!=e){f=new mxRectangle(b,c,e.width,e.height);if(…
784graph.getModel().getGeometry(a);if(this.useBoundingBox){var c=this.graph.getView().getState(a);if(…
785 …};mxGraphLayout.prototype.arrangeGroups=function(a,b,c,d,e,f){return this.graph.updateGroupBounds(…
789graph.getModel(),e=d.getParent(a),f=this.isHorizontal();if(null!=a&&null!=e){var g=0,k=d.getChildC…
790graph.getModel(),c=b.getGeometry(a);null!=this.graph.container&&(null==c&&b.isLayer(a)||a==this.gr…
791graph.getModel(),c=b.getChildCount(a),d=[],e=0;e<c;e++){var f=b.getChildAt(a,e);!this.isVertexIgno…
793graph.getModel(),e=null;null!=b&&(e=c?b.height-this.marginTop-this.marginBottom:b.width-this.margi…
794 …;var l=Math.max(l,c?t.height:t.width),u=0;if(!this.borderCollapse)var x=this.graph.getCellStyle(r),
796 …:k.y+k.height+Math.floor(u/2)}}this.resizeParent&&null!=b&&null!=k&&!this.graph.isCellCollapsed(a)…
797 …function(a,b){var c=this.graph.getCellGeometry(a);null!=c&&b.x==c.x&&b.y==c.y&&b.width==c.width&&b…
798 mxStackLayout.prototype.updateParentGeometry=function(a,b,c){var d=this.isHorizontal(),e=this.graph
800 mxPartitionLayout.prototype.moveCell=function(a,b,c){c=this.graph.getModel();var d=c.getParent(a);i…
801graph.getModel(),d=c.getGeometry(a);null!=this.graph.container&&(null==d&&c.isLayer(a)||a==this.gr…
802 d.height:d.width,n=n-2*this.border;a=this.graph.isSwimlane(a)?this.graph.getStartSize(a):new mxRect…
806 …rn mxGraphLayout.prototype.isVertexIgnored.apply(this,arguments)||0==this.graph.getConnections(a).…
807graph.getModel();if(null==b)if(0<this.graph.getEdges(a,c.getParent(a),this.invert,!this.invert,!1)…
808graph.getCellGeometry(a);null!=f&&(this.parentX=f.x,this.parentY=f.y)}c.beginUpdate();try{if(this.…
809 …EdgeProcessing(this.node)}null!=this.parentX&&null!=this.parentY&&(f=this.graph.getCellGeometry(a)…
813 … d=this.createNode(a),c=this.graph.getModel(),e=null,f=this.graph.getEdges(a,b,this.invert,!this.i…
823 mxCompactTreeLayout.prototype.apply=function(a,b){var c=this.graph.getModel(),d=a.cell,e=c.getGeome…
827 e[k].cell.cell,m=this.getVertexBounds(l),l=this.graph.getEdgesBetween(c,l,!1),n=[],p,q,r=0;r<l.leng…
829 …rn mxGraphLayout.prototype.isVertexIgnored.apply(this,arguments)||0==this.graph.getConnections(a).…
836 …rn mxGraphLayout.prototype.isVertexIgnored.apply(this,arguments)||0==this.graph.getConnections(a).…
837graph.getModel();this.vertexArray=[];for(var c=this.graph.getChildVertices(a),d=0;d<c.length;d++)t…
839graph.getConnections(this.vertexArray[d],a),c=this.graph.getOpposites(r,this.vertexArray[d]);this.…
840 …/2,this.cellLocation[d][1]-=l.height/2,p=this.graph.snap(Math.round(this.cellLocation[d][0])),q=th…
841 0)+1;null!=e&&(d+=e.x,g+=e.y);this.graph.moveCells(this.vertexArray,d,g)}finally{b.endUpdate()}};mx…
847graph.getModel();b.beginUpdate();try{for(var c=0,d=null,e=null,f=[],g=b.getChildCount(a),k=0;k<g;k…
849 ….findParallels(a,b);this.graph.model.beginUpdate();try{for(var d in c){var e=c[d];1<e.length&&this…
850 …(a))}});if(null!=b)for(var e=0;e<b.length;e++)d(b[e]);else for(var f=this.graph.getModel(),g=f.get…
851graph.getView(),c=b.getVisibleTerminal(a,!0),b=b.getVisibleTerminal(a,!1),d="";if(null!=c&&null!=b…
852 mxParallelEdgeLayout.prototype.layout=function(a){var b=a[0],c=this.graph.getView(),d=this.graph.ge…
853 …,c),b-=e,c+=d}};mxParallelEdgeLayout.prototype.route=function(a,b,c){this.graph.isCellMovable(a)&&…
854 …0],arguments)};mxCompositeLayout.prototype.execute=function(a){var b=this.graph.getModel();b.begin…
855 …t;mxEdgeLabelLayout.prototype.execute=function(a){for(var b=this.graph.view,c=this.graph.getModel(…
856 mxEdgeLabelLayout.prototype.placeLabels=function(a,b){var c=this.graph.getModel();c.beginUpdate();t…
857 mxEdgeLabelLayout.prototype.avoid=function(a,b){var c=this.graph.getModel(),d=a.text.boundingBox;if…
870 …ary;this.edgeMapper=new mxDictionary;this.maxRank=0;c=[];null==b&&(b=this.graph.getChildVertices(d…
873 …var g=0;g<f.length;g++){var k=a.getVisibleTerminal(f[g],!1);if(k!=b[e]&&a.graph.model.isVertex(k)&…
881 …ary;this.edgeMapper=new mxDictionary;this.maxRank=0;c=[];null==b&&(b=this.graph.getChildVertices(d…
884 …var k=0;k<g.length;k++){var l=a.getVisibleTerminal(g[k],!1);if(l!=b[f]&&a.graph.model.isVertex(l)&…
934 …itions[a.ids[0]],g=a.isReversed?a.target.cell:a.source.cell,k=this.layout.graph,l=this.orientation…
946graph.model;this.edgesCache=new mxDictionary;this.edgeSourceTermCache=new mxDictionary;this.edgesT…
947 …is.graph.isCellCollapsed(a)&&this.graph.updateGroupBounds([a],this.parentBorder,this.moveParent),n…
948 …c=[];if(null!=a&&null!=b){var d=this.graph.model,e=null,f=-1E5,g;for(g in b){var k=b[g];if(d.isVer…
949graph.model,b=[],d=this.graph.isCellCollapsed(a),e=c.getChildCount(a),f=0;f<e;f++){var g=c.getChil…
951graph.view.getState(a),e=null!=d?d.getVisibleTerminal(b):this.graph.view.getVisibleTerminal(a,b);n…
954graph.model;c.isVertex(a)&&a!=this.parent&&this.graph.isCellVisible(a)&&(b[mxObjectIdentity.get(a)…
962graph.model;this.edgesCache=new mxDictionary;this.edgeSourceTermCache=new mxDictionary;this.edgesT…
963graph.insertVertex(b[f],null,null,0,0,this.dummyVertexWidth,0),e.push(g)}c.beginUpdate();try{this.…
964graph.getBoundingBoxFromGeometry(a,!0);b=[];for(e=0;e<this.swimlanes.length;e++){var f=this.swimla…
965 …his.swimlanes[e],c=this.graph.getCellGeometry(f),null!=c){var g=this.graph.getChildCells(f),d=this…
966 2;k.height=a.height+d.height+2*this.parentBorder;this.graph.model.setGeometry(f,k);this.graph.moveC…
967 …if(null!=a&&null!=b){var d=this.graph.model,e=null,f=-1E5,g;for(g in b){var k=b[g];if(null!=k&&d.i…
968graph.model,b=[],d=this.graph.isCellCollapsed(a),e=c.getChildCount(a),f=0;f<e;f++){var g=c.getChil…
969 this.graph.isValidAncestor(d,this.parent,this.traverseAncestors))||d==a&&(null==this.parent||this.g…
970graph.view.getState(a),e=null!=d?d.getVisibleTerminal(b):this.graph.view.getVisibleTerminal(a,b);n…
973graph.model;c.isVertex(a)&&a!=this.parent&&c.getParent(a)!=this.parent&&this.graph.isCellVisible(a…
975 …;null==d[l]&&(d[l]=a);null!==g&&delete g[l];var m=this.getEdges(a),l=this.graph.model;for(c=0;c<m.…
1053graph=a;this.scale=null!=b?b:1/a.pageScale;this.border=null!=d?d:0;this.pageFormat=mxRectangle.fro… method in mxPrintPreview
1056 mxPrintPreview.prototype.appendGraph=function(a,b,c,d,e,f){this.graph=a;this.scale=null!=b?b:1/a.pa…
1057graph.cellRenderer.initializeOverlay,f=null;try{this.printOverlays&&(this.graph.cellRenderer.initi…
1058 … class="mxPage">')}var m=this.graph.getGraphBounds().clone(),n=this.graph.getView().getScale(),p=n…
1063 …(E){null!=f&&null!=f.parentNode&&f.parentNode.removeChild(f)}finally{this.graph.cellRenderer.initi…
1072 …xPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.grap…
1073graph.getView();d=this.graph.container;this.graph.container=e;var k=g.getCanvas(),l=g.getBackgroun…
1074graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);va… method
1076 …ayPane.parentNode.removeChild(g.overlayPane);this.graph.setEnabled(r);this.graph.container=d;this.
1077 …q)}};mxPrintPreview.prototype.getLinkForCellState=function(a){return this.graph.getLinkForCell(a.c…
1078 mxPrintPreview.prototype.insertBackgroundImage=function(a,b,c){var d=this.graph.backgroundImage;if(…
1088 …(a){var b=this.getVisibleTerminalState(a);if(null==b)return!1;a=this.view.graph.getConnectionConst…
1093 …ototype.destroy=function(){this.view.graph.cellRenderer.destroy(this)};function mxGraphSelectionMo…
1094 …=mxClient.language?"updatingSelection":"";mxGraphSelectionModel.prototype.graph=null;mxGraphSelect… method in mxGraphSelectionModel
1095 …(a=[this.getFirstSelectableCell(a)]);for(var b=[],c=0;c<a.length;c++)this.graph.isCellSelectable(a…
1096 …tSelectableCell=function(a){if(null!=a)for(var b=0;b<a.length;b++)if(this.graph.isCellSelectable(a…
1097 …bleCell(a)]);for(var c=[],d=0;d<a.length;d++)!this.isSelected(a[d])&&this.graph.isCellSelectable(a…
1102graph=a;this.zoomHandler=mxUtils.bind(this,function(){this.graph.isEditing()&&this.resize()});this…
1103 mxCellEditor.prototype.graph=null;mxCellEditor.prototype.textarea=null;mxCellEditor.prototype.editi… method in mxCellEditor
1105 mxCellEditor.prototype.applyValue=function(a,b){this.graph.labelChanged(a.cell,b,this.trigger)};mxC…
1106 mxCellEditor.prototype.getInitialValue=function(a,b){var c=mxUtils.htmlEntities(this.graph.getEditi…
1108graph.stopEditing(!1);mxEvent.consume(a)}));mxEvent.addListener(a,"blur",mxUtils.bind(this,functio…
1111 …itor.prototype.isStopEditingEvent=function(a){return 113==a.keyCode||this.graph.isEnterStopsCellEd…
1112graph.getView().getState(this.editingCell);if(null==a)this.stopEditing(!0);else if(null!=this.text…
1114 …a.shape.getLabelBounds(b):b;null!=e&&(b.width=parseFloat(e)*c);if(!a.view.graph.cellRenderer.legac…
1116 a.absoluteOffset.y,b.width,b.height)}if(this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=th…
1119 …his.textarea.style.top=Math.max(0,Math.round(this.bounds.y+1))+"px"),this.graph.isWrapping(a.cell)…
1121 …)"))}};mxCellEditor.prototype.focusLost=function(){this.stopEditing(!this.graph.isInvokesStopCellE…
1122 mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view…
1123 …t();null!=this.graph.tooltipHandler&&this.graph.tooltipHandler.hideTooltip();var c=this.graph.getV…
1127 …this.clearOnChange=this.textarea.innerHTML==this.getEmptyLabelText();this.graph.container.appendCh…
1128 this.autoSize&&(this.graph.model.isEdge(c.cell)||"fill"!=c.style[mxConstants.STYLE_OVERFLOW])&&wind…
1130 …his.textNode.style.visibility="visible",this.textNode=null);a=a?null:this.graph.view.getState(this…
1131graph.getModel().beginUpdate();try{null!=b&&this.applyValue(a,b),null!=this.align&&this.graph.setC…
1132 …a){return!0};mxCellEditor.prototype.getMinimumSize=function(a){var b=this.graph.getView().scale;re…
1133 …){var b=this.graph.getModel().isEdge(a.cell),c=this.graph.getView().scale,d=this.getMinimumSize(a)…
1136 …ngBox.width),c.height=Math.max(c.height,a.text.boundingBox.height)));this.graph.getModel().isVerte…
1138 …s.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null…
1142 …CellRenderer.prototype.initializeShape=function(a){a.shape.dialect=a.view.graph.dialect;this.confi…
1143 …ateIndicatorShape=function(a){a.shape.indicatorShape=this.getShape(a.view.graph.getIndicatorShape(…
1144 …{var b=this.getShape(a.style[mxConstants.STYLE_SHAPE]);null==b&&(b=a.view.graph.getModel().isEdge(…
1145graph.getImage(a);a.shape.indicatorColor=a.view.graph.getIndicatorColor(a);a.shape.indicatorStroke…
1148 … d=c==mxConstants.STYLE_FONTCOLOR?a.text:a.shape;if(null!=d){var e=a.view.graph,f=d[b],g=null;"inh…
1149 …le[c]))}};mxCellRenderer.prototype.getLabelValue=function(a){return a.view.graph.getLabel(a.cell)};
1150 mxCellRenderer.prototype.createLabel=function(a,b){var c=a.view.graph;c.getModel().isEdge(a.cell);i…
1152 …_TEXT_OPACITY,100);a.text.dialect=d?mxConstants.DIALECT_STRICTHTML:a.view.graph.dialect;a.text.sty…
1154 ….IS_SVG&&mxClient.NO_FO&&b.dialect!=mxConstants.DIALECT_SVG?b.init(a.view.graph.container):b.init(…
1155graph.getCellOverlays(a.cell),c=null;if(null!=b)for(var c=new mxDictionary,d=0;d<b.length;d++){var…
1157 mxCellRenderer.prototype.installCellOverlayListeners=function(a,b,c){var d=a.view.graph;mxEvent.add…
1158 "event",c,"cell",a.cell))})};mxCellRenderer.prototype.createControl=function(a){var b=a.view.graph,…
1159 mxCellRenderer.prototype.createControlClickHandler=function(a){var b=a.view.graph;return mxUtils.bi…
1160 mxCellRenderer.prototype.initControl=function(a,b,c,d){var e=a.view.graph;e.isHtmlLabel(a.cell)&&mx…
1163 mxCellRenderer.prototype.installListeners=function(a){var b=a.view.graph,c=function(c){var d=a;if(b…
1165graph,d=this.getLabelValue(a),e=c.isWrapping(a.cell),f=c.isLabelClipped(a.cell),g=a.view.graph.isH…
1171 mxCellRenderer.prototype.getLabelBounds=function(a){var b=a.view.graph,c=a.view.scale,d=b.getModel(…
1174 …text.spacingBottom*c:0))}e=a.text.getTextRotation();0!=e&&null!=a&&a.view.graph.model.isVertex(a.c…
1176 …d);a.overlays.visit(function(d,k){var g=k.overlay.getBounds(a);if(!a.view.graph.getModel().isEdge(…
1178 mxCellRenderer.prototype.redrawControl=function(a,b){var c=a.view.graph.getFoldingImage(a);if(null!…
1179 ….control){var d=a.view.scale,e=a.getCenterX(),f=a.getCenterY();if(!a.view.graph.getModel().isEdge(…
1180 f),g,k,new mxPoint(a.getCenterX(),a.getCenterY())),e=f.x,f=f.y)}return a.view.graph.getModel().isEd…
1181 …(d[e].node,g.nextSibling);else if(null==g)if(d[e].node.parentNode==a.view.graph.container){for(g=a…
1182 a.view.graph.container;)g=g.parentNode;null!=g&&null!=g.nextSibling?g.nextSibling!=d[e].node&&d[e].…
1184graph.model,e=!1;null!=a.shape&&null!=a.shape.style&&null!=a.style&&a.shape.style[mxConstants.STYL…
1185graph.selectionCellsHandler.updateHandler(a))):b||null==a.shape||mxUtils.equalEntries(a.shape.styl…
1189 var mxEdgeStyle={EntityRelation:function(a,b,c,d,e){var f=a.view,g=f.graph;d=mxUtils.getValue(a.sty…
1192 …Point(a,c),e.push(new mxPoint(c.x,c.y))}else if(null!=b){var f=a.view,g=f.graph;c=null!=d&&0<d.len…
1207 …*10)/10)):c=null;return c},OrthConnector:function(a,b,c,d,e){var f=a.view.graph,g=null==l?!1:f.get…
1221 …IMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=n…
1222 …cumentGesture=!0;mxGraphView.prototype.rendering=!0;mxGraphView.prototype.graph=null;mxGraphView.p… method in mxGraphView
1224graph.getModel(),d=0;d<a.length;d++)if(c.isVertex(a[d])||c.isEdge(a[d])){var e=this.getState(a[d])…
1227 …)};mxGraphView.prototype.viewStateChanged=function(){this.revalidate();this.graph.sizeDidChange()};
1228 …);this.validate()};mxGraphView.prototype.clear=function(a,b,c){var d=this.graph.getModel();a=a||d.…
1229 mxGraphView.prototype.invalidate=function(a,b,c){var d=this.graph.getModel();a=a||d.getRoot();b=nul…
1231 …lState(this.validateCell(a||(null!=this.currentRoot?this.currentRoot:this.graph.getModel().getRoot…
1234 …c.add(a.text.boundingBox):c=a.text.boundingBox.clone()),b))for(var d=this.graph.getModel(),e=d.get…
1236graph.getBackgroundImage();if(null!=a){if(null==this.backgroundImage||this.backgroundImage.image!=…
1237graph.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(a))}),mxUtils.bind(this,function(a){this.
1238graph.pageVisible){var a=this.getBackgroundPageBounds();null==this.backgroundPageShape?(this.backg…
1239graph.dblClick(a)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,f…
1240 …prototype.getBackgroundPageBounds=function(){var a=this.graph.pageFormat,b=this.scale*this.graph.p…
1242 …,b){if(null!=a)if(b=(null!=b?b:!0)&&this.graph.isCellVisible(a),null==this.getState(a,b)||b)for(va…
1243 …tate(a),null!=c)){var d=this.graph.getModel();if(c.invalid){c.invalid=!1;if(null==c.style||c.inval…
1244 !1);this.updateCellState(c);a==this.currentRoot||c.invalid||(this.graph.cellRenderer.redraw(c,!1,th…
1245graph.getModel(),c=this.getState(b.getParent(a.cell));null!=c&&c.cell!=this.currentRoot&&(a.origin…
1247 …edBounds()};mxGraphView.prototype.isCellCollapsed=function(a){return this.graph.isCellCollapsed(a)…
1248 mxGraphView.prototype.updateVertexState=function(a,b){var c=this.graph.getModel(),d=this.getState(c…
1249 …minalState(!1);null!=this.graph.model.getTerminal(a.cell,!0)&&null==c||null==c&&null==b.getTermina…
1253graph.getModel().isEdge(a.cell)&&this.graph.keepEdgesInForeground||this.graph.getModel().isVertex(…
1254 …teFixedTerminalPoint(a,b,!0,this.graph.getConnectionConstraint(a,b,!0));this.updateFixedTerminalPo…
1255 …ll;null!=d&&(e=this.graph.getConnectionPoint(b,d,!1));if(null==e&&null==b){b=this.scale;d=this.tra…
1259 …pe.isLoopStyleEnabled=function(a,b,c,d){var e=this.graph.getConnectionConstraint(a,c,!0),f=this.gr…
1260 …tyleEnabled(a,b,c,d)?mxUtils.getValue(a.style,mxConstants.STYLE_LOOP,this.graph.defaultLoopStyle):…
1262 …,c,d){b=this.getTerminalPort(a,b,d);var e=this.getNextPoint(a,c,d),f=this.graph.isOrthogonal(a);c=…
1263 …SOURCE_PORT:mxConstants.STYLE_TARGET_PORT);null!=a&&(a=this.getState(this.graph.getModel().getCell…
1264 …ounds(a,d),0<d.width||0<d.height)){var e=new mxPoint(b.x,b.y),g=b=!1;this.graph.model.isVertex(a.c…
1268 …nal=function(a,b){for(var c=this.graph.getModel(),d=c.getTerminal(a,b),e=d;null!=d&&d!=this.curren…
1273 mxGraphView.prototype.getRelativePoint=function(a,b,c){var d=this.graph.getModel().getGeometry(a.ce…
1275 …set.y=a.getCenterY();if(null!=b&&0<b.length&&null!=a.segments){var c=this.graph.getCellGeometry(a.…
1276 …=c||this.updateStyle)&&this.graph.isCellVisible(a)&&(null==c?(c=this.createState(a),this.states.pu…
1278graph.cellRenderer.destroy(b),b.invalid=!0,b.destroy()));return b};mxGraphView.prototype.createSta…
1279 …totype.isContainerEvent=function(a){a=mxEvent.getSource(a);return a==this.graph.container||a.paren…
1280graph.container);a=new mxPoint(a.clientX-b.x,a.clientY-b.y);var b=this.graph.container.offsetWidth…
1281 mxGraphView.prototype.installListeners=function(){var a=this.graph,b=a.container;if(null!=b){mxClie…
1286 mxGraphView.prototype.createHtml=function(){var a=this.graph.container;null!=a&&(this.canvas=this.c…
1287 …ze=function(a,b){if(null!=this.graph.container){var c=this.graph.container.offsetHeight;this.canva…
1289 mxGraphView.prototype.createSvg=function(){var a=this.graph.container;this.canvas=document.createEl…
1292 …ners(document,null,this.moveHandler,this.endHandler),mxEvent.release(this.graph.container),a.paren…
1293 …is.isUp=null==b;if(!this.isUp)for(var c=this.view.currentRoot,d=this.view.graph.getModel();null!=c…
1294 …rrentRoot;this.view.currentRoot=this.previous;this.previous=a;a=this.view.graph.getTranslateForRoo…
1539 mxCellOverlay.prototype.getBounds=function(a){var b=a.view.graph.getModel().isEdge(a.cell),c=a.view…
1564 mxLayoutManager.prototype.constructor=mxLayoutManager;mxLayoutManager.prototype.graph=null;mxLayout… method in mxLayoutManager
1565 …ling=function(a){this.bubbling=a};mxLayoutManager.prototype.getGraph=function(){return this.graph};
1566graph){var b=this.graph.getModel();b.removeListener(this.undoHandler);this.graph.removeListener(th…
1575 mxSwimlaneManager.prototype.graph=null;mxSwimlaneManager.prototype.enabled=!0;mxSwimlaneManager.pro… method in mxSwimlaneManager
1576 …nction(a){this.resizeEnabled=a};mxSwimlaneManager.prototype.getGraph=function(){return this.graph};
1577graph&&(this.graph.removeListener(this.addHandler),this.graph.removeListener(this.resizeHandler));…
1578 …eManager.prototype.isCellHorizontal=function(a){return this.graph.isSwimlane(a)?(a=this.graph.getC…
1580 …height),f=a[c],g=f;null!=g;){var f=g,g=b.getParent(g),k=this.graph.isSwimlane(g)?this.graph.getSta…
1582 …lone(),d?g.height=c:g.width=b,e.setGeometry(a,g))}var k=this.graph.isSwimlane(a)?this.graph.getSta…
1584graph.cellRenderer.doRedrawShape;var g=this;null!=e&&(a.graph.cellRenderer.doRedrawShape=function(…
1586graph.cellRenderer.doRedrawShape=this.oldDoRedrawShape};function mxCellStatePreview(a){this.deltas… method in mxCellStatePreview
1589 mxCellStatePreview.prototype.translateState=function(a,b,c){if(null!=a){var d=this.graph.getModel()…
1590graph.getModel();e.isEdge(a.cell)&&a.view.updateCellState(a);var f=this.graph.getCellGeometry(a.ce…
1591 g)),b,c,d)}};mxCellStatePreview.prototype.addEdges=function(a){for(var b=this.graph.getModel(),c=b.…
1593graph=a;this.graph.addMouseListener(this);this.panHandler=mxUtils.bind(this,function(){this.suspen…
1594graph.getView().getBounds(this.cells);this.pBounds=this.getPreviewBounds(this.cells);null!=this.pB…
1595graph.getModel().addListener(mxEvent.CHANGE,this.refreshHandler);this.graph.addListener(mxEvent.RE…
1596 …nt.addListener(document,"keyup",this.keyHandler)}mxGraphHandler.prototype.graph=null;mxGraphHandle… method in mxGraphHandler
1600graph.model.getParent(a);return b?(b=this.graph.model.isEdge(a)?null:this.graph.getCellGeometry(a)…
1601graph.isToggleEvent(a.getEvent())&&mxEvent.isAltDown(a.getEvent())||null==b||this.graph.isCellSele…
1602graph.isToggleEvent(b.getEvent())||!mxEvent.isAltDown(b.getEvent()))for(;null!=a;){if(this.graph.s…
1603 mxGraphHandler.prototype.selectDelayed=function(a){if(!this.graph.popupMenuHandler.isPopupTrigger(a…
1604graph.view.getState(a);if(null!=c){if(!(b.isSource(c.control)||this.graph.isToggleEvent(b.getEvent…
1606graph.isEnabled()&&null!=b.getState()&&!mxEvent.isMultiTouchEvent(b.getEvent())){var c=this.getIni…
1607 …c,!0)||null==d.getTerminal(c,!1)||this.graph.allowDanglingEdges||this.graph.isCloneEvent(b.getEven…
1608graph.getDefaultParent(),b=this.graph.getModel(),c=mxUtils.bind(this,function(a){return null!=this…
1610 …l!=a&&0<a.length)for(var c=this.graph.getModel(),d=0;d<a.length;d++)if(c.isVertex(a[d])||c.isEdge(…
1611 …Constants.DIALECT_STRICTHTML,a.init(this.graph.container)):(a.dialect=mxConstants.DIALECT_SVG,a.in…
1612graph.container,b,c);this.cells=null!=d?d:this.getCells(this.cell);this.bounds=this.graph.getView(…
1613graph.model.getParent(a),f=2>this.graph.model.getChildCount(e),g=new mxDictionary;a=this.graph.get…
1614graph.view.getState(a),d=0;if(null!=c&&null==b.get(a)){b.put(a,c);d++;for(var c=this.graph.model.g…
1615graph.isConstrainedEvent(a.getEvent()):!0};mxGraphHandler.prototype.snap=function(a){var b=this.sc…
1616graph.container,a.getX(),a.getY());return new mxPoint(a.x-this.first.x-this.graph.panDx,a.y-this.f…
1618 mxGraphHandler.prototype.mouseMove=function(a,b){var c=this.graph;if(b.isConsumed()||!c.isMouseDown…
1619 …bs(d.y)>e){null==this.highlight&&(this.highlight=new mxCellHighlight(this.graph,mxConstants.DROP_T…
1621 …s.useGuidesForEvent(b)?(d=this.guide.move(this.bounds,d,f,e),k=!1):d=this.graph.snapDelta(d,this.b…
1622 …ivePreviewUsed&&!a?null!=this.cells&&(this.setHandlesVisibleForCells(this.graph.selectionCellsHand…
1624 ….allCells&&this.allCells.visit(mxUtils.bind(this,function(d,e){var f=this.graph.view.getState(e.ce…
1625graph.model.isVertex(e.cell))&&((e.x+=a,e.y+=b,this.cloning)?null!=e.text&&(e.text.updateBoundingB…
1626graph.view.scale,e=0;e<c.length;e++){var f=c[e][0];if(this.graph.model.isEdge(f.cell)){var g=this.
1627graph.getConnectionConstraint(f,l,!1)):(l=m[m.length-1],f.setAbsoluteTerminalPoint(new mxPoint(l.x…
1628 mxGraphHandler.prototype.redrawHandles=function(a){for(var b=0;b<a.length;b++){var c=this.graph.sel…
1631graph.view.validate())};mxGraphHandler.prototype.setHandlesVisibleForCells=function(a,b,c){if(c||t…
1632 ….delayedSelection&&null!=this.cell&&this.selectDelayed(b);else{var c=this.graph,d=b.getCell();if(t…
1634 …PreviewUsed&&(this.resetLivePreview(),this.setHandlesVisibleForCells(this.graph.selectionCellsHand…
1635 …nction(a,b,c){if(this.graph.getModel().isVertex(a)&&(a=this.graph.getView().getState(a),null!=a)){…
1636graph.getCloneableCells(a));var g=this.graph.getModel().getParent(this.cell);null==e&&null!=f&&thi…
1637graph.model.getParent(a[l]);null==m||k.get(m)||(k.put(m,!0),g.push(m))}}a=this.graph.moveCells(a,b…
1638graph.view.getState(a);return null!=a&&(this.graph.model.isEdge(a.cell)||this.graph.model.isVertex…
1640graph.removeMouseListener(this);this.graph.removeListener(this.panHandler);null!=this.escapeHandle…
1642graph=a,this.graph.addMouseListener(this),this.forcePanningHandler=mxUtils.bind(this,function(a,c)…
1643graph.view.scale,this.active||null==this.mouseDownEvent||(this.start(this.mouseDownEvent),this.mou…
1644 …Handler.prototype.constructor=mxPanningHandler;mxPanningHandler.prototype.graph=null;mxPanningHand… method in mxPanningHandler
1648 …ngHandler.prototype.start=function(a){this.dx0=-this.graph.container.scrollLeft;this.dy0=-this.gra…
1649graph.snap(this.dx),this.dy=this.graph.snap(this.dy)),this.graph.panGraph(this.dx+this.dx0,this.dy…
1650graph.useScrollbarsForPanning||!mxUtils.hasScrollbars(this.graph.container)){var c=this.graph.getV…
1651 …);this.graph.view.scale!=b&&(this.graph.zoomTo(b),mxEvent.consume(a))};mxPanningHandler.prototype.…
1652graph.getView().setTranslate(a,b)};mxPanningHandler.prototype.destroy=function(){this.graph.remove…
1653graph=a,this.factoryMethod=b,this.graph.addMouseListener(this),this.gestureHandler=mxUtils.bind(th… method in mxPopupMenuHandler
1654 …);mxEvent.addGestureListeners(this.div,mxUtils.bind(this,function(a){this.graph.tooltipHandler.hid…
1656 …)).screenX-this.screenX)>this.graph.tolerance||Math.abs(mxEvent.getMainEvent(b.getEvent()).screenY…
1657graph.isEnabled()&&this.isSelectOnPopup(b)&&null!=d&&!this.graph.isCellSelected(d)?this.graph.setS…
1658graph.tooltipHandler.hide();c(d);a&&b.consume()}this.inTolerance=this.popupTrigger=!1};mxPopupMenu…
1659graph=a,this.validColor=null!=b?b:mxConstants.DEFAULT_VALID_COLOR,this.invalidColor=null!=c?c:mxCo… method in mxCellMarker
1663 mxCellMarker.prototype.markCell=function(a,b){var c=this.graph.getView().getState(a);null!=c&&(this…
1664 …this.invalidColor};mxCellMarker.prototype.getState=function(a){var b=this.graph.getView(),c=this.g…
1665 …xCellMarker.prototype.destroy=function(){this.graph.getView().removeListener(this.resetHandler);th…
1666graph=a;this.handlers=new mxDictionary;this.graph.addMouseListener(this);this.refreshHandler=mxUti…
1667graph.getView().addListener(mxEvent.SCALE_AND_TRANSLATE,this.refreshHandler);this.graph.getView().… method in mxSelectionCellsHandler
1669 mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){return this.graph.getSelectio…
1670 …tCells(this.getHandledSelectionCells(),!1),c=0;c<b.length;c++){var d=this.graph.view.getState(b[c]…
1671 …)}));for(c=0;c<b.length;c++)d=this.graph.view.getState(b[c]),null!=d&&(e=this.handlers.get(b[c]),n…
1672graph.createHandler(a);null!=b&&(this.handlers.put(a.cell,b),null!=c&&null!=d&&null!=e&&b.start(d,…
1673graph.isEnabled()&&this.isEnabled()){var c=[a,b];this.handlers.visit(function(a,b){b.mouseMove.app…
1674graph.removeMouseListener(this);null!=this.refreshHandler&&(this.graph.getSelectionModel().removeL…
1675graph=a,this.factoryMethod=b,this.init(),this.escapeHandler=mxUtils.bind(this,function(a,b){this.r… method in mxConnectionHandler
1679graph.cellRenderer.createShape(this.edgeState):new mxPolyline([],mxConstants.INVALID_COLOR);a.dial…
1680graph.addMouseListener(this);this.marker=this.createMarker();this.constraintHandler=new mxConstrai…
1681graph.getView().addListener(mxEvent.SCALE,this.changeHandler);this.graph.getView().addListener(mxE…
1683graph);a.hotspotEnabled=!0;a.getCell=mxUtils.bind(this,function(b){var c=mxCellMarker.prototype.ge…
1684graph.hitsSwimlaneContent(c,this.currentPoint.x,this.currentPoint.y)||!this.isConnectableCell(c))c…
1686 …ape};mxConnectionHandler.prototype.isValidSource=function(a,b){return this.graph.isValidSource(a)};
1687graph.getEdgeValidationError(null,a,b):""};mxConnectionHandler.prototype.getConnectImage=function(…
1688 …Constants.DIALECT_STRICTHTML,e.init(this.graph.container)):(e.dialect=mxConstants.DIALECT_SVG,e.in…
1689 …||(this.icon=e,this.graph.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(a,f())))});mxEvent.re…
1691 …nction(a,b){var c=this.graph.getView().scale,d=b.getCenterX(),e=b.getCenterY();if(this.graph.isSwi…
1693 …mouseDown=function(a,b){this.mouseDownCounter++;if(this.isEnabled()&&this.graph.isEnabled()&&!b.is…
1694 …this.edgeState));if(null==this.previous&&null!=this.edgeState){var c=this.graph.getPointForEvent(b…
1695 mxConnectionHandler.prototype.isImmediateConnectSource=function(a){return!this.graph.isCellMovable(…
1696graph.container),c=a.getEvent(),d=mxEvent.getClientX(c),c=mxEvent.getClientY(c),e=document.documen…
1699 …abled(this.currentState.cell))&&this.constraintHandler.reset());else{this.graph.isIgnoreTerminalEv…
1700 …ker.highlight.shape)&&(b=new mxPoint(a.getGraphX(),a.getGraphY())),c=this.graph.getOutlineConstrai…
1701graph.view.scale,null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.curr…
1703 …Handler.prototype.convertWaypoint=function(a){var b=this.graph.getView().getScale(),c=this.graph.g…
1704 …xEvent.isAltDown(a.getEvent())&&null!=this.previous){var c=this.graph.gridSize*this.graph.view.sca…
1705graph.isMouseDown)this.constraintHandler.reset();else{this.isEnabled()||null==this.currentState||(…
1706graph.isEnabled())&&(null!=this.shape||null==this.first||Math.abs(b.getGraphX()-this.first.x)>this…
1707 …nt.clone()):null!=this.previous&&mxEvent.isShiftDown(b.getEvent())&&!this.graph.isIgnoreTerminalEv…
1710 …)-this.first.x),g=Math.abs(b.getGraphY()-this.first.y),f>this.graph.tolerance||g>this.graph.tolera…
1711 …his.cursor&&(this.graph.container.style.cursor=this.cursor);mxEvent.consume(b.getEvent());b.consum…
1712 ….currentState||null!=this.icons||this.graph.isMouseDown||b.consume():this.constraintHandler.reset(…
1714graph.view.updateFixedTerminalPoint(this.edgeState,this.previous,!0,this.sourceConstraint);null!=t…
1715 …is.convertWaypoint(e);c[d]=e}this.graph.view.updatePoints(this.edgeState,c,this.previous,this.curr…
1719graph.container,a.getX(),a.getY()),c=Math.abs(b.x-this.first.x),b=Math.abs(b.y-this.first.y);if(nu…
1722 ….validState.cell&&this.graph.selectCellForEvent(this.marker.source,b.getEvent()),null!=this.error&…
1723 …hape.destroy(),this.shape=null);null!=this.cursor&&null!=this.graph.container&&(this.graph.contain…
1724 …==this.error);null!=this.edgeState&&(this.edgeState.shape=this.shape,this.graph.cellRenderer.postC…
1726graph.allowDanglingEdges){var e=this.graph.getModel(),f=!1,g=null;e.beginUpdate();try{if(null!=a&&…
1727graph.addCell(b,d)}var m=this.graph.getDefaultParent();null!=a&&null!=b&&e.getParent(a)==e.getPare…
1728graph.setConnectionConstraint(g,b,!1,this.constraintHandler.currentConstraint);null!=this.edgeStat…
1729graph.view.scale,r=this.graph.view.translate;p.points=[];for(a=0;a<this.waypoints.length;a++){var …
1730 …,f?b:null)}};mxConnectionHandler.prototype.selectCells=function(a,b){this.graph.setSelectionCell(a…
1731 …f(null==this.factoryMethod)return this.graph.insertEdge(a,b,c,d,e,f);b=this.createEdge(c,d,e,f);re…
1732graph.getCellGeometry(b);null!=c&&c.relative;)b=this.graph.getModel().getParent(b),c=this.graph.ge…
1733graph.view.getState(b);if(null!=k){var l=k.x/f-e.x,e=k.y/f-e.y;Math.abs(l-c.x)<=g&&(c.x=Math.round…
1735graph.removeMouseListener(this);null!=this.shape&&(this.shape.destroy(),this.shape=null);null!=thi…
1736 this.graph.getView().removeListener(this.drillHandler),this.drillHandler=null);null!=this.escapeHan…
1737graph=a;this.resetHandler=mxUtils.bind(this,function(a,c){null!=this.currentFocus&&null==this.grap…
1738 …ge(mxClient.imageBasePath+"/point.gif",5,5);mxConstraintHandler.prototype.graph=null;mxConstraintH… method in mxConstraintHandler
1739 …int=null};mxConstraintHandler.prototype.getTolerance=function(a){return this.graph.getTolerance()};
1742graph.getCellAt(b.x,b.y));if(null!=c&&!this.graph.isCellConnectable(c)){var d=this.graph.getModel(…
1743graph.container&&(this.mouseleaveHandler=mxUtils.bind(this,function(){this.reset()}),mxEvent.addLi…
1744 …t(a)||null!=this.currentFocusArea&&null!=this.currentFocus&&null==k&&this.graph.getModel().isVerte…
1745 …tShape();p.dialect=mxConstants.DIALECT_SVG;p.pointerEvents=!1;p.init(this.graph.getView().getOverl…
1746 …urrentFocus?this.currentFocus:k});mxEvent.redirectMouseEvents(p.node,this.graph,q)}this.focusHighl…
1747graph.view.getState(this.currentFocus.cell);this.currentFocus=a;this.currentFocusArea=new mxRectan…
1749 …aints=null!=b&&!this.isStateIgnored(b,c)&&this.graph.isCellConnectable(b.cell)?this.isEnabled()?th…
1750graph.getConnectionPoint(b,this.constraints[c]),e=this.getImageForConstraint(b,this.constraints[c]…
1751 …?this.currentFocus:b});f.redraw();mxEvent.redirectMouseEvents(f.node,this.graph,e);this.currentFoc…
1753graph.model.removeListener(this.resetHandler),this.graph.view.removeListener(this.resetHandler),th…
1754graph=a,this.graph.addMouseListener(this),this.forceRubberbandHandler=mxUtils.bind(this,function(a…
1755 …this.graph.addListener(mxEvent.PAN,this.panHandler),this.gestureHandler=mxUtils.bind(this,function…
1757graph.isEnabled()&&null==b.getState()&&!mxEvent.isMultiTouchEvent(b.getEvent())){var c=mxUtils.get…
1758graph.container;this.dragHandler=mxUtils.bind(this,function(a){this.mouseMove(this.graph,c(a))});t…
1759graph.container),d=mxUtils.getOffset(this.graph.container);c.x-=d.x;c.y-=d.y;var d=b.getX()+c.x,c=…
1760 …xRubberband",mxUtils.setOpacity(this.sharedDiv,this.defaultOpacity));this.graph.container.appendCh…
1761 …ction(a){var b=new mxRectangle(this.x,this.y,this.width,this.height);this.graph.selectRegion(b,a)};
1764 …t=function(){if(null!=this.div){var a=this.currentX-this.graph.panDx,b=this.currentY-this.graph.pa…
1765graph.removeMouseListener(this),this.graph.removeListener(this.forceRubberbandHandler),this.graph.…
1766 …otype.execute=function(a){};mxHandle.prototype.copyStyle=function(a){this.graph.setCellStyles(a,th…
1767graph.view.scale,c=this.graph.view.translate,c=new mxPoint(a.getGraphX()/b-c.x,a.getGraphY()/b-c.y…
1768 …is.state);null!=this.state.shape&&this.state.shape.apply(this.state);this.graph.cellRenderer.redra…
1770graph.container)):(this.shape.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIAL…
1771 …talRotation()),a=this.rotatePoint(this.flipPoint(a),b),b=this.graph.view.scale,c=this.graph.view.t…
1772 …ion(){return null!=this.state.text&&this.state.text.node.parentNode==this.graph.container};mxHandl…
1773 …n a};mxHandle.prototype.snapPoint=function(a,b){b||(a.x=this.graph.snap(a.x),a.y=this.graph.snap(a…
1774 mxHandle.prototype.reset=function(){this.setVisible(!0);this.state.style=this.graph.getCellStyle(th…
1775graph.cellRenderer.redraw(this.state,!0),this.state.view.invalidate(this.state.cell),this.state.in… method in mxVertexHandler
1778 mxVertexHandler.prototype.init=function(){this.graph=this.state.view.graph;this.selectionBounds=thi…
1779graph.getView().getOverlayPane());mxEvent.redirectMouseEvents(this.selectionBorder.node,this.graph
1780 [];if(a||this.graph.isLabelMovable(this.state.cell)&&2<=this.state.width&&2<=this.state.height){var…
1781graph.model.getGeometry(this.state.cell);null==a||a.relative||this.graph.isSwimlane(this.state.cel…
1782 …,mxConstants.HANDLE_FILLCOLOR),this.sizers.push(this.rotationShape));this.graph.isCellLocked(this.…
1783graph.isEnabled()&&this.rotationEnabled&&!this.graph.isCellLocked(this.state.cell)&&this.graph.isC…
1785 …pdateMinBounds=function(){var a=this.graph.getChildCells(this.state.cell);if(0<a.length&&(this.min…
1787 mxVertexHandler.prototype.getSelectionColor=function(){return this.graph.isCellEditable(this.state.…
1788graph.container?(--d.bounds.height,--d.bounds.width,d.dialect=mxConstants.DIALECT_STRICTHTML,d.ini…
1789 mxEvent.redirectMouseEvents(d.node,this.graph,this.state);this.graph.isEnabled()&&d.setCursor(a);th…
1794 …xVertexHandler.prototype.mouseDown=function(a,b){if(!b.isConsumed()&&this.graph.isEnabled()){var c…
1795graph.model.getChildCount(this.state.cell),this.inTolerance=!0,this.childOffsetY=this.childOffsetX…
1796graph.view.getState(b));this.selectionBorder.node.style.display=c==mxEvent.ROTATION_HANDLE?"inline…
1797 (this.preview.dialect=mxConstants.DIALECT_STRICTHTML,this.preview.init(this.graph.container));c==mx…
1798 …M_HANDLE-c].setVisible(!0),c=this.graph.getEdges(this.state.cell),this.edgeHandlers=[],a=0;a<c.len…
1799 …type.createGhostPreview=function(){var a=this.graph.cellRenderer.createShape(this.state);a.init(th…
1800 …))||Math.abs(a.getGraphX()-this.startX)>this.graph.tolerance||Math.abs(a.getGraphY()-this.startY)>…
1802 mxVertexHandler.prototype.mouseMove=function(a,b){b.isConsumed()||null==this.index?this.graph.isMou…
1804 …ertexHandler.prototype.isGhostPreview=function(){return 0<this.state.view.graph.model.getChildCoun…
1805 …his.graph.view.translate,d=this.graph.view.scale;this.graph.isGridEnabledEvent(a.getEvent())&&(b.x…
1806 …tAlpha-=180);this.currentAlpha-=this.startAngle;this.rotationRaster&&this.graph.isGridEnabledEvent…
1808graph.view.translate,f=this.graph.view.scale,g=Math.cos(-c),k=Math.sin(-c),l=d.x-this.startX,m=d.y…
1809graph.getMaximumGraphBounds(),null!=k&&null!=this.parentState&&(k=mxRectangle.fromRectangle(k),k.x…
1813 this.graph.isCellCollapsed(this.state.cell)||0==b&&0==c?this.childOffsetY=this.childOffsetX=0:(this…
1814graph.view.scale,c=this.graph.view.translate;a=this.state.clone();this.state.x=this.bounds.x;this.…
1815 …c.y),this.state.view.updateVertexLabelOffset(this.state));this.state.view.graph.cellRenderer.redra…
1818 …alidate());this.graph.getModel().beginUpdate();try{if(d<=mxEvent.CUSTOM_HANDLE){if(null!=this.cust…
1819 …his.rotateCell(this.state.cell,f)}else this.rotateClick();else{var g=this.graph.isGridEnabledEvent…
1820graph.view.scale,r=this.isRecursiveResize(this.state,b);this.resizeCell(this.state.cell,this.round…
1821graph.getModel();if(d.isVertex(a)||d.isEdge(a)){if(!d.isEdge(a)){var e=(this.graph.getCurrentCellS…
1826graph.model.getGeometry(a);null!=b&&(d==mxEvent.LABEL_HANDLE?(d=-mxUtils.toRadians(this.state.styl…
1827graph.view.scale,0==this.childOffsetX&&0==this.childOffsetY||this.moveChildren(a,Math.round(this.c…
1828graph.gridEnabled:this.graph.gridEnabled;if(this.singleSizer)return d=a.x+a.width+b,g=a.y+a.height…
1829 …e?this.graph.snap(p/f)*f:Math.round(p/f)*f;else if(2==d||4==d||7==d)q+=b,q=e?this.graph.snap(q/f)*…
1839graph.isEditing()||!this.handlesVisible?"hidden":""));null!=this.selectionBorder&&(this.selectionB…
1840 …er.prototype.isParentHighlightVisible=function(){return!this.graph.isCellSelected(this.graph.model…
1841 …hlightVisible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=…
1842graph.model.isVertex(b)&&null!=c&&null==c.parentHighlight&&(this.parentHighlight=this.createParent…
1843 …view&&(this.preview.bounds=this.bounds,this.preview.node.parentNode==this.graph.container&&(this.p…
1845graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.preview&&(this.previe…
1847graph.cellRenderer.redraw(this.state,!1,a.view.isRendering())}),this.state.view.graph.addListener(… method in mxEdgeHandler
1850graph=this.state.view.graph;this.marker=this.createMarker();this.constraintHandler=new mxConstrain…
1851graph,this.state);this.graph.isCellMovable(this.state.cell)&&this.shape.setCursor(mxConstants.CURS…
1852graph.container))}this.graph.isCellEditable(this.state.cell)&&(this.graph.getSelectionCount()<mxGr…
1856 …eturn a};mxEdgeHandler.prototype.getSelectionColor=function(){return this.graph.isCellEditable(thi…
1857 …ndler.prototype.getCellAt=function(a,b){return this.outlineConnect?null:this.graph.getCellAt(a,b)};
1858graph),b=this;a.getCell=function(a){var c=mxCellMarker.prototype.getCell.apply(this,arguments);c!=…
1859graph.hitsSwimlaneContent(c,b.currentPoint.x,b.currentPoint.y)||!b.isConnectableCell(c)||c==b.stat…
1860 …n a};mxEdgeHandler.prototype.validateConnection=function(a,b){return this.graph.getEdgeValidationE…
1861 …s.isHandleVisible(c)){var d=c==this.abspoints.length-1,e=0==c||d;(e||this.graph.isCellBendable(a))…
1862 …b};mxEdgeHandler.prototype.createVirtualBends=function(){var a=[];if(this.graph.isCellBendable(thi…
1863 …is.state.getVisibleTerminalState(!1),d=this.graph.getCellGeometry(this.state.cell);return(null!=d?…
1866graph.container)):(a.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXED…
1870graph.isCellEditable(this.state.cell)){var c=this.getHandleForEvent(b);if(null!=this.bends&&null!=…
1871 c);else if(c!=mxEvent.LABEL_HANDLE||this.graph.isLabelMovable(b.getCell()))c<=mxEvent.VIRTUAL_HANDL…
1872 …ate.cell,b=this.graph.model.getTerminal(a,this.isSource),null==b&&this.graph.isTerminalPointMovabl…
1873 …ler.prototype.getSnapToTerminalTolerance=function(){return this.graph.gridSize*this.graph.view.sca…
1875 mxEdgeHandler.prototype.getPointForEvent=function(a){var b=this.graph.getView(),c=b.scale,d=new mxP…
1876 …ePoints[m])}this.graph.isGridEnabledEvent(a.getEvent())&&(a=b.translate,f||(d.x=(this.graph.snap(d…
1878 …currentFocus.cell,"transparent"),a=this.graph.getModel(),a=this.graph.view.getTerminalPort(this.st…
1879 …a&&!this.isCellEnabled(a.cell))&&this.constraintHandler.reset(),a;if(this.graph.isIgnoreTerminalEv…
1880 ….graph.getCellGeometry(this.state.cell),c=null!=c.points?c.points.slice():null,d=new mxPoint(a.x,a…
1881graph.tolerance*this.graph.tolerance;g=this.state.absolutePoints.slice();g[this.index]=a;var k=thi…
1882 …sibleTerminalState(!1);null!=k&&(l=this.graph.getConnectionConstraint(this.state,k,!1),null==l||nu…
1883graph.container),c=a.getEvent(),d=mxEvent.getClientX(c),c=mxEvent.getClientY(c),e=document.documen…
1885graph.getConnectionConstraint(a,f,!0),l=this.graph.getConnectionConstraint(a,g,!1),m=this.constrai…
1886 …ull!=this.marker.highlight&&null!=this.marker.highlight.shape){var n=this.graph.view.scale;null!=t…
1887 this.marker.hasValidState()&&(this.marker.highlight.shape.stroke=this.graph.isCellConnectable(d.get…
1889 null==this.marker.getMarkedState()&&(this.error=this.graph.allowDanglingEdges?null:""));a.view.upda…
1890 …error=null;null!=this.snapPoint&&mxEvent.isShiftDown(b.getEvent())&&!this.graph.isIgnoreTerminalEv…
1892 …vent(b):!1;d?c=this.marker.highlight.state:null!=c&&c!=b.getState()&&this.graph.isCellConnectable(…
1895graph.isIgnoreTerminalEvent(b.getEvent())&&this.graph.isCloneEvent(b.getEvent())&&this.cloneEnable…
1896 d>mxEvent.VIRTUAL_HANDLE){if(null!=this.customHandles){var f=this.graph.getModel();f.beginUpdate();…
1897graph.getModel(),g=f.getParent(c);f.beginUpdate();try{if(e){var k=f.getGeometry(c),e=this.graph.cl…
1898graph.isAllowDanglingEdges()&&(f=this.abspoints[this.isSource?0:this.abspoints.length-1],f.x=this.…
1899graph.getView().invalidate(this.state.cell),this.graph.getView().validate(this.state.cell))}else t…
1902graph.getView().getScale(),d=this.graph.getView().getTranslate();b&&(a.x=this.graph.snap(a.x),a.y=…
1903graph.getModel(),e=d.getGeometry(a.cell);if(null!=e){var f=this.graph.getView().scale,e=e.clone();…
1904 …s.graph.getModel();d.getParent(a);d.beginUpdate();try{var f=this.constraintHandler.currentConstrai…
1905graph.getModel();e.beginUpdate();try{if(d){var f=e.getParent(a),g=e.getTerminal(a,!c);a=this.graph
1906 …b,c){var d=this.graph.getModel();d.beginUpdate();try{if(c){var e=d.getParent(a),f=d.getTerminal(a,…
1907 …on(a,b){var c=mxUtils.convertPoint(this.graph.container,mxEvent.getClientX(b),mxEvent.getClientY(b…
1908graph.getCellGeometry(a.cell);b=new mxPoint(b,c);if(null!=d){var d=d.clone(),e=this.graph.view.tra…
1909 …length-1){var c=this.graph.getCellGeometry(this.state.cell);null!=c&&null!=c.points&&(c=c.clone(),…
1910graph.getModel().getTerminal(b,a),d=mxConstants.HANDLE_FILLCOLOR;null!=c&&!this.graph.isCellDiscon…
1911 …!=this.state){this.abspoints=this.state.absolutePoints.slice();var b=this.graph.getModel().getGeom…
1912 …,b.height);b=this.graph.getLabel(a);this.labelShape.visible=null!=b&&0<b.length&&this.graph.isCell…
1916 …rototype.isCustomHandleVisible=function(a){return!this.graph.isEditing()&&1==this.state.view.graph
1924graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.marker&&(this.marker.…
1927 …ils.bind(this,function(a){!mxEvent.isConsumed(a)&&this.flipEnabled&&(this.graph.flipEdge(this.stat…
1928 …andleShape();this.initBend(b,a);b.setCursor(this.getCursorForBend());this.graph.isCellBendable(thi…
1931 …{var c=this.graph.getView().getScale(),d=this.graph.getView().getTranslate(),e=this.state.origin;b…
1932graph.getModel().getGeometry(this.state.cell),d=this.state.absolutePoints,e=null;1<d.length?(a=d[1…
1935 …ction(){var a=this.state.absolutePoints;if(null!=a){var b=Math.max(1,this.graph.view.scale);if(2==…
1939graph.getView(),l=k.getScale(),m=k.getTranslate(),e=k.getRoutingCenterY(f)/l-m.y,n=this.graph.getC…
1940 g,!1))n=this.graph.getConnectionPoint(g,l),null!=n&&(this.convertPoint(n,!1),k=n.y);k=[new mxPoint(…
1941 mxEdgeSegmentHandler.prototype.connect=function(a,b,c,d,e){var f=this.graph.getModel(),g=f.getGeome…
1943 …s.CURSOR_TERMINAL_HANDLE);a.push(b);var c=this.getCurrentPoints();if(this.graph.isCellBendable(thi…
1945 mxEdgeSegmentHandler.prototype.redrawInnerBends=function(a,b){if(this.graph.isCellBendable(this.sta…
1947graph=a,this.target=b||document.documentElement,this.normalKeys=[],this.shiftKeys=[],this.controlK… method in mxKeyHandler
1950 …Node==this.target||null!=this.graph.cellEditor&&this.graph.cellEditor.isEventSource(a)?!0:mxUtils.…
1951graph.isEnabled()&&!mxEvent.isConsumed(a)&&this.isGraphEvent(a)&&this.isEnabled()};mxKeyHandler.pr…
1952 …=a&&(this.graph=a,this.delay=b||500,this.graph.addMouseListener(this))}mxTooltipHandler.prototype.… method in mxTooltipHandler
1957 …mxUtils.bind(this,function(){if(!this.graph.isEditing()&&!this.graph.popupMenuHandler.isMenuShowin…
1958 this.graph.getTooltip(c,d,e,f);this.show(a,e,f);this.state=c;this.node=d;this.stateSource=g}}),this…
1960graph.removeMouseListener(this),mxEvent.release(this.div),null!=this.div&&null!=this.div.parentNod…
1961 …cker.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.graph.removeMouseListene…
1962graph=a,this.highlightColor=null!=b?b:mxConstants.DEFAULT_VALID_COLOR,this.strokeWidth=null!=c?c:m…
1963graph.getView().addListener(mxEvent.SCALE_AND_TRANSLATE,this.repaintHandler),this.graph.getModel()… method in mxCellHighlight
1965graph.cellRenderer.createShape(this.state);a.svgStrokeTolerance=this.graph.tolerance;a.points=this…
1967 …his.state&&null!=this.shape&&(this.shape.scale=this.state.view.scale,this.graph.model.isEdge(this.…
1969 …y=function(){this.graph.getView().removeListener(this.resetHandler);this.graph.getView().removeLis…
2003graph.getModel().getRoot())};a.encodeCell=function(a,c,d){var b=c.graph.getModel(),f=c.getState(d)…
2004 (n.setAttribute("label",c.graph.getLabel(d)),c.graph.isHtmlLabel(d)&&n.setAttribute("html",!0));if(…
2047 …this.chromeless=null!=a?a:this.chromeless;this.initStencilRegistry();this.graph=e||this.createGrap…
2048 …!0)};this.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.graphChang…
2084 …c),e.postMessage(a,"*"))});mxEvent.addListener(window,"message",c);e=this.graph.openLink(this.getE…
2085 "client=1"),null,!0)}else this.graph.openLink(this.getEditBlankUrl(d)+"#R"+encodeURIComponent(a))};…
2086graph.gridEnabled=this.graph.defaultGridEnabled&&(!this.isChromelessView()||"1"==urlParams.grid);t…
2087graph.pageScale=mxGraph.prototype.pageScale;this.graph.pageFormat=mxGraph.prototype.pageFormat;thi…
2088graph.defaultGridEnabled?"1":"0";this.graph.gridEnabled="0"!=b&&(!this.isChromelessView()||"1"==ur…
2089graph.foldingEnabled="0"!=a.getAttribute("fold");this.isChromelessView()&&this.graph.foldingEnable…
2090graph.defaultPageVisible);this.graph.pageBreaksVisible=this.graph.pageVisible;this.graph.preferPag…
2091graph.model.beginUpdate();try{this.graph.model.clear(),this.graph.view.scale=1,this.readGraphState…
2092 …:a,toString:function(){return this.message}};}else this.resetGraph(),this.graph.model.clear(),this…
2093graph.getModel()):this.graph.encodeCells(mxUtils.sortCells(this.graph.model.getTopmostCells(this.g…
2094graph.gridSize);a.setAttribute("guides",this.graph.graphHandler.guidesEnabled?"1":"0");a.setAttrib…
2095graph.pageFormat.height);null!=this.graph.background&&a.setAttribute("background",this.graph.backg…
2097 Editor.prototype.createUndoManager=function(){var a=this.graph,b=new mxUndoManager;this.undoListene…
2098 …ction(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=n…
2114 …iew(d,f,e,0,g,k,b);b.open();a&&PrintDialog.printPreview(b)}var d=a.editor.graph,e,c,f=document.cre…
2122 …play=""):(q.removeAttribute("src"),q.style.display="none")}var e=a.editor.graph,c,f,k=document.cre…
2146 …m);null!=h&&(n=mxUtils.button(mxResources.get("help"),function(){a.editor.graph.openLink(h)}),n.cl…
2149 …Image?a.editor.graph.openLink(FilenameDialog.filenameHelpLink):""!=d&&a.showError(null,d,mxResourc…
2153 (function(){mxGraphView.prototype.validateBackgroundPage=function(){var a=this.graph;if(null!=a.con…
2156 mxGraphView.prototype.validateBackgroundStyles=function(){var a=this.graph,b=null==a.background||a.…
2158 …dImage=d)};mxGraphView.prototype.createSvgGrid=function(a){for(var b=this.graph.gridSize*this.scal…
2163 …gth;e++){if(this.graph.isTableCell(c[e])||this.graph.isTableRow(c[e]))return!1;if(this.graph.getMo…
2164graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var a=this…
2165 e=this.graph.pageScale,f=d.width*e,d=d.height*e,e=Math.floor(Math.min(0,b)/f),p=Math.floor(Math.min…
2167graph.model.getParent(a);if(b)d=this.graph.model.isEdge(a)?null:this.graph.getCellGeometry(a),d=!t…
2168graph.isCellSelected(a)&&!this.graph.isToggleEvent(c.getEvent())||this.graph.isTableCell(a)&&this.
2193 …unction(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),
2197 EditorUi.prototype.init=function(){var a=this.editor.graph;if(!a.standalone){"0"!=urlParams["shape-…
2198 …{this.updateActionStates()}));var b=a.setDefaultParent,d=this;this.editor.graph.setDefaultParent=f…
2200 EditorUi.prototype.installShapePicker=function(){var a=this.editor.graph,b=this;a.addListener(mxEve…
2202 …=e.getEvent();this.graph.isCloneEvent(f)||mxEvent.isShiftDown(f)?k.apply(this,arguments):this.grap…
2203 …pdate(a.view.getState(c))}),d)}),30)}),mxUtils.bind(this,function(a){this.graph.selectCellsForConn…
2207 …null!=a&&(null==this.hoverIcons||f||this.hoverIcons.reset(),f=this.editor.graph,f.popupMenuHandler…
2208 …,d,e,c,f,k,h){var g=null;if(null!=k&&0<k.length){var l=this,m=this.editor.graph,g=document.createE…
2210 this.sidebar.graph.pasteStyle(n,[c]):l.insertHandler([c],""!=c.value&&"1"!=urlParams.sketch,this.si…
2212 …n(a,b,d,k){return this.editor.graph.createVertex(null,null,k||"",0,0,b||120,d||60,a,!1)});return[n…
2216 EditorUi.prototype.onKeyDown=function(a){var b=this.editor.graph;if(9==a.which&&b.isEnabled()&&!mxE…
2218 EditorUi.prototype.onKeyPress=function(a){var b=this.editor.graph;!this.isImmediateEditingEvent(a)|…
2224 …unction(){var a=this.editor.graph,b=this.actions.get("paste"),d=this.actions.get("pasteHere");b.se…
2227graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){e.apply(this,ar…
2229graph;a.timerAutoScroll=!0;a.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((a…
2243 …s.setOpacity(this.layersDialog,80));c=mxUtils.getCurrentStyle(this.editor.graph.container);this.la…
2250 …ction(){if(null!=this.graph.container&&mxUtils.hasScrollbars(this.graph.container)){var a=this.gra…
2262 …on(){var a=urlParams.highlight;null!=a&&0<a.length&&(a="#"+a);this.editor.graph.addClickHandler(a)…
2263graph.view.setScale(1);else{var b=urlParams.border,d=60;null!=b&&(d=parseInt(b));this.editor.graph
2265 …rMissingFile")+": "+e.message)}}))}catch(a){}this.editor.graph.view.validate();this.editor.graph.s…
2266 …phView"))};EditorUi.prototype.showPopupMenu=function(a,b,d,e){this.editor.graph.popupMenuHandler.h…
2268graph)};EditorUi.prototype.redo=function(){try{this.editor.graph.isEditing()?document.execCommand(…
2269 …eturn this.editor.graph.isEditing()||this.editor.undoManager.canRedo()};EditorUi.prototype.canUndo…
2270graph,d=b.container.style.overflow;b.scrollbars=a;this.editor.updateGraphComponents();d!=b.contain…
2271 EditorUi.prototype.resetScrollbars=function(){var a=this.editor.graph;if(!this.editor.extendCanvas)…
2274 EditorUi.prototype.setPageVisible=function(a){var b=this.editor.graph,d=mxUtils.hasScrollbars(b.con…
2275 …color=b}ChangeGridColor.prototype.execute=function(){var a=this.ui.editor.graph.view.gridColor;thi…
2277 ChangePageSetup.prototype.execute=function(){var a=this.ui.editor.graph;if(!this.ignoreColor){this.…
2278graph.foldingEnabled&&(this.ui.setFoldingEnabled(this.foldingEnabled),this.foldingEnabled=!this.fo…
2280graph.background=a;this.editor.graph.view.validateBackground();this.fireEvent(new mxEventObject("b…
2281 …sketch;this.editor.graph.pageFormat=a;b||(this.editor.graph.pageVisible?(this.editor.graph.view.va…
2282graph.pageScale=a;this.editor.graph.pageVisible?(this.editor.graph.view.validateBackground(),this.…
2283 …s.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){c.appl…
2284 this.editor.graph.cellEditor.stopEditing=function(a,b){f.apply(this,arguments);e()};e()};
2285 EditorUi.prototype.updateActionStates=function(){var a=this.editor.graph,b=!1,d=!1,e=!1,c=!1,f=[],k…
2295 ….diagramContainer.style.bottom=this.footerHeight+e+c+"px");a&&this.editor.graph.sizeDidChange()};E…
2307 …owDialog=function(a,b,d,e,c,f,k,h,g,l){this.editor.graph.tooltipHandler.resetTimer();this.editor.g…
2308 …s.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){this.edi…
2309graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus())})…
2310 EditorUi.prototype.pickColor=function(a,b){var d=this.editor.graph,e=d.cellEditor.saveSelection(),c…
2317 …ateElement("div");b.innerHTML=(d?'<meta charset="utf-8">':"")+this.editor.graph.sanitizeHtml(a);as…
2323 EditorUi.prototype.save=function(a){if(null!=a){this.editor.graph.isEditing()&&this.editor.graph.st…
2325 EditorUi.prototype.executeLayout=function(a,b,d){var e=this.editor.graph;if(e.isEnabled()){e.getMod…
2326 EditorUi.prototype.showImageDialog=function(a,b,d,e){e=this.editor.graph.cellEditor;var c=e.saveSel…
2328 …nction(a){a=new ChangePageSetup(this,null,a);a.ignoreColor=!0;this.editor.graph.model.execute(a)})…
2329graph.setBackgroundImage(a);this.editor.graph.view.validateBackgroundImage();this.fireEvent(new mx…
2333 …/g);h.moveCells(h.cells,a,b);h.reset()}},400))}}}var d=this,e=this.editor.graph,c=new mxKeyHandler…
2334 …!=a.keyCode)&&(66!=a.keyCode&&73!=a.keyCode||!this.isControlDown(a)||this.graph.cellEditor.isConte…
2344graph=a.createTemporaryGraph(this.editorUi.editor.graph.getStylesheet());this.graph.cellRenderer.m…
2360 ….tooltip),this.graph2=new Graph(this.tooltip,null,null,this.editorUi.editor.graph.getStylesheet()),
2364 …,this.graph2.model,m?null:this.editorUi.editor.graph.defaultVertexStyle,m?null:this.editorUi.edito…
2387 …ryLibrary("general","general");var b=this,d=parseInt(this.editorUi.editor.graph.defaultVertexStyle…
2416 …er;verticalAlign=middle;fontColor=#0000EE;fontStyle=4;");a.vertex=!0;this.graph.setLinkForCell(a,"…
2417graph.setAttributeForCell(a,"placeholders","1");return this.createVertexTemplateFromCells([a],a.ge…
2495graph.labelsVisible=null==f||f;f=mxClient.NO_FO;mxClient.NO_FO=Editor.prototype.originalNoForeignO…
2496graph.view.getCanvas().ownerSVGElement?(h=this.graph.container.cloneNode(!1),h.innerHTML=this.grap…
2499 …his.graph.cloneCells(a);this.editorUi.insertHandler(l,null,this.graph.model,this.editorUi.editor.g…
2500 ….isGuidesEnabled=mxUtils.bind(this,function(){return this.editorUi.editor.graph.graphHandler.guide…
2502 Sidebar.prototype.updateShapes=function(a,b){var d=this.editorUi.editor.graph,e=d.getCellStyle(a),c…
2509 …ndConnectGeometry(a,b[e],d,b),k=[];if(null!=f){var h=this.editorUi.editor.graph,g=null;h.model.beg…
2513 Sidebar.prototype.getDropAndConnectGeometry=function(a,b,d,e){var c=this.editorUi.editor.graph,f=c.…
2517 …opStyleEnabled=function(a,b){var d=!0;if(null!=b&&1==a.length){var e=this.graph.getCellStyle(a[b])…
2518 …ed=function(a){return this.graph.isSwimlane(a.cell)||this.graph.isTableCell(a.cell)||this.graph.is…
2519 …,K=d):mxUtils.setOpacity(d,d==y?30:20));return c}for(var h=this.editorUi,g=h.editor.graph,l=null,m=
2526 …isplay="")}};var O=(new Date).getTime(),S=0,Q=null,U=this.editorUi.editor.graph.getCellStyle(e[0]);
2527 …this.graph.isCellConnectable(g)&&!this.graph.model.isEdge(g)){var f=this.graph.getModel().getParen…
2532 …tangle(t.shape.boundingBox)),l.grow(this.graph.tolerance),l.grow(HoverIcons.prototype.arrowSpacing…
2536 …tangle(h.shape.boundingBox)),l.grow(this.graph.tolerance),l.grow(HoverIcons.prototype.arrowSpacing…
2541 Sidebar.prototype.itemClicked=function(a,b,d,e){e=this.editorUi.editor.graph;e.container.focus();if…
2543 …a,b,d){var e=b.mouseDown,c=b.mouseMove,f=b.mouseUp,k=this.editorUi.editor.graph.tolerance,h=null,g…
2546 … g=new mxCodec(a),l=new mxGraphModel;g.decode(a.documentElement,l);a=this.graph.cloneCells(l.root.…
2558graph&&(null!=this.graph.container&&null!=this.graph.container.parentNode&&this.graph.container.pa…
2580 …alue.apply(this,arguments);a.view.graph.isHtmlLabel(a.cell)&&(b=1!=a.style.html?mxUtils.htmlEntiti…
2582graph.pageVisible){for(var b=[],c=this.graph.pageFormat,d=this.graph.pageScale,e=c.width*d,c=c.hei…
2583graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.c…
2584graph.isCellSelected(b[e])?this.graph.model.getParent(b[e]):this.graph.isTableRow(a)&&this.graph.i…
2585 q.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(a,b){b=this.graph.getCo…
2587 …S_CHROMEOS&&mxEvent.isShiftDown(a.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClie…
2591 …this.graphHandler.shouldRemoveCellsFromParent=function(a,b,c){return this.graph.isCellSelected(a)?…
2593 …nction(a,b){this.graph.setSelectionCell(b||a)};this.connectionHandler.constraintHandler.isStateIgn…
2616 …CellRenderer.prototype.initializeLabel.apply(this,arguments);var c=a.view.graph.tolerance,d=!0,e=n…
2617 e&&e!=b.node;){if("a"==e.nodeName.toLowerCase()){a.view.graph.labelLinkClicked(a,e,c);break}e=e.par…
2618 b&&this.graph.isCustomLink(b)&&(mxEvent.isTouchEvent(a)||!mxEvent.isPopupTrigger(a))&&this.graph.cu…
2627graph.useCssTransforms&&(a/=this.graph.currentScale);return a};mxGraphView.prototype.getGraphBound…
2628graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.tra…
2631 …tion(){var a=this.graph.useCssTransforms,b=this.scale,d=this.translate;a&&(this.scale=this.graph.c…
2637graph.getCellStyle(a).childLayout};this.layoutManager.getLayout=function(a,b){var d=this.graph.mod…
2638 …itSize",20)));return e}if("treeLayout"==d.childLayout)return e=new mxCompactTreeLayout(this.graph),
2639 …1,e;if("flowLayout"==d.childLayout)return e=new mxHierarchicalLayout(this.graph,mxUtils.getValue(d…
2641 …s.graph);if("organicLayout"==d.childLayout)return new mxFastOrganicLayout(this.graph);if("tableLay…
2693 …raph.zapGremlins(a)};HoverIcons=function(a){mxEventSource.call(this);this.graph=a;this.init()};mxU…
2700graph.selectionModel.addListener(mxEvent.CHANGE,this.resetHandler);this.graph.model.addListener(mx…
2701graph.view.addListener(mxEvent.DOWN,this.repaintHandler);this.graph.view.addListener(mxEvent.UP,th…
2702graph.container&&this.setDisplay("none")}));this.graph.addListener(mxEvent.START_EDITING,mxUtils.b…
2703graph.isMouseDown||mxEvent.isTouchEvent(c)||this.update(this.getState(e.getState()),e.getGraphX(),…
2704graph.container,mxEvent.getClientX(c),mxEvent.getClientY(c));this.isResetEvent(c)?this.reset():thi…
2705 …=this.activeArrow&&mxEvent.isShiftDown(a)||mxEvent.isPopupTrigger(a)&&!this.graph.isCloneEvent(a)};
2706 …ate||this.isResetEvent(a)||(this.mouseDownPoint=mxUtils.convertPoint(this.graph.container,mxEvent.…
2707graph,this.currentState);mxEvent.addListener(e,"mouseenter",mxUtils.bind(this,function(a){mxEvent.…
2708 …reEvent(new mxEventObject("blur","arrow",e,"direction",d,"event",a));this.graph.isMouseDown||this.…
2711graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);null!=this.currentState&&(this.graph.…
2712 …;HoverIcons.prototype.getStateAt=function(a,b,d){return this.graph.view.getState(this.graph.getCel…
2713graph.model.isEdge(c.cell)||this.graph.isCloneEvent(e)||c.getVisibleTerminalState(!0)!=a&&c.getVis…
2714 …();this.graph.selectCellsForConnectVertex(this.graph.connectVertex(a.cell,b,this.graph.defaultEdge…
2715graph.model.isVertex(this.currentState.cell)&&this.graph.isCellConnectable(this.currentState.cell)…
2716graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentS…
2718 …,parseInt(this.arrowRight.style.top));if(this.checkCollisions){var b=this.graph.getCellAt(a.x+a.wi…
2719graph.getCellAt(a.x-this.triangleLeft.width/2,this.currentState.getCenterY()),c=this.graph.getCell…
2720graph.isSwimlane(a)||!(null==c||null==f||c.height<3*f.height&&c.width<3*f.width)?b.style.visibilit…
2722 HoverIcons.prototype.computeBoundingBox=function(){var a=this.graph.model.isEdge(this.currentState.…
2723graph.getModel().contains(a)){if(this.graph.getModel().isVertex(a)&&!this.graph.isCellConnectable(…
2724graph.connectionArrowsEnabled||null!=a&&"0"==mxUtils.getValue(a.style,"allowArrows","1"))this.rese…
2725 this.graph.isMouseDown||this.graph.panningHandler.isActive()||(this.prev=a,this.update(a,b,d))}),th…
2726 ….graph.isEnabled()?(this.removeNodes(),this.setCurrentState(a),this.repaint(),this.graph.connectio…
2727graph.container.appendChild(this.arrowUp),this.graph.container.appendChild(this.arrowDown));this.g…
2738graph.getModel().isVertex(a)||!this.graph.isCellVisible(a)};TableLayout.prototype.getSize=function…
2739graph.model.getChildCells(a,!0),e=this.graph.getActualStartSize(a,!0),c=this.getSize(d,!0),f=b-e.x…
2740graph.getModel(),k=f.getChildCells(a,!0);a=this.graph.getActualStartSize(a,!0);var h=null,g=a.x,l=…
2741 …ternateBounds.width:n.width,p=!1,h.colspan--);f.setVisible(k[m],p);p=this.graph.getCurrentCellStyl…
2743graph.getActualStartSize(a,!0),d=this.graph.getCellGeometry(a),e=this.graph.getCellStyle(a),c="1"=…
2744 …r q=f?null:this.getRowLayout(m[0],l),u=[],v=b.y,t=0;t<m.length;t++)p=this.graph.getCellGeometry(m[…
2746 …=d&&c&&this.graph.model.isEdge(d.cell)&&null!=d.style&&1!=d.style[mxConstants.STYLE_CURVED]&&!d.in…
2747graph.model.isEdge(d.cell)&&null!=d.style&&1!=d.style[mxConstants.STYLE_CURVED]&&this.validEdges.p…
2748 …tribute("stroke-dasharray",8*this.state.view.scale);var b=this.state.view.graph.getFlowAnimationSt…
2749 function(a){c.apply(this,arguments);this.graph.model.isEdge(a.cell)&&1!=a.style[mxConstants.STYLE_C…
2756 …;else{b=this.getTerminalPort(a,b,d);var e=this.getNextPoint(a,c,d),f=this.graph.isOrthogonal(a),g=…
2757 …(null!=b&&null!=a){a=this.graph.getAllConnectionConstraints(b);d=c=null;if(null!=a)for(var f=0;f<a…
2758 …ents);"1"==a.getAttribute("placeholders")&&null!=c.state&&(d=c.state.view.graph.replacePlaceholder…
2770 …rtexIgnored=function(a){return d.apply(this,arguments)||this.graph.isTableRow(a)||this.graph.isTab…
2771 …s.graph.isEdgeIgnored(a)};var c=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.p…
2772graph.createCurrentEdgeStyle();a=this.graph.createEdge(null,null,null,null,null,a);a=new mxCellSta…
2834graph.isCustomLink(c)?null:c};k.getLinkTargetForCellState=function(a,b){return a.view.graph.getLin…
2851 …on(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.…
2854 …[a,e,f])})};mxCellEditor.prototype.isContentEditing=function(){var a=this.graph.view.getState(this…
2855 …itor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSe…
2856 …dow.getSelection&&null!=window.getSelection().containsNode){var d=!0;this.graph.processElements(th…
2857 !0)?(a.removeAttribute("align"),a.style.textAlign=null):d=!1});d&&this.graph.cellEditor.setAlign(a)…
2859 …totype.startEditing=function(a,b){a=this.graph.getStartEditingCell(a,b);t.apply(this,arguments);va…
2860graph.setSelectionCell(a);var c=this.graph.getModel().getParent(a),d=this.graph.getCellGeometry(a)…
2863 …ea))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var a=this.graph.view.getState(this…
2864 0<h.length&&"\n"==h.charAt(h.length-1)&&(h=h.substring(0,h.length-1));h=this.graph.sanitizeHtml(b?h…
2867 …mentMode&&(h=mxUtils.replaceTrailingNewlines(h,"<div><br></div>"));h=this.graph.sanitizeHtml(b?h.r…
2869 …ellEditor.prototype.resize=function(a,b){if(null!=this.textarea)if(a=this.graph.getView().getState…
2872 …s);var c=this.graph.getEditingValue(a.cell,b);"1"==mxUtils.getValue(a.style,"nl2Br","1")&&(c=c.rep…
2873 …,"0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var b=this.graph.sanitizeHtml(this.…
2874graph.container.focus()}catch(J){}};var E=mxCellEditor.prototype.applyValue;mxCellEditor.prototype…
2875 …l);return b};mxCellEditor.prototype.getMinimumSize=function(a){var b=this.graph.getView().scale;re…
2876 …this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=a(),this.graph.container.appendCh…
2877graph.view.translate,e=this.graph.view.scale;c=this.roundLength((this.bounds.x+this.currentDx)/e-d…
2878graph.getCellStyle(a);if(null==c.childLayout){var d=this.graph.model.getParent(a),e=null!=d?this.g…
2879graph.getActualStartSize(d),e=e.clone();c?e.height=b.height+g.y+g.height+2*f:e.width=b.width+g.x+g…
2880 this.graph.isTableRow(g)&&a(d.getParent(g));a(g)}return e};var G=mxVertexHandler.prototype.createPa…
2881graph.isRecursiveVertexResize(a)&&!mxEvent.isControlDown(b.getEvent())};mxVertexHandler.prototype.…
2882graph.isCellCollapsed(a.cell)&&"1"==mxUtils.getValue(a.style,"recursiveResize","1")&&null==mxUtils…
2883graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.…
2884graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.proto…
2885 …es=function(){var a=K.apply(this,arguments);if(this.graph.isTable(this.state.cell)){var b=this.gra…
2887graph.view.scale;this.shape.bounds.width=1;this.shape.bounds.y=d.y+(c==k.length-1?0:a.y*this.graph
2889 …his.state.width,this.shape.bounds.y=this.state.y+this.state.height+h*this.graph.view.scale,this.sh…
2891 …dden"};mxVertexHandler.prototype.refreshMoveHandles=function(){var a=this.graph.model;if(null!=thi…
2892 …a){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(a)&…
2893graph.graphHandler.start(this.state.cell,mxEvent.getClientX(a),mxEvent.getClientY(a),this.graph.ge…
2894 …omHandles[a].destroy();this.customHandles=this.createCustomHandles()}this.graph.isTable(this.state…
2895 c=this.graph.isTable(this.state.cell)||this.graph.cellEditor.getEditingCell()==this.state.cell;if(!…
2896graph.isTable(this.state.cell)&&(b+=7),a.x=this.sizers[0].bounds.width+b,a.y=this.sizers[0].bounds…
2898 …linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.gra…
2899graph.container.appendChild(this.hint));var e=this.graph.view.translate,f=this.graph.view.scale,g=…
2910graph.getTolerance()};mxPanningHandler.prototype.isPanningTrigger=function(a){var b=a.getEvent();r…
2911graph.getSelectionCount()&&(this.delayedSelection=!1)}}else mxPanningHandler.prototype.isPanningTr…
2912 …ntX&&null!=this.currentY&&(d=this.first.x,e=this.first.y,f=(this.currentX-d)/this.graph.view.scale,
2913graph.view.scale,mxEvent.isAltDown(b.getEvent())||(f=this.graph.snap(f),g=this.graph.snap(g),this.
2914graph.model.setGeometry(k[c],l))}}finally{this.graph.model.endUpdate()}}else f=new mxRectangle(thi…
2915graph.tolerance;if(null!=this.div||Math.abs(e)>g||Math.abs(f)>g)null==this.div&&(this.div=this.cre…
2916 …is.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHe…
2917 …"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWi…
2919 …absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==a)?this.graph.getConnectionConst…
2920 d,c):null,c=null!=(null!=e?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(c),e):n…
2921 …th){var b=this.graph.getModel(),c=b.getParent(a[0]),d=this.graph.getCellGeometry(a[0]);if(b.isEdge…
2922 …lectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(a){var b=this.graph.getModel(),
2923graph.getCellGeometry(a.cell);return b.isEdge(c)&&null!=d&&d.relative&&2>a.width&&2>a.height&&null…
2924 …state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(thi…
2925graph.setCellStyles(mxConstants.STYLE_ROTATION,a,[this.state.cell])):this.state.view.graph.turnSha…
2926 …!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount(…
2927graph.isTable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()…
2928graph.isEnabled()&&this.graph.getSelectionCount()<this.graph.graphHandler.maxCells?"":"none");this…
2929graph.addListener(mxEvent.EDITING_STOPPED,this.editingHandler);b=this.graph.getLinkForCell(this.st…
2930graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.…
2931graph.editLink)){var d=document.createElement("img");d.setAttribute("src",Editor.editImage);d.setA…
2932graph.setLinkForCell(this.state.cell,null);mxEvent.consume(a)}))}if(null!=c)for(d=0;d<c.length;d++…
2933graph.connectionHandler.isEnabled()});var a=mxUtils.bind(this,function(){null!=this.linkHint&&(thi…
2934graph.getLinkForCell(this.state.cell),this.graph.getLinksForState(this.state));a();this.redrawHand…
2935 …this.constraintHandler.isEnabled=mxUtils.bind(this,function(){return this.graph.connectionHandler.…
2937graph.getSelectionCount()?"":"none"}null!=this.rotationShape&&null!=this.rotationShape.node&&(this…
2940graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(…
2942 …nkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),t…
2961 Format.prototype.init=function(){var a=this.editorUi,b=a.editor,d=b.graph;this.update=mxUtils.bind(…
2963 …this.editorUi.editor.graph.getSelectionCells(),b=this.initSelectionState(),d=!0,e=0;e<a.length;e++…
2965 Format.prototype.updateSelectionStateForCell=function(a,b,d,e){d=this.editorUi.editor.graph;a.cells…
2968 …return!this.isSpecialColor(a.style[mxConstants.STYLE_FILLCOLOR])&&(a.view.graph.model.isVertex(a.c…
2973 …!=this.container.style.width){this.clear();var a=this.editorUi,b=a.editor.graph,d=document.createE…
2982 …d,e,c,f,k,h){f=null!=f?f:"";h=null!=h?h:!1;var g=this.editorUi,l=g.editor.graph;e=null!=e?e:1;c=nu…
2991 …eateCellOption=function(a,b,d,e,c,f,k,h,g){var l=this.editorUi,m=l.editor.graph,n=this;e=null!=e?"…
2998 …reateCellColorOption=function(a,b,d,e,c,f){var k=this.editorUi,h=k.editor.graph,g=this;return this…
3004 …ativeOption=function(a,b,d,e,c){d=null!=d?d:52;var f=this.editorUi.editor.graph,k=this.createPanel…
3008 …this.editorUi.editor.graph.container.focus(),mxEvent.consume(a)):27==a.keyCode&&(null!=b&&b(null,n…
3013 ArrangePanel.prototype.addTable=function(a){var b=this.editorUi,d=b.editor.graph,e=this.format.getS…
3018 ArrangePanel.prototype.addLayerOps=function(a){var b=this.editorUi,d=b.editor.graph,e=mxUtils.butto…
3021 ArrangePanel.prototype.addGroupOps=function(a){var b=this.editorUi,d=b.editor.graph,e=this.format.g…
3029 ArrangePanel.prototype.addAlign=function(a){var b=this.editorUi.editor.graph;a.style.paddingTop="6p…
3032 ArrangePanel.prototype.addFlip=function(a){var b=this.editorUi.editor.graph;a.style.paddingTop="6px…
3034 ArrangePanel.prototype.addDistribute=function(a){var b=this.editorUi.editor.graph;a.style.paddingTo…
3036 ArrangePanel.prototype.addAngle=function(a){var b=this.editorUi,d=b.editor.graph,e=this.format.getS…
3039graph.view.unit){case mxConstants.POINTS:return"pt";case mxConstants.INCHES:return'"';case mxConst…
3040graph.view.unit){case mxConstants.POINTS:return a;case mxConstants.INCHES:return a*mxConstants.PIX…
3041 BaseFormatPanel.prototype.getUnitStep=function(){switch(this.editorUi.editor.graph.view.unit){case …
3042 ArrangePanel.prototype.addGeometry=function(a){var b=this,d=this.editorUi,e=d.editor.graph,c=e.getM…
3052 k;a.value=k+" "+f.getUnit()}}mxEvent.consume(d)}var e=this.editorUi.editor.graph,c=null,f=this;mxEv…
3053 …date()}c=k;a.value=k+" pt"}}mxEvent.consume(d)}var e=this.editorUi.editor.graph,c=null,f=this;mxEv…
3055 ArrangePanel.prototype.addEdgeGeometry=function(a){var b=this.editorUi,d=b.editor.graph,e=this.form…
3062 …ear-gradient(#c5ecff 0px,#87d4fb 100%)":""}var d=this.editorUi,e=d.editor.graph,c=this.format.getS…
3123 StyleFormatPanel.prototype.addSvgRule=function(a,b,d,e,c,f,k){var h=this.editorUi.editor.graph;k.te…
3128 StyleFormatPanel.prototype.addFill=function(a){var b=this.editorUi,d=b.editor.graph,e=this.format.g…
3137 …ells)));w.value=b+" pt";mxEvent.consume(a)}var e=this.editorUi,c=e.editor.graph,f=this.format.getS…
3196 …Jumps){a.style.padding="2px 0px 24px 14px";var d=this.editorUi,e=d.editor.graph,c=document.createE…
3200 StyleFormatPanel.prototype.addEffects=function(a){var b=this.editorUi.editor.graph,d=this.format.ge…
3205 DiagramStylePanel.prototype.addView=function(a){var b=this.editorUi,d=b.editor.graph,e=d.getModel()…
3219 Editor.styles[a];z(b.commonStyle,b.vertexStyle,b.edgeStyle,b.graph,a)}}),G=mxUtils.bind(this,functi…
3224 DiagramFormatPanel.prototype.init=function(){var a=this.editorUi.editor.graph;this.container.append…
3225 DiagramFormatPanel.prototype.addView=function(a){var b=this.editorUi,d=b.editor.graph;a.appendChild…
3227 …urces.get("change"),function(a){b.showBackgroundImageDialog(null,b.editor.graph.backgroundImage);m…
3228 DiagramFormatPanel.prototype.addOptions=function(a){var b=this.editorUi,d=b.editor.graph;a.appendCh…
3231 …+" "+d.getUnit();mxEvent.consume(a)}var d=this,e=this.editorUi,c=e.editor.graph,f=document.createE…
3236 DiagramFormatPanel.prototype.addPaperSize=function(a){var b=this.editorUi,d=b.editor.graph;a.append…
3247 ….prototype.paintTableForeground=function(a,b,c,d,e){var r=this.state.view.graph,f=r.getActualStart…
3306 c,d,f):(r=this.state.view.graph.cellRenderer.getShape(r),null!=r&&r!=Q&&(r=new r,r.apply(this.state…
3414 …on(a){return[Va(a,!0,10),Va(a,!1,10)]},flexArrow:function(a){var b=a.view.graph.gridSize/a.view.sc…
3424 …))},!1,null,function(b){if(mxEvent.isControlDown(b.getEvent())&&(b=a.view.graph,b.isTableRow(a.cel…
3445graph.isCellRotatable(this.state.cell)){var b=this.state.style.shape;null==mxCellRenderer.defaultS…
3499 …"")}finally{c.getModel().endUpdate()}}}var d=this.editorUi,e=d.editor,c=e.graph,f=function(){retur…
3501 …tils.bind(this,function(a,b){try{var c=mxUtils.parseXml(a);e.graph.setSelectionCells(e.graph.impor…
3549 …(){var a=c.getSelectionCell();if(null!=a&&c.getModel().isEdge(a)){var b=e.graph.selectionCellsHand…
3561 Menus.prototype.init=function(){var a=this.editorUi,b=a.editor.graph,d=mxUtils.bind(b,b.isEnabled);…
3589 Menus.prototype.addInsertTableCellItem=function(a,b){var d=this.editorUi.editor.graph,e=d.getSelect…
3596 …;b=null!=b?b:mxUtils.bind(this,function(a,b,d){var e=this.editorUi.editor.graph;a=e.getParentByNam…
3597 …{e.selectNode(b[g].rows[0].cells[0]);break}}});var k=this.editorUi.editor.graph,h=null,g=null;null…
3602 …nly(a.addItem(b,h,mxUtils.bind(this,function(){var a=this.editorUi.editor.graph;a.stopEditing(!1);…
3604 …=a.addItem(b,null,mxUtils.bind(this,function(){var a=this.editorUi.editor.graph;null!=k&&a.cellEdi…
3605 …tion(a,b){return mxUtils.bind(this,function(d){var e=this.editorUi.editor.graph;e.stopEditing(!1);…
3607 … a.addItem(b,null,mxUtils.bind(this,function(){var a=this.editorUi.editor.graph,b=e,f=a.getView().…
3609 Menus.prototype.pickColor=function(a,b,d){var e=this.editorUi,c=e.editor.graph,f=226+17*(Math.ceil(…
3611 …()}};Menus.prototype.toggleStyle=function(a,b){var d=this.editorUi.editor.graph,e=d.toggleCellStyl…
3614 …s.prototype.addPopupMenuHistoryItems=function(a,b,d){this.editorUi.editor.graph.isSelectionEmpty()…
3615graph.isSelectionEmpty()?this.addMenuItems(a,["pasteHere"],null,d):this.addMenuItems(a,"delete - c…
3616 Menus.prototype.addPopupMenuArrangeItems=function(a,b,d){var e=this.editorUi.editor.graph;0<e.getEd…
3618 Menus.prototype.addPopupMenuCellItems=function(a,b,d){var e=this.editorUi.editor.graph,c=e.view.get…
3621 …is.editorUi.editor.graph.view.getState(b);this.addMenuItems(a,["-","editStyle","editData","editLin…
3622 Menus.prototype.addPopupMenuSelectionItems=function(a,b,d){this.editorUi.editor.graph.isSelectionEm…
3625 …d(this,function(c){if(d&&null==a.enabled||a.enabled){this.editorUi.editor.graph.popupMenuHandler.h…
3631 …tils.bind(this,function(){d.innerHTML=Math.round(100*this.editorUi.editor.graph.view.scale)+"%";th…
3632 "1px",d.getElementsByTagName("img")[0].style.top="5px")});this.editorUi.editor.graph.view.addListen…
3647 Toolbar.prototype.createTextToolbar=function(){var a=this.editorUi,b=a.editor.graph,d=this.addMenu(…
3675 Toolbar.prototype.addMenuHandler=function(a,b,d,e){if(null!=d){var c=this.editorUi.editor.graph,f=n…
3686 …unction(){return mxUtils.bind(this,function(a){var b=this.editorUi.editor.graph;b.getModel().begin…
3691 …");null!=p&&(b=mxUtils.button(mxResources.get("help"),function(){a.editor.graph.openLink(p)}),b.cl…
3694 …teElement("select");c.style.width="180px";c.className="geBtn";if(a.editor.graph.isEnabled()){var f=
3695 …indow"));EditDiagramDialog.showNewWindowOption&&c.appendChild(f);a.editor.graph.isEnabled()&&(f=do…
3696graph.model.beginUpdate();try{a.editor.setGraphXml(mxUtils.parseXml(b).documentElement),a.hideDial…
3697 ….getRoot(),0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(m));a.hideDialog()}catc…
3699 …kgroundColor=q.value*u.value>MAX_AREA||0>=u.value?"red":""}var e=a.editor.graph,c=e.getGraphBounds…
3714 ExportDialog.exportFile=function(a,b,d,e,c,f,k,h){h=a.editor.graph;if("xml"==d)ExportDialog.saveLoc…
3717graph,f=c.getModel().getValue(b);if(!mxUtils.isNode(f)){var k=mxUtils.createXmlDocument().createEl…
3726 …ext-align:right;bottom:30px;height:40px;";if(a.editor.graph.getModel().isVertex(b)||a.editor.graph
3729 EditDataDialog.getDisplayIdForCell=function(a,b){var d=null;null!=a.editor.graph.getModel().getPare…
3747 …sSelectionEmpty()&&(z.className="geButton mxDisabled");k()}var g=a.editor.graph,l=document.createE…
3819 …;Sidebar.prototype.itemClicked=function(a,c,b){var e=this.editorUi.editor.graph,f=!1;if(null!=a&&1…
3863 …w Layout",!0)}),this.addEntry("horizontal flow layout",function(){var a=e.graph.cloneCell(c);a.geo…
9984 …e(g,!0));g.setAttribute("id",b[c].getId());b[c].viewState&&this.ui.editor.graph.saveViewState(b[c]…
9990 …ze/Type="+this.getSize()+" ("+n+")\nUser="+f+l+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSy…
9992 …ction(){this.stats.fileReloaded++;var c=this.ui.editor.graph.getViewState(),d=this.ui.editor.graph
9995graph;n.container.style.visibility="hidden";var f=this.changeListenerEnabled;this.changeListenerEn…
10008graph.model.addListener(mxEvent.CHANGE,this.changeListener),this.ui.editor.graph.addListener("grid…
10041 …ull!=this.changeListener&&(this.ui.editor.graph.model.removeListener(this.changeListener),this.ui.…
10095 …"+b),m.value=c):m.value=""}var c=document.createElement("div"),g=b.editor.graph,k=g.getGraphBounds…
10105 …eateEdge(null,null,null,null,null,n);return new mxCellState(this.graph.view,b,this.graph.getCellSt…
10110graph.getFreeInsertPoint():b.editor.graph.getCenterInsertPoint(k.getBoundingBoxFromGeometry(f,!0))…
10125 …e()}null!=p&&(m.setSelectionCell(p),m.scrollCellToVisible(p))},m=b.editor.graph,g="plantUmlTxt"==f…
10127 …f)b.spinner.spin(document.body,mxResources.get("inserting"))&&(m=b.editor.graph,b.generateMermaidI…
10129 …fontStyle=1;align=center;resizeLast=1;"),p.vertex=!0,q.push(p),u=b.editor.graph.getPreferredSizeFo…
10131graph.getPreferredSizeForCell(u);null!=u&&p.geometry.width<u.width+30&&(p.geometry.width=Math.min(…
10132 …sible(m.getSelectionCell()))}else if("list"==f){if(0<e.length){m=b.editor.graph;H=null;q=[];for(f=…
10137graph.getModel().beginUpdate();try{q=m.getModel().getChildren(m.getDefaultParent()),k=mxEvent.isAl…
10140 ";Example:\na->b\nb->edge label->c\nc->a\n"}var k=b.editor.graph.getFreeInsertPoint();e=document.cr…
10199 …tainer=k},ImageDialog=function(b,e,d,c,g,k){k=null!=k?k:!0;var n=b.editor.graph,f=document.createE…
10232 …nder&&f.addListener(mxEvent.SIZE,mxUtils.bind(this,function(c,d){b.editor.graph.mathEnabled&&Edito…
10247 …bled");H.removeAttribute("disabled");null!=v&&v.isRestricted()||(b.editor.graph.isEnabled()&&P.rem…
10265 …!0,d,e)&&c!=J);t&&(t=null,e?b.editor.graph.model.execute(new SelectPage(b,m)):b.selectPage(m));v=!…
10268 …return 0==g.length||null!=y}var m=b.actions.get("findReplace"),p=b.editor.graph,q=null,t=null,u=!1…
10277 …innerHTML="";if(F.value){var c=b.currentPage,f=b.editor.graph.getSelectionCells();b.editor.graph.r…
10278graph.model.execute(new SelectPage(b,c));mxUtils.write(M,mxResources.get("matchesRepl",[d]))}catch…
10283 …this.window.destroy()}},FreehandWindow=function(b,e,d,c,g){var k=b.editor.graph;b=document.createE…
10287 …window.destroy()}},TagsWindow=function(b,e,d,c,g){var k=b.editor.graph,n=b.editor.graph.createTags…
10315 …hild(m);this.container=g},EditGeometryDialog=function(b,e){var d=b.editor.graph,c=1==e.length?d.ge…
10333 …ls.getTextContent(Q[H]),L=b.stringToCells(Graph.decompress(D)),M=b.editor.graph.getBoundingBoxFrom…
10349 …nu(d);n.appendChild(d);var p=new Graph(d);p.setEnabled(!1);var q=b.editor.graph.cloneCell(e);p.add…
10351 …){e=Graph.compress(e);c.getModel().beginUpdate();try{if(l){var g=b.editor.graph.getFreeInsertPoint…
10352 …dChild(d);d=mxUtils.button(mxResources.get("apply"),function(){u(b.editor.graph,e,!0)});d.classNam…
10423 …illColor:"#A8DADC"},graph:{background:"#F1FAEE"}},{commonStyle:{fontColor:"#393C56",strokeColor:"#…
10424 graph:{background:"#DAD2D8",gridColor:"#ABA4A9"}},{commonStyle:{fontColor:"#FEFAE0",strokeColor:"#D…
10425graph:{background:"#FCE7CD",gridColor:"#CFBDA8"}},{vertexStyle:{strokeColor:"#FFFFFF",fillColor:"#…
10426graph:{background:"#EEEEEE"}},{vertexStyle:{strokeColor:"#EEEEEE",fillColor:"#56517E",fontColor:"#…
10427 edgeStyle:{fontColor:"#FFFFFF"},commonStyle:{strokeColor:"#FFFFFF"},graph:{background:"#182E3E",gri…
10453 …dispName:"Colspan",type:"int",min:1,defVal:1,isVisible:function(b,c){var f=c.editorUi.editor.graph;
10454graph;return"1"==urlParams.test&&1==b.vertices.length&&0==b.edges.length&&f.isTableCell(b.vertices…
10455graph;return 1==b.vertices.length&&0==b.edges.length&&f.isTable(b.vertices[0])}},{name:"resizeLast…
10458 …table",type:"bool",getDefaultValue:function(b,c){return c.editorUi.editor.graph.isCellConnectable(…
10461graph;return null!=f&&(d.isSwimlane(f)||0<d.model.getChildCount(f))},isVisible:function(b,c){retur…
10462graph.isSwimlane(b.vertices[0])&&null==mxUtils.getValue(b.style,"childLayout",null)}},{name:"expan…
10463 …al:!1,isVisible:function(b,c){var f=0<b.vertices.length?c.editorUi.editor.graph.getCellGeometry(b.…
10465graph.isSwimlane(b.vertices[0])||null==f||f==mxConstants.NONE||null!=b.style.pointerEvents}},{name…
10475 …uto"==l&&(l=mxUtils.hex2rgba(null!=this.shape.state?this.shape.state.view.graph.shapeBackgroundCol…
10506graph.currentStyle&&(d=null!=this.graph.themes?this.graph.themes[f]:mxUtils.load(STYLE_PATH+"/"+f+…
10507graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+"/default-old.xml").getDocum…
10508graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupport…
10509graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResou…
10510graph.mathEnabled?"1":"0");f.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.gr…
10511 …etGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.gra…
10512graph.view.y0=null;mxClient.NO_FO=this.graph.mathEnabled&&!this.useForeignObjectForMath?!0:this.or…
10513 …oForeignObject;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.is…
10515 …totype.init;Editor.prototype.init=function(){d.apply(this,arguments);this.graph.addListener(mxEven…
10516 c){null!=this.graph.container&&this.graph.mathEnabled&&!this.graph.blockMathRender&&Editor.MathJaxR…
10527 …=f[l].indexOf(")"),0<d){var m=Editor.trimCssUrl(f[l].substring(0,d));this.graph.isRelativeUrl(m)&&…
10531 this.graph.getCustomFonts();if(0<c.length){var f="",d=0;null==this.cachedGoogleFonts&&(this.cachedG…
10534 …=null!=t?t:this.graph;n=null!=n?n:0;var x=p?null:t.background;x==mxConstants.NONE&&(x=null);null==…
10537 …l!=e&&e(wa)}});d.onerror=function(b){null!=e&&e(b)};k&&this.graph.addSvgShadow(f);this.graph.mathE…
10541 …ditDataDialog.getDisplayIdForCell=function(b,c){var f=null;null!=b.editor.graph.getModel().getPare…
10543 …ient.IS_SVG&&this.isShadowOptionVisible()){var c=this.editorUi,f=c.editor.graph,d=this.createOptio…
10545 f=c.editor.graph;if(f.isEnabled()){var d=c.getCurrentFile();if(null!=d&&d.isAutosaveOptional()){var…
10569 …&b[d].type==c[e].type){l=!0;break}l||delete c[e]}},e=this.editorUi.editor.graph.view.getState(b);n…
10583 …pendChild(n));v.appendChild(B);return v}var q=this,t=this.editorUi.editor.graph,n=[];b.style.posit…
10588 …mouseleave",function(){b.style.opacity="0.5"})}var f=this.editorUi.editor.graph,d=document.createE…
10601 …",f.style.marginBottom="2px",b.appendChild(f));var d=this.editorUi.editor.graph,d=1==c.cells.lengt…
10608 …tLayout=function(b){var c=this.graph.getCellStyle(b);if(null!=c&&"rack"==c.childLayout){var f=new …
10628 …S_GC&&null!=this.getDrawPane()){var b=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxCli…
10629graph.container.firstChild.nodeName?null==this.webKitForceRepaintNode||this.graph.mathEnabled&&("s…
10668 …is.graph.mathEnabled&&!b.editor.useForeignObjectForMath?!0:b.editor.originalNoForeignObject;var k=…
10673 …og.printPreview(t));null!=l&&(e.stylesheet=l,e.refresh())}}var e=b.editor.graph,l=document.createE…
10681 …="12px";var M=PageSetupDialog.addPageFormatPanel(m,"printdialog",b.editor.graph.pageFormat||mxCons…
10685 …this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.…
10700graph.openLink(b,c,d)};EditorUi.prototype.showSplash=function(b){};EditorUi.prototype.getLocalData…
10701 …anged"))};EditorUi.prototype.isMathEnabled=function(b){return this.editor.graph.mathEnabled};Edito…
10707 …ditor.chromeless||this.editor.editable){var d=f.getFunction,e=this.editor.graph,g=this;f.getFuncti…
10711 null!=c&&(b=c);if(null!=b){c=this.editor.graph;c.model.beginUpdate();try{var f=null!=this.pages?thi…
10712 …setGraphXml(b),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root);if(nul…
10713 EditorUi.prototype.createFileData=function(b,c,d,e,g,k,n,v,x,A,z){c=null!=c?c:this.editor.graph;g=n…
10718 …ils.createXmlDocument()),g=g.encode(new mxGraphModel(l.root));this.editor.graph.saveViewState(l.vi…
10719 …ils.createXmlDocument()),g=g.encode(new mxGraphModel(l.root)),this.editor.graph.saveViewState(l.vi…
10726 …on(b,c,d,e,g,k,n,v,x,A,z){g=null!=g?g:!0;k=null!=k?k:!1;var f=this.editor.graph;if(c||!b&&null!=x&…
10727 …kgroundImage=this.editor.graph.setBackgroundImage;var p=this.pages[0];this.currentPage==p?f.setBac…
10728 …s.createFileData(n,f,x,window.location.href,b,c,d,e,g,v,A);f!=this.editor.graph&&f.container.paren…
10731 …";null!=g&&(g=g.replace(/&/g,"&amp;"));b={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,
10736graph.model.root);if(null!=urlParams["layer-ids"])try{var e=urlParams["layer-ids"].split(" ");b={}…
10738graph.isSelectionEmpty();var f=this.getBaseFilename(!g),l=f+("xml"==b||"pdf"==b&&z?".drawio":"")+"…
10739 …s.editor.graph.pageVisible;null!=k&&(this.editor.graph.pageVisible=k);var l=this.createDownloadReq…
10740 …=this.editor.graph.background;if(n||q==mxConstants.NONE)q=null;var u=this.editor.graph.getSvg(q,nu…
10741 …e.createDownloadRequest=function(b,c,d,e,g,k,n,v,x,A,z){var f=this.editor.graph,l=f.getGraphBounds…
10746 …f.documentElement:null,null!=b&&"updates"==b.nodeName)){var e=this.editor.graph,g=e.getModel();g.b…
10751 …),f.removeListener(this.descriptorChangedListener),f.close());this.editor.graph.model.clear();this…
10752 this.setCurrentFile(null);null!=f&&this.updateDocumentTitle();this.editor.graph.model.clear();this.…
10753 …peningFile;this.setGraphEnabled(!0);this.setMode(b.getMode());this.editor.graph.model.prefix=Edito…
10754 …s.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!=…
10757 …;g.removeAttribute("name");d.root=b[l].root;var k=e.encode(d);this.editor.graph.saveViewState(b[l]…
10767 …hanges")):f();mxEvent.consume(c)}}));if(b.isEditable()){var y=this.editor.graph,C=null,F=mxUtils.b…
10770 ….height,e||"",!0,!1,!1));b={xml:Graph.compress(mxUtils.getXml(this.editor.graph.encodeCells(b))),w…
10776 q=this.editor.graph.getBoundingBoxFromGeometry(n);E(n,new mxRectangle(0,0,q.width,q.height),b)}u=!0…
10785 …f(!c){var f=new ChangePageSetup(this,null,b);f.ignoreColor=!0;this.editor.graph.model.execute(f)}}…
10786 …apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(…
10791 …Resources.get("openInNewWindow"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://…
10795 function(){return this.editor.graph.openLink(l.helpLink)})):null!=l&&null!=l.ownerEmail&&(k=mxResou…
10811 …his,function(b){null==this.tagsComponent&&(this.tagsComponent=this.editor.graph.createTagsDialog(m…
10814 …romelessToolbar.offsetHeight+4+"px";c=mxUtils.getCurrentStyle(this.editor.graph.container);this.ta…
10815 …es.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function…
10816 ….layersDialog),this.layersDialog=null)}));mxEvent.addListener(this.editor.graph.container,"click",…
10817 …(b){var c=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",…
10819 …romelessToolbar.offsetHeight+4+"px";f=mxUtils.getCurrentStyle(this.editor.graph.container);this.ex…
10821 …null,null,null,null,Editor.defaultBorder);mxEvent.addListener(this.editor.graph.container,"click",…
10825graph.isSelectionEmpty();d=null!=d?d:f;var l=c?null:this.editor.graph.background;l==mxConstants.NO…
10827 "\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(b))});this.editor.graph.mathEnabled&&this.editor.addM…
10835 …&&n.push("edit="+encodeURIComponent(g)),k&&n.push("layers=1"),this.editor.graph.foldingEnabled&&n.…
10837 …ighlight=g);"auto"!==e&&(f.target=e);A||(f.lightbox=!1);f.nav=this.editor.graph.foldingEnabled;d=p…
10853 …tor.graph.isSelectionEmpty()),n=e?null:this.addCheckbox(f,mxResources.get("includeCopyOfMyDiagram"…
10854 …cument.createElement("div");f.style.whiteSpace="nowrap";var l=this.editor.graph,m="jpeg"==v?220:30…
10862 …b,c,d,e,g){var f=document.createElement("div");f.style.whiteSpace="nowrap";var l=this.editor.graph;
10866 …<img src="'+c+'"'+q+(""!=p?' style="'+p+'"':"")+f+"/>")}var l=this.editor.graph.getGraphBounds(),m…
10868 …itorUi.prototype.createEmbedSvg=function(b,c,d,e,g,k,n){var f=this.editor.graph.getSvg(null,null,n…
10869 f.setAttribute("content",this.getFileData(!0));c&&this.editor.graph.addSvgShadow(f);if(d){var q=" "…
10871 …)),""!=t&&f.setAttribute("style",t),this.editor.addFontCss(f),this.editor.graph.mathEnabled&&this.…
10873 …DiagramNode(f))}d=this.editor.graph;try{this.editor.graph=c,this.editor.setGraphXml(b)}catch(t){}f…
10874 …itorUi.prototype.getEmbeddedPng=function(b,c,d,e,g){try{var f=this.editor.graph,l=null!=f.themes&&…
10875 …kgroundImage=this.editor.graph.setBackgroundImage;var p=this.pages[0];this.currentPage==p?f.setBac…
10876 …ncodeURIComponent(m));b(e.substring(e.lastIndexOf(",")+1));f!=this.editor.graph&&f.container.paren…
10879 …inner.spin(document.body,mxResources.get("exporting"))){var f=this.editor.graph.isSelectionEmpty()…
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…
10884 …ksForCell=function(b,c){var f=document.createElement("div"),d=this.editor.graph,e=d.getLinkForCell…
10898 …d()};EditorUi.prototype.insertAsPreText=function(b,c,d){var f=this.editor.graph,e=null;f.getModel(…
10899 …is,function(b){4==b.readyState&&200<=b.status&&299>=b.status&&this.editor.graph.setSelectionCells(…
10900 …line()&&(g||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(b))){var f=this.editor.graph;if("data:applicati…
10903 …ata(b))this.convertLucidChart(b,mxUtils.bind(this,function(b){this.editor.graph.setSelectionCells(…
10904 else{f=this.editor.graph;g=null;f.getModel().beginUpdate();try{g=f.insertVertex(f.getDefaultParent(…
11525 …dBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");d(C,…
11527 …});null==k&&(k=function(b){if(null!=b){var c=g()||{};delete b["@microsoft.graph.downloadUrl"];c[b.…
11580 …erMode=function(){var b=window.opener||window.parent;null!=b&&this.editor.graph.addListener(mxEven…
11592 …er.insertBefore(this.icon,this.menubar.container.firstChild));this.editor.graph.isViewer()&&this.i…
11610 …CurrentFile();return null!=b&&this.editor.isChromelessView()&&this.editor.graph.isLightboxView()?b…
11614graph.isLightboxView()){var b=this.editor.appName,e=this.getCurrentFile();this.isOfflineApp()&&(b+…
11615 …);null==this.thumbImageCache&&(this.thumbImageCache={});var n=this.editor.graph,f=n.backgroundImag…
11616graph.setBackgroundImage;var p=this.pages[0];this.currentPage==p?n.setBackgroundImage(f):null!=p.v…
11619 …on(){try{E.drawState(n.getView().getState(n.model.root),F),n!=this.editor.graph&&null!=n.container…
11620 null}k(q)}));d=!0}}catch(D){d=!1,null!=n&&n!=this.editor.graph&&null!=n.container.parentNode&&n.con…
11629 …SON.parse(decodeURIComponent(urlParams.state)):null}catch(b){}this.editor.graph.setEnabled(null!=t…
11631 …his.spinner.spin(document.body,mxResources.get("connecting"));this.editor.graph.setEnabled(!1);win…
11642 …onent(urlParams.viewbox||"");if(""!=b)try{var c=JSON.parse(b);this.editor.graph.fitWindow(c,c.bord…
11643 …urlParams.splash){this.fileLoaded(new LocalFile(this,b,null));this.editor.graph.setEnabled(!1);thi…
11656 …)}mxEvent.addListener(d,"click",mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.h…
11692 (m=this.createTemporaryGraph(this.editor.graph.getStylesheet()),document.body.appendChild(m.contain…
11729 …ces.get("saving"))){this.editor.setStatus("");this.editor.graph.isEditing()&&this.editor.graph.sto…
11736 …setAttribute("title",e+" - "+mxResources.get("rename"))}var e=this.editor.graph,d=b.isEditable()&&…
11737 …ll==this.format||null!=b&&this.fileEditable==b.isEditable()||!this.editor.graph.isSelectionEmpty()…
11751 …,function(b){var c=this.getCurrentFile();null!=c&&c.isRenamable()&&(this.editor.graph.isEditing()&&
11752 this.editor.graph.stopEditing(),this.actions.get("rename").funct());mxEvent.consume(b)}));this.fnam…
11789 …ction(){editorResetGraph.apply(this,arguments);null==this.graph.defaultPageFormat&&(this.graph.pag…
11791 …this.customFonts=d}e.apply(this,arguments);var c=this.editorUi,g=c.editor.graph,k=mxUtils.bind(g,g…
11796graph.getFreeInsertPoint();g.setSelectionCells(c.importXml(b,Math.max(d.x,20),Math.max(d.y,20),!0,…
11797graph.view.unit==mxConstants.POINTS});p=c.actions.addAction("inches",function(){c.editor.graph.vie…
11798 …nction(){c.editor.graph.view.setUnit(mxConstants.METERS)});p.setToggleAction(!0);p.setSelectedCall…
11799 c.editor.graph.view.unit);c.refresh()});p.setEnabled(c.canvasSupported&&9!=document.documentMode);p…
11837 typeof mxOrgChartLayout&&null!=d&&g){var b=c.editor.graph,k=new mxOrgChartLayout(b,d,e,f),l=b.getDe…
11921 …s(b,["-","close"])}})));b.prototype.execute=function(){var b=this.ui.editor.graph;this.customFonts=
11922 …=this.previousExtFonts&&d<this.previousExtFonts.length;d++)this.ui.editor.graph.addExtFont(this.pr…
11923 …ction(d,e){for(var f=mxUtils.bind(this,function(f,g,k,l,m){var n=c.editor.graph;l=this.styleChange…
11926graph.extFonts);if(null!=k&&0<k.length)for(e=0;e<k.length;e++)if(k[e].name==f){k.splice(e,1);break…
11929graph.extFonts;if(null!=q&&0<q.length){for(var l={},t=!1,k=0;k<this.customFonts.length;k++)l[this.…
11930graph.model.execute(d)}),e);d.addSeparator(e)}}d.addItem(mxResources.get("custom")+"...",null,mxUt…
11931 …)?d="g":(d="w",e=f))):(d=f.style.FType||d,"w"==d&&(e=this.editorUi.editor.graph.extFonts,f=null,nu…
11933 …tp://")&&(d=PROXY_URL+"?url="+encodeURIComponent(d)),this.editorUi.editor.graph.addExtFont(c,d)));…
11935 …ame(this.previous);this.name=this.previous;this.previous=b;this.ui.editor.graph.updatePlaceholders…
11936 …=this.oldIndex;this.oldIndex=this.newIndex;this.newIndex=b;this.ui.editor.graph.updatePlaceholders…
11938 …;if(null!=this.page&&0<=b){var b=this.ui.currentPage,e=this.ui.editor,d=e.graph,c=Graph.compressNo…
11939 …Render=!1;this.neverShown&&(this.neverShown=!1,d.selectUnlockedLayer());e.graph.fireEvent(new mxEv…
11944 EditorUi.prototype.getImageForPage=function(b,e,d){d=null!=d?d:this.editor.graph;var c=d.getGlobalV…
11946graph.standalone){this.actions.addAction("previousPage",mxUtils.bind(this,function(){this.selectNe…
11948 … MathJax.Hub?1!=MathJax.Hub.queue.pending||null==this.editor||this.editor.graph.mathEnabled||MathJ…
11949graph.refresh()})):"undefined"===typeof Editor.MathJaxClear||null!=this.editor&&this.editor.graph.…
11950 …ction(b,e,d){b=null!=b?this.getPageById(b.getId()):null;var c=this.editor.graph;null!=b&&null!=thi…
11966 …b.viewState=this.editor.graph.createViewState(d),c=new mxCodec(d.ownerDocument),b.root=c.decode(d)…
11967 d)}null!=b.graphModelNode&&(b.viewState=this.editor.graph.createViewState(b.graphModelNode))}return…
11968graph.isEditing()&&this.editor.graph.stopEditing(!1);e=null!=e?e:!1;this.editor.graph.isMouseDown=…
11970graph.isEnabled()){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);b=null!=b?b:th…
11972 …ry{var e=this.editor.graph,d=mxUtils.indexOf(this.pages,b);if(e.isEnabled()&&0<=d){this.editor.gra…
11973 EditorUi.prototype.duplicatePage=function(b,e){var d=null;try{var c=this.editor.graph;if(c.isEnable…
11974graph.isEnabled()){var e=new FilenameDialog(this,b.getName(),mxResources.get("rename"),mxUtils.bin…
11975 EditorUi.prototype.movePage=function(b,e){this.editor.graph.model.execute(new MovePage(this,b,e))};…
11976 …unction(){if(null!=this.tabContainer&&null!=this.pages){var b=this.editor.graph,e=document.createE…
11983 …vent.addListener(e,"mouseenter",mxUtils.bind(this,function(b){this.editor.graph.isMouseDown||(e.st…
11985 …";mxEvent.addListener(b,"click",mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.h…
11986 ….currentPage&&b.addCheckmark(e,Editor.checkmarkImage)})(d);if(this.editor.graph.isEnabled()){b.add…
11991 …abListeners=function(b,e){mxEvent.disableContextMenu(e);var d=this.editor.graph;mxEvent.addListene…
11995 …nu=function(b,e){return mxUtils.bind(this,function(d,c){var g=this.editor.graph;d.addItem(mxResour…
12016 …d&&d<=e.length-1&&v.setSelectionCell(e[d].cell)))))}var u=this,v=u.editor.graph,x=v.getModel(),A=u…
12021 …rIcons.getStateAt=function(c,d,e){return b(c.cell)?null:this.graph.view.getState(this.graph.getCel…
12029 …ts);(d(this.state.cell)||b(this.state.cell))&&!n(this.state.cell)&&0<this.graph.getOutgoingTreeEdg…
12030graph.container.appendChild(this.moveHandle),mxEvent.addGestureListeners(this.moveHandle,mxUtils.b…
12031 this.graph.isMouseDown=!0;u.hoverIcons.reset();mxEvent.consume(b)})))};var H=mxVertexHandler.protot…
12032 …type.createAdvancedShapes=function(){var b=d.apply(this,arguments),e=this.graph;return b.concat([t…
12049 …}})();EditorUi.initMinimalTheme=function(){function b(b,d){var e=b.editor.graph;e.popupMenuHandler…
12050 …Params.sketch&&b.formatWindow.window.fit()}function e(b,d){var e=b.editor.graph;e.popupMenuHandler…
12063 …totype.doSetDarkMode=function(b){if(Editor.darkMode!=b){var c=this.editor.graph;Editor.darkMode=b;…
12084 …enus.prototype.createPopupMenu=function(b,c,d){var e=this.editorUi.editor.graph;b.smartSeparators=…
12086 …enuEditItems=function(b,c,d){u.apply(this,arguments);this.editorUi.editor.graph.isSelectionEmpty()…
12090 …pe.init=function(){A.apply(this,arguments);var c=this.editorUi,d=c.editor.graph;c.actions.get("edi…
12095 …Cell",new Menu(mxUtils.bind(this,function(b,c){var d=this.editorUi.editor.graph,e=d.getSelectionCe…
12106 …))};EditorUi.prototype.installFormatToolbar=function(b){var c=this.editor.graph,d=document.createE…
12121 …ndow(),this.formatWindow.window.toggleMinimized()));var m=this,n=m.editor.graph;m.toolbar=this.cre…
12122 …rentMenu;m.hideCurrentMenu=function(){u.apply(this,arguments);this.editor.graph.popupMenuHandler.h…
12125 …v"):null,Y=mxUtils.bind(this,function(){null!=this.sidebar&&(this.sidebar.graph.stylesheet.styles=…
12156 …bind(this,function(){b.innerHTML=Math.round(100*m.editor.graph.view.scale)+"%"});m.editor.graph.vi…
12162graph.getView().scale,v=Math.max(2,this.getGuideTolerance()/2);t.x=c.x+g;t.y=c.y+f;t.width=c.width…
12166 mxConstants.GUIDE_STROKEWIDTH);b.dialect=mxConstants.DIALECT_SVG;b.pointerEvents=!1;b.init(q.graph.…
12174 …;q.appendChild(t);var u=t.getContext("2d");this.ui=b;var v=b.editor.graph;this.graph=v;this.contai…
12180 …eWidth=.5;u.strokeStyle=p.guideClr;u.setLineDash([2]);d?(n=b.y+g.y+l-this.graph.container.scrollTo…
12181 …,v),v--,B=u.getImageData(z,A-1,l,3),x(z,A,l,A),A--):(n=0,k=b.x+g.x+l-this.graph.container.scrollLe…
12184 …ideDestroy;this.graph.removeListener(this.sizeListener);this.graph.container.removeEventListener("…
12187 …on(e){if(b.editor.graph.isEnabled()&&!b.editor.graph.isMouseDown&&(mxEvent.isTouchEvent(e)||mxEven…