|
|
|
@ -35,8 +35,8 @@ w.style+=c(k.Title,z));if(b.edge){b.style=null!=k.Rounding&&"diagonal"!=k.Shape?
|
|
|
|
|
null!=f&&null!=g){w=new mxPoint(Math.round(f.geometry.x+f.geometry.width*k.Endpoint1.LinkX),Math.round(f.geometry.y+f.geometry.height*k.Endpoint1.LinkY));B=new mxPoint(Math.round(g.geometry.x+g.geometry.width*k.Endpoint2.LinkX),Math.round(g.geometry.y+g.geometry.height*k.Endpoint2.LinkY));Tb=w.x==B.x?Math.abs(w.x-f.geometry.x)<f.geometry.width/2?-20:20:0;Ub=w.y==B.y?Math.abs(w.y-f.geometry.y)<f.geometry.height/2?-20:20:0;var S=new mxPoint(w.x+Tb,w.y+Ub),fa=new mxPoint(B.x+Tb,B.y+Ub);S.generated=!0;
|
|
|
|
|
fa.generated=!0;b.geometry.points=[S,fa];w=w.x==B.x}null!=f&&f.geometry.isRotated||(S=Mc(b,k.Endpoint1,!0,w));null!=f&&null!=S&&(null==f.stylePoints&&(f.stylePoints=[]),f.stylePoints.push(S),LucidImporter.stylePointsSet.add(f));null!=g&&g.geometry.isRotated||(fa=Mc(b,k.Endpoint2,!1,w));null!=g&&null!=fa&&(null==g.stylePoints&&(g.stylePoints=[]),g.stylePoints.push(fa),LucidImporter.stylePointsSet.add(g))}}}null!=d.id&&jb(b,"lucidchartObjectId",d.id,h)}function dc(b,d){var h=u(b),m=h.Properties,g=m.BoundingBox;
|
|
|
|
|
null==b.Class||"AWS"!==b.Class.substring(0,3)&&"Amazon"!==b.Class.substring(0,6)||b.Class.includes("AWS19")||(g.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*g.x+Tb),Math.round(.75*g.y+Ub),Math.round(.75*g.w),Math.round(.75*g.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;Lb(v,b,d);v.zOrder=m.ZOrder;null!=v&&0<=v.style.indexOf(";grIcon=")&&(g=new mxCell("",new mxGeometry(v.geometry.x,v.geometry.y,v.geometry.width,v.geometry.height),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;"),
|
|
|
|
|
g.vertex=!0,g.style+=a(g.style,m,h,g),v.geometry.x=0,v.geometry.y=0,v.style+="part=1;",g.insert(v),v=g);re(v,m);return v}function rd(a,b,d,h){var g=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");g.geometry.relative=!0;g.edge=!0;Lb(g,a,b,d,h,!0);b=u(a).Properties;d=null!=b?b.TextAreas:a.TextAreas;if(null!=d){for(h=0;null!=d["t"+h];){var m=d["t"+h],g=kb(m,g,a);h++}for(h=0;null!=d["m"+h]||1>h;)m=d["m"+h],null!=m&&(g=kb(m,g,a)),h++;null!=d.Text&&(g=kb(d.Text,g,a));d=null!=b?b.TextAreas:
|
|
|
|
|
a.TextAreas;null!=d.Message&&(g=kb(d.Message,g,a))}return g}function kb(a,b,d){var m=2*(parseFloat(a.Location)-.5);isNaN(m)&&null!=a.Text&&null!=a.Text.Location&&(m=2*(parseFloat(a.Text.Location)-.5));var g=mxCell,c=e(a),m=new mxGeometry(isNaN(m)?0:m,0,0,0),f=Nc;if(z)a=Aa;else{var y="11",w="";if(null!=a&&null!=a.Value&&null!=a.Value.m){for(var w=k(a.Value.m),p=0;p<a.Value.m.length;p++)if("s"==a.Value.m[p].n)y=.75*parseFloat(a.Value.m[p].v);else if("c"==a.Value.m[p].n){var C=Y(a.Value.m[p].v);null!=
|
|
|
|
|
g.vertex=!0,g.style+=a(g.style,m,h,g),v.geometry.x=0,v.geometry.y=0,v.style+="part=1;",g.insert(v),v=g);re(v,m);return v}function rd(a,b,d,h){var m=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");m.geometry.relative=!0;m.edge=!0;Lb(m,a,b,d,h,!0);b=u(a).Properties;d=null!=b?b.TextAreas:a.TextAreas;if(null!=d){for(h=0;null!=d["t"+h];){var c=d["t"+h],m=kb(c,m,a);h++}for(h=0;null!=d["m"+h]||1>h;)c=d["m"+h],null!=c&&(m=kb(c,m,a)),h++;null!=d.Text&&(m=kb(d.Text,m,a));d=null!=b?b.TextAreas:
|
|
|
|
|
a.TextAreas;null!=d.Message&&(m=kb(d.Message,m,a))}return m}function kb(a,b,d){var m=2*(parseFloat(a.Location)-.5);isNaN(m)&&null!=a.Text&&null!=a.Text.Location&&(m=2*(parseFloat(a.Text.Location)-.5));var g=mxCell,c=e(a),m=new mxGeometry(isNaN(m)?0:m,0,0,0),f=Nc;if(z)a=Aa;else{var y="11",w="";if(null!=a&&null!=a.Value&&null!=a.Value.m){for(var w=k(a.Value.m),p=0;p<a.Value.m.length;p++)if("s"==a.Value.m[p].n)y=.75*parseFloat(a.Value.m[p].v);else if("c"==a.Value.m[p].n){var C=Y(a.Value.m[p].v);null!=
|
|
|
|
|
C&&(C=C.substring(0,7));w+="fontColor="+C+";"}w+=h(d);Aa=""}a=w+";fontSize="+y+";"}g=new g(c,m,f+a);g.geometry.relative=!0;g.vertex=!0;b.insert(g);return b}function $a(a,b,d,h){null!=b&&null!=h&&(b=h(b));return null!=b&&b!=d?a+"="+b+";":""}function Mc(a,b,d,h,m){if(null!=b&&null!=b.LinkX&&null!=b.LinkY&&(b.LinkX=Math.round(1E3*b.LinkX)/1E3,b.LinkY=Math.round(1E3*b.LinkY)/1E3,a.style+=(h?"":(d?"exitX":"entryX")+"="+b.LinkX+";")+(m?"":(d?"exitY":"entryY")+"="+b.LinkY+";")+(d?"exitPerimeter":"entryPerimeter")+
|
|
|
|
|
"=0;",b.Inside))return"["+b.LinkX+","+b.LinkY+",0]"}function sd(a,b,d,h){try{var m=function(a,b){if(null!=a)if(Array.isArray(a))for(var d=0;d<a.length;d++)m(a[d],b);else d=b?.75:1,f=Math.min(f,a.x*d),y=Math.min(y,a.y*d),w=Math.max(w,(a.x+(a.width?a.width:0))*d),k=Math.max(k,(a.y+(a.height?a.height:0))*d)};null!=a.Action&&null!=a.Action.Properties&&(a=a.Action.Properties);var c=new mxCell("",new mxGeometry,"group;dropTarget=0;");c.vertex=!0;c.zOrder=a.ZOrder;var f=Infinity,y=Infinity,w=-Infinity,k=
|
|
|
|
|
-Infinity,p=a.Members,e=[],C;for(C in p){var n=b[C];null!=n?e.push(n):null!=h[C]&&(e.push(h[C]),d[C]=c)}e.sort(function(a,b){var d=a.zOrder,h=b.zOrder;return null!=d&&null!=h?d>h?1:d<h?-1:0:0});for(d=b=0;d<e.length;d++)if(n=e[d],n.vertex)m(n.geometry),n.parent=c,c.insert(n,b++);else{var u=null!=n.Action&&n.Action.Properties?n.Action.Properties:n;m(u.Endpoint1,!0);m(u.Endpoint2,!0);m(u.ElbowPoints,!0);m(u.ElbowControlPoints,!0);m(u.BezierJoints,!0);m(u.Joints,!0)}c.geometry.x=f;c.geometry.y=y;c.geometry.width=
|
|
|
|
@ -1103,31 +1103,32 @@ k.getValue(),h,p),null!=b&&function(a,b){null==a.entries&&(a.entries=[]);for(var
|
|
|
|
|
this.addUnconnectedEdge(a,function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.parentsMap,b.getKey()),b.getValue(),p);d||this.sanitiseGraph(a);return p};e.prototype.postImportPage=function(c,a,b){try{var d=this,h=[],m=c.getShapes().entries||[];for(a=0;a<m.length;a++){var y=m[a].value||{};y.toBeCroppedImg&&h.push(y)}if(0<h.length){var w=function(a,
|
|
|
|
|
b){function m(){a<h.length-1?w(a+1,b):b()}var k=h[a],y=k.toBeCroppedImg,e=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(d.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(c.Id,k.Id)),p=new Image;p.onload=function(){var a=y.iData,b=y.iType;try{var d=p.width/y.imgWidth,h=p.height/y.imgHeight,c=-y.imgOffsetX*d,f=(y.imgHeight-y.height+y.imgOffsetY)*h,
|
|
|
|
|
k=document.createElement("canvas");k.width=y.width*d;k.height=y.height*h;var w=k.getContext("2d");w.fillStyle="#FFFFFF";w.fillRect(0,0,k.width,k.height);w.drawImage(p,c,f,k.width,k.height,0,0,k.width,k.height);a=k.toDataURL("image/jpeg").substr(23);b="jpg"}catch(Z){console.log(Z)}e.style+=";image=data:image/"+b+","+a;m()};p.src="data:image/"+y.iType+";base64,"+y.iData;p.onerror=function(){e.style+=";image=data:image/"+y.iType+","+y.iData;m()}};w(0,b)}else b()}catch(k){console.log(k),b()}};e.prototype.addShape=
|
|
|
|
|
function(c,a,b,d,h){a.parentHeight=h;var m=f.mxgraph.io.vsdx.VsdxShape.getType(a.getShape());if(null!=m&&(function(a,b){return a&&a.equals?a.equals(b):a===b}(m,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(a,b){return a&&a.equals?a.equals(b):a===b}(m,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(a,b){return a&&a.equals?a.equals(b):a===b}(m,f.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))){var y=a.getId();if(a.isVertex())return m=null,m=a.isGroup()?this.addGroup(c,a,b,d,h):this.addVertex(c,
|
|
|
|
|
a,b,d,h),function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,y),a),a=a.getHyperlink(),a.extLink?c.setLinkForCell(m,a.extLink):a.pageLink&&c.setLinkForCell(m,"data:page/id,"+a.pageLink),m;a.setShapeIndex(c.getModel().getChildCount(b));
|
|
|
|
|
(function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.edgeShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,y),a);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||
|
|
|
|
|
a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.parentsMap,new f.mxgraph.io.vsdx.ShapePageId(d,y),b)}return null};e.prototype.addGroup=function(c,a,b,d,h){var m=a.getDimensions(),y=a.getMaster(),w=a.getStyleFromShape(),k=a.getGeomList();k.isNoFill()&&(w[mxConstants.STYLE_FILLCOLOR]="none",w[mxConstants.STYLE_GRADIENTCOLOR]="none");k.isNoLine()&&(w[mxConstants.STYLE_STROKECOLOR]="none");
|
|
|
|
|
w.html="1";w[mxConstants.STYLE_WHITE_SPACE]="wrap";var e=f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(w,"="),w=null,p=a.getChildShapes(),w=null!=p&&0<function(a){null==a.entries&&(a.entries=[]);return a.entries.length}(p),k=a.isDisplacedLabel()||a.isRotatedLabel()||w,w=a.getOriginPoint(h,!0);if(k)w=c.insertVertex(b,null,null,Math.floor(Math.round(100*w.x)/100),Math.floor(Math.round(100*w.y)/100),Math.floor(Math.round(100*m.x)/100),Math.floor(Math.round(100*m.y)/100),e);else var n=a.getTextLabel(),
|
|
|
|
|
w=c.insertVertex(b,null,n,Math.floor(Math.round(100*w.x)/100),Math.floor(Math.round(100*w.y)/100),Math.floor(Math.round(100*m.x)/100),Math.floor(Math.round(100*m.y)/100),e);for(b=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(p));b.hasNext();)e=b.next().getValue(),p=e.getId(),e.isVertex()?(n=f.mxgraph.io.vsdx.VsdxShape.getType(e.getShape()),null!=n&&(function(a,b){return a&&
|
|
|
|
|
a.equals?a.equals(b):a===b}(n,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(a,b){return a&&a.equals?a.equals(b):a===b}(n,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(a,b){return a&&a.equals?a.equals(b):a===b}(n,f.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&e.isVertex()&&(e.propagateRotation(a.getRotation()),e.isGroup()?this.addGroup(c,e,w,d,m.y):this.addVertex(c,e,w,d,m.y)),null==y&&function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&
|
|
|
|
|
a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,p),e)):null==y?(function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},
|
|
|
|
|
getValue:function(){return this.value}})}(this.edgeShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,p),e),function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.parentsMap,new f.mxgraph.io.vsdx.ShapePageId(d,p),w)):this.addUnconnectedEdge(c,w,e,h);k&&a.createLabelSubShape(c,
|
|
|
|
|
w);c=a.getRotation();if(0!==c)for(m=w.getGeometry(),h=m.width/2,m=m.height/2,y=0;y<w.getChildCount();y++)k=w.getChildAt(y),f.mxgraph.online.Utils.rotatedGeometry(k.getGeometry(),c,h,m);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexMap,
|
|
|
|
|
new f.mxgraph.io.vsdx.ShapePageId(d,a.getId()),w);return w};e.rotatedEdgePoint=function(c,a,b,d){a=a*Math.PI/180;var h=Math.cos(a);a=Math.sin(a);var m=c.x-b,f=c.y-d;c.x=Math.round(m*h-f*a+b);c.y=Math.round(f*h+m*a+d)};e.prototype.addVertex=function(c,a,b,d,h){var m="",y=a.isDisplacedLabel()||a.isRotatedLabel();y||(m=a.getTextLabel());var w=a.getDimensions(),k=a.getStyleFromShape();k.html="1";var e=k.hasOwnProperty(mxConstants.STYLE_SHAPE)||k.hasOwnProperty("stencil");k.hasOwnProperty(mxConstants.STYLE_FILLCOLOR)&&
|
|
|
|
|
e||(k[mxConstants.STYLE_FILLCOLOR]="none");e||(k[mxConstants.STYLE_STROKECOLOR]="none");k.hasOwnProperty(mxConstants.STYLE_GRADIENTCOLOR)&&e||(k[mxConstants.STYLE_GRADIENTCOLOR]="none");k[mxConstants.STYLE_WHITE_SPACE]="wrap";h=a.getOriginPoint(h,!0);return e||null!=m?(k=f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(k,"="),e=null,e=y?c.insertVertex(b,null,null,Math.floor(Math.round(100*h.x)/100),Math.floor(Math.round(100*h.y)/100),Math.floor(Math.round(100*w.x)/100),Math.floor(Math.round(100*w.y)/
|
|
|
|
|
100),k):c.insertVertex(b,null,m,Math.floor(Math.round(100*h.x)/100),Math.floor(Math.round(100*h.y)/100),Math.floor(Math.round(100*w.x)/100),Math.floor(Math.round(100*w.y)/100),k),function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(d,
|
|
|
|
|
a.getId()),e),a.setLabelOffset(e,k),y&&a.createLabelSubShape(c,e),e):null};e.calculateAbsolutePoint=function(c){for(var a=0,b=0;null!=c;){var d=c.geometry;null!=d&&(a+=d.x,b+=d.y);c=c.parent}return new mxPoint(a,b)};e.prototype.addConnectedEdge=function(c,a,b,d){var h=a.getFromSheet(),h=new f.mxgraph.io.vsdx.ShapePageId(b,h),m=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;
|
|
|
|
|
return null}(this.edgeShapeMap,h);if(null==m)return null;var y=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.parentsMap,new f.mxgraph.io.vsdx.ShapePageId(b,m.getId()));if(null!=y){var w=c.getModel().getGeometry(y);null!=w&&(d=w.height)}var k=m.getStartXY(d),p=m.getEndXY(d),w=m.getRoutingPoints(d,k,m.getRotation());this.rotateChildEdge(c.getModel(),
|
|
|
|
|
y,k,p,w);var n=null,u=a.getSourceToSheet(),u=null!=u?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(b,u)):null,A=!0;if(null==u)u=c.insertVertex(y,null,null,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),0,0);else if(u.style&&-1==u.style.indexOf(";rotation="))var n=e.calculateAbsolutePoint(u),
|
|
|
|
|
E=e.calculateAbsolutePoint(y),H=u.geometry,n=new mxPoint((E.x+k.x-n.x)/H.width,(E.y+k.y-n.y)/H.height);else A=!1;k=null;a=a.getTargetToSheet();a=null!=a?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(b,a)):null;E=!0;null==a?a=c.insertVertex(y,null,null,Math.floor(Math.round(100*p.x)/100),Math.floor(Math.round(100*
|
|
|
|
|
p.y)/100),0,0):a.style&&-1==a.style.indexOf(";rotation=")?(b=e.calculateAbsolutePoint(a),k=e.calculateAbsolutePoint(y),H=a.geometry,k=new mxPoint((k.x+p.x-b.x)/H.width,(k.y+p.y-b.y)/H.height)):E=!1;p=m.getStyleFromEdgeShape(d);H=m.getRotation();0!==H?(b=c.insertEdge(y,null,null,u,a,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(p,"=")),A=m.createLabelSubShape(c,b),null!=A&&(A.setStyle(A.getStyle()+";rotation="+(60<H&&240>H?(H+180)%360:H)),A=A.getGeometry(),A.x=0,A.y=0,A.relative=!0,A.offset=new mxPoint(-A.width/
|
|
|
|
|
2,-A.height/2))):(b=c.insertEdge(y,null,m.getTextLabel(),u,a,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(p,"=")),H=m.getLblEdgeOffset(c.getView(),w),b.getGeometry().offset=H,null!=n&&c.setConnectionConstraint(b,u,!0,new mxConnectionConstraint(n,!1)),A&&w.shift(),null!=k&&c.setConnectionConstraint(b,a,!1,new mxConnectionConstraint(k,!1)),E&&w.pop());A=c.getModel().getGeometry(b);if(u.parent!=a.parent&&null!=y&&1!=y.id&&1==u.parent.id){a=n=0;do k=y.geometry,null!=k&&(n+=k.x,a+=k.y),y=y.parent;while(null!=
|
|
|
|
|
y);b.parent=u.parent;for(y=0;y<w.length;y++)w[y].x+=n,w[y].y+=a}A.points=w;p.hasOwnProperty("curved")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(p,"curved"),"1")&&(A=c.getModel().getGeometry(b),c=m.getControlPoints(d),A.points=c);return h};e.prototype.addUnconnectedEdge=function(c,a,b,d){if(null!=a){var h=c.getModel().getGeometry(a);null!=h&&(d=h.height)}var m=b.getStartXY(d),y=b.getEndXY(d),w=b.getStyleFromEdgeShape(d),k=b.getRoutingPoints(d,m,b.getRotation()),
|
|
|
|
|
e=b.getRotation();if(0!==e){0===b.getShapeIndex()?h=c.insertEdge(a,null,null,null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(w,"=")):(h=c.createEdge(a,null,null,null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(w,"=")),h=c.addEdge(h,a,null,null,b.getShapeIndex()));var p=b.createLabelSubShape(c,h);null!=p&&(p.setStyle(p.getStyle()+";rotation="+(60<e&&240>e?(e+180)%360:e)),e=p.getGeometry(),e.x=0,e.y=0,e.relative=!0,e.offset=new mxPoint(-e.width/2,-e.height/2))}else 0===b.getShapeIndex()?
|
|
|
|
|
h=c.insertEdge(a,null,b.getTextLabel(),null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(w,"=")):(h=c.createEdge(a,null,b.getTextLabel(),null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(w,"=")),h=c.addEdge(h,a,null,null,b.getShapeIndex())),e=b.getLblEdgeOffset(c.getView(),k),h.getGeometry().offset=e;this.rotateChildEdge(c.getModel(),a,m,y,k);a=c.getModel().getGeometry(h);k.pop();k.shift();a.points=k;a.setTerminalPoint(m,!0);a.setTerminalPoint(y,!1);w.hasOwnProperty("curved")&&function(a,
|
|
|
|
|
b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(w,"curved"),"1")&&(a=c.getModel().getGeometry(h),c=b.getControlPoints(d),a.points=c);return h};e.prototype.rotateChildEdge=function(c,a,b,d,h){if(null!=a){var m=c.getGeometry(a);c=c.getStyle(a);if(null!=m&&null!=c&&(a=c.indexOf("rotation="),-1<a))for(c=parseFloat(c.substring(a+9,c.indexOf(";",a))),a=m.width/2,m=m.height/2,e.rotatedEdgePoint(b,c,a,m),e.rotatedEdgePoint(d,c,a,m),b=0;b<h.length;b++)e.rotatedEdgePoint(h[b],
|
|
|
|
|
c,a,m)}};e.prototype.sanitiseGraph=function(c){var a=c.getModel().getRoot();this.sanitiseCell(c,a)};e.prototype.sanitiseCell=function(c,a){for(var b=c.getModel(),d=b.getChildCount(a),h=[],m=0;m<d;m++){var f=b.getChildAt(a,m);this.sanitiseCell(c,f)&&h.push(f)}for(m=0;m<h.length;m++)b.remove(h[m]);h=a.geometry;null!=h&&(0>h.height&&(h.height=Math.abs(h.height),h.y-=h.height,a.style+=";flipV=1;"),0>h.width&&(h.width=Math.abs(h.width),h.x-=h.width,a.style+=";flipH=1;"));0<d&&(d=b.getChildCount(a));h=
|
|
|
|
|
(new String(b.getValue(a))).toString();m=b.getStyle(a);return 0!==d||!b.isVertex(a)||null!=b.getValue(a)&&0!==h.length||null==m||-1==m.indexOf(mxConstants.STYLE_FILLCOLOR+"=none")||-1==m.indexOf(mxConstants.STYLE_STROKECOLOR+"=none")||-1!=m.indexOf("image=")?!1:!0};return e}();e.mxVsdxCodec=n;n.__class="com.mxgraph.io.mxVsdxCodec"})(n.io||(n.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
function(c,a,b,d,h){a.parentHeight=h;var m=f.mxgraph.io.vsdx.VsdxShape.getType(a.getShape());if(null!=m&&(function(a,b){return a&&a.equals?a.equals(b):a===b}(m,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(a,b){return a&&a.equals?a.equals(b):a===b}(m,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(a,b){return a&&a.equals?a.equals(b):a===b}(m,f.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))){var y=a.getId();if(a.isVertex()){m=null;m=a.isGroup()?this.addGroup(c,a,b,d,h):this.addVertex(c,
|
|
|
|
|
a,b,d,h);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,y),a);b=a.getHyperlink();b.extLink?c.setLinkForCell(m,b.extLink):b.pageLink&&c.setLinkForCell(m,"data:page/id,"+b.pageLink);a=a.getProperties();
|
|
|
|
|
for(b=0;b<a.length;b++)c.setAttributeForCell(m,a[b].key,a[b].val);return m}a.setShapeIndex(c.getModel().getChildCount(b));(function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.edgeShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,y),a);(function(a,b,d){null==
|
|
|
|
|
a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.parentsMap,new f.mxgraph.io.vsdx.ShapePageId(d,y),b)}return null};e.prototype.addGroup=function(c,a,b,d,h){var m=a.getDimensions(),y=a.getMaster(),w=a.getStyleFromShape(),k=a.getGeomList();k.isNoFill()&&(w[mxConstants.STYLE_FILLCOLOR]=
|
|
|
|
|
"none",w[mxConstants.STYLE_GRADIENTCOLOR]="none");k.isNoLine()&&(w[mxConstants.STYLE_STROKECOLOR]="none");w.html="1";w[mxConstants.STYLE_WHITE_SPACE]="wrap";var e=f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(w,"="),w=null,p=a.getChildShapes(),w=null!=p&&0<function(a){null==a.entries&&(a.entries=[]);return a.entries.length}(p),k=a.isDisplacedLabel()||a.isRotatedLabel()||w,w=a.getOriginPoint(h,!0);if(k)w=c.insertVertex(b,null,null,Math.floor(Math.round(100*w.x)/100),Math.floor(Math.round(100*w.y)/100),
|
|
|
|
|
Math.floor(Math.round(100*m.x)/100),Math.floor(Math.round(100*m.y)/100),e);else var n=a.getTextLabel(),w=c.insertVertex(b,null,n,Math.floor(Math.round(100*w.x)/100),Math.floor(Math.round(100*w.y)/100),Math.floor(Math.round(100*m.x)/100),Math.floor(Math.round(100*m.y)/100),e);for(b=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(p));b.hasNext();)e=b.next().getValue(),p=e.getId(),
|
|
|
|
|
e.isVertex()?(n=f.mxgraph.io.vsdx.VsdxShape.getType(e.getShape()),null!=n&&(function(a,b){return a&&a.equals?a.equals(b):a===b}(n,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(a,b){return a&&a.equals?a.equals(b):a===b}(n,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(a,b){return a&&a.equals?a.equals(b):a===b}(n,f.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&e.isVertex()&&(e.propagateRotation(a.getRotation()),e.isGroup()?this.addGroup(c,e,w,d,m.y):this.addVertex(c,e,w,d,m.y)),null==
|
|
|
|
|
y&&function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,p),e)):null==y?(function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||
|
|
|
|
|
a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.edgeShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,p),e),function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.parentsMap,
|
|
|
|
|
new f.mxgraph.io.vsdx.ShapePageId(d,p),w)):this.addUnconnectedEdge(c,w,e,h);k&&a.createLabelSubShape(c,w);c=a.getRotation();if(0!==c)for(m=w.getGeometry(),h=m.width/2,m=m.height/2,y=0;y<w.getChildCount();y++)k=w.getChildAt(y),f.mxgraph.online.Utils.rotatedGeometry(k.getGeometry(),c,h,m);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,
|
|
|
|
|
value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(d,a.getId()),w);return w};e.rotatedEdgePoint=function(c,a,b,d){a=a*Math.PI/180;var h=Math.cos(a);a=Math.sin(a);var m=c.x-b,f=c.y-d;c.x=Math.round(m*h-f*a+b);c.y=Math.round(f*h+m*a+d)};e.prototype.addVertex=function(c,a,b,d,h){var m="",y=a.isDisplacedLabel()||a.isRotatedLabel();y||(m=a.getTextLabel());var w=a.getDimensions(),k=a.getStyleFromShape();k.html="1";var e=
|
|
|
|
|
k.hasOwnProperty(mxConstants.STYLE_SHAPE)||k.hasOwnProperty("stencil");k.hasOwnProperty(mxConstants.STYLE_FILLCOLOR)&&e||(k[mxConstants.STYLE_FILLCOLOR]="none");e||(k[mxConstants.STYLE_STROKECOLOR]="none");k.hasOwnProperty(mxConstants.STYLE_GRADIENTCOLOR)&&e||(k[mxConstants.STYLE_GRADIENTCOLOR]="none");k[mxConstants.STYLE_WHITE_SPACE]="wrap";h=a.getOriginPoint(h,!0);return e||null!=m?(k=f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(k,"="),e=null,e=y?c.insertVertex(b,null,null,Math.floor(Math.round(100*
|
|
|
|
|
h.x)/100),Math.floor(Math.round(100*h.y)/100),Math.floor(Math.round(100*w.x)/100),Math.floor(Math.round(100*w.y)/100),k):c.insertVertex(b,null,m,Math.floor(Math.round(100*h.x)/100),Math.floor(Math.round(100*h.y)/100),Math.floor(Math.round(100*w.x)/100),Math.floor(Math.round(100*w.y)/100),k),function(a,b,d){null==a.entries&&(a.entries=[]);for(var h=0;h<a.entries.length;h++)if(null!=a.entries[h].key.equals&&a.entries[h].key.equals(b)||a.entries[h].key===b){a.entries[h].value=d;return}a.entries.push({key:b,
|
|
|
|
|
value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(d,a.getId()),e),a.setLabelOffset(e,k),y&&a.createLabelSubShape(c,e),e):null};e.calculateAbsolutePoint=function(c){for(var a=0,b=0;null!=c;){var d=c.geometry;null!=d&&(a+=d.x,b+=d.y);c=c.parent}return new mxPoint(a,b)};e.prototype.addConnectedEdge=function(c,a,b,d){var h=a.getFromSheet(),h=new f.mxgraph.io.vsdx.ShapePageId(b,h),m=function(a,b){null==a.entries&&(a.entries=
|
|
|
|
|
[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.edgeShapeMap,h);if(null==m)return null;var y=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.parentsMap,new f.mxgraph.io.vsdx.ShapePageId(b,m.getId()));if(null!=y){var w=c.getModel().getGeometry(y);
|
|
|
|
|
null!=w&&(d=w.height)}var k=m.getStartXY(d),p=m.getEndXY(d),w=m.getRoutingPoints(d,k,m.getRotation());this.rotateChildEdge(c.getModel(),y,k,p,w);var n=null,u=a.getSourceToSheet(),u=null!=u?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(b,u)):null,A=!0;if(null==u)u=c.insertVertex(y,null,null,Math.floor(Math.round(100*
|
|
|
|
|
k.x)/100),Math.floor(Math.round(100*k.y)/100),0,0);else if(u.style&&-1==u.style.indexOf(";rotation="))var n=e.calculateAbsolutePoint(u),E=e.calculateAbsolutePoint(y),H=u.geometry,n=new mxPoint((E.x+k.x-n.x)/H.width,(E.y+k.y-n.y)/H.height);else A=!1;k=null;a=a.getTargetToSheet();a=null!=a?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,
|
|
|
|
|
new f.mxgraph.io.vsdx.ShapePageId(b,a)):null;E=!0;null==a?a=c.insertVertex(y,null,null,Math.floor(Math.round(100*p.x)/100),Math.floor(Math.round(100*p.y)/100),0,0):a.style&&-1==a.style.indexOf(";rotation=")?(b=e.calculateAbsolutePoint(a),k=e.calculateAbsolutePoint(y),H=a.geometry,k=new mxPoint((k.x+p.x-b.x)/H.width,(k.y+p.y-b.y)/H.height)):E=!1;p=m.getStyleFromEdgeShape(d);H=m.getRotation();0!==H?(b=c.insertEdge(y,null,null,u,a,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(p,"=")),A=m.createLabelSubShape(c,
|
|
|
|
|
b),null!=A&&(A.setStyle(A.getStyle()+";rotation="+(60<H&&240>H?(H+180)%360:H)),A=A.getGeometry(),A.x=0,A.y=0,A.relative=!0,A.offset=new mxPoint(-A.width/2,-A.height/2))):(b=c.insertEdge(y,null,m.getTextLabel(),u,a,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(p,"=")),H=m.getLblEdgeOffset(c.getView(),w),b.getGeometry().offset=H,null!=n&&c.setConnectionConstraint(b,u,!0,new mxConnectionConstraint(n,!1)),A&&w.shift(),null!=k&&c.setConnectionConstraint(b,a,!1,new mxConnectionConstraint(k,!1)),E&&w.pop());
|
|
|
|
|
A=c.getModel().getGeometry(b);if(u.parent!=a.parent&&null!=y&&1!=y.id&&1==u.parent.id){a=n=0;do k=y.geometry,null!=k&&(n+=k.x,a+=k.y),y=y.parent;while(null!=y);b.parent=u.parent;for(y=0;y<w.length;y++)w[y].x+=n,w[y].y+=a}A.points=w;p.hasOwnProperty("curved")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(p,"curved"),"1")&&(A=c.getModel().getGeometry(b),c=m.getControlPoints(d),A.points=c);return h};e.prototype.addUnconnectedEdge=function(c,a,b,d){if(null!=
|
|
|
|
|
a){var h=c.getModel().getGeometry(a);null!=h&&(d=h.height)}var m=b.getStartXY(d),y=b.getEndXY(d),w=b.getStyleFromEdgeShape(d),k=b.getRoutingPoints(d,m,b.getRotation()),e=b.getRotation();if(0!==e){0===b.getShapeIndex()?h=c.insertEdge(a,null,null,null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(w,"=")):(h=c.createEdge(a,null,null,null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(w,"=")),h=c.addEdge(h,a,null,null,b.getShapeIndex()));var p=b.createLabelSubShape(c,h);null!=p&&(p.setStyle(p.getStyle()+
|
|
|
|
|
";rotation="+(60<e&&240>e?(e+180)%360:e)),e=p.getGeometry(),e.x=0,e.y=0,e.relative=!0,e.offset=new mxPoint(-e.width/2,-e.height/2))}else 0===b.getShapeIndex()?h=c.insertEdge(a,null,b.getTextLabel(),null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(w,"=")):(h=c.createEdge(a,null,b.getTextLabel(),null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(w,"=")),h=c.addEdge(h,a,null,null,b.getShapeIndex())),e=b.getLblEdgeOffset(c.getView(),k),h.getGeometry().offset=e;this.rotateChildEdge(c.getModel(),
|
|
|
|
|
a,m,y,k);a=c.getModel().getGeometry(h);k.pop();k.shift();a.points=k;a.setTerminalPoint(m,!0);a.setTerminalPoint(y,!1);w.hasOwnProperty("curved")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(w,"curved"),"1")&&(a=c.getModel().getGeometry(h),c=b.getControlPoints(d),a.points=c);return h};e.prototype.rotateChildEdge=function(c,a,b,d,h){if(null!=a){var m=c.getGeometry(a);c=c.getStyle(a);if(null!=m&&null!=c&&(a=c.indexOf("rotation="),-1<a))for(c=parseFloat(c.substring(a+
|
|
|
|
|
9,c.indexOf(";",a))),a=m.width/2,m=m.height/2,e.rotatedEdgePoint(b,c,a,m),e.rotatedEdgePoint(d,c,a,m),b=0;b<h.length;b++)e.rotatedEdgePoint(h[b],c,a,m)}};e.prototype.sanitiseGraph=function(c){var a=c.getModel().getRoot();this.sanitiseCell(c,a)};e.prototype.sanitiseCell=function(c,a){for(var b=c.getModel(),d=b.getChildCount(a),h=[],m=0;m<d;m++){var f=b.getChildAt(a,m);this.sanitiseCell(c,f)&&h.push(f)}for(m=0;m<h.length;m++)b.remove(h[m]);h=a.geometry;null!=h&&(0>h.height&&(h.height=Math.abs(h.height),
|
|
|
|
|
h.y-=h.height,a.style+=";flipV=1;"),0>h.width&&(h.width=Math.abs(h.width),h.x-=h.width,a.style+=";flipH=1;"));0<d&&(d=b.getChildCount(a));h=(new String(b.getValue(a))).toString();m=b.getStyle(a);return 0!==d||!b.isVertex(a)||null!=b.getValue(a)&&0!==h.length||null==m||-1==m.indexOf(mxConstants.STYLE_FILLCOLOR+"=none")||-1==m.indexOf(mxConstants.STYLE_STROKECOLOR+"=none")||-1!=m.indexOf("image=")?!1:!0};return e}();e.mxVsdxCodec=n;n.__class="com.mxgraph.io.mxVsdxCodec"})(n.io||(n.io={}))})(f.mxgraph||
|
|
|
|
|
(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(n){(function(e){var n=function(e){function c(a){var b=e.call(this)||this;b.RESPONSE_END="";b.RESPONSE_DIAGRAM_START="";b.RESPONSE_DIAGRAM_END="";b.RESPONSE_HEADER="";b.editorUi=a;return b}__extends(c,e);c.prototype.decodeVssx=function(a,b,d,h){var m=this,c="<mxlibrary>[";this.decodeVsdx(a,function(a){c=c.concat(a);var d=m.vsdxModel.getMasterShapes(),y=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){var b=
|
|
|
|
|
[];null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)b.push(a.entries[d].value);return b}(m.vsdxModel.getPages())).next();if(null!=d){var w={str:"",toString:function(){return this.str}},p=0===a.length?"":",",n=function(a){return Object.keys(a).map(function(b){return a[b]})}(d);a=function(a){a=n[a];var b=u.createMxGraph(),h=1;if(null!=a.pageSheet){var m=h=1,c=a.pageSheet.DrawingScale;null!=c&&(h=parseFloat(c.getAttribute("V"))||1);c=a.pageSheet.PageScale;null!=c&&(m=parseFloat(c.getAttribute("V"))||
|
|
|
|
|
1);h=m/h}m=!1;for(c=0;null!=a.firstLevelShapes&&c<a.firstLevelShapes.length;c++){var k=a.firstLevelShapes[c].getShape(),C=new f.mxgraph.io.vsdx.VsdxShape(y,k,!y.isEdge(k),d,null,u.vsdxModel),k=null;if(C.isVertex()){u.edgeShapeMap.entries=[];u.parentsMap.entries=[];for(var k=u.addShape(b,C,b.getDefaultParent(),0,1169),C=function(a){null==a.entries&&(a.entries=[]);return a.entries}(u.edgeShapeMap),D=0;D<C.length;D++){var B=C[D],A=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=
|
|
|
|
@ -1261,7 +1262,7 @@ a||1!=a.nodeType)&&null!==a||"string"!==typeof b&&null!==b||void 0!==d)throw Err
|
|
|
|
|
a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){return Object.keys(a).map(function(b){return a[b]})}(a)),m=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(Object.keys(a));m.hasNext();){var c=m.next(),f=h.next();if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(c,mxConstants.STYLE_SHAPE)||!function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(a[c]?a[c]:null,"image")&&!function(a,b,d){void 0===
|
|
|
|
|
d&&(d=0);return a.substr(d,b.length)===b}(a[c]?a[c]:null,"rounded="))try{d=d+c+b}catch(k){console.error("mxVsdxUtils.getStyleString,"+k+",style.length="+d.length+",key.length="+c.length+",asig.length="+b.length)}d=d+f+";"}return d};c.surroundByTags=function(a,b){return"<"+b+">"+a+"</"+b+">"};c.htmlEntities=function(a){return a.replace(RegExp("&","g"),"&").replace(RegExp('"',"g"),""").replace(RegExp("'","g"),"′").replace(RegExp("<","g"),"<").replace(RegExp(">","g"),">")};c.toInitialCapital=
|
|
|
|
|
function(a){a=a.split(" ");for(var b="",d=0;d<a.length;d++)var h=a[d],m=h.substring(0,1),h=h.substring(1),m=m.toUpperCase(),b=b+(m+h);return b.substring(0,b.length)};c.toSmallCaps=function(a,b){var d="",h=d;if(b&&b.equals?b.equals(h):b===h)d=a;else for(var h=a.split(""),m=0;m<h.length;m++){var c=h[m];(null==c.charCodeAt?c:c.charCodeAt(0))>=(null=="a".charCodeAt?"a":97)&&(null==c.charCodeAt?c:c.charCodeAt(0))<=(null=="z".charCodeAt?"z":122)?(c=(new String(c)).toString(),c=c.toUpperCase(),d+='<font style="font-size:'+
|
|
|
|
|
parseFloat(b)/1.28+'px">'+c+"</font>"):d+=c}return d};c.getStyleMap=function(a,b){for(var d={},h=a.split(";"),c=0;c<h.length;c++){var f=h[c],e=f.indexOf(b),k=f.substring(0,e),f=f.substring(e+1);d[k]=f}return d};c.isInsideTriangle=function(a,b,d,h,c,f,e,k){var m=(a-c)*(h-f)-(d-c)*(b-f);c=(a-e)*(f-k)-(c-e)*(b-k);a=(a-d)*(k-h)-(e-d)*(b-h);return!((0>m||0>c||0>a)&&(0<m||0<c||0<a))};return c}();p.screenCoordinatesPerCm=40;p.CENTIMETERS_PER_INCHES=2.54;e.mxVsdxUtils=p;p.__class="com.mxgraph.io.vsdx.mxVsdxUtils"})(e.vsdx||
|
|
|
|
|
parseFloat(b)/1.28+'px">'+c+"</font>"):d+=c}return d};c.getStyleMap=function(a,b){for(var d={},h=a.split(";"),m=0;m<h.length;m++){var c=h[m],f=c.indexOf(b),k=c.substring(0,f),c=c.substring(f+1);d[k]=c}return d};c.isInsideTriangle=function(a,b,d,h,c,f,e,k){var m=(a-c)*(h-f)-(d-c)*(b-f);c=(a-e)*(f-k)-(c-e)*(b-k);a=(a-d)*(k-h)-(e-d)*(b-h);return!((0>m||0>c||0>a)&&(0<m||0<c||0<a))};return c}();p.screenCoordinatesPerCm=40;p.CENTIMETERS_PER_INCHES=2.54;e.mxVsdxUtils=p;p.__class="com.mxgraph.io.vsdx.mxVsdxUtils"})(e.vsdx||
|
|
|
|
|
(e.vsdx={}))})(n.io||(n.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(f){(function(f){(function(f){var e=function(){function c(a,b,d,h){this.paraIndex=this.fields=this.charIndices=this.values=null;this.values=[];this.values.push(a);this.charIndices=[];this.charIndices.push(b);this.fields=[];this.fields.push(h);this.paraIndex=d}c.prototype.addText=function(a,b,d){this.values.push(a);this.charIndices.push(b);this.fields.push(d)};c.prototype.getParagraphIndex=function(){return this.paraIndex};c.prototype.getValue=function(a){return this.values[a]};
|
|
|
|
|
c.prototype.numValues=function(){return this.values.length};c.prototype.getChar=function(a){return this.charIndices[a]};c.prototype.getField=function(a){return this.fields[a]};return c}();f.Paragraph=e;e.__class="com.mxgraph.io.vsdx.Paragraph"})(f.vsdx||(f.vsdx={}))})(f.io||(f.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
@ -1381,10 +1382,10 @@ a)||function(a,b){return a&&a.equals?a.equals(b):a===b}(f.mxgraph.io.vsdx.mxVsdx
|
|
|
|
|
function(){var a="";(function(a,d){return a&&a.equals?a.equals(d):a===d})(this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"1"),"0")?a="none":(a=this.getColor(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR)),function(a,d){return a&&a.equals?a.equals(d):a===d}("Themed",a)&&(a=this.getTheme(),a=null!=a?(this.isVertex()?a.getLineColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):a.getConnLineColor(this.getQuickStyleVals())).toHexStr():
|
|
|
|
|
""));return a};c.prototype.getFillColor=function(){if(function(a,b){return a&&a.equals?a.equals(b):a===b}("1",this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_GRADIENT_ENABLED),"0"))){var a=function(a,b){return a[b]?a[b]:null}(this.sections,"FillGradient");if(null!=a&&(a=this.getColor(a.getIndexedCell("0","GradientStopColor")),null!=a&&0!==a.length))return a}a=this.getColor(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND));
|
|
|
|
|
(function(a,b){return a&&a.equals?a.equals(b):a===b})("Themed",a)&&(a=this.getTheme(),null!=a?(a=a.getFillColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()),a=a.toHexStr()):a="#FFFFFF");var b=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),"0");return null!=b&&function(a,b){return a&&a.equals?a.equals(b):a===b}(b,"0")?"none":a};c.prototype.getColor=function(a){a=this.getValue(a,"");(function(a,d){return a&&a.equals?a.equals(d):
|
|
|
|
|
a===d})("Themed",a)||function(a,d,h){void 0===h&&(h=0);return a.substr(h,d.length)===d}(a,"#")||(a=this.pm.getColor(a));return a};c.prototype.getTextBkgndColor=function(a){a=this.getValue(a,"");return function(a,d,h){void 0===h&&(h=0);return a.substr(h,d.length)===d}(a,"#")?a:function(a,d){return a&&a.equals?a.equals(d):a===d}(a,"0")||function(a,d){return a&&a.equals?a.equals(d):a===d}(a,"255")||0===a.length?"none":this.pm.getColor((new String(parseInt(a)-1)).toString())};c.prototype.getLineWeight=
|
|
|
|
|
a===d})("Themed",a)||function(a,d,c){void 0===c&&(c=0);return a.substr(c,d.length)===d}(a,"#")||(a=this.pm.getColor(a));return a};c.prototype.getTextBkgndColor=function(a){a=this.getValue(a,"");return function(a,d,c){void 0===c&&(c=0);return a.substr(c,d.length)===d}(a,"#")?a:function(a,d){return a&&a.equals?a.equals(d):a===d}(a,"0")||function(a,d){return a&&a.equals?a.equals(d):a===d}(a,"255")||0===a.length?"none":this.pm.getColor((new String(parseInt(a)-1)).toString())};c.prototype.getLineWeight=
|
|
|
|
|
function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT),0)};c.prototype.getStrokeTransparency=function(){return this.getValueAsDouble(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS),0)};c.prototype.getNameU=function(){return this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)||""};c.prototype.getName=function(){return this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME)||
|
|
|
|
|
""};c.prototype.getUniqueID=function(){return this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.UNIQUE_ID)||""};c.prototype.getId=function(){return this.Id};c.prototype.getTextColor=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.COLOR,a,f.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);a=this.getValue(a,"#000000");(function(a,d){return a&&a.equals?a.equals(d):a===d})("Themed",a)?(a=this.getTheme(),a=null!=a?(this.isVertex()?
|
|
|
|
|
a.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):a.getConnFontColor(this.getQuickStyleVals())).toHexStr():"#000000"):function(a,d,h){void 0===h&&(h=0);return a.substr(h,d.length)===d}(a,"#")||(a=this.pm.getColor(a));return a};c.prototype.getTextTopMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.TOP_MARGIN),0)};c.prototype.getTextBottomMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.BOTTOM_MARGIN),
|
|
|
|
|
a.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):a.getConnFontColor(this.getQuickStyleVals())).toHexStr():"#000000"):function(a,d,c){void 0===c&&(c=0);return a.substr(c,d.length)===d}(a,"#")||(a=this.pm.getColor(a));return a};c.prototype.getTextTopMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.TOP_MARGIN),0)};c.prototype.getTextBottomMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.BOTTOM_MARGIN),
|
|
|
|
|
0)};c.prototype.getTextLeftMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.LEFT_MARGIN),0)};c.prototype.getTextRightMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.RIGHT_MARGIN),0)};c.prototype.getTextStyle=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.STYLE,
|
|
|
|
|
a,f.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(a,"")};c.prototype.getTextFont=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FONT,a,f.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(a,"")};c.prototype.getTextPos=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.POS,a,f.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(a,
|
|
|
|
|
"")};c.prototype.getTextStrike=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.STRIKETHRU,a,f.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);a=(a=this.getValue(a,""))&&a.equals?a.equals("1"):"1"===a;return a};c.prototype.getTextCase=function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.CASE,a,f.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(a,"")};c.prototype.getHorizontalAlign=
|
|
|
|
@ -1400,11 +1401,11 @@ c.lineDashPatterns_$LI$().push(a);a=[];a.push(c.SHORT_DASH);a.push(c.SHORT_SPACE
|
|
|
|
|
a.push(c.SHORT_DASH);a.push(c.SHORT_SPACE);a.push(c.SHORT_DASH);a.push(c.SHORT_SPACE);c.lineDashPatterns_$LI$().push(a);a=[];a.push(c.LONG_DASH);a.push(c.LONG_SPACE);c.lineDashPatterns_$LI$().push(a);a=[];a.push(c.DOT);a.push(c.LONG_SPACE);c.lineDashPatterns_$LI$().push(a);a=[];a.push(c.LONG_DASH);a.push(c.LONG_SPACE);a.push(c.DOT);a.push(c.LONG_SPACE);c.lineDashPatterns_$LI$().push(a);a=[];a.push(c.LONG_DASH);a.push(c.LONG_SPACE);a.push(c.DOT);a.push(c.LONG_SPACE);a.push(c.DOT);a.push(c.LONG_SPACE);
|
|
|
|
|
c.lineDashPatterns_$LI$().push(a);a=[];a.push(c.LONG_DASH);a.push(c.LONG_SPACE);a.push(c.LONG_DASH);a.push(c.LONG_SPACE);a.push(c.DOT);a.push(c.LONG_SPACE);c.lineDashPatterns_$LI$().push(a);a=[];a.push(c.XLONG_DASH);a.push(c.LONG_SPACE);a.push(c.DASH);a.push(c.LONG_SPACE);c.lineDashPatterns_$LI$().push(a);a=[];a.push(c.XLONG_DASH);a.push(c.LONG_SPACE);a.push(c.DASH);a.push(c.LONG_SPACE);a.push(c.DASH);a.push(c.LONG_SPACE);c.lineDashPatterns_$LI$().push(a);a=[];a.push(c.XSHORT_DASH);a.push(c.SHORT_SPACE);
|
|
|
|
|
c.lineDashPatterns_$LI$().push(a)};c.getLineDashPattern=function(a){return 0<=a&&23>=a?c.lineDashPatterns_$LI$()[a]:c.lineDashPatterns_$LI$()[0]};return c}();p.__static_initialized=!1;p.vsdxStyleDebug=!1;p.SPACE=4;p.SHORT_SPACE=2;p.LONG_SPACE=6;p.DOT=1;p.DASH=8;p.LONG_DASH=12;p.SHORT_DASH=4;p.XLONG_DASH=20;p.XSHORT_DASH=2;e.Style=p;p.__class="com.mxgraph.io.vsdx.Style"})(e.vsdx||(e.vsdx={}))})(n.io||(n.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(n){(function(e){(function(e){(function(e){var c=function(a){function b(b,h,c){var d=a.call(this)||this;d.__com_mxgraph_io_vsdx_theme_HslClr_hue=b/360;d.__com_mxgraph_io_vsdx_theme_HslClr_sat=h/100;d.__com_mxgraph_io_vsdx_theme_HslClr_lum=c/100;d.color=(new f.mxgraph.io.vsdx.theme.HSLColor(b,h,c)).toRgb();return d}__extends(b,a);return b}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.HslClr=c;c.__class="com.mxgraph.io.vsdx.theme.HslClr"})(e.theme||(e.theme={}))})(e.vsdx||(e.vsdx={}))})(n.io||
|
|
|
|
|
(function(f){(function(n){(function(e){(function(e){(function(e){var c=function(a){function b(b,c,m){var d=a.call(this)||this;d.__com_mxgraph_io_vsdx_theme_HslClr_hue=b/360;d.__com_mxgraph_io_vsdx_theme_HslClr_sat=c/100;d.__com_mxgraph_io_vsdx_theme_HslClr_lum=m/100;d.color=(new f.mxgraph.io.vsdx.theme.HSLColor(b,c,m)).toRgb();return d}__extends(b,a);return b}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.HslClr=c;c.__class="com.mxgraph.io.vsdx.theme.HslClr"})(e.theme||(e.theme={}))})(e.vsdx||(e.vsdx={}))})(n.io||
|
|
|
|
|
(n.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));(function(f){(function(n){(function(e){(function(e){(function(e){var c=function(a){function b(b){var d=a.call(this)||this;d.val=b;d.color=new f.mxgraph.io.vsdx.theme.Color(255,255,255);return d}__extends(b,a);return b}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.PrstClr=c;c.__class="com.mxgraph.io.vsdx.theme.PrstClr"})(e.theme||(e.theme={}))})(e.vsdx||(e.vsdx={}))})(n.io||(n.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(n){(function(e){(function(e){(function(e){var c=function(a){function b(b){var d=a.call(this)||this;d.isDynamic=!0;d.val=b;return d}__extends(b,a);b.prototype.calcColor=function(b,c){var d;d=this.val;d="phClr".equals?"phClr".equals(d):"phClr"===d;d?this.color=c.getStyleColor(b):(this.color=c.getSchemeColor(this.val),this.isDynamic=!1);a.prototype.calcColor.call(this,b,c)};return b}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.SchemeClr=c;c.__class="com.mxgraph.io.vsdx.theme.SchemeClr"})(e.theme||
|
|
|
|
|
(e.theme={}))})(e.vsdx||(e.vsdx={}))})(n.io||(n.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(n){(function(e){(function(e){(function(e){var c=function(a){function b(b,c,e){var d=a.call(this)||this;d.r=0;d.g=0;d.b=0;d.r=b;d.g=c;d.b=e;d.color=new f.mxgraph.io.vsdx.theme.Color(b,c,e);return d}__extends(b,a);return b}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.ScrgbClr=c;c.__class="com.mxgraph.io.vsdx.theme.ScrgbClr"})(e.theme||(e.theme={}))})(e.vsdx||(e.vsdx={}))})(n.io||(n.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(n){(function(e){(function(e){(function(e){var c=function(a){function b(b,c,m){var d=a.call(this)||this;d.r=0;d.g=0;d.b=0;d.r=b;d.g=c;d.b=m;d.color=new f.mxgraph.io.vsdx.theme.Color(b,c,m);return d}__extends(b,a);return b}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.ScrgbClr=c;c.__class="com.mxgraph.io.vsdx.theme.ScrgbClr"})(e.theme||(e.theme={}))})(e.vsdx||(e.vsdx={}))})(n.io||(n.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(n){(function(e){(function(e){(function(e){var c=function(a){function b(b){var d=a.call(this)||this;d.hexVal=null;d.hexVal=b;d.color=f.mxgraph.io.vsdx.theme.Color.decodeColorHex(b);return d}__extends(b,a);return b}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.SrgbClr=c;c.__class="com.mxgraph.io.vsdx.theme.SrgbClr"})(e.theme||(e.theme={}))})(e.vsdx||(e.vsdx={}))})(n.io||(n.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(n){(function(e){(function(e){(function(e){var c=function(a){function b(b,c){var d=a.call(this)||this;d.lastClr=null;d.val=b;var h=d.lastClr=c;if(null==h)switch(b){case "windowText":h="000000";break;case "window":h="FFFFFF";break;default:h="FFFFFF"}d.color=f.mxgraph.io.vsdx.theme.Color.decodeColorHex(h);return d}__extends(b,a);return b}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.SysClr=c;c.__class="com.mxgraph.io.vsdx.theme.SysClr"})(e.theme||(e.theme={}))})(e.vsdx||(e.vsdx={}))})(n.io||
|
|
|
|
|
(n.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
@ -1482,63 +1483,64 @@ b){return a[b]?a[b]:null}(this.masterShape.fields,this.fld)),null!=u&&(c+=b.call
|
|
|
|
|
b}(a,"45 degree single")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"45 degree double")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"60 degree double")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"45 degree tail")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"60 degree tail")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"45 degree tail")||function(a,b,c){void 0===c&&(c=
|
|
|
|
|
0);return a.substr(c,b.length)===b}(a,"60 degree tail")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Flexi-arrow 2")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Flexi-arrow 1")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Flexi-arrow 3")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Double flexi-arrow")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a,"Fancy arrow")};a.prototype.isVertex=
|
|
|
|
|
function(){return this.vertex};a.prototype.getOriginPoint=function(a,d){var b=this.getPinX(),c=this.getPinY(),e=this.getLocPinY(),p=this.getLocPinX(),k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0),n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0),b=b-p,c=a-(c+(n-e));return!d||e===n/2&&p===k/2||0===this.rotation?new mxPoint(b,c):(p=k/2-p,e-=n/2,n=Math.cos((360-
|
|
|
|
|
this.rotation)*Math.PI/180),k=Math.sin((360-this.rotation)*Math.PI/180),new mxPoint(b+p-(p*n-e*k),p*k+e*n+c-e))};a.prototype.getDimensions=function(){var a=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0),d=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);return new mxPoint(0===a&&0<d?1:a,0===d&&0<a?1:d)};a.prototype.getPinX=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.PIN_X),
|
|
|
|
|
this.rotation)*Math.PI/180),k=Math.sin((360-this.rotation)*Math.PI/180),new mxPoint(b+p-(p*n-e*k),p*k+e*n+c-e))};a.prototype.getDimensions=function(){var a=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0),c=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),0);return new mxPoint(0===a&&0<c?1:a,0===c&&0<a?1:c)};a.prototype.getPinX=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.PIN_X),
|
|
|
|
|
0)};a.prototype.getPinY=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.PIN_Y),0)};a.prototype.getLocPinX=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.LOC_PIN_X),0)};a.prototype.getLocPinY=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.LOC_PIN_Y),0)};a.prototype.getOpacity=
|
|
|
|
|
function(a){this.isGroup();a=this.getValueAsDouble(this.getCellElement$java_lang_String(a),0);a=Math.max(100-100*a,0);return a=Math.min(a,100)};a.prototype.getGradient=function(){if(function(a,b){return a&&a.equals?a.equals(b):a===b}("1",this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_GRADIENT_ENABLED),"0"))){var a=function(a,b){return a[b]?a[b]:null}(this.sections,"FillGradient");if(null!=a){var d=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a.elem,
|
|
|
|
|
"Row"),a=this.getColor(a.getIndexedCell(d[d.length-1].getAttribute("IX"),"GradientStopColor"));if(null!=a&&0!==a.length)return a}}a="";d=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),"0");25<=parseInt(d)?a=this.getColor(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND)):(d=this.getTheme(),null!=d&&(d=d.getFillGraientColor(this.getQuickStyleVals()),null!=d&&(a=d.toHexStr())));return a};a.prototype.getGradientDirection=
|
|
|
|
|
function(){var a="",d=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),"0");(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"25")?a=mxConstants.DIRECTION_EAST:function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"27")?a=mxConstants.DIRECTION_WEST:function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"28")?a=mxConstants.DIRECTION_SOUTH:function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"30")&&(a=mxConstants.DIRECTION_NORTH);return a};a.prototype.calcRotation=
|
|
|
|
|
function(a){this.isGroup();a=this.getValueAsDouble(this.getCellElement$java_lang_String(a),0);a=Math.max(100-100*a,0);return a=Math.min(a,100)};a.prototype.getGradient=function(){if(function(a,b){return a&&a.equals?a.equals(b):a===b}("1",this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_GRADIENT_ENABLED),"0"))){var a=function(a,b){return a[b]?a[b]:null}(this.sections,"FillGradient");if(null!=a){var c=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a.elem,
|
|
|
|
|
"Row"),a=this.getColor(a.getIndexedCell(c[c.length-1].getAttribute("IX"),"GradientStopColor"));if(null!=a&&0!==a.length)return a}}a="";c=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),"0");25<=parseInt(c)?a=this.getColor(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND)):(c=this.getTheme(),null!=c&&(c=c.getFillGraientColor(this.getQuickStyleVals()),null!=c&&(a=c.toHexStr())));return a};a.prototype.getGradientDirection=
|
|
|
|
|
function(){var a="",c=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_PATTERN),"0");(function(a,b){return a&&a.equals?a.equals(b):a===b})(c,"25")?a=mxConstants.DIRECTION_EAST:function(a,b){return a&&a.equals?a.equals(b):a===b}(c,"27")?a=mxConstants.DIRECTION_WEST:function(a,b){return a&&a.equals?a.equals(b):a===b}(c,"28")?a=mxConstants.DIRECTION_SOUTH:function(a,b){return a&&a.equals?a.equals(b):a===b}(c,"30")&&(a=mxConstants.DIRECTION_NORTH);return a};a.prototype.calcRotation=
|
|
|
|
|
function(){var a=parseFloat(this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.ANGLE),"0")),a=180*a/Math.PI;return 360-a%360*100/100};a.prototype.propagateRotation=function(a){this.rotation+=a;this.rotation%=360;this.rotation=100*this.rotation/100};a.prototype.getTopSpacing=function(){return 100*(this.getTextTopMargin()/2-2.8)/100};a.prototype.getBottomSpacing=function(){return 100*(this.getTextBottomMargin()/2-2.8)/100};a.prototype.getLeftSpacing=function(){return 100*
|
|
|
|
|
(this.getTextLeftMargin()/2-2.8)/100};a.prototype.getRightSpacing=function(){return 100*(this.getTextRightMargin()/2-2.8)/100};a.prototype.getLabelRotation=function(){var a=!0,d=this.calcRotation(),c=parseFloat(this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),"0")),c=180*c/Math.PI,c=c-d;45>Math.abs(c)||270<Math.abs(c)||(a=!1);return a};a.prototype.getHyperlink=function(){var a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String("Address",
|
|
|
|
|
null,"Hyperlink"),a=this.getValue(a,""),d=this.getCellElement$java_lang_String$java_lang_String$java_lang_String("SubAddress",null,"Hyperlink"),d=this.getValue(d,"");return{extLink:a,pageLink:d}};a.prototype.getStyleFromShape=function(){this.styleMap[f.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=this.getId().toString();this.rotation=Math.round(this.rotation);0!==this.rotation&&(this.styleMap[mxConstants.STYLE_ROTATION]=""+this.rotation);var a=this.getFillColor();(function(a,b){return a&&a.equals?a.equals(b):
|
|
|
|
|
a===b})(a,"")?this.styleMap[mxConstants.STYLE_FILLCOLOR]="none":this.styleMap[mxConstants.STYLE_FILLCOLOR]=a;var d=this.getId();this.styleDebug("ID = "+d+" , Fill Color = "+a);a=this.getGradient();(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")?this.styleMap[mxConstants.STYLE_GRADIENTCOLOR]="none":(this.styleMap[mxConstants.STYLE_GRADIENTCOLOR]=a,a=this.getGradientDirection(),function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,
|
|
|
|
|
mxConstants.DIRECTION_SOUTH)||(this.styleMap[mxConstants.STYLE_GRADIENT_DIRECTION]=a));a=this.getOpacity(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND_TRANS);100>a&&(this.styleMap[mxConstants.STYLE_FILL_OPACITY]=""+a);a=this.getOpacity(f.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS);100>a&&(this.styleMap[mxConstants.STYLE_STROKE_OPACITY]=""+a);a=this.getForm();a.hasOwnProperty(mxConstants.STYLE_SHAPE)&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(function(a,b){return a[b]?
|
|
|
|
|
a[b]:null}(a,mxConstants.STYLE_SHAPE),"image;")&&(this.styleMap[mxConstants.STYLE_WHITE_SPACE]="wrap");for(var c in a)this.styleMap[c]=a[c];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",c=this.getDashPattern(),null!=c&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=c));c=this.getStrokeColor();var e=this.getStrokeTransparency();this.styleDebug("ID = "+d+" , Color = "+c+" , stroke transparency = "+e);(function(a,b){return a&&a.equals?a.equals(b):a===b})(c,"")||1===e||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=
|
|
|
|
|
c);d=Math.round(this.getLineWidth())|0;1!==d&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=""+d);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]=f.mxgraph.io.vsdx.mxVsdxConstants.TRUE);d=Math.round(this.getTopSpacing())|0;0!==d&&(this.styleMap[mxConstants.STYLE_SPACING_TOP]=""+d);d=Math.round(this.getBottomSpacing())|0;0!==d&&(this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=""+d);d=Math.round(this.getLeftSpacing())|0;0!==d&&(this.styleMap[mxConstants.STYLE_SPACING_LEFT]=""+d);d=Math.round(this.getRightSpacing())|
|
|
|
|
|
0;0!==d&&(this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=""+d);a=this.getDirection(a);a!==mxConstants.DIRECTION_EAST&&(this.styleMap[mxConstants.STYLE_DIRECTION]=a);a=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FLIP_X),"0");d=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FLIP_Y),"0");(function(a,b){return a&&a.equals?a.equals(b):a===b})("1",a)&&(this.styleMap[mxConstants.STYLE_FLIPH]="1");(function(a,b){return a&&a.equals?
|
|
|
|
|
a.equals(b):a===b})("1",d)&&(this.styleMap[mxConstants.STYLE_FLIPV]="1");this.resolveCommonStyles();return this.styleMap};a.prototype.getDashPattern=function(){var a=null,c=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"0");(c&&c.equals?c.equals("Themed"):"Themed"===c)?(c=this.getTheme(),null!=c&&(a=this.isVertex()?c.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):c.getConnLineDashPattern(this.getQuickStyleVals()))):
|
|
|
|
|
a=e.Style.getLineDashPattern(parseInt(c));if(null!=a&&0!=a.length){for(var c="",h=0;h<a.length;h++)c=c.concat(a[h].toFixed(2)+" ");return c.trim()}return null};a.prototype.isDashed=function(){var a=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"0");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Themed")){if(a=this.getTheme(),null!=a)return this.isVertex()?a.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):
|
|
|
|
|
a.isConnLineDashed(this.getQuickStyleVals())}else if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1"))return!0;return!1};a.prototype.getLineWidth=function(){var a=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT),"1"),c=1;try{var e;e=a&&a.equals?a.equals("Themed"):"Themed"===a;if(e){var m=this.getTheme();null!=m&&(c=(this.isVertex()?m.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):
|
|
|
|
|
m.getConnLineWidth(this.getQuickStyleVals()))/1E4)}else c=parseFloat(a),c=this.getScreenNumericalValue$double(c)}catch(y){}1>c&&(c*=2);return c};a.prototype.getStartArrowSize=function(){var b=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE),"4");try{var c=4,e;e=b&&b.equals?b.equals("Themed"):"Themed"===b;if(e){var m=this.getTheme();null!=m&&(c=this.isVertex()?m.getStartSize(this.getQuickStyleVals()):m.getConnStartSize(this.getQuickStyleVals()))}else c=
|
|
|
|
|
parseFloat(b);return a.arrowSizes_$LI$()[c]}catch(y){}return 4};a.prototype.getFinalArrowSize=function(){var b=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE),"4");try{var c=4,e;e=b&&b.equals?b.equals("Themed"):"Themed"===b;if(e){var m=this.getTheme();null!=m&&(c=this.isVertex()?m.getEndSize(this.getQuickStyleVals()):m.getConnEndSize(this.getQuickStyleVals()))}else c=parseFloat(b);return a.arrowSizes_$LI$()[c]}catch(y){}return 4};a.prototype.getRounding=
|
|
|
|
|
function(){var a=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.ROUNDING),"0"),c;c=a;c="Themed".equals?"Themed".equals(c):"Themed"===c;c&&(a="0");return parseFloat(a)};a.prototype.isShadow=function(){var a=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.SHDW_PATTERN),"0");return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Themed")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")?!1:!0};a.prototype.getEdgeStyle$java_util_Map=
|
|
|
|
|
function(a){var b={};(function(a,b){return a&&a.equals?a.equals(b):a===b})(function(a,b){return a[b]?a[b]:null}(a,mxConstants.STYLE_SHAPE),"mxgraph.lean_mapping.electronic_info_flow_edge")?b[mxConstants.STYLE_EDGE]=mxConstants.NONE:b[mxConstants.STYLE_EDGE]=mxConstants.EDGESTYLE_ELBOW;return b};a.prototype.getEdgeStyle=function(a){if(null!=a&&a instanceof Object||null===a)return this.getEdgeStyle$java_util_Map(a);if(void 0===a)return this.getEdgeStyle$();throw Error("invalid overload");};a.prototype.getMasterId=
|
|
|
|
|
function(){return this.shape.hasAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MASTER)?this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MASTER):null};a.prototype.getShapeMasterId=function(){return this.shape.hasAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE)?this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE):null};a.prototype.isGroup=function(){var a;a=(a=this.shape.getAttribute("Type"))&&a.equals?a.equals("Group"):"Group"===a;return a};a.getType=function(a){return a.getAttribute("Type")};
|
|
|
|
|
a.prototype.getMaster=function(){return this.master};a.prototype.getNameU=function(){var a=this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)||"",c;(c=null==a)||(c=(c=a)&&c.equals?c.equals(""):""===c);c&&null!=this.masterShape&&(a=this.masterShape.getNameU());return a};a.prototype.getName=function(){var a=this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME),c;(c=null==a)||(c=(c=a)&&c.equals?c.equals(""):""===c);c&&null!=this.masterShape&&(a=this.masterShape.getName());return a};
|
|
|
|
|
a.prototype.getMasterName=function(){return this.shapeName};a.prototype.setLabelOffset=function(a,c){var b="",d="";this.shape.hasAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&(b=this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));null!=this.getMaster()&&null!=this.getMaster().getMasterElement()&&this.getMaster().getMasterElement().hasAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&(d=this.getMaster().getMasterElement().getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));
|
|
|
|
|
if(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(b,"Organizational unit")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,"Organizational unit")){var e=this.shape.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0),b=null,b="0.0",d=null,d="-0.4";null!=e&&(b=e.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),b=b.hasAttribute("F")?b.getAttribute("F"):b.textContent,d=e.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),
|
|
|
|
|
d=d.hasAttribute("F")?d.getAttribute("F"):d.textContent);e=a.getGeometry();b=b.split("Width/2+").join("");b=b.split("DL").join("");d=d.split("Height*").join("");(function(a,b){return a&&a.equals?a.equals(b):a===b})(b,"Inh")&&(b="0.0");(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"Inh")&&(d="-0.4");-1!=d.indexOf("txtHeight")&&(d="-0.4");for(var p=c.split(";"),k="",n=0;n<p.length;n++){var u=p[n],u=u.trim();(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b})(u,"tabHeight=")&&
|
|
|
|
|
(k=u.split("tabHeight=").join(""))}(function(a,b){return a&&a.equals?a.equals(b):a===b})(k,"")&&(k="20");p=parseFloat(k);b=parseFloat(b);d=parseFloat(d);k=e.height;b=.1*e.width+100*b;b=new mxPoint(b,k-k*d-p/2);a.getGeometry().offset=b}else if(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(b,"Domain 3D")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,"Domain 3D")){e=this.shape.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);b=null;
|
|
|
|
|
b="0.0";d=null;d="-0.4";null!=e&&(b=e.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),b=b.getAttribute("F")||"",d=e.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),d=d.getAttribute("F")||"");e=a.getGeometry();b=b.split("Width/2+").join("");b=b.split("DL").join("");d=d.split("Height*").join("");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(b,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(b,""))b="0.0";if(function(a,b){return a&&a.equals?a.equals(b):
|
|
|
|
|
a===b}(d,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(d,""))d="-0.4";-1!=d.indexOf("txtHeight")&&(d="-0.4");b=parseFloat(b);d=parseFloat(d);k=e.height;b=.1*e.width+100*b;b=new mxPoint(b,k-k*d);a.getGeometry().offset=b}};a.prototype.getForm=function(){var b={};if(this.isVertex())try{var c=a.getType(this.getShape());this.styleDebug("shape type = "+c);if(null!=this.imageData||function(a,b){return a&&a.equals?a.equals(b):a===b}(f.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,c)&&null!=this.masterShape&&
|
|
|
|
|
null!=this.masterShape.imageData){var e=null!=this.imageData?this.imageData:this.masterShape.imageData;b.shape="image";b.aspect="fixed";var m=function(a,b){return a[b]?a[b]:null}(e,"iType"),p=function(a,b){return a[b]?a[b]:null}(e,"iData"),n=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetX"),"0")),k=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetY"),"0")),u=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgWidth"),"0")),B=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgHeight"),
|
|
|
|
|
"0")),D=parseFloat(this.getValue(this.getCellElement$java_lang_String("Width"),"0")),A=parseFloat(this.getValue(this.getCellElement$java_lang_String("Height"),"0"));0!=n||0!=k?this.toBeCroppedImg={imgOffsetX:n,imgOffsetY:k,imgWidth:u,imgHeight:B,width:D,height:A,iType:m,iData:p}:b.image="data:image/"+m+","+p;return b}var E=this.parseGeom();if(function(a,b){return a&&a.equals?a.equals(b):a===b}(E,""))return this.styleDebug("No geom found"),b;var H=Graph.compress(E);b[mxConstants.STYLE_SHAPE]="stencil("+
|
|
|
|
|
H+")"}catch(N){console.error(N.message,N)}else return this.getEdgeStyle();return b};a.prototype.isOff_page_reference=function(){var a=this.getNameU();return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Off-page reference")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Lined/Shaded process")?!0:!1};a.prototype.isExternal_process=function(){var a;a=(a=this.shapeName)&&a.equals?a.equals("External process"):"External process"===a;return a};a.prototype.getDirection=function(a){a=mxResources.get("mxOffset"+
|
|
|
|
|
this.shapeName);if(null!=a&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")){if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1"))return mxConstants.DIRECTION_SOUTH;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"2"))return mxConstants.DIRECTION_WEST;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"3"))return mxConstants.DIRECTION_NORTH}return mxConstants.DIRECTION_EAST};a.prototype.isSubproces=function(){var a;
|
|
|
|
|
a=(a=this.shapeName)&&a.equals?a.equals("Subproces"):"Subproces"===a;return a};a.prototype.getEdgeStyle$=function(){return{edgeStyle:"none"}};a.prototype.getChildShapes=function(){return this.childShapes};a.prototype.setChildShapes=function(a){this.childShapes=a};a.prototype.isDisplacedLabel=function(){var a=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F",""),c=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F",""),e=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,
|
|
|
|
|
"F",""),m=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","");if(null!=this.masterShape){if(""===a||function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"inh"))a=this.masterShape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F","");if(""===c||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.toLowerCase(),"inh"))c=this.masterShape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F","");if(""===e||function(a,b){return a&&a.equals?a.equals(b):
|
|
|
|
|
a===b}(e.toLowerCase(),"inh"))e=this.masterShape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,"F","");if(""===m||function(a,b){return a&&a.equals?a.equals(b):a===b}(m.toLowerCase(),"inh"))m=this.masterShape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","")}return function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"width*0.5")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(c.toLowerCase(),"height*0.5")&&function(a,b){return a&&a.equals?a.equals(b):
|
|
|
|
|
a===b}(e.toLowerCase(),"width*1")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(m.toLowerCase(),"height*1")||!(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a.toLowerCase(),"width*")&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(c.toLowerCase(),"height*")&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(e.toLowerCase(),"width*")&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(m.toLowerCase(),"height*")||function(a,
|
|
|
|
|
b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a.toLowerCase(),"controls.row_")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(c.toLowerCase(),"controls.row_"))?!1:!0};a.prototype.isVerticalLabel=function(){var a=this.getAttribute("TextDirection","V","");a||null==this.masterShape||(a=this.masterShape.getAttribute("TextDirection","V",""));return"1"==a};a.prototype.isRotatedLabel=function(){if(this.isVerticalLabel())return!0;var a=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE,
|
|
|
|
|
"V","");null!=this.masterShape&&function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")&&(a=this.masterShape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE,"V",""));return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0.0")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")?!1:!0};a.prototype.setRootShape=function(a){this.rootShape=a};a.prototype.getRootShape=function(){return this.rootShape};a.prototype.getStartXY=
|
|
|
|
|
function(a){var b=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_X),0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_Y),0)))/100);return new mxPoint(b,a)};a.prototype.getEndXY=function(a){var b=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.END_X),
|
|
|
|
|
0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.END_Y),0)))/100);return new mxPoint(b,a)};a.prototype.getRoutingPoints=function(a,c,e){return null!=this.geomList?this.geomList.getRoutingPoints(a,c,e):null};a.prototype.getControlPoints=function(a){var b=this.getStartXY(a);a=this.getEndXY(a);var c=[];if(null!=this.shape){var e=this.shape.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.GEOM);
|
|
|
|
|
if(0<e.length&&(e=e.item(0).getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.NURBS_TO).item(0).getElementsByTagName("E").item(0),null!=e)){for(var e=e.getAttribute("F")||"",e=e.replace(RegExp("NURBS\\(","g"),""),e=e.replace(RegExp("\\)","g"),""),e=e.replace(RegExp(",","g")," "),e=e.replace(RegExp("\\s\\s","g")," "),e=e.split(" "),p=e.length,n=[];0<p--;)n.push(0);for(p=0;p<e.length;p++)n[p]=parseFloat(e[p]);for(p=2;p+4<e.length;p+=4){var k=new mxPoint,u=n[p+3];k.x=Math.floor(Math.round(100*(b.x+
|
|
|
|
|
Math.min(100,Math.abs(a.x-b.x))*n[p+2]))/100);k.y=Math.floor(Math.round(100*(b.y-100*u))/100);c.push(k)}return c}}return null};a.prototype.getStyleFromEdgeShape=function(b){this.styleMap[f.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=this.getId().toString();b=this.getForm();if(null!=b&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(b,""))for(var c in b)this.styleMap[c]=b[c];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",c=this.getDashPattern(),null!=c&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=
|
|
|
|
|
c));c=this.getEdgeMarker(!0);null!=c&&(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(c,a.ARROW_NO_FILL_MARKER)&&(c=c.substring(a.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_STARTFILL]="0"),this.styleMap[mxConstants.STYLE_STARTARROW]=c);c=this.getEdgeMarker(!1);null!=c&&(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(c,a.ARROW_NO_FILL_MARKER)&&(c=c.substring(a.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_ENDFILL]="0"),this.styleMap[mxConstants.STYLE_ENDARROW]=
|
|
|
|
|
c);c=Math.round(this.getStartArrowSize())|0;6!==c&&(this.styleMap[mxConstants.STYLE_STARTSIZE]=""+c);c=Math.round(this.getFinalArrowSize())|0;6!==c&&(this.styleMap[mxConstants.STYLE_ENDSIZE]=""+c);c=Math.round(this.getLineWidth())|0;1!==c&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=""+c);c=this.getStrokeColor();(function(a,b){return a&&a.equals?a.equals(b):a===b})(c,"")||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=c);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]=f.mxgraph.io.vsdx.mxVsdxConstants.TRUE);
|
|
|
|
|
this.isConnectorBigNameU(this.getNameU())&&(this.styleMap[mxConstants.STYLE_SHAPE]=mxConstants.SHAPE_ARROW,c=this.getFillColor(),function(a,b){return a&&a.equals?a.equals(b):a===b}(c,"")||(this.styleMap[mxConstants.STYLE_FILLCOLOR]=c));c=Math.round(this.getTopSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_TOP]=""+c;c=Math.round(this.getBottomSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=""+c;c=Math.round(this.getLeftSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_LEFT]=""+
|
|
|
|
|
c;c=Math.round(this.getRightSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=""+c;c=this.getAlignVertical();this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=c;this.styleMap.html="1";this.resolveCommonStyles();return this.styleMap};a.prototype.resolveCommonStyles=function(){var a=this.getTextBkgndColor(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.TEXT_BKGND)),c;c=a&&a.equals?a.equals(""):""===a;c||"1"!=this.getValue(this.getCellElement$java_lang_String("TextBkgndTrans"),
|
|
|
|
|
"0")&&(this.styleMap[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]=a);this.styleMap[mxConstants.STYLE_ROUNDED]=0<this.getRounding()?f.mxgraph.io.vsdx.mxVsdxConstants.TRUE:f.mxgraph.io.vsdx.mxVsdxConstants.FALSE;return this.styleMap};a.prototype.getEdgeMarker=function(b){var c=this.getValue(this.getCellElement$java_lang_String(b?f.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW:f.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW),"0"),e=0;try{if(function(a,b){return a&&a.equals?a.equals(b):a===b}(c,"Themed")){var m=
|
|
|
|
|
this.getTheme();null!=m&&(e=this.isVertex()?m.getEdgeMarker(b,this.getQuickStyleVals()):m.getConnEdgeMarker(b,this.getQuickStyleVals()))}else e=parseInt(c)}catch(y){}b=function(a,b){null==a.entries&&(a.entries=[]);for(var c=0;c<a.entries.length;c++)if(null!=a.entries[c].key.equals&&a.entries[c].key.equals(b)||a.entries[c].key===b)return a.entries[c].value;return null}(a.arrowTypes_$LI$(),e);0<e&&null==b&&(b=function(a,b){null==a.entries&&(a.entries=[]);for(var c=0;c<a.entries.length;c++)if(null!=
|
|
|
|
|
a.entries[c].key.equals&&a.entries[c].key.equals(b)||a.entries[c].key===b)return a.entries[c].value;return null}(a.arrowTypes_$LI$(),1));return b};a.prototype.getCellElement$java_lang_String=function(a){var b=c.prototype.getCellElement$java_lang_String.call(this,a);return null==b&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String(a):b};a.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String=function(a,d,e){var b=c.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String.call(this,
|
|
|
|
|
a,d,e);return null==b&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,d,e):b};a.prototype.getCellElement=function(a,c,e){if("string"!==typeof a&&null!==a||"string"!==typeof c&&null!==c||"string"!==typeof e&&null!==e){if("string"!==typeof a&&null!==a||void 0!==c||void 0!==e)throw Error("invalid overload");return this.getCellElement$java_lang_String(a)}return this.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,c,e)};a.prototype.createLabelSubShape=
|
|
|
|
|
function(a,c){var b=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),this.getWidth()),d=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),e=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),b/2),p=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),
|
|
|
|
|
d/2),k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),e),n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),p),u=this.getValueAsDouble(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),0),D=this.getTextLabel();if(null!=D&&0!==D.length){var A=mxUtils.clone(this.getStyleMap())||{};A[mxConstants.STYLE_FILLCOLOR]=mxConstants.NONE;A[mxConstants.STYLE_STROKECOLOR]=
|
|
|
|
|
mxConstants.NONE;A[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;A.hasOwnProperty("align")||(A.align="center");A.hasOwnProperty("verticalAlign")||(A.verticalAlign="middle");A.hasOwnProperty("whiteSpace")||(A.whiteSpace="wrap");delete A.shape;delete A.image;this.isVerticalLabel()&&(u+=Math.PI+.01,A.horizontal="0");var E=this.getRotation();0!==u&&(u=360-180*u/Math.PI,u=Math.round((u+E)%360*100)/100,0!==u&&(A.rotation=""+u));A="text;"+f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(A,"=");p=c.getGeometry().height-
|
|
|
|
|
(n+d-p);e=k-e;0<E&&(k=new mxGeometry(e,p,b,d),e=c.getGeometry(),f.mxgraph.online.Utils.rotatedGeometry(k,E,e.width/2,e.height/2),e=k.x,p=k.y);return a.insertVertex(c,null,D,Math.round(100*e)/100,Math.round(100*p)/100,Math.round(100*b)/100,Math.round(100*d)/100,A+";html=1;")}return null};a.prototype.getLblEdgeOffset=function(a,c){if(null!=c&&1<c.length){var b=new mxCellState;b.absolutePoints=c;a.updateEdgeBounds(b);var b=a.getPoint(b),d=c[0],e=c[c.length-1],p=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),
|
|
|
|
|
this.getWidth()),k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),0),u=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),0),D=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),
|
|
|
|
|
0),A=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),0),e=(this.getHeight()-(d.y-e.y))/2+d.y-b.y-(A-u+k/2),b=D-n+p/2+(d.x-b.x);return 1E11<Math.abs(b)?null:new mxPoint(Math.floor(Math.round(100*b)/100),Math.floor(Math.round(100*e)/100))}return null};a.prototype.getShapeIndex=function(){return this.shapeIndex};a.prototype.setShapeIndex=function(a){this.shapeIndex=a};return a}(f.mxgraph.io.vsdx.Shape);p.__static_initialized=!1;p.ARROW_NO_FILL_MARKER=
|
|
|
|
|
"0";p.maxDp=2;p.USE_SHAPE_MATCH=!1;p.stencilTemplate='<shape h="htemplate" w="wtemplate" aspect="variable" strokewidth="inherit"><connections></connections><background></background><foreground></foreground></shape>';e.VsdxShape=p;p.__class="com.mxgraph.io.vsdx.VsdxShape"})(e.vsdx||(e.vsdx={}))})(n.io||(n.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(this.getTextLeftMargin()/2-2.8)/100};a.prototype.getRightSpacing=function(){return 100*(this.getTextRightMargin()/2-2.8)/100};a.prototype.getLabelRotation=function(){var a=!0,c=this.calcRotation(),e=parseFloat(this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),"0")),e=180*e/Math.PI,e=e-c;45>Math.abs(e)||270<Math.abs(e)||(a=!1);return a};a.prototype.getHyperlink=function(){var a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String("Address",
|
|
|
|
|
null,"Hyperlink"),a=this.getValue(a,""),c=this.getCellElement$java_lang_String$java_lang_String$java_lang_String("SubAddress",null,"Hyperlink"),c=this.getValue(c,"");return{extLink:a,pageLink:c}};a.prototype.getProperties=function(){var a=[];if(this.sections&&this.sections.Property)for(var c=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(this.sections.Property.elem,"Row"),e=0;e<c.length;e++)for(var m=c[e],p=m.getAttribute("N"),m=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(m),n=
|
|
|
|
|
0;n<m.length;n++){var k=m[n];if("Value"==k.getAttribute("N")){a.push({key:p,val:k.getAttribute("V")});break}}return a};a.prototype.getStyleFromShape=function(){this.styleMap[f.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=this.getId().toString();this.rotation=Math.round(this.rotation);0!==this.rotation&&(this.styleMap[mxConstants.STYLE_ROTATION]=""+this.rotation);var a=this.getFillColor();(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")?this.styleMap[mxConstants.STYLE_FILLCOLOR]="none":this.styleMap[mxConstants.STYLE_FILLCOLOR]=
|
|
|
|
|
a;var c=this.getId();this.styleDebug("ID = "+c+" , Fill Color = "+a);a=this.getGradient();(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")?this.styleMap[mxConstants.STYLE_GRADIENTCOLOR]="none":(this.styleMap[mxConstants.STYLE_GRADIENTCOLOR]=a,a=this.getGradientDirection(),function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,mxConstants.DIRECTION_SOUTH)||(this.styleMap[mxConstants.STYLE_GRADIENT_DIRECTION]=a));a=this.getOpacity(f.mxgraph.io.vsdx.mxVsdxConstants.FILL_FOREGND_TRANS);
|
|
|
|
|
100>a&&(this.styleMap[mxConstants.STYLE_FILL_OPACITY]=""+a);a=this.getOpacity(f.mxgraph.io.vsdx.mxVsdxConstants.LINE_COLOR_TRANS);100>a&&(this.styleMap[mxConstants.STYLE_STROKE_OPACITY]=""+a);a=this.getForm();a.hasOwnProperty(mxConstants.STYLE_SHAPE)&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(function(a,b){return a[b]?a[b]:null}(a,mxConstants.STYLE_SHAPE),"image;")&&(this.styleMap[mxConstants.STYLE_WHITE_SPACE]="wrap");for(var e in a)this.styleMap[e]=a[e];this.isDashed()&&
|
|
|
|
|
(this.styleMap[mxConstants.STYLE_DASHED]="1",e=this.getDashPattern(),null!=e&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=e));e=this.getStrokeColor();var m=this.getStrokeTransparency();this.styleDebug("ID = "+c+" , Color = "+e+" , stroke transparency = "+m);(function(a,b){return a&&a.equals?a.equals(b):a===b})(e,"")||1===m||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=e);c=Math.round(this.getLineWidth())|0;1!==c&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=""+c);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]=
|
|
|
|
|
f.mxgraph.io.vsdx.mxVsdxConstants.TRUE);c=Math.round(this.getTopSpacing())|0;0!==c&&(this.styleMap[mxConstants.STYLE_SPACING_TOP]=""+c);c=Math.round(this.getBottomSpacing())|0;0!==c&&(this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=""+c);c=Math.round(this.getLeftSpacing())|0;0!==c&&(this.styleMap[mxConstants.STYLE_SPACING_LEFT]=""+c);c=Math.round(this.getRightSpacing())|0;0!==c&&(this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=""+c);a=this.getDirection(a);a!==mxConstants.DIRECTION_EAST&&(this.styleMap[mxConstants.STYLE_DIRECTION]=
|
|
|
|
|
a);a=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FLIP_X),"0");c=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FLIP_Y),"0");(function(a,b){return a&&a.equals?a.equals(b):a===b})("1",a)&&(this.styleMap[mxConstants.STYLE_FLIPH]="1");(function(a,b){return a&&a.equals?a.equals(b):a===b})("1",c)&&(this.styleMap[mxConstants.STYLE_FLIPV]="1");this.resolveCommonStyles();return this.styleMap};a.prototype.getDashPattern=function(){var a=
|
|
|
|
|
null,c=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"0");(c&&c.equals?c.equals("Themed"):"Themed"===c)?(c=this.getTheme(),null!=c&&(a=this.isVertex()?c.getLineDashPattern$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):c.getConnLineDashPattern(this.getQuickStyleVals()))):a=e.Style.getLineDashPattern(parseInt(c));if(null!=a&&0!=a.length){for(var c="",h=0;h<a.length;h++)c=c.concat(a[h].toFixed(2)+" ");return c.trim()}return null};
|
|
|
|
|
a.prototype.isDashed=function(){var a=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.LINE_PATTERN),"0");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Themed")){if(a=this.getTheme(),null!=a)return this.isVertex()?a.isLineDashed$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):a.isConnLineDashed(this.getQuickStyleVals())}else if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")&&!function(a,b){return a&&a.equals?a.equals(b):
|
|
|
|
|
a===b}(a,"1"))return!0;return!1};a.prototype.getLineWidth=function(){var a=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.LINE_WEIGHT),"1"),c=1;try{var e;e=a&&a.equals?a.equals("Themed"):"Themed"===a;if(e){var m=this.getTheme();null!=m&&(c=(this.isVertex()?m.getLineWidth$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()):m.getConnLineWidth(this.getQuickStyleVals()))/1E4)}else c=parseFloat(a),c=this.getScreenNumericalValue$double(c)}catch(y){}1>
|
|
|
|
|
c&&(c*=2);return c};a.prototype.getStartArrowSize=function(){var b=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW_SIZE),"4");try{var c=4,e;e=b&&b.equals?b.equals("Themed"):"Themed"===b;if(e){var m=this.getTheme();null!=m&&(c=this.isVertex()?m.getStartSize(this.getQuickStyleVals()):m.getConnStartSize(this.getQuickStyleVals()))}else c=parseFloat(b);return a.arrowSizes_$LI$()[c]}catch(y){}return 4};a.prototype.getFinalArrowSize=function(){var b=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW_SIZE),
|
|
|
|
|
"4");try{var c=4,e;e=b&&b.equals?b.equals("Themed"):"Themed"===b;if(e){var m=this.getTheme();null!=m&&(c=this.isVertex()?m.getEndSize(this.getQuickStyleVals()):m.getConnEndSize(this.getQuickStyleVals()))}else c=parseFloat(b);return a.arrowSizes_$LI$()[c]}catch(y){}return 4};a.prototype.getRounding=function(){var a=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.ROUNDING),"0"),c;c=a;c="Themed".equals?"Themed".equals(c):"Themed"===c;c&&(a="0");return parseFloat(a)};
|
|
|
|
|
a.prototype.isShadow=function(){var a=this.getValue(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.SHDW_PATTERN),"0");return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Themed")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")?!1:!0};a.prototype.getEdgeStyle$java_util_Map=function(a){var b={};(function(a,b){return a&&a.equals?a.equals(b):a===b})(function(a,b){return a[b]?a[b]:null}(a,mxConstants.STYLE_SHAPE),"mxgraph.lean_mapping.electronic_info_flow_edge")?
|
|
|
|
|
b[mxConstants.STYLE_EDGE]=mxConstants.NONE:b[mxConstants.STYLE_EDGE]=mxConstants.EDGESTYLE_ELBOW;return b};a.prototype.getEdgeStyle=function(a){if(null!=a&&a instanceof Object||null===a)return this.getEdgeStyle$java_util_Map(a);if(void 0===a)return this.getEdgeStyle$();throw Error("invalid overload");};a.prototype.getMasterId=function(){return this.shape.hasAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MASTER)?this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MASTER):null};a.prototype.getShapeMasterId=
|
|
|
|
|
function(){return this.shape.hasAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE)?this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE):null};a.prototype.isGroup=function(){var a;a=(a=this.shape.getAttribute("Type"))&&a.equals?a.equals("Group"):"Group"===a;return a};a.getType=function(a){return a.getAttribute("Type")};a.prototype.getMaster=function(){return this.master};a.prototype.getNameU=function(){var a=this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)||
|
|
|
|
|
"",c;(c=null==a)||(c=(c=a)&&c.equals?c.equals(""):""===c);c&&null!=this.masterShape&&(a=this.masterShape.getNameU());return a};a.prototype.getName=function(){var a=this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME),c;(c=null==a)||(c=(c=a)&&c.equals?c.equals(""):""===c);c&&null!=this.masterShape&&(a=this.masterShape.getName());return a};a.prototype.getMasterName=function(){return this.shapeName};a.prototype.setLabelOffset=function(a,c){var b="",d="";this.shape.hasAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&
|
|
|
|
|
(b=this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));null!=this.getMaster()&&null!=this.getMaster().getMasterElement()&&this.getMaster().getMasterElement().hasAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&(d=this.getMaster().getMasterElement().getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));if(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(b,"Organizational unit")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,"Organizational unit")){var e=
|
|
|
|
|
this.shape.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0),b=null,b="0.0",d=null,d="-0.4";null!=e&&(b=e.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),b=b.hasAttribute("F")?b.getAttribute("F"):b.textContent,d=e.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),d=d.hasAttribute("F")?d.getAttribute("F"):d.textContent);e=a.getGeometry();b=b.split("Width/2+").join("");b=b.split("DL").join("");d=d.split("Height*").join("");(function(a,b){return a&&
|
|
|
|
|
a.equals?a.equals(b):a===b})(b,"Inh")&&(b="0.0");(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"Inh")&&(d="-0.4");-1!=d.indexOf("txtHeight")&&(d="-0.4");for(var p=c.split(";"),k="",n=0;n<p.length;n++){var u=p[n],u=u.trim();(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b})(u,"tabHeight=")&&(k=u.split("tabHeight=").join(""))}(function(a,b){return a&&a.equals?a.equals(b):a===b})(k,"")&&(k="20");p=parseFloat(k);b=parseFloat(b);d=parseFloat(d);k=e.height;b=.1*e.width+100*b;
|
|
|
|
|
b=new mxPoint(b,k-k*d-p/2);a.getGeometry().offset=b}else if(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(b,"Domain 3D")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,"Domain 3D")){e=this.shape.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);b=null;b="0.0";d=null;d="-0.4";null!=e&&(b=e.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),b=b.getAttribute("F")||"",d=e.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),
|
|
|
|
|
d=d.getAttribute("F")||"");e=a.getGeometry();b=b.split("Width/2+").join("");b=b.split("DL").join("");d=d.split("Height*").join("");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(b,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(b,""))b="0.0";if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(d,""))d="-0.4";-1!=d.indexOf("txtHeight")&&(d="-0.4");b=parseFloat(b);d=parseFloat(d);k=e.height;b=.1*e.width+100*b;b=new mxPoint(b,
|
|
|
|
|
k-k*d);a.getGeometry().offset=b}};a.prototype.getForm=function(){var b={};if(this.isVertex())try{var c=a.getType(this.getShape());this.styleDebug("shape type = "+c);if(null!=this.imageData||function(a,b){return a&&a.equals?a.equals(b):a===b}(f.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,c)&&null!=this.masterShape&&null!=this.masterShape.imageData){var e=null!=this.imageData?this.imageData:this.masterShape.imageData;b.shape="image";b.aspect="fixed";var m=function(a,b){return a[b]?a[b]:null}(e,"iType"),
|
|
|
|
|
p=function(a,b){return a[b]?a[b]:null}(e,"iData"),n=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetX"),"0")),k=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetY"),"0")),u=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgWidth"),"0")),B=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgHeight"),"0")),D=parseFloat(this.getValue(this.getCellElement$java_lang_String("Width"),"0")),A=parseFloat(this.getValue(this.getCellElement$java_lang_String("Height"),
|
|
|
|
|
"0"));0!=n||0!=k?this.toBeCroppedImg={imgOffsetX:n,imgOffsetY:k,imgWidth:u,imgHeight:B,width:D,height:A,iType:m,iData:p}:b.image="data:image/"+m+","+p;return b}var E=this.parseGeom();if(function(a,b){return a&&a.equals?a.equals(b):a===b}(E,""))return this.styleDebug("No geom found"),b;var H=Graph.compress(E);b[mxConstants.STYLE_SHAPE]="stencil("+H+")"}catch(N){console.error(N.message,N)}else return this.getEdgeStyle();return b};a.prototype.isOff_page_reference=function(){var a=this.getNameU();return function(a,
|
|
|
|
|
b){return a&&a.equals?a.equals(b):a===b}(a,"Off-page reference")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Lined/Shaded process")?!0:!1};a.prototype.isExternal_process=function(){var a;a=(a=this.shapeName)&&a.equals?a.equals("External process"):"External process"===a;return a};a.prototype.getDirection=function(a){a=mxResources.get("mxOffset"+this.shapeName);if(null!=a&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,
|
|
|
|
|
"")){if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1"))return mxConstants.DIRECTION_SOUTH;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"2"))return mxConstants.DIRECTION_WEST;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"3"))return mxConstants.DIRECTION_NORTH}return mxConstants.DIRECTION_EAST};a.prototype.isSubproces=function(){var a;a=(a=this.shapeName)&&a.equals?a.equals("Subproces"):"Subproces"===a;return a};a.prototype.getEdgeStyle$=function(){return{edgeStyle:"none"}};
|
|
|
|
|
a.prototype.getChildShapes=function(){return this.childShapes};a.prototype.setChildShapes=function(a){this.childShapes=a};a.prototype.isDisplacedLabel=function(){var a=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F",""),c=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F",""),e=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,"F",""),m=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","");if(null!=this.masterShape){if(""===a||function(a,
|
|
|
|
|
b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"inh"))a=this.masterShape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F","");if(""===c||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.toLowerCase(),"inh"))c=this.masterShape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F","");if(""===e||function(a,b){return a&&a.equals?a.equals(b):a===b}(e.toLowerCase(),"inh"))e=this.masterShape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,"F","");if(""===m||function(a,
|
|
|
|
|
b){return a&&a.equals?a.equals(b):a===b}(m.toLowerCase(),"inh"))m=this.masterShape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT,"F","")}return function(a,b){return a&&a.equals?a.equals(b):a===b}(a.toLowerCase(),"width*0.5")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(c.toLowerCase(),"height*0.5")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(e.toLowerCase(),"width*1")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(m.toLowerCase(),"height*1")||!(function(a,b,c){void 0===
|
|
|
|
|
c&&(c=0);return a.substr(c,b.length)===b}(a.toLowerCase(),"width*")&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(c.toLowerCase(),"height*")&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(e.toLowerCase(),"width*")&&function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(m.toLowerCase(),"height*")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(a.toLowerCase(),"controls.row_")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,
|
|
|
|
|
b.length)===b}(c.toLowerCase(),"controls.row_"))?!1:!0};a.prototype.isVerticalLabel=function(){var a=this.getAttribute("TextDirection","V","");a||null==this.masterShape||(a=this.masterShape.getAttribute("TextDirection","V",""));return"1"==a};a.prototype.isRotatedLabel=function(){if(this.isVerticalLabel())return!0;var a=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE,"V","");null!=this.masterShape&&function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")&&(a=this.masterShape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE,
|
|
|
|
|
"V",""));return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0.0")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")?!1:!0};a.prototype.setRootShape=function(a){this.rootShape=a};a.prototype.getRootShape=function(){return this.rootShape};a.prototype.getStartXY=function(a){var b=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_X),
|
|
|
|
|
0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_Y),0)))/100);return new mxPoint(b,a)};a.prototype.getEndXY=function(a){var b=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.END_X),0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.END_Y),
|
|
|
|
|
0)))/100);return new mxPoint(b,a)};a.prototype.getRoutingPoints=function(a,c,e){return null!=this.geomList?this.geomList.getRoutingPoints(a,c,e):null};a.prototype.getControlPoints=function(a){var b=this.getStartXY(a);a=this.getEndXY(a);var c=[];if(null!=this.shape){var e=this.shape.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.GEOM);if(0<e.length&&(e=e.item(0).getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.NURBS_TO).item(0).getElementsByTagName("E").item(0),null!=e)){for(var e=e.getAttribute("F")||
|
|
|
|
|
"",e=e.replace(RegExp("NURBS\\(","g"),""),e=e.replace(RegExp("\\)","g"),""),e=e.replace(RegExp(",","g")," "),e=e.replace(RegExp("\\s\\s","g")," "),e=e.split(" "),p=e.length,n=[];0<p--;)n.push(0);for(p=0;p<e.length;p++)n[p]=parseFloat(e[p]);for(p=2;p+4<e.length;p+=4){var k=new mxPoint,u=n[p+3];k.x=Math.floor(Math.round(100*(b.x+Math.min(100,Math.abs(a.x-b.x))*n[p+2]))/100);k.y=Math.floor(Math.round(100*(b.y-100*u))/100);c.push(k)}return c}}return null};a.prototype.getStyleFromEdgeShape=function(b){this.styleMap[f.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=
|
|
|
|
|
this.getId().toString();b=this.getForm();if(null!=b&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(b,""))for(var c in b)this.styleMap[c]=b[c];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",c=this.getDashPattern(),null!=c&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=c));c=this.getEdgeMarker(!0);null!=c&&(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(c,a.ARROW_NO_FILL_MARKER)&&(c=c.substring(a.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_STARTFILL]=
|
|
|
|
|
"0"),this.styleMap[mxConstants.STYLE_STARTARROW]=c);c=this.getEdgeMarker(!1);null!=c&&(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(c,a.ARROW_NO_FILL_MARKER)&&(c=c.substring(a.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_ENDFILL]="0"),this.styleMap[mxConstants.STYLE_ENDARROW]=c);c=Math.round(this.getStartArrowSize())|0;6!==c&&(this.styleMap[mxConstants.STYLE_STARTSIZE]=""+c);c=Math.round(this.getFinalArrowSize())|0;6!==c&&(this.styleMap[mxConstants.STYLE_ENDSIZE]=
|
|
|
|
|
""+c);c=Math.round(this.getLineWidth())|0;1!==c&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=""+c);c=this.getStrokeColor();(function(a,b){return a&&a.equals?a.equals(b):a===b})(c,"")||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=c);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]=f.mxgraph.io.vsdx.mxVsdxConstants.TRUE);this.isConnectorBigNameU(this.getNameU())&&(this.styleMap[mxConstants.STYLE_SHAPE]=mxConstants.SHAPE_ARROW,c=this.getFillColor(),function(a,b){return a&&a.equals?a.equals(b):
|
|
|
|
|
a===b}(c,"")||(this.styleMap[mxConstants.STYLE_FILLCOLOR]=c));c=Math.round(this.getTopSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_TOP]=""+c;c=Math.round(this.getBottomSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_BOTTOM]=""+c;c=Math.round(this.getLeftSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_LEFT]=""+c;c=Math.round(this.getRightSpacing())|0;this.styleMap[mxConstants.STYLE_SPACING_RIGHT]=""+c;c=this.getAlignVertical();this.styleMap[mxConstants.STYLE_VERTICAL_ALIGN]=c;this.styleMap.html=
|
|
|
|
|
"1";this.resolveCommonStyles();return this.styleMap};a.prototype.resolveCommonStyles=function(){var a=this.getTextBkgndColor(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.TEXT_BKGND)),c;c=a&&a.equals?a.equals(""):""===a;c||"1"!=this.getValue(this.getCellElement$java_lang_String("TextBkgndTrans"),"0")&&(this.styleMap[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]=a);this.styleMap[mxConstants.STYLE_ROUNDED]=0<this.getRounding()?f.mxgraph.io.vsdx.mxVsdxConstants.TRUE:f.mxgraph.io.vsdx.mxVsdxConstants.FALSE;
|
|
|
|
|
return this.styleMap};a.prototype.getEdgeMarker=function(b){var c=this.getValue(this.getCellElement$java_lang_String(b?f.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_ARROW:f.mxgraph.io.vsdx.mxVsdxConstants.END_ARROW),"0"),e=0;try{if(function(a,b){return a&&a.equals?a.equals(b):a===b}(c,"Themed")){var m=this.getTheme();null!=m&&(e=this.isVertex()?m.getEdgeMarker(b,this.getQuickStyleVals()):m.getConnEdgeMarker(b,this.getQuickStyleVals()))}else e=parseInt(c)}catch(y){}b=function(a,b){null==a.entries&&(a.entries=
|
|
|
|
|
[]);for(var c=0;c<a.entries.length;c++)if(null!=a.entries[c].key.equals&&a.entries[c].key.equals(b)||a.entries[c].key===b)return a.entries[c].value;return null}(a.arrowTypes_$LI$(),e);0<e&&null==b&&(b=function(a,b){null==a.entries&&(a.entries=[]);for(var c=0;c<a.entries.length;c++)if(null!=a.entries[c].key.equals&&a.entries[c].key.equals(b)||a.entries[c].key===b)return a.entries[c].value;return null}(a.arrowTypes_$LI$(),1));return b};a.prototype.getCellElement$java_lang_String=function(a){var b=c.prototype.getCellElement$java_lang_String.call(this,
|
|
|
|
|
a);return null==b&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String(a):b};a.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String=function(a,d,e){var b=c.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String.call(this,a,d,e);return null==b&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,d,e):b};a.prototype.getCellElement=function(a,c,e){if("string"!==typeof a&&null!==a||
|
|
|
|
|
"string"!==typeof c&&null!==c||"string"!==typeof e&&null!==e){if("string"!==typeof a&&null!==a||void 0!==c||void 0!==e)throw Error("invalid overload");return this.getCellElement$java_lang_String(a)}return this.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,c,e)};a.prototype.createLabelSubShape=function(a,c){var b=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),this.getWidth()),d=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),
|
|
|
|
|
this.getHeight()),e=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),b/2),p=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),d/2),k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),e),n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),
|
|
|
|
|
p),u=this.getValueAsDouble(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),0),D=this.getTextLabel();if(null!=D&&0!==D.length){var A=mxUtils.clone(this.getStyleMap())||{};A[mxConstants.STYLE_FILLCOLOR]=mxConstants.NONE;A[mxConstants.STYLE_STROKECOLOR]=mxConstants.NONE;A[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;A.hasOwnProperty("align")||(A.align="center");A.hasOwnProperty("verticalAlign")||(A.verticalAlign="middle");A.hasOwnProperty("whiteSpace")||(A.whiteSpace="wrap");delete A.shape;
|
|
|
|
|
delete A.image;this.isVerticalLabel()&&(u+=Math.PI+.01,A.horizontal="0");var E=this.getRotation();0!==u&&(u=360-180*u/Math.PI,u=Math.round((u+E)%360*100)/100,0!==u&&(A.rotation=""+u));A="text;"+f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(A,"=");p=c.getGeometry().height-(n+d-p);e=k-e;0<E&&(k=new mxGeometry(e,p,b,d),e=c.getGeometry(),f.mxgraph.online.Utils.rotatedGeometry(k,E,e.width/2,e.height/2),e=k.x,p=k.y);return a.insertVertex(c,null,D,Math.round(100*e)/100,Math.round(100*p)/100,Math.round(100*
|
|
|
|
|
b)/100,Math.round(100*d)/100,A+";html=1;")}return null};a.prototype.getLblEdgeOffset=function(a,c){if(null!=c&&1<c.length){var b=new mxCellState;b.absolutePoints=c;a.updateEdgeBounds(b);var b=a.getPoint(b),d=c[0],e=c[c.length-1],p=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),this.getWidth()),k=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),
|
|
|
|
|
n=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),0),u=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),0),D=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),0),A=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),
|
|
|
|
|
0),e=(this.getHeight()-(d.y-e.y))/2+d.y-b.y-(A-u+k/2),b=D-n+p/2+(d.x-b.x);return 1E11<Math.abs(b)?null:new mxPoint(Math.floor(Math.round(100*b)/100),Math.floor(Math.round(100*e)/100))}return null};a.prototype.getShapeIndex=function(){return this.shapeIndex};a.prototype.setShapeIndex=function(a){this.shapeIndex=a};return a}(f.mxgraph.io.vsdx.Shape);p.__static_initialized=!1;p.ARROW_NO_FILL_MARKER="0";p.maxDp=2;p.USE_SHAPE_MATCH=!1;p.stencilTemplate='<shape h="htemplate" w="wtemplate" aspect="variable" strokewidth="inherit"><connections></connections><background></background><foreground></foreground></shape>';
|
|
|
|
|
e.VsdxShape=p;p.__class="com.mxgraph.io.vsdx.VsdxShape"})(e.vsdx||(e.vsdx={}))})(n.io||(n.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(n){(function(e){var n=function(){function e(){}e.__static_initialize=function(){e.__static_initialized||(e.__static_initialized=!0,e.__static_initializer_0())};e.CA_$LI$=function(){e.__static_initialize();null==e.CA&&(e.CA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""));return e.CA};e.IA_$LI$=function(){e.__static_initialize();if(null==e.IA){for(var c=256,a=[];0<c--;)a.push(0);e.IA=a}return e.IA};e.__static_initializer_0=function(){for(var c=e.IA_$LI$(),
|
|
|
|
|
a=0;a<c.length;a++)c[a]=-1;c=0;for(a=e.CA_$LI$().length;c<a;c++)e.IA_$LI$()[e.CA_$LI$()[c].charCodeAt(0)]=c;e.IA_$LI$()[61]=0};e.encodeToChar=function(c,a,b){var d=null!=c?c.length-a:0;if(0===d)return[];for(var f=3*(d/3|0),m=((d-1)/3|0)+1<<2,m=m+(b?((m-1)/76|0)<<1:0),n=Array(m),p=a,k=0,u=0;p<f+a;){var B=(c[p++]&255)<<16|(c[p++]&255)<<8|c[p++]&255;n[k++]=e.CA_$LI$()[B>>>18&63];n[k++]=e.CA_$LI$()[B>>>12&63];n[k++]=e.CA_$LI$()[B>>>6&63];n[k++]=e.CA_$LI$()[B&63];b&&19===++u&&k<m-2&&(n[k++]="\r",n[k++]=
|
|
|
|
|
"\n",u=0)}b=d-f;0<b&&(B=(c[f+a]&255)<<10|(2===b?(c[d+a-1]&255)<<2:0),n[m-4]=e.CA_$LI$()[B>>12],n[m-3]=e.CA_$LI$()[B>>>6&63],n[m-2]=2===b?e.CA_$LI$()[B&63]:"=",n[m-1]="=");return n};e.decode$char_A=function(c){var a=null!=c?c.length:0;if(0===a)return[];for(var b=0,d=0;d<a;d++)0>e.IA_$LI$()[c[d].charCodeAt(0)]&&b++;if(0!==(a-b)%4)return null;for(var f=0,d=a;1<d&&0>=e.IA_$LI$()[c[--d].charCodeAt(0)];)61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d])&&f++;for(var a=(6*(a-b)>>3)-f,b=function(a){for(var b=
|
|
|
|
|