|
|
|
@ -8,76 +8,77 @@ a)for(var b=0;b<a.length;){var d=a[b];if("ir"==d.n&&null!=d.v)return"spacingRigh
|
|
|
|
|
"100"));if("string"===typeof a.LineColor&&!h&&7<a.LineColor.length)var e="0x"+a.LineColor.substring(a.LineColor.length-2,a.LineColor.length),d=d+("strokeOpacity="+Math.round(parseInt(e)/2.55)+";");"string"===typeof a.FillColor&&!h&&7<a.FillColor.length&&(h="0x"+a.FillColor.substring(a.FillColor.length-2,a.FillColor.length),d+="fillOpacity="+Math.round(parseInt(h)/2.55)+";");return d}function I(a,b,d){if(!d.edge)if(null!=a.Rounding&&0>mxUtils.indexOf(db,b.Class)){if(0<a.Rounding)return"rounded=1;absoluteArcSize=1;arcSize="+
|
|
|
|
|
.6*a.Rounding+";"}else if(null==a.Rounding&&0<=mxUtils.indexOf(fb,b.Class))return"rounded=1;absoluteArcSize=1;arcSize=8;";return""}function G(a,b,d){return null!=a.Rotation&&(a=mxUtils.toDegree(parseFloat(a.Rotation)),"AdvancedSwimLaneBlockRotated"==b.Class?(a+=90,d.geometry.rotate90()):0<=mxUtils.indexOf(Vb,b.Class)?(a-=90,d.geometry.rotate90(),d.geometry.rotate90(),d.geometry.rotate90()):0<=mxUtils.indexOf(gb,b.Class)&&(a+=180,d.geometry.rotate90(),d.geometry.rotate90()),0!=a)?"rotation="+a+";":
|
|
|
|
|
""}function D(a){return null!=a.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function B(a,b){if(null!=a.FillColor&&0>mxUtils.indexOf(hb,b.Class))if("object"===typeof a.FillColor){if(null!=a.FillColor.cs&&1<a.FillColor.cs.length)return R(mxConstants.STYLE_FILLCOLOR,a.FillColor.cs[0].c.substring(0,7))+R(mxConstants.STYLE_GRADIENTCOLOR,a.FillColor.cs[1].c.substring(0,7))}else return"string"===typeof a.FillColor?R(mxConstants.STYLE_FILLCOLOR,a.FillColor.substring(0,7),"#FFFFFF"):R(mxConstants.STYLE_FILLCOLOR,
|
|
|
|
|
"none");return""}function F(a){return"dashed"==a.StrokeStyle?"dashed=1;":"dotted"==a.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==a.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dotdotdot"==a.StrokeStyle?"dashed=1;dashPattern=1 1;":""}function C(a){return R(mxConstants.STYLE_STROKEWIDTH,.6*parseFloat(a.LineWidth),"1")}function Z(g,l){var Z=p(l);if(null!=Z){var q=ib[Z.Class];null!=q&&(g.style+=q+";");q=null!=Z.Properties?Z.Properties:Z;if(null!=q){g.value=c(q);var e=g.style,K=m(q)+f(q)+b(q)+
|
|
|
|
|
a(q,g)+d(q)+h(q)+n(q)+A(q)+x(q)+E(q)+w(q,Z)+z(q,Z)+I(q,Z,g)+G(q,Z,g)+(q.FlipX?"flipH=1;":"")+(q.FlipY?"flipV=1;":"")+D(q)+B(q,Z)+F(q)+C(q);Z="ImageSearchBlock2"==Z.Class?"image="+q.URL+";":"";g.style=e+(K+Z);if(g.edge){g.style=null!=q.Rounding?g.style+("rounded=1;arcSize="+q.Rounding+";"):g.style+"rounded=0;";if("diagonal"!=q.Shape)if(null!=q.ElbowPoints)for(g.geometry.points=[],Z=0;Z<q.ElbowPoints.length;Z++)g.geometry.points.push(new mxPoint(Math.round(.6*q.ElbowPoints[Z].x+0),Math.round(.6*q.ElbowPoints[Z].y+
|
|
|
|
|
0)));else"elbow"==q.Shape?g.style=null!=q.Endpoint1.Block&&null!=q.Endpoint1.Block?g.style+"edgeStyle=orthogonalEdgeStyle;":g.style+"edgeStyle=elbowEdgeStyle;":null!=q.Endpoint1.Block&&null!=q.Endpoint1.Block&&(g.style+="edgeStyle=orthogonalEdgeStyle;","curve"==q.Shape&&(g.style+="curved=1;"));null!=q.Endpoint1.Style&&(g.style+="startArrow="+zb[q.Endpoint1.Style]+";");null!=q.Endpoint2.Style&&(g.style+="endArrow="+zb[q.Endpoint2.Style].replace(/startSize/g,"endSize")+";");fa(g,q.Endpoint1,!0);fa(g,
|
|
|
|
|
q.Endpoint2,!1)}}}}function K(a){var b=p(a).Properties.BoundingBox;null!=a.Class&&"AWS"===a.Class.substring(0,3)&&(b.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*b.x+0),Math.round(.6*b.y+0),Math.round(.6*b.w),Math.round(.6*b.h)),"html=1;whiteSpace=wrap;");v.vertex=!0;Z(v,a);return v}function N(a,b,d){d=2*(parseFloat(a.Location)-.5);a=new mxCell(c(a),new mxGeometry(d,0,0,0),"text;html=1;resizable=0;labelBackgroundColor=#ffffff;align=center;verticalAlign=middle;");a.geometry.relative=!0;a.vertex=
|
|
|
|
|
!0;b.insert(a);return b}function R(a,b,d,h){null!=b&&null!=h&&(b=h(b));return null!=b&&b!=d?a+"="+b+";":""}function fa(a,b,d){null!=b&&null!=b.LinkX&&null!=b.LinkY&&(a.style+=(d?"exitX":"entryX")+"="+b.LinkX+";"+(d?"exitY":"entryY")+"="+b.LinkY+";"+(d?"exitPerimeter":"entryPerimeter")+"=1;")}function aa(a,b,d,h,e,n){a.getModel().beginUpdate();try{var c=function(b,d){var e=null!=d.Endpoint1.Block?A[d.Endpoint1.Block]:null,h=null!=d.Endpoint2.Block?A[d.Endpoint2.Block]:null,n;n=new mxCell("",new mxGeometry(0,
|
|
|
|
|
0,100,100),"html=1;jettySize=18;");n.geometry.relative=!0;n.edge=!0;Z(n,b);var c=p(b).Properties,x=null!=c?c.TextAreas:b.TextAreas;if(null!=x){for(var E=0;null!=x["t"+E];){var k=x["t"+E];n=N(k,n);E++}for(E=1;null!=x["m"+E];)k=x["m"+E],n=N(k,n,b),E++;null!=x.Text&&(n=N(x,n,b));x=null!=c?c.TextAreas:b.TextAreas;null!=x.Message&&(n=N(x.Message,n,b))}null==e&&null!=d.Endpoint1&&n.geometry.setTerminalPoint(new mxPoint(Math.round(.6*d.Endpoint1.x),Math.round(.6*d.Endpoint1.y)),!0);null==h&&null!=d.Endpoint2&&
|
|
|
|
|
n.geometry.setTerminalPoint(new mxPoint(Math.round(.6*d.Endpoint2.x),Math.round(.6*d.Endpoint2.y)),!1);f.push(a.addCell(n,null,null,e,h))},f=[],A={},x=[],E=[],m=0;if(null!=b.Groups)for(var w in b.Groups){var g=b.Groups[w];g.id=w;if(1==g.Hidden&&null!=g.Members){0>mxUtils.indexOf(E,w)&&E.push(w);for(var q in g.Members)E=Ab(q,b.Groups,E)}}if(null!=b.Blocks)for(w in b.Blocks)g=b.Blocks[w],g.id=w,0>mxUtils.indexOf(E,w)&&(q=!1,null!=ib[g.Class]&&"mxCompositeShape"==ib[g.Class]&&(A[g.id]=ma(g,f,a),x.push(g),
|
|
|
|
|
q=!0),q||(A[g.id]=K(g),x.push(g)));else for(m=0;m<b.Objects.length;m++)g=b.Objects[m],null!=g.Action&&"mxCompositeShape"==ib[g.Action.Class]?A[g.id]=ma(g,f,a):g.IsBlock&&null!=g.Action&&null!=g.Action.Properties&&(A[g.id]=K(g)),x.push(g);x.sort(function(a,b){a=p(a);b=p(b);return null!=a.Properties&&null!=b.Properties?a.Properties.ZOrder-b.Properties.ZOrder:0});for(m=0;m<x.length;m++){var g=x[m],l=A[g.id];null!=l?f.push(a.addCell(l)):g.IsLine&&null!=g.Action&&null!=g.Action.Properties&&c(g,g.Action.Properties)}if(null!=
|
|
|
|
|
b.Lines)for(w in b.Lines)0>mxUtils.indexOf(E,w)&&(g=b.Lines[w],c(g,g));if(e&&null!=d&&null!=h){a.isGridEnabled()&&(d=a.snap(d),h=a.snap(h));var k=a.getBoundingBoxFromGeometry(f,!0);null!=k&&a.moveCells(f,d-k.x,h-k.y)}n||a.setSelectionCells(f)}finally{a.getModel().endUpdate()}}function ha(){var a=new Graph;a.setExtendParents(!1);a.setExtendParentsOnAdd(!1);a.setConstrainChildren(!1);a.setHtmlLabels(!0);a.getModel().maintainEdgeParent=!1;return a}function Aa(a,b,d,h,e,n,c,f){a=new mxCell("",new mxGeometry(a,
|
|
|
|
|
b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;c.insert(a);n=[a];d=sb.cloneCell(d);f.insertEdge(d,!1);a.insertEdge(d,!0);n.push(d);h.push(e.addCell(d,null,null,null,null))}function da(a,b,d,h,e,n,c,f,A){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;A.insert(a);d=new mxCell("",new mxGeometry(d,h,0,0),"strokeColor=none;fillColor=none;");d.vertex=!0;A.insert(d);f=[d];e=sb.cloneCell(e);a.insertEdge(e,!0);d.insertEdge(e,!1);f.push(e);n.push(c.addCell(e,
|
|
|
|
|
null,null,null,null))}function ma(l,K,N){var q=p(l),e=q.Properties,R=e.BoundingBox,u=Math.round(.6*R.w),t=Math.round(.6*R.h),aa=Math.round(.6*R.x+0),ha=Math.round(.6*R.y+0);v=new mxCell("",new mxGeometry(aa,ha,u,t),"html=1;whiteSpace=wrap;");v.vertex=!0;switch(null!=l.Class?l.Class:null!=q?q.Class:null){case "BraceNoteBlock":case "UI2BraceNoteBlock":var fa=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(fa=!0);var db=null,ma=null;fa?(db=new mxCell("",new mxGeometry(u-.125*t,0,.125*t,t),"shape=curlyBracket;rounded=1;"),
|
|
|
|
|
ma=new mxCell("",new mxGeometry(0,0,u-.125*t,t),"strokeColor=none;fillColor=none;")):(db=new mxCell("",new mxGeometry(0,0,.125*t,t),"shape=curlyBracket;rounded=1;flipH=1;"),ma=new mxCell("",new mxGeometry(.125*t,0,u-.125*t,t),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=G(e,q,v);db.vertex=!0;v.insert(db);db.style+=w(e,q)+z(e,q)+D(e)+F(e)+C(e);ma.vertex=!0;ma.value=c(e);v.insert(ma);ma.style+=m(e)+f(e)+b(e)+a(e,ma)+d(e)+h(e)+n(e)+A(e)+x(e)+E(e);break;case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":var Ub=
|
|
|
|
|
0;null!=e.Lanes&&(Ub=e.Lanes.length);v.style="strokeColor=none;fillColor=none;";for(var fb=0,Ha=[],k=0;k<Ub;k++){var kc=parseFloat(e.Lanes[k].p);Ha.push(new mxCell("",new mxGeometry(u*fb,0,u*kc,t),"shape=swimlane;startSize=25;"));Ha[k].vertex=!0;v.insert(Ha[k]);Ha[k].value=c(e["Lane_"+k]);Ha[k].style+=m(e["Lane_"+k])+f(e["Lane_"+k])+b(e["Lane_"+k])+a(e["Lane_"+k],Ha[k])+d(e["Lane_"+k])+h(e["Lane_"+k])+n(e["Lane_"+k])+A(e["Lane_"+k])+x(e["Lane_"+k])+E(e["Lane_"+k])+w(e,q)+z(e,q)+I(e,q,Ha[k])+G(e,q,
|
|
|
|
|
Ha[k])+(e.FlipX?"flipH=1;":"")+(e.FlipY?"flipV=1;":"")+D(e)+B(e,q)+F(e)+C(e);fb+=kc}break;case "AndroidDevice":if(null!=e.AndroidDeviceName){v.style="fillColor=#000000;strokeColor=#000000;";var cb=null,gb=null,hb=null;if("Tablet"==e.AndroidDeviceName||"Mini Tablet"==e.AndroidDeviceName)v.style+="shape=mxgraph.android.tab2;",cb=new mxCell("",new mxGeometry(.112*u,.077*t,.77*u,.85*t),""),e.KeyboardShown&&(gb=new mxCell("",new mxGeometry(.112*u,.727*t,.77*u,.2*t),"shape=mxgraph.android.keyboard;")),
|
|
|
|
|
e.FullScreen||(hb=new mxCell("",new mxGeometry(.112*u,.077*t,.77*u,.03*t),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*t+";"));else if("Large Phone"==e.AndroidDeviceName||"Phone"==e.AndroidDeviceName)v.style+="shape=mxgraph.android.phone2;",cb=new mxCell("",new mxGeometry(.04*u,.092*t,.92*u,.816*t),""),e.KeyboardShown&&(gb=new mxCell("",new mxGeometry(.04*u,.708*t,.92*u,.2*t),"shape=mxgraph.android.keyboard;")),e.FullScreen||(hb=new mxCell("",
|
|
|
|
|
new mxGeometry(.04*u,.092*t,.92*u,.03*t),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*t+";"));cb.vertex=!0;v.insert(cb);"Dark"==e.Scheme?cb.style+="fillColor=#111111;":"Light"==e.Scheme&&(cb.style+="fillColor=#ffffff;");null!=gb&&(gb.vertex=!0,v.insert(gb));null!=hb&&(hb.vertex=!0,v.insert(hb))}break;case "AndroidAlertDialog":var Ia=new mxCell("",new mxGeometry(0,0,u,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Ia.vertex=!0;v.insert(Ia);
|
|
|
|
|
var ja=new mxCell("",new mxGeometry(0,25,u,10),"shape=line;strokeColor=#33B5E5;");ja.vertex=!0;v.insert(ja);var yb=new mxCell("",new mxGeometry(0,30,u,t-30),"strokeColor=none;fillColor=none;verticalAlign=top;");yb.vertex=!0;v.insert(yb);var na=new mxCell("",new mxGeometry(0,t-25,.5*u,25),"fillColor=none;");na.vertex=!0;v.insert(na);var oa=new mxCell("",new mxGeometry(.5*u,t-25,.5*u,25),"fillColor=none;");oa.vertex=!0;v.insert(oa);Ia.value=c(e.DialogTitle);Ia.style+=g(e.DialogTitle);yb.value=c(e.DialogText);
|
|
|
|
|
yb.style+=g(e.DialogText);na.value=c(e.Button_0);na.style+=g(e.Button_0);oa.value=c(e.Button_1);oa.style+=g(e.Button_1);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",na.style+="strokeColor=#353535;",oa.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",na.style+="strokeColor=#E2E2E2;",oa.style+="strokeColor=#E2E2E2;");break;case "AndroidDateDialog":case "AndroidTimeDialog":Ia=new mxCell("",new mxGeometry(0,0,u,30),"strokeColor=none;fillColor=none;spacingLeft=9;");
|
|
|
|
|
Ia.vertex=!0;v.insert(Ia);Ia.value=c(e.DialogTitle);Ia.style+=g(e.DialogTitle);ja=new mxCell("",new mxGeometry(0,25,u,10),"shape=line;strokeColor=#33B5E5;");ja.vertex=!0;v.insert(ja);na=new mxCell("",new mxGeometry(0,t-25,.5*u,25),"fillColor=none;");na.vertex=!0;v.insert(na);na.value=c(e.Button_0);na.style+=g(e.Button_0);oa=new mxCell("",new mxGeometry(.5*u,t-25,.5*u,25),"fillColor=none;");oa.vertex=!0;v.insert(oa);oa.value=c(e.Button_1);oa.style+=g(e.Button_1);var lb=new mxCell("",new mxGeometry(.5*
|
|
|
|
|
u-4,41,8,4),"shape=triangle;direction=north;");lb.vertex=!0;v.insert(lb);var mb=new mxCell("",new mxGeometry(.25*u-4,41,8,4),"shape=triangle;direction=north;");mb.vertex=!0;v.insert(mb);var nb=new mxCell("",new mxGeometry(.75*u-4,41,8,4),"shape=triangle;direction=north;");nb.vertex=!0;v.insert(nb);var Bb=new mxCell("",new mxGeometry(.375*u,50,.2*u,15),"strokeColor=none;fillColor=none;");Bb.vertex=!0;v.insert(Bb);Bb.value=c(e.Label_1);Bb.style+=g(e.Label_1);var Cb=new mxCell("",new mxGeometry(.125*
|
|
|
|
|
u,50,.2*u,15),"strokeColor=none;fillColor=none;");Cb.vertex=!0;v.insert(Cb);Cb.value=c(e.Label_0);Cb.style+=g(e.Label_0);var ob=null;"AndroidDateDialog"==l.Class&&(ob=new mxCell("",new mxGeometry(.625*u,50,.2*u,15),"strokeColor=none;fillColor=none;"),ob.vertex=!0,v.insert(ob),ob.value=c(e.Label_2),ob.style+=g(e.Label_2));var Ja=new mxCell("",new mxGeometry(.43*u,60,.14*u,10),"shape=line;strokeColor=#33B5E5;");Ja.vertex=!0;v.insert(Ja);var Ka=new mxCell("",new mxGeometry(.18*u,60,.14*u,10),"shape=line;strokeColor=#33B5E5;");
|
|
|
|
|
Ka.vertex=!0;v.insert(Ka);var ib=new mxCell("",new mxGeometry(.68*u,60,.14*u,10),"shape=line;strokeColor=#33B5E5;");ib.vertex=!0;v.insert(ib);var Db=new mxCell("",new mxGeometry(.375*u,65,.2*u,15),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.value=c(e.Label_4);Db.style+=g(e.Label_4);var pb=null;"AndroidTimeDialog"==l.Class&&(pb=new mxCell("",new mxGeometry(.3*u,65,.1*u,15),"strokeColor=none;fillColor=none;"),pb.vertex=!0,v.insert(pb),pb.value=c(e.Label_Colon),pb.style+=g(e.Label_Colon));
|
|
|
|
|
var Eb=new mxCell("",new mxGeometry(.125*u,65,.2*u,15),"strokeColor=none;fillColor=none;");Eb.vertex=!0;v.insert(Eb);Eb.value=c(e.Label_3);Eb.style+=g(e.Label_3);var Fb=new mxCell("",new mxGeometry(.625*u,65,.2*u,15),"strokeColor=none;fillColor=none;");Fb.vertex=!0;v.insert(Fb);Fb.value=c(e.Label_5);Fb.style+=g(e.Label_5);var Vb=new mxCell("",new mxGeometry(.43*u,75,.14*u,10),"shape=line;strokeColor=#33B5E5;");Vb.vertex=!0;v.insert(Vb);var zb=new mxCell("",new mxGeometry(.18*u,75,.14*u,10),"shape=line;strokeColor=#33B5E5;");
|
|
|
|
|
zb.vertex=!0;v.insert(zb);var Ab=new mxCell("",new mxGeometry(.68*u,75,.14*u,10),"shape=line;strokeColor=#33B5E5;");Ab.vertex=!0;v.insert(Ab);var Gb=new mxCell("",new mxGeometry(.375*u,80,.2*u,15),"strokeColor=none;fillColor=none;");Gb.vertex=!0;v.insert(Gb);Gb.value=c(e.Label_7);Gb.style+=g(e.Label_7);var Hb=new mxCell("",new mxGeometry(.125*u,80,.2*u,15),"strokeColor=none;fillColor=none;");Hb.vertex=!0;v.insert(Hb);Hb.value=c(e.Label_6);Hb.style+=g(e.Label_6);var Ib=new mxCell("",new mxGeometry(.625*
|
|
|
|
|
u,80,.2*u,15),"strokeColor=none;fillColor=none;");Ib.vertex=!0;v.insert(Ib);Ib.value=c(e.Label_8);Ib.style+=g(e.Label_8);var qb=new mxCell("",new mxGeometry(.5*u-4,99,8,4),"shape=triangle;direction=south;");qb.vertex=!0;v.insert(qb);var rb=new mxCell("",new mxGeometry(.25*u-4,99,8,4),"shape=triangle;direction=south;");rb.vertex=!0;v.insert(rb);var tb=new mxCell("",new mxGeometry(.75*u-4,99,8,4),"shape=triangle;direction=south;");tb.vertex=!0;v.insert(tb);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",
|
|
|
|
|
na.style+="strokeColor=#353535;",oa.style+="strokeColor=#353535;",lb.style+="strokeColor=none;fillColor=#7E7E7E;",mb.style+="strokeColor=none;fillColor=#7E7E7E;",nb.style+="strokeColor=none;fillColor=#7E7E7E;",qb.style+="strokeColor=none;fillColor=#7E7E7E;",rb.style+="strokeColor=none;fillColor=#7E7E7E;",tb.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",na.style+="strokeColor=#E2E2E2;",oa.style+="strokeColor=#E2E2E2;",lb.style+="strokeColor=none;fillColor=#939393;",
|
|
|
|
|
mb.style+="strokeColor=none;fillColor=#939393;",nb.style+="strokeColor=none;fillColor=#939393;",qb.style+="strokeColor=none;fillColor=#939393;",rb.style+="strokeColor=none;fillColor=#939393;",tb.style+="strokeColor=none;fillColor=#939393;");break;case "AndroidListItems":var ua=t,$a=0;if(e.ShowHeader){var $a=8,Jb=new mxCell("",new mxGeometry(0,0,u,$a),"strokeColor=none;fillColor=none;");Jb.vertex=!0;v.insert(Jb);Jb.value=c(e.Header);Jb.style+=g(e.Header);var ua=ua-$a,lc=new mxCell("",new mxGeometry(0,
|
|
|
|
|
$a-2,u,4),"shape=line;strokeColor=#999999;");lc.vertex=!0;v.insert(lc)}var La=parseInt(e.Items);0<La&&(ua/=La);for(var L=[],ja=[],k=0;k<La;k++)L[k]=new mxCell("",new mxGeometry(0,$a+k*ua,u,ua),"strokeColor=none;fillColor=none;"),L[k].vertex=!0,v.insert(L[k]),L[k].value=c(e["Item_"+k]),L[k].style+=g(e["Item_"+k]),0<k&&(ja[k]=new mxCell("",new mxGeometry(0,$a+k*ua-2,u,4),"shape=line;"),ja[k].vertex=!0,v.insert(ja[k]),ja[k].style="Dark"==e.Scheme?ja[k].style+"strokeColor=#ffffff;":ja[k].style+"strokeColor=#D9D9D9;");
|
|
|
|
|
v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";break;case "AndroidTabs":var Ma=parseInt(e.Tabs),Ba=u;0<Ma&&(Ba/=Ma);for(var ca=[],ja=[],k=0;k<Ma;k++)ca[k]=new mxCell("",new mxGeometry(k*Ba,0,Ba,t),"strokeColor=none;fillColor=none;"),ca[k].vertex=!0,v.insert(ca[k]),ca[k].value=c(e["Tab_"+k]),ca[k].style+=g(e["Tab_"+k]),0<k&&(ja[k]=new mxCell("",new mxGeometry(k*Ba-2,.2*t,4,.6*t),"shape=line;direction=north;"),ja[k].vertex=!0,v.insert(ja[k]),
|
|
|
|
|
ja[k].style="Dark"==e.Scheme?ja[k].style+"strokeColor=#484848;":ja[k].style+"strokeColor=#CCCCCC;");var mc=new mxCell("",new mxGeometry(e.Selected*Ba+2,t-3,Ba-4,3),"strokeColor=none;fillColor=#33B5E5;");mc.vertex=!0;v.insert(mc);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(aa),Math.round(ha+.25*t),Math.round(u),Math.round(.5*t)),"html=1;whiteSpace=wrap;");
|
|
|
|
|
v.vertex=!0;var Kb=new mxCell("",new mxGeometry(0,0,u*e.BarPosition,Math.round(.5*t)),"strokeColor=none;fillColor=#33B5E5;");Kb.vertex=!0;v.insert(Kb);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";break;case "AndroidImageBlock":v.style="Dark"==e.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";
|
|
|
|
|
break;case "AndroidTextBlock":v.style="Dark"==e.Scheme?e.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":e.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=c(e.Label);v.style+=g(e.Label);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(e.BarBackground){case "Blue":v.style+="fillColor=#002E3E;";break;case "Gray":v.style+="fillColor=#DDDDDD;";break;case "Dark Gray":v.style+=
|
|
|
|
|
"fillColor=#474747;";break;case "White":v.style+="fillColor=#ffffff;"}if(e.HighlightShow){var ab=null,ab=e.HighlightTop?new mxCell("",new mxGeometry(0,0,u,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,t-2,u,2),"strokeColor=none;");ab.vertex=!0;v.insert(ab);switch(e.HighlightColor){case "Blue":ab.style+="fillColor=#33B5E5;";break;case "Dark Gray":ab.style+="fillColor=#B0B0B0;";break;case "White":ab.style+="fillColor=#ffffff;"}}if(e.VlignShow){var ub=new mxCell("",new mxGeometry(20,5,2,t-10),
|
|
|
|
|
"shape=line;direction=north;");ub.vertex=!0;v.insert(ub);switch(e.VlignColor){case "Blue":ub.style+="strokeColor=#244C5A;";break;case "White":ub.style+="strokeColor=#ffffff;"}}break;case "AndroidButton":v.value=c(e.Label);v.style+=g(e.Label)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==e.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";break;case "AndroidTextBox":v.value=c(e.Label);v.style+=g(e.Label);var Lb=new mxCell("",
|
|
|
|
|
new mxGeometry(2,t-6,u-4,4),"shape=partialRectangle;top=0;fillColor=none;");Lb.vertex=!0;v.insert(Lb);v.style="Dark"==e.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";Lb.style=e.TextFocused?Lb.style+"strokeColor=#33B5E5;":Lb.style+"strokeColor=#A9A9A9;";break;case "AndroidRadioButton":var jb=null;e.Checked&&(jb=new mxCell("",new mxGeometry(.15*u,.15*t,.7*u,.7*t),"shape=ellipse;fillColor=#33B5E5;strokeWidth=0.6;"),jb.vertex=!0,v.insert(jb));"Dark"==
|
|
|
|
|
e.Scheme?(v.style+="shape=ellipse;strokeWidth=0.6;strokeColor=#272727;",e.Checked?(jb.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;strokeWidth=0.6;fillColor=#ffffff;strokeColor=#5C5C5C;",e.Checked&&(jb.style+="strokeColor=#999999;"));break;case "AndroidCheckBox":var cc=null;e.Checked&&(cc=new mxCell("",new mxGeometry(.25*u,.05*-t,u,.8*t),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),cc.vertex=!0,v.insert(cc));
|
|
|
|
|
v.style="Dark"==e.Scheme?v.style+"strokeWidth=0.6;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=0.6;strokeColor=#5C5C5C;fillColor=#ffffff;";break;case "AndroidToggle":v.style="Dark"==e.Scheme?e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";break;case "AndroidSlider":v.style+=
|
|
|
|
|
"shape=mxgraph.android.progressScrubberFocused;dx="+e.BarPosition+";fillColor=#33b5e5;";break;case "iOSSegmentedControl":Ma=parseInt(e.Tabs);Ba=u;v.style+="strokeColor=none;fillColor=none;";0<Ma&&(Ba/=Ma);ca=[];ja=[];for(k=0;k<Ma;k++)ca[k]=new mxCell("",new mxGeometry(k*Ba,0,Ba,t),"strokeColor="+e.FillColor+";"),ca[k].vertex=!0,v.insert(ca[k]),ca[k].value=c(e["Tab_"+k]),ca[k].style+=g(e["Tab_"+k]),ca[k].style=e.Selected==k?ca[k].style+B(e,q):ca[k].style+"fillColor=none;";break;case "iOSSlider":v.style+=
|
|
|
|
|
"shape=mxgraph.ios7ui.slider;strokeColor="+e.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*e.BarPosition+";";break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(aa),Math.round(ha+.25*t),Math.round(u),Math.round(.5*t)),"html=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;Kb=new mxCell("",new mxGeometry(0,0,u*e.BarPosition,Math.round(.5*t)),"strokeColor=none;"+B(e,q));Kb.vertex=!0;v.insert(Kb);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;"+
|
|
|
|
|
B(e,q)+"strokeColor=#D6D6D6;";break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;"+B(e,q)+"strokeColor=#000000;";var T=new mxCell(c(e.Text),new mxGeometry(.35*u,0,.3*u,t),"strokeColor=none;fillColor=none;");T.vertex=!0;v.insert(T);T.style+=g(e.Text);var wa=new mxCell(c(e.Carrier),new mxGeometry(.09*u,0,.2*u,t),"strokeColor=none;fillColor=none;");wa.vertex=!0;v.insert(wa);wa.style+=g(e.Carrier);break;case "iOSSearchBar":v.style+="strokeColor=none;"+B(e,q)+z(e,q)+I(e,q,v)+g(e.Search);v.value=
|
|
|
|
|
c(e.Search);var W=new mxCell("",new mxGeometry(.3*u,.3*t,.4*t,.4*t),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");W.vertex=!0;v.insert(W);break;case "iOSNavBar":v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+B(e,q)+z(e,q)+g(e.Title);v.value=c(e.Title);T=new mxCell(c(e.LeftText),new mxGeometry(.03*u,0,.3*u,t),"strokeColor=none;fillColor=none;");T.vertex=!0;v.insert(T);T.style+=g(e.LeftText);wa=new mxCell(c(e.RightText),new mxGeometry(.65*
|
|
|
|
|
u,0,.3*u,t),"strokeColor=none;fillColor=none;");wa.vertex=!0;v.insert(wa);wa.style+=g(e.RightText);W=new mxCell("",new mxGeometry(.02*u,.2*t,.3*t,.5*t),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");W.vertex=!0;v.insert(W);break;case "iOSTabs":Ma=parseInt(e.Tabs);Ba=u;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;"+B(e,q)+z(e,q);0<Ma&&(Ba/=Ma);ca=[];ja=[];for(k=0;k<Ma;k++)ca[k]=new mxCell("",new mxGeometry(k*Ba,0,Ba,t),"strokeColor=none;"),ca[k].vertex=
|
|
|
|
|
!0,v.insert(ca[k]),ca[k].value=c(e["Tab_"+k]),ca[k].style+=m(e["Tab_"+k]),ca[k].style+=f(e["Tab_"+k])+b(e["Tab_"+k])+a(e["Tab_"+k])+d(e["Tab_"+k])+h(e["Tab_"+k])+n(e["Tab_"+k])+A(e["Tab_"+k])+x(e["Tab_"+k]),ca[k].style+="verticalAlign=bottom;",ca[k].style=e.Selected==k?ca[k].style+"fillColor=#BBBBBB;":ca[k].style+"fillColor=none;";break;case "iOSDatePicker":var Na=new mxCell("",new mxGeometry(0,0,.5*u,.2*t),"strokeColor=none;fillColor=none;");Na.vertex=!0;v.insert(Na);Na.value=c(e.Option11);Na.style+=
|
|
|
|
|
g(e.Option11);var Oa=new mxCell("",new mxGeometry(.5*u,0,.15*u,.2*t),"strokeColor=none;fillColor=none;");Oa.vertex=!0;v.insert(Oa);Oa.value=c(e.Option21);Oa.style+=g(e.Option21);var Pa=new mxCell("",new mxGeometry(.65*u,0,.15*u,.2*t),"strokeColor=none;fillColor=none;");Pa.vertex=!0;v.insert(Pa);Pa.value=c(e.Option31);Pa.style+=g(e.Option31);var Qa=new mxCell("",new mxGeometry(0,.2*t,.5*u,.2*t),"strokeColor=none;fillColor=none;");Qa.vertex=!0;v.insert(Qa);Qa.value=c(e.Option12);Qa.style+=g(e.Option12);
|
|
|
|
|
var Ra=new mxCell("",new mxGeometry(.5*u,.2*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Ra.vertex=!0;v.insert(Ra);Ra.value=c(e.Option22);Ra.style+=g(e.Option22);var Sa=new mxCell("",new mxGeometry(.65*u,.2*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Sa.vertex=!0;v.insert(Sa);Sa.value=c(e.Option32);Sa.style+=g(e.Option32);var pa=new mxCell("",new mxGeometry(0,.4*t,.5*u,.2*t),"strokeColor=none;fillColor=none;");pa.vertex=!0;v.insert(pa);pa.value=c(e.Option13);pa.style+=g(e.Option13);var qa=
|
|
|
|
|
new mxCell("",new mxGeometry(.5*u,.4*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");qa.vertex=!0;v.insert(qa);qa.value=c(e.Option23);qa.style+=g(e.Option23);var Ta=new mxCell("",new mxGeometry(.65*u,.4*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Ta.vertex=!0;v.insert(Ta);Ta.value=c(e.Option33);Ta.style+=g(e.Option33);var ra=new mxCell("",new mxGeometry(.8*u,.4*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");ra.vertex=!0;v.insert(ra);ra.value=c(e.Option43);ra.style+=g(e.Option43);var sa=
|
|
|
|
|
new mxCell("",new mxGeometry(0,.6*t,.5*u,.2*t),"strokeColor=none;fillColor=none;");sa.vertex=!0;v.insert(sa);sa.value=c(e.Option14);sa.style+=g(e.Option14);var Ua=new mxCell("",new mxGeometry(.5*u,.6*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Ua.vertex=!0;v.insert(Ua);Ua.value=c(e.Option24);Ua.style+=g(e.Option24);var Va=new mxCell("",new mxGeometry(.65*u,.6*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Va.vertex=!0;v.insert(Va);Va.value=c(e.Option34);Va.style+=g(e.Option34);var Wa=new mxCell("",
|
|
|
|
|
new mxGeometry(.8*u,.6*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Wa.vertex=!0;v.insert(Wa);Wa.value=c(e.Option44);Wa.style+=g(e.Option44);var ta=new mxCell("",new mxGeometry(0,.8*t,.5*u,.2*t),"strokeColor=none;fillColor=none;");ta.vertex=!0;v.insert(ta);ta.value=c(e.Option15);ta.style+=g(e.Option15);var Xa=new mxCell("",new mxGeometry(.5*u,.8*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Xa.vertex=!0;v.insert(Xa);Xa.value=c(e.Option25);Xa.style+=g(e.Option25);var Ya=new mxCell("",new mxGeometry(.65*
|
|
|
|
|
u,.8*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Ya.vertex=!0;v.insert(Ya);Ya.value=c(e.Option35);Ya.style+=g(e.Option35);Ja=new mxCell("",new mxGeometry(0,.4*t-2,u,4),"shape=line;strokeColor=#888888;");Ja.vertex=!0;v.insert(Ja);Ka=new mxCell("",new mxGeometry(0,.6*t-2,u,4),"shape=line;strokeColor=#888888;");Ka.vertex=!0;v.insert(Ka);v.style+=B(e,q)+z(e,q)+"strokeColor=none;";break;case "iOSTimePicker":Na=new mxCell("",new mxGeometry(0,0,.25*u,.2*t),"strokeColor=none;fillColor=none;");Na.vertex=
|
|
|
|
|
!0;v.insert(Na);Na.value=c(e.Option11);Na.style+=g(e.Option11);Oa=new mxCell("",new mxGeometry(.25*u,0,.3*u,.2*t),"strokeColor=none;fillColor=none;");Oa.vertex=!0;v.insert(Oa);Oa.value=c(e.Option21);Oa.style+=g(e.Option21);Qa=new mxCell("",new mxGeometry(0,.2*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");Qa.vertex=!0;v.insert(Qa);Qa.value=c(e.Option12);Qa.style+=g(e.Option12);Ra=new mxCell("",new mxGeometry(.25*u,.2*t,.3*u,.2*t),"strokeColor=none;fillColor=none;");Ra.vertex=!0;v.insert(Ra);Ra.value=
|
|
|
|
|
c(e.Option22);Ra.style+=g(e.Option22);pa=new mxCell("",new mxGeometry(0,.4*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");pa.vertex=!0;v.insert(pa);pa.value=c(e.Option13);pa.style+=g(e.Option13);qa=new mxCell("",new mxGeometry(.25*u,.4*t,.3*u,.2*t),"strokeColor=none;fillColor=none;");qa.vertex=!0;v.insert(qa);qa.value=c(e.Option23);qa.style+=g(e.Option23);ra=new mxCell("",new mxGeometry(.7*u,.4*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");ra.vertex=!0;v.insert(ra);ra.value=c(e.Option33);ra.style+=
|
|
|
|
|
g(e.Option33);sa=new mxCell("",new mxGeometry(0,.6*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");sa.vertex=!0;v.insert(sa);sa.value=c(e.Option14);sa.style+=g(e.Option14);Ua=new mxCell("",new mxGeometry(.25*u,.6*t,.3*u,.2*t),"strokeColor=none;fillColor=none;");Ua.vertex=!0;v.insert(Ua);Ua.value=c(e.Option24);Ua.style+=g(e.Option24);Wa=new mxCell("",new mxGeometry(.7*u,.6*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Wa.vertex=!0;v.insert(Wa);Wa.value=c(e.Option34);Wa.style+=g(e.Option34);ta=
|
|
|
|
|
new mxCell("",new mxGeometry(0,.8*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");ta.vertex=!0;v.insert(ta);ta.value=c(e.Option15);ta.style+=g(e.Option15);Xa=new mxCell("",new mxGeometry(.25*u,.8*t,.3*u,.2*t),"strokeColor=none;fillColor=none;");Xa.vertex=!0;v.insert(Xa);Xa.value=c(e.Option25);Xa.style+=g(e.Option25);Ja=new mxCell("",new mxGeometry(0,.4*t-2,u,4),"shape=line;strokeColor=#888888;");Ja.vertex=!0;v.insert(Ja);Ka=new mxCell("",new mxGeometry(0,.6*t-2,u,4),"shape=line;strokeColor=#888888;");
|
|
|
|
|
Ka.vertex=!0;v.insert(Ka);v.style+=B(e,q)+z(e,q)+"strokeColor=none;";break;case "iOSCountdownPicker":Pa=new mxCell("",new mxGeometry(.45*u,0,.2*u,.2*t),"strokeColor=none;fillColor=none;");Pa.vertex=!0;v.insert(Pa);Pa.value=c(e.Option31);Pa.style+=g(e.Option31);Sa=new mxCell("",new mxGeometry(.45*u,.2*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");Sa.vertex=!0;v.insert(Sa);Sa.value=c(e.Option32);Sa.style+=g(e.Option32);pa=new mxCell("",new mxGeometry(0,.4*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");
|
|
|
|
|
pa.vertex=!0;v.insert(pa);pa.value=c(e.Option13);pa.style+=g(e.Option13);qa=new mxCell("",new mxGeometry(.2*u,.4*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");qa.vertex=!0;v.insert(qa);qa.value=c(e.Option23);qa.style+=g(e.Option23);Ta=new mxCell("",new mxGeometry(.45*u,.4*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");Ta.vertex=!0;v.insert(Ta);Ta.value=c(e.Option33);Ta.style+=g(e.Option33);ra=new mxCell("",new mxGeometry(.6*u,.4*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");ra.vertex=!0;
|
|
|
|
|
v.insert(ra);ra.value=c(e.Option43);ra.style+=g(e.Option43);sa=new mxCell("",new mxGeometry(0,.6*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");sa.vertex=!0;v.insert(sa);sa.value=c(e.Option14);sa.style+=g(e.Option14);Va=new mxCell("",new mxGeometry(.45*u,.6*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");Va.vertex=!0;v.insert(Va);Va.value=c(e.Option34);Va.style+=g(e.Option34);ta=new mxCell("",new mxGeometry(0,.8*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");ta.vertex=!0;v.insert(ta);ta.value=
|
|
|
|
|
c(e.Option15);ta.style+=g(e.Option15);Ya=new mxCell("",new mxGeometry(.45*u,.8*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");Ya.vertex=!0;v.insert(Ya);Ya.value=c(e.Option35);Ya.style+=g(e.Option35);Ja=new mxCell("",new mxGeometry(0,.4*t-2,u,4),"shape=line;strokeColor=#888888;");Ja.vertex=!0;v.insert(Ja);Ka=new mxCell("",new mxGeometry(0,.6*t-2,u,4),"shape=line;strokeColor=#888888;");Ka.vertex=!0;v.insert(Ka);v.style+=B(e,q)+z(e,q)+"strokeColor=none;";break;case "iOSBasicCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+
|
|
|
|
|
.6*e.SeparatorInset+";";v.style+=m(e.text)+f(e.text)+b(e.text)+E(e.text);v.value=c(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);break;case "DetailDisclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);var ia=new mxCell("",new mxGeometry(.79*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
|
|
|
|
|
ia.vertex=!0;v.insert(ia);break;case "DetailIndicator":ia=new mxCell("",new mxGeometry(.87*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=!0;v.insert(ia);break;case "CheckMark":W=new mxCell("",new mxGeometry(.89*u,.37*t,.4*t,.26*t),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),W.vertex=!0,v.insert(W)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+
|
|
|
|
|
.6*e.SeparatorInset+";";v.style+=m(e.subtext)+f(e.subtext)+b(e.subtext);v.value=c(e.subtext);var ka=new mxCell("",new mxGeometry(0,.4*t,u,.6*t),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.6*e.SeparatorInset+";");ka.vertex=!0;v.insert(ka);ka.style+=m(e.text)+f(e.text)+b(e.text);ka.value=c(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
|
|
|
|
|
W.vertex=!0;v.insert(W);break;case "DetailDisclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);ia=new mxCell("",new mxGeometry(.79*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=!0;v.insert(ia);break;case "DetailIndicator":ia=new mxCell("",new mxGeometry(.87*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=
|
|
|
|
|
!0;v.insert(ia);break;case "CheckMark":W=new mxCell("",new mxGeometry(.89*u,.37*t,.4*t,.26*t),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),W.vertex=!0,v.insert(W)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+.6*e.SeparatorInset+";";v.style+=m(e.subtext)+f(e.subtext)+b(e.subtext);v.value=c(e.subtext);ka=null;switch(e.AccessoryIndicatorType){case "Disclosure":W=
|
|
|
|
|
new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);ka=new mxCell("",new mxGeometry(.55*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);ia=new mxCell("",new mxGeometry(.79*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
|
|
|
|
|
ia.vertex=!0;v.insert(ia);ka=new mxCell("",new mxGeometry(.45*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":ia=new mxCell("",new mxGeometry(.87*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=!0;v.insert(ia);ka=new mxCell("",new mxGeometry(.52*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":W=new mxCell("",new mxGeometry(.89*u,.37*t,.4*t,.26*t),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");
|
|
|
|
|
W.vertex=!0;v.insert(W);ka=new mxCell("",new mxGeometry(.55*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:ka=new mxCell("",new mxGeometry(.65*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;")}ka.vertex=!0;v.insert(ka);ka.style+=m(e.text)+f(e.text)+b(e.text);ka.value=c(e.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";var Ga=new mxCell("",new mxGeometry(0,0,.25*
|
|
|
|
|
u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Ga.vertex=!0;v.insert(Ga);Ga.style+=m(e.subtext)+f(e.subtext)+b(e.subtext);Ga.value=c(e.subtext);ka=new mxCell("",new mxGeometry(.25*u,0,.5*u,t),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");ka.vertex=!0;v.insert(ka);ka.style+=m(e.text)+f(e.text)+b(e.text);ka.value=c(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":W=new mxCell("",new mxGeometry(.91*
|
|
|
|
|
u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);break;case "DetailDisclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);ia=new mxCell("",new mxGeometry(.79*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=!0;v.insert(ia);break;case "DetailIndicator":ia=new mxCell("",new mxGeometry(.87*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
|
|
|
|
|
ia.vertex=!0;v.insert(ia);break;case "CheckMark":W=new mxCell("",new mxGeometry(.89*u,.37*t,.4*t,.26*t),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),W.vertex=!0,v.insert(W)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";T=new mxCell("",new mxGeometry(0,0,u,.4*t),"fillColor=none;strokeColor=none;spacing=10;align=left;");T.vertex=!0;v.insert(T);T.style+=m(e.text)+f(e.text)+b(e.text);T.value=c(e.text);
|
|
|
|
|
wa=new mxCell("",new mxGeometry(0,.6*t,u,.4*t),"fillColor=none;strokeColor=none;spacing=10;align=left;");wa.vertex=!0;v.insert(wa);wa.style+=m(e["bottom-text"])+f(e["bottom-text"])+b(e["bottom-text"]);wa.value=c(e["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.style+=m(e.text)+f(e.text)+b(e.text);v.value=c(e.text);break;case "SMPage":if(e.Group){v.style+="strokeColor=none;fillColor=none;";var r=new mxCell("",
|
|
|
|
|
new mxGeometry(0,0,.9*u,.9*t),"part=1;");r.vertex=!0;v.insert(r);r.style+=w(e,q)+B(e,q)+z(e,q)+D(e)+C(e);var y=new mxCell("",new mxGeometry(.1*u,.1*t,.9*u,.9*t),"part=1;");y.vertex=!0;v.insert(y);y.style+=w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+g(e);y.value=c(e.Text);e.Future&&(r.style+="dashed=1;",y.style+="dashed=1;")}else e.Future&&(v.style+="dashed=1;"),v.style+=w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+g(e),v.value=c(e.Text);break;case "SMHome":case "SMPrint":case "SMSearch":case "SMSettings":case "SMSitemap":case "SMSuccess":case "SMVideo":case "SMAudio":case "SMCalendar":case "SMChart":case "SMCloud":case "SMDocument":case "SMForm":case "SMGame":case "SMUpload":v.style+=
|
|
|
|
|
"none");return""}function F(a){return"dashed"==a.StrokeStyle?"dashed=1;":"dotted"==a.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==a.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dotdotdot"==a.StrokeStyle?"dashed=1;dashPattern=1 1;":""}function C(a){return R(mxConstants.STYLE_STROKEWIDTH,.6*parseFloat(a.LineWidth),"1")}function Y(g,l){var Y=p(l);if(null!=Y){var q=ib[Y.Class];null!=q&&(g.style+=q+";");q=null!=Y.Properties?Y.Properties:Y;if(null!=q){g.value=c(q);var e=g.style,K=m(q)+f(q)+b(q)+
|
|
|
|
|
a(q,g)+d(q)+h(q)+n(q)+A(q)+x(q)+E(q)+w(q,Y)+z(q,Y)+I(q,Y,g)+G(q,Y,g)+(q.FlipX?"flipH=1;":"")+(q.FlipY?"flipV=1;":"")+D(q)+B(q,Y)+F(q)+C(q);Y="ImageSearchBlock2"==Y.Class?"image="+q.URL+";":"UserImage2Block"==Y.Class&&null!=q.ImageFillProps&&null!=q.ImageFillProps.url?"image="+q.ImageFillProps.url+";":"";g.style=e+(K+Y);if(g.edge){g.style=null!=q.Rounding?g.style+("rounded=1;arcSize="+q.Rounding+";"):g.style+"rounded=0;";if("diagonal"!=q.Shape)if(null!=q.ElbowPoints)for(g.geometry.points=[],Y=0;Y<
|
|
|
|
|
q.ElbowPoints.length;Y++)g.geometry.points.push(new mxPoint(Math.round(.6*q.ElbowPoints[Y].x+0),Math.round(.6*q.ElbowPoints[Y].y+0)));else"elbow"==q.Shape?g.style=null!=q.Endpoint1.Block&&null!=q.Endpoint1.Block?g.style+"edgeStyle=orthogonalEdgeStyle;":g.style+"edgeStyle=elbowEdgeStyle;":null!=q.Endpoint1.Block&&null!=q.Endpoint1.Block&&(g.style+="edgeStyle=orthogonalEdgeStyle;","curve"==q.Shape&&(g.style+="curved=1;"));null!=q.Endpoint1.Style&&(g.style+="startArrow="+zb[q.Endpoint1.Style]+";");null!=
|
|
|
|
|
q.Endpoint2.Style&&(g.style+="endArrow="+zb[q.Endpoint2.Style].replace(/startSize/g,"endSize")+";");fa(g,q.Endpoint1,!0);fa(g,q.Endpoint2,!1)}}}}function K(a){var b=p(a).Properties.BoundingBox;null!=a.Class&&"AWS"===a.Class.substring(0,3)&&(b.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*b.x+0),Math.round(.6*b.y+0),Math.round(.6*b.w),Math.round(.6*b.h)),"html=1;whiteSpace=wrap;");v.vertex=!0;Y(v,a);return v}function N(a,b,d){d=2*(parseFloat(a.Location)-.5);a=new mxCell(c(a),new mxGeometry(d,
|
|
|
|
|
0,0,0),"text;html=1;resizable=0;labelBackgroundColor=#ffffff;align=center;verticalAlign=middle;");a.geometry.relative=!0;a.vertex=!0;b.insert(a);return b}function R(a,b,d,h){null!=b&&null!=h&&(b=h(b));return null!=b&&b!=d?a+"="+b+";":""}function fa(a,b,d){null!=b&&null!=b.LinkX&&null!=b.LinkY&&(a.style+=(d?"exitX":"entryX")+"="+b.LinkX+";"+(d?"exitY":"entryY")+"="+b.LinkY+";"+(d?"exitPerimeter":"entryPerimeter")+"=1;")}function aa(a,b,d,h,e,n){a.getModel().beginUpdate();try{var c=function(b,d){var e=
|
|
|
|
|
null!=d.Endpoint1.Block?A[d.Endpoint1.Block]:null,h=null!=d.Endpoint2.Block?A[d.Endpoint2.Block]:null,n;n=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");n.geometry.relative=!0;n.edge=!0;Y(n,b);var c=p(b).Properties,x=null!=c?c.TextAreas:b.TextAreas;if(null!=x){for(var E=0;null!=x["t"+E];){var k=x["t"+E];n=N(k,n);E++}for(E=1;null!=x["m"+E];)k=x["m"+E],n=N(k,n,b),E++;null!=x.Text&&(n=N(x,n,b));x=null!=c?c.TextAreas:b.TextAreas;null!=x.Message&&(n=N(x.Message,n,b))}null==e&&null!=
|
|
|
|
|
d.Endpoint1&&n.geometry.setTerminalPoint(new mxPoint(Math.round(.6*d.Endpoint1.x),Math.round(.6*d.Endpoint1.y)),!0);null==h&&null!=d.Endpoint2&&n.geometry.setTerminalPoint(new mxPoint(Math.round(.6*d.Endpoint2.x),Math.round(.6*d.Endpoint2.y)),!1);f.push(a.addCell(n,null,null,e,h))},f=[],A={},x=[],E=[],m=0;if(null!=b.Groups)for(var w in b.Groups){var g=b.Groups[w];g.id=w;if(1==g.Hidden&&null!=g.Members){0>mxUtils.indexOf(E,w)&&E.push(w);for(var q in g.Members)E=Ab(q,b.Groups,E)}}if(null!=b.Blocks)for(w in b.Blocks)g=
|
|
|
|
|
b.Blocks[w],g.id=w,0>mxUtils.indexOf(E,w)&&(q=!1,null!=ib[g.Class]&&"mxCompositeShape"==ib[g.Class]&&(A[g.id]=ma(g,f,a),x.push(g),q=!0),q||(A[g.id]=K(g),x.push(g)));else for(m=0;m<b.Objects.length;m++)g=b.Objects[m],null!=g.Action&&"mxCompositeShape"==ib[g.Action.Class]?A[g.id]=ma(g,f,a):g.IsBlock&&null!=g.Action&&null!=g.Action.Properties&&(A[g.id]=K(g)),x.push(g);x.sort(function(a,b){a=p(a);b=p(b);return null!=a.Properties&&null!=b.Properties?a.Properties.ZOrder-b.Properties.ZOrder:0});for(m=0;m<
|
|
|
|
|
x.length;m++){var g=x[m],l=A[g.id];null!=l?f.push(a.addCell(l)):g.IsLine&&null!=g.Action&&null!=g.Action.Properties&&c(g,g.Action.Properties)}if(null!=b.Lines)for(w in b.Lines)0>mxUtils.indexOf(E,w)&&(g=b.Lines[w],c(g,g));if(e&&null!=d&&null!=h){a.isGridEnabled()&&(d=a.snap(d),h=a.snap(h));var k=a.getBoundingBoxFromGeometry(f,!0);null!=k&&a.moveCells(f,d-k.x,h-k.y)}n||a.setSelectionCells(f)}finally{a.getModel().endUpdate()}}function ha(){var a=new Graph;a.setExtendParents(!1);a.setExtendParentsOnAdd(!1);
|
|
|
|
|
a.setConstrainChildren(!1);a.setHtmlLabels(!0);a.getModel().maintainEdgeParent=!1;return a}function Aa(a,b,d,h,e,n,c,f){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;c.insert(a);n=[a];d=sb.cloneCell(d);f.insertEdge(d,!1);a.insertEdge(d,!0);n.push(d);h.push(e.addCell(d,null,null,null,null))}function da(a,b,d,h,e,n,c,f,A){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;A.insert(a);d=new mxCell("",new mxGeometry(d,h,0,
|
|
|
|
|
0),"strokeColor=none;fillColor=none;");d.vertex=!0;A.insert(d);f=[d];e=sb.cloneCell(e);a.insertEdge(e,!0);d.insertEdge(e,!1);f.push(e);n.push(c.addCell(e,null,null,null,null))}function ma(l,K,N){var q=p(l),e=q.Properties,R=e.BoundingBox,u=Math.round(.6*R.w),t=Math.round(.6*R.h),aa=Math.round(.6*R.x+0),ha=Math.round(.6*R.y+0);v=new mxCell("",new mxGeometry(aa,ha,u,t),"html=1;whiteSpace=wrap;");v.vertex=!0;switch(null!=l.Class?l.Class:null!=q?q.Class:null){case "BraceNoteBlock":case "UI2BraceNoteBlock":var fa=
|
|
|
|
|
!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(fa=!0);var db=null,ma=null;fa?(db=new mxCell("",new mxGeometry(u-.125*t,0,.125*t,t),"shape=curlyBracket;rounded=1;"),ma=new mxCell("",new mxGeometry(0,0,u-.125*t,t),"strokeColor=none;fillColor=none;")):(db=new mxCell("",new mxGeometry(0,0,.125*t,t),"shape=curlyBracket;rounded=1;flipH=1;"),ma=new mxCell("",new mxGeometry(.125*t,0,u-.125*t,t),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=G(e,q,v);db.vertex=
|
|
|
|
|
!0;v.insert(db);db.style+=w(e,q)+z(e,q)+D(e)+F(e)+C(e);ma.vertex=!0;ma.value=c(e);v.insert(ma);ma.style+=m(e)+f(e)+b(e)+a(e,ma)+d(e)+h(e)+n(e)+A(e)+x(e)+E(e);break;case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":var Ub=0;null!=e.Lanes&&(Ub=e.Lanes.length);v.style="strokeColor=none;fillColor=none;";for(var fb=0,Ha=[],k=0;k<Ub;k++){var kc=parseFloat(e.Lanes[k].p);Ha.push(new mxCell("",new mxGeometry(u*fb,0,u*kc,t),"shape=swimlane;startSize=25;"));Ha[k].vertex=!0;v.insert(Ha[k]);Ha[k].value=
|
|
|
|
|
c(e["Lane_"+k]);Ha[k].style+=m(e["Lane_"+k])+f(e["Lane_"+k])+b(e["Lane_"+k])+a(e["Lane_"+k],Ha[k])+d(e["Lane_"+k])+h(e["Lane_"+k])+n(e["Lane_"+k])+A(e["Lane_"+k])+x(e["Lane_"+k])+E(e["Lane_"+k])+w(e,q)+z(e,q)+I(e,q,Ha[k])+G(e,q,Ha[k])+(e.FlipX?"flipH=1;":"")+(e.FlipY?"flipV=1;":"")+D(e)+B(e,q)+F(e)+C(e);fb+=kc}break;case "AndroidDevice":if(null!=e.AndroidDeviceName){v.style="fillColor=#000000;strokeColor=#000000;";var cb=null,gb=null,hb=null;if("Tablet"==e.AndroidDeviceName||"Mini Tablet"==e.AndroidDeviceName)v.style+=
|
|
|
|
|
"shape=mxgraph.android.tab2;",cb=new mxCell("",new mxGeometry(.112*u,.077*t,.77*u,.85*t),""),e.KeyboardShown&&(gb=new mxCell("",new mxGeometry(.112*u,.727*t,.77*u,.2*t),"shape=mxgraph.android.keyboard;")),e.FullScreen||(hb=new mxCell("",new mxGeometry(.112*u,.077*t,.77*u,.03*t),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*t+";"));else if("Large Phone"==e.AndroidDeviceName||"Phone"==e.AndroidDeviceName)v.style+="shape=mxgraph.android.phone2;",
|
|
|
|
|
cb=new mxCell("",new mxGeometry(.04*u,.092*t,.92*u,.816*t),""),e.KeyboardShown&&(gb=new mxCell("",new mxGeometry(.04*u,.708*t,.92*u,.2*t),"shape=mxgraph.android.keyboard;")),e.FullScreen||(hb=new mxCell("",new mxGeometry(.04*u,.092*t,.92*u,.03*t),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*t+";"));cb.vertex=!0;v.insert(cb);"Dark"==e.Scheme?cb.style+="fillColor=#111111;":"Light"==e.Scheme&&(cb.style+="fillColor=#ffffff;");null!=gb&&(gb.vertex=
|
|
|
|
|
!0,v.insert(gb));null!=hb&&(hb.vertex=!0,v.insert(hb))}break;case "AndroidAlertDialog":var Ia=new mxCell("",new mxGeometry(0,0,u,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Ia.vertex=!0;v.insert(Ia);var ja=new mxCell("",new mxGeometry(0,25,u,10),"shape=line;strokeColor=#33B5E5;");ja.vertex=!0;v.insert(ja);var yb=new mxCell("",new mxGeometry(0,30,u,t-30),"strokeColor=none;fillColor=none;verticalAlign=top;");yb.vertex=!0;v.insert(yb);var na=new mxCell("",new mxGeometry(0,t-25,.5*u,25),"fillColor=none;");
|
|
|
|
|
na.vertex=!0;v.insert(na);var oa=new mxCell("",new mxGeometry(.5*u,t-25,.5*u,25),"fillColor=none;");oa.vertex=!0;v.insert(oa);Ia.value=c(e.DialogTitle);Ia.style+=g(e.DialogTitle);yb.value=c(e.DialogText);yb.style+=g(e.DialogText);na.value=c(e.Button_0);na.style+=g(e.Button_0);oa.value=c(e.Button_1);oa.style+=g(e.Button_1);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",na.style+="strokeColor=#353535;",oa.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",
|
|
|
|
|
na.style+="strokeColor=#E2E2E2;",oa.style+="strokeColor=#E2E2E2;");break;case "AndroidDateDialog":case "AndroidTimeDialog":Ia=new mxCell("",new mxGeometry(0,0,u,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Ia.vertex=!0;v.insert(Ia);Ia.value=c(e.DialogTitle);Ia.style+=g(e.DialogTitle);ja=new mxCell("",new mxGeometry(0,25,u,10),"shape=line;strokeColor=#33B5E5;");ja.vertex=!0;v.insert(ja);na=new mxCell("",new mxGeometry(0,t-25,.5*u,25),"fillColor=none;");na.vertex=!0;v.insert(na);na.value=c(e.Button_0);
|
|
|
|
|
na.style+=g(e.Button_0);oa=new mxCell("",new mxGeometry(.5*u,t-25,.5*u,25),"fillColor=none;");oa.vertex=!0;v.insert(oa);oa.value=c(e.Button_1);oa.style+=g(e.Button_1);var lb=new mxCell("",new mxGeometry(.5*u-4,41,8,4),"shape=triangle;direction=north;");lb.vertex=!0;v.insert(lb);var mb=new mxCell("",new mxGeometry(.25*u-4,41,8,4),"shape=triangle;direction=north;");mb.vertex=!0;v.insert(mb);var nb=new mxCell("",new mxGeometry(.75*u-4,41,8,4),"shape=triangle;direction=north;");nb.vertex=!0;v.insert(nb);
|
|
|
|
|
var Bb=new mxCell("",new mxGeometry(.375*u,50,.2*u,15),"strokeColor=none;fillColor=none;");Bb.vertex=!0;v.insert(Bb);Bb.value=c(e.Label_1);Bb.style+=g(e.Label_1);var Cb=new mxCell("",new mxGeometry(.125*u,50,.2*u,15),"strokeColor=none;fillColor=none;");Cb.vertex=!0;v.insert(Cb);Cb.value=c(e.Label_0);Cb.style+=g(e.Label_0);var ob=null;"AndroidDateDialog"==l.Class&&(ob=new mxCell("",new mxGeometry(.625*u,50,.2*u,15),"strokeColor=none;fillColor=none;"),ob.vertex=!0,v.insert(ob),ob.value=c(e.Label_2),
|
|
|
|
|
ob.style+=g(e.Label_2));var Ja=new mxCell("",new mxGeometry(.43*u,60,.14*u,10),"shape=line;strokeColor=#33B5E5;");Ja.vertex=!0;v.insert(Ja);var Ka=new mxCell("",new mxGeometry(.18*u,60,.14*u,10),"shape=line;strokeColor=#33B5E5;");Ka.vertex=!0;v.insert(Ka);var ib=new mxCell("",new mxGeometry(.68*u,60,.14*u,10),"shape=line;strokeColor=#33B5E5;");ib.vertex=!0;v.insert(ib);var Db=new mxCell("",new mxGeometry(.375*u,65,.2*u,15),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.value=c(e.Label_4);
|
|
|
|
|
Db.style+=g(e.Label_4);var pb=null;"AndroidTimeDialog"==l.Class&&(pb=new mxCell("",new mxGeometry(.3*u,65,.1*u,15),"strokeColor=none;fillColor=none;"),pb.vertex=!0,v.insert(pb),pb.value=c(e.Label_Colon),pb.style+=g(e.Label_Colon));var Eb=new mxCell("",new mxGeometry(.125*u,65,.2*u,15),"strokeColor=none;fillColor=none;");Eb.vertex=!0;v.insert(Eb);Eb.value=c(e.Label_3);Eb.style+=g(e.Label_3);var Fb=new mxCell("",new mxGeometry(.625*u,65,.2*u,15),"strokeColor=none;fillColor=none;");Fb.vertex=!0;v.insert(Fb);
|
|
|
|
|
Fb.value=c(e.Label_5);Fb.style+=g(e.Label_5);var Vb=new mxCell("",new mxGeometry(.43*u,75,.14*u,10),"shape=line;strokeColor=#33B5E5;");Vb.vertex=!0;v.insert(Vb);var zb=new mxCell("",new mxGeometry(.18*u,75,.14*u,10),"shape=line;strokeColor=#33B5E5;");zb.vertex=!0;v.insert(zb);var Ab=new mxCell("",new mxGeometry(.68*u,75,.14*u,10),"shape=line;strokeColor=#33B5E5;");Ab.vertex=!0;v.insert(Ab);var Gb=new mxCell("",new mxGeometry(.375*u,80,.2*u,15),"strokeColor=none;fillColor=none;");Gb.vertex=!0;v.insert(Gb);
|
|
|
|
|
Gb.value=c(e.Label_7);Gb.style+=g(e.Label_7);var Hb=new mxCell("",new mxGeometry(.125*u,80,.2*u,15),"strokeColor=none;fillColor=none;");Hb.vertex=!0;v.insert(Hb);Hb.value=c(e.Label_6);Hb.style+=g(e.Label_6);var Ib=new mxCell("",new mxGeometry(.625*u,80,.2*u,15),"strokeColor=none;fillColor=none;");Ib.vertex=!0;v.insert(Ib);Ib.value=c(e.Label_8);Ib.style+=g(e.Label_8);var qb=new mxCell("",new mxGeometry(.5*u-4,99,8,4),"shape=triangle;direction=south;");qb.vertex=!0;v.insert(qb);var rb=new mxCell("",
|
|
|
|
|
new mxGeometry(.25*u-4,99,8,4),"shape=triangle;direction=south;");rb.vertex=!0;v.insert(rb);var tb=new mxCell("",new mxGeometry(.75*u-4,99,8,4),"shape=triangle;direction=south;");tb.vertex=!0;v.insert(tb);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",na.style+="strokeColor=#353535;",oa.style+="strokeColor=#353535;",lb.style+="strokeColor=none;fillColor=#7E7E7E;",mb.style+="strokeColor=none;fillColor=#7E7E7E;",nb.style+="strokeColor=none;fillColor=#7E7E7E;",qb.style+=
|
|
|
|
|
"strokeColor=none;fillColor=#7E7E7E;",rb.style+="strokeColor=none;fillColor=#7E7E7E;",tb.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",na.style+="strokeColor=#E2E2E2;",oa.style+="strokeColor=#E2E2E2;",lb.style+="strokeColor=none;fillColor=#939393;",mb.style+="strokeColor=none;fillColor=#939393;",nb.style+="strokeColor=none;fillColor=#939393;",qb.style+="strokeColor=none;fillColor=#939393;",rb.style+="strokeColor=none;fillColor=#939393;",tb.style+=
|
|
|
|
|
"strokeColor=none;fillColor=#939393;");break;case "AndroidListItems":var ua=t,$a=0;if(e.ShowHeader){var $a=8,Jb=new mxCell("",new mxGeometry(0,0,u,$a),"strokeColor=none;fillColor=none;");Jb.vertex=!0;v.insert(Jb);Jb.value=c(e.Header);Jb.style+=g(e.Header);var ua=ua-$a,lc=new mxCell("",new mxGeometry(0,$a-2,u,4),"shape=line;strokeColor=#999999;");lc.vertex=!0;v.insert(lc)}var La=parseInt(e.Items);0<La&&(ua/=La);for(var L=[],ja=[],k=0;k<La;k++)L[k]=new mxCell("",new mxGeometry(0,$a+k*ua,u,ua),"strokeColor=none;fillColor=none;"),
|
|
|
|
|
L[k].vertex=!0,v.insert(L[k]),L[k].value=c(e["Item_"+k]),L[k].style+=g(e["Item_"+k]),0<k&&(ja[k]=new mxCell("",new mxGeometry(0,$a+k*ua-2,u,4),"shape=line;"),ja[k].vertex=!0,v.insert(ja[k]),ja[k].style="Dark"==e.Scheme?ja[k].style+"strokeColor=#ffffff;":ja[k].style+"strokeColor=#D9D9D9;");v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";break;case "AndroidTabs":var Ma=parseInt(e.Tabs),Ba=u;0<Ma&&(Ba/=Ma);for(var ca=[],ja=[],k=0;k<
|
|
|
|
|
Ma;k++)ca[k]=new mxCell("",new mxGeometry(k*Ba,0,Ba,t),"strokeColor=none;fillColor=none;"),ca[k].vertex=!0,v.insert(ca[k]),ca[k].value=c(e["Tab_"+k]),ca[k].style+=g(e["Tab_"+k]),0<k&&(ja[k]=new mxCell("",new mxGeometry(k*Ba-2,.2*t,4,.6*t),"shape=line;direction=north;"),ja[k].vertex=!0,v.insert(ja[k]),ja[k].style="Dark"==e.Scheme?ja[k].style+"strokeColor=#484848;":ja[k].style+"strokeColor=#CCCCCC;");var mc=new mxCell("",new mxGeometry(e.Selected*Ba+2,t-3,Ba-4,3),"strokeColor=none;fillColor=#33B5E5;");
|
|
|
|
|
mc.vertex=!0;v.insert(mc);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(aa),Math.round(ha+.25*t),Math.round(u),Math.round(.5*t)),"html=1;whiteSpace=wrap;");v.vertex=!0;var Kb=new mxCell("",new mxGeometry(0,0,u*e.BarPosition,Math.round(.5*t)),"strokeColor=none;fillColor=#33B5E5;");Kb.vertex=!0;v.insert(Kb);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#474747;":
|
|
|
|
|
v.style+"strokeColor=none;fillColor=#BBBBBB;";break;case "AndroidImageBlock":v.style="Dark"==e.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";break;case "AndroidTextBlock":v.style="Dark"==e.Scheme?e.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":e.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":
|
|
|
|
|
v.style+"fillColor=#ffffff;strokeColor=none;";v.value=c(e.Label);v.style+=g(e.Label);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(e.BarBackground){case "Blue":v.style+="fillColor=#002E3E;";break;case "Gray":v.style+="fillColor=#DDDDDD;";break;case "Dark Gray":v.style+="fillColor=#474747;";break;case "White":v.style+="fillColor=#ffffff;"}if(e.HighlightShow){var ab=null,ab=e.HighlightTop?new mxCell("",new mxGeometry(0,0,u,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,t-
|
|
|
|
|
2,u,2),"strokeColor=none;");ab.vertex=!0;v.insert(ab);switch(e.HighlightColor){case "Blue":ab.style+="fillColor=#33B5E5;";break;case "Dark Gray":ab.style+="fillColor=#B0B0B0;";break;case "White":ab.style+="fillColor=#ffffff;"}}if(e.VlignShow){var ub=new mxCell("",new mxGeometry(20,5,2,t-10),"shape=line;direction=north;");ub.vertex=!0;v.insert(ub);switch(e.VlignColor){case "Blue":ub.style+="strokeColor=#244C5A;";break;case "White":ub.style+="strokeColor=#ffffff;"}}break;case "AndroidButton":v.value=
|
|
|
|
|
c(e.Label);v.style+=g(e.Label)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==e.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";break;case "AndroidTextBox":v.value=c(e.Label);v.style+=g(e.Label);var Lb=new mxCell("",new mxGeometry(2,t-6,u-4,4),"shape=partialRectangle;top=0;fillColor=none;");Lb.vertex=!0;v.insert(Lb);v.style="Dark"==e.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";
|
|
|
|
|
Lb.style=e.TextFocused?Lb.style+"strokeColor=#33B5E5;":Lb.style+"strokeColor=#A9A9A9;";break;case "AndroidRadioButton":var jb=null;e.Checked&&(jb=new mxCell("",new mxGeometry(.15*u,.15*t,.7*u,.7*t),"shape=ellipse;fillColor=#33B5E5;strokeWidth=0.6;"),jb.vertex=!0,v.insert(jb));"Dark"==e.Scheme?(v.style+="shape=ellipse;strokeWidth=0.6;strokeColor=#272727;",e.Checked?(jb.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;strokeWidth=0.6;fillColor=#ffffff;strokeColor=#5C5C5C;",
|
|
|
|
|
e.Checked&&(jb.style+="strokeColor=#999999;"));break;case "AndroidCheckBox":var cc=null;e.Checked&&(cc=new mxCell("",new mxGeometry(.25*u,.05*-t,u,.8*t),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),cc.vertex=!0,v.insert(cc));v.style="Dark"==e.Scheme?v.style+"strokeWidth=0.6;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=0.6;strokeColor=#5C5C5C;fillColor=#ffffff;";break;case "AndroidToggle":v.style="Dark"==e.Scheme?e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":
|
|
|
|
|
v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+e.BarPosition+";fillColor=#33b5e5;";break;case "iOSSegmentedControl":Ma=parseInt(e.Tabs);Ba=u;v.style+="strokeColor=none;fillColor=none;";0<Ma&&(Ba/=Ma);ca=[];ja=[];for(k=0;k<Ma;k++)ca[k]=new mxCell("",new mxGeometry(k*
|
|
|
|
|
Ba,0,Ba,t),"strokeColor="+e.FillColor+";"),ca[k].vertex=!0,v.insert(ca[k]),ca[k].value=c(e["Tab_"+k]),ca[k].style+=g(e["Tab_"+k]),ca[k].style=e.Selected==k?ca[k].style+B(e,q):ca[k].style+"fillColor=none;";break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+e.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*e.BarPosition+";";break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(aa),Math.round(ha+.25*t),Math.round(u),Math.round(.5*t)),"html=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");
|
|
|
|
|
v.vertex=!0;Kb=new mxCell("",new mxGeometry(0,0,u*e.BarPosition,Math.round(.5*t)),"strokeColor=none;"+B(e,q));Kb.vertex=!0;v.insert(Kb);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;"+B(e,q)+"strokeColor=#D6D6D6;";break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;"+B(e,q)+"strokeColor=#000000;";var T=new mxCell(c(e.Text),new mxGeometry(.35*u,0,.3*u,t),"strokeColor=none;fillColor=none;");T.vertex=!0;v.insert(T);T.style+=g(e.Text);var wa=new mxCell(c(e.Carrier),
|
|
|
|
|
new mxGeometry(.09*u,0,.2*u,t),"strokeColor=none;fillColor=none;");wa.vertex=!0;v.insert(wa);wa.style+=g(e.Carrier);break;case "iOSSearchBar":v.style+="strokeColor=none;"+B(e,q)+z(e,q)+I(e,q,v)+g(e.Search);v.value=c(e.Search);var W=new mxCell("",new mxGeometry(.3*u,.3*t,.4*t,.4*t),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");W.vertex=!0;v.insert(W);break;case "iOSNavBar":v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+B(e,q)+z(e,q)+g(e.Title);
|
|
|
|
|
v.value=c(e.Title);T=new mxCell(c(e.LeftText),new mxGeometry(.03*u,0,.3*u,t),"strokeColor=none;fillColor=none;");T.vertex=!0;v.insert(T);T.style+=g(e.LeftText);wa=new mxCell(c(e.RightText),new mxGeometry(.65*u,0,.3*u,t),"strokeColor=none;fillColor=none;");wa.vertex=!0;v.insert(wa);wa.style+=g(e.RightText);W=new mxCell("",new mxGeometry(.02*u,.2*t,.3*t,.5*t),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");W.vertex=!0;v.insert(W);break;case "iOSTabs":Ma=parseInt(e.Tabs);Ba=u;v.style+=
|
|
|
|
|
"shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;"+B(e,q)+z(e,q);0<Ma&&(Ba/=Ma);ca=[];ja=[];for(k=0;k<Ma;k++)ca[k]=new mxCell("",new mxGeometry(k*Ba,0,Ba,t),"strokeColor=none;"),ca[k].vertex=!0,v.insert(ca[k]),ca[k].value=c(e["Tab_"+k]),ca[k].style+=m(e["Tab_"+k]),ca[k].style+=f(e["Tab_"+k])+b(e["Tab_"+k])+a(e["Tab_"+k])+d(e["Tab_"+k])+h(e["Tab_"+k])+n(e["Tab_"+k])+A(e["Tab_"+k])+x(e["Tab_"+k]),ca[k].style+="verticalAlign=bottom;",ca[k].style=e.Selected==k?ca[k].style+"fillColor=#BBBBBB;":
|
|
|
|
|
ca[k].style+"fillColor=none;";break;case "iOSDatePicker":var Na=new mxCell("",new mxGeometry(0,0,.5*u,.2*t),"strokeColor=none;fillColor=none;");Na.vertex=!0;v.insert(Na);Na.value=c(e.Option11);Na.style+=g(e.Option11);var Oa=new mxCell("",new mxGeometry(.5*u,0,.15*u,.2*t),"strokeColor=none;fillColor=none;");Oa.vertex=!0;v.insert(Oa);Oa.value=c(e.Option21);Oa.style+=g(e.Option21);var Pa=new mxCell("",new mxGeometry(.65*u,0,.15*u,.2*t),"strokeColor=none;fillColor=none;");Pa.vertex=!0;v.insert(Pa);Pa.value=
|
|
|
|
|
c(e.Option31);Pa.style+=g(e.Option31);var Qa=new mxCell("",new mxGeometry(0,.2*t,.5*u,.2*t),"strokeColor=none;fillColor=none;");Qa.vertex=!0;v.insert(Qa);Qa.value=c(e.Option12);Qa.style+=g(e.Option12);var Ra=new mxCell("",new mxGeometry(.5*u,.2*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Ra.vertex=!0;v.insert(Ra);Ra.value=c(e.Option22);Ra.style+=g(e.Option22);var Sa=new mxCell("",new mxGeometry(.65*u,.2*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Sa.vertex=!0;v.insert(Sa);Sa.value=c(e.Option32);
|
|
|
|
|
Sa.style+=g(e.Option32);var pa=new mxCell("",new mxGeometry(0,.4*t,.5*u,.2*t),"strokeColor=none;fillColor=none;");pa.vertex=!0;v.insert(pa);pa.value=c(e.Option13);pa.style+=g(e.Option13);var qa=new mxCell("",new mxGeometry(.5*u,.4*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");qa.vertex=!0;v.insert(qa);qa.value=c(e.Option23);qa.style+=g(e.Option23);var Ta=new mxCell("",new mxGeometry(.65*u,.4*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Ta.vertex=!0;v.insert(Ta);Ta.value=c(e.Option33);Ta.style+=
|
|
|
|
|
g(e.Option33);var ra=new mxCell("",new mxGeometry(.8*u,.4*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");ra.vertex=!0;v.insert(ra);ra.value=c(e.Option43);ra.style+=g(e.Option43);var sa=new mxCell("",new mxGeometry(0,.6*t,.5*u,.2*t),"strokeColor=none;fillColor=none;");sa.vertex=!0;v.insert(sa);sa.value=c(e.Option14);sa.style+=g(e.Option14);var Ua=new mxCell("",new mxGeometry(.5*u,.6*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Ua.vertex=!0;v.insert(Ua);Ua.value=c(e.Option24);Ua.style+=g(e.Option24);
|
|
|
|
|
var Va=new mxCell("",new mxGeometry(.65*u,.6*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Va.vertex=!0;v.insert(Va);Va.value=c(e.Option34);Va.style+=g(e.Option34);var Wa=new mxCell("",new mxGeometry(.8*u,.6*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Wa.vertex=!0;v.insert(Wa);Wa.value=c(e.Option44);Wa.style+=g(e.Option44);var ta=new mxCell("",new mxGeometry(0,.8*t,.5*u,.2*t),"strokeColor=none;fillColor=none;");ta.vertex=!0;v.insert(ta);ta.value=c(e.Option15);ta.style+=g(e.Option15);var Xa=
|
|
|
|
|
new mxCell("",new mxGeometry(.5*u,.8*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Xa.vertex=!0;v.insert(Xa);Xa.value=c(e.Option25);Xa.style+=g(e.Option25);var Ya=new mxCell("",new mxGeometry(.65*u,.8*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Ya.vertex=!0;v.insert(Ya);Ya.value=c(e.Option35);Ya.style+=g(e.Option35);Ja=new mxCell("",new mxGeometry(0,.4*t-2,u,4),"shape=line;strokeColor=#888888;");Ja.vertex=!0;v.insert(Ja);Ka=new mxCell("",new mxGeometry(0,.6*t-2,u,4),"shape=line;strokeColor=#888888;");
|
|
|
|
|
Ka.vertex=!0;v.insert(Ka);v.style+=B(e,q)+z(e,q)+"strokeColor=none;";break;case "iOSTimePicker":Na=new mxCell("",new mxGeometry(0,0,.25*u,.2*t),"strokeColor=none;fillColor=none;");Na.vertex=!0;v.insert(Na);Na.value=c(e.Option11);Na.style+=g(e.Option11);Oa=new mxCell("",new mxGeometry(.25*u,0,.3*u,.2*t),"strokeColor=none;fillColor=none;");Oa.vertex=!0;v.insert(Oa);Oa.value=c(e.Option21);Oa.style+=g(e.Option21);Qa=new mxCell("",new mxGeometry(0,.2*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");Qa.vertex=
|
|
|
|
|
!0;v.insert(Qa);Qa.value=c(e.Option12);Qa.style+=g(e.Option12);Ra=new mxCell("",new mxGeometry(.25*u,.2*t,.3*u,.2*t),"strokeColor=none;fillColor=none;");Ra.vertex=!0;v.insert(Ra);Ra.value=c(e.Option22);Ra.style+=g(e.Option22);pa=new mxCell("",new mxGeometry(0,.4*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");pa.vertex=!0;v.insert(pa);pa.value=c(e.Option13);pa.style+=g(e.Option13);qa=new mxCell("",new mxGeometry(.25*u,.4*t,.3*u,.2*t),"strokeColor=none;fillColor=none;");qa.vertex=!0;v.insert(qa);
|
|
|
|
|
qa.value=c(e.Option23);qa.style+=g(e.Option23);ra=new mxCell("",new mxGeometry(.7*u,.4*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");ra.vertex=!0;v.insert(ra);ra.value=c(e.Option33);ra.style+=g(e.Option33);sa=new mxCell("",new mxGeometry(0,.6*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");sa.vertex=!0;v.insert(sa);sa.value=c(e.Option14);sa.style+=g(e.Option14);Ua=new mxCell("",new mxGeometry(.25*u,.6*t,.3*u,.2*t),"strokeColor=none;fillColor=none;");Ua.vertex=!0;v.insert(Ua);Ua.value=c(e.Option24);
|
|
|
|
|
Ua.style+=g(e.Option24);Wa=new mxCell("",new mxGeometry(.7*u,.6*t,.15*u,.2*t),"strokeColor=none;fillColor=none;");Wa.vertex=!0;v.insert(Wa);Wa.value=c(e.Option34);Wa.style+=g(e.Option34);ta=new mxCell("",new mxGeometry(0,.8*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");ta.vertex=!0;v.insert(ta);ta.value=c(e.Option15);ta.style+=g(e.Option15);Xa=new mxCell("",new mxGeometry(.25*u,.8*t,.3*u,.2*t),"strokeColor=none;fillColor=none;");Xa.vertex=!0;v.insert(Xa);Xa.value=c(e.Option25);Xa.style+=g(e.Option25);
|
|
|
|
|
Ja=new mxCell("",new mxGeometry(0,.4*t-2,u,4),"shape=line;strokeColor=#888888;");Ja.vertex=!0;v.insert(Ja);Ka=new mxCell("",new mxGeometry(0,.6*t-2,u,4),"shape=line;strokeColor=#888888;");Ka.vertex=!0;v.insert(Ka);v.style+=B(e,q)+z(e,q)+"strokeColor=none;";break;case "iOSCountdownPicker":Pa=new mxCell("",new mxGeometry(.45*u,0,.2*u,.2*t),"strokeColor=none;fillColor=none;");Pa.vertex=!0;v.insert(Pa);Pa.value=c(e.Option31);Pa.style+=g(e.Option31);Sa=new mxCell("",new mxGeometry(.45*u,.2*t,.2*u,.2*t),
|
|
|
|
|
"strokeColor=none;fillColor=none;");Sa.vertex=!0;v.insert(Sa);Sa.value=c(e.Option32);Sa.style+=g(e.Option32);pa=new mxCell("",new mxGeometry(0,.4*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");pa.vertex=!0;v.insert(pa);pa.value=c(e.Option13);pa.style+=g(e.Option13);qa=new mxCell("",new mxGeometry(.2*u,.4*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");qa.vertex=!0;v.insert(qa);qa.value=c(e.Option23);qa.style+=g(e.Option23);Ta=new mxCell("",new mxGeometry(.45*u,.4*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");
|
|
|
|
|
Ta.vertex=!0;v.insert(Ta);Ta.value=c(e.Option33);Ta.style+=g(e.Option33);ra=new mxCell("",new mxGeometry(.6*u,.4*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");ra.vertex=!0;v.insert(ra);ra.value=c(e.Option43);ra.style+=g(e.Option43);sa=new mxCell("",new mxGeometry(0,.6*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");sa.vertex=!0;v.insert(sa);sa.value=c(e.Option14);sa.style+=g(e.Option14);Va=new mxCell("",new mxGeometry(.45*u,.6*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");Va.vertex=!0;v.insert(Va);
|
|
|
|
|
Va.value=c(e.Option34);Va.style+=g(e.Option34);ta=new mxCell("",new mxGeometry(0,.8*t,.25*u,.2*t),"strokeColor=none;fillColor=none;");ta.vertex=!0;v.insert(ta);ta.value=c(e.Option15);ta.style+=g(e.Option15);Ya=new mxCell("",new mxGeometry(.45*u,.8*t,.2*u,.2*t),"strokeColor=none;fillColor=none;");Ya.vertex=!0;v.insert(Ya);Ya.value=c(e.Option35);Ya.style+=g(e.Option35);Ja=new mxCell("",new mxGeometry(0,.4*t-2,u,4),"shape=line;strokeColor=#888888;");Ja.vertex=!0;v.insert(Ja);Ka=new mxCell("",new mxGeometry(0,
|
|
|
|
|
.6*t-2,u,4),"shape=line;strokeColor=#888888;");Ka.vertex=!0;v.insert(Ka);v.style+=B(e,q)+z(e,q)+"strokeColor=none;";break;case "iOSBasicCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.6*e.SeparatorInset+";";v.style+=m(e.text)+f(e.text)+b(e.text)+E(e.text);v.value=c(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
|
|
|
|
|
W.vertex=!0;v.insert(W);break;case "DetailDisclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);var ia=new mxCell("",new mxGeometry(.79*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=!0;v.insert(ia);break;case "DetailIndicator":ia=new mxCell("",new mxGeometry(.87*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=
|
|
|
|
|
!0;v.insert(ia);break;case "CheckMark":W=new mxCell("",new mxGeometry(.89*u,.37*t,.4*t,.26*t),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),W.vertex=!0,v.insert(W)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.6*e.SeparatorInset+";";v.style+=m(e.subtext)+f(e.subtext)+b(e.subtext);v.value=c(e.subtext);var ka=new mxCell("",new mxGeometry(0,.4*t,u,.6*
|
|
|
|
|
t),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.6*e.SeparatorInset+";");ka.vertex=!0;v.insert(ka);ka.style+=m(e.text)+f(e.text)+b(e.text);ka.value=c(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);break;case "DetailDisclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
|
|
|
|
|
W.vertex=!0;v.insert(W);ia=new mxCell("",new mxGeometry(.79*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=!0;v.insert(ia);break;case "DetailIndicator":ia=new mxCell("",new mxGeometry(.87*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=!0;v.insert(ia);break;case "CheckMark":W=new mxCell("",new mxGeometry(.89*u,.37*t,.4*t,.26*t),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),
|
|
|
|
|
W.vertex=!0,v.insert(W)}break;case "iOSRightDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=middle;spacingLeft="+.6*e.SeparatorInset+";";v.style+=m(e.subtext)+f(e.subtext)+b(e.subtext);v.value=c(e.subtext);ka=null;switch(e.AccessoryIndicatorType){case "Disclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);ka=new mxCell("",
|
|
|
|
|
new mxGeometry(.55*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);ia=new mxCell("",new mxGeometry(.79*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=!0;v.insert(ia);ka=new mxCell("",new mxGeometry(.45*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;");
|
|
|
|
|
break;case "DetailIndicator":ia=new mxCell("",new mxGeometry(.87*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=!0;v.insert(ia);ka=new mxCell("",new mxGeometry(.52*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":W=new mxCell("",new mxGeometry(.89*u,.37*t,.4*t,.26*t),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");W.vertex=!0;v.insert(W);ka=new mxCell("",new mxGeometry(.55*u,0,.3*
|
|
|
|
|
u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:ka=new mxCell("",new mxGeometry(.65*u,0,.3*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;")}ka.vertex=!0;v.insert(ka);ka.style+=m(e.text)+f(e.text)+b(e.text);ka.value=c(e.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";var Ga=new mxCell("",new mxGeometry(0,0,.25*u,t),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");
|
|
|
|
|
Ga.vertex=!0;v.insert(Ga);Ga.style+=m(e.subtext)+f(e.subtext)+b(e.subtext);Ga.value=c(e.subtext);ka=new mxCell("",new mxGeometry(.25*u,0,.5*u,t),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");ka.vertex=!0;v.insert(ka);ka.style+=m(e.text)+f(e.text)+b(e.text);ka.value=c(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);
|
|
|
|
|
break;case "DetailDisclosure":W=new mxCell("",new mxGeometry(.91*u,.35*t,.15*t,.3*t),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");W.vertex=!0;v.insert(W);ia=new mxCell("",new mxGeometry(.79*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=!0;v.insert(ia);break;case "DetailIndicator":ia=new mxCell("",new mxGeometry(.87*u,.25*t,.5*t,.5*t),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ia.vertex=!0;v.insert(ia);break;
|
|
|
|
|
case "CheckMark":W=new mxCell("",new mxGeometry(.89*u,.37*t,.4*t,.26*t),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),W.vertex=!0,v.insert(W)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";T=new mxCell("",new mxGeometry(0,0,u,.4*t),"fillColor=none;strokeColor=none;spacing=10;align=left;");T.vertex=!0;v.insert(T);T.style+=m(e.text)+f(e.text)+b(e.text);T.value=c(e.text);wa=new mxCell("",new mxGeometry(0,
|
|
|
|
|
.6*t,u,.4*t),"fillColor=none;strokeColor=none;spacing=10;align=left;");wa.vertex=!0;v.insert(wa);wa.style+=m(e["bottom-text"])+f(e["bottom-text"])+b(e["bottom-text"]);wa.value=c(e["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.style+=m(e.text)+f(e.text)+b(e.text);v.value=c(e.text);break;case "SMPage":if(e.Group){v.style+="strokeColor=none;fillColor=none;";var r=new mxCell("",new mxGeometry(0,0,.9*u,.9*t),"part=1;");
|
|
|
|
|
r.vertex=!0;v.insert(r);r.style+=w(e,q)+B(e,q)+z(e,q)+D(e)+C(e);var y=new mxCell("",new mxGeometry(.1*u,.1*t,.9*u,.9*t),"part=1;");y.vertex=!0;v.insert(y);y.style+=w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+g(e);y.value=c(e.Text);e.Future&&(r.style+="dashed=1;",y.style+="dashed=1;")}else e.Future&&(v.style+="dashed=1;"),v.style+=w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+g(e),v.value=c(e.Text);break;case "SMHome":case "SMPrint":case "SMSearch":case "SMSettings":case "SMSitemap":case "SMSuccess":case "SMVideo":case "SMAudio":case "SMCalendar":case "SMChart":case "SMCloud":case "SMDocument":case "SMForm":case "SMGame":case "SMUpload":v.style+=
|
|
|
|
|
w(e,q)+B(e,q)+z(e,q)+D(e)+C(e);r=null;switch(l.Class){case "SMHome":r=new mxCell("",new mxGeometry(.5*u-.4*t,.1*t,.8*t,.8*t),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMPrint":r=new mxCell("",new mxGeometry(.5*u-.4*t,.19*t,.8*t,.62*t),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":r=new mxCell("",new mxGeometry(.5*u-.4*t,.1*t,.8*t,.8*t),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
|
break;case "SMSettings":r=new mxCell("",new mxGeometry(.5*u-.35*t,.15*t,.7*t,.7*t),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSitemap":r=new mxCell("",new mxGeometry(.5*u-.35*t,.2*t,.7*t,.6*t),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":r=new mxCell("",new mxGeometry(.5*u-.3*t,.25*t,.6*t,.5*t),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
|
break;case "SMVideo":r=new mxCell("",new mxGeometry(.5*u-.4*t,.2*t,.8*t,.6*t),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMAudio":r=new mxCell("",new mxGeometry(.5*u-.3*t,.2*t,.6*t,.6*t),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":r=new mxCell("",new mxGeometry(.5*u-.4*t,.15*t,.8*t,.7*t),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
@ -129,25 +130,25 @@ y.style+=w(e,q)+z(e,q)+C(e)+F(e);H=new mxCell("",new mxGeometry(1,.5,.35*u,20),"
|
|
|
|
|
(k+1)]);y.style+=g(e["message_"+(k+1)]);break;case "EICommandMessageBlock":y[k].value="C";y[k].style+="fontStyle=1;fontSize=11;";break;case "EIDocumentMessageBlock":y[k].value="D";y[k].style+="fontStyle=1;fontSize=11;";break;case "EIEventMessageBlock":y[k].value="E",y[k].style+="fontStyle=1;fontSize=11;"}U[k]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");U[k].geometry.relative=!0;U[k].edge=!0;r.insertEdge(U[k],!1);
|
|
|
|
|
y[k].insertEdge(U[k],!0);U[k].style+=w(e,q)+C(e);var eb=[];eb.push(new mxPoint(aa+8.5,ha+Qb+10));U[k].geometry.points=eb;K.push(N.addCell(U[k],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+F(e)+g(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.45*u,.25*t,.3*u,.5*t),"part=1;");r.vertex=!0;v.insert(r);r.style+=w(e,q)+z(e,q)+C(e);U=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");
|
|
|
|
|
U.geometry.relative=!0;U.edge=!0;da(0,.5*t,.4*u,.5*t,U,K,N,ba,v,X);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+F(e)+g(e);v.value=c(e.Text);var Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");Q.geometry.relative=!0;Q.edge=!0;da(.05*u,.5*t,.85*u,.5*t,Q,K,N,ba,v,X);var P=new mxCell("",new mxGeometry(0,0,0,0),
|
|
|
|
|
"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");P.geometry.relative=!0;P.edge=!0;da(.05*u,.5*t,.85*u,.15*t,P,K,N,ba,v,X);var Y=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");Y.geometry.relative=!0;Y.edge=!0;da(.05*u,.5*t,.85*u,.85*t,Y,K,N,ba,v,X);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
|
|
|
|
|
"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");P.geometry.relative=!0;P.edge=!0;da(.05*u,.5*t,.85*u,.15*t,P,K,N,ba,v,X);var Z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");Z.geometry.relative=!0;Z.edge=!0;da(.05*u,.5*t,.85*u,.85*t,Z,K,N,ba,v,X);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
|
|
|
|
|
w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+F(e)+g(e);v.value=c(e.Text);Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");Q.geometry.relative=!0;Q.edge=!0;Q.style+=w(e,q);da(.05*u,.5*t,.95*u,.5*t,Q,K,N,ba,v,X);P=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
|
|
|
|
|
P.geometry.relative=!0;P.edge=!0;P.style+=w(e,q);da(.3*u,.1*t,.3*u,.5*t,P,K,N,ba,v,X);Y=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");Y.geometry.relative=!0;Y.edge=!0;Y.style+=w(e,q);da(.7*u,.1*t,.7*u,.5*t,Y,K,N,ba,v,X);var la=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
|
|
|
|
|
P.geometry.relative=!0;P.edge=!0;P.style+=w(e,q);da(.3*u,.1*t,.3*u,.5*t,P,K,N,ba,v,X);Z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");Z.geometry.relative=!0;Z.edge=!0;Z.style+=w(e,q);da(.7*u,.1*t,.7*u,.5*t,Z,K,N,ba,v,X);var la=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
|
|
|
|
|
la.geometry.relative=!0;la.edge=!0;la.style+=w(e,q);da(.5*u,.5*t,.5*u,.9*t,la,K,N,ba,v,X);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+F(e)+g(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.2*u,.21*t,.16*u,.24*t),"part=1;");r.vertex=!0;v.insert(r);r.style+=w(e,q)+z(e,q)+C(e);Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");
|
|
|
|
|
Q.geometry.relative=!0;Q.edge=!0;da(.45*u,.33*t,.8*u,.33*t,Q,K,N,ba,v,X);y=new mxCell("",new mxGeometry(.64*u,.55*t,.16*u,.24*t),"part=1;");y.vertex=!0;v.insert(y);y.style+=w(e,q)+z(e,q)+C(e);P=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");P.geometry.relative=!0;P.edge=!0;da(.55*u,.67*t,.2*u,.67*t,P,K,N,ba,v,X);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
|
|
|
|
|
w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+F(e)+g(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.1*u,.15*t,.8*u,.7*t),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");r.vertex=!0;v.insert(r);r.style+=w(e,q)+z(e,q)+C(e);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+F(e)+g(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.04*u,.06*t,.18*u,.28*t),"shape=ellipse;fillColor=#808080;part=1;");r.vertex=!0;v.insert(r);r.style+=
|
|
|
|
|
w(e,q)+C(e);y=new mxCell("",new mxGeometry(.2*u,.56*t,.2*u,.32*t),"part=1;");y.vertex=!0;v.insert(y);y.style+=w(e,q)+z(e,q)+C(e)+F(e);y.value="A";y.style+="fontStyle=1;fontSize=11;";Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");Q.geometry.relative=!0;Q.edge=!0;r.insertEdge(Q,!1);y.insertEdge(Q,!0);Q.style+=w(e,q)+C(e);eb=[];eb.push(new mxPoint(aa+.13*u,ha+.72*t));Q.geometry.points=eb;K.push(N.addCell(Q,null,
|
|
|
|
|
null,null,null));H=new mxCell("",new mxGeometry(.6*u,.06*t,.18*u,.28*t),"shape=ellipse;fillColor=#808080;part=1;");H.vertex=!0;v.insert(H);H.style+=w(e,q)+C(e);S=new mxCell("",new mxGeometry(.76*u,.56*t,.2*u,.32*t),"part=1;");S.vertex=!0;v.insert(S);S.style+=w(e,q)+z(e,q)+C(e)+F(e);S.value="B";S.style+="fontStyle=1;fontSize=11;";P=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");P.geometry.relative=!0;P.edge=!0;
|
|
|
|
|
H.insertEdge(P,!1);S.insertEdge(P,!0);P.style+=w(e,q)+C(e);var nc=[];nc.push(new mxPoint(aa+.69*u,ha+.72*t));P.geometry.points=nc;K.push(N.addCell(P,null,null,null,null));Y=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");Y.geometry.relative=!0;Y.edge=!0;r.insertEdge(Y,!1);H.insertEdge(Y,!0);Y.style+=w(e,q)+C(e);K.push(N.addCell(Y,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
|
|
|
|
|
H.insertEdge(P,!1);S.insertEdge(P,!0);P.style+=w(e,q)+C(e);var nc=[];nc.push(new mxPoint(aa+.69*u,ha+.72*t));P.geometry.points=nc;K.push(N.addCell(P,null,null,null,null));Z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");Z.geometry.relative=!0;Z.edge=!0;r.insertEdge(Z,!1);H.insertEdge(Z,!0);Z.style+=w(e,q)+C(e);K.push(N.addCell(Z,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
|
|
|
|
|
w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+F(e)+g(e);v.value=c(e.Text);r=new mxCell("1",new mxGeometry(.2*u,.4*t,.1*u,.19*t),"fontStyle=1;fontSize=11;part=1;");r.vertex=!0;v.insert(r);r.style+=w(e,q)+C(e);y=new mxCell("2",new mxGeometry(.45*u,.4*t,.1*u,.19*t),"fontStyle=1;fontSize=11;part=1;");y.vertex=!0;v.insert(y);y.style+=w(e,q)+C(e);H=new mxCell("3",new mxGeometry(.7*u,.4*t,.1*u,.19*t),"fontStyle=1;fontSize=11;part=1;");H.vertex=!0;v.insert(H);H.style+=w(e,q)+C(e);Q=new mxCell("",new mxGeometry(0,0,0,0),
|
|
|
|
|
"curved=1;endArrow=block;html=1;endSize=3;part=1;");r.insertEdge(Q,!1);y.insertEdge(Q,!0);Q.geometry.points=[new mxPoint(aa+.375*u,ha+.15*t)];Q.geometry.relative=!0;Q.edge=!0;Q.style+=w(e,q)+C(e);K.push(N.addCell(Q,null,null,null,null));P=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");y.insertEdge(P,!1);H.insertEdge(P,!0);P.geometry.points=[new mxPoint(aa+.675*u,ha+.15*t)];P.geometry.relative=!0;P.edge=!0;P.style+=w(e,q)+C(e);K.push(N.addCell(P,null,null,
|
|
|
|
|
null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+F(e)+g(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.3*u,.2*t,.4*u,.6*t),"shape=mxgraph.ios7.icons.clock;flipH=1;part=1;");r.vertex=!0;v.insert(r);r.style+=w(e,q)+C(e);break;case "EIMessageBrokerBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+m(e)+f(e)+b(e)+a(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.38*
|
|
|
|
|
u,.42*t,.24*u,.16*t),"part=1;fillColor=#aefe7d;");r.vertex=!0;v.insert(r);r.style+=w(e,q)+C(e);y=new mxCell("",new mxGeometry(.38*u,0,.24*u,.16*t),"part=1;");y.vertex=!0;v.insert(y);y.style+=B(e,q)+w(e,q)+C(e);H=new mxCell("",new mxGeometry(.76*u,.23*t,.24*u,.16*t),"part=1;");H.vertex=!0;v.insert(H);H.style=y.style;var S=new mxCell("",new mxGeometry(.76*u,.61*t,.24*u,.16*t),"part=1;");S.vertex=!0;v.insert(S);S.style=y.style;var Yb=new mxCell("",new mxGeometry(.38*u,.84*t,.24*u,.16*t),"part=1;");Yb.vertex=
|
|
|
|
|
!0;v.insert(Yb);Yb.style=y.style;var Zb=new mxCell("",new mxGeometry(0,.61*t,.24*u,.16*t),"part=1;");Zb.vertex=!0;v.insert(Zb);Zb.style=y.style;var $b=new mxCell("",new mxGeometry(0,.23*t,.24*u,.16*t),"part=1;");$b.vertex=!0;v.insert($b);$b.style=y.style;Q=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");r.insertEdge(Q,!1);y.insertEdge(Q,!0);Q.edge=!0;Q.style+=w(e,q)+C(e);K.push(N.addCell(Q,null,null,null,null));P=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");r.insertEdge(P,
|
|
|
|
|
!1);H.insertEdge(P,!0);P.edge=!0;P.style+=w(e,q)+C(e);K.push(N.addCell(P,null,null,null,null));Y=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");r.insertEdge(Y,!1);S.insertEdge(Y,!0);Y.edge=!0;Y.style+=w(e,q)+C(e);K.push(N.addCell(Y,null,null,null,null));la=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");r.insertEdge(la,!1);Yb.insertEdge(la,!0);la.edge=!0;la.style+=w(e,q)+C(e);K.push(N.addCell(la,null,null,null,null));var vb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");
|
|
|
|
|
!1);H.insertEdge(P,!0);P.edge=!0;P.style+=w(e,q)+C(e);K.push(N.addCell(P,null,null,null,null));Z=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");r.insertEdge(Z,!1);S.insertEdge(Z,!0);Z.edge=!0;Z.style+=w(e,q)+C(e);K.push(N.addCell(Z,null,null,null,null));la=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");r.insertEdge(la,!1);Yb.insertEdge(la,!0);la.edge=!0;la.style+=w(e,q)+C(e);K.push(N.addCell(la,null,null,null,null));var vb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");
|
|
|
|
|
r.insertEdge(vb,!1);Zb.insertEdge(vb,!0);vb.edge=!0;vb.style+=w(e,q)+C(e);K.push(N.addCell(vb,null,null,null,null));var wb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");r.insertEdge(wb,!1);$b.insertEdge(wb,!0);wb.edge=!0;wb.style+=w(e,q)+C(e);K.push(N.addCell(wb,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+F(e)+g(e);v.value=c(e.Text);Q=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");
|
|
|
|
|
Q.geometry.relative=!0;Q.edge=!0;da(.05*u,.5*t,.6*u,.25*t,Q,K,N,ba,v,X);P=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");P.geometry.relative=!0;P.edge=!0;da(.05*u,.5*t,.6*u,.75*t,P,K,N,ba,v,X);r=new mxCell("",new mxGeometry(.7*u,.1*t,.15*u,.32*t),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");r.vertex=!0;v.insert(r);r.style+=w(e,q)+C(e);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
|
|
|
|
|
w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+F(e)+g(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.25*u,.25*t,.5*u,.5*t),"shape=mxgraph.eip.control_bus;part=1;");r.vertex=!0;v.insert(r);r.style+=w(e,q)+C(e);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+g(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");r.vertex=!0;v.insert(r);r.style+=w(e,q)+C(e);H=new mxCell("",new mxGeometry(u-
|
|
|
|
|
45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");H.vertex=!0;v.insert(H);H.style+=w(e,q)+C(e);Y=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");Y.geometry.relative=!0;Y.edge=!0;r.insertEdge(Y,!1);H.insertEdge(Y,!0);Y.style+=w(e,q)+C(e);Y.geometry.points=[new mxPoint(aa+8.5,ha+40)];K.push(N.addCell(Y,null,null,null,null));S=new mxCell("",new mxGeometry(u-45,t-20,20,20),"part=1;");S.vertex=!0;
|
|
|
|
|
45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");H.vertex=!0;v.insert(H);H.style+=w(e,q)+C(e);Z=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");Z.geometry.relative=!0;Z.edge=!0;r.insertEdge(Z,!1);H.insertEdge(Z,!0);Z.style+=w(e,q)+C(e);Z.geometry.points=[new mxPoint(aa+8.5,ha+40)];K.push(N.addCell(Z,null,null,null,null));S=new mxCell("",new mxGeometry(u-45,t-20,20,20),"part=1;");S.vertex=!0;
|
|
|
|
|
v.insert(S);S.value=c(e.message_0);S.style+=g(e.message_0);S.style+=w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+F(e);la=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");la.geometry.relative=!0;la.edge=!0;r.insertEdge(la,!1);S.insertEdge(la,!0);la.style+=w(e,q)+C(e);la.geometry.points=[new mxPoint(aa+8.5,ha+t-10)];K.push(N.addCell(la,null,null,null,null));Pb=e.HistoryMessages;dc=(t-75)/Pb;y=[];U=[];for(k=0;k<Pb;k++)Qb=dc*(k+1)+30,
|
|
|
|
|
y[k]=new mxCell("",new mxGeometry(u-20,Qb,20,20),"part=1;"),y[k].vertex=!0,y[k].value=c(e["message_"+(k+1)]),y.style+=g(e["message_"+(k+1)]),v.insert(y[k]),y[k].style+=w(e,q)+B(e,q)+z(e,q)+D(e)+C(e)+F(e),U[k]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),U[k].geometry.relative=!0,U[k].edge=!0,H.insertEdge(U[k],!1),y[k].insertEdge(U[k],!0),U[k].style+=w(e,q)+C(e),eb=[],eb.push(new mxPoint(aa+u-30,ha+Qb+10)),U[k].geometry.points=
|
|
|
|
|
eb,K.push(N.addCell(U[k],null,null,null,null));break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;"+w(e,q)+z(e,q)+D(e)+C(e)+G(e,q,v);F(e);0>e.DoorAngle&&(v.style+="flipV=1;");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;"+w(e,q)+z(e,q)+D(e)+C(e)+G(e,q,v)+F(e);0<e.DoorAngle&&(v.style+="flipV=1;");break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;"+G(e,q,v);r=new mxCell("",new mxGeometry(0,0,u,.25*t),"part=1;");r.vertex=!0;v.insert(r);r.style+=
|
|
|
|
@ -160,11 +161,11 @@ P=[];kb=[];for(k=0;k<e.numLines;k++)P[k]=new mxCell("",new mxGeometry(0,0,0,0),a
|
|
|
|
|
case 2:v.style+="shape=hexagon;perimeter=hexagonPerimeter2;size=0.10;direction=south;"}break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+w(e,q)+B(e,q)+C(e)+z(e,q)+D(e)+F(e)+g(e);v.value=c(e.Text);1==e.peakedRoof&&0==e.stumpType?v.style+="shape=mxgraph.pid.vessels.tank_(conical_roof);":1==e.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+w(e,q)+B(e,q)+C(e)+z(e,
|
|
|
|
|
q)+D(e)+F(e)+g(e);v.value=c(e.Text);v.style=0==e.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;"+G(e,q,v)+g(e);v.value=c(e.Text);O=w(e,q)+B(e,q)+C(e)+z(e,q)+D(e)+F(e);r=new mxCell("",new mxGeometry(0,.2*t,u,.6*t),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");r.vertex=!0;v.insert(r);r.style+=O;O+="endSize=4;endArrow=block;endFill=1;";
|
|
|
|
|
0==e.compressorType?(Q=new mxCell("",new mxGeometry(0,0,0,0),""),Q.geometry.relative=!0,Q.edge=!0,Q.style+=O,da(0,0,0,.2*t,Q,K,N,ba,v,X),P=new mxCell("",new mxGeometry(0,0,0,0),""),P.geometry.relative=!0,P.edge=!0,P.style+=O,da(u,.67*t,u,t,P,K,N,ba,v,X)):(r.style+="flipH=1;",Q=new mxCell("",new mxGeometry(0,0,0,0),""),Q.geometry.relative=!0,Q.edge=!0,Q.style+=O,da(0,0,0,.33*t,Q,K,N,ba,v,X),P=new mxCell("",new mxGeometry(0,0,0,0),""),P.geometry.relative=!0,P.edge=!0,P.style+=O,da(u,.8*t,u,t,P,K,N,
|
|
|
|
|
ba,v,X));1==e.centerLineType&&(Y=new mxCell("",new mxGeometry(0,0,0,0),""),Y.geometry.relative=!0,Y.edge=!0,Y.style+=O,da(.2*u,.5*t,.8*u,.5*t,Y,K,N,ba,v,X));break;case "PEMotorDrivenTurbineBlock":O=w(e,q)+B(e,q)+C(e)+z(e,q)+F(e);v.style+="shape=ellipse;"+D(e)+G(e,q,v)+g(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.2*u,.2*t,.6*u,.6*t),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");r.vertex=!0;v.insert(r);r.style+=O;break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":O=
|
|
|
|
|
ba,v,X));1==e.centerLineType&&(Z=new mxCell("",new mxGeometry(0,0,0,0),""),Z.geometry.relative=!0,Z.edge=!0,Z.style+=O,da(.2*u,.5*t,.8*u,.5*t,Z,K,N,ba,v,X));break;case "PEMotorDrivenTurbineBlock":O=w(e,q)+B(e,q)+C(e)+z(e,q)+F(e);v.style+="shape=ellipse;"+D(e)+G(e,q,v)+g(e);v.value=c(e.Text);r=new mxCell("",new mxGeometry(.2*u,.2*t,.6*u,.6*t),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");r.vertex=!0;v.insert(r);r.style+=O;break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":O=
|
|
|
|
|
z(e,q);v.style+=O+w(e,q)+B(e,q)+C(e)+F(e)+D(e)+G(e,q,v);switch(l.Class){case "PEIndicatorBlock":v.style+="shape=mxgraph.pid2inst.discInst;";break;case "PEIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=inst;";break;case "PESharedIndicatorBlock":v.style+="shape=mxgraph.pid2inst.sharedCont;";break;case "PEComputerIndicatorBlock":v.style+="shape=mxgraph.pid2inst.compFunc;";break;case "PESharedIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=ctrl;";break;case "PEProgrammableIndicatorBlock":v.style+=
|
|
|
|
|
"shape=mxgraph.pid2inst.progLogCont;"}"PEIndicator2Block"==l.Class||"PESharedIndicator2Block"==l.Class?(r=new mxCell("",new mxGeometry(0,0,u,.5*u),"part=1;strokeColor=none;fillColor=none;"),r.vertex=!0,v.insert(r),r.style+=O+g(e.TopText),r.value=c(e.TopText),y=new mxCell("",new mxGeometry(0,.5*u,u,.5*u),"part=1;strokeColor=none;fillColor=none;")):(r=new mxCell("",new mxGeometry(0,0,u,.5*t),"part=1;strokeColor=none;fillColor=none;"),r.vertex=!0,v.insert(r),r.style+=O+g(e.TopText),r.value=c(e.TopText),
|
|
|
|
|
y=new mxCell("",new mxGeometry(0,.5*t,u,.5*t),"part=1;strokeColor=none;fillColor=none;"));y.vertex=!0;v.insert(y);y.style+=O;g(e.BotText);y.value=c(e.BotText);switch(e.instrumentLocation){case 0:v.style+="mounting=field;";break;case 1:v.style+="mounting=inaccessible;";break;case 2:v.style+="mounting=room;";break;case 3:v.style+="mounting=local;"}break;case "PEGateValveBlock":case "PEGlobeValveBlock":case "PEAngleValveBlock":case "PEAngleGlobeValveBlock":case "PEPoweredValveBlock":var ic=!1;"PEPoweredValveBlock"==
|
|
|
|
|
l.Class?1!=e.poweredHandOperated&&(ic=!0):1!=e.handOperated&&(ic=!0);if(ic){var e=p(l).Properties,R=e.BoundingBox,sc=R.h;R.h="PEAngleValveBlock"==l.Class||"PEAngleGlobeValveBlock"==l.Class?.7*R.h:.6*R.h;v=new mxCell("",new mxGeometry(Math.round(.6*R.x+0),Math.round(.6*(R.y+sc-R.h)+0),Math.round(.6*R.w),Math.round(.6*R.h)),"");v.vertex=!0;Z(v,l)}if("PEPoweredValveBlock"==l.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;"+z(e,q)+w(e,q)+B(e,q)+C(e)+F(e)+
|
|
|
|
|
l.Class?1!=e.poweredHandOperated&&(ic=!0):1!=e.handOperated&&(ic=!0);if(ic){var e=p(l).Properties,R=e.BoundingBox,sc=R.h;R.h="PEAngleValveBlock"==l.Class||"PEAngleGlobeValveBlock"==l.Class?.7*R.h:.6*R.h;v=new mxCell("",new mxGeometry(Math.round(.6*R.x+0),Math.round(.6*(R.y+sc-R.h)+0),Math.round(.6*R.w),Math.round(.6*R.h)),"");v.vertex=!0;Y(v,l)}if("PEPoweredValveBlock"==l.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;"+z(e,q)+w(e,q)+B(e,q)+C(e)+F(e)+
|
|
|
|
|
D(e)+G(e,q,v),1==e.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",r=new mxCell("",new mxGeometry(.325*u,0,.35*u,.35*t),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),r.vertex=!0,v.insert(r),r.style+=O+z(e,q)+w(e,q)+B(e,q)+C(e)+F(e)+D(e)+"fontSize=6;"+f(e.PoweredText)+b(e.PoweredText)+a(e.PoweredText)+d(e.PoweredText)+h(e.PoweredText)+A(e.PoweredText)+x(e.PoweredText)+E(e.PoweredText),r.value=c(e.PoweredText)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;"+
|
|
|
|
|
z(e,q)+w(e,q)+B(e,q)+C(e)+F(e)+D(e)+G(e,q,v)+m(e)+f(e)+b(e)+a(e);v.value=c(e.Text);switch(l.Class){case "PEGateValveBlock":v.style+="valveType=gate;";break;case "PEGlobeValveBlock":v.style+="valveType=globe;";break;case "PEAngleValveBlock":v.style+="valveType=angle;";break;case "PEAngleGlobeValveBlock":v.style+="valveType=angleGlobe;flipH=1;"}1==e.handOperated&&(v.style+="actuator=man;")}break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;"+z(e,q)+w(e,q)+
|
|
|
|
|
B(e,q)+C(e)+F(e)+D(e)+G(e,q,v);1==e.vScroll&&(H=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,t-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,t-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),H.geometry.relative=!0,H.geometry.offset=new mxPoint(-20,110),H.vertex=!0,v.insert(H),v.style+="spacingRight=20;");1==e.hScroll&&(S=1==e.vScroll?new mxCell("",new mxGeometry(0,
|
|
|
|
@ -224,21 +225,21 @@ bb[k].vertex=!0,v.insert(bb[k]),bb[k].style+=O+w(e,q)+C(e)+F(e)+m(e["Type"+(k+1)
|
|
|
|
|
hb="AWSAndroidBlock3 AWSiOSBlock3 AWSJavaBlock3 AWSJavaScript AWSNetBlock3 AWSNodeJSBlock3 AWSPHPBlock3 AWSPythonBlock3 AWSRubyBlock3 AWSXamarin AWSCLIBlock3 AWSEclipseToolkitBlock3 AWSVisualStudioToolkitBlock3 AWSWindowsPowershellToolkitBlock3 DefaultTextBlock RectangleContainerBlock UMLStartBlock UMLEndBlock DefaultTextBlockNew UMLHForkJoinBlock iOSButton".split(" "),Ha="VennPlainColor1 VennPlainColor2 VennPlainColor3 VennPlainColor4 VennPlainColor5 VennPlainColor6 VennPlainColor7 VennPlainColor8 VennGradientColor1 VennGradientColor2 VennGradientColor3 VennGradientColor4 VennGradientColor5 VennGradientColor6 VennGradientColor7 VennGradientColor8".split(" "),
|
|
|
|
|
Vb=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],gb=["fpDoor"],zb={None:"none",Arrow:"block;endFill=1","Hollow Arrow":"block;endFill=0","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;startSize=10","CFN ERD One Or More Arrow":"ERoneToMany;startSize=10","CFN ERD Many Arrow":"ERmany;startSize=10","CFN ERD Exactly One Arrow":"ERmandOne;startSize=10","CFN ERD Zero Or One Arrow":"ERzeroToOne;startSize=10","CFN ERD One Arrow":"ERone;startSize=16",
|
|
|
|
|
Generalization:"block;endFill=0;startSize=12","Big Open Arrow":"open;startSize=10",Asynch1:"openAsync;flipH=1;startSize=10",Asynch2:"openAsync;startSize=10",Aggregation:"diamond;endFill=0;startSize=16",Composition:"diamond;endFill=1;startSize=16",BlockEnd:"none;endFill=1;startSize=16"},ib={DefaultTextBlockNew:"text;strokeColor=none;fillColor=none",DefaultTextBlock:"text;strokeColor=none;fillColor=none",DefaultSquareBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",
|
|
|
|
|
HotspotBlock:"strokeColor=none;opacity=50",ImageSearchBlock2:"shape=image",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon;perimeter=hexagonPerimeter2",DataBlock:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DataBlockNew:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",
|
|
|
|
|
DatabaseBlock:"shape=cylinder;size=0.1;anchorPointDirection=0;boundedLbl=1;",DirectAccessStorageBlock:"shape=cylinder;direction=south;size=0.1;anchorPointDirection=0;boundedLbl=1;",InternalStorageBlock:"shape=internalStorage;dx=10;dy=10",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;perimeter=trapezoidPerimeter;anchorPointDirection=0;flipV=1",DelayBlock:"shape=delay",StoredDataBlock:"shape=dataStorage",MergeBlock:"triangle;direction=south;anchorPointDirection=0",ConnectorBlock:"ellipse",
|
|
|
|
|
OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"shape=mxgraph.flowchart.annotation_1",AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"fillColor=none;container=1",DiamondContainerBlock:"shape=rhombus;fillColor=none;container=1",RoundedRectangleContainerBlock:"fillColor=none;container=1;rounded=1;absoluteArcSize=1;arcSize=24",
|
|
|
|
|
CircleContainerBlock:"shape=ellipse;fillColor=none;container=1",PillContainerBlock:"arcSize=50;fillColor=none;container=1",IsoscelesTriangleBlock:"triangle;direction=north;anchorPointDirection=0",RightTriangleBlock:"shape=mxgraph.basic.orthogonal_triangle",PentagonBlock:"shape=mxgraph.basic.pentagon",HexagonBlock:"shape=hexagon;perimeter=hexagonPerimeter2",OctagonBlock:"shape=mxgraph.basic.octagon",CrossBlock:"shape=cross;size=0.6",CloudBlock:"ellipse;shape=cloud",HeartBlock:"shape=mxgraph.basic.heart",
|
|
|
|
|
RightArrowBlock:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.3",DoubleArrowBlock:"shape=doubleArrow;arrowWidth=0.5;arrowSize=0.3",CalloutBlock:"shape=mxgraph.basic.rectangular_callout",ShapeCircleBlock:"ellipse",ShapePolyStarBlock:"shape=mxgraph.basic.star",ShapeDiamondBlock:"rhombus",UI2HotspotBlock:"opacity=50;strokeColor=none",AndroidDevice:"mxCompositeShape",AndroidAlertDialog:"mxCompositeShape",AndroidDateDialog:"mxCompositeShape",AndroidTimeDialog:"mxCompositeShape",AndroidListItems:"mxCompositeShape",
|
|
|
|
|
AndroidTabs:"mxCompositeShape",AndroidProgressBar:"mxCompositeShape",AndroidImageBlock:"mxCompositeShape",AndroidTextBlock:"mxCompositeShape",AndroidActionBar:"mxCompositeShape",AndroidButton:"mxCompositeShape",AndroidTextBox:"mxCompositeShape",AndroidRadioButton:"mxCompositeShape",AndroidCheckBox:"mxCompositeShape",AndroidToggle:"mxCompositeShape",AndroidSlider:"mxCompositeShape",AndroidIconCheck:"shape=mxgraph.ios7.misc.check",AndroidIconCancel:"shape=mxgraph.atlassian.x",AndroidIconCollapse:"shape=mxgraph.ios7.misc.up",
|
|
|
|
|
AndroidIconExpand:"shape=mxgraph.ios7.misc.down",AndroidIconNext:"shape=mxgraph.ios7.misc.right",AndroidIconPrevious:"shape=mxgraph.ios7.misc.left",AndroidIconRefresh:NaN,AndroidIconInformation:"shape=mxgraph.ios7.icons.info",AndroidIconSearch:"shape=mxgraph.ios7.icons.looking_glass",AndroidIconSettings:"shape=mxgraph.ios7.icons.volume;direction=south",AndroidIconTrash:"shape=mxgraph.ios7.icons.trashcan",AndroidIconEmail:"shape=mxgraph.mockup.misc.mail2",AndroidIconNew:"shape=mxgraph.ios7.misc.flagged",
|
|
|
|
|
iOSDeviceiPhoneSE:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6s:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6sPlus:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPadPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadLandscape:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProLandscape:"shape=mxgraph.ios7.misc.ipad10inch",iOSButton:"fillColor=none;strokeColor=none;",iOSSegmentedControl:"mxCompositeShape",iOSStepper:"shape=mxgraph.ios7.misc.adjust",
|
|
|
|
|
iOSToggle:"shape=mxgraph.ios7ui.onOffButton;buttonState=on;strokeColor2=#aaaaaa;fillColor2=#ffffff",iOSSlider:"mxCompositeShape",iOSProgressBar:"mxCompositeShape",iOSPageControls:"mxCompositeShape",iOSStatusBar:"mxCompositeShape",iOSSearchBar:"mxCompositeShape",iOSNavBar:"mxCompositeShape",iOSTabs:"mxCompositeShape",iOSUniversalKeyboard:"shape=mxgraph.ios.iKeybLett",iOSDatePicker:"mxCompositeShape",iOSTimePicker:"mxCompositeShape",iOSCountdownPicker:"mxCompositeShape",iOSBasicCell:"mxCompositeShape",
|
|
|
|
|
iOSSubtitleCell:"mxCompositeShape",iOSRightDetailCell:"mxCompositeShape",iOSLeftDetailCell:"mxCompositeShape",iOSTableGroupedSectionBreak:"mxCompositeShape",iOSTablePlainHeaderFooter:"mxCompositeShape",MindMapBlock:"",MindMapStadiumBlock:"arcSize=50",MindMapCloud:"shape=cloud",MindMapCircle:"shape=ellipse",MindMapIsoscelesTriangleBlock:"shape=triangle;direction=north",MindMapDiamondBlock:"shape=rhombus",MindMapPentagonBlock:"shape=mxgraph.basic.pentagon",MindMapHexagonBlock:"shape=hexagon;perimeter=hexagonPerimeter2",
|
|
|
|
|
MindMapOctagonBlock:"shape=mxgraph.basic.octagon",MindMapCrossBlock:"shape=mxgraph.basic.cross2;dx=20",ERDEntityBlock:"mxCompositeShape",ERDEntityBlock2:"mxCompositeShape",ERDEntityBlock3:"mxCompositeShape",ERDEntityBlock4:"mxCompositeShape",SMPage:"shape=mxgraph.sitemap.page",SMHome:"shape=mxgraph.sitemap.home",SMGallery:"shape=mxgraph.sitemap.gallery",SMShopping:"shape=mxgraph.sitemap.shopping",SMMap:"shape=mxgraph.sitemap.map",SMAthletics:"shape=mxgraph.sitemap.sports",SMLogin:"shape=mxgraph.sitemap.login",
|
|
|
|
|
SMPrint:"shape=mxgraph.sitemap.print",SMScript:"shape=mxgraph.sitemap.script",SMSearch:"shape=mxgraph.sitemap.search",SMSettings:"shape=mxgraph.sitemap.settings",SMSitemap:"shape=mxgraph.sitemap.sitemap",SMSuccess:"shape=mxgraph.sitemap.success",SMVideo:"shape=mxgraph.sitemap.video",SMAudio:"shape=mxgraph.sitemap.audio",SMBlog:"shape=mxgraph.sitemap.blog",SMCalendar:"shape=mxgraph.sitemap.calendar",SMChart:"shape=mxgraph.sitemap.chart",SMCloud:"shape=mxgraph.sitemap.cloud",SMDocument:"shape=mxgraph.sitemap.document",
|
|
|
|
|
SMDownload:"shape=mxgraph.sitemap.download",SMError:"shape=mxgraph.sitemap.error",SMForm:"shape=mxgraph.sitemap.form",SMGame:"shape=mxgraph.sitemap.game",SMJobs:"shape=mxgraph.sitemap.jobs",SMLucid:"shape=mxgraph.sitemap.page",SMNewspress:"shape=mxgraph.sitemap.news",SMPhoto:"shape=mxgraph.sitemap.photo",SMPortfolio:"shape=mxgraph.sitemap.portfolio",SMPricing:"shape=mxgraph.sitemap.pricing",SMProfile:"shape=mxgraph.sitemap.profile",SMSlideshow:"shape=mxgraph.sitemap.slideshow",SMUpload:"shape=mxgraph.sitemap.upload",
|
|
|
|
|
UMLClassBlock:"mxCompositeShape",UMLActiveClassBlock:"shape=process",UMLMultiplicityBlock:"mxCompositeShape",UMLPackageBlock:"shape=folder;tabPosition=left",UMLConstraintBlock:"mxCompositeShape",UMLNoteBlock:"shape=note;size=15",UMLTextBlock:"mxCompositeShape",UMLActorBlock:"shape=umlActor;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;whiteSpace=nowrap",UMLUseCaseBlock:"shape=ellipse",UMLCircleContainerBlock:"shape=ellipse;container=1",UMLRectangleContainerBlock:"container=1",
|
|
|
|
|
UMLOptionLoopBlock:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLAlternativeBlock2:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLStartBlock:"shape=ellipse;fillColor=#000000",UMLStateBlock:"rounded=1;arcSize=20",UMLDecisionBlock:"shape=rhombus;",UMLHForkJoinBlock:"fillColor=#000000",UMLVForkJoinBlock:"fillColor=#000000",UMLFlowFinalBlock:"shape=mxgraph.flowchart.or",UMLHistoryStateBlock:"shape=ellipse",UMLEndBlock:"shape=mxgraph.bpmn.shape;outline=end;symbol=terminate;strokeColor=#000000;fillColor=#ffffff",
|
|
|
|
|
HotspotBlock:"strokeColor=none;opacity=50",ImageSearchBlock2:"shape=image",UserImage2Block:"shape=image",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon;perimeter=hexagonPerimeter2",DataBlock:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",
|
|
|
|
|
DataBlockNew:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DatabaseBlock:"shape=cylinder;size=0.1;anchorPointDirection=0;boundedLbl=1;",DirectAccessStorageBlock:"shape=cylinder;direction=south;size=0.1;anchorPointDirection=0;boundedLbl=1;",InternalStorageBlock:"shape=internalStorage;dx=10;dy=10",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;perimeter=trapezoidPerimeter;anchorPointDirection=0;flipV=1",DelayBlock:"shape=delay",StoredDataBlock:"shape=dataStorage",
|
|
|
|
|
MergeBlock:"triangle;direction=south;anchorPointDirection=0",ConnectorBlock:"ellipse",OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"shape=mxgraph.flowchart.annotation_1",AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"fillColor=none;container=1",DiamondContainerBlock:"shape=rhombus;fillColor=none;container=1",
|
|
|
|
|
RoundedRectangleContainerBlock:"fillColor=none;container=1;rounded=1;absoluteArcSize=1;arcSize=24",CircleContainerBlock:"shape=ellipse;fillColor=none;container=1",PillContainerBlock:"arcSize=50;fillColor=none;container=1",IsoscelesTriangleBlock:"triangle;direction=north;anchorPointDirection=0",RightTriangleBlock:"shape=mxgraph.basic.orthogonal_triangle",PentagonBlock:"shape=mxgraph.basic.pentagon",HexagonBlock:"shape=hexagon;perimeter=hexagonPerimeter2",OctagonBlock:"shape=mxgraph.basic.octagon",
|
|
|
|
|
CrossBlock:"shape=cross;size=0.6",CloudBlock:"ellipse;shape=cloud",HeartBlock:"shape=mxgraph.basic.heart",RightArrowBlock:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.3",DoubleArrowBlock:"shape=doubleArrow;arrowWidth=0.5;arrowSize=0.3",CalloutBlock:"shape=mxgraph.basic.rectangular_callout",ShapeCircleBlock:"ellipse",ShapePolyStarBlock:"shape=mxgraph.basic.star",ShapeDiamondBlock:"rhombus",UI2HotspotBlock:"opacity=50;strokeColor=none",AndroidDevice:"mxCompositeShape",AndroidAlertDialog:"mxCompositeShape",
|
|
|
|
|
AndroidDateDialog:"mxCompositeShape",AndroidTimeDialog:"mxCompositeShape",AndroidListItems:"mxCompositeShape",AndroidTabs:"mxCompositeShape",AndroidProgressBar:"mxCompositeShape",AndroidImageBlock:"mxCompositeShape",AndroidTextBlock:"mxCompositeShape",AndroidActionBar:"mxCompositeShape",AndroidButton:"mxCompositeShape",AndroidTextBox:"mxCompositeShape",AndroidRadioButton:"mxCompositeShape",AndroidCheckBox:"mxCompositeShape",AndroidToggle:"mxCompositeShape",AndroidSlider:"mxCompositeShape",AndroidIconCheck:"shape=mxgraph.ios7.misc.check",
|
|
|
|
|
AndroidIconCancel:"shape=mxgraph.atlassian.x",AndroidIconCollapse:"shape=mxgraph.ios7.misc.up",AndroidIconExpand:"shape=mxgraph.ios7.misc.down",AndroidIconNext:"shape=mxgraph.ios7.misc.right",AndroidIconPrevious:"shape=mxgraph.ios7.misc.left",AndroidIconRefresh:NaN,AndroidIconInformation:"shape=mxgraph.ios7.icons.info",AndroidIconSearch:"shape=mxgraph.ios7.icons.looking_glass",AndroidIconSettings:"shape=mxgraph.ios7.icons.volume;direction=south",AndroidIconTrash:"shape=mxgraph.ios7.icons.trashcan",
|
|
|
|
|
AndroidIconEmail:"shape=mxgraph.mockup.misc.mail2",AndroidIconNew:"shape=mxgraph.ios7.misc.flagged",iOSDeviceiPhoneSE:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6s:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6sPlus:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPadPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadLandscape:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProLandscape:"shape=mxgraph.ios7.misc.ipad10inch",iOSButton:"fillColor=none;strokeColor=none;",
|
|
|
|
|
iOSSegmentedControl:"mxCompositeShape",iOSStepper:"shape=mxgraph.ios7.misc.adjust",iOSToggle:"shape=mxgraph.ios7ui.onOffButton;buttonState=on;strokeColor2=#aaaaaa;fillColor2=#ffffff",iOSSlider:"mxCompositeShape",iOSProgressBar:"mxCompositeShape",iOSPageControls:"mxCompositeShape",iOSStatusBar:"mxCompositeShape",iOSSearchBar:"mxCompositeShape",iOSNavBar:"mxCompositeShape",iOSTabs:"mxCompositeShape",iOSUniversalKeyboard:"shape=mxgraph.ios.iKeybLett",iOSDatePicker:"mxCompositeShape",iOSTimePicker:"mxCompositeShape",
|
|
|
|
|
iOSCountdownPicker:"mxCompositeShape",iOSBasicCell:"mxCompositeShape",iOSSubtitleCell:"mxCompositeShape",iOSRightDetailCell:"mxCompositeShape",iOSLeftDetailCell:"mxCompositeShape",iOSTableGroupedSectionBreak:"mxCompositeShape",iOSTablePlainHeaderFooter:"mxCompositeShape",MindMapBlock:"",MindMapStadiumBlock:"arcSize=50",MindMapCloud:"shape=cloud",MindMapCircle:"shape=ellipse",MindMapIsoscelesTriangleBlock:"shape=triangle;direction=north",MindMapDiamondBlock:"shape=rhombus",MindMapPentagonBlock:"shape=mxgraph.basic.pentagon",
|
|
|
|
|
MindMapHexagonBlock:"shape=hexagon;perimeter=hexagonPerimeter2",MindMapOctagonBlock:"shape=mxgraph.basic.octagon",MindMapCrossBlock:"shape=mxgraph.basic.cross2;dx=20",ERDEntityBlock:"mxCompositeShape",ERDEntityBlock2:"mxCompositeShape",ERDEntityBlock3:"mxCompositeShape",ERDEntityBlock4:"mxCompositeShape",SMPage:"shape=mxgraph.sitemap.page",SMHome:"shape=mxgraph.sitemap.home",SMGallery:"shape=mxgraph.sitemap.gallery",SMShopping:"shape=mxgraph.sitemap.shopping",SMMap:"shape=mxgraph.sitemap.map",SMAthletics:"shape=mxgraph.sitemap.sports",
|
|
|
|
|
SMLogin:"shape=mxgraph.sitemap.login",SMPrint:"shape=mxgraph.sitemap.print",SMScript:"shape=mxgraph.sitemap.script",SMSearch:"shape=mxgraph.sitemap.search",SMSettings:"shape=mxgraph.sitemap.settings",SMSitemap:"shape=mxgraph.sitemap.sitemap",SMSuccess:"shape=mxgraph.sitemap.success",SMVideo:"shape=mxgraph.sitemap.video",SMAudio:"shape=mxgraph.sitemap.audio",SMBlog:"shape=mxgraph.sitemap.blog",SMCalendar:"shape=mxgraph.sitemap.calendar",SMChart:"shape=mxgraph.sitemap.chart",SMCloud:"shape=mxgraph.sitemap.cloud",
|
|
|
|
|
SMDocument:"shape=mxgraph.sitemap.document",SMDownload:"shape=mxgraph.sitemap.download",SMError:"shape=mxgraph.sitemap.error",SMForm:"shape=mxgraph.sitemap.form",SMGame:"shape=mxgraph.sitemap.game",SMJobs:"shape=mxgraph.sitemap.jobs",SMLucid:"shape=mxgraph.sitemap.page",SMNewspress:"shape=mxgraph.sitemap.news",SMPhoto:"shape=mxgraph.sitemap.photo",SMPortfolio:"shape=mxgraph.sitemap.portfolio",SMPricing:"shape=mxgraph.sitemap.pricing",SMProfile:"shape=mxgraph.sitemap.profile",SMSlideshow:"shape=mxgraph.sitemap.slideshow",
|
|
|
|
|
SMUpload:"shape=mxgraph.sitemap.upload",UMLClassBlock:"mxCompositeShape",UMLActiveClassBlock:"shape=process",UMLMultiplicityBlock:"mxCompositeShape",UMLPackageBlock:"shape=folder;tabPosition=left",UMLConstraintBlock:"mxCompositeShape",UMLNoteBlock:"shape=note;size=15",UMLTextBlock:"mxCompositeShape",UMLActorBlock:"shape=umlActor;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;whiteSpace=nowrap",UMLUseCaseBlock:"shape=ellipse",UMLCircleContainerBlock:"shape=ellipse;container=1",
|
|
|
|
|
UMLRectangleContainerBlock:"container=1",UMLOptionLoopBlock:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLAlternativeBlock2:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLStartBlock:"shape=ellipse;fillColor=#000000",UMLStateBlock:"rounded=1;arcSize=20",UMLDecisionBlock:"shape=rhombus;",UMLHForkJoinBlock:"fillColor=#000000",UMLVForkJoinBlock:"fillColor=#000000",UMLFlowFinalBlock:"shape=mxgraph.flowchart.or",UMLHistoryStateBlock:"shape=ellipse",UMLEndBlock:"shape=mxgraph.bpmn.shape;outline=end;symbol=terminate;strokeColor=#000000;fillColor=#ffffff",
|
|
|
|
|
UMLObjectBlock:"",UMLSendSignalBlock:"shape=mxgraph.sysml.sendSigAct",UMLReceiveSignalBlock:"shape=mxgraph.sysml.accEvent;flipH=1",UMLAcceptTimeEventActionBlock:"shape=mxgraph.sysml.timeEvent",UMLOffPageLinkBlock:"shape=mxgraph.sysml.sendSigAct;direction=south",UMLMultiLanePoolBlock:"mxCompositeShape",UMLMultiLanePoolRotatedBlock:"mxCompositeShape",UMLMultidimensionalSwimlane:"mxCompositeShape",UMLActivationBlock:"",UMLDeletionBlock:"shape=mxgraph.sysml.x;strokeWidth=4",UMLSeqEntityBlock:"shape=mxgraph.electrical.radio.microphone_1;direction=north",
|
|
|
|
|
UMLComponentBlock:"shape=component;align=left;spacingLeft=36",UMLNodeBlock:"shape=cube;size=12;flipH=1",UMLComponentInterfaceBlock:"shape=ellipse",UMLComponentBoxBlock:"mxCompositeShape",UMLProvidedInterfaceBlock:"shape=lollipop;direction=south",UMLRequiredInterfaceBlock:"shape=requires;direction=north",UMLEntityBlock:"",UMLWeakEntityBlock:"shape=ext;double=1",UMLAttributeBlock:"shape=ellipse",UMLMultivaluedAttributeBlock:"shape=doubleEllipse",UMLRelationshipBlock:"shape=rhombus",UMLWeakRelationshipBlock:"shape=rhombus;double=1",
|
|
|
|
|
BPMNActivity:"mxCompositeShape",BPMNEvent:"mxCompositeShape",BPMNChoreography:"mxCompositeShape",BPMNConversation:"mxCompositeShape",BPMNGateway:"mxCompositeShape",BPMNData:"mxCompositeShape",BPMNDataStore:"shape=datastore",BPMNAdvancedPoolBlock:"mxCompositeShape",BPMNAdvancedPoolBlockRotated:"mxCompositeShape",BPMNBlackPool:"mxCompositeShape",DFDExternalEntityBlock:"mxCompositeShape",DFDExternalEntityBlock2:"",YDMDFDProcessBlock:"shape=ellipse",YDMDFDDataStoreBlock:"shape=partialRectangle;right=0;left=0",
|
|
|
|
@ -531,8 +532,8 @@ mxVsdxCanvas2D.prototype.image=function(c,p,l,g,m,f,b,a){var d=this,h="image"+(t
|
|
|
|
|
!1;0==n.indexOf("svg")&&(n="png",A=!0);h+=n;f=new XMLHttpRequest;f.open("GET",m,!0);f.responseType="arraybuffer";f.onreadystatechange=function(a){if(4==this.readyState&&(200==this.status&&(A?d.convertSvg2Png(this.response,!1,function(a){d.zip.file("visio/media/"+h,a.substring(22),{base64:!0})}):d.zip.file("visio/media/"+h,this.response)),d.filesLoading--,0==d.filesLoading))d.onFilesLoaded()};f.send()}this.images.push(h);this.shapeImg={type:n,id:this.images.length+1};m=this.state;l*=m.scale;g*=m.scale;
|
|
|
|
|
n=this.xmGeo;c=(c-n.x+m.dx)*m.scale;p=(n.height-p+n.y-m.dy)*m.scale;this.shape.appendChild(this.createCellElemScaled("ImgOffsetX",c));this.shape.appendChild(this.createCellElemScaled("ImgOffsetY",p-g));this.shape.appendChild(this.createCellElemScaled("ImgWidth",l));this.shape.appendChild(this.createCellElemScaled("ImgHeight",g))};
|
|
|
|
|
mxVsdxCanvas2D.prototype.text=function(c,p,l,g,m,f,b,a,d,h,n,A,x){var E=this;if(this.textEnabled&&null!=m){mxUtils.isNode(m)&&(m=mxUtils.getOuterHtml(m));0==l&&0==g&&(g=mxUtils.getSizeForString(m,E.cellState.style.fontSize,E.cellState.style.fontFamily),l=1.2*g.width,g=1.2*g.height);"html"==d&&("0"!=mxUtils.getValue(this.cellState.style,"nl2Br","1")&&(m=m.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n")),null==this.html2txtDiv&&(this.html2txtDiv=document.createElement("div")),this.html2txtDiv.innerHTML=
|
|
|
|
|
m,m=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));h=this.state;n=this.xmGeo;l*=h.scale;g*=h.scale;var w=this.createElt("Section");w.setAttribute("N","Character");var z=this.createElt("Section");z.setAttribute("N","Paragraph");var I=this.createElt("Text"),G=0,D=0,B=0,F=0,C=0,Z=0,K=function(b,d,h,n,c){h=b.fontSize;var f=b.fontFamily,A=mxUtils.getSizeForString(c,h,f);a&&A.width>l&&(A=mxUtils.getSizeForString(c,h,f,l));b.blockElem?(F+=A.width,D=Math.min(Math.max(D,F),l),F=0,C=Math.max(C,
|
|
|
|
|
A.height),B+=C+Z,Z=C,C=0):(F+=A.width,D=Math.min(Math.max(D,F),l),C=Math.max(C,A.height),B=Math.max(B,C));A=E.createElt("Row");A.setAttribute("IX",G);b.fontColor&&A.appendChild(E.createCellElem("Color",b.fontColor));h&&A.appendChild(E.createCellElemScaled("Size",.97*h));f&&A.appendChild(E.createCellElem("Font",f));h=0;b.bold&&(h|=17);b.italic&&(h|=34);b.underline&&(h|=4);A.appendChild(E.createCellElem("Style",h));A.appendChild(E.createCellElem("Case","0"));A.appendChild(E.createCellElem("Pos","0"));
|
|
|
|
|
m,m=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));h=this.state;n=this.xmGeo;l*=h.scale;g*=h.scale;var w=this.createElt("Section");w.setAttribute("N","Character");var z=this.createElt("Section");z.setAttribute("N","Paragraph");var I=this.createElt("Text"),G=0,D=0,B=0,F=0,C=0,Y=0,K=function(b,d,h,n,c){h=b.fontSize;var f=b.fontFamily,A=mxUtils.getSizeForString(c,h,f);a&&A.width>l&&(A=mxUtils.getSizeForString(c,h,f,l));b.blockElem?(F+=A.width,D=Math.min(Math.max(D,F),l),F=0,C=Math.max(C,
|
|
|
|
|
A.height),B+=C+Y,Y=C,C=0):(F+=A.width,D=Math.min(Math.max(D,F),l),C=Math.max(C,A.height),B=Math.max(B,C));A=E.createElt("Row");A.setAttribute("IX",G);b.fontColor&&A.appendChild(E.createCellElem("Color",b.fontColor));h&&A.appendChild(E.createCellElemScaled("Size",.97*h));f&&A.appendChild(E.createCellElem("Font",f));h=0;b.bold&&(h|=17);b.italic&&(h|=34);b.underline&&(h|=4);A.appendChild(E.createCellElem("Style",h));A.appendChild(E.createCellElem("Case","0"));A.appendChild(E.createCellElem("Pos","0"));
|
|
|
|
|
A.appendChild(E.createCellElem("FontScale","1"));A.appendChild(E.createCellElem("Letterspace","0"));d.appendChild(A);d=E.createElt("cp");d.setAttribute("IX",G++);n.appendChild(d);b=E.xmlDoc.createTextNode(c+(b.blockElem?"\n":""));n.appendChild(b)},N=function(a,b){b=b||{};for(var d=0;d<a.length;d++)if(3==a[d].nodeType){var h=E.cellState.style.fontStyle,n={fontColor:b.fontColor||E.cellState.style.fontColor,fontSize:b.fontSize||E.cellState.style.fontSize,fontFamily:b.fontFamily||E.cellState.style.fontFamily,
|
|
|
|
|
align:b.align||E.cellState.style.align,bold:b.bold||h&1,italic:b.italic||h&2,underline:b.underline||h&4};K(n,w,z,I,a[d].textContent)}else if(1==a[d].nodeType){var n=a[d].nodeName.toUpperCase(),h=a[d].childNodes.length,c=window.getComputedStyle(a[d],null),f="bold"==c.getPropertyValue("font-weight")||b.bold,A="italic"==c.getPropertyValue("font-style")||b.italic,x=0<=c.getPropertyValue("text-decoration").indexOf("underline")||b.underline,m=c.getPropertyValue("text-align"),g;g=c.getPropertyValue("color");
|
|
|
|
|
g=(g=g.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===g.length?"#"+("0"+parseInt(g[1],10).toString(16)).slice(-2)+("0"+parseInt(g[2],10).toString(16)).slice(-2)+("0"+parseInt(g[3],10).toString(16)).slice(-2):"";n={bold:f,italic:A,underline:x,align:m,fontColor:g,fontSize:parseFloat(c.getPropertyValue("font-size")),fontFamily:c.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==c.getPropertyValue("display")||"BR"==n||"LI"==n};0<h?(K(n,w,z,I,""),
|
|
|
|
@ -602,7 +603,7 @@ n.entries[w].key===g){n=n.entries[w].value;break a}n=null}null!=n&&(x=n.getName(
|
|
|
|
|
(function(c){(function(c){(function(c){(function(c){(function(c){var f=function(){function b(a,b,h){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=b;this.y=h}b.prototype.getX=function(){return this.x};b.prototype.getY=function(){return this.y};b.prototype.getA=function(){return this.a};b.prototype.getB=function(){return this.b};b.prototype.getC=function(){return this.c};b.prototype.getD=function(){return this.d};b.prototype.getFormulaA=
|
|
|
|
|
function(){return this.formulaA};b.prototype.getFormulaE=function(){return this.formulaE};b.prototype.getIndex=function(){return this.index};return b}();c.Row=f;f.__class="com.mxgraph.io.vsdx.geometry.Row"})(c.geometry||(c.geometry={}))})(c.vsdx||(c.vsdx={}))})(c.io||(c.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(c){(function(p){(function(l){(function(g){(function(g){var f=function(){function b(){}b.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))||1}catch(d){return 1}};b.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var b=parseFloat(a);if(isFinite(b))return b}}catch(h){}return null};b.getRowObj=function(a,d){var h=a.getAttribute("T"),n=b.getIndex(a),f;f=(f=a.getAttribute("Del"))&&f.equals?f.equals("1"):"1"===f;if(!f){var x=null;n<=d.length&&(x=d[n-1]);var g=f=null,m=null,
|
|
|
|
|
l=null,p=null,G=null,D=null,B=null;null!=x&&(f=x.x,g=x.y,m=x.getA(),l=x.getB(),p=x.getC(),G=x.getD(),B=x.getFormulaA(),D=x.getFormulaE());for(var x=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),F=0;F<x.length;F++){var C=x[F],Z=C.getAttribute("N"),K=C.getAttribute("V");switch(Z){case "X":f=b.getDoubleVal(K);break;case "Y":g=b.getDoubleVal(K);break;case "A":m=b.getDoubleVal(K);B=C.getAttribute("V");break;case "B":l=b.getDoubleVal(K);break;case "C":p=b.getDoubleVal(K);break;case "D":G=b.getDoubleVal(K);
|
|
|
|
|
l=null,p=null,G=null,D=null,B=null;null!=x&&(f=x.x,g=x.y,m=x.getA(),l=x.getB(),p=x.getC(),G=x.getD(),B=x.getFormulaA(),D=x.getFormulaE());for(var x=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),F=0;F<x.length;F++){var C=x[F],Y=C.getAttribute("N"),K=C.getAttribute("V");switch(Y){case "X":f=b.getDoubleVal(K);break;case "Y":g=b.getDoubleVal(K);break;case "A":m=b.getDoubleVal(K);B=C.getAttribute("V");break;case "B":l=b.getDoubleVal(K);break;case "C":p=b.getDoubleVal(K);break;case "D":G=b.getDoubleVal(K);
|
|
|
|
|
break;case "E":D=K}}switch(h){case "MoveTo":return new c.mxgraph.io.vsdx.geometry.MoveTo(n,f,g);case "LineTo":return new c.mxgraph.io.vsdx.geometry.LineTo(n,f,g);case "ArcTo":return new c.mxgraph.io.vsdx.geometry.ArcTo(n,f,g,m);case "Ellipse":return new c.mxgraph.io.vsdx.geometry.Ellipse(n,f,g,m,l,p,G);case "EllipticalArcTo":return new c.mxgraph.io.vsdx.geometry.EllipticalArcTo(n,f,g,m,l,p,G);case "InfiniteLine":return new c.mxgraph.io.vsdx.geometry.InfiniteLine(n,f,g,m,l);case "NURBSTo":return new c.mxgraph.io.vsdx.geometry.NURBSTo(n,
|
|
|
|
|
f,g,m,l,p,G,D);case "PolylineTo":return new c.mxgraph.io.vsdx.geometry.PolylineTo(n,f,g,B);case "RelCubBezTo":return new c.mxgraph.io.vsdx.geometry.RelCubBezTo(n,f,g,m,l,p,G);case "RelEllipticalArcTo":return new c.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(n,f,g,m,l,p,G);case "RelLineTo":return new c.mxgraph.io.vsdx.geometry.RelLineTo(n,f,g);case "RelMoveTo":return new c.mxgraph.io.vsdx.geometry.RelMoveTo(n,f,g);case "RelQuadBezTo":return new c.mxgraph.io.vsdx.geometry.RelQuadBezTo(n,f,g,m,l);case "SplineKnot":return new c.mxgraph.io.vsdx.geometry.SplineKnot(n,
|
|
|
|
|
f,g,m);case "SplineStart":return new c.mxgraph.io.vsdx.geometry.SplineStart(n,f,g,m,l,p,G)}}return new c.mxgraph.io.vsdx.geometry.DelRow(n)};return b}();g.RowFactory=f;f.__class="com.mxgraph.io.vsdx.geometry.RowFactory"})(g.geometry||(g.geometry={}))})(l.vsdx||(l.vsdx={}))})(p.io||(p.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
|
|
|
@ -786,8 +787,8 @@ l=this.b*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),l=d-l,p=this.c*c.
|
|
|
|
|
'" y="'+(new String(d)).toString()+'"/><arc rx="'+(new String(h)).toString()+'" ry="'+(new String(G)).toString()+'" x="'+(new String(f)).toString()+'" y="'+(new String(d)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/><arc rx="'+(new String(h)).toString()+'" ry="'+(new String(G)).toString()+'" x="'+(new String(p)).toString()+'" y="'+(new String(d)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/>'}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);g.Ellipse=
|
|
|
|
|
f;f.__class="com.mxgraph.io.vsdx.geometry.Ellipse"})(g.geometry||(g.geometry={}))})(l.vsdx||(l.vsdx={}))})(p.io||(p.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(c){(function(p){(function(l){(function(g){(function(g){var f=function(b){function a(a,h,c,f,g,m,l){a=b.call(this,a,h,c)||this;a.a=f;a.b=g;a.c=m;a.d=l;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=b.getHeight(),h=b.getWidth(),f=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=d-g,m=this.a*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),
|
|
|
|
|
l=this.b*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),p=this.c,G=this.d,f=100*f/h,g=100*g/d,D=b.getLastX()*h/100,B=b.getLastY()*d/100,F=f*h/100,C=g*d/100,Z=d-l,K=-p,p=Math.sqrt(D*D+B*B)*Math.cos(Math.atan2(B,D)-K),l=Math.sqrt(D*D+B*B)*Math.sin(Math.atan2(B,D)-K),N=Math.sqrt(F*F+C*C)*Math.cos(Math.atan2(C,F)-K),R=Math.sqrt(F*F+C*C)*Math.sin(Math.atan2(C,F)-K),fa=Math.sqrt(m*m+Z*Z)*Math.cos(Math.atan2(Z,m)-K),aa=Math.sqrt(m*m+Z*Z)*Math.sin(Math.atan2(Z,m)-K),ha=((p-N)*(p+N)*(R-aa)-(N-fa)*(N+
|
|
|
|
|
fa)*(l-R)+G*G*(l-R)*(R-aa)*(l-aa))/(2*((p-N)*(R-aa)-(N-fa)*(l-R))),Aa=((p-N)*(N-fa)*(p-fa)/(G*G)+(N-fa)*(l-R)*(l+R)-(p-N)*(R-aa)*(R+aa))/(2*((N-fa)*(l-R)-(p-N)*(R-aa))),da=p-ha,ma=l-Aa,da=Math.sqrt(da*da+ma*ma*G*G),G=da/G,K=180*K/Math.PI,f=Math.round(100*f)/100,g=Math.round(100*g)/100,da=Math.round(100*da/h*100)/100,G=Math.round(100*G/d*100)/100,K=Math.round(100*K)/100,d=0<(F-D)*(Z-B)-(C-B)*(m-D)?"0":"1",h="0";c.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(ha,Aa,p,l,N,R,fa,aa)&&this.isReflexAngle(ha,
|
|
|
|
|
l=this.b*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),p=this.c,G=this.d,f=100*f/h,g=100*g/d,D=b.getLastX()*h/100,B=b.getLastY()*d/100,F=f*h/100,C=g*d/100,Y=d-l,K=-p,p=Math.sqrt(D*D+B*B)*Math.cos(Math.atan2(B,D)-K),l=Math.sqrt(D*D+B*B)*Math.sin(Math.atan2(B,D)-K),N=Math.sqrt(F*F+C*C)*Math.cos(Math.atan2(C,F)-K),R=Math.sqrt(F*F+C*C)*Math.sin(Math.atan2(C,F)-K),fa=Math.sqrt(m*m+Y*Y)*Math.cos(Math.atan2(Y,m)-K),aa=Math.sqrt(m*m+Y*Y)*Math.sin(Math.atan2(Y,m)-K),ha=((p-N)*(p+N)*(R-aa)-(N-fa)*(N+
|
|
|
|
|
fa)*(l-R)+G*G*(l-R)*(R-aa)*(l-aa))/(2*((p-N)*(R-aa)-(N-fa)*(l-R))),Aa=((p-N)*(N-fa)*(p-fa)/(G*G)+(N-fa)*(l-R)*(l+R)-(p-N)*(R-aa)*(R+aa))/(2*((N-fa)*(l-R)-(p-N)*(R-aa))),da=p-ha,ma=l-Aa,da=Math.sqrt(da*da+ma*ma*G*G),G=da/G,K=180*K/Math.PI,f=Math.round(100*f)/100,g=Math.round(100*g)/100,da=Math.round(100*da/h*100)/100,G=Math.round(100*G/d*100)/100,K=Math.round(100*K)/100,d=0<(F-D)*(Y-B)-(C-B)*(m-D)?"0":"1",h="0";c.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(ha,Aa,p,l,N,R,fa,aa)&&this.isReflexAngle(ha,
|
|
|
|
|
Aa,p,l,N,R,fa,aa)&&(h="1");b.setLastX(f);b.setLastY(g);return'<arc rx="'+(new String(da)).toString()+'" ry="'+(new String(G)).toString()+'" x="'+(new String(f)).toString()+'" y="'+(new String(g)).toString()+'" x-axis-rotation="'+(new String(K)).toString()+'" large-arc-flag="'+h+'" sweep-flag="'+d+'"/>'}return""};a.prototype.isReflexAngle=function(a,b,c,f,g,m,l,p){c-=a;f-=b;m-=b;g=l-a;p-=b;b=a=0;c=180*(Math.atan2(f,c)-Math.atan2(b,a))/Math.PI;g=180*(Math.atan2(m,g)-Math.atan2(b,a))/Math.PI;a=180*(Math.atan2(p,
|
|
|
|
|
l)-Math.atan2(b,a))/Math.PI;c=(c-a)%360;g=(g-a)%360;180<c?c-=360:-180>c&&(c+=360);180<g?g-=360:-180>g&&(g+=360);return(0<c&&0>g||0>c&&0<g)&&180<Math.abs(c-g)?!0:!1};return a}(c.mxgraph.io.vsdx.geometry.Row);g.EllipticalArcTo=f;f.__class="com.mxgraph.io.vsdx.geometry.EllipticalArcTo"})(g.geometry||(g.geometry={}))})(l.vsdx||(l.vsdx={}))})(p.io||(p.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(c){(function(p){(function(l){(function(g){(function(g){var f=function(b){function a(a,h,c,f,g){a=b.call(this,a,h,c)||this;a.a=f;a.b=g;return a}__extends(a,b);a.prototype.handle=function(a,b){return""};return a}(c.mxgraph.io.vsdx.geometry.Row);g.InfiniteLine=f;f.__class="com.mxgraph.io.vsdx.geometry.InfiniteLine"})(g.geometry||(g.geometry={}))})(l.vsdx||(l.vsdx={}))})(p.io||(p.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
|
|
|
@ -1016,7 +1017,7 @@ com.mxgraph.io.vsdx.VsdxShape.arrowTypes_$LI$();com.mxgraph.io.vsdx.VsdxShape.ar
|
|
|
|
|
com.mxgraph.io.vsdx.mxVsdxTheme.colorIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.themesIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.__static_initialize();com.mxgraph.io.vsdx.mxVsdxConstants.MY_SET_$LI$();com.mxgraph.io.vsdx.mxVsdxConstants.SET_VALUES_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.defaultColors_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.__static_initialize();com.mxgraph.io.mxVsdxCodec.vsdxPlaceholder_$LI$();com.mxgraph.io.mxVsdxCodec.parsererrorNS_$LI$();
|
|
|
|
|
EditorUi.prototype.doImportVisio=function(c,p,l){null!=c.name&&/(\.vs(x|sx?))($|\?)/i.test(c.name)?(new com.mxgraph.io.mxVssxCodec).decodeVssx(c,p):(new com.mxgraph.io.mxVsdxCodec).decodeVsdx(c,p,null,l)};function mxGraphMlCodec(){this.cachedRefObj={}}mxGraphMlCodec.prototype.refRegexp=/^\{y\:GraphMLReference\s+(\d+)\}$/;mxGraphMlCodec.prototype.staticRegexp=/^\{x\:Static\s+(.+)\.(.+)\}$/;
|
|
|
|
|
mxGraphMlCodec.prototype.decode=function(c,p,l){try{var g=mxUtils.parseXml(c),m=this.getDirectChildNamedElements(g.documentElement,mxGraphMlConstants.GRAPH);this.initializeKeys(g.documentElement);c='<?xml version="1.0" encoding="UTF-8"?><mxfile>';for(g=0;g<m.length;g++){var f=m[g],b=this.createMxGraph(),a=b.getModel();a.beginUpdate();try{for(this.nodesMap={},this.edges=[],this.importGraph(f,b,b.getDefaultParent()),g=0;g<this.edges.length;g++)for(var d=this.edges[g],h=d.edges,n=d.parent,A=d.dx,x=d.dy,
|
|
|
|
|
E=0;E<h.length;E++)this.importEdge(h[E],b,n,A,x)}catch(ha){throw console.log(ha),ha;}finally{a.endUpdate()}a.beginUpdate();try{var w=b.getModel().cells,z;for(z in w){var I=w[z];if(I.edge&&0<I.getChildCount())for(g=0;g<I.getChildCount();g++){var G=I.children[g].geometry;if(G.adjustIt){var D=b.view.getState(I),B=D.absolutePoints,F=B[0],C=B[B.length-1],Z=G.x,K=G.y,A=C.x-F.x,x=C.y-F.y,N=F.x+Z*A,R=F.y+Z*x,fa=Math.sqrt(A*A+x*x),A=A/fa,x=x/fa,N=N-K*x,R=R+K*A,aa=b.view.getRelativePoint(D,N,R);G.x=aa.x;G.y=
|
|
|
|
|
E=0;E<h.length;E++)this.importEdge(h[E],b,n,A,x)}catch(ha){throw console.log(ha),ha;}finally{a.endUpdate()}a.beginUpdate();try{var w=b.getModel().cells,z;for(z in w){var I=w[z];if(I.edge&&0<I.getChildCount())for(g=0;g<I.getChildCount();g++){var G=I.children[g].geometry;if(G.adjustIt){var D=b.view.getState(I),B=D.absolutePoints,F=B[0],C=B[B.length-1],Y=G.x,K=G.y,A=C.x-F.x,x=C.y-F.y,N=F.x+Y*A,R=F.y+Y*x,fa=Math.sqrt(A*A+x*x),A=A/fa,x=x/fa,N=N-K*x,R=R+K*A,aa=b.view.getRelativePoint(D,N,R);G.x=aa.x;G.y=
|
|
|
|
|
aa.y}}}}catch(ha){throw console.log(ha),ha;}finally{a.endUpdate()}c+=this.processPage(b,g+1)}p&&p(c+"</mxfile>")}catch(ha){l&&l(ha)}};
|
|
|
|
|
mxGraphMlCodec.prototype.initializeKeys=function(c){var p=this.getDirectChildNamedElements(c,mxGraphMlConstants.KEY);this.nodesKeys={};this.edgesKeys={};this.portsKeys={};this.sharedData={};this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY]={};this.nodesKeys[mxGraphMlConstants.USER_TAGS]={};this.nodesKeys[mxGraphMlConstants.NODE_STYLE]={};this.nodesKeys[mxGraphMlConstants.NODE_LABELS]={};this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS]={};this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY]={};this.edgesKeys[mxGraphMlConstants.EDGE_STYLE]=
|
|
|
|
|
{};this.edgesKeys[mxGraphMlConstants.EDGE_LABELS]={};this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER]={};this.portsKeys[mxGraphMlConstants.PORT_STYLE]={};this.portsKeys[mxGraphMlConstants.PORT_VIEW_STATE]={};for(var l,g=0;g<p.length;g++){var m=this.dataElem2Obj(p[g]),f=m[mxGraphMlConstants.ID],b=m[mxGraphMlConstants.KEY_FOR],a=m[mxGraphMlConstants.KEY_NAME],d=m[mxGraphMlConstants.KEY_YTYPE];a==mxGraphMlConstants.SHARED_DATA&&(l=f);a=a?a:d;switch(b){case mxGraphMlConstants.NODE:this.nodesKeys[a]=
|
|
|
|
|