|
|
|
@ -1,12 +1,12 @@
|
|
|
|
|
LucidImporter={};
|
|
|
|
|
(function(){function f(a){Aa="";try{if(a){var b=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(b=LucidImporter.advImpConfig.fontMapping[a]);if(b){for(var d in b)Aa+=d+"="+b[d]+";";return b.fontFamily?"font-family: "+b.fontFamily:""}if("Liberation Sans"!=a)return Aa="fontFamily="+a+";","font-family: "+a+";"}}catch(Ib){}return""}function n(a,b,d){function h(a,b){var h="",g=a.t,m=a.l||{};if(null==g||0!=E&&E==g.v&&l==m.v)null==g&&(E&&(h+=c(!0),E=!1),h+='<div style="',oa.push("div"));
|
|
|
|
|
else{E&&(h+=c(!0));E=g.v;l=m.v;"ul"==g.v?(h+="<ul ",oa.push("ul")):(h+="<ol ",oa.push("ol"));h+='style="margin: 0px; padding: 10px;list-style-position: inside; list-style-type:';if("hl"==g.v)h+="upper-roman";else switch(m.v){case "auto":h+="disc";break;case "inv":h+="circle";break;case "disc":h+="circle";break;case "trib":h+="square";break;case "square":h+="square";break;case "dash":h+="square";break;case "heart":h+="disc";break;default:h+="decimal"}h+='">'}null!=g&&(h+='<li style="text-align:'+(a.a?
|
|
|
|
|
a.a.v:d.TextAlign||"center")+";",null!=b&&b.c&&(g=Y(b.c.v),null!=g&&(g=g.substring(0,7),h+="color:"+g+";")),h+='">',oa.push("li"),h+='<span style="font-size:11px;',oa.push("span"));E||(m=g=a.a?a.a.v:d.TextAlign||"center","left"==g?m="flex-start":"right"==g&&(m="flex-end"),h+="display: flex; justify-content: "+m+"; text-align: "+g+"; align-items: baseline; font-size: 0; line-height: 1;");a.il&&(h+="margin-left: "+Math.max(0,Math.round(.6*a.il.v-(E?28:0)))+"px;");a.ir&&(h+="margin-right: "+Math.round(.6*
|
|
|
|
|
a.ir.v)+"px;");a.mt&&(h+="margin-top: "+Math.round(.6*a.mt.v)+"px;");a.mb&&(h+="margin-bottom: "+Math.round(.6*a.mb.v)+"px;");h+='">';E||(h+='<span style="font-size:11px;">',oa.push("span"));return h}function g(a){if(0==Object.keys(a).length)return"";var b="",h=0;if(a.lk){var g=a.lk;null!=g.v&&0<g.v.length&&(b+='<a href="'+m(g.v[0])+'">',A.push("a"),h++)}b+='<span style="';A.push("span");h++;b+="font-size:"+(a.s?Math.floor(.6*a.s.v):"11")+"px;";a.c&&(g=Y(a.c.v),null!=g&&(g=g.substring(0,7),b+="color:"+
|
|
|
|
|
g+";"));if(a.b&&a.b.v||a.fc&&a.fc.v&&0==a.fc.v.indexOf("Bold"))b+="font-weight: bold;";a.i&&a.i.v&&(b+="font-style: italic;");a.ac&&a.ac.v&&(b+="text-transform: uppercase;");g=null;a.f?g=a.f.v:d.Font&&(g=d.Font);b+=f(g);g=[];a.u&&a.u.v&&g.push("underline");a.k&&a.k.v&&g.push("line-through");0<g.length&&(b+="text-decoration: "+g.join(" ")+";");b+='">';z.push(h);return b}function c(a){var b="";do{var d=oa.pop();if(!a&&E&&("ul"==d||"ol"==d)){oa.push(d);break}b+="</"+d+">"}while(0<oa.length);return b}
|
|
|
|
|
function y(a,b,d,h){a=a?a.substring(b,d):"";E&&(a=a.trim());a=a.replace(/</g,"<").replace(/>/g,">");do for(b=z.pop(),d=0;d<b;d++){var g=A.pop();a+="</"+g+">"}while(h&&0<A.length);return a}var w={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},k={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,k:!0,f:!0,ac:!0};b.sort(function(a,b){return a.s-b.s});var e=b.filter(function(a){return k[a.n]});e[0]&&0!=e[0].s&&e.unshift({s:0,n:"dummy",v:"",e:e[0].s});b=b.filter(function(a){return w[a.n]});for(var p=[0],fa=0;0<
|
|
|
|
|
(fa=a.indexOf("\n",fa));)fa++,p.push(fa);for(var C=0,fa=0;fa<b.length;fa++){if(b[fa].s>p[C])b.splice(fa,0,{s:p[C],n:"a",v:d.TextAlign||"center"});else{for(var n=0;fa+n<b.length&&b[fa+n].s==p[C];)n++;1<n&&(fa+=n-1)}C++}null!=p[C]&&b.push({s:p[C],n:"a",v:d.TextAlign||"center"});p="";C=e.slice();C.sort(function(a,b){return a.e-b.e});for(var u=n=fa=0,D={},B={},A=[],z=[],oa=[],S=!1,E=!1,l,ia=0,N=0,R=a.length,ea=!0;u<b.length||ea;){ea=!1;if(u<b.length){var U=b[u],G=b[u].s;S&&(B={},p+=y(a,ia,R,!0),N=ia=
|
|
|
|
|
R,p+=c());for(;null!=U&&U.s==G;)B[U.n]=U,U=b[++u];R=null!=U?U.s:a.length;p+=h(B,D);S&&(p+=g(D));S=!0}for(;fa>=n&&(fa<e.length||n<C.length);)if(U=e[fa],G=C[n],U&&G&&U.s<G.e){if(U.s>=R)break;ia=U.s;0<ia-N&&(p+=g(D)+y(a,N,ia),N=ia);for(;null!=U&&U.s==ia;)D[U.n]=U,U=e[++fa];p+=g(D)}else if(G){if(G.e>R)break;N=G.e;do delete D[G.n],G=C[++n];while(null!=G&&G.e==N);p+=y(a,ia,N);ia=N;0!=z.length||null!=U&&U.s==N||(e.splice(fa,0,{s:N,n:"dummy",v:""}),C.splice(n,0,{e:U?U.s:R,n:"dummy",v:""}))}else break}p+=
|
|
|
|
|
(function(){function f(a){Aa="";try{if(a){var b=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(b=LucidImporter.advImpConfig.fontMapping[a]);if(b){for(var d in b)Aa+=d+"="+b[d]+";";return b.fontFamily?"font-family: "+b.fontFamily:""}if("Liberation Sans"!=a)return Aa="fontFamily="+a+";","font-family: "+a+";"}}catch(Ib){}return""}function n(a,b,d){function h(a,b){var h="",g=a.t,m=a.l||{v:"ul"==g.v?"auto":"decimal"};if(null==g||0!=E&&E==g.v&&l==m.v)null==g&&(E&&(h+=c(!0),E=
|
|
|
|
|
!1),h+='<div style="',oa.push("div"));else{E&&(h+=c(!0));E=g.v;l=m.v;"ul"==g.v?(h+="<ul ",oa.push("ul")):(h+="<ol ",oa.push("ol"));h+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';if("hl"==g.v)h+="upper-roman";else switch(m.v){case "auto":h+="disc";break;case "inv":h+="circle";break;case "disc":h+="circle";break;case "trib":h+="square";break;case "square":h+="square";break;case "dash":h+="square";break;case "heart":h+="disc";break;default:h+="decimal"}h+='">'}null!=
|
|
|
|
|
g&&(h+='<li style="text-align:'+(a.a?a.a.v:d.TextAlign||"center")+";",null!=b&&b.c&&(g=Y(b.c.v),null!=g&&(g=g.substring(0,7),h+="color:"+g+";")),h+='">',oa.push("li"),h+='<span style="font-size:11px;',oa.push("span"));E||(m=g=a.a?a.a.v:d.TextAlign||"center","left"==g?m="flex-start":"right"==g&&(m="flex-end"),h+="display: flex; justify-content: "+m+"; text-align: "+g+"; align-items: baseline; font-size: 0; line-height: 1;");a.il&&(h+="margin-left: "+Math.max(0,Math.round(.6*a.il.v-(E?28:0)))+"px;");
|
|
|
|
|
a.ir&&(h+="margin-right: "+Math.round(.6*a.ir.v)+"px;");a.mt&&(h+="margin-top: "+Math.round(.6*a.mt.v)+"px;");a.mb&&(h+="margin-bottom: "+Math.round(.6*a.mb.v)+"px;");h+='">';E||(h+='<span style="font-size:11px;">',oa.push("span"));return h}function g(a){if(0==Object.keys(a).length)return"";var b="",h=0;if(a.lk){var g=a.lk;null!=g.v&&0<g.v.length&&(b+='<a href="'+m(g.v[0])+'">',A.push("a"),h++)}b+='<span style="';A.push("span");h++;b+="font-size:"+(a.s?Math.floor(.6*a.s.v):"11")+"px;";a.c&&(g=Y(a.c.v),
|
|
|
|
|
null!=g&&(g=g.substring(0,7),b+="color:"+g+";"));if(a.b&&a.b.v||a.fc&&a.fc.v&&0==a.fc.v.indexOf("Bold"))b+="font-weight: bold;";a.i&&a.i.v&&(b+="font-style: italic;");a.ac&&a.ac.v&&(b+="text-transform: uppercase;");g=null;a.f?g=a.f.v:d.Font&&(g=d.Font);b+=f(g);g=[];a.u&&a.u.v&&g.push("underline");a.k&&a.k.v&&g.push("line-through");0<g.length&&(b+="text-decoration: "+g.join(" ")+";");b+='">';z.push(h);return b}function c(a){var b="";do{var d=oa.pop();if(!a&&E&&("ul"==d||"ol"==d)){oa.push(d);break}b+=
|
|
|
|
|
"</"+d+">"}while(0<oa.length);return b}function y(a,b,d,h){a=a?a.substring(b,d):"";E&&(a=a.trim());a=a.replace(/</g,"<").replace(/>/g,">");do for(b=z.pop(),d=0;d<b;d++){var g=A.pop();a+="</"+g+">"}while(h&&0<A.length);return a}var w={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},k={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,k:!0,f:!0,ac:!0};b.sort(function(a,b){return a.s-b.s});var e=b.filter(function(a){return k[a.n]});e[0]&&0!=e[0].s&&e.unshift({s:0,n:"dummy",v:"",e:e[0].s});b=b.filter(function(a){return w[a.n]});
|
|
|
|
|
for(var p=[0],fa=0;0<(fa=a.indexOf("\n",fa));)fa++,p.push(fa);for(var C=0,fa=0;fa<b.length;fa++){if(b[fa].s>p[C])b.splice(fa,0,{s:p[C],n:"a",v:d.TextAlign||"center"});else{for(var n=0;fa+n<b.length&&b[fa+n].s==p[C];)n++;1<n&&(fa+=n-1)}C++}null!=p[C]&&b.push({s:p[C],n:"a",v:d.TextAlign||"center"});p="";C=e.slice();C.sort(function(a,b){return a.e-b.e});for(var u=n=fa=0,D={},B={},A=[],z=[],oa=[],S=!1,E=!1,l,ia=0,N=0,R=a.length,ea=!0;u<b.length||ea;){ea=!1;if(u<b.length){var U=b[u],G=b[u].s;S&&(B={},
|
|
|
|
|
p+=y(a,ia,R,!0),N=ia=R,p+=c());for(;null!=U&&U.s==G;)B[U.n]=U,U=b[++u];R=null!=U?U.s:a.length;p+=h(B,D);S&&(p+=g(D));S=!0}for(;fa>=n&&(fa<e.length||n<C.length);)if(U=e[fa],G=C[n],U&&G&&U.s<G.e){if(U.s>=R)break;ia=U.s;0<ia-N&&(p+=g(D)+y(a,N,ia),N=ia);for(;null!=U&&U.s==ia;)D[U.n]=U,U=e[++fa];p+=g(D)}else if(G){if(G.e>R)break;N=G.e;do delete D[G.n],G=C[++n];while(null!=G&&G.e==N);p+=y(a,ia,N);ia=N;0!=z.length||null!=U&&U.s==N||(e.splice(fa,0,{s:N,n:"dummy",v:""}),C.splice(n,0,{e:U?U.s:R,n:"dummy",v:""}))}else break}p+=
|
|
|
|
|
y(null,null,null,!0);S&&(N!=R&&(p+=a.substring(N,R)),p+=c(!0));return p}function e(a,b){z=!1;var d=null!=a.Text?a.Text:null!=a.Value?a.Value:a.Lane_0;null==d&&null!=a.State?null!=a.State.t&&(d=a.State):null==d&&null!=a.Note?null!=a.Note.t&&(d=a.Note):null==d&&null!=a.Title?null!=a.Title.t&&(d=a.Title):null!=a.t&&(d=a);null==d&&null!=a.TextAreas?null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.t&&(d=a.TextAreas.Text.Value):null==d&&null!=a.t0&&null!=a.t0.t&&(d=a.t0);
|
|
|
|
|
if(null!=d){if(null!=d.t){var h=d.t,h=h.replace(/\u2028/g,"\n"),d=d.m;try{for(var g=0;g<d.length;g++)if(0<d[g].s||null!=d[g].e&&d[g].e<h.length||"t"==d[g].n||"ac"==d[g].n){z=!0;break}if(z=z||b)return n(h,d,a)}catch(cf){console.log(cf)}h=h.replace(/</g,"<");return h=h.replace(/>/g,">")}if(null!=d.Value&&null!=d.Value.t)return d.Value.t=d.Value.t.replace(/</g,"<"),d.Value.t=d.Value.t.replace(/>/g,">"),d.Value.t}return""}function u(a){return null!=a.Action?a.Action:a}function p(a){if(null!=
|
|
|
|
|
a.Text){if(null!=a.Text.m)return a.Text.m}else if(null!=a.TextAreas){if(null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.m)return a.TextAreas.Text.Value.m}else{if(null!=a.m)return a.m;if(null!=a.Title&&null!=a.Title.m)return a.Title.m}return null}function c(a,b){var m="whiteSpace=wrap;"+(b?"overflow=block;blockSpacing=1;html=1;fontSize=11;"+Aa:d(a)+h(a)+y(a)+w(a)+C(a)+B(a)+D(a)+A(a)+E(a))+H(a)+N(a)+$a(mxConstants.STYLE_ALIGN,a.TextAlign,"center");Aa="";return m}function a(a,
|
|
|
|
@ -59,110 +59,110 @@ b.Class&&"GCPInputWebcam"!==b.Class&&"GCPInputSpeaker"!==b.Class&&"GCPInputRetai
|
|
|
|
|
null;dc?(jb=new mxCell("",new mxGeometry(t-.125*r,0,.125*r,r),"shape=curlyBracket;rounded=1;"),ia=new mxCell("",new mxGeometry(0,0,t-.125*r,r),"strokeColor=none;fillColor=none;")):(jb=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),ia=new mxCell("",new mxGeometry(.125*r,0,t-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=a(v.style,g,k,v);jb.vertex=!0;v.insert(jb);jb.style+=a(jb.style,g,k,jb);ia.vertex=!0;ia.value=
|
|
|
|
|
e(g);v.insert(ia);ia.style+=a(ia.style,g,k,ia,z);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var oa="MainText",kb=null,rd="HeaderFill_",Mc="BodyFill_",Kb=25,Sb=25,Kc=0;if(null!=g.Lanes)Kc=g.Lanes.length;else if(null!=g.PrimaryLane){for(var ec=function(a){if(a)32>a?a=32:208<a&&(a=208);else return 0;return.6*a},Kc=g.PrimaryLane.length,
|
|
|
|
|
l=r=t=0;l<Kc;l++)t+=g.PrimaryLane[l];for(l=0;l<g.SecondaryLane.length;l++)r+=g.SecondaryLane[l];Kb=ec(g.PrimaryPoolTitleHeight);Sb=ec(g.PrimaryLaneTitleHeight);t*=.6;r=.6*r+Kb+Sb;v.geometry.width=t;v.geometry.height=r;oa="poolPrimaryTitleKey";rd="PrimaryLaneHeaderFill_";Mc="CellFill_0,";kb=g.PrimaryLaneTextAreaIds;if(null==kb)for(kb=[],l=0;l<Kc;l++)kb.push("Primary_"+l)}if(0==g.IsPrimaryLaneVertical){g.Rotation=-1.5707963267948966;var uc=v.geometry.x,Nc=v.geometry.y}var Jd=0!=g.Rotation,Lc=0<fa.indexOf("Pool"),
|
|
|
|
|
sd=0==fa.indexOf("BPMN"),Kd=null!=g[oa];v.style=(Lc?"swimlane;startSize="+Kb+";":"fillColor=none;strokeColor=none;pointerEvents=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(Jd?"horizontalStack=0;":"");v.style+=a(v.style,g,k,v);Kd&&(v.value=e(g[oa]),v.style+=(z?"overflow=block;blockSpacing=1;fontSize=11;"+Aa:d(g[oa])+y(g[oa])+h(g[oa])+w(g[oa])+C(g[oa],v)+B(g[oa])+D(g[oa])+A(g[oa])+E(g[oa]))+H(g[oa])+N(g[oa]));for(var Oc=0,Jb=[],Md="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;startSize="+
|
|
|
|
|
Sb+";dropTarget=0;rounded=0;"+(Jd?"horizontal=0;":"")+(sd?"swimlaneLine=0;fillColor=none;":""),P=g.Rotation=0;P<Kc;P++){if(null==kb)var qd=parseFloat(g.Lanes[P].p),l=parseInt(g.Lanes[P].tid)||P,ab="Lane_"+l;else qd=.6*g.PrimaryLane[P]/t,l=P,ab=kb[P];var te=t*Oc,td=Lc?Kb:0;Jb.push(new mxCell("",Jd?new mxGeometry(td,te,r-td,t*qd):new mxGeometry(te,td,t*qd,r-td),Md));Jb[P].vertex=!0;v.insert(Jb[P]);Jb[P].value=e(g[ab]);Jb[P].style+=a(Jb[P].style,g,k,Jb[P],z)+(z?"fontSize=11;":d(g[ab])+y(g[ab])+w(g[ab])+
|
|
|
|
|
C(g[ab],Jb[P])+B(g[ab])+D(g[ab])+A(g[ab])+E(g[ab]))+H(g[ab])+N(g[ab])+S(g[rd+l])+ea(g[Mc+l]);Oc+=qd}null!=uc&&(v.geometry.x=uc,v.geometry.y=Nc);break;case "UMLMultidimensionalSwimlane":var fc=0,gc=0,Sd=null,Td=null;if(null!=g.Rows&&null!=g.Columns)var fc=g.Rows.length,gc=g.Columns.length,Pc=.6*g.TitleHeight||25,Qc=.6*g.TitleWidth||25;else if(null!=g.PrimaryLane&&null!=g.SecondaryLane){fc=g.SecondaryLane.length;gc=g.PrimaryLane.length;Qc=.6*g.SecondaryLaneTitleHeight||25;Pc=.6*g.PrimaryLaneTitleHeight||
|
|
|
|
|
25;for(l=r=t=0;l<fc;l++)r+=g.SecondaryLane[l];for(l=0;l<gc;l++)t+=g.PrimaryLane[l];t=.6*t+Qc;r=.6*r+Pc;v.geometry.width=t;v.geometry.height=r;Sd=g.SecondaryLaneTextAreaIds;Td=g.PrimaryLaneTextAreaIds}v.style="group;";var Ud=new mxCell("",new mxGeometry(0,Pc,t,r-Pc),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");Ud.vertex=!0;var Rc=new mxCell("",new mxGeometry(Qc,0,t-Qc,r),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");
|
|
|
|
|
Rc.vertex=!0;v.insert(Ud);v.insert(Rc);for(var Y=0,Nd="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;startSize="+Qc+";",P=0;P<fc;P++){if(null==Sd)var Vd=.6*parseInt(g.Rows[P].height),l=parseInt(g.Rows[P].id)||P,bb="Row_"+l;else Vd=.6*g.SecondaryLane[P],bb=Sd[P];var Vb=new mxCell("",new mxGeometry(0,Y,t,Vd),Nd),Y=Y+Vd;Vb.vertex=!0;Ud.insert(Vb);Vb.value=e(g[bb]);Vb.style+=a(Vb.style,g,k,Vb,z)+(z?"fontSize=11;":d(g[bb])+y(g[bb])+w(g[bb])+C(g[bb],Vb)+
|
|
|
|
|
B(g[bb])+D(g[bb])+A(g[bb])+E(g[bb]))+H(g[bb])+N(g[bb])}for(var Od="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;startSize="+Pc+";",P=n=0;P<gc;P++){if(null==Td)var wc=.6*parseInt(g.Columns[P].width),l=parseInt(g.Columns[P].id)||P,cb="Column_"+l;else wc=.6*g.PrimaryLane[P],cb=Td[P];var Wb=new mxCell("",new mxGeometry(n,0,wc,r),Od),n=n+wc;Wb.vertex=!0;Rc.insert(Wb);Wb.value=e(g[cb]);Wb.style+=a(Wb.style,g,k,Wb,z)+(z?"fontSize=11;":d(g[cb])+y(g[cb])+w(g[cb])+C(g[cb],
|
|
|
|
|
Wb)+B(g[cb])+D(g[cb])+A(g[cb])+E(g[cb]))+H(g[cb])+N(g[cb])}break;case "UMLStateBlock":if(0==g.Composite)v.style="rounded=1;arcSize=20",v.value=e(g.State,!0),v.style+=a(v.style,g,k,v,z);else{v.style="swimlane;startSize=25;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;rounded=1;arcSize=20;fontStyle=0";v.value=e(g.State,!0);v.style+=a(v.style,g,k,v,z);v.style+=aa(g,k).replace("fillColor","swimlaneFillColor");var Ma=new mxCell("",new mxGeometry(0,
|
|
|
|
|
25,t,r-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");Ma.value=e(g.Action,!0);Ma.style+=a(Ma.style,g,k,Ma,z);Ma.vertex=!0;v.insert(Ma)}break;case "GSDFDProcessBlock":var Wd=Math.round(.6*g.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;startSize="+Wd;v.value=e(g.Number,!0);v.style+=a(v.style,g,k,v,z);v.style+=aa(g,k).replace("fillColor","swimlaneFillColor");Ma=new mxCell("",new mxGeometry(0,Wd,t,r-Wd),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");
|
|
|
|
|
Ma.value=e(g.Text,!0);Ma.style+=a(Ma.style,g,k,Ma,z);Ma.vertex=!0;v.insert(Ma);break;case "AndroidDevice":if(null!=g.AndroidDeviceName){v.style="fillColor=#000000;strokeColor=#000000;";var Xb=null,Sc=null,Tc=null;if("Tablet"==g.AndroidDeviceName||"Mini Tablet"==g.AndroidDeviceName||"custom"==g.AndroidDeviceName&&"Tablet"==g.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",Xb=new mxCell("",new mxGeometry(.112*t,.077*r,.77*t,.85*r),""),g.KeyboardShown&&(Sc=new mxCell("",new mxGeometry(.112*t,
|
|
|
|
|
.727*r,.77*t,.2*r),"shape=mxgraph.android.keyboard;")),g.FullScreen||(Tc=new mxCell("",new mxGeometry(.112*t,.077*r,.77*t,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*r+";"));else if("Large Phone"==g.AndroidDeviceName||"Phone"==g.AndroidDeviceName||"custom"==g.AndroidDeviceName&&"Phone"==g.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",Xb=new mxCell("",new mxGeometry(.04*t,.092*r,.92*t,.816*r),""),g.KeyboardShown&&(Sc=new mxCell("",
|
|
|
|
|
new mxGeometry(.04*t,.708*r,.92*t,.2*r),"shape=mxgraph.android.keyboard;")),g.FullScreen||(Tc=new mxCell("",new mxGeometry(.04*t,.092*r,.92*t,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*r+";"));Xb.vertex=!0;v.insert(Xb);"Dark"==g.Scheme?Xb.style+="fillColor=#111111;":"Light"==g.Scheme&&(Xb.style+="fillColor=#ffffff;");null!=Sc&&(Sc.vertex=!0,v.insert(Sc));null!=Tc&&(Tc.vertex=!0,v.insert(Tc))}v.style+=a(v.style,g,k,v);break;case "AndroidAlertDialog":var lb=
|
|
|
|
|
new mxCell("",new mxGeometry(0,0,t,30),"strokeColor=none;fillColor=none;spacingLeft=9;");lb.vertex=!0;v.insert(lb);var ha=new mxCell("",new mxGeometry(0,25,t,10),"shape=line;strokeColor=#33B5E5;");ha.vertex=!0;v.insert(ha);var Uc=new mxCell("",new mxGeometry(0,30,t,r-30),"strokeColor=none;fillColor=none;verticalAlign=top;");Uc.vertex=!0;v.insert(Uc);var xa=new mxCell("",new mxGeometry(0,r-25,.5*t,25),"fillColor=none;");xa.vertex=!0;v.insert(xa);var ya=new mxCell("",new mxGeometry(.5*t,r-25,.5*t,25),
|
|
|
|
|
"fillColor=none;");ya.vertex=!0;v.insert(ya);lb.value=e(g.DialogTitle);lb.style+=c(g.DialogTitle,z);Uc.value=e(g.DialogText);Uc.style+=c(g.DialogText,z);xa.value=e(g.Button_0);xa.style+=c(g.Button_0,z);ya.value=e(g.Button_1);ya.style+=c(g.Button_1,z);"Dark"==g.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",xa.style+="strokeColor=#353535;",ya.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",xa.style+="strokeColor=#E2E2E2;",ya.style+="strokeColor=#E2E2E2;");
|
|
|
|
|
v.style+=a(v.style,g,k,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":lb=new mxCell("",new mxGeometry(0,0,t,30),"strokeColor=none;fillColor=none;spacingLeft=9;");lb.vertex=!0;v.insert(lb);lb.value=e(g.DialogTitle);lb.style+=c(g.DialogTitle,z);ha=new mxCell("",new mxGeometry(0,25,t,10),"shape=line;strokeColor=#33B5E5;");ha.vertex=!0;v.insert(ha);xa=new mxCell("",new mxGeometry(0,r-25,.5*t,25),"fillColor=none;");xa.vertex=!0;v.insert(xa);xa.value=e(g.Button_0);xa.style+=c(g.Button_0,z);
|
|
|
|
|
ya=new mxCell("",new mxGeometry(.5*t,r-25,.5*t,25),"fillColor=none;");ya.vertex=!0;v.insert(ya);ya.value=e(g.Button_1);ya.style+=c(g.Button_1,z);var xc=new mxCell("",new mxGeometry(.5*t-4,41,8,4),"shape=triangle;direction=north;");xc.vertex=!0;v.insert(xc);var yc=new mxCell("",new mxGeometry(.25*t-4,41,8,4),"shape=triangle;direction=north;");yc.vertex=!0;v.insert(yc);var zc=new mxCell("",new mxGeometry(.75*t-4,41,8,4),"shape=triangle;direction=north;");zc.vertex=!0;v.insert(zc);var Vc=new mxCell("",
|
|
|
|
|
new mxGeometry(.375*t,50,.2*t,15),"strokeColor=none;fillColor=none;");Vc.vertex=!0;v.insert(Vc);Vc.value=e(g.Label_1);Vc.style+=c(g.Label_1,z);var Wc=new mxCell("",new mxGeometry(.125*t,50,.2*t,15),"strokeColor=none;fillColor=none;");Wc.vertex=!0;v.insert(Wc);Wc.value=e(g.Label_0);Wc.style+=c(g.Label_0,z);var Ac=null;"AndroidDateDialog"==b.Class&&(Ac=new mxCell("",new mxGeometry(.625*t,50,.2*t,15),"strokeColor=none;fillColor=none;"),Ac.vertex=!0,v.insert(Ac),Ac.value=e(g.Label_2),Ac.style+=c(g.Label_2,
|
|
|
|
|
z));var Na=new mxCell("",new mxGeometry(.43*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");Na.vertex=!0;v.insert(Na);var Oa=new mxCell("",new mxGeometry(.18*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");Oa.vertex=!0;v.insert(Oa);var ue=new mxCell("",new mxGeometry(.68*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");ue.vertex=!0;v.insert(ue);var Xc=new mxCell("",new mxGeometry(.375*t,65,.2*t,15),"strokeColor=none;fillColor=none;");Xc.vertex=!0;v.insert(Xc);Xc.value=e(g.Label_4);Xc.style+=
|
|
|
|
|
c(g.Label_4,z);var Bc=null;"AndroidTimeDialog"==b.Class&&(Bc=new mxCell("",new mxGeometry(.3*t,65,.1*t,15),"strokeColor=none;fillColor=none;"),Bc.vertex=!0,v.insert(Bc),Bc.value=e(g.Label_Colon),Bc.style+=c(g.Label_Colon,z));var Yc=new mxCell("",new mxGeometry(.125*t,65,.2*t,15),"strokeColor=none;fillColor=none;");Yc.vertex=!0;v.insert(Yc);Yc.value=e(g.Label_3);Yc.style+=c(g.Label_3,z);var Zc=new mxCell("",new mxGeometry(.625*t,65,.2*t,15),"strokeColor=none;fillColor=none;");Zc.vertex=!0;v.insert(Zc);
|
|
|
|
|
Zc.value=e(g.Label_5);Zc.style+=c(g.Label_5,z);var ve=new mxCell("",new mxGeometry(.43*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");ve.vertex=!0;v.insert(ve);var we=new mxCell("",new mxGeometry(.18*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");we.vertex=!0;v.insert(we);var xe=new mxCell("",new mxGeometry(.68*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");xe.vertex=!0;v.insert(xe);var $c=new mxCell("",new mxGeometry(.375*t,80,.2*t,15),"strokeColor=none;fillColor=none;");$c.vertex=!0;v.insert($c);
|
|
|
|
|
$c.value=e(g.Label_7);$c.style+=c(g.Label_7,z);var ad=new mxCell("",new mxGeometry(.125*t,80,.2*t,15),"strokeColor=none;fillColor=none;");ad.vertex=!0;v.insert(ad);ad.value=e(g.Label_6);ad.style+=c(g.Label_6,z);var bd=new mxCell("",new mxGeometry(.625*t,80,.2*t,15),"strokeColor=none;fillColor=none;");bd.vertex=!0;v.insert(bd);bd.value=e(g.Label_8);bd.style+=c(g.Label_8,z);var Cc=new mxCell("",new mxGeometry(.5*t-4,99,8,4),"shape=triangle;direction=south;");Cc.vertex=!0;v.insert(Cc);var Dc=new mxCell("",
|
|
|
|
|
new mxGeometry(.25*t-4,99,8,4),"shape=triangle;direction=south;");Dc.vertex=!0;v.insert(Dc);var Ec=new mxCell("",new mxGeometry(.75*t-4,99,8,4),"shape=triangle;direction=south;");Ec.vertex=!0;v.insert(Ec);"Dark"==g.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",xa.style+="strokeColor=#353535;",ya.style+="strokeColor=#353535;",xc.style+="strokeColor=none;fillColor=#7E7E7E;",yc.style+="strokeColor=none;fillColor=#7E7E7E;",zc.style+="strokeColor=none;fillColor=#7E7E7E;",Cc.style+=
|
|
|
|
|
"strokeColor=none;fillColor=#7E7E7E;",Dc.style+="strokeColor=none;fillColor=#7E7E7E;",Ec.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",xa.style+="strokeColor=#E2E2E2;",ya.style+="strokeColor=#E2E2E2;",xc.style+="strokeColor=none;fillColor=#939393;",yc.style+="strokeColor=none;fillColor=#939393;",zc.style+="strokeColor=none;fillColor=#939393;",Cc.style+="strokeColor=none;fillColor=#939393;",Dc.style+="strokeColor=none;fillColor=#939393;",Ec.style+=
|
|
|
|
|
"strokeColor=none;fillColor=#939393;");v.style+=a(v.style,g,k,v);break;case "AndroidListItems":var Ia=r,Mb=0;if(g.ShowHeader){var Mb=8,hc=new mxCell("",new mxGeometry(0,0,t,Mb),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=e(g.Header);hc.style+=c(g.Header,z);var Ia=Ia-Mb,ye=new mxCell("",new mxGeometry(0,Mb-2,t,4),"shape=line;strokeColor=#999999;");ye.vertex=!0;v.insert(ye)}var mb=parseInt(g.Items);0<mb&&(Ia/=mb);for(var I=[],ha=[],l=0;l<mb;l++)I[l]=new mxCell("",new mxGeometry(0,
|
|
|
|
|
Mb+l*Ia,t,Ia),"strokeColor=none;fillColor=none;"),I[l].vertex=!0,v.insert(I[l]),I[l].value=e(g["Item_"+l]),I[l].style+=c(g["Item_"+l],z),0<l&&(ha[l]=new mxCell("",new mxGeometry(0,Mb+l*Ia-2,t,4),"shape=line;"),ha[l].vertex=!0,v.insert(ha[l]),ha[l].style="Dark"==g.Scheme?ha[l].style+"strokeColor=#ffffff;":ha[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==g.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=a(v.style,g,k,v);break;case "AndroidTabs":var nb=
|
|
|
|
|
parseInt(g.Tabs),Sa=t;0<nb&&(Sa/=nb);for(var ka=[],ha=[],l=0;l<nb;l++)ka[l]=new mxCell("",new mxGeometry(l*Sa,0,Sa,r),"strokeColor=none;fillColor=none;"),ka[l].vertex=!0,v.insert(ka[l]),ka[l].value=e(g["Tab_"+l]),ka[l].style+=c(g["Tab_"+l],z),0<l&&(ha[l]=new mxCell("",new mxGeometry(l*Sa-2,.2*r,4,.6*r),"shape=line;direction=north;"),ha[l].vertex=!0,v.insert(ha[l]),ha[l].style="Dark"==g.Scheme?ha[l].style+"strokeColor=#484848;":ha[l].style+"strokeColor=#CCCCCC;");var ze=new mxCell("",new mxGeometry(g.Selected*
|
|
|
|
|
Sa+2,r-3,Sa-4,3),"strokeColor=none;fillColor=#33B5E5;");ze.vertex=!0;v.insert(ze);v.style="Dark"==g.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=a(v.style,g,k,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(n),Math.round(Y+.25*r),Math.round(t),Math.round(.5*r)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var cd=new mxCell("",new mxGeometry(0,0,t*g.BarPosition,Math.round(.5*r)),"strokeColor=none;fillColor=#33B5E5;");
|
|
|
|
|
cd.vertex=!0;v.insert(cd);v.style="Dark"==g.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=a(v.style,g,k,v);break;case "AndroidImageBlock":v.style="Dark"==g.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";v.style+=a(v.style,g,k,v);break;case "AndroidTextBlock":v.style="Dark"==g.Scheme?g.ShowBorder?v.style+
|
|
|
|
|
"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":g.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=e(g.Label);v.style+=c(g.Label,z);v.style+=a(v.style,g,k,v,z);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(g.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(g.HighlightShow){var Nb=null,Nb=g.HighlightTop?new mxCell("",new mxGeometry(0,0,t,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,r-2,t,2),"strokeColor=none;");Nb.vertex=!0;v.insert(Nb);switch(g.HighlightColor){case "Blue":Nb.style+="fillColor=#33B5E5;";break;case "Dark Gray":Nb.style+="fillColor=#B0B0B0;";break;case "White":Nb.style+="fillColor=#ffffff;"}}if(g.VlignShow){var Fc=new mxCell("",new mxGeometry(20,5,2,r-10),"shape=line;direction=north;");Fc.vertex=!0;v.insert(Fc);
|
|
|
|
|
switch(g.VlignColor){case "Blue":Fc.style+="strokeColor=#244C5A;";break;case "White":Fc.style+="strokeColor=#ffffff;"}}v.style+=a(v.style,g,k,v);break;case "AndroidButton":v.value=e(g.Label);v.style+=c(g.Label,z)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==g.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";v.style+=a(v.style,g,k,v);break;case "AndroidTextBox":v.value=e(g.Label);v.style+=c(g.Label,z);var dd=new mxCell("",
|
|
|
|
|
new mxGeometry(2,r-6,t-4,4),"shape=partialRectangle;top=0;fillColor=none;");dd.vertex=!0;v.insert(dd);v.style="Dark"==g.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";dd.style=g.TextFocused?dd.style+"strokeColor=#33B5E5;":dd.style+"strokeColor=#A9A9A9;";v.style+=a(v.style,g,k,v);break;case "AndroidRadioButton":var ic=null;g.Checked&&(ic=new mxCell("",new mxGeometry(.15*t,.15*r,.7*t,.7*r),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),ic.vertex=!0,v.insert(ic));
|
|
|
|
|
"Dark"==g.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",g.Checked?(ic.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",g.Checked&&(ic.style+="strokeColor=#999999;"));v.style+=a(v.style,g,k,v);break;case "AndroidCheckBox":var Xd=null;g.Checked&&(Xd=new mxCell("",new mxGeometry(.25*t,.05*-r,t,.8*r),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),
|
|
|
|
|
Xd.vertex=!0,v.insert(Xd));v.style="Dark"==g.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=a(v.style,g,k,v);break;case "AndroidToggle":v.style="Dark"==g.Scheme?g.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":g.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";
|
|
|
|
|
v.style+=a(v.style,g,k,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+g.BarPosition+";fillColor=#33b5e5;";v.style+=a(v.style,g,k,v);break;case "iOSSegmentedControl":nb=parseInt(g.Tabs);Sa=t;v.style+="strokeColor=none;fillColor=none;";0<nb&&(Sa/=nb);ka=[];ha=[];for(l=0;l<nb;l++)ka[l]=new mxCell("",new mxGeometry(l*Sa,0,Sa,r),"strokeColor="+g.FillColor+";"),ka[l].vertex=!0,v.insert(ka[l]),ka[l].value=e(g["Tab_"+l]),ka[l].style+=c(g["Tab_"+l],z),ka[l].style=
|
|
|
|
|
g.Selected==l?ka[l].style+aa(g,k):ka[l].style+"fillColor=none;";v.style+=a(v.style,g,k,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+g.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*g.BarPosition+";";v.style+=a(v.style,g,k,v);break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(n),Math.round(Y+.25*r),Math.round(t),Math.round(.5*r)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;cd=new mxCell("",
|
|
|
|
|
new mxGeometry(0,0,t*g.BarPosition,Math.round(.5*r)),"strokeColor=none;"+aa(g,k));cd.vertex=!0;v.insert(cd);v.style+=a(v.style,g,k,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=a(v.style,g,k,v);break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var W=new mxCell(e(g.Text),new mxGeometry(.35*t,0,.3*t,r),"strokeColor=none;fillColor=none;");W.vertex=!0;v.insert(W);W.style+=c(g.Text,z);var Pa=new mxCell(e(g.Carrier),
|
|
|
|
|
new mxGeometry(.09*t,0,.2*t,r),"strokeColor=none;fillColor=none;");Pa.vertex=!0;v.insert(Pa);Pa.style+=c(g.Carrier,z);v.style+=a(v.style,g,k,v);break;case "iOSSearchBar":v.value=e(g.Search);v.style+="strokeColor=none;";v.style+=a(v.style,g,k,v,z)+c(g.Search,z);var ca=new mxCell("",new mxGeometry(.3*t,.3*r,.4*r,.4*r),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");ca.vertex=!0;v.insert(ca);break;case "iOSNavBar":v.value=e(g.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+
|
|
|
|
|
c(g.Title,z);v.style+=a(v.style,g,k,v,z);W=new mxCell(e(g.LeftText),new mxGeometry(.03*t,0,.3*t,r),"strokeColor=none;fillColor=none;");W.vertex=!0;v.insert(W);W.style+=c(g.LeftText,z);Pa=new mxCell(e(g.RightText),new mxGeometry(.65*t,0,.3*t,r),"strokeColor=none;fillColor=none;");Pa.vertex=!0;v.insert(Pa);Pa.style+=c(g.RightText,z);ca=new mxCell("",new mxGeometry(.02*t,.2*r,.3*r,.5*r),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");ca.vertex=!0;v.insert(ca);break;case "iOSTabs":nb=
|
|
|
|
|
parseInt(g.Tabs);Sa=t;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=a(v.style,g,k,v);0<nb&&(Sa/=nb);ka=[];ha=[];for(l=0;l<nb;l++)ka[l]=new mxCell("",new mxGeometry(l*Sa,0,Sa,r),"strokeColor=none;"),ka[l].vertex=!0,v.insert(ka[l]),ka[l].value=e(g["Tab_"+l]),ka[l].style+=z?"overflow=block;blockSpacing=1;html=1;fontSize=11;"+Aa:d(g["Tab_"+l])+h(g["Tab_"+l])+y(g["Tab_"+l])+w(g["Tab_"+l])+C(g["Tab_"+l])+B(g["Tab_"+l])+D(g["Tab_"+l])+A(g["Tab_"+l])+E(g["Tab_"+l])+
|
|
|
|
|
H(g["Tab_"+l]),ka[l].style+="verticalAlign=bottom;",ka[l].style=g.Selected==l?ka[l].style+"fillColor=#BBBBBB;":ka[l].style+"fillColor=none;";break;case "iOSDatePicker":var ob=new mxCell("",new mxGeometry(0,0,.5*t,.2*r),"strokeColor=none;fillColor=none;");ob.vertex=!0;v.insert(ob);ob.value=e(g.Option11);ob.style+=c(g.Option11,z);var pb=new mxCell("",new mxGeometry(.5*t,0,.15*t,.2*r),"strokeColor=none;fillColor=none;");pb.vertex=!0;v.insert(pb);pb.value=e(g.Option21);pb.style+=c(g.Option21,z);var qb=
|
|
|
|
|
new mxCell("",new mxGeometry(.65*t,0,.15*t,.2*r),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=e(g.Option31);qb.style+=c(g.Option31,z);var rb=new mxCell("",new mxGeometry(0,.2*r,.5*t,.2*r),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=e(g.Option12);rb.style+=c(g.Option12,z);var sb=new mxCell("",new mxGeometry(.5*t,.2*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=e(g.Option22);sb.style+=c(g.Option22,z);var tb=
|
|
|
|
|
new mxCell("",new mxGeometry(.65*t,.2*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=e(g.Option32);tb.style+=c(g.Option32,z);var Da=new mxCell("",new mxGeometry(0,.4*r,.5*t,.2*r),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=e(g.Option13);Da.style+=c(g.Option13,z);var Ea=new mxCell("",new mxGeometry(.5*t,.4*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=e(g.Option23);Ea.style+=c(g.Option23,z);var ub=
|
|
|
|
|
new mxCell("",new mxGeometry(.65*t,.4*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=e(g.Option33);ub.style+=c(g.Option33,z);var Fa=new mxCell("",new mxGeometry(.8*t,.4*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=e(g.Option43);Fa.style+=c(g.Option43,z);var Ga=new mxCell("",new mxGeometry(0,.6*r,.5*t,.2*r),"strokeColor=none;fillColor=none;");Ga.vertex=!0;v.insert(Ga);Ga.value=e(g.Option14);Ga.style+=c(g.Option14,z);var vb=
|
|
|
|
|
new mxCell("",new mxGeometry(.5*t,.6*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=e(g.Option24);vb.style+=c(g.Option24,z);var wb=new mxCell("",new mxGeometry(.65*t,.6*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");wb.vertex=!0;v.insert(wb);wb.value=e(g.Option34);wb.style+=c(g.Option34,z);var xb=new mxCell("",new mxGeometry(.8*t,.6*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");xb.vertex=!0;v.insert(xb);xb.value=e(g.Option44);xb.style+=c(g.Option44,z);
|
|
|
|
|
var Ha=new mxCell("",new mxGeometry(0,.8*r,.5*t,.2*r),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=e(g.Option15);Ha.style+=c(g.Option15,z);var yb=new mxCell("",new mxGeometry(.5*t,.8*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");yb.vertex=!0;v.insert(yb);yb.value=e(g.Option25);yb.style+=c(g.Option25,z);var zb=new mxCell("",new mxGeometry(.65*t,.8*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");zb.vertex=!0;v.insert(zb);zb.value=e(g.Option35);zb.style+=c(g.Option35,
|
|
|
|
|
z);Na=new mxCell("",new mxGeometry(0,.4*r-2,t,4),"shape=line;strokeColor=#888888;");Na.vertex=!0;v.insert(Na);Oa=new mxCell("",new mxGeometry(0,.6*r-2,t,4),"shape=line;strokeColor=#888888;");Oa.vertex=!0;v.insert(Oa);v.style+="strokeColor=none;";v.style+=a(v.style,g,k,v);break;case "iOSTimePicker":ob=new mxCell("",new mxGeometry(0,0,.25*t,.2*r),"strokeColor=none;fillColor=none;");ob.vertex=!0;v.insert(ob);ob.value=e(g.Option11);ob.style+=c(g.Option11,z);pb=new mxCell("",new mxGeometry(.25*t,0,.3*
|
|
|
|
|
t,.2*r),"strokeColor=none;fillColor=none;");pb.vertex=!0;v.insert(pb);pb.value=e(g.Option21);pb.style+=c(g.Option21,z);rb=new mxCell("",new mxGeometry(0,.2*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=e(g.Option12);rb.style+=c(g.Option12,z);sb=new mxCell("",new mxGeometry(.25*t,.2*r,.3*t,.2*r),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=e(g.Option22);sb.style+=c(g.Option22,z);Da=new mxCell("",new mxGeometry(0,.4*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");
|
|
|
|
|
Da.vertex=!0;v.insert(Da);Da.value=e(g.Option13);Da.style+=c(g.Option13,z);Ea=new mxCell("",new mxGeometry(.25*t,.4*r,.3*t,.2*r),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=e(g.Option23);Ea.style+=c(g.Option23,z);Fa=new mxCell("",new mxGeometry(.7*t,.4*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=e(g.Option33);Fa.style+=c(g.Option33,z);Ga=new mxCell("",new mxGeometry(0,.6*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Ga.vertex=
|
|
|
|
|
!0;v.insert(Ga);Ga.value=e(g.Option14);Ga.style+=c(g.Option14,z);vb=new mxCell("",new mxGeometry(.25*t,.6*r,.3*t,.2*r),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=e(g.Option24);vb.style+=c(g.Option24,z);xb=new mxCell("",new mxGeometry(.7*t,.6*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");xb.vertex=!0;v.insert(xb);xb.value=e(g.Option34);xb.style+=c(g.Option34,z);Ha=new mxCell("",new mxGeometry(0,.8*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);
|
|
|
|
|
Ha.value=e(g.Option15);Ha.style+=c(g.Option15,z);yb=new mxCell("",new mxGeometry(.25*t,.8*r,.3*t,.2*r),"strokeColor=none;fillColor=none;");yb.vertex=!0;v.insert(yb);yb.value=e(g.Option25);yb.style+=c(g.Option25,z);Na=new mxCell("",new mxGeometry(0,.4*r-2,t,4),"shape=line;strokeColor=#888888;");Na.vertex=!0;v.insert(Na);Oa=new mxCell("",new mxGeometry(0,.6*r-2,t,4),"shape=line;strokeColor=#888888;");Oa.vertex=!0;v.insert(Oa);v.style+="strokeColor=none;";v.style+=a(v.style,g,k,v);break;case "iOSCountdownPicker":qb=
|
|
|
|
|
new mxCell("",new mxGeometry(.45*t,0,.2*t,.2*r),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=e(g.Option31);qb.style+=c(g.Option31,z);tb=new mxCell("",new mxGeometry(.45*t,.2*r,.2*t,.2*r),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=e(g.Option32);tb.style+=c(g.Option32,z);Da=new mxCell("",new mxGeometry(0,.4*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=e(g.Option13);Da.style+=c(g.Option13,z);Ea=new mxCell("",
|
|
|
|
|
new mxGeometry(.2*t,.4*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=e(g.Option23);Ea.style+=c(g.Option23,z);ub=new mxCell("",new mxGeometry(.45*t,.4*r,.2*t,.2*r),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=e(g.Option33);ub.style+=c(g.Option33,z);Fa=new mxCell("",new mxGeometry(.6*t,.4*r,.2*t,.2*r),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=e(g.Option43);Fa.style+=c(g.Option43,z);Ga=new mxCell("",new mxGeometry(0,
|
|
|
|
|
.6*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Ga.vertex=!0;v.insert(Ga);Ga.value=e(g.Option14);Ga.style+=c(g.Option14,z);wb=new mxCell("",new mxGeometry(.45*t,.6*r,.2*t,.2*r),"strokeColor=none;fillColor=none;");wb.vertex=!0;v.insert(wb);wb.value=e(g.Option34);wb.style+=c(g.Option34,z);Ha=new mxCell("",new mxGeometry(0,.8*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=e(g.Option15);Ha.style+=c(g.Option15,z);zb=new mxCell("",new mxGeometry(.45*t,.8*r,.2*
|
|
|
|
|
t,.2*r),"strokeColor=none;fillColor=none;");zb.vertex=!0;v.insert(zb);zb.value=e(g.Option35);zb.style+=c(g.Option35,z);Na=new mxCell("",new mxGeometry(0,.4*r-2,t,4),"shape=line;strokeColor=#888888;");Na.vertex=!0;v.insert(Na);Oa=new mxCell("",new mxGeometry(0,.6*r-2,t,4),"shape=line;strokeColor=#888888;");Oa.vertex=!0;v.insert(Oa);v.style+="strokeColor=none;";v.style+=a(v.style,g,k,v);break;case "iOSBasicCell":v.value=e(g.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+
|
|
|
|
|
.6*g.SeparatorInset+";";v.style+=(z?"fontSize=11;":d(g.text)+y(g.text)+w(g.text))+N(g.text);v.style+=a(v.style,g,k,v,z);switch(g.AccessoryIndicatorType){case "Disclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);break;case "DetailDisclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);var qa=new mxCell("",new mxGeometry(.79*
|
|
|
|
|
t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);break;case "DetailIndicator":qa=new mxCell("",new mxGeometry(.87*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);break;case "CheckMark":ca=new mxCell("",new mxGeometry(.89*t,.37*r,.4*r,.26*r),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),ca.vertex=!0,v.insert(ca)}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*g.SeparatorInset+";";v.value=e(g.subtext);v.style+=z?"fontSize=11;":d(g.subtext)+y(g.subtext)+w(g.subtext);v.style+=a(v.style,g,k,v,z);var sa=new mxCell("",new mxGeometry(0,.4*r,t,.6*r),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.6*g.SeparatorInset+";");sa.vertex=!0;v.insert(sa);sa.value=e(g.text);sa.style+=z?"html=1;fontSize=11;"+
|
|
|
|
|
Aa:d(g.text)+h(g.text)+y(g.text)+w(g.text);switch(g.AccessoryIndicatorType){case "Disclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);break;case "DetailDisclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);qa=new mxCell("",new mxGeometry(.79*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
|
|
|
|
|
qa.vertex=!0;v.insert(qa);break;case "DetailIndicator":qa=new mxCell("",new mxGeometry(.87*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);break;case "CheckMark":ca=new mxCell("",new mxGeometry(.89*t,.37*r,.4*r,.26*r),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),ca.vertex=!0,v.insert(ca)}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*g.SeparatorInset+";";v.value=e(g.subtext);v.style+=z?"fontSize=11;":d(g.subtext)+y(g.subtext)+w(g.subtext);v.style+=a(v.style,g,k,v,z);sa=null;switch(g.AccessoryIndicatorType){case "Disclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);sa=new mxCell("",new mxGeometry(.55*t,0,.3*t,r),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":ca=new mxCell("",new mxGeometry(.91*
|
|
|
|
|
t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);qa=new mxCell("",new mxGeometry(.79*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);sa=new mxCell("",new mxGeometry(.45*t,0,.3*t,r),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":qa=new mxCell("",new mxGeometry(.87*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
|
|
|
|
|
qa.vertex=!0;v.insert(qa);sa=new mxCell("",new mxGeometry(.52*t,0,.3*t,r),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "CheckMark":ca=new mxCell("",new mxGeometry(.89*t,.37*r,.4*r,.26*r),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");ca.vertex=!0;v.insert(ca);sa=new mxCell("",new mxGeometry(.55*t,0,.3*t,r),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:sa=new mxCell("",new mxGeometry(.65*t,0,.3*t,r),"fillColor=none;strokeColor=none;spacing=0;align=right;")}sa.vertex=
|
|
|
|
|
!0;v.insert(sa);sa.value=e(g.text);sa.style+=z?"html=1;fontSize=11;"+Aa:d(g.text)+h(g.text)+y(g.text)+w(g.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";v.style+=a(v.style,g,k,v);var db=new mxCell("",new mxGeometry(0,0,.25*t,r),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");db.vertex=!0;v.insert(db);db.value=e(g.subtext);db.style+=z?"html=1;fontSize=11;"+Aa:d(g.subtext)+
|
|
|
|
|
h(g.subtext)+y(g.subtext)+w(g.subtext);sa=new mxCell("",new mxGeometry(.25*t,0,.5*t,r),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");sa.vertex=!0;v.insert(sa);sa.value=e(g.text);sa.style+=z?"html=1;fontSize=11;"+Aa:d(g.text)+h(g.text)+y(g.text)+w(g.text);switch(g.AccessoryIndicatorType){case "Disclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);break;case "DetailDisclosure":ca=
|
|
|
|
|
new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);qa=new mxCell("",new mxGeometry(.79*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);break;case "DetailIndicator":qa=new mxCell("",new mxGeometry(.87*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);break;case "CheckMark":ca=new mxCell("",
|
|
|
|
|
new mxGeometry(.89*t,.37*r,.4*r,.26*r),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),ca.vertex=!0,v.insert(ca)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";W=new mxCell("",new mxGeometry(0,0,t,.4*r),"fillColor=none;strokeColor=none;spacing=10;align=left;");W.vertex=!0;v.insert(W);W.value=e(g.text);W.style+=z?"html=1;fontSize=11;"+Aa:d(g.text)+h(g.text)+y(g.text)+w(g.text);Pa=new mxCell("",new mxGeometry(0,
|
|
|
|
|
.6*r,t,.4*r),"fillColor=none;strokeColor=none;spacing=10;align=left;");Pa.vertex=!0;v.insert(Pa);Pa.value=e(g["bottom-text"]);Pa.style+=z?"html=1;fontSize=11;"+Aa:d(g["bottom-text"])+h(g["bottom-text"])+y(g["bottom-text"])+w(g["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=e(g.text);v.style+=z?"fontSize=11;":d(g.text)+y(g.text)+w(g.text);v.style+=a(v.style,g,k,v,z);break;case "SMPage":if(g.Group){v.style+=
|
|
|
|
|
"strokeColor=none;fillColor=none;";var q=new mxCell("",new mxGeometry(0,0,.9*t,.9*r),"rounded=1;arcSize=3;part=1;");q.vertex=!0;v.insert(q);q.style+=G(g,k)+aa(g,k)+R(g,k,q)+pa(g)+cc(g);var x=new mxCell("",new mxGeometry(.1*t,.1*r,.9*t,.9*r),"rounded=1;arcSize=3;part=1;");x.vertex=!0;v.insert(x);x.value=e(g.Text);x.style+=G(g,k)+aa(g,k)+R(g,k,x)+pa(g)+cc(g)+c(g,z);g.Future&&(q.style+="dashed=1;fixDash=1;",x.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",g.Future&&(v.style+="dashed=1;fixDash=1;"),
|
|
|
|
|
v.value=e(g.Text),v.style+=G(g,k)+aa(g,k)+R(g,k,v)+pa(g)+cc(g)+c(g,z);v.style+=a(v.style,g,k,v,z);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":q=null;switch(b.Class){case "SMHome":q=new mxCell("",new mxGeometry(.5*t-.4*r,.1*r,.8*r,.8*r),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
|
break;case "SMPrint":q=new mxCell("",new mxGeometry(.5*t-.4*r,.19*r,.8*r,.62*r),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":q=new mxCell("",new mxGeometry(.5*t-.4*r,.1*r,.8*r,.8*r),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSettings":q=new mxCell("",new mxGeometry(.5*t-.35*r,.15*r,.7*r,.7*r),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
|
break;case "SMSitemap":q=new mxCell("",new mxGeometry(.5*t-.35*r,.2*r,.7*r,.6*r),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":q=new mxCell("",new mxGeometry(.5*t-.3*r,.25*r,.6*r,.5*r),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMVideo":q=new mxCell("",new mxGeometry(.5*t-.4*r,.2*r,.8*r,.6*r),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
|
break;case "SMAudio":q=new mxCell("",new mxGeometry(.5*t-.3*r,.2*r,.6*r,.6*r),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":q=new mxCell("",new mxGeometry(.5*t-.4*r,.15*r,.8*r,.7*r),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMChart":var J=aa(g,k),J=""==J?"#ffffff;":J.replace("fillColor=",""),q=new mxCell("",new mxGeometry(.5*t-.35*r,.15*r,.7*r,.7*r),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+
|
|
|
|
|
J);break;case "SMCloud":q=new mxCell("",new mxGeometry(.5*t-.4*r,.27*r,.8*r,.46*r),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":q=new mxCell("",new mxGeometry(.5*t-.25*r,.15*r,.5*r,.7*r),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMForm":q=new mxCell("",new mxGeometry(.5*t-.4*r,.15*r,.8*r,.7*r),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
|
break;case "SMGame":q=new mxCell("",new mxGeometry(.5*t-.4*r,.2*r,.8*r,.6*r),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":q=new mxCell("",new mxGeometry(.5*t-.4*r,.2*r,.8*r,.6*r),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}q.vertex=!0;v.insert(q);q.value=e(g.Text);q.style+=c(g,z);v.style+=a(v.style,g,k,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";
|
|
|
|
|
q=new mxCell("",new mxGeometry(.1*t,0,.9*t,.9*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=a(q.style,g,k,q);x=new mxCell("",new mxGeometry(0,.1*r,.9*t,.9*r),"part=1;");x.vertex=!0;v.insert(x);x.value=e(g.Text);x.style+=c(g.Text,z);x.style+=a(x.style,g,k,x,z);break;case "UMLConstraintBlock":var Ob=new mxCell("",new mxGeometry(0,0,.25*r,r),"shape=curlyBracket;rounded=1;");Ob.vertex=!0;v.insert(Ob);var Pb=new mxCell("",new mxGeometry(t-.25*r,0,.25*r,r),"shape=curlyBracket;rounded=1;flipH=1;");Pb.vertex=
|
|
|
|
|
!0;v.insert(Pb);ia=new mxCell("",new mxGeometry(.25*r,0,t-.5*r,r),"strokeColor=none;fillColor=none;");ia.vertex=!0;ia.value=e(g);v.insert(ia);v.style="strokeColor=none;fillColor=none;";v.style+=a(v.style,g,k,v);Ob.style+=R(g,k,Ob);Pb.style+=R(g,k,Pb);ia.style+=y(g,ia);Ob.style+=a(Ob.style,g,k,Ob);Pb.style+=a(Pb.style,g,k,Pb);ia.style+=a(ia.style,g,k,ia,z);break;case "UMLTextBlock":v.value=e(g.Text);v.style+="strokeColor=none;"+c(g.Text,z);v.style+=a(v.style,g,k,v,z);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":var Ab=
|
|
|
|
|
U(g,k,v);g.Rotatio=null;var eb=a(v.style,g,k,v,z);-1==eb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(eb=mxConstants.STYLE_STROKEWIDTH+"=1;"+eb);v.style="group;dropTarget=0;"+Ab;var ud=.8*t,Pd=t-ud,jc=new mxCell("",new mxGeometry(.2,0,ud,r),"shape=ellipse;"+eb);jc.vertex=!0;jc.geometry.relative=!0;v.insert(jc);ha=new mxCell("",new mxGeometry(0,.5,Pd,1),"line;"+eb);ha.geometry.relative=!0;ha.vertex=!0;v.insert(ha);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=e(g);v.style="html=1;dropTarget=0;"+
|
|
|
|
|
a(v.style,g,k,v,z);var Ba=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");Ba.geometry.relative=!0;Ba.geometry.offset=new mxPoint(-20,5);Ba.vertex=!0;v.insert(Ba);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":Ab=U(g,k,v);g.Rotatio=null;eb=a(v.style,g,k,v,z);-1==eb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(eb=mxConstants.STYLE_STROKEWIDTH+"=1;"+eb);v.style="group;dropTarget=0;"+Ab;var Ae=.225*t,Be=.1*t,ud=t-Ae-Be,jc=new mxCell("",new mxGeometry(.225,
|
|
|
|
|
0,ud,r),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+eb);jc.vertex=!0;jc.geometry.relative=!0;v.insert(jc);Na=new mxCell("",new mxGeometry(0,.5,Ae,1),"line;"+eb);Na.geometry.relative=!0;Na.vertex=!0;v.insert(Na);Oa=new mxCell("",new mxGeometry(.9,.5,Be,1),"line;"+eb);Oa.geometry.relative=!0;Oa.vertex=!0;v.insert(Oa);break;case "BPMNActivity":v.value=e(g.Text);switch(g.bpmnActivityType){case 1:v.style+=c(g.Text,z);break;case 2:v.style+="shape=ext;double=1;"+c(g.Text,z);break;case 3:v.style+=
|
|
|
|
|
"shape=ext;dashed=1;dashPattern=2 5;"+c(g.Text,z);break;case 4:v.style+="shape=ext;strokeWidth=2;"+c(g.Text,z)}if(0!=g.bpmnTaskType){switch(g.bpmnTaskType){case 1:q=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");q.geometry.offset=new mxPoint(4,7);break;case 2:q=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");q.geometry.offset=new mxPoint(4,7);break;case 3:q=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");q.geometry.offset=new mxPoint(4,5);break;case 4:q=
|
|
|
|
|
new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");q.geometry.offset=new mxPoint(4,7);break;case 5:q=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");q.geometry.offset=new mxPoint(4,7);break;case 6:q=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");q.geometry.offset=new mxPoint(4,5);break;case 7:q=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),q.geometry.offset=new mxPoint(4,5)}if(1==g.bpmnTaskType){var kc=
|
|
|
|
|
aa(g,k),J=G(g,k),J=J.replace("strokeColor","fillColor"),kc=kc.replace("fillColor","strokeColor");""==J&&(J="fillColor=#000000;");""==kc&&(kc="strokeColor=#ffffff;");q.style+=kc+J+"part=1;"}else q.style+=aa(g,k)+G(g,k)+"part=1;";q.geometry.relative=!0;q.vertex=!0;v.insert(q)}var ed=0;0!=g.bpmnActivityMarker1&&ed++;0!=g.bpmnActivityMarker2&&ed++;var Qa=0;1==ed?Qa=-7.5:2==ed&&(Qa=-19);if(0!=g.bpmnActivityMarker1){switch(g.bpmnActivityMarker1){case 1:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");
|
|
|
|
|
q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 2:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 3:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 4:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");q.geometry.offset=new mxPoint(Qa,
|
|
|
|
|
-20);q.style+=aa(g,k)+G(g,k);break;case 5:q=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");q.geometry.offset=new mxPoint(Qa,-17);J=G(g,k);J=J.replace("strokeColor","fillColor");""==J&&(J="fillColor=#000000;");q.style+=J;break;case 6:q=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),q.geometry.offset=new mxPoint(Qa,-18),q.style+=aa(g,k)+G(g,k)}q.geometry.relative=!0;q.vertex=!0;v.insert(q)}2==ed&&(Qa=5);if(0!=
|
|
|
|
|
g.bpmnActivityMarker2){switch(g.bpmnActivityMarker2){case 1:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 2:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 3:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 4:q=
|
|
|
|
|
new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 5:q=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");q.geometry.offset=new mxPoint(Qa,-17);J=G(g,k);J=J.replace("strokeColor","fillColor");""==J&&(J="fillColor=#000000;");q.style+=J;break;case 6:q=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),q.geometry.offset=
|
|
|
|
|
new mxPoint(Qa,-18),q.style+=aa(g,k)+G(g,k)}q.geometry.relative=!0;q.vertex=!0;v.insert(q)}v.style+=a(v.style,g,k,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";v.value=e(g.Text);if(1==g.bpmnDashed)switch(g.bpmnEventGroup){case 0:v.style+="outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(g.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";
|
|
|
|
|
break;case 2:v.style+="outline=end;"}switch(g.bpmnEventType){case 1:v.style+="symbol=message;";break;case 2:v.style+="symbol=timer;";break;case 3:v.style+="symbol=escalation;";break;case 4:v.style+="symbol=conditional;";break;case 5:v.style+="symbol=link;";break;case 6:v.style+="symbol=error;";break;case 7:v.style+="symbol=cancel;";break;case 8:v.style+="symbol=compensation;";break;case 9:v.style+="symbol=signal;";break;case 10:v.style+="symbol=multiple;";break;case 11:v.style+="symbol=parallelMultiple;";
|
|
|
|
|
break;case 12:v.style+="symbol=terminate;"}v.style+=a(v.style,g,k,v,z);break;case "BPMNChoreography":try{var O=Z(g.FillColor),Qd=Rd(O,.75),Yb=d(g.Name).match(/\d+/),ta=Math.max(mxUtils.getSizeForString(g.Name.t,Yb?Yb[0]:"11",null,t-10).height,24),O="swimlaneFillColor="+Qd+";";v.value=e(g.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+O+"startSize="+ta+";spacingLeft=3;spacingRight=3;fontStyle=0;"+
|
|
|
|
|
c(g.Name,z);v.style+=a(v.style,g,k,v,z);var fb=ta,Yb=d(g.TaskName).match(/\d+/),Bb=g.TaskHeight?.6*g.TaskHeight:Math.max(mxUtils.getSizeForString(g.TaskName.t,Yb?Yb[0]:"11",null,t-10).height+15,24),Qb=new mxCell("",new mxGeometry(0,fb,t,Bb),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");Qb.value=e(g.TaskName);Qb.vertex=!0;v.insert(Qb);Qb.style+=c(g.TaskName,z);Qb.style+=a(Qb.style,g,k,Qb,z);fb+=Bb;I=[];for(l=0;l<g.Fields;l++){var vd=g["Participant"+(l+1)],Yb=d(vd).match(/\d+/),
|
|
|
|
|
Bb=Math.max(mxUtils.getSizeForString(vd.t,Yb?Yb[0]:"11",null,t-10).height,24);I[l]=new mxCell("",new mxGeometry(0,fb,t,Bb),"part=1;html=1;resizeHeight=0;fillColor=none;spacingTop=-1;spacingLeft=3;spacingRight=3;");fb+=Bb;I[l].vertex=!0;v.insert(I[l]);I[l].style+=c(vd,z);I[l].style+=a(I[l].style,g,k,I[l],z);I[l].value=e(vd)}}catch(Xa){console.log(Xa)}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;";v.value=e(g.Text);v.style=0==g.bpmnConversationType?v.style+cc(g):
|
|
|
|
|
v.style+"strokeWidth=2;";g.bpmnIsSubConversation&&(q=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),q.geometry.offset=new mxPoint(-6,-17),q.style+=aa(g,k)+G(g,k),q.geometry.relative=!0,q.vertex=!0,v.insert(q));v.style+=a(v.style,g,k,v,z);break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;verticalLabelPosition=bottom;verticalAlign=top;";switch(g.bpmnGatewayType){case 0:v.style+="outline=none;symbol=general;";break;case 1:v.style+=
|
|
|
|
|
"outline=none;symbol=exclusiveGw;";break;case 2:v.style+="outline=catching;symbol=multiple;";break;case 3:v.style+="outline=none;symbol=parallelGw;";break;case 4:v.style+="outline=end;symbol=general;";break;case 5:v.style+="outline=standard;symbol=multiple;";break;case 6:v.style+="outline=none;symbol=complexGw;";break;case 7:v.style+="outline=standard;symbol=parallelMultiple;"}v.style+=a(v.style,g,k,v);v.value=e(g.Text);v.style+=c(g,z);break;case "BPMNData":v.style+="shape=note;size=14;";switch(g.bpmnDataType){case 1:q=
|
|
|
|
|
new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");q.geometry.offset=new mxPoint(-6,-15);q.style+=aa(g,k)+G(g,k);q.geometry.relative=!0;q.vertex=!0;v.insert(q);break;case 2:q=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");q.geometry.offset=new mxPoint(3,3);q.style+=aa(g,k)+G(g,k);q.geometry.relative=!0;q.vertex=!0;v.insert(q);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";W=new mxCell("",new mxGeometry(0,0,t,20),
|
|
|
|
|
"strokeColor=none;fillColor=none;");W.geometry.offset=new mxPoint(0,14);W.geometry.relative=!0;W.vertex=!0;v.insert(W);W.value=e(g.Text);W.style+=c(g,z);break;case 3:q=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),q.geometry.offset=new mxPoint(3,3),q.style+=G(g,k),q.geometry.relative=!0,q.vertex=!0,v.insert(q),J=G(g,k),J=J.replace("strokeColor","fillColor"),""==J&&(J="fillColor=#000000;"),q.style+=J,W=new mxCell("",new mxGeometry(0,0,t,20),"strokeColor=none;fillColor=none;"),
|
|
|
|
|
W.geometry.offset=new mxPoint(0,14),W.geometry.relative=!0,W.vertex=!0,v.insert(W),W.value=e(g.Text),W.style+=c(g,z)}v.style+=a(v.style,g,k,v);break;case "BPMNBlackPool":v.value=e(g.Text);v.style+=a(v.style,g,k,v,z);q=new mxCell("",new mxGeometry(0,0,t,r),"fillColor=#000000;strokeColor=none;opacity=30;");q.vertex=!0;v.insert(q);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=a(v.style,g,k,v);q=new mxCell("",new mxGeometry(0,0,.95*t,.95*r),"part=1;");q.vertex=
|
|
|
|
|
!0;v.insert(q);q.style+=a(q.style,g,k,q);x=new mxCell("",new mxGeometry(.05*t,.05*r,.95*t,.95*r),"part=1;");x.vertex=!0;v.insert(x);x.value=e(g.Text);x.style+=c(g.Text,z);x.style+=a(x.style,g,k,x,z);break;case "GSDFDDataStoreBlock":v.value=e(g.Text);v.style+="shape=partialRectangle;right=0;"+c(g.Text,z);v.style+=a(v.style,g,k,v,z);q=new mxCell("",new mxGeometry(0,0,.2*t,r),"part=1;");q.vertex=!0;v.insert(q);q.value=e(g.Number);q.style+=c(g.Number,z);q.style+=a(q.style,g,k,q,z);break;case "DefaultTableBlock":try{for(var fc=
|
|
|
|
|
g.RowHeights.length,gc=g.ColWidths.length,wd=[],fd=[],l=0;l<fc;l++)wd[l]=.6*g.RowHeights[l];for(P=0;P<gc;P++)fd[P]=.6*g.ColWidths[P];v.style="group;dropTarget=0;";var Yd=g.BandedColor1,Zd=g.BandedColor2,ff=g.BandedRows,Ce=g.BandedCols,xd=g.HideH,gf=g.HideV,De=g.TextVAlign,Ee=g.FillColor,Fe=g.StrokeStyle;delete g.StrokeStyle;for(var hf=Wa(Ee,"fillOpacity"),Ge=g.LineColor,jf=Wa(Ge,"strokeOpacity"),Y=0,gd={},l=0;l<fc;l++){n=0;r=wd[l];for(P=0;P<gc;P++){var Ya=l+","+P;if(gd[Ya])n+=fd[P];else{for(var za=
|
|
|
|
|
g["CellFill_"+Ya],$d=g["NoBand_"+Ya],yd=g["CellSize_"+Ya],Cb=g["Cell_"+Ya],He=g["Cell_"+Ya+"_VAlign"],kf=g["Cell_"+Ya+"_TRotation"],lf=g["CellBorderWidthH_"+Ya],mf=g["CellBorderColorH_"+Ya],nf=g["CellBorderStrokeStyleH_"+Ya],of=g["CellBorderWidthV_"+Ya],pf=g["CellBorderColorV_"+Ya],qf=g["CellBorderStrokeStyleV_"+Ya],Ie=xd?pf:mf,Je=Wa(Ie,"strokeOpacity"),Ke=xd?of:lf,lc=xd?qf:nf,za=ff&&!$d?0==l%2?Yd:Ce&&!$d?0==P%2?Yd:Zd:Zd:Ce&&!$d?0==P%2?Yd:Zd:za,rf=Wa(za,"fillOpacity")||hf,t=fd[P],Le=r,wc=t,gb=l+1;gb<
|
|
|
|
|
l+yd.h;gb++)if(null!=wd[gb]){Le+=wd[gb];gd[gb+","+P]=!0;for(var mc=P+1;mc<P+yd.w;mc++)gd[mc+","+P]=!0}for(gb=P+1;gb<P+yd.w;gb++)if(null!=fd[gb])for(wc+=fd[gb],gd[l+","+gb]=!0,mc=l+1;mc<l+yd.h;mc++)gd[mc+","+gb]=!0;var Q=new mxCell("",new mxGeometry(n,Y,wc,Le),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(gf?"left=0;right=0;":"")+(xd?"top=0;bottom=0;":"")+$a(mxConstants.STYLE_FILLCOLOR,Z(za),Z(Ee))+$a(mxConstants.STYLE_STROKECOLOR,Z(Ie),Z(Ge))+(null!=Ke?$a(mxConstants.STYLE_STROKEWIDTH,
|
|
|
|
|
Math.round(.6*parseFloat(Ke)),"1"):"")+(Je?Je:jf)+rf+"verticalAlign="+(He?He:De?De:"middle")+";"+vc({StrokeStyle:lc?lc:Fe?Fe:"solid"})+(kf?"horizontal=0;":""));Q.vertex=!0;Q.value=e(Cb);Q.style+=a(Q.style,g,k,Q,z)+(z?"fontSize=11;":d(Cb)+y(Cb)+w(Cb)+C(Cb,Q)+B(Cb)+D(Cb)+A(Cb)+E(Cb))+H(Cb)+N(Cb);v.insert(Q);n+=t}}Y+=r}}catch(Xa){}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==
|
|
|
|
|
b.Class?v.value=e(g.Text):"VSMProductionControlBlock"==b.Class&&(v.value=e(g.Resources));v.style+=a(v.style,g,k,v,z);"VSMDedicatedProcessBlock"==b.Class&&(q=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),q.geometry.relative=!0,q.geometry.offset=new mxPoint(4,-13),q.vertex=!0,v.insert(q),q.style+=a(q.style,g,k,q));W=new mxCell("",new mxGeometry(0,0,t,15),"strokeColor=none;fillColor=none;part=1;");W.vertex=!0;v.insert(W);W.value=e(g.Title);W.style+=c(g.Title,z);
|
|
|
|
|
g.Text=null;break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=e(g.Text);v.style+=a(v.style,g,k,v,z);W=new mxCell("",new mxGeometry(.1*t,.3*r,.8*t,.6*r),"part=1;");W.vertex=!0;v.insert(W);W.value=e(g.Resource);W.style+=c(g.Resource,z);W.style+=a(W.style,g,k,W,z);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.value=e(g.Text);v.style+=a(v.style,
|
|
|
|
|
g,k,v,z);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=a(v.style,g,k,v);Ia=r;mb=parseInt(g.Cells);O=a("part=1;",g,k,v);0<mb&&(Ia/=mb);I=[];ha=[];for(l=1;l<=mb;l++)I[l]=new mxCell("",new mxGeometry(0,(l-1)*Ia,t,Ia),O),I[l].vertex=!0,v.insert(I[l]),I[l].value=e(g["cell_"+l]),I[l].style+=c(g["cell_"+l],z);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";
|
|
|
|
|
sd=0==fa.indexOf("BPMN"),Kd=null!=g[oa];v.style=(Lc?"swimlane;startSize="+Kb+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(Jd?"horizontalStack=0;":"");v.style+=a(v.style,g,k,v);Kd&&(v.value=e(g[oa]),v.style+=(z?"overflow=block;blockSpacing=1;fontSize=11;"+Aa:d(g[oa])+y(g[oa])+h(g[oa])+w(g[oa])+C(g[oa],v)+B(g[oa])+D(g[oa])+A(g[oa])+E(g[oa]))+H(g[oa])+N(g[oa]));for(var Oc=0,
|
|
|
|
|
Jb=[],Md="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="+Sb+";dropTarget=0;rounded=0;"+(Jd?"horizontal=0;":"")+(sd?"swimlaneLine=0;fillColor=none;":""),P=g.Rotation=0;P<Kc;P++){if(null==kb)var qd=parseFloat(g.Lanes[P].p),l=parseInt(g.Lanes[P].tid)||P,ab="Lane_"+l;else qd=.6*g.PrimaryLane[P]/t,l=P,ab=kb[P];var te=t*Oc,td=Lc?Kb:0;Jb.push(new mxCell("",Jd?new mxGeometry(td,te,r-td,t*qd):new mxGeometry(te,td,t*qd,r-td),Md));Jb[P].vertex=!0;v.insert(Jb[P]);
|
|
|
|
|
Jb[P].value=e(g[ab]);Jb[P].style+=a(Jb[P].style,g,k,Jb[P],z)+(z?"fontSize=11;":d(g[ab])+y(g[ab])+w(g[ab])+C(g[ab],Jb[P])+B(g[ab])+D(g[ab])+A(g[ab])+E(g[ab]))+H(g[ab])+N(g[ab])+S(g[rd+l])+ea(g[Mc+l]);Oc+=qd}null!=uc&&(v.geometry.x=uc,v.geometry.y=Nc);break;case "UMLMultidimensionalSwimlane":var fc=0,gc=0,Sd=null,Td=null;if(null!=g.Rows&&null!=g.Columns)var fc=g.Rows.length,gc=g.Columns.length,Pc=.6*g.TitleHeight||25,Qc=.6*g.TitleWidth||25;else if(null!=g.PrimaryLane&&null!=g.SecondaryLane){fc=g.SecondaryLane.length;
|
|
|
|
|
gc=g.PrimaryLane.length;Qc=.6*g.SecondaryLaneTitleHeight||25;Pc=.6*g.PrimaryLaneTitleHeight||25;for(l=r=t=0;l<fc;l++)r+=g.SecondaryLane[l];for(l=0;l<gc;l++)t+=g.PrimaryLane[l];t=.6*t+Qc;r=.6*r+Pc;v.geometry.width=t;v.geometry.height=r;Sd=g.SecondaryLaneTextAreaIds;Td=g.PrimaryLaneTextAreaIds}v.style="group;";var Ud=new mxCell("",new mxGeometry(0,Pc,t,r-Pc),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");
|
|
|
|
|
Ud.vertex=!0;var Rc=new mxCell("",new mxGeometry(Qc,0,t-Qc,r),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");Rc.vertex=!0;v.insert(Ud);v.insert(Rc);for(var Y=0,Nd="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+Qc+";",P=0;P<fc;P++){if(null==Sd)var Vd=.6*parseInt(g.Rows[P].height),l=parseInt(g.Rows[P].id)||P,bb="Row_"+l;else Vd=.6*g.SecondaryLane[P],
|
|
|
|
|
bb=Sd[P];var Vb=new mxCell("",new mxGeometry(0,Y,t,Vd),Nd),Y=Y+Vd;Vb.vertex=!0;Ud.insert(Vb);Vb.value=e(g[bb]);Vb.style+=a(Vb.style,g,k,Vb,z)+(z?"fontSize=11;":d(g[bb])+y(g[bb])+w(g[bb])+C(g[bb],Vb)+B(g[bb])+D(g[bb])+A(g[bb])+E(g[bb]))+H(g[bb])+N(g[bb])}for(var Od="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+Pc+";",P=n=0;P<gc;P++){if(null==Td)var wc=.6*parseInt(g.Columns[P].width),l=parseInt(g.Columns[P].id)||P,cb="Column_"+l;else wc=
|
|
|
|
|
.6*g.PrimaryLane[P],cb=Td[P];var Wb=new mxCell("",new mxGeometry(n,0,wc,r),Od),n=n+wc;Wb.vertex=!0;Rc.insert(Wb);Wb.value=e(g[cb]);Wb.style+=a(Wb.style,g,k,Wb,z)+(z?"fontSize=11;":d(g[cb])+y(g[cb])+w(g[cb])+C(g[cb],Wb)+B(g[cb])+D(g[cb])+A(g[cb])+E(g[cb]))+H(g[cb])+N(g[cb])}break;case "UMLStateBlock":if(0==g.Composite)v.style="rounded=1;arcSize=20",v.value=e(g.State,!0),v.style+=a(v.style,g,k,v,z);else{v.style="swimlane;startSize=25;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;rounded=1;arcSize=20;fontStyle=0;";
|
|
|
|
|
v.value=e(g.State,!0);v.style+=a(v.style,g,k,v,z);v.style+=aa(g,k).replace("fillColor","swimlaneFillColor");var Ma=new mxCell("",new mxGeometry(0,25,t,r-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");Ma.value=e(g.Action,!0);Ma.style+=a(Ma.style,g,k,Ma,z);Ma.vertex=!0;v.insert(Ma)}break;case "GSDFDProcessBlock":var Wd=Math.round(.6*g.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+Wd;v.value=e(g.Number,!0);v.style+=a(v.style,g,k,v,
|
|
|
|
|
z);v.style+=aa(g,k).replace("fillColor","swimlaneFillColor");Ma=new mxCell("",new mxGeometry(0,Wd,t,r-Wd),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");Ma.value=e(g.Text,!0);Ma.style+=a(Ma.style,g,k,Ma,z);Ma.vertex=!0;v.insert(Ma);break;case "AndroidDevice":if(null!=g.AndroidDeviceName){v.style="fillColor=#000000;strokeColor=#000000;";var Xb=null,Sc=null,Tc=null;if("Tablet"==g.AndroidDeviceName||"Mini Tablet"==g.AndroidDeviceName||"custom"==g.AndroidDeviceName&&"Tablet"==g.CustomDeviceType)v.style+=
|
|
|
|
|
"shape=mxgraph.android.tab2;",Xb=new mxCell("",new mxGeometry(.112*t,.077*r,.77*t,.85*r),""),g.KeyboardShown&&(Sc=new mxCell("",new mxGeometry(.112*t,.727*r,.77*t,.2*r),"shape=mxgraph.android.keyboard;")),g.FullScreen||(Tc=new mxCell("",new mxGeometry(.112*t,.077*r,.77*t,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*r+";"));else if("Large Phone"==g.AndroidDeviceName||"Phone"==g.AndroidDeviceName||"custom"==g.AndroidDeviceName&&"Phone"==
|
|
|
|
|
g.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",Xb=new mxCell("",new mxGeometry(.04*t,.092*r,.92*t,.816*r),""),g.KeyboardShown&&(Sc=new mxCell("",new mxGeometry(.04*t,.708*r,.92*t,.2*r),"shape=mxgraph.android.keyboard;")),g.FullScreen||(Tc=new mxCell("",new mxGeometry(.04*t,.092*r,.92*t,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*r+";"));Xb.vertex=!0;v.insert(Xb);"Dark"==g.Scheme?Xb.style+="fillColor=#111111;":"Light"==
|
|
|
|
|
g.Scheme&&(Xb.style+="fillColor=#ffffff;");null!=Sc&&(Sc.vertex=!0,v.insert(Sc));null!=Tc&&(Tc.vertex=!0,v.insert(Tc))}v.style+=a(v.style,g,k,v);break;case "AndroidAlertDialog":var lb=new mxCell("",new mxGeometry(0,0,t,30),"strokeColor=none;fillColor=none;spacingLeft=9;");lb.vertex=!0;v.insert(lb);var ha=new mxCell("",new mxGeometry(0,25,t,10),"shape=line;strokeColor=#33B5E5;");ha.vertex=!0;v.insert(ha);var Uc=new mxCell("",new mxGeometry(0,30,t,r-30),"strokeColor=none;fillColor=none;verticalAlign=top;");
|
|
|
|
|
Uc.vertex=!0;v.insert(Uc);var xa=new mxCell("",new mxGeometry(0,r-25,.5*t,25),"fillColor=none;");xa.vertex=!0;v.insert(xa);var ya=new mxCell("",new mxGeometry(.5*t,r-25,.5*t,25),"fillColor=none;");ya.vertex=!0;v.insert(ya);lb.value=e(g.DialogTitle);lb.style+=c(g.DialogTitle,z);Uc.value=e(g.DialogText);Uc.style+=c(g.DialogText,z);xa.value=e(g.Button_0);xa.style+=c(g.Button_0,z);ya.value=e(g.Button_1);ya.style+=c(g.Button_1,z);"Dark"==g.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",
|
|
|
|
|
xa.style+="strokeColor=#353535;",ya.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",xa.style+="strokeColor=#E2E2E2;",ya.style+="strokeColor=#E2E2E2;");v.style+=a(v.style,g,k,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":lb=new mxCell("",new mxGeometry(0,0,t,30),"strokeColor=none;fillColor=none;spacingLeft=9;");lb.vertex=!0;v.insert(lb);lb.value=e(g.DialogTitle);lb.style+=c(g.DialogTitle,z);ha=new mxCell("",new mxGeometry(0,25,t,10),"shape=line;strokeColor=#33B5E5;");
|
|
|
|
|
ha.vertex=!0;v.insert(ha);xa=new mxCell("",new mxGeometry(0,r-25,.5*t,25),"fillColor=none;");xa.vertex=!0;v.insert(xa);xa.value=e(g.Button_0);xa.style+=c(g.Button_0,z);ya=new mxCell("",new mxGeometry(.5*t,r-25,.5*t,25),"fillColor=none;");ya.vertex=!0;v.insert(ya);ya.value=e(g.Button_1);ya.style+=c(g.Button_1,z);var xc=new mxCell("",new mxGeometry(.5*t-4,41,8,4),"shape=triangle;direction=north;");xc.vertex=!0;v.insert(xc);var yc=new mxCell("",new mxGeometry(.25*t-4,41,8,4),"shape=triangle;direction=north;");
|
|
|
|
|
yc.vertex=!0;v.insert(yc);var zc=new mxCell("",new mxGeometry(.75*t-4,41,8,4),"shape=triangle;direction=north;");zc.vertex=!0;v.insert(zc);var Vc=new mxCell("",new mxGeometry(.375*t,50,.2*t,15),"strokeColor=none;fillColor=none;");Vc.vertex=!0;v.insert(Vc);Vc.value=e(g.Label_1);Vc.style+=c(g.Label_1,z);var Wc=new mxCell("",new mxGeometry(.125*t,50,.2*t,15),"strokeColor=none;fillColor=none;");Wc.vertex=!0;v.insert(Wc);Wc.value=e(g.Label_0);Wc.style+=c(g.Label_0,z);var Ac=null;"AndroidDateDialog"==b.Class&&
|
|
|
|
|
(Ac=new mxCell("",new mxGeometry(.625*t,50,.2*t,15),"strokeColor=none;fillColor=none;"),Ac.vertex=!0,v.insert(Ac),Ac.value=e(g.Label_2),Ac.style+=c(g.Label_2,z));var Na=new mxCell("",new mxGeometry(.43*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");Na.vertex=!0;v.insert(Na);var Oa=new mxCell("",new mxGeometry(.18*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");Oa.vertex=!0;v.insert(Oa);var ue=new mxCell("",new mxGeometry(.68*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");ue.vertex=!0;v.insert(ue);
|
|
|
|
|
var Xc=new mxCell("",new mxGeometry(.375*t,65,.2*t,15),"strokeColor=none;fillColor=none;");Xc.vertex=!0;v.insert(Xc);Xc.value=e(g.Label_4);Xc.style+=c(g.Label_4,z);var Bc=null;"AndroidTimeDialog"==b.Class&&(Bc=new mxCell("",new mxGeometry(.3*t,65,.1*t,15),"strokeColor=none;fillColor=none;"),Bc.vertex=!0,v.insert(Bc),Bc.value=e(g.Label_Colon),Bc.style+=c(g.Label_Colon,z));var Yc=new mxCell("",new mxGeometry(.125*t,65,.2*t,15),"strokeColor=none;fillColor=none;");Yc.vertex=!0;v.insert(Yc);Yc.value=e(g.Label_3);
|
|
|
|
|
Yc.style+=c(g.Label_3,z);var Zc=new mxCell("",new mxGeometry(.625*t,65,.2*t,15),"strokeColor=none;fillColor=none;");Zc.vertex=!0;v.insert(Zc);Zc.value=e(g.Label_5);Zc.style+=c(g.Label_5,z);var ve=new mxCell("",new mxGeometry(.43*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");ve.vertex=!0;v.insert(ve);var we=new mxCell("",new mxGeometry(.18*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");we.vertex=!0;v.insert(we);var xe=new mxCell("",new mxGeometry(.68*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");
|
|
|
|
|
xe.vertex=!0;v.insert(xe);var $c=new mxCell("",new mxGeometry(.375*t,80,.2*t,15),"strokeColor=none;fillColor=none;");$c.vertex=!0;v.insert($c);$c.value=e(g.Label_7);$c.style+=c(g.Label_7,z);var ad=new mxCell("",new mxGeometry(.125*t,80,.2*t,15),"strokeColor=none;fillColor=none;");ad.vertex=!0;v.insert(ad);ad.value=e(g.Label_6);ad.style+=c(g.Label_6,z);var bd=new mxCell("",new mxGeometry(.625*t,80,.2*t,15),"strokeColor=none;fillColor=none;");bd.vertex=!0;v.insert(bd);bd.value=e(g.Label_8);bd.style+=
|
|
|
|
|
c(g.Label_8,z);var Cc=new mxCell("",new mxGeometry(.5*t-4,99,8,4),"shape=triangle;direction=south;");Cc.vertex=!0;v.insert(Cc);var Dc=new mxCell("",new mxGeometry(.25*t-4,99,8,4),"shape=triangle;direction=south;");Dc.vertex=!0;v.insert(Dc);var Ec=new mxCell("",new mxGeometry(.75*t-4,99,8,4),"shape=triangle;direction=south;");Ec.vertex=!0;v.insert(Ec);"Dark"==g.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",xa.style+="strokeColor=#353535;",ya.style+="strokeColor=#353535;",xc.style+=
|
|
|
|
|
"strokeColor=none;fillColor=#7E7E7E;",yc.style+="strokeColor=none;fillColor=#7E7E7E;",zc.style+="strokeColor=none;fillColor=#7E7E7E;",Cc.style+="strokeColor=none;fillColor=#7E7E7E;",Dc.style+="strokeColor=none;fillColor=#7E7E7E;",Ec.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",xa.style+="strokeColor=#E2E2E2;",ya.style+="strokeColor=#E2E2E2;",xc.style+="strokeColor=none;fillColor=#939393;",yc.style+="strokeColor=none;fillColor=#939393;",zc.style+=
|
|
|
|
|
"strokeColor=none;fillColor=#939393;",Cc.style+="strokeColor=none;fillColor=#939393;",Dc.style+="strokeColor=none;fillColor=#939393;",Ec.style+="strokeColor=none;fillColor=#939393;");v.style+=a(v.style,g,k,v);break;case "AndroidListItems":var Ia=r,Mb=0;if(g.ShowHeader){var Mb=8,hc=new mxCell("",new mxGeometry(0,0,t,Mb),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=e(g.Header);hc.style+=c(g.Header,z);var Ia=Ia-Mb,ye=new mxCell("",new mxGeometry(0,Mb-2,t,4),"shape=line;strokeColor=#999999;");
|
|
|
|
|
ye.vertex=!0;v.insert(ye)}var mb=parseInt(g.Items);0<mb&&(Ia/=mb);for(var I=[],ha=[],l=0;l<mb;l++)I[l]=new mxCell("",new mxGeometry(0,Mb+l*Ia,t,Ia),"strokeColor=none;fillColor=none;"),I[l].vertex=!0,v.insert(I[l]),I[l].value=e(g["Item_"+l]),I[l].style+=c(g["Item_"+l],z),0<l&&(ha[l]=new mxCell("",new mxGeometry(0,Mb+l*Ia-2,t,4),"shape=line;"),ha[l].vertex=!0,v.insert(ha[l]),ha[l].style="Dark"==g.Scheme?ha[l].style+"strokeColor=#ffffff;":ha[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==g.Scheme?
|
|
|
|
|
v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=a(v.style,g,k,v);break;case "AndroidTabs":var nb=parseInt(g.Tabs),Sa=t;0<nb&&(Sa/=nb);for(var ka=[],ha=[],l=0;l<nb;l++)ka[l]=new mxCell("",new mxGeometry(l*Sa,0,Sa,r),"strokeColor=none;fillColor=none;"),ka[l].vertex=!0,v.insert(ka[l]),ka[l].value=e(g["Tab_"+l]),ka[l].style+=c(g["Tab_"+l],z),0<l&&(ha[l]=new mxCell("",new mxGeometry(l*Sa-2,.2*r,4,.6*r),"shape=line;direction=north;"),ha[l].vertex=!0,
|
|
|
|
|
v.insert(ha[l]),ha[l].style="Dark"==g.Scheme?ha[l].style+"strokeColor=#484848;":ha[l].style+"strokeColor=#CCCCCC;");var ze=new mxCell("",new mxGeometry(g.Selected*Sa+2,r-3,Sa-4,3),"strokeColor=none;fillColor=#33B5E5;");ze.vertex=!0;v.insert(ze);v.style="Dark"==g.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=a(v.style,g,k,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(n),Math.round(Y+.25*r),Math.round(t),Math.round(.5*
|
|
|
|
|
r)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var cd=new mxCell("",new mxGeometry(0,0,t*g.BarPosition,Math.round(.5*r)),"strokeColor=none;fillColor=#33B5E5;");cd.vertex=!0;v.insert(cd);v.style="Dark"==g.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=a(v.style,g,k,v);break;case "AndroidImageBlock":v.style="Dark"==g.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":
|
|
|
|
|
v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";v.style+=a(v.style,g,k,v);break;case "AndroidTextBlock":v.style="Dark"==g.Scheme?g.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":g.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=e(g.Label);v.style+=c(g.Label,z);v.style+=a(v.style,g,k,v,z);break;case "AndroidActionBar":v.style+="strokeColor=none;";
|
|
|
|
|
switch(g.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(g.HighlightShow){var Nb=null,Nb=g.HighlightTop?new mxCell("",new mxGeometry(0,0,t,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,r-2,t,2),"strokeColor=none;");Nb.vertex=!0;v.insert(Nb);switch(g.HighlightColor){case "Blue":Nb.style+="fillColor=#33B5E5;";break;case "Dark Gray":Nb.style+=
|
|
|
|
|
"fillColor=#B0B0B0;";break;case "White":Nb.style+="fillColor=#ffffff;"}}if(g.VlignShow){var Fc=new mxCell("",new mxGeometry(20,5,2,r-10),"shape=line;direction=north;");Fc.vertex=!0;v.insert(Fc);switch(g.VlignColor){case "Blue":Fc.style+="strokeColor=#244C5A;";break;case "White":Fc.style+="strokeColor=#ffffff;"}}v.style+=a(v.style,g,k,v);break;case "AndroidButton":v.value=e(g.Label);v.style+=c(g.Label,z)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==g.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":
|
|
|
|
|
v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";v.style+=a(v.style,g,k,v);break;case "AndroidTextBox":v.value=e(g.Label);v.style+=c(g.Label,z);var dd=new mxCell("",new mxGeometry(2,r-6,t-4,4),"shape=partialRectangle;top=0;fillColor=none;");dd.vertex=!0;v.insert(dd);v.style="Dark"==g.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";dd.style=g.TextFocused?dd.style+"strokeColor=#33B5E5;":dd.style+"strokeColor=#A9A9A9;";v.style+=a(v.style,g,k,v);
|
|
|
|
|
break;case "AndroidRadioButton":var ic=null;g.Checked&&(ic=new mxCell("",new mxGeometry(.15*t,.15*r,.7*t,.7*r),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),ic.vertex=!0,v.insert(ic));"Dark"==g.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",g.Checked?(ic.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",g.Checked&&
|
|
|
|
|
(ic.style+="strokeColor=#999999;"));v.style+=a(v.style,g,k,v);break;case "AndroidCheckBox":var Xd=null;g.Checked&&(Xd=new mxCell("",new mxGeometry(.25*t,.05*-r,t,.8*r),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),Xd.vertex=!0,v.insert(Xd));v.style="Dark"==g.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=a(v.style,g,k,v);break;case "AndroidToggle":v.style="Dark"==g.Scheme?g.Checked?
|
|
|
|
|
v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":g.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";v.style+=a(v.style,g,k,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+g.BarPosition+";fillColor=#33b5e5;";v.style+=a(v.style,g,k,v);break;case "iOSSegmentedControl":nb=parseInt(g.Tabs);Sa=t;v.style+="strokeColor=none;fillColor=none;";
|
|
|
|
|
0<nb&&(Sa/=nb);ka=[];ha=[];for(l=0;l<nb;l++)ka[l]=new mxCell("",new mxGeometry(l*Sa,0,Sa,r),"strokeColor="+g.FillColor+";"),ka[l].vertex=!0,v.insert(ka[l]),ka[l].value=e(g["Tab_"+l]),ka[l].style+=c(g["Tab_"+l],z),ka[l].style=g.Selected==l?ka[l].style+aa(g,k):ka[l].style+"fillColor=none;";v.style+=a(v.style,g,k,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+g.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*g.BarPosition+";";v.style+=a(v.style,g,k,v);break;case "iOSProgressBar":v=
|
|
|
|
|
new mxCell("",new mxGeometry(Math.round(n),Math.round(Y+.25*r),Math.round(t),Math.round(.5*r)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;cd=new mxCell("",new mxGeometry(0,0,t*g.BarPosition,Math.round(.5*r)),"strokeColor=none;"+aa(g,k));cd.vertex=!0;v.insert(cd);v.style+=a(v.style,g,k,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=a(v.style,g,k,v);break;case "iOSStatusBar":v.style+=
|
|
|
|
|
"shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var W=new mxCell(e(g.Text),new mxGeometry(.35*t,0,.3*t,r),"strokeColor=none;fillColor=none;");W.vertex=!0;v.insert(W);W.style+=c(g.Text,z);var Pa=new mxCell(e(g.Carrier),new mxGeometry(.09*t,0,.2*t,r),"strokeColor=none;fillColor=none;");Pa.vertex=!0;v.insert(Pa);Pa.style+=c(g.Carrier,z);v.style+=a(v.style,g,k,v);break;case "iOSSearchBar":v.value=e(g.Search);v.style+="strokeColor=none;";v.style+=a(v.style,g,k,v,z)+c(g.Search,z);var ca=new mxCell("",
|
|
|
|
|
new mxGeometry(.3*t,.3*r,.4*r,.4*r),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");ca.vertex=!0;v.insert(ca);break;case "iOSNavBar":v.value=e(g.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+c(g.Title,z);v.style+=a(v.style,g,k,v,z);W=new mxCell(e(g.LeftText),new mxGeometry(.03*t,0,.3*t,r),"strokeColor=none;fillColor=none;");W.vertex=!0;v.insert(W);W.style+=c(g.LeftText,z);Pa=new mxCell(e(g.RightText),new mxGeometry(.65*t,0,.3*t,r),
|
|
|
|
|
"strokeColor=none;fillColor=none;");Pa.vertex=!0;v.insert(Pa);Pa.style+=c(g.RightText,z);ca=new mxCell("",new mxGeometry(.02*t,.2*r,.3*r,.5*r),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");ca.vertex=!0;v.insert(ca);break;case "iOSTabs":nb=parseInt(g.Tabs);Sa=t;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=a(v.style,g,k,v);0<nb&&(Sa/=nb);ka=[];ha=[];for(l=0;l<nb;l++)ka[l]=new mxCell("",new mxGeometry(l*Sa,0,Sa,r),"strokeColor=none;"),ka[l].vertex=
|
|
|
|
|
!0,v.insert(ka[l]),ka[l].value=e(g["Tab_"+l]),ka[l].style+=z?"overflow=block;blockSpacing=1;html=1;fontSize=11;"+Aa:d(g["Tab_"+l])+h(g["Tab_"+l])+y(g["Tab_"+l])+w(g["Tab_"+l])+C(g["Tab_"+l])+B(g["Tab_"+l])+D(g["Tab_"+l])+A(g["Tab_"+l])+E(g["Tab_"+l])+H(g["Tab_"+l]),ka[l].style+="verticalAlign=bottom;",ka[l].style=g.Selected==l?ka[l].style+"fillColor=#BBBBBB;":ka[l].style+"fillColor=none;";break;case "iOSDatePicker":var ob=new mxCell("",new mxGeometry(0,0,.5*t,.2*r),"strokeColor=none;fillColor=none;");
|
|
|
|
|
ob.vertex=!0;v.insert(ob);ob.value=e(g.Option11);ob.style+=c(g.Option11,z);var pb=new mxCell("",new mxGeometry(.5*t,0,.15*t,.2*r),"strokeColor=none;fillColor=none;");pb.vertex=!0;v.insert(pb);pb.value=e(g.Option21);pb.style+=c(g.Option21,z);var qb=new mxCell("",new mxGeometry(.65*t,0,.15*t,.2*r),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=e(g.Option31);qb.style+=c(g.Option31,z);var rb=new mxCell("",new mxGeometry(0,.2*r,.5*t,.2*r),"strokeColor=none;fillColor=none;");rb.vertex=
|
|
|
|
|
!0;v.insert(rb);rb.value=e(g.Option12);rb.style+=c(g.Option12,z);var sb=new mxCell("",new mxGeometry(.5*t,.2*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=e(g.Option22);sb.style+=c(g.Option22,z);var tb=new mxCell("",new mxGeometry(.65*t,.2*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=e(g.Option32);tb.style+=c(g.Option32,z);var Da=new mxCell("",new mxGeometry(0,.4*r,.5*t,.2*r),"strokeColor=none;fillColor=none;");Da.vertex=
|
|
|
|
|
!0;v.insert(Da);Da.value=e(g.Option13);Da.style+=c(g.Option13,z);var Ea=new mxCell("",new mxGeometry(.5*t,.4*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=e(g.Option23);Ea.style+=c(g.Option23,z);var ub=new mxCell("",new mxGeometry(.65*t,.4*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=e(g.Option33);ub.style+=c(g.Option33,z);var Fa=new mxCell("",new mxGeometry(.8*t,.4*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");Fa.vertex=
|
|
|
|
|
!0;v.insert(Fa);Fa.value=e(g.Option43);Fa.style+=c(g.Option43,z);var Ga=new mxCell("",new mxGeometry(0,.6*r,.5*t,.2*r),"strokeColor=none;fillColor=none;");Ga.vertex=!0;v.insert(Ga);Ga.value=e(g.Option14);Ga.style+=c(g.Option14,z);var vb=new mxCell("",new mxGeometry(.5*t,.6*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=e(g.Option24);vb.style+=c(g.Option24,z);var wb=new mxCell("",new mxGeometry(.65*t,.6*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");wb.vertex=
|
|
|
|
|
!0;v.insert(wb);wb.value=e(g.Option34);wb.style+=c(g.Option34,z);var xb=new mxCell("",new mxGeometry(.8*t,.6*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");xb.vertex=!0;v.insert(xb);xb.value=e(g.Option44);xb.style+=c(g.Option44,z);var Ha=new mxCell("",new mxGeometry(0,.8*r,.5*t,.2*r),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=e(g.Option15);Ha.style+=c(g.Option15,z);var yb=new mxCell("",new mxGeometry(.5*t,.8*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");yb.vertex=
|
|
|
|
|
!0;v.insert(yb);yb.value=e(g.Option25);yb.style+=c(g.Option25,z);var zb=new mxCell("",new mxGeometry(.65*t,.8*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");zb.vertex=!0;v.insert(zb);zb.value=e(g.Option35);zb.style+=c(g.Option35,z);Na=new mxCell("",new mxGeometry(0,.4*r-2,t,4),"shape=line;strokeColor=#888888;");Na.vertex=!0;v.insert(Na);Oa=new mxCell("",new mxGeometry(0,.6*r-2,t,4),"shape=line;strokeColor=#888888;");Oa.vertex=!0;v.insert(Oa);v.style+="strokeColor=none;";v.style+=a(v.style,g,k,
|
|
|
|
|
v);break;case "iOSTimePicker":ob=new mxCell("",new mxGeometry(0,0,.25*t,.2*r),"strokeColor=none;fillColor=none;");ob.vertex=!0;v.insert(ob);ob.value=e(g.Option11);ob.style+=c(g.Option11,z);pb=new mxCell("",new mxGeometry(.25*t,0,.3*t,.2*r),"strokeColor=none;fillColor=none;");pb.vertex=!0;v.insert(pb);pb.value=e(g.Option21);pb.style+=c(g.Option21,z);rb=new mxCell("",new mxGeometry(0,.2*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=e(g.Option12);rb.style+=c(g.Option12,
|
|
|
|
|
z);sb=new mxCell("",new mxGeometry(.25*t,.2*r,.3*t,.2*r),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=e(g.Option22);sb.style+=c(g.Option22,z);Da=new mxCell("",new mxGeometry(0,.4*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=e(g.Option13);Da.style+=c(g.Option13,z);Ea=new mxCell("",new mxGeometry(.25*t,.4*r,.3*t,.2*r),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=e(g.Option23);Ea.style+=c(g.Option23,z);Fa=new mxCell("",
|
|
|
|
|
new mxGeometry(.7*t,.4*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=e(g.Option33);Fa.style+=c(g.Option33,z);Ga=new mxCell("",new mxGeometry(0,.6*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Ga.vertex=!0;v.insert(Ga);Ga.value=e(g.Option14);Ga.style+=c(g.Option14,z);vb=new mxCell("",new mxGeometry(.25*t,.6*r,.3*t,.2*r),"strokeColor=none;fillColor=none;");vb.vertex=!0;v.insert(vb);vb.value=e(g.Option24);vb.style+=c(g.Option24,z);xb=new mxCell("",new mxGeometry(.7*
|
|
|
|
|
t,.6*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");xb.vertex=!0;v.insert(xb);xb.value=e(g.Option34);xb.style+=c(g.Option34,z);Ha=new mxCell("",new mxGeometry(0,.8*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=e(g.Option15);Ha.style+=c(g.Option15,z);yb=new mxCell("",new mxGeometry(.25*t,.8*r,.3*t,.2*r),"strokeColor=none;fillColor=none;");yb.vertex=!0;v.insert(yb);yb.value=e(g.Option25);yb.style+=c(g.Option25,z);Na=new mxCell("",new mxGeometry(0,.4*r-2,t,4),
|
|
|
|
|
"shape=line;strokeColor=#888888;");Na.vertex=!0;v.insert(Na);Oa=new mxCell("",new mxGeometry(0,.6*r-2,t,4),"shape=line;strokeColor=#888888;");Oa.vertex=!0;v.insert(Oa);v.style+="strokeColor=none;";v.style+=a(v.style,g,k,v);break;case "iOSCountdownPicker":qb=new mxCell("",new mxGeometry(.45*t,0,.2*t,.2*r),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=e(g.Option31);qb.style+=c(g.Option31,z);tb=new mxCell("",new mxGeometry(.45*t,.2*r,.2*t,.2*r),"strokeColor=none;fillColor=none;");
|
|
|
|
|
tb.vertex=!0;v.insert(tb);tb.value=e(g.Option32);tb.style+=c(g.Option32,z);Da=new mxCell("",new mxGeometry(0,.4*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.value=e(g.Option13);Da.style+=c(g.Option13,z);Ea=new mxCell("",new mxGeometry(.2*t,.4*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Ea.vertex=!0;v.insert(Ea);Ea.value=e(g.Option23);Ea.style+=c(g.Option23,z);ub=new mxCell("",new mxGeometry(.45*t,.4*r,.2*t,.2*r),"strokeColor=none;fillColor=none;");ub.vertex=
|
|
|
|
|
!0;v.insert(ub);ub.value=e(g.Option33);ub.style+=c(g.Option33,z);Fa=new mxCell("",new mxGeometry(.6*t,.4*r,.2*t,.2*r),"strokeColor=none;fillColor=none;");Fa.vertex=!0;v.insert(Fa);Fa.value=e(g.Option43);Fa.style+=c(g.Option43,z);Ga=new mxCell("",new mxGeometry(0,.6*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Ga.vertex=!0;v.insert(Ga);Ga.value=e(g.Option14);Ga.style+=c(g.Option14,z);wb=new mxCell("",new mxGeometry(.45*t,.6*r,.2*t,.2*r),"strokeColor=none;fillColor=none;");wb.vertex=!0;v.insert(wb);
|
|
|
|
|
wb.value=e(g.Option34);wb.style+=c(g.Option34,z);Ha=new mxCell("",new mxGeometry(0,.8*r,.25*t,.2*r),"strokeColor=none;fillColor=none;");Ha.vertex=!0;v.insert(Ha);Ha.value=e(g.Option15);Ha.style+=c(g.Option15,z);zb=new mxCell("",new mxGeometry(.45*t,.8*r,.2*t,.2*r),"strokeColor=none;fillColor=none;");zb.vertex=!0;v.insert(zb);zb.value=e(g.Option35);zb.style+=c(g.Option35,z);Na=new mxCell("",new mxGeometry(0,.4*r-2,t,4),"shape=line;strokeColor=#888888;");Na.vertex=!0;v.insert(Na);Oa=new mxCell("",new mxGeometry(0,
|
|
|
|
|
.6*r-2,t,4),"shape=line;strokeColor=#888888;");Oa.vertex=!0;v.insert(Oa);v.style+="strokeColor=none;";v.style+=a(v.style,g,k,v);break;case "iOSBasicCell":v.value=e(g.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.6*g.SeparatorInset+";";v.style+=(z?"fontSize=11;":d(g.text)+y(g.text)+w(g.text))+N(g.text);v.style+=a(v.style,g,k,v,z);switch(g.AccessoryIndicatorType){case "Disclosure":ca=new mxCell("",new mxGeometry(.91*
|
|
|
|
|
t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);break;case "DetailDisclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);var qa=new mxCell("",new mxGeometry(.79*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);break;case "DetailIndicator":qa=new mxCell("",new mxGeometry(.87*t,.25*r,.5*r,
|
|
|
|
|
.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);break;case "CheckMark":ca=new mxCell("",new mxGeometry(.89*t,.37*r,.4*r,.26*r),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),ca.vertex=!0,v.insert(ca)}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*g.SeparatorInset+";";v.value=e(g.subtext);v.style+=
|
|
|
|
|
z?"fontSize=11;":d(g.subtext)+y(g.subtext)+w(g.subtext);v.style+=a(v.style,g,k,v,z);var sa=new mxCell("",new mxGeometry(0,.4*r,t,.6*r),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.6*g.SeparatorInset+";");sa.vertex=!0;v.insert(sa);sa.value=e(g.text);sa.style+=z?"html=1;fontSize=11;"+Aa:d(g.text)+h(g.text)+y(g.text)+w(g.text);switch(g.AccessoryIndicatorType){case "Disclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
|
|
|
|
|
ca.vertex=!0;v.insert(ca);break;case "DetailDisclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);qa=new mxCell("",new mxGeometry(.79*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);break;case "DetailIndicator":qa=new mxCell("",new mxGeometry(.87*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
|
|
|
|
|
qa.vertex=!0;v.insert(qa);break;case "CheckMark":ca=new mxCell("",new mxGeometry(.89*t,.37*r,.4*r,.26*r),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),ca.vertex=!0,v.insert(ca)}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*g.SeparatorInset+";";v.value=e(g.subtext);v.style+=z?"fontSize=11;":d(g.subtext)+y(g.subtext)+w(g.subtext);v.style+=a(v.style,
|
|
|
|
|
g,k,v,z);sa=null;switch(g.AccessoryIndicatorType){case "Disclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);sa=new mxCell("",new mxGeometry(.55*t,0,.3*t,r),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailDisclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);qa=new mxCell("",new mxGeometry(.79*
|
|
|
|
|
t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);sa=new mxCell("",new mxGeometry(.45*t,0,.3*t,r),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;case "DetailIndicator":qa=new mxCell("",new mxGeometry(.87*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);sa=new mxCell("",new mxGeometry(.52*t,0,.3*t,r),"fillColor=none;strokeColor=none;spacing=0;align=right;");
|
|
|
|
|
break;case "CheckMark":ca=new mxCell("",new mxGeometry(.89*t,.37*r,.4*r,.26*r),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;");ca.vertex=!0;v.insert(ca);sa=new mxCell("",new mxGeometry(.55*t,0,.3*t,r),"fillColor=none;strokeColor=none;spacing=0;align=right;");break;default:sa=new mxCell("",new mxGeometry(.65*t,0,.3*t,r),"fillColor=none;strokeColor=none;spacing=0;align=right;")}sa.vertex=!0;v.insert(sa);sa.value=e(g.text);sa.style+=z?"html=1;fontSize=11;"+Aa:d(g.text)+h(g.text)+
|
|
|
|
|
y(g.text)+w(g.text);break;case "iOSLeftDetailCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;";v.style+=a(v.style,g,k,v);var db=new mxCell("",new mxGeometry(0,0,.25*t,r),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");db.vertex=!0;v.insert(db);db.value=e(g.subtext);db.style+=z?"html=1;fontSize=11;"+Aa:d(g.subtext)+h(g.subtext)+y(g.subtext)+w(g.subtext);sa=new mxCell("",new mxGeometry(.25*t,0,.5*t,r),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");
|
|
|
|
|
sa.vertex=!0;v.insert(sa);sa.value=e(g.text);sa.style+=z?"html=1;fontSize=11;"+Aa:d(g.text)+h(g.text)+y(g.text)+w(g.text);switch(g.AccessoryIndicatorType){case "Disclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);break;case "DetailDisclosure":ca=new mxCell("",new mxGeometry(.91*t,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");ca.vertex=!0;v.insert(ca);qa=new mxCell("",new mxGeometry(.79*
|
|
|
|
|
t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);break;case "DetailIndicator":qa=new mxCell("",new mxGeometry(.87*t,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");qa.vertex=!0;v.insert(qa);break;case "CheckMark":ca=new mxCell("",new mxGeometry(.89*t,.37*r,.4*r,.26*r),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),ca.vertex=!0,v.insert(ca)}break;case "iOSTableGroupedSectionBreak":v.style+=
|
|
|
|
|
"shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";W=new mxCell("",new mxGeometry(0,0,t,.4*r),"fillColor=none;strokeColor=none;spacing=10;align=left;");W.vertex=!0;v.insert(W);W.value=e(g.text);W.style+=z?"html=1;fontSize=11;"+Aa:d(g.text)+h(g.text)+y(g.text)+w(g.text);Pa=new mxCell("",new mxGeometry(0,.6*r,t,.4*r),"fillColor=none;strokeColor=none;spacing=10;align=left;");Pa.vertex=!0;v.insert(Pa);Pa.value=e(g["bottom-text"]);Pa.style+=z?"html=1;fontSize=11;"+Aa:d(g["bottom-text"])+
|
|
|
|
|
h(g["bottom-text"])+y(g["bottom-text"])+w(g["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=e(g.text);v.style+=z?"fontSize=11;":d(g.text)+y(g.text)+w(g.text);v.style+=a(v.style,g,k,v,z);break;case "SMPage":if(g.Group){v.style+="strokeColor=none;fillColor=none;";var q=new mxCell("",new mxGeometry(0,0,.9*t,.9*r),"rounded=1;arcSize=3;part=1;");q.vertex=!0;v.insert(q);q.style+=G(g,k)+aa(g,k)+R(g,k,q)+pa(g)+
|
|
|
|
|
cc(g);var x=new mxCell("",new mxGeometry(.1*t,.1*r,.9*t,.9*r),"rounded=1;arcSize=3;part=1;");x.vertex=!0;v.insert(x);x.value=e(g.Text);x.style+=G(g,k)+aa(g,k)+R(g,k,x)+pa(g)+cc(g)+c(g,z);g.Future&&(q.style+="dashed=1;fixDash=1;",x.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",g.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=e(g.Text),v.style+=G(g,k)+aa(g,k)+R(g,k,v)+pa(g)+cc(g)+c(g,z);v.style+=a(v.style,g,k,v,z);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":q=
|
|
|
|
|
null;switch(b.Class){case "SMHome":q=new mxCell("",new mxGeometry(.5*t-.4*r,.1*r,.8*r,.8*r),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMPrint":q=new mxCell("",new mxGeometry(.5*t-.4*r,.19*r,.8*r,.62*r),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":q=new mxCell("",new mxGeometry(.5*t-.4*r,.1*r,.8*r,.8*r),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
|
break;case "SMSettings":q=new mxCell("",new mxGeometry(.5*t-.35*r,.15*r,.7*r,.7*r),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSitemap":q=new mxCell("",new mxGeometry(.5*t-.35*r,.2*r,.7*r,.6*r),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":q=new mxCell("",new mxGeometry(.5*t-.3*r,.25*r,.6*r,.5*r),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
|
break;case "SMVideo":q=new mxCell("",new mxGeometry(.5*t-.4*r,.2*r,.8*r,.6*r),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMAudio":q=new mxCell("",new mxGeometry(.5*t-.3*r,.2*r,.6*r,.6*r),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":q=new mxCell("",new mxGeometry(.5*t-.4*r,.15*r,.8*r,.7*r),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
|
break;case "SMChart":var J=aa(g,k),J=""==J?"#ffffff;":J.replace("fillColor=",""),q=new mxCell("",new mxGeometry(.5*t-.35*r,.15*r,.7*r,.7*r),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+J);break;case "SMCloud":q=new mxCell("",new mxGeometry(.5*t-.4*r,.27*r,.8*r,.46*r),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":q=new mxCell("",new mxGeometry(.5*t-.25*r,.15*r,.5*r,.7*r),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
|
break;case "SMForm":q=new mxCell("",new mxGeometry(.5*t-.4*r,.15*r,.8*r,.7*r),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMGame":q=new mxCell("",new mxGeometry(.5*t-.4*r,.2*r,.8*r,.6*r),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":q=new mxCell("",new mxGeometry(.5*t-.4*r,.2*r,.8*r,.6*r),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}q.vertex=
|
|
|
|
|
!0;v.insert(q);q.value=e(g.Text);q.style+=c(g,z);v.style+=a(v.style,g,k,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";q=new mxCell("",new mxGeometry(.1*t,0,.9*t,.9*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=a(q.style,g,k,q);x=new mxCell("",new mxGeometry(0,.1*r,.9*t,.9*r),"part=1;");x.vertex=!0;v.insert(x);x.value=e(g.Text);x.style+=c(g.Text,z);x.style+=a(x.style,g,k,x,z);break;case "UMLConstraintBlock":var Ob=new mxCell("",new mxGeometry(0,0,.25*r,r),"shape=curlyBracket;rounded=1;");
|
|
|
|
|
Ob.vertex=!0;v.insert(Ob);var Pb=new mxCell("",new mxGeometry(t-.25*r,0,.25*r,r),"shape=curlyBracket;rounded=1;flipH=1;");Pb.vertex=!0;v.insert(Pb);ia=new mxCell("",new mxGeometry(.25*r,0,t-.5*r,r),"strokeColor=none;fillColor=none;");ia.vertex=!0;ia.value=e(g);v.insert(ia);v.style="strokeColor=none;fillColor=none;";v.style+=a(v.style,g,k,v);Ob.style+=R(g,k,Ob);Pb.style+=R(g,k,Pb);ia.style+=y(g,ia);Ob.style+=a(Ob.style,g,k,Ob);Pb.style+=a(Pb.style,g,k,Pb);ia.style+=a(ia.style,g,k,ia,z);break;case "UMLTextBlock":v.value=
|
|
|
|
|
e(g.Text);v.style+="strokeColor=none;"+c(g.Text,z);v.style+=a(v.style,g,k,v,z);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":var Ab=U(g,k,v);g.Rotatio=null;var eb=a(v.style,g,k,v,z);-1==eb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(eb=mxConstants.STYLE_STROKEWIDTH+"=1;"+eb);v.style="group;dropTarget=0;"+Ab;var ud=.8*t,Pd=t-ud,jc=new mxCell("",new mxGeometry(.2,0,ud,r),"shape=ellipse;"+eb);jc.vertex=!0;jc.geometry.relative=!0;v.insert(jc);ha=new mxCell("",new mxGeometry(0,
|
|
|
|
|
.5,Pd,1),"line;"+eb);ha.geometry.relative=!0;ha.vertex=!0;v.insert(ha);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=e(g);v.style="html=1;dropTarget=0;"+a(v.style,g,k,v,z);var Ba=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");Ba.geometry.relative=!0;Ba.geometry.offset=new mxPoint(-20,5);Ba.vertex=!0;v.insert(Ba);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":Ab=U(g,k,v);g.Rotatio=null;eb=a(v.style,g,k,v,z);
|
|
|
|
|
-1==eb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(eb=mxConstants.STYLE_STROKEWIDTH+"=1;"+eb);v.style="group;dropTarget=0;"+Ab;var Ae=.225*t,Be=.1*t,ud=t-Ae-Be,jc=new mxCell("",new mxGeometry(.225,0,ud,r),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+eb);jc.vertex=!0;jc.geometry.relative=!0;v.insert(jc);Na=new mxCell("",new mxGeometry(0,.5,Ae,1),"line;"+eb);Na.geometry.relative=!0;Na.vertex=!0;v.insert(Na);Oa=new mxCell("",new mxGeometry(.9,.5,Be,1),"line;"+eb);Oa.geometry.relative=
|
|
|
|
|
!0;Oa.vertex=!0;v.insert(Oa);break;case "BPMNActivity":v.value=e(g.Text);switch(g.bpmnActivityType){case 1:v.style+=c(g.Text,z);break;case 2:v.style+="shape=ext;double=1;"+c(g.Text,z);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+c(g.Text,z);break;case 4:v.style+="shape=ext;strokeWidth=2;"+c(g.Text,z)}if(0!=g.bpmnTaskType){switch(g.bpmnTaskType){case 1:q=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");q.geometry.offset=new mxPoint(4,7);break;case 2:q=new mxCell("",new mxGeometry(0,
|
|
|
|
|
0,19,12),"shape=message;");q.geometry.offset=new mxPoint(4,7);break;case 3:q=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");q.geometry.offset=new mxPoint(4,5);break;case 4:q=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");q.geometry.offset=new mxPoint(4,7);break;case 5:q=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");q.geometry.offset=new mxPoint(4,7);break;case 6:q=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");
|
|
|
|
|
q.geometry.offset=new mxPoint(4,5);break;case 7:q=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),q.geometry.offset=new mxPoint(4,5)}if(1==g.bpmnTaskType){var kc=aa(g,k),J=G(g,k),J=J.replace("strokeColor","fillColor"),kc=kc.replace("fillColor","strokeColor");""==J&&(J="fillColor=#000000;");""==kc&&(kc="strokeColor=#ffffff;");q.style+=kc+J+"part=1;"}else q.style+=aa(g,k)+G(g,k)+"part=1;";q.geometry.relative=!0;q.vertex=!0;v.insert(q)}var ed=0;0!=g.bpmnActivityMarker1&&ed++;
|
|
|
|
|
0!=g.bpmnActivityMarker2&&ed++;var Qa=0;1==ed?Qa=-7.5:2==ed&&(Qa=-19);if(0!=g.bpmnActivityMarker1){switch(g.bpmnActivityMarker1){case 1:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 2:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 3:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");
|
|
|
|
|
q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 4:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 5:q=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");q.geometry.offset=new mxPoint(Qa,-17);J=G(g,k);J=J.replace("strokeColor","fillColor");""==J&&(J="fillColor=#000000;");q.style+=J;break;case 6:q=new mxCell("",
|
|
|
|
|
new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),q.geometry.offset=new mxPoint(Qa,-18),q.style+=aa(g,k)+G(g,k)}q.geometry.relative=!0;q.vertex=!0;v.insert(q)}2==ed&&(Qa=5);if(0!=g.bpmnActivityMarker2){switch(g.bpmnActivityMarker2){case 1:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 2:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");q.geometry.offset=new mxPoint(Qa,
|
|
|
|
|
-20);q.style+=aa(g,k)+G(g,k);break;case 3:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 4:q=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");q.geometry.offset=new mxPoint(Qa,-20);q.style+=aa(g,k)+G(g,k);break;case 5:q=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");q.geometry.offset=new mxPoint(Qa,-17);
|
|
|
|
|
J=G(g,k);J=J.replace("strokeColor","fillColor");""==J&&(J="fillColor=#000000;");q.style+=J;break;case 6:q=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),q.geometry.offset=new mxPoint(Qa,-18),q.style+=aa(g,k)+G(g,k)}q.geometry.relative=!0;q.vertex=!0;v.insert(q)}v.style+=a(v.style,g,k,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";v.value=e(g.Text);if(1==g.bpmnDashed)switch(g.bpmnEventGroup){case 0:v.style+=
|
|
|
|
|
"outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(g.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+="outline=end;"}switch(g.bpmnEventType){case 1:v.style+="symbol=message;";break;case 2:v.style+="symbol=timer;";break;case 3:v.style+="symbol=escalation;";break;case 4:v.style+="symbol=conditional;";break;case 5:v.style+="symbol=link;";break;case 6:v.style+="symbol=error;";
|
|
|
|
|
break;case 7:v.style+="symbol=cancel;";break;case 8:v.style+="symbol=compensation;";break;case 9:v.style+="symbol=signal;";break;case 10:v.style+="symbol=multiple;";break;case 11:v.style+="symbol=parallelMultiple;";break;case 12:v.style+="symbol=terminate;"}v.style+=a(v.style,g,k,v,z);break;case "BPMNChoreography":try{var O=Z(g.FillColor),Qd=Rd(O,.75),Yb=d(g.Name).match(/\d+/),ta=Math.max(mxUtils.getSizeForString(g.Name.t,Yb?Yb[0]:"11",null,t-10).height,24),O="swimlaneFillColor="+Qd+";";v.value=e(g.Name);
|
|
|
|
|
v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+O+"startSize="+ta+";spacingLeft=3;spacingRight=3;fontStyle=0;"+c(g.Name,z);v.style+=a(v.style,g,k,v,z);var fb=ta,Yb=d(g.TaskName).match(/\d+/),Bb=g.TaskHeight?.6*g.TaskHeight:Math.max(mxUtils.getSizeForString(g.TaskName.t,Yb?Yb[0]:"11",null,t-10).height+15,24),Qb=new mxCell("",new mxGeometry(0,fb,t,Bb),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");
|
|
|
|
|
Qb.value=e(g.TaskName);Qb.vertex=!0;v.insert(Qb);Qb.style+=c(g.TaskName,z);Qb.style+=a(Qb.style,g,k,Qb,z);fb+=Bb;I=[];for(l=0;l<g.Fields;l++){var vd=g["Participant"+(l+1)],Yb=d(vd).match(/\d+/),Bb=Math.max(mxUtils.getSizeForString(vd.t,Yb?Yb[0]:"11",null,t-10).height,24);I[l]=new mxCell("",new mxGeometry(0,fb,t,Bb),"part=1;html=1;resizeHeight=0;fillColor=none;spacingTop=-1;spacingLeft=3;spacingRight=3;");fb+=Bb;I[l].vertex=!0;v.insert(I[l]);I[l].style+=c(vd,z);I[l].style+=a(I[l].style,g,k,I[l],z);
|
|
|
|
|
I[l].value=e(vd)}}catch(Xa){console.log(Xa)}break;case "BPMNConversation":v.style+="shape=hexagon;perimeter=hexagonPerimeter2;";v.value=e(g.Text);v.style=0==g.bpmnConversationType?v.style+cc(g):v.style+"strokeWidth=2;";g.bpmnIsSubConversation&&(q=new mxCell("",new mxGeometry(.5,1,12,12),"shape=plus;part=1;"),q.geometry.offset=new mxPoint(-6,-17),q.style+=aa(g,k)+G(g,k),q.geometry.relative=!0,q.vertex=!0,v.insert(q));v.style+=a(v.style,g,k,v,z);break;case "BPMNGateway":v.style+="shape=mxgraph.bpmn.shape;perimeter=rhombusPerimeter;background=gateway;verticalLabelPosition=bottom;verticalAlign=top;";
|
|
|
|
|
switch(g.bpmnGatewayType){case 0:v.style+="outline=none;symbol=general;";break;case 1:v.style+="outline=none;symbol=exclusiveGw;";break;case 2:v.style+="outline=catching;symbol=multiple;";break;case 3:v.style+="outline=none;symbol=parallelGw;";break;case 4:v.style+="outline=end;symbol=general;";break;case 5:v.style+="outline=standard;symbol=multiple;";break;case 6:v.style+="outline=none;symbol=complexGw;";break;case 7:v.style+="outline=standard;symbol=parallelMultiple;"}v.style+=a(v.style,g,k,v);
|
|
|
|
|
v.value=e(g.Text);v.style+=c(g,z);break;case "BPMNData":v.style+="shape=note;size=14;";switch(g.bpmnDataType){case 1:q=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");q.geometry.offset=new mxPoint(-6,-15);q.style+=aa(g,k)+G(g,k);q.geometry.relative=!0;q.vertex=!0;v.insert(q);break;case 2:q=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");q.geometry.offset=new mxPoint(3,3);q.style+=aa(g,k)+G(g,k);q.geometry.relative=!0;q.vertex=
|
|
|
|
|
!0;v.insert(q);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";W=new mxCell("",new mxGeometry(0,0,t,20),"strokeColor=none;fillColor=none;");W.geometry.offset=new mxPoint(0,14);W.geometry.relative=!0;W.vertex=!0;v.insert(W);W.value=e(g.Text);W.style+=c(g,z);break;case 3:q=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),q.geometry.offset=new mxPoint(3,3),q.style+=G(g,k),q.geometry.relative=!0,q.vertex=!0,v.insert(q),J=G(g,k),J=J.replace("strokeColor",
|
|
|
|
|
"fillColor"),""==J&&(J="fillColor=#000000;"),q.style+=J,W=new mxCell("",new mxGeometry(0,0,t,20),"strokeColor=none;fillColor=none;"),W.geometry.offset=new mxPoint(0,14),W.geometry.relative=!0,W.vertex=!0,v.insert(W),W.value=e(g.Text),W.style+=c(g,z)}v.style+=a(v.style,g,k,v);break;case "BPMNBlackPool":v.value=e(g.Text);v.style+=a(v.style,g,k,v,z);q=new mxCell("",new mxGeometry(0,0,t,r),"fillColor=#000000;strokeColor=none;opacity=30;");q.vertex=!0;v.insert(q);break;case "DFDExternalEntityBlock":v.style+=
|
|
|
|
|
"strokeColor=none;fillColor=none;";v.style+=a(v.style,g,k,v);q=new mxCell("",new mxGeometry(0,0,.95*t,.95*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=a(q.style,g,k,q);x=new mxCell("",new mxGeometry(.05*t,.05*r,.95*t,.95*r),"part=1;");x.vertex=!0;v.insert(x);x.value=e(g.Text);x.style+=c(g.Text,z);x.style+=a(x.style,g,k,x,z);break;case "GSDFDDataStoreBlock":v.value=e(g.Text);v.style+="shape=partialRectangle;right=0;"+c(g.Text,z);v.style+=a(v.style,g,k,v,z);q=new mxCell("",new mxGeometry(0,0,.2*t,
|
|
|
|
|
r),"part=1;");q.vertex=!0;v.insert(q);q.value=e(g.Number);q.style+=c(g.Number,z);q.style+=a(q.style,g,k,q,z);break;case "DefaultTableBlock":try{for(var fc=g.RowHeights.length,gc=g.ColWidths.length,wd=[],fd=[],l=0;l<fc;l++)wd[l]=.6*g.RowHeights[l];for(P=0;P<gc;P++)fd[P]=.6*g.ColWidths[P];v.style="group;dropTarget=0;";var Yd=g.BandedColor1,Zd=g.BandedColor2,ff=g.BandedRows,Ce=g.BandedCols,xd=g.HideH,gf=g.HideV,De=g.TextVAlign,Ee=g.FillColor,Fe=g.StrokeStyle;delete g.StrokeStyle;for(var hf=Wa(Ee,"fillOpacity"),
|
|
|
|
|
Ge=g.LineColor,jf=Wa(Ge,"strokeOpacity"),Y=0,gd={},l=0;l<fc;l++){n=0;r=wd[l];for(P=0;P<gc;P++){var Ya=l+","+P;if(gd[Ya])n+=fd[P];else{for(var za=g["CellFill_"+Ya],$d=g["NoBand_"+Ya],yd=g["CellSize_"+Ya],Cb=g["Cell_"+Ya],He=g["Cell_"+Ya+"_VAlign"],kf=g["Cell_"+Ya+"_TRotation"],lf=g["CellBorderWidthH_"+Ya],mf=g["CellBorderColorH_"+Ya],nf=g["CellBorderStrokeStyleH_"+Ya],of=g["CellBorderWidthV_"+Ya],pf=g["CellBorderColorV_"+Ya],qf=g["CellBorderStrokeStyleV_"+Ya],Ie=xd?pf:mf,Je=Wa(Ie,"strokeOpacity"),
|
|
|
|
|
Ke=xd?of:lf,lc=xd?qf:nf,za=ff&&!$d?0==l%2?Yd:Ce&&!$d?0==P%2?Yd:Zd:Zd:Ce&&!$d?0==P%2?Yd:Zd:za,rf=Wa(za,"fillOpacity")||hf,t=fd[P],Le=r,wc=t,gb=l+1;gb<l+yd.h;gb++)if(null!=wd[gb]){Le+=wd[gb];gd[gb+","+P]=!0;for(var mc=P+1;mc<P+yd.w;mc++)gd[mc+","+P]=!0}for(gb=P+1;gb<P+yd.w;gb++)if(null!=fd[gb])for(wc+=fd[gb],gd[l+","+gb]=!0,mc=l+1;mc<l+yd.h;mc++)gd[mc+","+gb]=!0;var Q=new mxCell("",new mxGeometry(n,Y,wc,Le),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(gf?"left=0;right=0;":"")+(xd?
|
|
|
|
|
"top=0;bottom=0;":"")+$a(mxConstants.STYLE_FILLCOLOR,Z(za),Z(Ee))+$a(mxConstants.STYLE_STROKECOLOR,Z(Ie),Z(Ge))+(null!=Ke?$a(mxConstants.STYLE_STROKEWIDTH,Math.round(.6*parseFloat(Ke)),"1"):"")+(Je?Je:jf)+rf+"verticalAlign="+(He?He:De?De:"middle")+";"+vc({StrokeStyle:lc?lc:Fe?Fe:"solid"})+(kf?"horizontal=0;":""));Q.vertex=!0;Q.value=e(Cb);Q.style+=a(Q.style,g,k,Q,z)+(z?"fontSize=11;":d(Cb)+y(Cb)+w(Cb)+C(Cb,Q)+B(Cb)+D(Cb)+A(Cb)+E(Cb))+H(Cb)+N(Cb);v.insert(Q);n+=t}}Y+=r}}catch(Xa){}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+=
|
|
|
|
|
"shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==b.Class?v.value=e(g.Text):"VSMProductionControlBlock"==b.Class&&(v.value=e(g.Resources));v.style+=a(v.style,g,k,v,z);"VSMDedicatedProcessBlock"==b.Class&&(q=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),q.geometry.relative=!0,q.geometry.offset=new mxPoint(4,-13),q.vertex=!0,v.insert(q),q.style+=a(q.style,g,k,q));W=new mxCell("",new mxGeometry(0,0,t,15),"strokeColor=none;fillColor=none;part=1;");
|
|
|
|
|
W.vertex=!0;v.insert(W);W.value=e(g.Title);W.style+=c(g.Title,z);g.Text=null;break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=e(g.Text);v.style+=a(v.style,g,k,v,z);W=new mxCell("",new mxGeometry(.1*t,.3*r,.8*t,.6*r),"part=1;");W.vertex=!0;v.insert(W);W.value=e(g.Resource);W.style+=c(g.Resource,z);W.style+=a(W.style,g,k,W,z);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";
|
|
|
|
|
v.value=e(g.Text);v.style+=a(v.style,g,k,v,z);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=a(v.style,g,k,v);Ia=r;mb=parseInt(g.Cells);O=a("part=1;",g,k,v);0<mb&&(Ia/=mb);I=[];ha=[];for(l=1;l<=mb;l++)I[l]=new mxCell("",new mxGeometry(0,(l-1)*Ia,t,Ia),O),I[l].vertex=!0,v.insert(I[l]),I[l].value=e(g["cell_"+l]),I[l].style+=c(g["cell_"+l],z);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";
|
|
|
|
|
v.value=e(g.Text);v.style+=a(v.style,g,k,v,z);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=a(v.style,g,k,v);Ia=r;mb=parseInt(g.Cells);O=a("part=1;fillColor=none;",g,k,v);0<mb&&(Ia/=mb);I=[];db=[];for(l=1;l<=mb;l++)I[l]=new mxCell("",new mxGeometry(.5*t,(l-1)*Ia,.5*t,Ia),"shape=partialRectangle;left=0;"+O),I[l].vertex=!0,v.insert(I[l]),db[l]=new mxCell("",new mxGeometry(0,(l-1)*Ia,t,Ia),"strokeColor=none;fillColor=none;part=1;"),db[l].vertex=!0,v.insert(db[l]),db[l].value=
|
|
|
|
|
e(g["cell_"+l]),db[l].style+=c(g["cell_"+l],z);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.style+=a(v.style,g,k,v);v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=e(g.Text);v.style+=a(v.style,g,k,v,z);q=new mxCell("",new mxGeometry(.17*t,.2*r,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");q.vertex=!0;v.insert(q);
|
|
|
|
|
q.style+=a(q.style,g,k,q);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";O="shape=card;size=18;flipH=1;part=1;";q=new mxCell("",new mxGeometry(.1*t,0,.9*t,.8*r),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+O);q.vertex=!0;v.insert(q);q.style+=a(q.style,g,k,q);x=new mxCell("",new mxGeometry(.05*t,.1*r,.9*t,.8*r),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+O);x.vertex=!0;v.insert(x);x.style+=a(x.style,
|
|
|
|
@ -268,17 +268,17 @@ Ba[l].style+=J)),null!=g["Shortcut_"+(l+1)]&&(null==O&&(O=""+d(g["Shortcut_"+(l+
|
|
|
|
|
G(g,k));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*g.ScrollVal+";";break;case "CalloutSquareBlock":case "UI2TooltipSquareBlock":v.value=e(g.Tip||g.Text);v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+g.RoundCorners+";"+c(g.Tip||g.Text,z);v.style+=a(v.style,g,k,v,z);v.geometry.height+=10;break;case "UI2CalloutBlock":v.value=e(g.Txt);v.style+="shape=ellipse;perimeter=ellipsePerimeter;"+
|
|
|
|
|
c(g.Txt,z);v.style+=a(v.style,g,k,v,z);break;case "UI2AlertBlock":v.value=e(g.Txt);v.style+=c(g.Txt,z);v.style+=a(v.style,g,k,v,z);q=new mxCell("",new mxGeometry(0,0,t,30),"part=1;resizeHeight=0;");q.vertex=!0;v.insert(q);q.value=e(g.Title);q.style+=c(g.Title,z);q.style+=a(q.style,g,k,q,z);x=new mxCell("",new mxGeometry(1,.5,20,20),"ellipse;part=1;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");x.geometry.relative=!0;x.geometry.offset=new mxPoint(-25,-10);x.vertex=!0;q.insert(x);for(var uf=
|
|
|
|
|
45*g.Buttons+(10*g.Buttons-1),F=[],l=0;l<g.Buttons;l++)F[l]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),F[l].geometry.relative=!0,F[l].geometry.offset=new mxPoint(.5*-uf+55*l,-40),F[l].vertex=!0,v.insert(F[l]),F[l].value=e(g["Button_"+(l+1)]),F[l].style+=c(g["Button_"+(l+1)],z),F[l].style+=a(F[l].style,g,k,F[l],z);break;case "UMLClassBlock":if(0==g.Simple){O=aa(g,k);ta=Math.round(.6*g.TitleHeight)||25;O=O.replace("fillColor","swimlaneFillColor");""==O&&(O="swimlaneFillColor=#ffffff;");
|
|
|
|
|
v.value=e(g.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+O+"startSize="+ta+";"+c(g.Title,z);v.style+=a(v.style,g,k,v,z);for(var I=[],ge=[],Ja=ta/r,fb=ta,l=0;l<=g.Attributes;l++)0<l&&(ge[l]=new mxCell("",new mxGeometry(0,fb,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),
|
|
|
|
|
v.value=e(g.Title);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+O+"startSize="+ta+";"+c(g.Title,z);v.style+=a(v.style,g,k,v,z);for(var I=[],ge=[],Ja=ta/r,fb=ta,l=0;l<=g.Attributes;l++)0<l&&(ge[l]=new mxCell("",new mxGeometry(0,fb,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),
|
|
|
|
|
fb+=8,ge[l].vertex=!0,v.insert(ge[l])),M=0,0==g.Attributes?M=l=1:l<g.Attributes?(M=g["Text"+(l+1)+"Percent"],Ja+=M):M=1-Ja,Bb=Math.round((r-ta)*M)+(g.ExtraHeightSet&&1==l?.6*g.ExtraHeight:0),I[l]=new mxCell("",new mxGeometry(0,fb,t,Bb),"part=1;html=1;resizeHeight=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),fb+=Bb,I[l].vertex=!0,v.insert(I[l]),I[l].style+=O+R(g,k,I[l])+
|
|
|
|
|
d(g["Text"+(l+1)])+y(g["Text"+(l+1)])+w(g["Text"+(l+1)]),I[l].value=e(g["Text"+(l+1)])}else v.value=e(g.Title),v.style+=c(g.Title,z),v.style+=a(v.style,g,k,v,z);break;case "ERDEntityBlock":O=aa(g,k);ta=.6*g.Name_h;O=O.replace("fillColor","swimlaneFillColor");""==O&&(O="swimlaneFillColor=#ffffff;");v.value=e(g.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+O+"startSize="+ta+";"+c(g.Name,z);
|
|
|
|
|
v.style+=a(v.style,g,k,v,z);v.style=g.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+aa(g,k);I=[];Ja=ta/r;fb=ta;for(l=0;l<g.Fields;l++)M=0,Bb=.6*g["Field"+(l+1)+"_h"],I[l]=new mxCell("",new mxGeometry(0,fb,t,Bb),"part=1;resizeHeight=0;strokeColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;"),fb+=Bb,I[l].vertex=!0,v.insert(I[l]),I[l].style+=O+d(g["Field"+(l+1)])+y(g["Field"+(l+1)])+w(g["Field"+
|
|
|
|
|
(l+1)]),I[l].style=1==g.AltRows&&0!=l%2?I[l].style+"fillColor=#000000;opacity=5;":I[l].style+("fillColor=none;"+R(g,k,I[l])),I[l].value=e(g["Field"+(l+1)]);break;case "ERDEntityBlock2":O=aa(g,k);ta=.6*g.Name_h;O=O.replace("fillColor","swimlaneFillColor");""==O&&(O="swimlaneFillColor=#ffffff;");v.value=e(g.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+O+"startSize="+ta+";"+c(g.Name,z);v.style=g.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+
|
|
|
|
|
aa(g,k);v.style+=a(v.style,g,k,v,z);var I=[],da=[],Ja=ta,Ua=30;null!=g.Column1&&(Ua=.6*g.Column1);for(l=0;l<g.Fields;l++)M=0,da[l]=new mxCell("",new mxGeometry(0,Ja,Ua,.6*g["Key"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;"),da[l].vertex=!0,v.insert(da[l]),da[l].style+=O+d(g["Key"+(l+1)])+y(g["Key"+(l+1)])+w(g["Key"+(l+1)]),da[l].style=1==g.AltRows&&
|
|
|
|
|
0!=l%2?da[l].style+"fillColor=#000000;fillOpacity=5;":da[l].style+("fillColor=none;"+R(g,k,da[l])),da[l].value=e(g["Key"+(l+1)]),I[l]=new mxCell("",new mxGeometry(Ua,Ja,t-Ua,.6*g["Field"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;"),I[l].vertex=!0,v.insert(I[l]),I[l].style+=O+d(g["Field"+(l+1)])+y(g["Field"+(l+1)])+w(g["Field"+
|
|
|
|
|
(l+1)]),v.style+=a(v.style,g,k,v),I[l].style=1==g.AltRows&&0!=l%2?I[l].style+"fillColor=#000000;fillOpacity=5;":I[l].style+("fillColor=none;"+R(g,k,I[l])),I[l].value=e(g["Field"+(l+1)]),Ja+=.6*g["Key"+(l+1)+"_h"];break;case "ERDEntityBlock3":O=aa(g,k);ta=.6*g.Name_h;O=O.replace("fillColor","swimlaneFillColor");""==O&&(O="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+O+"startSize="+ta+";"+c(g.Name);v.style=g.ShadedHeader?
|
|
|
|
|
v.style+"fillColor=#e0e0e0;":v.style+aa(g,k);v.value=e(g.Name);v.style+=a(v.style,g,k,v,z);I=[];da=[];Ja=ta;Ua=30;null!=g.Column1&&(Ua=.6*g.Column1);for(l=0;l<g.Fields;l++)M=0,da[l]=new mxCell("",new mxGeometry(0,Ja,Ua,.6*g["Field"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),da[l].vertex=!0,v.insert(da[l]),da[l].style+=O+d(g["Field"+(l+1)])+y(g["Field"+
|
|
|
|
|
(l+1)])+w(g["Field"+(l+1)]),da[l].style=1==g.AltRows&&0!=l%2?da[l].style+"fillColor=#000000;fillOpacity=5;":da[l].style+("fillColor=none;"+R(g,k,da[l])),da[l].value=e(g["Field"+(l+1)]),da[l].style+=a(da[l].style,g,k,da[l],z),I[l]=new mxCell("",new mxGeometry(Ua,Ja,t-Ua,.6*g["Type"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
|
|
|
|
|
I[l].vertex=!0,v.insert(I[l]),I[l].style+=O+d(g["Type"+(l+1)])+y(g["Type"+(l+1)])+w(g["Type"+(l+1)]),I[l].style=1==g.AltRows&&0!=l%2?I[l].style+"fillColor=#000000;fillOpacity=5;":I[l].style+("fillColor=none;"+R(g,k,I[l])),I[l].value=e(g["Type"+(l+1)]),I[l].style+=a(I[l].style,g,k,I[l],z),Ja+=.6*g["Field"+(l+1)+"_h"];break;case "ERDEntityBlock4":O=aa(g,k);ta=.6*g.Name_h;O=O.replace("fillColor","swimlaneFillColor");""==O&&(O="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+
|
|
|
|
|
d(g["Text"+(l+1)])+y(g["Text"+(l+1)])+w(g["Text"+(l+1)]),I[l].value=e(g["Text"+(l+1)])}else v.value=e(g.Title),v.style+=c(g.Title,z),v.style+=a(v.style,g,k,v,z);break;case "ERDEntityBlock":O=aa(g,k);ta=.6*g.Name_h;O=O.replace("fillColor","swimlaneFillColor");""==O&&(O="swimlaneFillColor=#ffffff;");v.value=e(g.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+O+"startSize="+ta+";"+
|
|
|
|
|
c(g.Name,z);v.style+=a(v.style,g,k,v,z);v.style=g.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+aa(g,k);I=[];Ja=ta/r;fb=ta;for(l=0;l<g.Fields;l++)M=0,Bb=.6*g["Field"+(l+1)+"_h"],I[l]=new mxCell("",new mxGeometry(0,fb,t,Bb),"part=1;resizeHeight=0;strokeColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;"),fb+=Bb,I[l].vertex=!0,v.insert(I[l]),I[l].style+=O+d(g["Field"+(l+1)])+y(g["Field"+(l+1)])+
|
|
|
|
|
w(g["Field"+(l+1)]),I[l].style=1==g.AltRows&&0!=l%2?I[l].style+"fillColor=#000000;opacity=5;":I[l].style+("fillColor=none;"+R(g,k,I[l])),I[l].value=e(g["Field"+(l+1)]);break;case "ERDEntityBlock2":O=aa(g,k);ta=.6*g.Name_h;O=O.replace("fillColor","swimlaneFillColor");""==O&&(O="swimlaneFillColor=#ffffff;");v.value=e(g.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;fontStyle=0;"+O+"startSize="+ta+";"+c(g.Name,z);v.style=g.ShadedHeader?v.style+"fillColor=#e0e0e0;":
|
|
|
|
|
v.style+aa(g,k);v.style+=a(v.style,g,k,v,z);var I=[],da=[],Ja=ta,Ua=30;null!=g.Column1&&(Ua=.6*g.Column1);for(l=0;l<g.Fields;l++)M=0,da[l]=new mxCell("",new mxGeometry(0,Ja,Ua,.6*g["Key"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;"),da[l].vertex=!0,v.insert(da[l]),da[l].style+=O+d(g["Key"+(l+1)])+y(g["Key"+(l+1)])+w(g["Key"+(l+1)]),da[l].style=1==
|
|
|
|
|
g.AltRows&&0!=l%2?da[l].style+"fillColor=#000000;fillOpacity=5;":da[l].style+("fillColor=none;"+R(g,k,da[l])),da[l].value=e(g["Key"+(l+1)]),I[l]=new mxCell("",new mxGeometry(Ua,Ja,t-Ua,.6*g["Field"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;html=1;"),I[l].vertex=!0,v.insert(I[l]),I[l].style+=O+d(g["Field"+(l+1)])+y(g["Field"+
|
|
|
|
|
(l+1)])+w(g["Field"+(l+1)]),v.style+=a(v.style,g,k,v),I[l].style=1==g.AltRows&&0!=l%2?I[l].style+"fillColor=#000000;fillOpacity=5;":I[l].style+("fillColor=none;"+R(g,k,I[l])),I[l].value=e(g["Field"+(l+1)]),Ja+=.6*g["Key"+(l+1)+"_h"];break;case "ERDEntityBlock3":O=aa(g,k);ta=.6*g.Name_h;O=O.replace("fillColor","swimlaneFillColor");""==O&&(O="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;fontStyle=0;"+O+"startSize="+ta+";"+
|
|
|
|
|
c(g.Name);v.style=g.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+aa(g,k);v.value=e(g.Name);v.style+=a(v.style,g,k,v,z);I=[];da=[];Ja=ta;Ua=30;null!=g.Column1&&(Ua=.6*g.Column1);for(l=0;l<g.Fields;l++)M=0,da[l]=new mxCell("",new mxGeometry(0,Ja,Ua,.6*g["Field"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),da[l].vertex=!0,v.insert(da[l]),da[l].style+=
|
|
|
|
|
O+d(g["Field"+(l+1)])+y(g["Field"+(l+1)])+w(g["Field"+(l+1)]),da[l].style=1==g.AltRows&&0!=l%2?da[l].style+"fillColor=#000000;fillOpacity=5;":da[l].style+("fillColor=none;"+R(g,k,da[l])),da[l].value=e(g["Field"+(l+1)]),da[l].style+=a(da[l].style,g,k,da[l],z),I[l]=new mxCell("",new mxGeometry(Ua,Ja,t-Ua,.6*g["Type"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
|
|
|
|
|
I[l].vertex=!0,v.insert(I[l]),I[l].style+=O+d(g["Type"+(l+1)])+y(g["Type"+(l+1)])+w(g["Type"+(l+1)]),I[l].style=1==g.AltRows&&0!=l%2?I[l].style+"fillColor=#000000;fillOpacity=5;":I[l].style+("fillColor=none;"+R(g,k,I[l])),I[l].value=e(g["Type"+(l+1)]),I[l].style+=a(I[l].style,g,k,I[l],z),Ja+=.6*g["Field"+(l+1)+"_h"];break;case "ERDEntityBlock4":O=aa(g,k);ta=.6*g.Name_h;O=O.replace("fillColor","swimlaneFillColor");""==O&&(O="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;fontStyle=0;"+
|
|
|
|
|
O+"startSize="+ta+";"+c(g.Name);v.style=g.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+aa(g,k);v.value=e(g.Name);v.style+=a(v.style,g,k,v,z);var I=[],da=[],Va=[],Ja=ta,Ua=30,Fd=40;null!=g.Column1&&(Ua=.6*g.Column1);null!=g.Column2&&(Fd=.6*g.Column2);for(l=0;l<g.Fields;l++)M=0,da[l]=new mxCell("",new mxGeometry(0,Ja,Ua,.6*g["Key"+(l+1)+"_h"]),"strokeColor=none;part=1;resizeHeight=0;align=center;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
|
|
|
|
|
da[l].vertex=!0,v.insert(da[l]),da[l].style+=O+d(g["Key"+(l+1)])+y(g["Key"+(l+1)])+w(g["Key"+(l+1)]),da[l].style=1==g.AltRows&&0!=l%2?da[l].style+"fillColor=#000000;fillOpacity=5;":da[l].style+("fillColor=none;"+R(g,k,da[l])),da[l].value=e(g["Key"+(l+1)]),da[l].style+=a(da[l].style,g,k,da[l],z),I[l]=new mxCell("",new mxGeometry(Ua,Ja,t-Ua-Fd,.6*g["Field"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
|
|
|
|
|
I[l].vertex=!0,v.insert(I[l]),I[l].style+=O+d(g["Field"+(l+1)])+y(g["Field"+(l+1)])+w(g["Field"+(l+1)]),I[l].style=1==g.AltRows&&0!=l%2?I[l].style+"fillColor=#000000;fillOpacity=5;":I[l].style+("fillColor=none;"+R(g,k,I[l])),I[l].value=e(g["Field"+(l+1)]),I[l].style+=a(I[l].style,g,k,I[l],z),Va[l]=new mxCell("",new mxGeometry(t-Fd,Ja,Fd,.6*g["Type"+(l+1)+"_h"]),"shape=partialRectangle;top=0;right=0;bottom=0;part=1;resizeHeight=0;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
|
|
|
|
|