Lines Matching refs:graph

445 …nager.prototype.constructor=mxAutoSaveManager;mxAutoSaveManager.prototype.graph=null;mxAutoSaveMan…  method in mxAutoSaveManager
446 …=function(a){null!=this.graph&&this.graph.getModel().removeListener(this.changeHandler);this.graph
449graph=a;this.steps=null!=b?b:6;this.ease=null!=c?c:1.5}mxMorphing.prototype=new mxAnimation;mxMorp… method in mxMorphing
450 …view(this.graph);if(null!=this.cells)for(var b=0;b<this.cells.length;b++)this.animateCell(this.cel…
451graph.getView().getState(a),e=null;if(null!=d&&(e=this.getDelta(d),this.graph.getModel().isVertex(…
452 …function(a){var b=this.getOriginForCell(a.cell),c=this.graph.getView().getTranslate(),d=this.graph
453graph.getModel().getParent(a);a=this.graph.getCellGeometry(a);b=this.getOriginForCell(c);null!=a&&…
456 ….visitStatesRecursive=function(a,b,c){if(null!=a){c(a,b);for(var d=a.view.graph,e=d.model.getChild…
563 …n(){this.addNode(!0,!0)};function mxGuide(a,b){this.graph=a;this.setStates(b)}mxGuide.prototype.gr… method in mxGuide
564 …xGuide.prototype.getGuideTolerance=function(a){return a&&this.graph.gridEnabled?this.graph.gridSiz…
565 …xConstants.DIALECT_SVG,this.guideY.pointerEvents=!1,this.guideY.init(this.graph.getView().getOverl…
566 …s.guideX.pointerEvents=!1,this.guideX.init(this.graph.getView().getOverlayPane())));k=k||f},f=this…
568graph.snapDelta(b,a,!c,k,n);b=this.getDelta(a,l,b.x,p,b.y);c=this.graph.container;k||null==this.gu…
569graph.panDx,p.x),e=Math.max(a.x+a.width+b.x-this.graph.panDx,p.x+p.width)),this.guideY.points=null…
570 "hidden"}return b};mxGuide.prototype.getDelta=function(a,b,c,d,e){var f=this.graph.view.scale;if(th…
679 …rted=function(){return!this.horizontal&&null!=this.state&&this.state.view.graph.model.isVertex(thi…
741 …imageSize,this.imageSize)};function mxGraphLayout(a){this.graph=a}mxGraphLayout.prototype.graph=nu… method in mxGraphLayout
742 …ype.getGraph=function(){return this.graph};mxGraphLayout.prototype.getConstraint=function(a,b,c,d)…
743graph.model.getEdgeCount(a),0<d))for(var f=0;f<d;f++){var g=this.graph.model.getEdgeAt(a,f),k=this…
744graph.model.getParent(b)==a;if(b==a)return!1;for(;null!=b&&b!=a;)b=this.graph.model.getParent(b);r…
745graph.getModel();return!b.isEdge(a)||!this.graph.isCellVisible(a)||null==b.getTerminal(a,!0)||null…
746 …fset=function(a){var b=new mxPoint;if(null!=a&&a!=this.parent){var c=this.graph.getModel();if(c.is…
747 mxGraphLayout.prototype.setEdgePoints=function(a,b){if(null!=a){var c=this.graph.model,d=c.getGeome…
748graph.getModel(),e=d.getGeometry(a),f=null;if(null!=e){f=new mxRectangle(b,c,e.width,e.height);if(…
750graph.getModel().getGeometry(a);if(this.useBoundingBox){var c=this.graph.getView().getState(a);if(…
751 …};mxGraphLayout.prototype.arrangeGroups=function(a,b,c,d,e,f){return this.graph.updateGroupBounds(…
755graph.getModel(),e=d.getParent(a),f=this.isHorizontal();if(null!=a&&null!=e){var g=0,k=d.getChildC…
756graph.getModel(),c=b.getGeometry(a);null!=this.graph.container&&(null==c&&b.isLayer(a)||a==this.gr…
757graph.getModel(),c=b.getChildCount(a),d=[],e=0;e<c;e++){var f=b.getChildAt(a,e);!this.isVertexIgno…
759graph.getModel(),e=null;null!=b&&(e=c?b.height-this.marginTop-this.marginBottom:b.width-this.margi…
760 …;var l=Math.max(l,c?t.height:t.width),u=0;if(!this.borderCollapse)var x=this.graph.getCellStyle(r),
762 …:k.y+k.height+Math.floor(u/2)}}this.resizeParent&&null!=b&&null!=k&&!this.graph.isCellCollapsed(a)…
763 …function(a,b){var c=this.graph.getCellGeometry(a);null!=c&&b.x==c.x&&b.y==c.y&&b.width==c.width&&b…
764 mxStackLayout.prototype.updateParentGeometry=function(a,b,c){var d=this.isHorizontal(),e=this.graph
766 mxPartitionLayout.prototype.moveCell=function(a,b,c){c=this.graph.getModel();var d=c.getParent(a);i…
767graph.getModel(),d=c.getGeometry(a);null!=this.graph.container&&(null==d&&c.isLayer(a)||a==this.gr…
768 d.height:d.width,n=n-2*this.border;a=this.graph.isSwimlane(a)?this.graph.getStartSize(a):new mxRect…
772 …rn mxGraphLayout.prototype.isVertexIgnored.apply(this,arguments)||0==this.graph.getConnections(a).…
773graph.getModel();if(null==b)if(0<this.graph.getEdges(a,c.getParent(a),this.invert,!this.invert,!1)…
774graph.getCellGeometry(a);null!=f&&(this.parentX=f.x,this.parentY=f.y)}c.beginUpdate();try{if(this.…
775 …EdgeProcessing(this.node)}null!=this.parentX&&null!=this.parentY&&(f=this.graph.getCellGeometry(a)…
779 … d=this.createNode(a),c=this.graph.getModel(),e=null,f=this.graph.getEdges(a,b,this.invert,!this.i…
789 mxCompactTreeLayout.prototype.apply=function(a,b){var c=this.graph.getModel(),d=a.cell,e=c.getGeome…
793 e[k].cell.cell,m=this.getVertexBounds(l),l=this.graph.getEdgesBetween(c,l,!1),n=[],p,q,r=0;r<l.leng…
795 …rn mxGraphLayout.prototype.isVertexIgnored.apply(this,arguments)||0==this.graph.getConnections(a).…
802 …rn mxGraphLayout.prototype.isVertexIgnored.apply(this,arguments)||0==this.graph.getConnections(a).…
803graph.getModel();this.vertexArray=[];for(var c=this.graph.getChildVertices(a),d=0;d<c.length;d++)t…
805graph.getConnections(this.vertexArray[d],a),c=this.graph.getOpposites(r,this.vertexArray[d]);this.…
806 …/2,this.cellLocation[d][1]-=l.height/2,p=this.graph.snap(Math.round(this.cellLocation[d][0])),q=th…
807 0)+1;null!=e&&(d+=e.x,g+=e.y);this.graph.moveCells(this.vertexArray,d,g)}finally{b.endUpdate()}};mx…
813graph.getModel();b.beginUpdate();try{for(var c=0,d=null,e=null,f=[],g=b.getChildCount(a),k=0;k<g;k…
815 ….findParallels(a,b);this.graph.model.beginUpdate();try{for(var d in c){var e=c[d];1<e.length&&this…
816 …(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…
817graph.getView(),c=b.getVisibleTerminal(a,!0),b=b.getVisibleTerminal(a,!1),d="";if(null!=c&&null!=b…
818 mxParallelEdgeLayout.prototype.layout=function(a){var b=a[0],c=this.graph.getView(),d=this.graph.ge…
819 …,c),b-=e,c+=d}};mxParallelEdgeLayout.prototype.route=function(a,b,c){this.graph.isCellMovable(a)&&…
820 …0],arguments)};mxCompositeLayout.prototype.execute=function(a){var b=this.graph.getModel();b.begin…
821 …t;mxEdgeLabelLayout.prototype.execute=function(a){for(var b=this.graph.view,c=this.graph.getModel(…
822 mxEdgeLabelLayout.prototype.placeLabels=function(a,b){var c=this.graph.getModel();c.beginUpdate();t…
823 mxEdgeLabelLayout.prototype.avoid=function(a,b){var c=this.graph.getModel(),d=a.text.boundingBox;if…
836 …ary;this.edgeMapper=new mxDictionary;this.maxRank=0;c=[];null==b&&(b=this.graph.getChildVertices(d…
839 …var g=0;g<f.length;g++){var k=a.getVisibleTerminal(f[g],!1);if(k!=b[e]&&a.graph.model.isVertex(k)&…
847 …ary;this.edgeMapper=new mxDictionary;this.maxRank=0;c=[];null==b&&(b=this.graph.getChildVertices(d…
850 …var k=0;k<g.length;k++){var l=a.getVisibleTerminal(g[k],!1);if(l!=b[f]&&a.graph.model.isVertex(l)&…
900 …itions[a.ids[0]],g=a.isReversed?a.target.cell:a.source.cell,k=this.layout.graph,l=this.orientation…
912graph.model;this.edgesCache=new mxDictionary;this.edgeSourceTermCache=new mxDictionary;this.edgesT…
913 …is.graph.isCellCollapsed(a)&&this.graph.updateGroupBounds([a],this.parentBorder,this.moveParent),n…
914 …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…
915graph.model,b=[],d=this.graph.isCellCollapsed(a),e=c.getChildCount(a),f=0;f<e;f++){var g=c.getChil…
917graph.view.getState(a),e=null!=d?d.getVisibleTerminal(b):this.graph.view.getVisibleTerminal(a,b);n…
920graph.model;c.isVertex(a)&&a!=this.parent&&this.graph.isCellVisible(a)&&(b[mxObjectIdentity.get(a)…
928graph.model;this.edgesCache=new mxDictionary;this.edgeSourceTermCache=new mxDictionary;this.edgesT…
929graph.insertVertex(b[f],null,null,0,0,this.dummyVertexWidth,0),e.push(g)}c.beginUpdate();try{this.…
930graph.getBoundingBoxFromGeometry(a,!0);b=[];for(e=0;e<this.swimlanes.length;e++){var f=this.swimla…
931 …his.swimlanes[e],c=this.graph.getCellGeometry(f),null!=c){var g=this.graph.getChildCells(f),d=this…
932 2;k.height=a.height+d.height+2*this.parentBorder;this.graph.model.setGeometry(f,k);this.graph.moveC…
933 …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…
934graph.model,b=[],d=this.graph.isCellCollapsed(a),e=c.getChildCount(a),f=0;f<e;f++){var g=c.getChil…
935 this.graph.isValidAncestor(d,this.parent,this.traverseAncestors))||d==a&&(null==this.parent||this.g…
936graph.view.getState(a),e=null!=d?d.getVisibleTerminal(b):this.graph.view.getVisibleTerminal(a,b);n…
939graph.model;c.isVertex(a)&&a!=this.parent&&c.getParent(a)!=this.parent&&this.graph.isCellVisible(a…
941 …;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.…
1019graph=a;this.scale=null!=b?b:1/a.pageScale;this.border=null!=d?d:0;this.pageFormat=mxRectangle.fro… method in mxPrintPreview
1022 mxPrintPreview.prototype.appendGraph=function(a,b,c,d,e,f){this.graph=a;this.scale=null!=b?b:1/a.pa…
1023graph.cellRenderer.initializeOverlay,f=null;try{this.printOverlays&&(this.graph.cellRenderer.initi…
1024 … class="mxPage">')}var m=this.graph.getGraphBounds().clone(),n=this.graph.getView().getScale(),p=n…
1029 …(E){null!=f&&null!=f.parentNode&&f.parentNode.removeChild(f)}finally{this.graph.cellRenderer.initi…
1038 …xPrintPreview.prototype.getRoot=function(){var a=this.graph.view.currentRoot;null==a&&(a=this.grap…
1039graph.getView();d=this.graph.container;this.graph.container=e;var k=g.getCanvas(),l=g.getBackgroun…
1040graph.isEnabled();this.graph.setEnabled(!1);var t=g.getTranslate();g.translate=new mxPoint(a,b);va… method
1042 …ayPane.parentNode.removeChild(g.overlayPane);this.graph.setEnabled(r);this.graph.container=d;this.
1043 …q)}};mxPrintPreview.prototype.getLinkForCellState=function(a){return this.graph.getLinkForCell(a.c…
1044 mxPrintPreview.prototype.insertBackgroundImage=function(a,b,c){var d=this.graph.backgroundImage;if(…
1054 …(a){var b=this.getVisibleTerminalState(a);if(null==b)return!1;a=this.view.graph.getConnectionConst…
1059 …ototype.destroy=function(){this.view.graph.cellRenderer.destroy(this)};function mxGraphSelectionMo…
1060 …=mxClient.language?"updatingSelection":"";mxGraphSelectionModel.prototype.graph=null;mxGraphSelect… method in mxGraphSelectionModel
1061 …(a=[this.getFirstSelectableCell(a)]);for(var b=[],c=0;c<a.length;c++)this.graph.isCellSelectable(a…
1062 …tSelectableCell=function(a){if(null!=a)for(var b=0;b<a.length;b++)if(this.graph.isCellSelectable(a…
1063 …bleCell(a)]);for(var c=[],d=0;d<a.length;d++)!this.isSelected(a[d])&&this.graph.isCellSelectable(a…
1068graph=a;this.zoomHandler=mxUtils.bind(this,function(){this.graph.isEditing()&&this.resize()});this…
1069 mxCellEditor.prototype.graph=null;mxCellEditor.prototype.textarea=null;mxCellEditor.prototype.editi… method in mxCellEditor
1071 mxCellEditor.prototype.applyValue=function(a,b){this.graph.labelChanged(a.cell,b,this.trigger)};mxC…
1072 mxCellEditor.prototype.getInitialValue=function(a,b){var c=mxUtils.htmlEntities(this.graph.getEditi…
1074graph.stopEditing(!1);mxEvent.consume(a)}));mxEvent.addListener(a,"blur",mxUtils.bind(this,functio…
1077 …itor.prototype.isStopEditingEvent=function(a){return 113==a.keyCode||this.graph.isEnterStopsCellEd…
1078graph.getView().getState(this.editingCell);if(null==a)this.stopEditing(!0);else if(null!=this.text…
1080 …a.shape.getLabelBounds(b):b;null!=e&&(b.width=parseFloat(e)*c);if(!a.view.graph.cellRenderer.legac…
1082 a.absoluteOffset.y,b.width,b.height)}if(this.graph.isWrapping(a.cell)&&(2<=this.bounds.width||2<=th…
1085 …his.textarea.style.top=Math.max(0,Math.round(this.bounds.y+1))+"px"),this.graph.isWrapping(a.cell)…
1087 …)"))}};mxCellEditor.prototype.focusLost=function(){this.stopEditing(!this.graph.isInvokesStopCellE…
1088 mxCellEditor.prototype.isLegacyEditor=function(){var a=!1;if(mxClient.IS_SVG){var b=this.graph.view…
1089 …t();null!=this.graph.tooltipHandler&&this.graph.tooltipHandler.hideTooltip();var c=this.graph.getV…
1093 …this.clearOnChange=this.textarea.innerHTML==this.getEmptyLabelText();this.graph.container.appendCh…
1094 this.autoSize&&(this.graph.model.isEdge(c.cell)||"fill"!=c.style[mxConstants.STYLE_OVERFLOW])&&wind…
1096 …his.textNode.style.visibility="visible",this.textNode=null);a=a?null:this.graph.view.getState(this…
1097graph.getModel().beginUpdate();try{null!=b&&this.applyValue(a,b),null!=this.align&&this.graph.setC…
1098 …a){return!0};mxCellEditor.prototype.getMinimumSize=function(a){var b=this.graph.getView().scale;re…
1099 …){var b=this.graph.getModel().isEdge(a.cell),c=this.graph.getView().scale,d=this.getMinimumSize(a)…
1102 …ngBox.width),c.height=Math.max(c.height,a.text.boundingBox.height)));this.graph.getModel().isVerte…
1104 …s.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),this.changeHandler=null…
1108 …CellRenderer.prototype.initializeShape=function(a){a.shape.dialect=a.view.graph.dialect;this.confi…
1109 …ateIndicatorShape=function(a){a.shape.indicatorShape=this.getShape(a.view.graph.getIndicatorShape(…
1110 …{var b=this.getShape(a.style[mxConstants.STYLE_SHAPE]);null==b&&(b=a.view.graph.getModel().isEdge(…
1111graph.getImage(a);a.shape.indicatorColor=a.view.graph.getIndicatorColor(a);a.shape.indicatorStroke…
1114 … d=c==mxConstants.STYLE_FONTCOLOR?a.text:a.shape;if(null!=d){var e=a.view.graph,f=d[b],g=null;"inh…
1115 …le[c]))}};mxCellRenderer.prototype.getLabelValue=function(a){return a.view.graph.getLabel(a.cell)};
1116 mxCellRenderer.prototype.createLabel=function(a,b){var c=a.view.graph;c.getModel().isEdge(a.cell);i…
1118 …_TEXT_OPACITY,100);a.text.dialect=d?mxConstants.DIALECT_STRICTHTML:a.view.graph.dialect;a.text.sty…
1120 ….IS_SVG&&mxClient.NO_FO&&b.dialect!=mxConstants.DIALECT_SVG?b.init(a.view.graph.container):b.init(…
1121graph.getCellOverlays(a.cell),c=null;if(null!=b)for(var c=new mxDictionary,d=0;d<b.length;d++){var…
1123 mxCellRenderer.prototype.installCellOverlayListeners=function(a,b,c){var d=a.view.graph;mxEvent.add…
1124 "event",c,"cell",a.cell))})};mxCellRenderer.prototype.createControl=function(a){var b=a.view.graph,…
1125 mxCellRenderer.prototype.createControlClickHandler=function(a){var b=a.view.graph;return mxUtils.bi…
1126 mxCellRenderer.prototype.initControl=function(a,b,c,d){var e=a.view.graph;e.isHtmlLabel(a.cell)&&mx…
1129 mxCellRenderer.prototype.installListeners=function(a){var b=a.view.graph,c=function(c){var d=a;if(b…
1131graph,d=this.getLabelValue(a),e=c.isWrapping(a.cell),f=c.isLabelClipped(a.cell),g=a.view.graph.isH…
1137 mxCellRenderer.prototype.getLabelBounds=function(a){var b=a.view.graph,c=a.view.scale,d=b.getModel(…
1140 …text.spacingBottom*c:0))}e=a.text.getTextRotation();0!=e&&null!=a&&a.view.graph.model.isVertex(a.c…
1142 …d);a.overlays.visit(function(d,k){var g=k.overlay.getBounds(a);if(!a.view.graph.getModel().isEdge(…
1144 mxCellRenderer.prototype.redrawControl=function(a,b){var c=a.view.graph.getFoldingImage(a);if(null!…
1145 ….control){var d=a.view.scale,e=a.getCenterX(),f=a.getCenterY();if(!a.view.graph.getModel().isEdge(…
1146 f),g,k,new mxPoint(a.getCenterX(),a.getCenterY())),e=f.x,f=f.y)}return a.view.graph.getModel().isEd…
1147 …(d[e].node,g.nextSibling);else if(null==g)if(d[e].node.parentNode==a.view.graph.container){for(g=a…
1148 a.view.graph.container;)g=g.parentNode;null!=g&&null!=g.nextSibling?g.nextSibling!=d[e].node&&d[e].…
1150graph.model,e=!1;null!=a.shape&&null!=a.shape.style&&null!=a.style&&a.shape.style[mxConstants.STYL…
1151graph.selectionCellsHandler.updateHandler(a))):b||null==a.shape||mxUtils.equalEntries(a.shape.styl…
1155 var mxEdgeStyle={EntityRelation:function(a,b,c,d,e){var f=a.view,g=f.graph;d=mxUtils.getValue(a.sty…
1158 …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…
1173 …*10)/10)):c=null;return c},OrthConnector:function(a,b,c,d,e){var f=a.view.graph,g=null==l?!1:f.get…
1187 …IMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=n…
1188 …cumentGesture=!0;mxGraphView.prototype.rendering=!0;mxGraphView.prototype.graph=null;mxGraphView.p… method in mxGraphView
1190graph.getModel(),d=0;d<a.length;d++)if(c.isVertex(a[d])||c.isEdge(a[d])){var e=this.getState(a[d])…
1193 …)};mxGraphView.prototype.viewStateChanged=function(){this.revalidate();this.graph.sizeDidChange()};
1194 …);this.validate()};mxGraphView.prototype.clear=function(a,b,c){var d=this.graph.getModel();a=a||d.…
1195 mxGraphView.prototype.invalidate=function(a,b,c){var d=this.graph.getModel();a=a||d.getRoot();b=nul…
1197 …lState(this.validateCell(a||(null!=this.currentRoot?this.currentRoot:this.graph.getModel().getRoot…
1200 …c.add(a.text.boundingBox):c=a.text.boundingBox.clone()),b))for(var d=this.graph.getModel(),e=d.get…
1202graph.getBackgroundImage();if(null!=a){if(null==this.backgroundImage||this.backgroundImage.image!=…
1203graph.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(a))}),mxUtils.bind(this,function(a){this.
1204graph.pageVisible){var a=this.getBackgroundPageBounds();null==this.backgroundPageShape?(this.backg…
1205graph.dblClick(a)})),mxEvent.addGestureListeners(this.backgroundPageShape.node,mxUtils.bind(this,f…
1206 …prototype.getBackgroundPageBounds=function(){var a=this.graph.pageFormat,b=this.scale*this.graph.p…
1208 …,b){if(null!=a)if(b=(null!=b?b:!0)&&this.graph.isCellVisible(a),null==this.getState(a,b)||b)for(va…
1209 …tate(a),null!=c)){var d=this.graph.getModel();if(c.invalid){c.invalid=!1;if(null==c.style||c.inval…
1210 !1);this.updateCellState(c);a==this.currentRoot||c.invalid||(this.graph.cellRenderer.redraw(c,!1,th…
1211graph.getModel(),c=this.getState(b.getParent(a.cell));null!=c&&c.cell!=this.currentRoot&&(a.origin…
1213 …edBounds()};mxGraphView.prototype.isCellCollapsed=function(a){return this.graph.isCellCollapsed(a)…
1214 mxGraphView.prototype.updateVertexState=function(a,b){var c=this.graph.getModel(),d=this.getState(c…
1215 …minalState(!1);null!=this.graph.model.getTerminal(a.cell,!0)&&null==c||null==c&&null==b.getTermina…
1219graph.getModel().isEdge(a.cell)&&this.graph.keepEdgesInForeground||this.graph.getModel().isVertex(…
1220 …teFixedTerminalPoint(a,b,!0,this.graph.getConnectionConstraint(a,b,!0));this.updateFixedTerminalPo…
1221 …ll;null!=d&&(e=this.graph.getConnectionPoint(b,d,!1));if(null==e&&null==b){b=this.scale;d=this.tra…
1225 …pe.isLoopStyleEnabled=function(a,b,c,d){var e=this.graph.getConnectionConstraint(a,c,!0),f=this.gr…
1226 …tyleEnabled(a,b,c,d)?mxUtils.getValue(a.style,mxConstants.STYLE_LOOP,this.graph.defaultLoopStyle):…
1228 …,c,d){b=this.getTerminalPort(a,b,d);var e=this.getNextPoint(a,c,d),f=this.graph.isOrthogonal(a);c=…
1229 …SOURCE_PORT:mxConstants.STYLE_TARGET_PORT);null!=a&&(a=this.getState(this.graph.getModel().getCell…
1230 …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…
1234 …nal=function(a,b){for(var c=this.graph.getModel(),d=c.getTerminal(a,b),e=d;null!=d&&d!=this.curren…
1239 mxGraphView.prototype.getRelativePoint=function(a,b,c){var d=this.graph.getModel().getGeometry(a.ce…
1241 …set.y=a.getCenterY();if(null!=b&&0<b.length&&null!=a.segments){var c=this.graph.getCellGeometry(a.…
1242 …=c||this.updateStyle)&&this.graph.isCellVisible(a)&&(null==c?(c=this.createState(a),this.states.pu…
1244graph.cellRenderer.destroy(b),b.invalid=!0,b.destroy()));return b};mxGraphView.prototype.createSta…
1245 …totype.isContainerEvent=function(a){a=mxEvent.getSource(a);return a==this.graph.container||a.paren…
1246graph.container);a=new mxPoint(a.clientX-b.x,a.clientY-b.y);var b=this.graph.container.offsetWidth…
1247 mxGraphView.prototype.installListeners=function(){var a=this.graph,b=a.container;if(null!=b){mxClie…
1252 mxGraphView.prototype.createHtml=function(){var a=this.graph.container;null!=a&&(this.canvas=this.c…
1253 …ze=function(a,b){if(null!=this.graph.container){var c=this.graph.container.offsetHeight;this.canva…
1255 mxGraphView.prototype.createSvg=function(){var a=this.graph.container;this.canvas=document.createEl…
1258 …ners(document,null,this.moveHandler,this.endHandler),mxEvent.release(this.graph.container),a.paren…
1259 …is.isUp=null==b;if(!this.isUp)for(var c=this.view.currentRoot,d=this.view.graph.getModel();null!=c…
1260 …rrentRoot;this.view.currentRoot=this.previous;this.previous=a;a=this.view.graph.getTranslateForRoo…
1505 mxCellOverlay.prototype.getBounds=function(a){var b=a.view.graph.getModel().isEdge(a.cell),c=a.view…
1530 mxLayoutManager.prototype.constructor=mxLayoutManager;mxLayoutManager.prototype.graph=null;mxLayout… method in mxLayoutManager
1531 …ling=function(a){this.bubbling=a};mxLayoutManager.prototype.getGraph=function(){return this.graph};
1532graph){var b=this.graph.getModel();b.removeListener(this.undoHandler);this.graph.removeListener(th…
1541 mxSwimlaneManager.prototype.graph=null;mxSwimlaneManager.prototype.enabled=!0;mxSwimlaneManager.pro… method in mxSwimlaneManager
1542 …nction(a){this.resizeEnabled=a};mxSwimlaneManager.prototype.getGraph=function(){return this.graph};
1543graph&&(this.graph.removeListener(this.addHandler),this.graph.removeListener(this.resizeHandler));…
1544 …eManager.prototype.isCellHorizontal=function(a){return this.graph.isSwimlane(a)?(a=this.graph.getC…
1546 …height),f=a[c],g=f;null!=g;){var f=g,g=b.getParent(g),k=this.graph.isSwimlane(g)?this.graph.getSta…
1548 …lone(),d?g.height=c:g.width=b,e.setGeometry(a,g))}var k=this.graph.isSwimlane(a)?this.graph.getSta…
1550graph.cellRenderer.doRedrawShape;var g=this;null!=e&&(a.graph.cellRenderer.doRedrawShape=function(…
1552graph.cellRenderer.doRedrawShape=this.oldDoRedrawShape};function mxCellStatePreview(a){this.deltas… method in mxCellStatePreview
1555 mxCellStatePreview.prototype.translateState=function(a,b,c){if(null!=a){var d=this.graph.getModel()…
1556graph.getModel();e.isEdge(a.cell)&&a.view.updateCellState(a);var f=this.graph.getCellGeometry(a.ce…
1557 g)),b,c,d)}};mxCellStatePreview.prototype.addEdges=function(a){for(var b=this.graph.getModel(),c=b.…
1559graph=a;this.graph.addMouseListener(this);this.panHandler=mxUtils.bind(this,function(){this.suspen…
1560graph.getView().getBounds(this.cells);this.pBounds=this.getPreviewBounds(this.cells);null!=this.pB…
1561graph.getModel().addListener(mxEvent.CHANGE,this.refreshHandler);this.graph.addListener(mxEvent.RE…
1562 …nt.addListener(document,"keyup",this.keyHandler)}mxGraphHandler.prototype.graph=null;mxGraphHandle… method in mxGraphHandler
1566graph.model.getParent(a);return b?(b=this.graph.model.isEdge(a)?null:this.graph.getCellGeometry(a)…
1567graph.isToggleEvent(a.getEvent())&&mxEvent.isAltDown(a.getEvent())||null==b||this.graph.isCellSele…
1568graph.isToggleEvent(b.getEvent())||!mxEvent.isAltDown(b.getEvent()))for(;null!=a;){if(this.graph.s…
1569 mxGraphHandler.prototype.selectDelayed=function(a){if(!this.graph.popupMenuHandler.isPopupTrigger(a…
1570graph.view.getState(a);if(null!=c){if(!(b.isSource(c.control)||this.graph.isToggleEvent(b.getEvent…
1572graph.isEnabled()&&null!=b.getState()&&!mxEvent.isMultiTouchEvent(b.getEvent())){var c=this.getIni…
1573 …c,!0)||null==d.getTerminal(c,!1)||this.graph.allowDanglingEdges||this.graph.isCloneEvent(b.getEven…
1574graph.getDefaultParent(),b=this.graph.getModel(),c=mxUtils.bind(this,function(a){return null!=this…
1576 …l!=a&&0<a.length)for(var c=this.graph.getModel(),d=0;d<a.length;d++)if(c.isVertex(a[d])||c.isEdge(…
1577 …Constants.DIALECT_STRICTHTML,a.init(this.graph.container)):(a.dialect=mxConstants.DIALECT_SVG,a.in…
1578graph.container,b,c);this.cells=null!=d?d:this.getCells(this.cell);this.bounds=this.graph.getView(…
1579graph.model.getParent(a),f=2>this.graph.model.getChildCount(e),g=new mxDictionary;a=this.graph.get…
1580graph.view.getState(a),d=0;if(null!=c&&null==b.get(a)){b.put(a,c);d++;for(var c=this.graph.model.g…
1581graph.isConstrainedEvent(a.getEvent()):!0};mxGraphHandler.prototype.snap=function(a){var b=this.sc…
1582graph.container,a.getX(),a.getY());return new mxPoint(a.x-this.first.x-this.graph.panDx,a.y-this.f…
1584 mxGraphHandler.prototype.mouseMove=function(a,b){var c=this.graph;if(b.isConsumed()||!c.isMouseDown…
1585 …bs(d.y)>e){null==this.highlight&&(this.highlight=new mxCellHighlight(this.graph,mxConstants.DROP_T…
1587 …s.useGuidesForEvent(b)?(d=this.guide.move(this.bounds,d,f,e),k=!1):d=this.graph.snapDelta(d,this.b…
1588 …ivePreviewUsed&&!a?null!=this.cells&&(this.setHandlesVisibleForCells(this.graph.selectionCellsHand…
1590 ….allCells&&this.allCells.visit(mxUtils.bind(this,function(d,e){var f=this.graph.view.getState(e.ce…
1591graph.model.isVertex(e.cell))&&((e.x+=a,e.y+=b,this.cloning)?null!=e.text&&(e.text.updateBoundingB…
1592graph.view.scale,e=0;e<c.length;e++){var f=c[e][0];if(this.graph.model.isEdge(f.cell)){var g=this.
1593graph.getConnectionConstraint(f,l,!1)):(l=m[m.length-1],f.setAbsoluteTerminalPoint(new mxPoint(l.x…
1594 mxGraphHandler.prototype.redrawHandles=function(a){for(var b=0;b<a.length;b++){var c=this.graph.sel…
1597graph.view.validate())};mxGraphHandler.prototype.setHandlesVisibleForCells=function(a,b,c){if(c||t…
1598 ….delayedSelection&&null!=this.cell&&this.selectDelayed(b);else{var c=this.graph,d=b.getCell();if(t…
1600 …PreviewUsed&&(this.resetLivePreview(),this.setHandlesVisibleForCells(this.graph.selectionCellsHand…
1601 …nction(a,b,c){if(this.graph.getModel().isVertex(a)&&(a=this.graph.getView().getState(a),null!=a)){…
1602graph.getCloneableCells(a));var g=this.graph.getModel().getParent(this.cell);null==e&&null!=f&&thi…
1603graph.model.getParent(a[l]);null==m||k.get(m)||(k.put(m,!0),g.push(m))}}a=this.graph.moveCells(a,b…
1604graph.view.getState(a);return null!=a&&(this.graph.model.isEdge(a.cell)||this.graph.model.isVertex…
1606graph.removeMouseListener(this);this.graph.removeListener(this.panHandler);null!=this.escapeHandle…
1608graph=a,this.graph.addMouseListener(this),this.forcePanningHandler=mxUtils.bind(this,function(a,c)…
1609graph.view.scale,this.active||null==this.mouseDownEvent||(this.start(this.mouseDownEvent),this.mou…
1610 …Handler.prototype.constructor=mxPanningHandler;mxPanningHandler.prototype.graph=null;mxPanningHand… method in mxPanningHandler
1614 …ngHandler.prototype.start=function(a){this.dx0=-this.graph.container.scrollLeft;this.dy0=-this.gra…
1615graph.snap(this.dx),this.dy=this.graph.snap(this.dy)),this.graph.panGraph(this.dx+this.dx0,this.dy…
1616graph.useScrollbarsForPanning||!mxUtils.hasScrollbars(this.graph.container)){var c=this.graph.getV…
1617 …);this.graph.view.scale!=b&&(this.graph.zoomTo(b),mxEvent.consume(a))};mxPanningHandler.prototype.…
1618graph.getView().setTranslate(a,b)};mxPanningHandler.prototype.destroy=function(){this.graph.remove…
1619graph=a,this.factoryMethod=b,this.graph.addMouseListener(this),this.gestureHandler=mxUtils.bind(th… method in mxPopupMenuHandler
1620 …);mxEvent.addGestureListeners(this.div,mxUtils.bind(this,function(a){this.graph.tooltipHandler.hid…
1622 …)).screenX-this.screenX)>this.graph.tolerance||Math.abs(mxEvent.getMainEvent(b.getEvent()).screenY…
1623graph.isEnabled()&&this.isSelectOnPopup(b)&&null!=d&&!this.graph.isCellSelected(d)?this.graph.setS…
1624graph.tooltipHandler.hide();c(d);a&&b.consume()}this.inTolerance=this.popupTrigger=!1};mxPopupMenu…
1625graph=a,this.validColor=null!=b?b:mxConstants.DEFAULT_VALID_COLOR,this.invalidColor=null!=c?c:mxCo… method in mxCellMarker
1629 mxCellMarker.prototype.markCell=function(a,b){var c=this.graph.getView().getState(a);null!=c&&(this…
1630 …this.invalidColor};mxCellMarker.prototype.getState=function(a){var b=this.graph.getView(),c=this.g…
1631 …xCellMarker.prototype.destroy=function(){this.graph.getView().removeListener(this.resetHandler);th…
1632graph=a;this.handlers=new mxDictionary;this.graph.addMouseListener(this);this.refreshHandler=mxUti…
1633graph.getView().addListener(mxEvent.SCALE_AND_TRANSLATE,this.refreshHandler);this.graph.getView().… method in mxSelectionCellsHandler
1635 mxSelectionCellsHandler.prototype.getHandledSelectionCells=function(){return this.graph.getSelectio…
1636 …tCells(this.getHandledSelectionCells(),!1),c=0;c<b.length;c++){var d=this.graph.view.getState(b[c]…
1637 …)}));for(c=0;c<b.length;c++)d=this.graph.view.getState(b[c]),null!=d&&(e=this.handlers.get(b[c]),n…
1638graph.createHandler(a);null!=b&&(this.handlers.put(a.cell,b),null!=c&&null!=d&&null!=e&&b.start(d,…
1639graph.isEnabled()&&this.isEnabled()){var c=[a,b];this.handlers.visit(function(a,b){b.mouseMove.app…
1640graph.removeMouseListener(this);null!=this.refreshHandler&&(this.graph.getSelectionModel().removeL…
1641graph=a,this.factoryMethod=b,this.init(),this.escapeHandler=mxUtils.bind(this,function(a,b){this.r… method in mxConnectionHandler
1645graph.cellRenderer.createShape(this.edgeState):new mxPolyline([],mxConstants.INVALID_COLOR);a.dial…
1646graph.addMouseListener(this);this.marker=this.createMarker();this.constraintHandler=new mxConstrai…
1647graph.getView().addListener(mxEvent.SCALE,this.changeHandler);this.graph.getView().addListener(mxE…
1649graph);a.hotspotEnabled=!0;a.getCell=mxUtils.bind(this,function(b){var c=mxCellMarker.prototype.ge…
1650graph.hitsSwimlaneContent(c,this.currentPoint.x,this.currentPoint.y)||!this.isConnectableCell(c))c…
1652 …ape};mxConnectionHandler.prototype.isValidSource=function(a,b){return this.graph.isValidSource(a)};
1653graph.getEdgeValidationError(null,a,b):""};mxConnectionHandler.prototype.getConnectImage=function(…
1654 …Constants.DIALECT_STRICTHTML,e.init(this.graph.container)):(e.dialect=mxConstants.DIALECT_SVG,e.in…
1655 …||(this.icon=e,this.graph.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(a,f())))});mxEvent.re…
1657 …nction(a,b){var c=this.graph.getView().scale,d=b.getCenterX(),e=b.getCenterY();if(this.graph.isSwi…
1659 …mouseDown=function(a,b){this.mouseDownCounter++;if(this.isEnabled()&&this.graph.isEnabled()&&!b.is…
1660 …this.edgeState));if(null==this.previous&&null!=this.edgeState){var c=this.graph.getPointForEvent(b…
1661 mxConnectionHandler.prototype.isImmediateConnectSource=function(a){return!this.graph.isCellMovable(…
1662graph.container),c=a.getEvent(),d=mxEvent.getClientX(c),c=mxEvent.getClientY(c),e=document.documen…
1665 …abled(this.currentState.cell))&&this.constraintHandler.reset());else{this.graph.isIgnoreTerminalEv…
1666 …ker.highlight.shape)&&(b=new mxPoint(a.getGraphX(),a.getGraphY())),c=this.graph.getOutlineConstrai…
1667graph.view.scale,null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.curr…
1669 …Handler.prototype.convertWaypoint=function(a){var b=this.graph.getView().getScale(),c=this.graph.g…
1670 …xEvent.isAltDown(a.getEvent())&&null!=this.previous){var c=this.graph.gridSize*this.graph.view.sca…
1671graph.isMouseDown)this.constraintHandler.reset();else{this.isEnabled()||null==this.currentState||(…
1672graph.isEnabled())&&(null!=this.shape||null==this.first||Math.abs(b.getGraphX()-this.first.x)>this…
1673 …nt.clone()):null!=this.previous&&mxEvent.isShiftDown(b.getEvent())&&!this.graph.isIgnoreTerminalEv…
1676 …)-this.first.x),g=Math.abs(b.getGraphY()-this.first.y),f>this.graph.tolerance||g>this.graph.tolera…
1677 …his.cursor&&(this.graph.container.style.cursor=this.cursor);mxEvent.consume(b.getEvent());b.consum…
1678 ….currentState||null!=this.icons||this.graph.isMouseDown||b.consume():this.constraintHandler.reset(…
1680graph.view.updateFixedTerminalPoint(this.edgeState,this.previous,!0,this.sourceConstraint);null!=t…
1681 …is.convertWaypoint(e);c[d]=e}this.graph.view.updatePoints(this.edgeState,c,this.previous,this.curr…
1685graph.container,a.getX(),a.getY()),c=Math.abs(b.x-this.first.x),b=Math.abs(b.y-this.first.y);if(nu…
1688 ….validState.cell&&this.graph.selectCellForEvent(this.marker.source,b.getEvent()),null!=this.error&…
1689 …hape.destroy(),this.shape=null);null!=this.cursor&&null!=this.graph.container&&(this.graph.contain…
1690 …==this.error);null!=this.edgeState&&(this.edgeState.shape=this.shape,this.graph.cellRenderer.postC…
1692graph.allowDanglingEdges){var e=this.graph.getModel(),f=!1,g=null;e.beginUpdate();try{if(null!=a&&…
1693graph.addCell(b,d)}var m=this.graph.getDefaultParent();null!=a&&null!=b&&e.getParent(a)==e.getPare…
1694graph.setConnectionConstraint(g,b,!1,this.constraintHandler.currentConstraint);null!=this.edgeStat…
1695graph.view.scale,r=this.graph.view.translate;p.points=[];for(a=0;a<this.waypoints.length;a++){var …
1696 …,f?b:null)}};mxConnectionHandler.prototype.selectCells=function(a,b){this.graph.setSelectionCell(a…
1697 …f(null==this.factoryMethod)return this.graph.insertEdge(a,b,c,d,e,f);b=this.createEdge(c,d,e,f);re…
1698graph.getCellGeometry(b);null!=c&&c.relative;)b=this.graph.getModel().getParent(b),c=this.graph.ge…
1699graph.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…
1701graph.removeMouseListener(this);null!=this.shape&&(this.shape.destroy(),this.shape=null);null!=thi…
1702 this.graph.getView().removeListener(this.drillHandler),this.drillHandler=null);null!=this.escapeHan…
1703graph=a;this.resetHandler=mxUtils.bind(this,function(a,c){null!=this.currentFocus&&null==this.grap…
1704 …ge(mxClient.imageBasePath+"/point.gif",5,5);mxConstraintHandler.prototype.graph=null;mxConstraintH… method in mxConstraintHandler
1705 …int=null};mxConstraintHandler.prototype.getTolerance=function(a){return this.graph.getTolerance()};
1708graph.getCellAt(b.x,b.y));if(null!=c&&!this.graph.isCellConnectable(c)){var d=this.graph.getModel(…
1709graph.container&&(this.mouseleaveHandler=mxUtils.bind(this,function(){this.reset()}),mxEvent.addLi…
1710 …t(a)||null!=this.currentFocusArea&&null!=this.currentFocus&&null==k&&this.graph.getModel().isVerte…
1711 …tShape();p.dialect=mxConstants.DIALECT_SVG;p.pointerEvents=!1;p.init(this.graph.getView().getOverl…
1712 …urrentFocus?this.currentFocus:k});mxEvent.redirectMouseEvents(p.node,this.graph,q)}this.focusHighl…
1713graph.view.getState(this.currentFocus.cell);this.currentFocus=a;this.currentFocusArea=new mxRectan…
1715 …aints=null!=b&&!this.isStateIgnored(b,c)&&this.graph.isCellConnectable(b.cell)?this.isEnabled()?th…
1716graph.getConnectionPoint(b,this.constraints[c]),e=this.getImageForConstraint(b,this.constraints[c]…
1717 …?this.currentFocus:b});f.redraw();mxEvent.redirectMouseEvents(f.node,this.graph,e);this.currentFoc…
1719graph.model.removeListener(this.resetHandler),this.graph.view.removeListener(this.resetHandler),th…
1720graph=a,this.graph.addMouseListener(this),this.forceRubberbandHandler=mxUtils.bind(this,function(a…
1721 …this.graph.addListener(mxEvent.PAN,this.panHandler),this.gestureHandler=mxUtils.bind(this,function…
1723graph.isEnabled()&&null==b.getState()&&!mxEvent.isMultiTouchEvent(b.getEvent())){var c=mxUtils.get…
1724graph.container;this.dragHandler=mxUtils.bind(this,function(a){this.mouseMove(this.graph,c(a))});t…
1725graph.container),d=mxUtils.getOffset(this.graph.container);c.x-=d.x;c.y-=d.y;var d=b.getX()+c.x,c=…
1726 …xRubberband",mxUtils.setOpacity(this.sharedDiv,this.defaultOpacity));this.graph.container.appendCh…
1727 …ction(a){var b=new mxRectangle(this.x,this.y,this.width,this.height);this.graph.selectRegion(b,a)};
1730 …t=function(){if(null!=this.div){var a=this.currentX-this.graph.panDx,b=this.currentY-this.graph.pa…
1731graph.removeMouseListener(this),this.graph.removeListener(this.forceRubberbandHandler),this.graph.…
1732 …otype.execute=function(a){};mxHandle.prototype.copyStyle=function(a){this.graph.setCellStyles(a,th…
1733graph.view.scale,c=this.graph.view.translate,c=new mxPoint(a.getGraphX()/b-c.x,a.getGraphY()/b-c.y…
1734 …is.state);null!=this.state.shape&&this.state.shape.apply(this.state);this.graph.cellRenderer.redra…
1736graph.container)):(this.shape.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIAL…
1737 …talRotation()),a=this.rotatePoint(this.flipPoint(a),b),b=this.graph.view.scale,c=this.graph.view.t…
1738 …ion(){return null!=this.state.text&&this.state.text.node.parentNode==this.graph.container};mxHandl…
1739 …n a};mxHandle.prototype.snapPoint=function(a,b){b||(a.x=this.graph.snap(a.x),a.y=this.graph.snap(a…
1740 mxHandle.prototype.reset=function(){this.setVisible(!0);this.state.style=this.graph.getCellStyle(th…
1741graph.cellRenderer.redraw(this.state,!0),this.state.view.invalidate(this.state.cell),this.state.in… method in mxVertexHandler
1744 mxVertexHandler.prototype.init=function(){this.graph=this.state.view.graph;this.selectionBounds=thi…
1745graph.getView().getOverlayPane());mxEvent.redirectMouseEvents(this.selectionBorder.node,this.graph
1746 [];if(a||this.graph.isLabelMovable(this.state.cell)&&2<=this.state.width&&2<=this.state.height){var…
1747graph.model.getGeometry(this.state.cell);null==a||a.relative||this.graph.isSwimlane(this.state.cel…
1748 …,mxConstants.HANDLE_FILLCOLOR),this.sizers.push(this.rotationShape));this.graph.isCellLocked(this.…
1749graph.isEnabled()&&this.rotationEnabled&&!this.graph.isCellLocked(this.state.cell)&&this.graph.isC…
1751 …pdateMinBounds=function(){var a=this.graph.getChildCells(this.state.cell);if(0<a.length&&(this.min…
1753 mxVertexHandler.prototype.getSelectionColor=function(){return this.graph.isCellEditable(this.state.…
1754graph.container?(--d.bounds.height,--d.bounds.width,d.dialect=mxConstants.DIALECT_STRICTHTML,d.ini…
1755 mxEvent.redirectMouseEvents(d.node,this.graph,this.state);this.graph.isEnabled()&&d.setCursor(a);th…
1760 …xVertexHandler.prototype.mouseDown=function(a,b){if(!b.isConsumed()&&this.graph.isEnabled()){var c…
1761graph.model.getChildCount(this.state.cell),this.inTolerance=!0,this.childOffsetY=this.childOffsetX…
1762graph.view.getState(b));this.selectionBorder.node.style.display=c==mxEvent.ROTATION_HANDLE?"inline…
1763 (this.preview.dialect=mxConstants.DIALECT_STRICTHTML,this.preview.init(this.graph.container));c==mx…
1764 …M_HANDLE-c].setVisible(!0),c=this.graph.getEdges(this.state.cell),this.edgeHandlers=[],a=0;a<c.len…
1765 …type.createGhostPreview=function(){var a=this.graph.cellRenderer.createShape(this.state);a.init(th…
1766 …))||Math.abs(a.getGraphX()-this.startX)>this.graph.tolerance||Math.abs(a.getGraphY()-this.startY)>…
1768 mxVertexHandler.prototype.mouseMove=function(a,b){b.isConsumed()||null==this.index?this.graph.isMou…
1770 …ertexHandler.prototype.isGhostPreview=function(){return 0<this.state.view.graph.model.getChildCoun…
1771 …his.graph.view.translate,d=this.graph.view.scale;this.graph.isGridEnabledEvent(a.getEvent())&&(b.x…
1772 …tAlpha-=180);this.currentAlpha-=this.startAngle;this.rotationRaster&&this.graph.isGridEnabledEvent…
1774graph.view.translate,f=this.graph.view.scale,g=Math.cos(-c),k=Math.sin(-c),l=d.x-this.startX,m=d.y…
1775graph.getMaximumGraphBounds(),null!=k&&null!=this.parentState&&(k=mxRectangle.fromRectangle(k),k.x…
1779 this.graph.isCellCollapsed(this.state.cell)||0==b&&0==c?this.childOffsetY=this.childOffsetX=0:(this…
1780graph.view.scale,c=this.graph.view.translate;a=this.state.clone();this.state.x=this.bounds.x;this.…
1781 …c.y),this.state.view.updateVertexLabelOffset(this.state));this.state.view.graph.cellRenderer.redra…
1784 …alidate());this.graph.getModel().beginUpdate();try{if(d<=mxEvent.CUSTOM_HANDLE){if(null!=this.cust…
1785 …his.rotateCell(this.state.cell,f)}else this.rotateClick();else{var g=this.graph.isGridEnabledEvent…
1786graph.view.scale,r=this.isRecursiveResize(this.state,b);this.resizeCell(this.state.cell,this.round…
1787graph.getModel();if(d.isVertex(a)||d.isEdge(a)){if(!d.isEdge(a)){var e=(this.graph.getCurrentCellS…
1792graph.model.getGeometry(a);null!=b&&(d==mxEvent.LABEL_HANDLE?(d=-mxUtils.toRadians(this.state.styl…
1793graph.view.scale,0==this.childOffsetX&&0==this.childOffsetY||this.moveChildren(a,Math.round(this.c…
1794graph.gridEnabled:this.graph.gridEnabled;if(this.singleSizer)return d=a.x+a.width+b,g=a.y+a.height…
1795 …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)*…
1805graph.isEditing()||!this.handlesVisible?"hidden":""));null!=this.selectionBorder&&(this.selectionB…
1806 …er.prototype.isParentHighlightVisible=function(){return!this.graph.isCellSelected(this.graph.model…
1807 …hlightVisible(),b=this.graph.model.getParent(this.state.cell),c=this.graph.view.getState(b);null!=…
1808graph.model.isVertex(b)&&null!=c&&null==c.parentHighlight&&(this.parentHighlight=this.createParent…
1809 …view&&(this.preview.bounds=this.bounds,this.preview.node.parentNode==this.graph.container&&(this.p…
1811graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.preview&&(this.previe…
1813graph.cellRenderer.redraw(this.state,!1,a.view.isRendering())}),this.state.view.graph.addListener(… method in mxEdgeHandler
1816graph=this.state.view.graph;this.marker=this.createMarker();this.constraintHandler=new mxConstrain…
1817graph,this.state);this.graph.isCellMovable(this.state.cell)&&this.shape.setCursor(mxConstants.CURS…
1818graph.container))}this.graph.isCellEditable(this.state.cell)&&(this.graph.getSelectionCount()<mxGr…
1822 …eturn a};mxEdgeHandler.prototype.getSelectionColor=function(){return this.graph.isCellEditable(thi…
1823 …ndler.prototype.getCellAt=function(a,b){return this.outlineConnect?null:this.graph.getCellAt(a,b)};
1824graph),b=this;a.getCell=function(a){var c=mxCellMarker.prototype.getCell.apply(this,arguments);c!=…
1825graph.hitsSwimlaneContent(c,b.currentPoint.x,b.currentPoint.y)||!b.isConnectableCell(c)||c==b.stat…
1826 …n a};mxEdgeHandler.prototype.validateConnection=function(a,b){return this.graph.getEdgeValidationE…
1827 …s.isHandleVisible(c)){var d=c==this.abspoints.length-1,e=0==c||d;(e||this.graph.isCellBendable(a))…
1828 …b};mxEdgeHandler.prototype.createVirtualBends=function(){var a=[];if(this.graph.isCellBendable(thi…
1829 …is.state.getVisibleTerminalState(!1),d=this.graph.getCellGeometry(this.state.cell);return(null!=d?…
1832graph.container)):(a.dialect=this.graph.dialect!=mxConstants.DIALECT_SVG?mxConstants.DIALECT_MIXED…
1836graph.isCellEditable(this.state.cell)){var c=this.getHandleForEvent(b);if(null!=this.bends&&null!=…
1837 c);else if(c!=mxEvent.LABEL_HANDLE||this.graph.isLabelMovable(b.getCell()))c<=mxEvent.VIRTUAL_HANDL…
1838 …ate.cell,b=this.graph.model.getTerminal(a,this.isSource),null==b&&this.graph.isTerminalPointMovabl…
1839 …ler.prototype.getSnapToTerminalTolerance=function(){return this.graph.gridSize*this.graph.view.sca…
1841 mxEdgeHandler.prototype.getPointForEvent=function(a){var b=this.graph.getView(),c=b.scale,d=new mxP…
1842 …ePoints[m])}this.graph.isGridEnabledEvent(a.getEvent())&&(a=b.translate,f||(d.x=(this.graph.snap(d…
1844 …currentFocus.cell,"transparent"),a=this.graph.getModel(),a=this.graph.view.getTerminalPort(this.st…
1845 …a&&!this.isCellEnabled(a.cell))&&this.constraintHandler.reset(),a;if(this.graph.isIgnoreTerminalEv…
1846 ….graph.getCellGeometry(this.state.cell),c=null!=c.points?c.points.slice():null,d=new mxPoint(a.x,a…
1847graph.tolerance*this.graph.tolerance;g=this.state.absolutePoints.slice();g[this.index]=a;var k=thi…
1848 …sibleTerminalState(!1);null!=k&&(l=this.graph.getConnectionConstraint(this.state,k,!1),null==l||nu…
1849graph.container),c=a.getEvent(),d=mxEvent.getClientX(c),c=mxEvent.getClientY(c),e=document.documen…
1851graph.getConnectionConstraint(a,f,!0),l=this.graph.getConnectionConstraint(a,g,!1),m=this.constrai…
1852 …ull!=this.marker.highlight&&null!=this.marker.highlight.shape){var n=this.graph.view.scale;null!=t…
1853 this.marker.hasValidState()&&(this.marker.highlight.shape.stroke=this.graph.isCellConnectable(d.get…
1855 null==this.marker.getMarkedState()&&(this.error=this.graph.allowDanglingEdges?null:""));a.view.upda…
1856 …error=null;null!=this.snapPoint&&mxEvent.isShiftDown(b.getEvent())&&!this.graph.isIgnoreTerminalEv…
1858 …vent(b):!1;d?c=this.marker.highlight.state:null!=c&&c!=b.getState()&&this.graph.isCellConnectable(…
1861graph.isIgnoreTerminalEvent(b.getEvent())&&this.graph.isCloneEvent(b.getEvent())&&this.cloneEnable…
1862 d>mxEvent.VIRTUAL_HANDLE){if(null!=this.customHandles){var f=this.graph.getModel();f.beginUpdate();…
1863graph.getModel(),g=f.getParent(c);f.beginUpdate();try{if(e){var k=f.getGeometry(c),e=this.graph.cl…
1864graph.isAllowDanglingEdges()&&(f=this.abspoints[this.isSource?0:this.abspoints.length-1],f.x=this.…
1865graph.getView().invalidate(this.state.cell),this.graph.getView().validate(this.state.cell))}else t…
1868graph.getView().getScale(),d=this.graph.getView().getTranslate();b&&(a.x=this.graph.snap(a.x),a.y=…
1869graph.getModel(),e=d.getGeometry(a.cell);if(null!=e){var f=this.graph.getView().scale,e=e.clone();…
1870 …s.graph.getModel();d.getParent(a);d.beginUpdate();try{var f=this.constraintHandler.currentConstrai…
1871graph.getModel();e.beginUpdate();try{if(d){var f=e.getParent(a),g=e.getTerminal(a,!c);a=this.graph
1872 …b,c){var d=this.graph.getModel();d.beginUpdate();try{if(c){var e=d.getParent(a),f=d.getTerminal(a,…
1873 …on(a,b){var c=mxUtils.convertPoint(this.graph.container,mxEvent.getClientX(b),mxEvent.getClientY(b…
1874graph.getCellGeometry(a.cell);b=new mxPoint(b,c);if(null!=d){var d=d.clone(),e=this.graph.view.tra…
1875 …length-1){var c=this.graph.getCellGeometry(this.state.cell);null!=c&&null!=c.points&&(c=c.clone(),…
1876graph.getModel().getTerminal(b,a),d=mxConstants.HANDLE_FILLCOLOR;null!=c&&!this.graph.isCellDiscon…
1877 …!=this.state){this.abspoints=this.state.absolutePoints.slice();var b=this.graph.getModel().getGeom…
1878 …,b.height);b=this.graph.getLabel(a);this.labelShape.visible=null!=b&&0<b.length&&this.graph.isCell…
1882 …rototype.isCustomHandleVisible=function(a){return!this.graph.isEditing()&&1==this.state.view.graph
1890graph.removeListener(this.escapeHandler),this.escapeHandler=null);null!=this.marker&&(this.marker.…
1893 …ils.bind(this,function(a){!mxEvent.isConsumed(a)&&this.flipEnabled&&(this.graph.flipEdge(this.stat…
1894 …andleShape();this.initBend(b,a);b.setCursor(this.getCursorForBend());this.graph.isCellBendable(thi…
1897 …{var c=this.graph.getView().getScale(),d=this.graph.getView().getTranslate(),e=this.state.origin;b…
1898graph.getModel().getGeometry(this.state.cell),d=this.state.absolutePoints,e=null;1<d.length?(a=d[1…
1901 …ction(){var a=this.state.absolutePoints;if(null!=a){var b=Math.max(1,this.graph.view.scale);if(2==…
1905graph.getView(),l=k.getScale(),m=k.getTranslate(),e=k.getRoutingCenterY(f)/l-m.y,n=this.graph.getC…
1906 g,!1))n=this.graph.getConnectionPoint(g,l),null!=n&&(this.convertPoint(n,!1),k=n.y);k=[new mxPoint(…
1907 mxEdgeSegmentHandler.prototype.connect=function(a,b,c,d,e){var f=this.graph.getModel(),g=f.getGeome…
1909 …s.CURSOR_TERMINAL_HANDLE);a.push(b);var c=this.getCurrentPoints();if(this.graph.isCellBendable(thi…
1911 mxEdgeSegmentHandler.prototype.redrawInnerBends=function(a,b){if(this.graph.isCellBendable(this.sta…
1913graph=a,this.target=b||document.documentElement,this.normalKeys=[],this.shiftKeys=[],this.controlK… method in mxKeyHandler
1916 …Node==this.target||null!=this.graph.cellEditor&&this.graph.cellEditor.isEventSource(a)?!0:mxUtils.…
1917graph.isEnabled()&&!mxEvent.isConsumed(a)&&this.isGraphEvent(a)&&this.isEnabled()};mxKeyHandler.pr…
1918 …=a&&(this.graph=a,this.delay=b||500,this.graph.addMouseListener(this))}mxTooltipHandler.prototype.… method in mxTooltipHandler
1923 …mxUtils.bind(this,function(){if(!this.graph.isEditing()&&!this.graph.popupMenuHandler.isMenuShowin…
1924 this.graph.getTooltip(c,d,e,f);this.show(a,e,f);this.state=c;this.node=d;this.stateSource=g}}),this…
1926graph.removeMouseListener(this),mxEvent.release(this.div),null!=this.div&&null!=this.div.parentNod…
1927 …cker.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.graph.removeMouseListene…
1928graph=a,this.highlightColor=null!=b?b:mxConstants.DEFAULT_VALID_COLOR,this.strokeWidth=null!=c?c:m…
1929graph.getView().addListener(mxEvent.SCALE_AND_TRANSLATE,this.repaintHandler),this.graph.getModel()… method in mxCellHighlight
1931graph.cellRenderer.createShape(this.state);a.svgStrokeTolerance=this.graph.tolerance;a.points=this…
1933 …his.state&&null!=this.shape&&(this.shape.scale=this.state.view.scale,this.graph.model.isEdge(this.…
1935 …y=function(){this.graph.getView().removeListener(this.resetHandler);this.graph.getView().removeLis…
1969graph.getModel().getRoot())};a.encodeCell=function(a,c,d){var b=c.graph.getModel(),f=c.getState(d)…
1970 (n.setAttribute("label",c.graph.getLabel(d)),c.graph.isHtmlLabel(d)&&n.setAttribute("html",!0));if(…
2013 …this.chromeless=null!=b?b:this.chromeless;this.initStencilRegistry();this.graph=k||this.createGrap…
2014 …!0)};this.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.graphChang…
2050 …g),k.postMessage(b,"*"))});mxEvent.addListener(window,"message",g);k=this.graph.openLink(this.getE…
2051 "client=1"),null,!0)}else this.graph.openLink(this.getEditBlankUrl(e)+"#R"+encodeURIComponent(b))};…
2052graph.gridEnabled=this.graph.defaultGridEnabled&&(!this.isChromelessView()||"1"==urlParams.grid);t…
2053graph.pageScale=mxGraph.prototype.pageScale;this.graph.pageFormat=mxGraph.prototype.pageFormat;thi…
2054graph.defaultGridEnabled?"1":"0";this.graph.gridEnabled="0"!=c&&(!this.isChromelessView()||"1"==ur…
2055graph.foldingEnabled="0"!=b.getAttribute("fold");this.isChromelessView()&&this.graph.foldingEnable…
2056graph.defaultPageVisible);this.graph.pageBreaksVisible=this.graph.pageVisible;this.graph.preferPag…
2057graph.model.beginUpdate();try{this.graph.model.clear(),this.graph.view.scale=1,this.readGraphState…
2058 …:b,toString:function(){return this.message}};}else this.resetGraph(),this.graph.model.clear(),this…
2059graph.getModel()):this.graph.encodeCells(mxUtils.sortCells(this.graph.model.getTopmostCells(this.g…
2060graph.gridSize);b.setAttribute("guides",this.graph.graphHandler.guidesEnabled?"1":"0");b.setAttrib…
2061graph.pageFormat.height);null!=this.graph.background&&b.setAttribute("background",this.graph.backg…
2063 Editor.prototype.createUndoManager=function(){var b=this.graph,c=new mxUndoManager;this.undoListene…
2064 …ction(){};Editor.prototype.destroy=function(){null!=this.graph&&(this.graph.destroy(),this.graph=n…
2080 …iew(e,k,g,0,n,u,f);f.open();b&&PrintDialog.printPreview(f)}var e=b.editor.graph,k,g,p=document.cre…
2088 …play=""):(u.removeAttribute("src"),u.style.display="none")}var k=b.editor.graph,g,p,t=document.cre…
2112 …q);null!=d&&(m=mxUtils.button(mxResources.get("help"),function(){b.editor.graph.openLink(d)}),m.cl…
2115 …Image?b.editor.graph.openLink(FilenameDialog.filenameHelpLink):""!=e&&b.showError(null,e,mxResourc…
2119 (function(){mxGraphView.prototype.validateBackgroundPage=function(){var b=this.graph;if(null!=b.con…
2122 mxGraphView.prototype.validateBackgroundStyles=function(){var b=this.graph,d=null==b.background||b.…
2124 …dImage=c)};mxGraphView.prototype.createSvgGrid=function(b){for(var d=this.graph.gridSize*this.scal…
2129 …gth;l++){if(this.graph.isTableCell(d[l])||this.graph.isTableRow(d[l]))return!1;if(this.graph.getMo…
2130graph.defaultPageBorderColor)};mxGraphView.prototype.getBackgroundPageBounds=function(){var b=this…
2131 e=this.graph.pageScale,g=c.width*e,c=c.height*e,e=Math.floor(Math.min(0,d)/g),k=Math.floor(Math.min…
2133graph.model.getParent(b);if(d)c=this.graph.model.isEdge(b)?null:this.graph.getCellGeometry(b),c=!t…
2134graph.isCellSelected(b)&&!this.graph.isToggleEvent(f.getEvent())||this.graph.isTableCell(b)&&this.
2159 …unction(){window.setTimeout(mxUtils.bind(this,function(){null!=this.editor.graph&&this.refresh()}),
2163 EditorUi.prototype.init=function(){var b=this.editor.graph;if(!b.standalone){"0"!=urlParams["shape-…
2164 …{this.updateActionStates()}));var c=b.setDefaultParent,e=this;this.editor.graph.setDefaultParent=f…
2166 EditorUi.prototype.installShapePicker=function(){var b=this.editor.graph,c=this;b.addListener(mxEve…
2168 …=g.getEvent();this.graph.isCloneEvent(f)||mxEvent.isShiftDown(f)?t.apply(this,arguments):this.grap…
2169 …pdate(b.view.getState(d))}),e)}),30)}),mxUtils.bind(this,function(b){this.graph.selectCellsForConn…
2173 …null!=b&&(null==this.hoverIcons||p||this.hoverIcons.reset(),p=this.editor.graph,p.popupMenuHandler…
2174 …,e,k,g,p,t,d){var f=null;if(null!=t&&0<t.length){var l=this,q=this.editor.graph,f=document.createE…
2176 this.sidebar.graph.pasteStyle(m,[d]):l.insertHandler([d],""!=d.value&&"1"!=urlParams.sketch,this.si…
2178 …n(b,c,e,t){return this.editor.graph.createVertex(null,null,t||"",0,0,c||120,e||60,b,!1)});return[n…
2182 EditorUi.prototype.onKeyDown=function(b){var c=this.editor.graph;if(9==b.which&&c.isEnabled()&&!mxE…
2184 EditorUi.prototype.onKeyPress=function(b){var c=this.editor.graph;!this.isImmediateEditingEvent(b)|…
2190 …unction(){var b=this.editor.graph,c=this.actions.get("paste"),e=this.actions.get("pasteHere");c.se…
2193graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){k.apply(this,ar…
2195graph;b.timerAutoScroll=!0;b.getPagePadding=function(){return new mxPoint(Math.max(0,Math.round((b…
2209 …s.setOpacity(this.layersDialog,80));f=mxUtils.getCurrentStyle(this.editor.graph.container);this.la…
2216 …ction(){if(null!=this.graph.container&&mxUtils.hasScrollbars(this.graph.container)){var b=this.gra…
2228 …on(){var b=urlParams.highlight;null!=b&&0<b.length&&(b="#"+b);this.editor.graph.addClickHandler(b)…
2229graph.view.setScale(1);else{var c=urlParams.border,e=60;null!=c&&(e=parseInt(c));this.editor.graph
2231 …rMissingFile")+": "+k.message)}}))}catch(b){}this.editor.graph.view.validate();this.editor.graph.s…
2232 …phView"))};EditorUi.prototype.showPopupMenu=function(b,c,e,k){this.editor.graph.popupMenuHandler.h…
2234graph)};EditorUi.prototype.redo=function(){try{this.editor.graph.isEditing()?document.execCommand(…
2235 …eturn this.editor.graph.isEditing()||this.editor.undoManager.canRedo()};EditorUi.prototype.canUndo…
2236graph,e=c.container.style.overflow;c.scrollbars=b;this.editor.updateGraphComponents();e!=c.contain…
2237 EditorUi.prototype.resetScrollbars=function(){var b=this.editor.graph;if(!this.editor.extendCanvas)…
2240 EditorUi.prototype.setPageVisible=function(b){var c=this.editor.graph,e=mxUtils.hasScrollbars(c.con…
2241 …color=c}ChangeGridColor.prototype.execute=function(){var b=this.ui.editor.graph.view.gridColor;thi…
2243 ChangePageSetup.prototype.execute=function(){var b=this.ui.editor.graph;if(!this.ignoreColor){this.…
2244graph.foldingEnabled&&(this.ui.setFoldingEnabled(this.foldingEnabled),this.foldingEnabled=!this.fo…
2246graph.background=b;this.editor.graph.view.validateBackground();this.fireEvent(new mxEventObject("b…
2247 …sketch;this.editor.graph.pageFormat=b;c||(this.editor.graph.pageVisible?(this.editor.graph.view.va…
2248graph.pageScale=b;this.editor.graph.pageVisible?(this.editor.graph.view.validateBackground(),this.…
2249 …s.editor.graph.cellEditor.startEditing;this.editor.graph.cellEditor.startEditing=function(){g.appl…
2250 this.editor.graph.cellEditor.stopEditing=function(b,d){p.apply(this,arguments);k()};k()};
2251 EditorUi.prototype.updateActionStates=function(){var b=this.editor.graph,c=!1,e=!1,k=!1,g=!1,p=[],t…
2261 ….diagramContainer.style.bottom=this.footerHeight+k+g+"px");b&&this.editor.graph.sizeDidChange()};E…
2273 …owDialog=function(b,c,e,k,g,p,t,d,f,l){this.editor.graph.tooltipHandler.resetTimer();this.editor.g…
2274 …s.editor.graph.container.style.visibility&&window.setTimeout(mxUtils.bind(this,function(){this.edi…
2275graph.cellEditor.textarea.focus():(mxUtils.clearSelection(),this.editor.graph.container.focus())})…
2276 EditorUi.prototype.pickColor=function(b,c){var e=this.editor.graph,k=e.cellEditor.saveSelection(),g…
2283 …ateElement("div");c.innerHTML=(e?'<meta charset="utf-8">':"")+this.editor.graph.sanitizeHtml(b);as…
2289 EditorUi.prototype.save=function(b){if(null!=b){this.editor.graph.isEditing()&&this.editor.graph.st…
2291 EditorUi.prototype.executeLayout=function(b,c,e){var k=this.editor.graph;if(k.isEnabled()){k.getMod…
2292 EditorUi.prototype.showImageDialog=function(b,c,e,k){k=this.editor.graph.cellEditor;var g=k.saveSel…
2294 …nction(b){b=new ChangePageSetup(this,null,b);b.ignoreColor=!0;this.editor.graph.model.execute(b)})…
2295graph.setBackgroundImage(b);this.editor.graph.view.validateBackgroundImage();this.fireEvent(new mx…
2299 …/l);g.moveCells(g.cells,b,d);g.reset()}},400))}}}var e=this,k=this.editor.graph,g=new mxKeyHandler…
2300 …!=b.keyCode)&&(66!=b.keyCode&&73!=b.keyCode||!this.isControlDown(b)||this.graph.cellEditor.isConte…
2331 …alue.apply(this,arguments);b.view.graph.isHtmlLabel(b.cell)&&(d=1!=b.style.html?mxUtils.htmlEntiti…
2333graph.pageVisible){for(var d=[],f=this.graph.pageFormat,c=this.graph.pageScale,e=f.width*c,f=f.hei…
2334graph.background?"#ffffff":mxGraphHandler.prototype.previewColor;return mxGraphHandler.prototype.c…
2335graph.isCellSelected(d[e])?this.graph.model.getParent(d[e]):this.graph.isTableRow(b)&&this.graph.i…
2336 u.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(b,d){d=this.graph.getCo…
2338 …S_CHROMEOS&&mxEvent.isShiftDown(b.getEvent())||mxUtils.hasScrollbars(this.graph.container)&&mxClie…
2342 …this.graphHandler.shouldRemoveCellsFromParent=function(b,d,f){return this.graph.isCellSelected(b)?…
2344 …nction(b,d){this.graph.setSelectionCell(d||b)};this.connectionHandler.constraintHandler.isStateIgn…
2367 …CellRenderer.prototype.initializeLabel.apply(this,arguments);var e=b.view.graph.tolerance,k=!0,t=n…
2368 f&&f!=c.node;){if("a"==f.nodeName.toLowerCase()){b.view.graph.labelLinkClicked(b,f,d);break}f=f.par…
2369 c&&this.graph.isCustomLink(c)&&(mxEvent.isTouchEvent(b)||!mxEvent.isPopupTrigger(b))&&this.graph.cu…
2378graph.useCssTransforms&&(b/=this.graph.currentScale);return b};mxGraphView.prototype.getGraphBound…
2379graph.useCssTransforms&&(this.graph.currentScale=this.scale,this.graph.currentTranslate.x=this.tra…
2382 …tion(){var b=this.graph.useCssTransforms,d=this.scale,f=this.translate;b&&(this.scale=this.graph.c…
2388graph.getCellStyle(b).childLayout};this.layoutManager.getLayout=function(b,c){var e=this.graph.mod…
2389 …itSize",20)));return k}if("treeLayout"==e.childLayout)return k=new mxCompactTreeLayout(this.graph),
2390 …1,k;if("flowLayout"==e.childLayout)return k=new mxHierarchicalLayout(this.graph,mxUtils.getValue(e…
2392 …s.graph);if("organicLayout"==e.childLayout)return new mxFastOrganicLayout(this.graph);if("tableLay…
2444 …raph.zapGremlins(b)};HoverIcons=function(b){mxEventSource.call(this);this.graph=b;this.init()};mxU…
2451graph.selectionModel.addListener(mxEvent.CHANGE,this.resetHandler);this.graph.model.addListener(mx…
2452graph.view.addListener(mxEvent.DOWN,this.repaintHandler);this.graph.view.addListener(mxEvent.UP,th…
2453graph.container&&this.setDisplay("none")}));this.graph.addListener(mxEvent.START_EDITING,mxUtils.b…
2454graph.isMouseDown||mxEvent.isTouchEvent(e)||this.update(this.getState(k.getState()),k.getGraphX(),…
2455graph.container,mxEvent.getClientX(e),mxEvent.getClientY(e));this.isResetEvent(e)?this.reset():thi…
2456 …=this.activeArrow&&mxEvent.isShiftDown(b)||mxEvent.isPopupTrigger(b)&&!this.graph.isCloneEvent(b)};
2457 …ate||this.isResetEvent(b)||(this.mouseDownPoint=mxUtils.convertPoint(this.graph.container,mxEvent.…
2458graph,this.currentState);mxEvent.addListener(k,"mouseenter",mxUtils.bind(this,function(b){mxEvent.…
2459 …reEvent(new mxEventObject("blur","arrow",k,"direction",e,"event",b));this.graph.isMouseDown||this.…
2462graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);null!=this.currentState&&(this.graph.…
2463 …;HoverIcons.prototype.getStateAt=function(b,c,e){return this.graph.view.getState(this.graph.getCel…
2464graph.model.isEdge(g.cell)||this.graph.isCloneEvent(k)||g.getVisibleTerminalState(!0)!=b&&g.getVis…
2465 …();this.graph.selectCellsForConnectVertex(this.graph.connectVertex(b.cell,c,this.graph.defaultEdge…
2466graph.model.isVertex(this.currentState.cell)&&this.graph.isCellConnectable(this.currentState.cell)…
2467graph.selectionCellsHandler.getHandler(this.currentState.cell);this.graph.isTableRow(this.currentS…
2469 …,parseInt(this.arrowRight.style.top));if(this.checkCollisions){var c=this.graph.getCellAt(b.x+b.wi…
2470graph.getCellAt(b.x-this.triangleLeft.width/2,this.currentState.getCenterY()),g=this.graph.getCell…
2471graph.isSwimlane(b)||!(null==d||null==p||d.height<3*p.height&&d.width<3*p.width)?f.style.visibilit…
2473 HoverIcons.prototype.computeBoundingBox=function(){var b=this.graph.model.isEdge(this.currentState.…
2474graph.getModel().contains(b)){if(this.graph.getModel().isVertex(b)&&!this.graph.isCellConnectable(…
2475graph.connectionArrowsEnabled||null!=b&&"0"==mxUtils.getValue(b.style,"allowArrows","1"))this.rese…
2476 this.graph.isMouseDown||this.graph.panningHandler.isActive()||(this.prev=b,this.update(b,c,e))}),th…
2477 ….graph.isEnabled()?(this.removeNodes(),this.setCurrentState(b),this.repaint(),this.graph.connectio…
2478graph.container.appendChild(this.arrowUp),this.graph.container.appendChild(this.arrowDown));this.g…
2489graph.getModel().isVertex(b)||!this.graph.isCellVisible(b)};TableLayout.prototype.getSize=function…
2490graph.model.getChildCells(b,!0),k=this.graph.getActualStartSize(b,!0),g=this.getSize(e,!0),p=c-k.x…
2491graph.getModel(),t=p.getChildCells(b,!0);b=this.graph.getActualStartSize(b,!0);var d=null,f=b.x,l=…
2492 …ternateBounds.width:m.width,n=!1,d.colspan--);p.setVisible(t[q],n);n=this.graph.getCurrentCellStyl…
2494graph.getActualStartSize(b,!0),e=this.graph.getCellGeometry(b),k=this.graph.getCellStyle(b),g="1"=…
2495 …r u=p?null:this.getRowLayout(q[0],l),v=[],y=c.y,x=0;x<q.length;x++)n=this.graph.getCellGeometry(q[…
2497 …=f&&d&&this.graph.model.isEdge(f.cell)&&null!=f.style&&1!=f.style[mxConstants.STYLE_CURVED]&&!f.in…
2498graph.model.isEdge(f.cell)&&null!=f.style&&1!=f.style[mxConstants.STYLE_CURVED]&&this.validEdges.p…
2499 …tribute("stroke-dasharray",8*this.state.view.scale);var d=this.state.view.graph.getFlowAnimationSt…
2500 function(b){g.apply(this,arguments);this.graph.model.isEdge(b.cell)&&1!=b.style[mxConstants.STYLE_C…
2507 …;else{f=this.getTerminalPort(b,f,e);var g=this.getNextPoint(b,c,e),l=this.graph.isOrthogonal(b),k=…
2508 …(null!=d&&null!=b){b=this.graph.getAllConnectionConstraints(d);c=f=null;if(null!=b)for(var g=0;g<b…
2509 …ents);"1"==b.getAttribute("placeholders")&&null!=c.state&&(e=c.state.view.graph.replacePlaceholder…
2521 …rtexIgnored=function(b){return e.apply(this,arguments)||this.graph.isTableRow(b)||this.graph.isTab…
2522 …s.graph.isEdgeIgnored(b)};var g=mxConnectionHandler.prototype.isCreateTarget;mxConnectionHandler.p…
2523graph.createCurrentEdgeStyle();b=this.graph.createEdge(null,null,null,null,null,b);b=new mxCellSta…
2585 …uments);return null==f||b.view.graph.isCustomLink(f)?null:f};k.getLinkTargetForCellState=function(…
2586 b.view.graph,c=null!=A?A.get(b.cell):f.isCellSelected(b.cell),e=f.model.getParent(b.cell);!(g&&null…
2602 …on(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.…
2605 …[b,e,g])})};mxCellEditor.prototype.isContentEditing=function(){var b=this.graph.view.getState(this…
2606 …itor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSe…
2607 …dow.getSelection&&null!=window.getSelection().containsNode){var c=!0;this.graph.processElements(th…
2608 !0)?(b.removeAttribute("align"),b.style.textAlign=null):c=!1});c&&this.graph.cellEditor.setAlign(b)…
2610 …totype.startEditing=function(b,d){b=this.graph.getStartEditingCell(b,d);x.apply(this,arguments);va…
2611graph.setSelectionCell(b);var f=this.graph.getModel().getParent(b),c=this.graph.getCellGeometry(b)…
2614 …ea))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var b=this.graph.view.getState(this…
2615 0<m.length&&"\n"==m.charAt(m.length-1)&&(m=m.substring(0,m.length-1));m=this.graph.sanitizeHtml(d?m…
2618 …mentMode&&(m=mxUtils.replaceTrailingNewlines(m,"<div><br></div>"));m=this.graph.sanitizeHtml(d?m.r…
2620 …ellEditor.prototype.resize=function(b,d){if(null!=this.textarea)if(b=this.graph.getView().getState…
2623 …s);var f=this.graph.getEditingValue(b.cell,d);"1"==mxUtils.getValue(b.style,"nl2Br","1")&&(f=f.rep…
2624 …,"0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var d=this.graph.sanitizeHtml(this.…
2625graph.container.focus()}catch(ca){}};var F=mxCellEditor.prototype.applyValue;mxCellEditor.prototyp…
2626 …l);return d};mxCellEditor.prototype.getMinimumSize=function(b){var d=this.graph.getView().scale;re…
2627 …this.shape||this.livePreviewActive)){null==this.hint&&(this.hint=b(),this.graph.container.appendCh…
2628graph.view.translate,e=this.graph.view.scale;d=this.roundLength((this.bounds.x+this.currentDx)/e-f…
2629graph.getCellStyle(b);if(null==f.childLayout){var c=this.graph.model.getParent(b),e=null!=c?this.g…
2630graph.getActualStartSize(c),e=e.clone();f?e.height=d.height+l.y+l.height+2*g:e.width=d.width+l.x+l…
2631 this.graph.isTableRow(l)&&b(c.getParent(l));b(l)}return e};var K=mxVertexHandler.prototype.createPa…
2632graph.isRecursiveVertexResize(b)&&!mxEvent.isControlDown(d.getEvent())};mxVertexHandler.prototype.…
2633graph.isCellCollapsed(b.cell)&&"1"==mxUtils.getValue(b.style,"recursiveResize","1")&&null==mxUtils…
2634graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.…
2635graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.proto…
2636 …es=function(){var b=Q.apply(this,arguments);if(this.graph.isTable(this.state.cell)){var d=this.gra…
2638graph.view.scale;this.shape.bounds.width=1;this.shape.bounds.y=c.y+(f==k.length-1?0:b.y*this.graph
2640 …his.state.width,this.shape.bounds.y=this.state.y+this.state.height+m*this.graph.view.scale,this.sh…
2642 …dden"};mxVertexHandler.prototype.refreshMoveHandles=function(){var b=this.graph.model;if(null!=thi…
2643 …b){this.graph.popupMenuHandler.hideMenu();this.graph.stopEditing(!1);!this.graph.isToggleEvent(b)&…
2644graph.graphHandler.start(this.state.cell,mxEvent.getClientX(b),mxEvent.getClientY(b),this.graph.ge…
2645 …omHandles[b].destroy();this.customHandles=this.createCustomHandles()}this.graph.isTable(this.state…
2646 f=this.graph.isTable(this.state.cell)||this.graph.cellEditor.getEditingCell()==this.state.cell;if(!…
2647graph.isTable(this.state.cell)&&(d+=7),b.x=this.sizers[0].bounds.width+d,b.y=this.sizers[0].bounds…
2649 …linkHint&&"none"!=this.linkHint.style.display&&null!=this.graph.graphHandler&&null!=this.graph.gra…
2650graph.container.appendChild(this.hint));var e=this.graph.view.translate,g=this.graph.view.scale,l=…
2661graph.getTolerance()};mxPanningHandler.prototype.isPanningTrigger=function(b){var d=b.getEvent();r…
2662graph.getSelectionCount()&&(this.delayedSelection=!1)}}else mxPanningHandler.prototype.isPanningTr…
2663 …ntX&&null!=this.currentY&&(c=this.first.x,e=this.first.y,g=(this.currentX-c)/this.graph.view.scale,
2664graph.view.scale,mxEvent.isAltDown(d.getEvent())||(g=this.graph.snap(g),l=this.graph.snap(l),this.
2665graph.model.setGeometry(k[f],q))}}finally{this.graph.model.endUpdate()}}else g=new mxRectangle(thi…
2666graph.tolerance;if(null!=this.div||Math.abs(e)>l||Math.abs(g)>l)null==this.div&&(this.div=this.cre…
2667 …is.div.style.width=Math.max(0,this.width)+"px",this.div.style.height=this.graph.container.clientHe…
2668 …"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWi…
2670 …absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==b)?this.graph.getConnectionConst…
2671 c,f):null,f=null!=(null!=e?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(f),e):n…
2672 …th){var d=this.graph.getModel(),f=d.getParent(b[0]),c=this.graph.getCellGeometry(b[0]);if(d.isEdge…
2673 …lectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(b){var d=this.graph.getModel(),
2674graph.getCellGeometry(b.cell);return d.isEdge(f)&&null!=c&&c.relative&&2>b.width&&2>b.height&&null…
2675 …state.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);this.state.view.graph.model.isVertex(thi…
2676graph.setCellStyles(mxConstants.STYLE_ROTATION,b,[this.state.cell])):this.state.view.graph.turnSha…
2677 …!=this.rotationShape.node&&(this.rotationShape.node.style.display=1==this.graph.getSelectionCount(…
2678graph.isTable(this.state.cell))this.refreshMoveHandles();else if(1==this.graph.getSelectionCount()…
2679graph.isEnabled()&&this.graph.getSelectionCount()<this.graph.graphHandler.maxCells?"":"none");this…
2680graph.addListener(mxEvent.EDITING_STOPPED,this.editingHandler);d=this.graph.getLinkForCell(this.st…
2681graph.container.appendChild(this.linkHint),mxEvent.addListener(this.linkHint,"mouseenter",mxUtils.…
2682graph.editLink)){var c=document.createElement("img");c.setAttribute("src",Editor.editImage);c.setA…
2683graph.setLinkForCell(this.state.cell,null);mxEvent.consume(b)}))}if(null!=f)for(c=0;c<f.length;c++…
2684graph.connectionHandler.isEnabled()});var b=mxUtils.bind(this,function(){null!=this.linkHint&&(thi…
2685graph.getLinksForState(this.state));b();this.redrawHandles()});this.graph.getSelectionModel().addL…
2686 mxUtils.bind(this,function(){return this.graph.connectionHandler.isEnabled()})};var ma=mxVertexHand…
2687 …cornerHandles.length;b++)this.cornerHandles[b].node.style.display=1==this.graph.getSelectionCount(…
2688 …e&&(this.rotationShape.node.style.display=null!=this.moveHandles||1!=this.graph.getSelectionCount(…
2691graph.getSelectionModel().removeListener(this.changeHandler),this.graph.getModel().removeListener(…
2693 …nkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListener(this.changeHandler),t…
2701 ….prototype.paintTableForeground=function(b,d,f,c,e){var z=this.state.view.graph,g=z.getActualStart…
2760 f,c,g):(l=this.state.view.graph.cellRenderer.getShape(l),null!=l&&l!=G&&(l=new l,l.apply(this.state…
2868 …on(b){return[Za(b,!0,10),Za(b,!1,10)]},flexArrow:function(b){var d=b.view.graph.gridSize/b.view.sc…
2878 …))},!1,null,function(d){if(mxEvent.isControlDown(d.getEvent())&&(d=b.view.graph,d.isTableRow(b.cel…
2899graph.isCellRotatable(this.state.cell)){var d=this.state.style.shape;null==mxCellRenderer.defaultS…
2954 …"")}finally{g.getModel().endUpdate()}}}var e=this.editorUi,k=e.editor,g=k.graph,p=function(){retur…
2956 …tils.bind(this,function(b,d){try{var f=mxUtils.parseXml(b);k.graph.setSelectionCells(k.graph.impor…
3004 …(){var b=g.getSelectionCell();if(null!=b&&g.getModel().isEdge(b)){var d=k.graph.selectionCellsHand…
3024 …e(g,!0));g.setAttribute("id",b[k].getId());b[k].viewState&&this.ui.editor.graph.saveViewState(b[k]…
3030 …ze/Type="+this.getSize()+" ("+t+")\nUser="+d+f+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSy…
3032 …ction(){this.stats.fileReloaded++;var c=this.ui.editor.graph.getViewState(),e=this.ui.editor.graph
3035graph;t.container.style.visibility="hidden";var d=this.changeListenerEnabled;this.changeListenerEn…
3048graph.model.addListener(mxEvent.CHANGE,this.changeListener),this.ui.editor.graph.addListener("grid…
3081 …ull!=this.changeListener&&(this.ui.editor.graph.model.removeListener(this.changeListener),this.ui.…
3091 …illColor:"#A8DADC"},graph:{background:"#F1FAEE"}},{commonStyle:{fontColor:"#393C56",strokeColor:"#…
3092 graph:{background:"#DAD2D8",gridColor:"#ABA4A9"}},{commonStyle:{fontColor:"#FEFAE0",strokeColor:"#D…
3093graph:{background:"#FCE7CD",gridColor:"#CFBDA8"}},{vertexStyle:{strokeColor:"#FFFFFF",fillColor:"#…
3094graph:{background:"#EEEEEE"}},{vertexStyle:{strokeColor:"#EEEEEE",fillColor:"#56517E",fontColor:"#…
3095 edgeStyle:{fontColor:"#FFFFFF"},commonStyle:{strokeColor:"#FFFFFF"},graph:{background:"#182E3E",gri…
3121 …dispName:"Colspan",type:"int",min:1,defVal:1,isVisible:function(b,d){var c=d.editorUi.editor.graph;
3122graph;return"1"==urlParams.test&&1==b.vertices.length&&0==b.edges.length&&c.isTableCell(b.vertices…
3123graph;return 1==b.vertices.length&&0==b.edges.length&&c.isTable(b.vertices[0])}},{name:"resizeLast…
3126 …table",type:"bool",getDefaultValue:function(b,d){return d.editorUi.editor.graph.isCellConnectable(…
3129graph;return null!=c&&(f.isSwimlane(c)||0<f.model.getChildCount(c))},isVisible:function(b,d){retur…
3130graph.isSwimlane(b.vertices[0])&&null==mxUtils.getValue(b.style,"childLayout",null)}},{name:"expan…
3131 …al:!1,isVisible:function(b,d){var c=0<b.vertices.length?d.editorUi.editor.graph.getCellGeometry(b.…
3133graph.isSwimlane(b.vertices[0])||null==c||c==mxConstants.NONE||null!=b.style.pointerEvents}},{name…
3143 …uto"==g&&(g=mxUtils.hex2rgba(null!=this.shape.state?this.shape.state.view.graph.shapeBackgroundCol…
3174graph.currentStyle&&(f=null!=this.graph.themes?this.graph.themes[c]:mxUtils.load(STYLE_PATH+"/"+c+…
3175graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+"/default-old.xml").getDocum…
3176graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupport…
3177graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResou…
3178graph.mathEnabled?"1":"0");f.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.gr…
3179 …etGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.gra…
3180graph.view.y0=null;mxClient.NO_FO=this.graph.mathEnabled&&!this.useForeignObjectForMath?!0:this.or…
3181 …oForeignObject;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.is…
3183 …totype.init;Editor.prototype.init=function(){f.apply(this,arguments);this.graph.addListener(mxEven…
3184 d){null!=this.graph.container&&this.graph.mathEnabled&&!this.graph.blockMathRender&&Editor.MathJaxR…
3195 …=c[g].indexOf(")"),0<f){var l=Editor.trimCssUrl(c[g].substring(0,f));this.graph.isRelativeUrl(l)&&…
3199 this.graph.getCustomFonts();if(0<d.length){var c="",f=0;null==this.cachedGoogleFonts&&(this.cachedG…
3202 …=null!=u?u:this.graph;p=null!=p?p:0;var H=k?null:u.background;H==mxConstants.NONE&&(H=null);null==…
3205 …l!=e&&e(Ba)}});f.onerror=function(b){null!=e&&e(b)};n&&this.graph.addSvgShadow(c);this.graph.mathE…
3209 …ditDataDialog.getDisplayIdForCell=function(b,d){var c=null;null!=b.editor.graph.getModel().getPare…
3211 …ient.IS_SVG&&this.isShadowOptionVisible()){var d=this.editorUi,c=d.editor.graph,f=this.createOptio…
3213 c=d.editor.graph;if(c.isEnabled()){var f=d.getCurrentFile();if(null!=f&&f.isAutosaveOptional()){var…
3237 …&b[f].type==d[e].type){g=!0;break}g||delete d[e]}},e=this.editorUi.editor.graph.view.getState(b);n…
3251 …pendChild(v));t.appendChild(y);return t}var q=this,u=this.editorUi.editor.graph,p=[];b.style.posit…
3256 …mouseleave",function(){b.style.opacity="0.5"})}var c=this.editorUi.editor.graph,f=document.createE…
3269 …",c.style.marginBottom="2px",b.appendChild(c));var f=this.editorUi.editor.graph,f=1==d.cells.lengt…
3276 …tLayout=function(b){var d=this.graph.getCellStyle(b);if(null!=d&&"rack"==d.childLayout){var c=new …
3296 …S_GC&&null!=this.getDrawPane()){var b=this.getDrawPane().parentNode;!this.graph.mathEnabled||mxCli…
3297graph.container.firstChild.nodeName?null==this.webKitForceRepaintNode||this.graph.mathEnabled&&("s…
3336 …is.graph.mathEnabled&&!b.editor.useForeignObjectForMath?!0:b.editor.originalNoForeignObject;var k=…
3341 …og.printPreview(u));null!=g&&(e.stylesheet=g,e.refresh())}}var e=b.editor.graph,g=document.createE…
3349 …="12px";var M=PageSetupDialog.addPageFormatPanel(l,"printdialog",b.editor.graph.pageFormat||mxCons…
3353 …this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.…
3368graph.openLink(b,c,e)};EditorUi.prototype.showSplash=function(b){};EditorUi.prototype.getLocalData…
3369 …anged"))};EditorUi.prototype.isMathEnabled=function(b){return this.editor.graph.mathEnabled};Edito…
3375 …ditor.chromeless||this.editor.editable){var e=c.getFunction,g=this.editor.graph,m=this;c.getFuncti…
3379 null!=d&&(b=d);if(null!=b){d=this.editor.graph;d.model.beginUpdate();try{var c=null!=this.pages?thi…
3380 …setGraphXml(b),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root);if(nul…
3381 EditorUi.prototype.createFileData=function(b,c,e,g,m,k,u,v,p,x,t){c=null!=c?c:this.editor.graph;m=n…
3386 …ils.createXmlDocument()),k=k.encode(new mxGraphModel(f.root));this.editor.graph.saveViewState(f.vi…
3387 …ils.createXmlDocument()),k=k.encode(new mxGraphModel(f.root)),this.editor.graph.saveViewState(f.vi…
3394 …on(b,c,e,g,m,k,u,v,p,x,t){m=null!=m?m:!0;k=null!=k?k:!1;var d=this.editor.graph;if(c||!b&&null!=p&…
3395 …kgroundImage=this.editor.graph.setBackgroundImage;var n=this.pages[0];this.currentPage==n?d.setBac…
3396 …s.createFileData(u,d,p,window.location.href,b,c,e,g,m,v,x);d!=this.editor.graph&&d.container.paren…
3399 …";null!=k&&(k=k.replace(/&/g,"&amp;"));b={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,
3404graph.model.root);if(null!=urlParams["layer-ids"])try{var g=urlParams["layer-ids"].split(" ");b={}…
3406graph.isSelectionEmpty();var d=this.getBaseFilename(!k),f=d+("xml"==b||"pdf"==b&&D?".drawio":"")+"…
3407 …s.editor.graph.pageVisible;null!=n&&(this.editor.graph.pageVisible=n);var e=this.createDownloadReq…
3408 …=this.editor.graph.background;if(u||v==mxConstants.NONE)v=null;var y=this.editor.graph.getSvg(v,nu…
3409 …e.createDownloadRequest=function(b,c,e,g,k,n,u,p,t,x,D){var d=this.editor.graph,f=d.getGraphBounds…
3414 …c.documentElement:null,null!=b&&"updates"==b.nodeName)){var g=this.editor.graph,k=g.getModel();k.b…
3419 …),d.removeListener(this.descriptorChangedListener),d.close());this.editor.graph.model.clear();this…
3420 this.setCurrentFile(null);null!=d&&this.updateDocumentTitle();this.editor.graph.model.clear();this.…
3421 …peningFile;this.setGraphEnabled(!0);this.setMode(b.getMode());this.editor.graph.model.prefix=Edito…
3422 …s.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!=…
3425 …;k.removeAttribute("name");f.root=b[g].root;var p=e.encode(f);this.editor.graph.saveViewState(b[g]…
3435 …hanges")):c();mxEvent.consume(d)}}));if(b.isEditable()){var B=this.editor.graph,F=null,M=mxUtils.b…
3438 ….height,g||"",!0,!1,!1));b={xml:Graph.compress(mxUtils.getXml(this.editor.graph.encodeCells(b))),w…
3444 p=this.editor.graph.getBoundingBoxFromGeometry(q);K(q,new mxRectangle(0,0,p.width,p.height),b)}x=!0…
3453 …f(!d){var c=new ChangePageSetup(this,null,b);c.ignoreColor=!0;this.editor.graph.model.execute(c)}}…
3454 …apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(…
3459 mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+q);this…
3462 …mxResources.get("help"),u=mxUtils.bind(this,function(){return this.editor.graph.openLink(f.helpLin…
3479 …his,function(b){null==this.tagsComponent&&(this.tagsComponent=this.editor.graph.createTagsDialog(m…
3482graph.container);this.tagsDialog.style.zIndex=c.zIndex;document.body.appendChild(this.tagsDialog);…
3483 mxUtils.bind(this,function(){var b=this.editor.graph.getAllTags();d.style.display=0<b.length?"":"no…
3484 ….layersDialog),this.layersDialog=null)}));mxEvent.addListener(this.editor.graph.container,"click",…
3485 …(b){var d=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",…
3487 this.chromelessToolbar.offsetHeight+4+"px";e=mxUtils.getCurrentStyle(this.editor.graph.container);t…
3489 …null,null,null,null,Editor.defaultBorder);mxEvent.addListener(this.editor.graph.container,"click",…
3493graph.isSelectionEmpty();e=null!=e?e:d;var f=c?null:this.editor.graph.background;f==mxConstants.NO…
3494 …leComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(b))});this.editor.graph.mathEnabled&&this.…
3503 …&&p.push("edit="+encodeURIComponent(k)),n&&p.push("layers=1"),this.editor.graph.foldingEnabled&&p.…
3505 …ighlight=k);"auto"!==g&&(d.target=g);x||(d.lightbox=!1);d.nav=this.editor.graph.foldingEnabled;e=p…
3521 …tor.graph.isSelectionEmpty()),p=g?null:this.addCheckbox(d,mxResources.get("includeCopyOfMyDiagram"…
3522 …cument.createElement("div");d.style.whiteSpace="nowrap";var f=this.editor.graph,l="jpeg"==t?220:30…
3530 …b,c,e,g,k){var d=document.createElement("div");d.style.whiteSpace="nowrap";var f=this.editor.graph;
3534 …<img src="'+d+'"'+q+(""!=m?' style="'+m+'"':"")+c+"/>")}var f=this.editor.graph.getGraphBounds(),l…
3536 …itorUi.prototype.createEmbedSvg=function(b,c,e,g,k,n,p){var d=this.editor.graph.getSvg(null,null,n…
3537 d.setAttribute("content",this.getFileData(!0));c&&this.editor.graph.addSvgShadow(d);if(e){var q=" "…
3539 …)),""!=t&&d.setAttribute("style",t),this.editor.addFontCss(d),this.editor.graph.mathEnabled&&this.…
3541 …DiagramNode(d))}e=this.editor.graph;try{this.editor.graph=c,this.editor.setGraphXml(b)}catch(n){}f…
3542 …itorUi.prototype.getEmbeddedPng=function(b,c,e,g,k){try{var d=this.editor.graph,f=null!=d.themes&&…
3543 …kgroundImage=this.editor.graph.setBackgroundImage;var q=this.pages[0];this.currentPage==q?d.setBac…
3544 …ncodeURIComponent(l));b(f.substring(f.lastIndexOf(",")+1));d!=this.editor.graph&&d.container.paren…
3547 …inner.spin(document.body,mxResources.get("exporting"))){var d=this.editor.graph.isSelectionEmpty()…
3549 this.editor.graph;if(null!=b&&0<b.length){f.model.beginUpdate();try{var l=mxUtils.parseXml(b);b={};…
3550 [1]))){var t=q[0].getAttribute("name");null!=t&&""!=t&&this.editor.graph.model.execute(new RenamePa…
3552 …ksForCell=function(b,c){var d=document.createElement("div"),e=this.editor.graph,f=e.getLinkForCell…
3566 …d()};EditorUi.prototype.insertAsPreText=function(b,c,e){var d=this.editor.graph,f=null;d.getModel(…
3567 …is,function(b){4==b.readyState&&200<=b.status&&299>=b.status&&this.editor.graph.setSelectionCells(…
3568 …line()&&(k||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(b))){var d=this.editor.graph;if("data:applicati…
3571 …ata(b))this.convertLucidChart(b,mxUtils.bind(this,function(b){this.editor.graph.setSelectionCells(…
3572 else{d=this.editor.graph;k=null;d.getModel().beginUpdate();try{k=d.insertVertex(d.getDefaultParent(…
4017 …is,function(){this.graph=new Graph(b);this.graph.enableFlowAnimation=!0;this.graph.defaultPageBack…
4018graph.dialect==mxConstants.DIALECT_SVG){var e=this.graph.view.getDrawPane().ownerSVGElement;this.g… method
4019graph.isMoveCellsEvent=function(b){return!0});this.lightboxClickEnabled&&(b.style.cursor="pointer"…
4020 …t);var d=this;this.graph.getImageFromBundles=function(b){return d.getImageUrl(b)};mxClient.IS_SVG&… method
4021 …getAttribute("id")){this.currentPage=g;break}var k=this.graph.getGlobalVariable,d=this;this.graph.… method
4022 …e.getElementsByTagName("diagram"),m=this.xmlNode)}),n=this.graph.setBackgroundImage;this.graph.set… method
4023graph.getGraphBounds;this.graph.getGraphBounds=function(b){var c=p.apply(this,arguments);b=this.ba… method
4024graph.view.scale=this.graphConfig.zoom||1,g=this.setLayersVisible(),this.responsive||(this.graph.b…
4025graph.panningHandler.pinchEnabled=!1);this.graph.setPanning(!1);null!=this.graphConfig.toolbar?thi… class
4026graph.view.scale};null!=g&&this.setLayersVisible(g);this.graph.customLinkClicked=function(b){if(Gr… method
4029 …function(b){var c=Graph.createOffscreenGraph(this.graph.getStylesheet());c.getGlobalVariable=this.
4032 …etLayersVisible=function(b){var c=!0;if(!this.autoOrigin){var e=[],k=this.graph.getModel();k.begin…
4033graph){this.graph.view.translate=new mxPoint;this.graph.view.scale=1;var c=null;this.graph.getMode… class
4034 {translate:this.graph.view.translate.clone(),scale:this.graph.view.scale};c&&this.setLayersVisible(…
4035graph.container,c=this.graph.getGraphBounds(),e=!1;b.style.overflow=1!=this.graphConfig["toolbar-n…
4037graph.view.translate),this.graph.initialViewState.translate=this.graph.view.translate.clone());e=!…
4038graph.fit(null,null,null,null,null,!0),(this.center||0==this.graphConfig.resize&&""!=b.style.heigh…
4039graph.addListener("size",k)):new ResizeSensor(this.graph.container,k));if(this.graphConfig.resize|…
4040graph.border+1)),!this.zoomEnabled&&this.autoFit){var p=g=null,k=mxUtils.bind(this,function(){wind…
4041 …idth+2*this.graph.border>b.offsetWidth||c.height+2*this.graph.border>k)?(d=null,null!=k&&c.height+…
4042graph.view.setTranslate(Math.floor(this.graph.border-c.x/this.graph.view.scale)+d.x,Math.floor(thi…
4043 GraphViewer.prototype.crop=function(){var b=this.graph,c=b.getGraphBounds(),e=b.border,k=b.view.sca…
4047 …etOpacity(g,30);g.appendChild(b);e.appendChild(g);q++;return g}var c=this.graph.container;"bottom"…
4049 …e.style.display="";mxUtils.setOpacity(e,b||30)});mxEvent.addListener(this.graph.container,mxClient…
4050 …xUtils.bind(this,function(b){mxEvent.isTouchEvent(b)||t(30)}));var d=this.graph,f=d.getTolerance()…
4053 …}else if("zoom"==x)this.zoomEnabled&&(b(mxUtils.bind(this,function(){this.graph.zoomOut()}),Editor…
4054graph.zoomIn()}),Editor.zoomInImage,mxResources.get("zoomIn")||"Zoom In"),b(mxUtils.bind(this,func…
4055graph.createLayersDialog(mxUtils.bind(this,function(){if(this.autoCrop)this.crop();else if(this.au…
4056 …Translate(this.graph.originalViewState.translate.x,this.graph.originalViewState.translate.y),this.
4058 function(b){null==n&&(n=this.graph.createTagsDialog(mxUtils.bind(this,function(){return!0})),n.div.…
4060graph.getAllTags().length?"inline-block":"none"}));M.style.display=0<this.graph.getAllTags().lengt…
4061 (this.graph.minimumContainerSize.width=34*q);null!=this.graphConfig.title&&(l=c.ownerDocument.creat…
4073 …createElement("div"),!0);k.editor.editBlankUrl=this.editBlankUrl;k.editor.graph.shadowId="lightbox…
4074 …raphViewer.resizeSensorEnabled=!0;p.apply(this,arguments)};var t=k.editor.graph,d=t.container;d.st…
4077 …rn this.xml});k.lightboxFit();k.chromelessResize();this.showLayers(t,this.graph);mxEvent.addListen…
4078 …nction(b){b=b||"";this.showTitleAsTooltip&&null!=this.graph&&null!=this.graph.container&&this.grap…
4664graph.getLabel(this.state.cell),isNaN(f)||(a.stroke(),f=g*Math.round(100*f)/1E3,10!=g&&0!=f&&a.tex…