|
|
|
@ -1,14 +1,14 @@
|
|
|
|
|
LucidImporter={};
|
|
|
|
|
(function(){function g(u){if(u&&null!=LucidImporter.imgSrcRepl){var F=LucidImporter.imgSrcRepl.attMap;if(F[u])u=F[u];else{F=LucidImporter.imgSrcRepl.imgRepl;for(var D=0;D<F.length;D++){var t=F[D];u=u.replace(t.searchVal,t.replVal)}LucidImporter.hasExtImgs=!0}}return u}function y(u){lb="";try{if(u){var F=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(F=LucidImporter.advImpConfig.fontMapping[u]);if(F){for(var D in F)lb+=D+"="+F[D]+";";return F.fontFamily?"font-family: "+F.fontFamily:
|
|
|
|
|
""}if("Liberation Sans"!=u)return lb="fontFamily="+u+";","font-family: "+u+";"}}catch(t){}return""}function z(u){return Math.round(10*u)/10}function B(u,F,D){function t(ma,Ma){var ya="",za=ma.t,Qb=ma.l||{v:za&&"ul"==za.v?"auto":"decimal"};if(null==za||0!=Na&&Na==za.v&&Ka==Qb.v)null==za&&(Na&&(ya+=P(!0),Na=!1),ya+='<div style="',Ca.push("div"));else{Na&&(ya+=P(!0));Na=za.v;Ka=Qb.v;"ul"==za.v?(ya+="<ul ",Ca.push("ul")):(ya+="<ol ",Ca.push("ol"));ya+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';
|
|
|
|
|
if("hl"==za.v)ya+="upper-roman";else switch(Qb.v){case "auto":ya+="disc";break;case "inv":ya+="circle";break;case "disc":ya+="circle";break;case "trib":ya+="square";break;case "square":ya+="square";break;case "dash":ya+="square";break;case "heart":ya+="disc";break;default:ya+="decimal"}ya+='">'}if(null!=za){ya+='<li style="text-align:'+(ma.a?ma.a.v:D.TextAlign||"center")+";";if(null!=Ma){if(Ma.c)var fa=Ma.c.v;if(Ma.s)var xb=Ma.s.v}try{var Va=aa[ja],rc=ra[Aa];Ma=ja;if(Va&&rc&&Va.s<rc.e)for(var vc=
|
|
|
|
|
Va.s;null!=Va&&Va.s==vc;)"s"==Va.n?xb=Va.v:"c"==Va.n&&(fa=Va.v),Va=aa[++Ma]}catch(Gb){console.log(Gb)}fa=R(fa);null!=fa&&(fa=fa.substring(0,7),ya+="color:"+fa+";");xb&&(ya+="font-size:"+z(.75*xb)+"px;");ya+='">';Ca.push("li");ya+='<span style="';Ca.push("span")}Na||(xb=fa=ma.a?ma.a.v:D.TextAlign||"center","left"==fa?xb="flex-start":"right"==fa&&(xb="flex-end"),ya+="display: flex; justify-content: "+xb+"; text-align: "+fa+"; align-items: baseline; font-size: 0; line-height: 1.25;");ma.il&&(ya+="margin-left: "+
|
|
|
|
|
Math.max(0,z(.75*ma.il.v-(Na?28:0)))+"px;");ma.ir&&(ya+="margin-right: "+z(.75*ma.ir.v)+"px;");ma.mt&&(ya+="margin-top: "+z(.75*ma.mt.v)+"px;");ma.mb&&(ya+="margin-bottom: "+z(.75*ma.mb.v)+"px;");ya+='margin-top: -2px;">';Na||(ya+="<span>",Ca.push("span"));return ya}function e(ma){if(mxUtils.isEmptyObject(ma))return"";var Ma="",ya=0;if(ma.lk){var za=ma.lk;null!=za.v&&0<za.v.length&&(Ma+='<a href="'+n(za.v[0])+'">',Ba.push("a"),ya++)}Ma+='<span style="';Ba.push("span");ya++;Ma+="font-size:"+(ma.s&&
|
|
|
|
|
ma.s.v?z(.75*ma.s.v):"13")+"px;";ma.c&&(za=R(ma.c.v),null!=za&&(za=za.substring(0,7),Ma+="color:"+za+";"));if(ma.b&&ma.b.v||ma.fc&&ma.fc.v&&0==ma.fc.v.indexOf("Bold"))Ma+="font-weight: bold;";ma.i&&ma.i.v&&(Ma+="font-style: italic;");ma.ac&&ma.ac.v&&(Ma+="text-transform: uppercase;");za=null;ma.f?za=ma.f.v:D.Font&&(za=D.Font);Ma+=y(za);za=[];ma.u&&ma.u.v&&za.push("underline");ma.k&&ma.k.v&&za.push("line-through");0<za.length&&(Ma+="text-decoration: "+za.join(" ")+";");Ma+='">';Pa.push(ya);return Ma}
|
|
|
|
|
function P(ma){var Ma="";do{var ya=Ca.pop();if(!ma&&Na&&("ul"==ya||"ol"==ya)){Ca.push(ya);break}Ma+="</"+ya+">"}while(0<Ca.length);return Ma}function r(ma,Ma,ya,za){ma=ma?ma.substring(Ma,ya):"";Na&&(ma=ma.trim());0==Ba.length&&0<ma.length&&(ma=e({dummy:1})+ma);ma=ma.replace(/</g,"<").replace(/>/g,">");do for(Ma=Pa.pop(),ya=0;ya<Ma;ya++){var Qb=Ba.pop();ma+="</"+Qb+">"}while(za&&0<Ba.length);return ma}var q={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},Z={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,
|
|
|
|
|
k:!0,f:!0,ac:!0};F.sort(function(ma,Ma){return ma.s-Ma.s});var aa=F.filter(function(ma){return Z[ma.n]});aa[0]&&0!=aa[0].s&&aa.unshift({s:0,n:"dummy",v:"",e:aa[0].s});F=F.filter(function(ma){return q[ma.n]});for(var V=[0],wa=0;0<(wa=u.indexOf("\n",wa));)wa++,V.push(wa);for(var ja=wa=0;ja<F.length;ja++){if(F[ja].s>V[wa])F.splice(ja,0,{s:V[wa],n:"a",v:D.TextAlign||"center"});else{for(var oa=0;ja+oa<F.length&&F[ja+oa].s==V[wa];)oa++;1<oa&&(ja+=oa-1)}wa++}null!=V[wa]&&F.push({s:V[wa],n:"a",v:D.TextAlign||
|
|
|
|
|
"center"});V="";var ra=aa.slice();ra.sort(function(ma,Ma){return ma.e-Ma.e});var Aa=ja=0;wa=0;oa={};for(var na={},Ba=[],Pa=[],Ca=[],ua=!1,Na=!1,Ka,La=0,l=0,Ia=u.length,bb=!0;wa<F.length||bb;){bb=!1;if(wa<F.length){var Ea=F[wa],Ra=F[wa].s;ua&&(na={},V+=r(u,La,Ia,!0),l=La=Ia,V+=P());for(;null!=Ea&&Ea.s==Ra;)na[Ea.n]=Ea,Ea=F[++wa];Ia=null!=Ea?Ea.s:u.length;V+=t(na,oa);ua&&(V+=e(oa));ua=!0}for(;ja>=Aa&&(ja<aa.length||Aa<ra.length);)if(Ea=aa[ja],Ra=ra[Aa],Ea&&Ra&&Ea.s<Ra.e){if(Ea.s>=Ia)break;La=Ea.s;0<
|
|
|
|
|
La-l&&(V+=e(oa)+r(u,l,La),l=La);for(;null!=Ea&&Ea.s==La;)oa[Ea.n]=Ea,Ea=aa[++ja];V+=e(oa)}else if(Ra){if(Ra.e>Ia)break;l=Ra.e;do delete oa[Ra.n],Ra=ra[++Aa];while(null!=Ra&&Ra.e==l);V+=r(u,La,l);La=l;0!=Pa.length||null!=Ea&&Ea.s==l||(aa.splice(ja,0,{s:l,n:"dummy",v:""}),ra.splice(Aa,0,{e:Ea?Ea.s:Ia,n:"dummy",v:""}))}else break}V+=r(null,null,null,!0);ua&&(l!=Ia&&(V+=e({dummy:1})+r(u,l,Ia)),V+=P(!0));return V}function m(u,F){G=!1;var D=null!=u.Text&&u.Text.t?u.Text:null!=u.Value&&u.Value.t?u.Value:
|
|
|
|
|
""}if("Liberation Sans"!=u)return lb="fontFamily="+u+";","font-family: "+u+";"}}catch(t){}return""}function z(u){return Math.round(10*u)/10}function B(u,F,D){function t(la,Ma){var ya="",za=la.t,Pb=la.l||{v:za&&"ul"==za.v?"auto":"decimal"};if(null==za||0!=Na&&Na==za.v&&Ka==Pb.v)null==za&&(Na&&(ya+=P(!0),Na=!1),ya+='<div style="',Ca.push("div"));else{Na&&(ya+=P(!0));Na=za.v;Ka=Pb.v;"ul"==za.v?(ya+="<ul ",Ca.push("ul")):(ya+="<ol ",Ca.push("ol"));ya+='style="margin: 0px; padding-left: 10px;list-style-position: inside; list-style-type:';
|
|
|
|
|
if("hl"==za.v)ya+="upper-roman";else switch(Pb.v){case "auto":ya+="disc";break;case "inv":ya+="circle";break;case "disc":ya+="circle";break;case "trib":ya+="square";break;case "square":ya+="square";break;case "dash":ya+="square";break;case "heart":ya+="disc";break;default:ya+="decimal"}ya+='">'}if(null!=za){ya+='<li style="text-align:'+(la.a?la.a.v:D.TextAlign||"center")+";";if(null!=Ma){if(Ma.c)var fa=Ma.c.v;if(Ma.s)var xb=Ma.s.v}try{var Va=aa[ja],rc=ra[Aa];Ma=ja;if(Va&&rc&&Va.s<rc.e)for(var vc=
|
|
|
|
|
Va.s;null!=Va&&Va.s==vc;)"s"==Va.n?xb=Va.v:"c"==Va.n&&(fa=Va.v),Va=aa[++Ma]}catch(Fb){console.log(Fb)}fa=R(fa);null!=fa&&(fa=fa.substring(0,7),ya+="color:"+fa+";");xb&&(ya+="font-size:"+z(.75*xb)+"px;");ya+='">';Ca.push("li");ya+='<span style="';Ca.push("span")}Na||(xb=fa=la.a?la.a.v:D.TextAlign||"center","left"==fa?xb="flex-start":"right"==fa&&(xb="flex-end"),ya+="display: flex; justify-content: "+xb+"; text-align: "+fa+"; align-items: baseline; font-size: 0; line-height: 1.25;");la.il&&(ya+="margin-left: "+
|
|
|
|
|
Math.max(0,z(.75*la.il.v-(Na?28:0)))+"px;");la.ir&&(ya+="margin-right: "+z(.75*la.ir.v)+"px;");la.mt&&(ya+="margin-top: "+z(.75*la.mt.v)+"px;");la.mb&&(ya+="margin-bottom: "+z(.75*la.mb.v)+"px;");ya+='margin-top: -2px;">';Na||(ya+="<span>",Ca.push("span"));return ya}function e(la){if(mxUtils.isEmptyObject(la))return"";var Ma="",ya=0;if(la.lk){var za=la.lk;null!=za.v&&0<za.v.length&&(Ma+='<a href="'+n(za.v[0])+'">',Ba.push("a"),ya++)}Ma+='<span style="';Ba.push("span");ya++;Ma+="font-size:"+(la.s&&
|
|
|
|
|
la.s.v?z(.75*la.s.v):"13")+"px;";la.c&&(za=R(la.c.v),null!=za&&(za=za.substring(0,7),Ma+="color:"+za+";"));if(la.b&&la.b.v||la.fc&&la.fc.v&&0==la.fc.v.indexOf("Bold"))Ma+="font-weight: bold;";la.i&&la.i.v&&(Ma+="font-style: italic;");la.ac&&la.ac.v&&(Ma+="text-transform: uppercase;");za=null;la.f?za=la.f.v:D.Font&&(za=D.Font);Ma+=y(za);za=[];la.u&&la.u.v&&za.push("underline");la.k&&la.k.v&&za.push("line-through");0<za.length&&(Ma+="text-decoration: "+za.join(" ")+";");Ma+='">';Pa.push(ya);return Ma}
|
|
|
|
|
function P(la){var Ma="";do{var ya=Ca.pop();if(!la&&Na&&("ul"==ya||"ol"==ya)){Ca.push(ya);break}Ma+="</"+ya+">"}while(0<Ca.length);return Ma}function r(la,Ma,ya,za){la=la?la.substring(Ma,ya):"";Na&&(la=la.trim());0==Ba.length&&0<la.length&&(la=e({dummy:1})+la);la=la.replace(/</g,"<").replace(/>/g,">");do for(Ma=Pa.pop(),ya=0;ya<Ma;ya++){var Pb=Ba.pop();la+="</"+Pb+">"}while(za&&0<Ba.length);return la}var q={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},Z={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0,
|
|
|
|
|
k:!0,f:!0,ac:!0};F.sort(function(la,Ma){return la.s-Ma.s});var aa=F.filter(function(la){return Z[la.n]});aa[0]&&0!=aa[0].s&&aa.unshift({s:0,n:"dummy",v:"",e:aa[0].s});F=F.filter(function(la){return q[la.n]});for(var V=[0],wa=0;0<(wa=u.indexOf("\n",wa));)wa++,V.push(wa);for(var ja=wa=0;ja<F.length;ja++){if(F[ja].s>V[wa])F.splice(ja,0,{s:V[wa],n:"a",v:D.TextAlign||"center"});else{for(var na=0;ja+na<F.length&&F[ja+na].s==V[wa];)na++;1<na&&(ja+=na-1)}wa++}null!=V[wa]&&F.push({s:V[wa],n:"a",v:D.TextAlign||
|
|
|
|
|
"center"});V="";var ra=aa.slice();ra.sort(function(la,Ma){return la.e-Ma.e});var Aa=ja=0;wa=0;na={};for(var ma={},Ba=[],Pa=[],Ca=[],ua=!1,Na=!1,Ka,La=0,l=0,Ia=u.length,bb=!0;wa<F.length||bb;){bb=!1;if(wa<F.length){var Ea=F[wa],Ra=F[wa].s;ua&&(ma={},V+=r(u,La,Ia,!0),l=La=Ia,V+=P());for(;null!=Ea&&Ea.s==Ra;)ma[Ea.n]=Ea,Ea=F[++wa];Ia=null!=Ea?Ea.s:u.length;V+=t(ma,na);ua&&(V+=e(na));ua=!0}for(;ja>=Aa&&(ja<aa.length||Aa<ra.length);)if(Ea=aa[ja],Ra=ra[Aa],Ea&&Ra&&Ea.s<Ra.e){if(Ea.s>=Ia)break;La=Ea.s;0<
|
|
|
|
|
La-l&&(V+=e(na)+r(u,l,La),l=La);for(;null!=Ea&&Ea.s==La;)na[Ea.n]=Ea,Ea=aa[++ja];V+=e(na)}else if(Ra){if(Ra.e>Ia)break;l=Ra.e;do delete na[Ra.n],Ra=ra[++Aa];while(null!=Ra&&Ra.e==l);V+=r(u,La,l);La=l;0!=Pa.length||null!=Ea&&Ea.s==l||(aa.splice(ja,0,{s:l,n:"dummy",v:""}),ra.splice(Aa,0,{e:Ea?Ea.s:Ia,n:"dummy",v:""}))}else break}V+=r(null,null,null,!0);ua&&(l!=Ia&&(V+=e({dummy:1})+r(u,l,Ia)),V+=P(!0));return V}function m(u,F){G=!1;var D=null!=u.Text&&u.Text.t?u.Text:null!=u.Value&&u.Value.t?u.Value:
|
|
|
|
|
null!=u.Lane_0&&u.Lane_0.t?u.Lane_0:null;null==D&&null!=u.State?u.State.t&&(D=u.State):null==D&&null!=u.Note?u.Note.t&&(D=u.Note):null==D&&null!=u.Title?u.Title.t&&(D=u.Title):u.t&&(D=u);null==D&&null!=u.TextAreas?null!=u.TextAreas.Text&&null!=u.TextAreas.Text.Value&&u.TextAreas.Text.Value.t&&(D=u.TextAreas.Text.Value):null==D&&null!=u.t0&&u.t0.t&&(D=u.t0);if(null!=D){if(null!=D.t){var t=D.t;t=t.replace(/\u2028/g,"\n");D=D.m;try{/ /.test(t)&&(LucidImporter.hasUnknownShapes=!0);for(var e=0;e<D.length;e++)if(0<
|
|
|
|
|
D[e].s||null!=D[e].e&&D[e].e<t.length||"t"==D[e].n||"ac"==D[e].n||"lk"==D[e].n){G=!0;break}if(G=G||F)return B(t,D,u)}catch(P){console.log(P)}t=t.replace(/</g,"<");return t=t.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 h(u){return null!=u.Action?u.Action:u}function c(u){if(null!=u.Text){if(null!=u.Text.m)return u.Text.m}else if(null!=u.TextAreas){if(null!=u.TextAreas.Text&&
|
|
|
|
|
null!=u.TextAreas.Text.Value&&null!=u.TextAreas.Text.Value.m)return u.TextAreas.Text.Value.m}else{if(null!=u.m)return u.m;if(null!=u.Title){if(null!=u.Title.m)return u.Title.m}else if(null!=u.State){if(null!=u.State.m)return u.State.m}else if(null!=u.Note&&null!=u.Note.m)return u.Note.m}return null}function a(u,F){u="whiteSpace=wrap;"+(F?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+lb:f(u)+k(u)+p(u)+x(u)+C(u)+J(u)+M(u)+L(u)+Q(u))+U(u)+H(u)+Zb(mxConstants.STYLE_ALIGN,u.TextAlign,"center");lb=
|
|
|
|
@ -25,61 +25,61 @@ z(.75*D.v)+";";F++}return""}function U(u){return"number"===typeof u.InsetMargin?
|
|
|
|
|
"#000000")}function N(u){return null!=u?mxConstants.STYLE_FILLCOLOR+"="+S(u)+";":""}function K(u){return null!=u?"swimlaneFillColor="+S(u)+";":""}function O(u,F,D){F="";if("string"===typeof u.LineColor&&(u.LineColor=R(u.LineColor),7<u.LineColor.length)){var t="0x"+u.LineColor.substring(u.LineColor.length-2,u.LineColor.length);D.style.includes("strokeOpacity")||(F+="strokeOpacity="+Math.round(parseInt(t)/2.55)+";")}"string"===typeof u.FillColor&&(u.FillColor=R(u.FillColor),7<u.FillColor.length&&(u=
|
|
|
|
|
"0x"+u.FillColor.substring(u.FillColor.length-2,u.FillColor.length),D.style.includes("fillOpacity")||(F+="fillOpacity="+Math.round(parseInt(u)/2.55)+";")));return F}function ba(u,F,D){var t="";if(null!=u.Rotation){u=mxUtils.toDegree(parseFloat(u.Rotation));var e=!0;0!=u&&F.Class&&("UMLSwimLaneBlockV2"==F.Class||(0<=F.Class.indexOf("Rotated")||-90==u||270==u)&&(0<=F.Class.indexOf("Pool")||0<=F.Class.indexOf("SwimLane")))?(u+=90,D.geometry.rotate90(),D.geometry.isRotated=!0,e=!1):0<=mxUtils.indexOf(vf,
|
|
|
|
|
F.Class)?(u-=90,D.geometry.rotate90()):0<=mxUtils.indexOf(wf,F.Class)&&(u+=180);0!=u&&(t+="rotation="+u+";");e||(t+="horizontal=0;")}return t}function W(u){return null!=u.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function R(u){if(u){if("object"===typeof u)try{u=u.cs[0].c}catch(F){console.log(F),u="#ffffff"}"rgb"==u.substring(0,3)?u="#"+u.match(/\d+/g).map(function(F){F=parseInt(F).toString(16);return(1==F.length?"0":"")+F}).join(""):"#"!=u.charAt(0)&&(u="#"+u)}return u}function S(u){return(u=R(u))?
|
|
|
|
|
u.substring(0,7):null}function la(u,F){return(u=R(u))&&7<u.length?F+"="+Math.round(parseInt("0x"+u.substr(7))/2.55)+";":""}function ca(u,F){if(null!=u.FillColor)if("object"===typeof u.FillColor){if(null!=u.FillColor.cs&&1<u.FillColor.cs.length)return Zb(mxConstants.STYLE_FILLCOLOR,S(u.FillColor.cs[0].c))+Zb(mxConstants.STYLE_GRADIENTCOLOR,S(u.FillColor.cs[1].c))}else return"string"===typeof u.FillColor?Zb(mxConstants.STYLE_FILLCOLOR,S(u.FillColor),"#FFFFFF"):Zb(mxConstants.STYLE_FILLCOLOR,"none");
|
|
|
|
|
u.substring(0,7):null}function ka(u,F){return(u=R(u))&&7<u.length?F+"="+Math.round(parseInt("0x"+u.substr(7))/2.55)+";":""}function ca(u,F){if(null!=u.FillColor)if("object"===typeof u.FillColor){if(null!=u.FillColor.cs&&1<u.FillColor.cs.length)return Zb(mxConstants.STYLE_FILLCOLOR,S(u.FillColor.cs[0].c))+Zb(mxConstants.STYLE_GRADIENTCOLOR,S(u.FillColor.cs[1].c))}else return"string"===typeof u.FillColor?Zb(mxConstants.STYLE_FILLCOLOR,S(u.FillColor),"#FFFFFF"):Zb(mxConstants.STYLE_FILLCOLOR,"none");
|
|
|
|
|
return""}function qa(u){return"dotted"==u.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 4;":"dashdot"==u.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5;":"dashdotdot"==u.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==u.StrokeStyle?"dashed=1;fixDash=1;dashPattern=1 2;":"longdash"==u.StrokeStyle?"dashed=1;fixDash=1;dashPattern=16 6;":"dashlongdash"==u.StrokeStyle?"dashed=1;fixDash=1;dashPattern=10 6 16 6;":"dashed24"==u.StrokeStyle?"dashed=1;fixDash=1;dashPattern=3 8;":
|
|
|
|
|
"dashed32"==u.StrokeStyle?"dashed=1;fixDash=1;dashPattern=6 5;":"dashed44"==u.StrokeStyle?"dashed=1;fixDash=1;dashPattern=8 8;":null!=u.StrokeStyle&&"dashed"==u.StrokeStyle.substring(0,6)?"dashed=1;fixDash=1;":""}function sa(u){return null!=u.LineWidth?Zb(mxConstants.STYLE_STROKEWIDTH,z(.75*parseFloat(u.LineWidth)),"1"):""}function Fa(u,F,D){var t="";u.FillColor&&u.FillColor.url?(D=u.FillColor.url,"fill"==u.FillColor.pos&&(t="imageAspect=0;")):"ImageSearchBlock2"==F.Class?D=u.URL:"UserImage2Block"==
|
|
|
|
|
F.Class&&null!=u.ImageFillProps&&null!=u.ImageFillProps.url&&(D=u.ImageFillProps.url);return null!=D?"image="+g(D)+";"+t:""}function ka(u,F,D){null!=F.Link&&0<F.Link.length&&D.setAttributeForCell(u,"link",n(F.Link[0]));null!=F.NoteHint&&F.NoteHint.t&&D.setAttributeForCell(u,"Notes",F.NoteHint.t);var t=[],e=D.convertValueToString(u),P=!1;if(null!=e){for(var r=0;match=xf.exec(e);){var q=match[0];P=!0;if(2<q.length){var Z=q.substring(2,q.length-2);"documentName"==Z?Z="filename":"pageName"==Z?Z="page":
|
|
|
|
|
F.Class&&null!=u.ImageFillProps&&null!=u.ImageFillProps.url&&(D=u.ImageFillProps.url);return null!=D?"image="+g(D)+";"+t:""}function pa(u,F,D){null!=F.Link&&0<F.Link.length&&D.setAttributeForCell(u,"link",n(F.Link[0]));null!=F.NoteHint&&F.NoteHint.t&&D.setAttributeForCell(u,"Notes",F.NoteHint.t);var t=[],e=D.convertValueToString(u),P=!1;if(null!=e){for(var r=0;match=xf.exec(e);){var q=match[0];P=!0;if(2<q.length){var Z=q.substring(2,q.length-2);"documentName"==Z?Z="filename":"pageName"==Z?Z="page":
|
|
|
|
|
"totalPages"==Z?Z="pagecount":"page"==Z?Z="pagenumber":"date:"==Z.substring(0,5)?Z="date{"+Z.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==Z.substring(0,16)?Z=Z.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==Z.substring(0,9)&&(Z="date{"+Z.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");Z="%"+Z+"%";t.push(e.substring(r,match.index)+(null!=Z?Z:q));r=
|
|
|
|
|
match.index+q.length}}P&&(t.push(e.substring(r)),D.setAttributeForCell(u,"label",t.join("")),D.setAttributeForCell(u,"placeholders","1"))}for(var aa in F)if(F.hasOwnProperty(aa)&&aa.toString().startsWith("ShapeData_"))try{var V=F[aa],wa=mxUtils.trim(V.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");Za(u,wa,V.Value,D)}catch(ja){window.console&&console.log("Ignored "+aa+":",ja)}}function Za(u,F,D,t){for(var e=F,P=0;null!=t.getAttributeForCell(u,e);)P++,e=F+"_"+P;t.setAttributeForCell(u,
|
|
|
|
|
e,null!=D?D:"")}function yb(u,F,D,t,e,P){var r=h(F);if(null!=r){var q=Od[r.Class];null!=q?(u.style+=q,";"!=u.style.charAt(u.style.length-1)&&(u.style+=";")):u.edge||(console.log("No mapping found for: "+r.Class),LucidImporter.hasUnknownShapes=!0);q=null!=r.Properties?r.Properties:r;if(null!=q&&(u.value=P?"":m(q),u.style+=b(u.style,q,r,u,G,!0),u.style.includes("strokeColor")||(u.style+=I(q,r)),ka(u,q,D),q.Title&&q.Title.t&&q.Text&&q.Text.t&&"ExtShape"!=r.Class.substr(0,8)&&(D=u.geometry,D=new mxCell(m(q.Title),
|
|
|
|
|
e,null!=D?D:"")}function Qb(u,F,D,t,e,P){var r=h(F);if(null!=r){var q=Od[r.Class];null!=q?(u.style+=q,";"!=u.style.charAt(u.style.length-1)&&(u.style+=";")):u.edge||(console.log("No mapping found for: "+r.Class),LucidImporter.hasUnknownShapes=!0);q=null!=r.Properties?r.Properties:r;if(null!=q&&(u.value=P?"":m(q),u.style+=b(u.style,q,r,u,G,!0),u.style.includes("strokeColor")||(u.style+=I(q,r)),pa(u,q,D),q.Title&&q.Title.t&&q.Text&&q.Text.t&&"ExtShape"!=r.Class.substr(0,8)&&(D=u.geometry,D=new mxCell(m(q.Title),
|
|
|
|
|
new mxGeometry(0,D.height,D.width,10),"strokeColor=none;fillColor=none;"),D.vertex=!0,u.insert(D),D.style+=a(q.Title,G)),u.edge)){u.style=null!=q.Rounding&&"diagonal"!=q.Shape?u.style+("rounded=1;arcSize="+q.Rounding+";"):u.style+"rounded=0;";if(D="curve"==q.Shape)u.style+="curved=1;";else if("diagonal"!=q.Shape)if(null!=q.ElbowPoints&&0<q.ElbowPoints.length)for(u.geometry.points=[],r=0;r<q.ElbowPoints.length;r++)u.geometry.points.push(new mxPoint(Math.round(.75*q.ElbowPoints[r].x+wc),Math.round(.75*
|
|
|
|
|
q.ElbowPoints[r].y+xc)));else if("elbow"==q.Shape||null!=q.Endpoint1.Block&&null!=q.Endpoint2.Block)u.style+="edgeStyle=orthogonalEdgeStyle;";if(q.LineJumps||LucidImporter.globalProps.LineJumps)u.style+="jumpStyle=arc;";null!=q.Endpoint1.Style&&(P=Ee[q.Endpoint1.Style],null!=P?(P=P.replace(/xyz/g,"start"),u.style+="startArrow="+P+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+q.Endpoint1.Style)));null!=q.Endpoint2.Style&&(P=Ee[q.Endpoint2.Style],null!=
|
|
|
|
|
P?(P=P.replace(/xyz/g,"end"),u.style+="endArrow="+P+";"):(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+q.Endpoint2.Style)));P=null!=q.ElbowControlPoints&&0<q.ElbowControlPoints.length?q.ElbowControlPoints:q.Joints;if(D&&null!=q.BezierJoints&&0<q.BezierJoints.length){P=[];D=q.BezierJoints[q.BezierJoints.length-1];D.p.x=q.Endpoint2.x;D.p.y=q.Endpoint2.y;for(r=0;r<q.BezierJoints.length;r++)D=q.BezierJoints[r],P.push({x:D.p.x+D.nt.x*D.lcps*.75,y:D.p.y+D.nt.y*
|
|
|
|
|
D.lcps*.75}),P.push({x:D.p.x+D.nt.x*D.rcps*.75,y:D.p.y+D.nt.y*D.rcps*.75});P=P.slice(1,P.length-1)}else D&&(P=[],P.push({x:q.Endpoint1.x+(.1>q.Endpoint1.LinkX?-250:.9<q.Endpoint1.LinkX?250:0),y:q.Endpoint1.y+(.1>q.Endpoint1.LinkY?-250:.9<q.Endpoint1.LinkY?250:0)}),P.push({x:q.Endpoint2.x+(.1>q.Endpoint2.LinkX?-250:.9<q.Endpoint2.LinkX?250:0),y:q.Endpoint2.y+(.1>q.Endpoint2.LinkY?-250:.9<q.Endpoint2.LinkY?250:0)}));if(null!=P)for(u.geometry.points=[],r=0;r<P.length;r++)D=P[r].p?P[r].p:P[r],u.geometry.points.push(new mxPoint(Math.round(.75*
|
|
|
|
|
D.x+wc),Math.round(.75*D.y+xc)));D=!1;if((null==u.geometry.points||0==u.geometry.points.length)&&null!=q.Endpoint1.Block&&q.Endpoint1.Block==q.Endpoint2.Block&&null!=t&&null!=e){D=new mxPoint(Math.round(t.geometry.x+t.geometry.width*q.Endpoint1.LinkX),Math.round(t.geometry.y+t.geometry.height*q.Endpoint1.LinkY));P=new mxPoint(Math.round(e.geometry.x+e.geometry.width*q.Endpoint2.LinkX),Math.round(e.geometry.y+e.geometry.height*q.Endpoint2.LinkY));wc=D.x==P.x?Math.abs(D.x-t.geometry.x)<t.geometry.width/
|
|
|
|
|
2?-20:20:0;xc=D.y==P.y?Math.abs(D.y-t.geometry.y)<t.geometry.height/2?-20:20:0;var Z=new mxPoint(D.x+wc,D.y+xc),aa=new mxPoint(P.x+wc,P.y+xc);Z.generated=!0;aa.generated=!0;u.geometry.points=[Z,aa];D=D.x==P.x}null!=t&&t.geometry.isRotated||(Z=Fe(u,q.Endpoint1,!0,D,null,t));null!=t&&null!=Z&&(null==t.stylePoints&&(t.stylePoints=[]),t.stylePoints.push(Z),LucidImporter.stylePointsSet.add(t));null!=e&&e.geometry.isRotated||(aa=Fe(u,q.Endpoint2,!1,D,null,e));null!=e&&null!=aa&&(null==e.stylePoints&&(e.stylePoints=
|
|
|
|
|
[]),e.stylePoints.push(aa),LucidImporter.stylePointsSet.add(e))}}null!=F.id&&(u.style+=";lucidId="+F.id+";");u.lucidchartObject=F}function vb(u,F){var D=h(u).Properties,t=D.BoundingBox;null==u.Class||"AWS"!==u.Class.substring(0,3)&&"Amazon"!==u.Class.substring(0,6)||u.Class.includes("AWS19")||(t.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*t.x+wc),Math.round(.75*t.y+xc),Math.round(.75*t.w),Math.round(.75*t.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;yb(v,u,F);
|
|
|
|
|
v.zOrder=D.ZOrder;Ge(v,D);D.Hidden&&(v.visible=!1);return v}function yf(u,F,D,t){var e=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");e.geometry.relative=!0;e.edge=!0;yb(e,u,F,D,t,!0);var P=h(u).Properties,r=null!=P?P.TextAreas:u.TextAreas;if(null!=r){for(var q=0;void 0!==r["t"+q];){var Z=r["t"+q];null!=Z&&(e=Pd(Z,e,u,D,t,F));q++}for(q=0;void 0!==r["m"+q]||1>q;)Z=r["m"+q],null!=Z&&(e=Pd(Z,e,u,D,t,F)),q++;null!=r.Text&&(e=Pd(r.Text,e,u,D,t,F));r=null!=P?P.TextAreas:u.TextAreas;null!=
|
|
|
|
|
[]),e.stylePoints.push(aa),LucidImporter.stylePointsSet.add(e))}}null!=F.id&&(u.style+=";lucidId="+F.id+";");u.lucidchartObject=F}function vb(u,F){var D=h(u).Properties,t=D.BoundingBox;null==u.Class||"AWS"!==u.Class.substring(0,3)&&"Amazon"!==u.Class.substring(0,6)||u.Class.includes("AWS19")||(t.h-=20);v=new mxCell("",new mxGeometry(Math.round(.75*t.x+wc),Math.round(.75*t.y+xc),Math.round(.75*t.w),Math.round(.75*t.h)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;Qb(v,u,F);
|
|
|
|
|
v.zOrder=D.ZOrder;Ge(v,D);D.Hidden&&(v.visible=!1);return v}function yf(u,F,D,t){var e=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");e.geometry.relative=!0;e.edge=!0;Qb(e,u,F,D,t,!0);var P=h(u).Properties,r=null!=P?P.TextAreas:u.TextAreas;if(null!=r){for(var q=0;void 0!==r["t"+q];){var Z=r["t"+q];null!=Z&&(e=Pd(Z,e,u,D,t,F));q++}for(q=0;void 0!==r["m"+q]||1>q;)Z=r["m"+q],null!=Z&&(e=Pd(Z,e,u,D,t,F)),q++;null!=r.Text&&(e=Pd(r.Text,e,u,D,t,F));r=null!=P?P.TextAreas:u.TextAreas;null!=
|
|
|
|
|
r.Message&&(e=Pd(r.Message,e,u,D,t,F))}u.Hidden&&(e.visible=!1);return e}function Pd(u,F,D,t,e,P){var r=2*(parseFloat(u.Location)-.5);isNaN(r)&&null!=u.Text&&null!=u.Text.Location&&(r=2*(parseFloat(u.Text.Location)-.5));P=m(u);var q=mxCell;r=new mxGeometry(isNaN(r)?0:r,0,0,0);var Z=ge;var aa=D;if(G)aa=lb;else{var V="13",wa="";if(null!=u&&null!=u.Value&&null!=u.Value.m){wa=A(u.Value.m);for(var ja=0;ja<u.Value.m.length;ja++)if("s"==u.Value.m[ja].n&&u.Value.m[ja].v)V=z(.75*parseFloat(u.Value.m[ja].v));
|
|
|
|
|
else if("c"==u.Value.m[ja].n){var oa=R(u.Value.m[ja].v);null!=oa&&(oa=oa.substring(0,7));"#000000"==oa&&(oa="default");wa+="fontColor="+oa+";"}wa+=k(aa);lb=""}aa=wa+";fontSize="+V+";"}q=new q(P,r,Z+aa);q.geometry.relative=!0;q.vertex=!0;if(u.Side)try{D.Action&&D.Action.Properties&&(D=D.Action.Properties);if(null!=t&&null!=e){var ra=t.geometry,Aa=e.geometry;var na=Math.abs(ra.x+ra.width*D.Endpoint1.LinkX-(Aa.x+Aa.width*D.Endpoint2.LinkX));var Ba=Math.abs(ra.y+ra.height*D.Endpoint1.LinkY-(Aa.y+Aa.height*
|
|
|
|
|
D.Endpoint2.LinkY))}else na=Math.abs(D.Endpoint1.x-D.Endpoint2.x),Ba=Math.abs(D.Endpoint1.y-D.Endpoint2.y);var Pa=mxUtils.getSizeForString(P.replace(/\n/g,"<br>"));q.geometry.offset=0==na||na<Ba?new mxPoint(Math.sign(D.Endpoint1.y-D.Endpoint2.y)*u.Side*(Pa.width/2+5+na),0):new mxPoint(0,Math.sign(D.Endpoint2.x-D.Endpoint1.x)*u.Side*(Pa.height/2+5+Ba))}catch(Ca){console.log(Ca)}q.lucidchartObject=u;F.insert(q);return F}function Zb(u,F,D,t){null!=F&&null!=t&&(F=t(F));return null!=F&&F!=D?u+"="+F+";":
|
|
|
|
|
""}function Fe(u,F,D,t,e,P){if(null!=F&&null!=F.LinkX&&null!=F.LinkY&&(F.LinkX=Math.round(1E3*F.LinkX)/1E3,F.LinkY=Math.round(1E3*F.LinkY)/1E3,null!=P&&P.style&&-1<P.style.indexOf("flipH=1")&&(F.LinkX=1-F.LinkX),null!=P&&P.style&&-1<P.style.indexOf("flipV=1")&&(F.LinkY=1-F.LinkY),u.style+=(t?"":(D?"exitX":"entryX")+"="+F.LinkX+";")+(e?"":(D?"exitY":"entryY")+"="+F.LinkY+";")+(D?"exitPerimeter":"entryPerimeter")+"=0;",F.Inside))return"["+F.LinkX+","+F.LinkY+",0]"}function He(u,F,D,t,e){try{var P=function(na,
|
|
|
|
|
Ba){if(null!=na)if(Array.isArray(na))for(var Pa=0;Pa<na.length;Pa++)P(na[Pa].p?na[Pa].p:na[Pa],Ba);else Ba=Ba?.75:1,q=Math.min(q,na.x*Ba),Z=Math.min(Z,na.y*Ba),aa=Math.max(aa,(na.x+(na.width?na.width:0))*Ba),V=Math.max(V,(na.y+(na.height?na.height:0))*Ba)};null!=u.Action&&null!=u.Action.Properties&&(u=u.Action.Properties);var r=new mxCell("",new mxGeometry,"group;dropTarget=0;pointerEvents=0;");r.vertex=!0;r.zOrder=u.ZOrder;var q=Infinity,Z=Infinity,aa=-Infinity,V=-Infinity,wa=u.Members;e=[];for(var ja in wa){var oa=
|
|
|
|
|
F[ja];null!=oa?e.push(oa):null!=t[ja]&&(e.push(t[ja]),D[ja]=r)}e.sort(function(na,Ba){na=na.zOrder||na.ZOrder;Ba=Ba.zOrder||Ba.ZOrder;return null!=na&&null!=Ba?na>Ba?1:na<Ba?-1:0:0});for(D=F=0;D<e.length;D++)if(oa=e[D],oa.vertex)P(oa.geometry),oa.parent=r,r.insert(oa,F++);else{var ra=null!=oa.Action&&oa.Action.Properties?oa.Action.Properties:oa;P(ra.Endpoint1,!0);P(ra.Endpoint2,!0);P(ra.ElbowPoints,!0);P(ra.ElbowControlPoints,!0);P(ra.BezierJoints,!0);P(ra.Joints,!0)}r.geometry.x=q;r.geometry.y=Z;
|
|
|
|
|
r.geometry.width=aa-q;r.geometry.height=V-Z;if(null!=r.children)for(D=0;D<r.children.length;D++){var Aa=r.children[D].geometry;Aa.x-=q;Aa.y-=Z}u.IsState?(r.lucidLayerInfo={name:u.Name,visible:!u.Hidden,locked:u.Restrictions.b&&u.Restrictions.p&&u.Restrictions.c},r.style+="container=1;collapsible=0;recursiveResize=0;"):u.Hidden&&(r.visible=!1);r.lucidchartObject=u;return r}catch(na){console.log(na)}}function zf(u,F,D){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=new Set;u.getModel().beginUpdate();
|
|
|
|
|
try{var t=function(Ca,ua){function Na(Ra,ma,Ma){null==Ra||Ra.generated||(Ra.x-=ma,Ra.y-=Ma)}var Ka=null!=ua.Endpoint1.Block?P[ua.Endpoint1.Block]:null,La=null!=ua.Endpoint2.Block?P[ua.Endpoint2.Block]:null,l=yf(Ca,u,Ka,La);if(ua.Endpoint1&&ua.Endpoint1.Line||ua.Endpoint2&&ua.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==Ka&&null!=ua.Endpoint1&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint1.x),Math.round(.75*ua.Endpoint1.y)),!0);null==
|
|
|
|
|
else if("c"==u.Value.m[ja].n){var na=R(u.Value.m[ja].v);null!=na&&(na=na.substring(0,7));"#000000"==na&&(na="default");wa+="fontColor="+na+";"}wa+=k(aa);lb=""}aa=wa+";fontSize="+V+";"}q=new q(P,r,Z+aa);q.geometry.relative=!0;q.vertex=!0;if(u.Side)try{D.Action&&D.Action.Properties&&(D=D.Action.Properties);if(null!=t&&null!=e){var ra=t.geometry,Aa=e.geometry;var ma=Math.abs(ra.x+ra.width*D.Endpoint1.LinkX-(Aa.x+Aa.width*D.Endpoint2.LinkX));var Ba=Math.abs(ra.y+ra.height*D.Endpoint1.LinkY-(Aa.y+Aa.height*
|
|
|
|
|
D.Endpoint2.LinkY))}else ma=Math.abs(D.Endpoint1.x-D.Endpoint2.x),Ba=Math.abs(D.Endpoint1.y-D.Endpoint2.y);var Pa=mxUtils.getSizeForString(P.replace(/\n/g,"<br>"));q.geometry.offset=0==ma||ma<Ba?new mxPoint(Math.sign(D.Endpoint1.y-D.Endpoint2.y)*u.Side*(Pa.width/2+5+ma),0):new mxPoint(0,Math.sign(D.Endpoint2.x-D.Endpoint1.x)*u.Side*(Pa.height/2+5+Ba))}catch(Ca){console.log(Ca)}q.lucidchartObject=u;F.insert(q);return F}function Zb(u,F,D,t){null!=F&&null!=t&&(F=t(F));return null!=F&&F!=D?u+"="+F+";":
|
|
|
|
|
""}function Fe(u,F,D,t,e,P){if(null!=F&&null!=F.LinkX&&null!=F.LinkY&&(F.LinkX=Math.round(1E3*F.LinkX)/1E3,F.LinkY=Math.round(1E3*F.LinkY)/1E3,null!=P&&P.style&&-1<P.style.indexOf("flipH=1")&&(F.LinkX=1-F.LinkX),null!=P&&P.style&&-1<P.style.indexOf("flipV=1")&&(F.LinkY=1-F.LinkY),u.style+=(t?"":(D?"exitX":"entryX")+"="+F.LinkX+";")+(e?"":(D?"exitY":"entryY")+"="+F.LinkY+";")+(D?"exitPerimeter":"entryPerimeter")+"=0;",F.Inside))return"["+F.LinkX+","+F.LinkY+",0]"}function He(u,F,D,t,e){try{var P=function(ma,
|
|
|
|
|
Ba){if(null!=ma)if(Array.isArray(ma))for(var Pa=0;Pa<ma.length;Pa++)P(ma[Pa].p?ma[Pa].p:ma[Pa],Ba);else Ba=Ba?.75:1,q=Math.min(q,ma.x*Ba),Z=Math.min(Z,ma.y*Ba),aa=Math.max(aa,(ma.x+(ma.width?ma.width:0))*Ba),V=Math.max(V,(ma.y+(ma.height?ma.height:0))*Ba)};null!=u.Action&&null!=u.Action.Properties&&(u=u.Action.Properties);var r=new mxCell("",new mxGeometry,"group;dropTarget=0;pointerEvents=0;");r.vertex=!0;r.zOrder=u.ZOrder;var q=Infinity,Z=Infinity,aa=-Infinity,V=-Infinity,wa=u.Members;e=[];for(var ja in wa){var na=
|
|
|
|
|
F[ja];null!=na?e.push(na):null!=t[ja]&&(e.push(t[ja]),D[ja]=r)}e.sort(function(ma,Ba){ma=ma.zOrder||ma.ZOrder;Ba=Ba.zOrder||Ba.ZOrder;return null!=ma&&null!=Ba?ma>Ba?1:ma<Ba?-1:0:0});for(D=F=0;D<e.length;D++)if(na=e[D],na.vertex)P(na.geometry),na.parent=r,r.insert(na,F++);else{var ra=null!=na.Action&&na.Action.Properties?na.Action.Properties:na;P(ra.Endpoint1,!0);P(ra.Endpoint2,!0);P(ra.ElbowPoints,!0);P(ra.ElbowControlPoints,!0);P(ra.BezierJoints,!0);P(ra.Joints,!0)}r.geometry.x=q;r.geometry.y=Z;
|
|
|
|
|
r.geometry.width=aa-q;r.geometry.height=V-Z;if(null!=r.children)for(D=0;D<r.children.length;D++){var Aa=r.children[D].geometry;Aa.x-=q;Aa.y-=Z}u.IsState?(r.lucidLayerInfo={name:u.Name,visible:!u.Hidden,locked:u.Restrictions.b&&u.Restrictions.p&&u.Restrictions.c},r.style+="container=1;collapsible=0;recursiveResize=0;"):u.Hidden&&(r.visible=!1);r.lucidchartObject=u;return r}catch(ma){console.log(ma)}}function zf(u,F,D){LucidImporter.hasMath=!1;LucidImporter.stylePointsSet=new Set;u.getModel().beginUpdate();
|
|
|
|
|
try{var t=function(Ca,ua){function Na(Ra,la,Ma){null==Ra||Ra.generated||(Ra.x-=la,Ra.y-=Ma)}var Ka=null!=ua.Endpoint1.Block?P[ua.Endpoint1.Block]:null,La=null!=ua.Endpoint2.Block?P[ua.Endpoint2.Block]:null,l=yf(Ca,u,Ka,La);if(ua.Endpoint1&&ua.Endpoint1.Line||ua.Endpoint2&&ua.Endpoint2.Line)console.log("Edge to Edge case"),LucidImporter.hasUnknownShapes=!0;null==Ka&&null!=ua.Endpoint1&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint1.x),Math.round(.75*ua.Endpoint1.y)),!0);null==
|
|
|
|
|
La&&null!=ua.Endpoint2&&l.geometry.setTerminalPoint(new mxPoint(Math.round(.75*ua.Endpoint2.x),Math.round(.75*ua.Endpoint2.y)),!1);Ca=r[Ca.id];if(null!=Ca){for(var Ia=l.geometry,bb=ua=0,Ea=Ca;null!=Ea&&null!=Ea.geometry;)ua+=Ea.geometry.x,bb+=Ea.geometry.y,Ea=Ea.parent;Na(Ia.sourcePoint,ua,bb);Na(Ia.targetPoint,ua,bb);Na(Ia.offset,ua,bb);Ia=Ia.points;if(null!=Ia)for(Ea=0;Ea<Ia.length;Ea++)Na(Ia[Ea],ua,bb)}e.push(u.addCell(l,Ca,null,Ka,La))},e=[],P={},r={},q={},Z=[];null!=F.Lines&&(q=F.Lines);if(null!=
|
|
|
|
|
F.Blocks){Object.assign(q,F.Blocks);for(var aa in F.Blocks){var V=F.Blocks[aa];V.id=aa;var wa=!1;null!=Od[V.Class]&&"mxCompositeShape"==Od[V.Class]&&(P[V.id]=Ie(V,e,u),Z.push(V),wa=!0);wa||(P[V.id]=vb(V,u),Z.push(V))}if(null!=F.Generators)for(aa in F.Generators)"OrgChart2018"==F.Generators[aa].ClassName?(LucidImporter.hasUnknownShapes=!0,Je(aa,F.Generators[aa],F.Data,u,P)):LucidImporter.hasUnknownShapes=!0}else{for(var ja=0;ja<F.Objects.length;ja++)V=F.Objects[ja],q[V.id]=V,null!=V.Action&&"mxCompositeShape"==
|
|
|
|
|
Od[V.Action.Class]?P[V.id]=Ie(V,e,u):V.IsBlock&&null!=V.Action&&null!=V.Action.Properties?P[V.id]=vb(V,u):V.IsGenerator&&V.GeneratorData&&V.GeneratorData.p&&("OrgChart2018"==V.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,Je(V.GeneratorData.id,V.GeneratorData.p,V.GeneratorData.gs,u,P)):LucidImporter.hasUnknownShapes=!0),Z.push(V);for(ja=0;ja<F.Objects.length;ja++)if(V=F.Objects[ja],V.IsGroup){var oa=He(V,P,r,q,u);oa&&(P[V.id]=oa,Z.push(V))}}if(null!=F.Groups)try{for(aa in F.Groups)if(V=
|
|
|
|
|
F.Groups[aa],V.id=aa,oa=He(V,P,r,q,u))P[V.id]=oa,Z.push(V)}catch(Ca){console.log(Ca)}if(null!=F.Lines)for(aa in F.Lines)V=F.Lines[aa],V.id=aa,Z.push(V);Z.sort(function(Ca,ua){Ca=h(Ca);ua=h(ua);Ca=null!=Ca.Properties?Ca.Properties.ZOrder:Ca.ZOrder;ua=null!=ua.Properties?ua.Properties.ZOrder:ua.ZOrder;return null!=Ca&&null!=ua?Ca>ua?1:Ca<ua?-1:0:0});for(ja=0;ja<Z.length;ja++){V=Z[ja];var ra=P[V.id];if(null!=ra){if(null==ra.parent)if(ra.lucidLayerInfo){var Aa=new mxCell;u.addCell(Aa,u.model.root);Aa.setVisible(ra.lucidLayerInfo.visible);
|
|
|
|
|
ra.lucidLayerInfo.locked&&Aa.setStyle("locked=1;");Aa.setValue(ra.lucidLayerInfo.name);delete ra.lucidLayerInfo;u.addCell(ra,Aa)}else e.push(u.addCell(ra))}else V.IsLine&&null!=V.Action&&null!=V.Action.Properties?t(V,V.Action.Properties):null!=V.StrokeStyle&&t(V,V)}LucidImporter.stylePointsSet.forEach(function(Ca){Ca.style="points=["+Ca.stylePoints.join(",")+"];"+Ca.style;delete Ca.stylePoints});try{var na=u.getModel().cells;u.view.validate();for(var Ba in na){var Pa=na[Ba];null!=Pa&&(Af(u,Pa),Bf(u,
|
|
|
|
|
Od[V.Action.Class]?P[V.id]=Ie(V,e,u):V.IsBlock&&null!=V.Action&&null!=V.Action.Properties?P[V.id]=vb(V,u):V.IsGenerator&&V.GeneratorData&&V.GeneratorData.p&&("OrgChart2018"==V.GeneratorData.p.ClassName?(LucidImporter.hasUnknownShapes=!0,Je(V.GeneratorData.id,V.GeneratorData.p,V.GeneratorData.gs,u,P)):LucidImporter.hasUnknownShapes=!0),Z.push(V);for(ja=0;ja<F.Objects.length;ja++)if(V=F.Objects[ja],V.IsGroup){var na=He(V,P,r,q,u);na&&(P[V.id]=na,Z.push(V))}}if(null!=F.Groups)try{for(aa in F.Groups)if(V=
|
|
|
|
|
F.Groups[aa],V.id=aa,na=He(V,P,r,q,u))P[V.id]=na,Z.push(V)}catch(Ca){console.log(Ca)}if(null!=F.Lines)for(aa in F.Lines)V=F.Lines[aa],V.id=aa,Z.push(V);Z.sort(function(Ca,ua){Ca=h(Ca);ua=h(ua);Ca=null!=Ca.Properties?Ca.Properties.ZOrder:Ca.ZOrder;ua=null!=ua.Properties?ua.Properties.ZOrder:ua.ZOrder;return null!=Ca&&null!=ua?Ca>ua?1:Ca<ua?-1:0:0});for(ja=0;ja<Z.length;ja++){V=Z[ja];var ra=P[V.id];if(null!=ra){if(null==ra.parent)if(ra.lucidLayerInfo){var Aa=new mxCell;u.addCell(Aa,u.model.root);Aa.setVisible(ra.lucidLayerInfo.visible);
|
|
|
|
|
ra.lucidLayerInfo.locked&&Aa.setStyle("locked=1;");Aa.setValue(ra.lucidLayerInfo.name);delete ra.lucidLayerInfo;u.addCell(ra,Aa)}else e.push(u.addCell(ra))}else V.IsLine&&null!=V.Action&&null!=V.Action.Properties?t(V,V.Action.Properties):null!=V.StrokeStyle&&t(V,V)}LucidImporter.stylePointsSet.forEach(function(Ca){Ca.style="points=["+Ca.stylePoints.join(",")+"];"+Ca.style;delete Ca.stylePoints});try{var ma=u.getModel().cells;u.view.validate();for(var Ba in ma){var Pa=ma[Ba];null!=Pa&&(Af(u,Pa),Bf(u,
|
|
|
|
|
Pa),Cf(u,Pa),"1"==urlParams.lucidchartObject&&null!=Pa.lucidchartObject&&Za(Pa,"lucidchartObject",JSON.stringify(Pa.lucidchartObject,null,2),u),delete Pa.lucidchartObject,delete Pa.zOrder)}}catch(Ca){console.log(Ca)}D||u.setSelectionCells(e)}finally{u.getModel().endUpdate()}}function Cf(u,F){if(u.model.contains(F)&&F.edge){var D=u.view.getState(F);if(null!=D&&null!=F.children){var t=mxRectangle.fromRectangle(D.paintBounds);t.grow(5);for(var e=0;e<F.children.length;e++){var P=u.view.getState(F.children[e]);
|
|
|
|
|
null==P||mxUtils.contains(t,P.paintBounds.x,P.paintBounds.y)||(P.cell.geometry.offset=new mxPoint(0,0))}}u=F.lucidchartObject;null!=u&&"elbow"==u.Shape&&null==u.ElbowControlPoints&&null==u.ElbowPoints&&null!=D.style.exitX&&null!=D.style.exitY&&null!=D.style.entryX&&null!=D.style.entryY&&(F.style=mxUtils.setStyle(F.style,"exitX",Math.round(20*D.style.exitX)/20),F.style=mxUtils.setStyle(F.style,"exitY",Math.round(20*D.style.exitY)/20),F.style=mxUtils.setStyle(F.style,"entryX",Math.round(20*D.style.entryX)/
|
|
|
|
|
20),F.style=mxUtils.setStyle(F.style,"entryY",Math.round(20*D.style.entryY)/20))}}function Bf(u,F){if(u.model.contains(F)&&null!=F.style&&""!=F.style){u=F.style.split(";");for(var D={},t=[],e=u.length-1;0<=e;e--){var P=u[e].split("=");if(2!=P.length||null==D[P[0]])D[P[0]]=P[1],""!=u[e]&&t.push(u[e])}F.style=t.reverse().join(";")+";"}}function Af(u,F){if(u.model.contains(F)&&null!=F.children&&null!=F.geometry&&F.vertex&&"group;dropTarget=0;pointerEvents=0;"==F.style){for(var D=null,t=0;t<F.children.length;t++)if(F.children[t].vertex){var e=
|
|
|
|
|
F.children[t].geometry;if(null!=e&&0==e.x&&0==e.y&&e.width==F.geometry.width&&e.height==F.geometry.height){if(null!=D)return;D=F.children[t]}}F=D;if(null!=F&&(D=F.parent,""==u.convertValueToString(D))){if(null!=F.edges)for(t=0;t<F.edges.length;t++)F.edges[t].source==F&&F.edges[t].setTerminal(F.parent,!0),F.edges[t].target==F&&F.edges[t].setTerminal(F.parent,!1);if(null!=F.children&&0<F.children.length)for(e=F.children.slice(),t=0;t<e.length;t++)D.insert(e[t]);u.cellLabelChanged(D,u.convertValueToString(F));
|
|
|
|
|
D.style=mxUtils.setStyle(mxUtils.setStyle(F.style,"container","1"),"collapsible","0");F.removeFromParent()}}}function Df(){var u=new Graph;u.setExtendParents(!1);u.setExtendParentsOnAdd(!1);u.setConstrainChildren(!1);u.setHtmlLabels(!0);u.getModel().maintainEdgeParent=!1;return u}function Qd(u,F,D,t,e,P,r,q){this.nurbsValues=[1,3,0,0,100*(u+D),100-100*(1-(F+t)),0,1,100*(e+r),100-100*(1-(P+q)),0,1]}function Ke(u,F){try{for(var D=[],t=F.BoundingBox.w,e=F.BoundingBox.h,P=0;P<F.Shapes.length;P++){var r=
|
|
|
|
|
F.Shapes[P],q=r.FillColor,Z=r.StrokeColor,aa=r.LineWidth,V=r.Points,wa=r.Lines,ja=['<shape strokewidth="inherit"><foreground>'];ja.push("<path>");for(var oa=null,ra=0;ra<wa.length;ra++){var Aa=wa[ra];if(oa!=Aa.p1){var na=V[Aa.p1].x,Ba=V[Aa.p1].y;na=100*na/t;Ba=100*Ba/e;na=Math.round(100*na)/100;Ba=Math.round(100*Ba)/100;ja.push('<move x="'+na+'" y="'+Ba+'"/>')}if(null!=Aa.n1){var Pa=V[Aa.p2].x,Ca=V[Aa.p2].y,ua=t,Na=e,Ka=new Qd(V[Aa.p1].x/t,V[Aa.p1].y/e,Aa.n1.x/t,Aa.n1.y/e,V[Aa.p2].x/t,V[Aa.p2].y/
|
|
|
|
|
F.Shapes[P],q=r.FillColor,Z=r.StrokeColor,aa=r.LineWidth,V=r.Points,wa=r.Lines,ja=['<shape strokewidth="inherit"><foreground>'];ja.push("<path>");for(var na=null,ra=0;ra<wa.length;ra++){var Aa=wa[ra];if(na!=Aa.p1){var ma=V[Aa.p1].x,Ba=V[Aa.p1].y;ma=100*ma/t;Ba=100*Ba/e;ma=Math.round(100*ma)/100;Ba=Math.round(100*Ba)/100;ja.push('<move x="'+ma+'" y="'+Ba+'"/>')}if(null!=Aa.n1){var Pa=V[Aa.p2].x,Ca=V[Aa.p2].y,ua=t,Na=e,Ka=new Qd(V[Aa.p1].x/t,V[Aa.p1].y/e,Aa.n1.x/t,Aa.n1.y/e,V[Aa.p2].x/t,V[Aa.p2].y/
|
|
|
|
|
e,Aa.n2.x/t,Aa.n2.y/e);if(2<=Ka.getSize()){Ka.getX(0);Ka.getY(0);Ka.getX(1);Ka.getY(1);Pa=Math.round(100*Pa/ua*100)/100;Ca=Math.round(100*Ca/Na*100)/100;ua=[];Na=[];for(var La=[],l=Ka.getSize(),Ia=0;Ia<l-1;Ia+=3)ua.push(new mxPoint(Ka.getX(Ia),Ka.getY(Ia))),Na.push(new mxPoint(Ka.getX(Ia+1),Ka.getY(Ia+1))),Ia<l-2?La.push(new mxPoint(Ka.getX(Ia+2),Ka.getY(Ia+2))):La.push(new mxPoint(Pa,Ca));var bb="";for(Ia=0;Ia<ua.length;Ia++)bb+='<curve x1="'+ua[Ia].x+'" y1="'+ua[Ia].y+'" x2="'+Na[Ia].x+'" y2="'+
|
|
|
|
|
Na[Ia].y+'" x3="'+La[Ia].x+'" y3="'+La[Ia].y+'"/>';var Ea=bb}else Ea=void 0;ja.push(Ea)}else na=V[Aa.p2].x,Ba=V[Aa.p2].y,na=100*na/t,Ba=100*Ba/e,na=Math.round(100*na)/100,Ba=Math.round(100*Ba)/100,ja.push('<line x="'+na+'" y="'+Ba+'"/>');oa=Aa.p2}ja.push("</path>");ja.push("<fillstroke/>");ja.push("</foreground></shape>");D.push({shapeStencil:"stencil("+Graph.compress(ja.join(""))+")",FillColor:q,LineColor:Z,LineWidth:aa})}LucidImporter.stencilsMap[u]={text:F.Text,w:t,h:e,x:F.BoundingBox.x,y:F.BoundingBox.y,
|
|
|
|
|
Na[Ia].y+'" x3="'+La[Ia].x+'" y3="'+La[Ia].y+'"/>';var Ea=bb}else Ea=void 0;ja.push(Ea)}else ma=V[Aa.p2].x,Ba=V[Aa.p2].y,ma=100*ma/t,Ba=100*Ba/e,ma=Math.round(100*ma)/100,Ba=Math.round(100*Ba)/100,ja.push('<line x="'+ma+'" y="'+Ba+'"/>');na=Aa.p2}ja.push("</path>");ja.push("<fillstroke/>");ja.push("</foreground></shape>");D.push({shapeStencil:"stencil("+Graph.compress(ja.join(""))+")",FillColor:q,LineColor:Z,LineWidth:aa})}LucidImporter.stencilsMap[u]={text:F.Text,w:t,h:e,x:F.BoundingBox.x,y:F.BoundingBox.y,
|
|
|
|
|
stencils:D}}catch(Ra){console.log("Stencil parsing error:",Ra)}}function sc(u,F,D,t,e,P,r,q){u=new mxCell("",new mxGeometry(u,F,0,0),"strokeColor=none;fillColor=none;");u.vertex=!0;r.insert(u);P=[u];D=D.clone();q.insertEdge(D,!1);u.insertEdge(D,!0);P.push(D);t.push(e.addCell(D,null,null,null,null))}function fb(u,F,D,t,e,P,r,q,Z){u=new mxCell("",new mxGeometry(u,F,0,0),"strokeColor=none;fillColor=none;");u.vertex=!0;Z.insert(u);D=new mxCell("",new mxGeometry(D,t,0,0),"strokeColor=none;fillColor=none;");
|
|
|
|
|
D.vertex=!0;Z.insert(D);q=[D];e=e.clone();u.insertEdge(e,!0);D.insertEdge(e,!1);q.push(e);P.push(r.addCell(e,null,null,null,null))}function Sa(u,F,D,t,e,P){t.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";t.style+=b(t.style,e,P,t);F=m(e);t.vertex=!0;u=new mxCell(F,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+u+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");
|
|
|
|
|
u.style+=b(u.style,e,P,u,G);u.geometry.relative=!0;u.geometry.offset=new mxPoint(5,-12);u.vertex=!0;t.insert(u)}function Wa(u,F,D,t,e,P,r,q){e="transparent"!=u?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";P.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";P.style+=b(P.style,r,q,P);P.value=m(r);P.vertex=!0;u=new mxCell(null,new mxGeometry(.5,0,.7*t*F,.7*t*D),e+u+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");
|
|
|
|
|
u.geometry.relative=!0;u.geometry.offset=new mxPoint(-F*t*.35,10+(1-D)*t*.35);u.vertex=!0;u.style+=b(u.style,r,q,u,G);P.insert(u)}function Xc(u,F){return null!=u&&null!=F&&(F==mxConstants.STYLE_ALIGN+"Global"&&(F=mxConstants.STYLE_ALIGN),u.includes(";"+F+"=")||u.substring(0,F.length+1)==F+"=")?!0:!1}function Rd(u,F){function D(t){t=Math.round(parseInt("0x"+t)*F).toString(16);return 1==t.length?"0"+t:t}return"#"+D(u.substr(1,2))+D(u.substr(3,2))+D(u.substr(5,2))}function Ie(u,F,D){var t=h(u),e=t.Properties,
|
|
|
|
|
P=e.BoundingBox,r=Math.round(.75*P.w),q=Math.round(.75*P.h),Z=Math.round(.75*P.x+wc),aa=Math.round(.75*P.y+xc);null==u.Class||"GCPInputDatabase"!==u.Class&&"GCPInputRecord"!==u.Class&&"GCPInputPayment"!==u.Class&&"GCPInputGateway"!==u.Class&&"GCPInputLocalCompute"!==u.Class&&"GCPInputBeacon"!==u.Class&&"GCPInputStorage"!==u.Class&&"GCPInputList"!==u.Class&&"GCPInputStream"!==u.Class&&"GCPInputMobileDevices"!==u.Class&&"GCPInputCircuitBoard"!==u.Class&&"GCPInputLive"!==u.Class&&"GCPInputUsers"!==u.Class&&
|
|
|
|
|
"GCPInputLaptop"!==u.Class&&"GCPInputApplication"!==u.Class&&"GCPInputLightbulb"!==u.Class&&"GCPInputGame"!==u.Class&&"GCPInputDesktop"!==u.Class&&"GCPInputDesktopAndMobile"!==u.Class&&"GCPInputWebcam"!==u.Class&&"GCPInputSpeaker"!==u.Class&&"GCPInputRetail"!==u.Class&&"GCPInputReport"!==u.Class&&"GCPInputPhone"!==u.Class&&"GCPInputBlank"!==u.Class||(q+=20);v=new mxCell("",new mxGeometry(Z,aa,r,q),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=e.ZOrder;var V=null!=u.Class?
|
|
|
|
|
u.Class:null!=t?t.Class:null;switch(V){case "BraceNoteBlock":case "UI2BraceNoteBlock":var wa=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(wa=!0);var ja=null,oa=null,ra=m(e),Aa=e.Rotation?mxUtils.getSizeForString(ra.replace(/\n/g,"<br>"),null,null,Math.abs(r-.125*q)):{width:0,height:0};wa?(ja=new mxCell("",new mxGeometry(r-.125*q,0,.125*q,q),"shape=curlyBracket;rounded=1;"),oa=new mxCell("",new mxGeometry(Aa.height,-2*Aa.width,r-.125*q,q),"strokeColor=none;fillColor=none;")):(ja=new mxCell("",
|
|
|
|
|
new mxGeometry(0,0,.125*q,q),"shape=curlyBracket;rounded=1;flipH=1;"),oa=new mxCell("",new mxGeometry(.125*q-Aa.height,Aa.width,r-.125*q,q),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,t,v);ja.vertex=!0;v.insert(ja);ja.style+=b(ja.style,e,t,ja);oa.vertex=!0;oa.value=ra;v.insert(oa);oa.style+=b(oa.style,e,t,oa,G);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var na=
|
|
|
|
|
"MainText",Ba=null,Pa="HeaderFill_",Ca="BodyFill_",ua=25,Na=25,Ka=0;if(null!=e.Lanes)Ka=e.Lanes.length;else if(null!=e.PrimaryLane){var La=function(gb){if(gb)32>gb?gb=32:208<gb&&(gb=208);else return 0;return.75*gb};Ka=e.PrimaryLane.length;for(var l=q=r=0;l<Ka;l++)r+=e.PrimaryLane[l];for(l=0;l<e.SecondaryLane.length;l++)q+=e.SecondaryLane[l];ua=La(e.PrimaryPoolTitleHeight);Na=La(e.PrimaryLaneTitleHeight);r*=.75;q=.75*q+ua+Na;v.geometry.width=r;v.geometry.height=q;na="poolPrimaryTitleKey";Pa="PrimaryLaneHeaderFill_";
|
|
|
|
|
Ca="CellFill_0,";Ba=e.PrimaryLaneTextAreaIds;if(null==Ba)for(Ba=[],l=0;l<Ka;l++)Ba.push("Primary_"+l)}if(0==e.IsPrimaryLaneVertical){e.Rotation=-1.5707963267948966;var Ia=v.geometry.x,bb=v.geometry.y}var Ea=0!=e.Rotation,Ra=0<V.indexOf("Pool"),ma=0==V.indexOf("BPMN"),Ma=null!=e[na];v.style=(Ra?"swimlane;startSize="+ua+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(Ea?"horizontalStack=0;":
|
|
|
|
|
"");v.style+=b(v.style,e,t,v);Ma&&(v.value=m(e[na]),v.style+=(G?"overflow=block;blockSpacing=1;fontSize=13;"+lb:f(e[na])+p(e[na])+k(e[na])+x(e[na])+C(e[na],v)+J(e[na])+M(e[na])+L(e[na])+Q(e[na]))+U(e[na])+H(e[na]));for(var ya=0,za=[],Qb="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="+Na+";dropTarget=0;rounded=0;"+(Ea?"horizontal=0;":"")+(ma?"swimlaneLine=0;fillColor=none;":""),fa=e.Rotation=0;fa<Ka;fa++){if(null==Ba){var xb=parseFloat(e.Lanes[fa].p);
|
|
|
|
|
l=parseInt(e.Lanes[fa].tid)||fa;var Va="Lane_"+l}else xb=.75*e.PrimaryLane[fa]/r,l=fa,Va=Ba[fa];var rc=r*ya,vc=Ra?ua:0;za.push(new mxCell("",Ea?new mxGeometry(vc,rc,q-vc,r*xb):new mxGeometry(rc,vc,r*xb,q-vc),Qb));za[fa].vertex=!0;v.insert(za[fa]);za[fa].value=m(e[Va]);za[fa].style+=b(za[fa].style,e,t,za[fa],G)+(G?"fontSize=13;":f(e[Va])+p(e[Va])+x(e[Va])+C(e[Va],za[fa])+J(e[Va])+M(e[Va])+L(e[Va])+Q(e[Va]))+U(e[Va])+H(e[Va])+N(e[Pa+l])+K(e[Ca+l]);ya+=xb}null!=Ia&&(v.geometry.x=Ia,v.geometry.y=bb);
|
|
|
|
|
break;case "UMLMultidimensionalSwimlane":var Gb=0,Rb=0,Lb=null,$b=null;if(null!=e.Rows&&null!=e.Columns){Gb=e.Rows.length;Rb=e.Columns.length;var Xa=.75*e.TitleHeight||25,pb=.75*e.TitleWidth||25}else if(null!=e.PrimaryLane&&null!=e.SecondaryLane){Gb=e.SecondaryLane.length;Rb=e.PrimaryLane.length;pb=.75*e.SecondaryLaneTitleHeight||25;Xa=.75*e.PrimaryLaneTitleHeight||25;for(l=q=r=0;l<Gb;l++)q+=e.SecondaryLane[l];for(l=0;l<Rb;l++)r+=e.PrimaryLane[l];r=.75*r+pb;q=.75*q+Xa;v.geometry.width=r;v.geometry.height=
|
|
|
|
|
q;Lb=e.SecondaryLaneTextAreaIds;$b=e.PrimaryLaneTextAreaIds}v.style="group;";var Nc=new mxCell("",new mxGeometry(0,Xa,r,q-Xa),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");Nc.vertex=!0;var Fc=new mxCell("",new mxGeometry(pb,0,r-pb,q),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");Fc.vertex=!0;v.insert(Nc);
|
|
|
|
|
v.insert(Fc);aa=0;var Gc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+pb+";";for(fa=0;fa<Gb;fa++){if(null==Lb){var Sd=.75*parseInt(e.Rows[fa].height);l=parseInt(e.Rows[fa].id)||fa;var Sb="Row_"+l}else Sd=.75*e.SecondaryLane[fa],Sb=Lb[fa];var Hc=new mxCell("",new mxGeometry(0,aa,r,Sd),Gc);aa+=Sd;Hc.vertex=!0;Nc.insert(Hc);Hc.value=m(e[Sb]);Hc.style+=b(Hc.style,e,t,Hc,G)+(G?"fontSize=13;":f(e[Sb])+p(e[Sb])+x(e[Sb])+C(e[Sb],
|
|
|
|
|
u.Class:null!=t?t.Class:null;switch(V){case "BraceNoteBlock":case "UI2BraceNoteBlock":var wa=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(wa=!0);var ja=null,na=null,ra=m(e),Aa=e.Rotation?mxUtils.getSizeForString(ra.replace(/\n/g,"<br>"),null,null,Math.abs(r-.125*q)):{width:0,height:0};wa?(ja=new mxCell("",new mxGeometry(r-.125*q,0,.125*q,q),"shape=curlyBracket;rounded=1;"),na=new mxCell("",new mxGeometry(Aa.height,-2*Aa.width,r-.125*q,q),"strokeColor=none;fillColor=none;")):(ja=new mxCell("",
|
|
|
|
|
new mxGeometry(0,0,.125*q,q),"shape=curlyBracket;rounded=1;flipH=1;"),na=new mxCell("",new mxGeometry(.125*q-Aa.height,Aa.width,r-.125*q,q),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,t,v);ja.vertex=!0;v.insert(ja);ja.style+=b(ja.style,e,t,ja);na.vertex=!0;na.value=ra;v.insert(na);na.style+=b(na.style,e,t,na,G);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var ma=
|
|
|
|
|
"MainText",Ba=null,Pa="HeaderFill_",Ca="BodyFill_",ua=25,Na=25,Ka=0;if(null!=e.Lanes)Ka=e.Lanes.length;else if(null!=e.PrimaryLane){var La=function(gb){if(gb)32>gb?gb=32:208<gb&&(gb=208);else return 0;return.75*gb};Ka=e.PrimaryLane.length;for(var l=q=r=0;l<Ka;l++)r+=e.PrimaryLane[l];for(l=0;l<e.SecondaryLane.length;l++)q+=e.SecondaryLane[l];ua=La(e.PrimaryPoolTitleHeight);Na=La(e.PrimaryLaneTitleHeight);r*=.75;q=.75*q+ua+Na;v.geometry.width=r;v.geometry.height=q;ma="poolPrimaryTitleKey";Pa="PrimaryLaneHeaderFill_";
|
|
|
|
|
Ca="CellFill_0,";Ba=e.PrimaryLaneTextAreaIds;if(null==Ba)for(Ba=[],l=0;l<Ka;l++)Ba.push("Primary_"+l)}if(0==e.IsPrimaryLaneVertical){e.Rotation=-1.5707963267948966;var Ia=v.geometry.x,bb=v.geometry.y}var Ea=0!=e.Rotation,Ra=0<V.indexOf("Pool"),la=0==V.indexOf("BPMN"),Ma=null!=e[ma];v.style=(Ra?"swimlane;startSize="+ua+";":"fillColor=none;strokeColor=none;pointerEvents=0;fontStyle=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(Ea?"horizontalStack=0;":
|
|
|
|
|
"");v.style+=b(v.style,e,t,v);Ma&&(v.value=m(e[ma]),v.style+=(G?"overflow=block;blockSpacing=1;fontSize=13;"+lb:f(e[ma])+p(e[ma])+k(e[ma])+x(e[ma])+C(e[ma],v)+J(e[ma])+M(e[ma])+L(e[ma])+Q(e[ma]))+U(e[ma])+H(e[ma]));for(var ya=0,za=[],Pb="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;fontStyle=0;startSize="+Na+";dropTarget=0;rounded=0;"+(Ea?"horizontal=0;":"")+(la?"swimlaneLine=0;fillColor=none;":""),fa=e.Rotation=0;fa<Ka;fa++){if(null==Ba){var xb=parseFloat(e.Lanes[fa].p);
|
|
|
|
|
l=parseInt(e.Lanes[fa].tid)||fa;var Va="Lane_"+l}else xb=.75*e.PrimaryLane[fa]/r,l=fa,Va=Ba[fa];var rc=r*ya,vc=Ra?ua:0;za.push(new mxCell("",Ea?new mxGeometry(vc,rc,q-vc,r*xb):new mxGeometry(rc,vc,r*xb,q-vc),Pb));za[fa].vertex=!0;v.insert(za[fa]);za[fa].value=m(e[Va]);za[fa].style+=b(za[fa].style,e,t,za[fa],G)+(G?"fontSize=13;":f(e[Va])+p(e[Va])+x(e[Va])+C(e[Va],za[fa])+J(e[Va])+M(e[Va])+L(e[Va])+Q(e[Va]))+U(e[Va])+H(e[Va])+N(e[Pa+l])+K(e[Ca+l]);ya+=xb}null!=Ia&&(v.geometry.x=Ia,v.geometry.y=bb);
|
|
|
|
|
break;case "UMLMultidimensionalSwimlane":var Fb=0,Rb=0,Kb=null,$b=null;if(null!=e.Rows&&null!=e.Columns){Fb=e.Rows.length;Rb=e.Columns.length;var Xa=.75*e.TitleHeight||25,pb=.75*e.TitleWidth||25}else if(null!=e.PrimaryLane&&null!=e.SecondaryLane){Fb=e.SecondaryLane.length;Rb=e.PrimaryLane.length;pb=.75*e.SecondaryLaneTitleHeight||25;Xa=.75*e.PrimaryLaneTitleHeight||25;for(l=q=r=0;l<Fb;l++)q+=e.SecondaryLane[l];for(l=0;l<Rb;l++)r+=e.PrimaryLane[l];r=.75*r+pb;q=.75*q+Xa;v.geometry.width=r;v.geometry.height=
|
|
|
|
|
q;Kb=e.SecondaryLaneTextAreaIds;$b=e.PrimaryLaneTextAreaIds}v.style="group;";var Nc=new mxCell("",new mxGeometry(0,Xa,r,q-Xa),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");Nc.vertex=!0;var Fc=new mxCell("",new mxGeometry(pb,0,r-pb,q),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");Fc.vertex=!0;v.insert(Nc);
|
|
|
|
|
v.insert(Fc);aa=0;var Gc="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;fontStyle=0;startSize="+pb+";";for(fa=0;fa<Fb;fa++){if(null==Kb){var Sd=.75*parseInt(e.Rows[fa].height);l=parseInt(e.Rows[fa].id)||fa;var Sb="Row_"+l}else Sd=.75*e.SecondaryLane[fa],Sb=Kb[fa];var Hc=new mxCell("",new mxGeometry(0,aa,r,Sd),Gc);aa+=Sd;Hc.vertex=!0;Nc.insert(Hc);Hc.value=m(e[Sb]);Hc.style+=b(Hc.style,e,t,Hc,G)+(G?"fontSize=13;":f(e[Sb])+p(e[Sb])+x(e[Sb])+C(e[Sb],
|
|
|
|
|
Hc)+J(e[Sb])+M(e[Sb])+L(e[Sb])+Q(e[Sb]))+U(e[Sb])+H(e[Sb])}var Ef="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;fontStyle=0;startSize="+Xa+";";for(fa=Z=0;fa<Rb;fa++){if(null==$b){var Yc=.75*parseInt(e.Columns[fa].width);l=parseInt(e.Columns[fa].id)||fa;var Tb="Column_"+l}else Yc=.75*e.PrimaryLane[fa],Tb=$b[fa];var Ic=new mxCell("",new mxGeometry(Z,0,Yc,q),Ef);Z+=Yc;Ic.vertex=!0;Fc.insert(Ic);Ic.value=m(e[Tb]);Ic.style+=b(Ic.style,e,t,Ic,G)+(G?"fontSize=13;":
|
|
|
|
|
f(e[Tb])+p(e[Tb])+x(e[Tb])+C(e[Tb],Ic)+J(e[Tb])+M(e[Tb])+L(e[Tb])+Q(e[Tb]))+U(e[Tb])+H(e[Tb])}break;case "UMLStateBlock":if(0==e.Composite)v.style="rounded=1;arcSize=20",v.value=m(e.State,!0),v.style+=b(v.style,e,t,v,G);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=m(e.State,!0);v.style+=b(v.style,e,t,v,G);v.style+=ca(e,t).replace("fillColor","swimlaneFillColor");var zb=
|
|
|
|
|
new mxCell("",new mxGeometry(0,25,r,q-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");zb.value=m(e.Action,!0);zb.style+=b(zb.style,e,t,zb,G);zb.vertex=!0;v.insert(zb)}break;case "GSDFDProcessBlock":var he=Math.round(.75*e.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+he;v.value=m(e.Number,!0);v.style+=b(v.style,e,t,v,G);v.style+=ca(e,t).replace("fillColor","swimlaneFillColor");zb=new mxCell("",new mxGeometry(0,he,r,q-he),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");
|
|
|
|
|
zb.value=m(e.Text,!0);zb.style+=b(zb.style,e,t,zb,G);zb.vertex=!0;v.insert(zb);break;case "AndroidDevice":if(null!=e.AndroidDeviceName){var mb=ba(e,t,v);v.style="fillColor=#000000;strokeColor=#000000;";var yc=null,Zc=null,$c=null;if("Tablet"==e.AndroidDeviceName||"Mini Tablet"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&"Tablet"==e.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",yc=new mxCell("",new mxGeometry(.112,.077,.77*r,.85*q),mb),e.KeyboardShown&&(Zc=new mxCell("",new mxGeometry(.112,
|
|
|
|
|
f(e[Tb])+p(e[Tb])+x(e[Tb])+C(e[Tb],Ic)+J(e[Tb])+M(e[Tb])+L(e[Tb])+Q(e[Tb]))+U(e[Tb])+H(e[Tb])}break;case "UMLStateBlock":if(0==e.Composite)v.style="rounded=1;arcSize=20",v.value=m(e.State,!0),v.style+=b(v.style,e,t,v,G);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=m(e.State,!0);v.style+=b(v.style,e,t,v,G);v.style+=ca(e,t).replace("fillColor","swimlaneFillColor");var yb=
|
|
|
|
|
new mxCell("",new mxGeometry(0,25,r,q-25),"rounded=1;arcSize=20;strokeColor=none;fillColor=none");yb.value=m(e.Action,!0);yb.style+=b(yb.style,e,t,yb,G);yb.vertex=!0;v.insert(yb)}break;case "GSDFDProcessBlock":var he=Math.round(.75*e.nameHeight);v.style="shape=swimlane;html=1;rounded=1;arcSize=10;collapsible=0;fontStyle=0;startSize="+he;v.value=m(e.Number,!0);v.style+=b(v.style,e,t,v,G);v.style+=ca(e,t).replace("fillColor","swimlaneFillColor");yb=new mxCell("",new mxGeometry(0,he,r,q-he),"rounded=1;arcSize=10;strokeColor=none;fillColor=none");
|
|
|
|
|
yb.value=m(e.Text,!0);yb.style+=b(yb.style,e,t,yb,G);yb.vertex=!0;v.insert(yb);break;case "AndroidDevice":if(null!=e.AndroidDeviceName){var mb=ba(e,t,v);v.style="fillColor=#000000;strokeColor=#000000;";var yc=null,Zc=null,$c=null;if("Tablet"==e.AndroidDeviceName||"Mini Tablet"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&"Tablet"==e.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",yc=new mxCell("",new mxGeometry(.112,.077,.77*r,.85*q),mb),e.KeyboardShown&&(Zc=new mxCell("",new mxGeometry(.112,
|
|
|
|
|
.727,.77*r,.2*q),"shape=mxgraph.android.keyboard;"+mb)),e.FullScreen||($c=new mxCell("",new mxGeometry(.112,.077,.77*r,.03*q),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*q+";"+mb));else if("Large Phone"==e.AndroidDeviceName||"Phone"==e.AndroidDeviceName||"custom"==e.AndroidDeviceName&&"Phone"==e.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",yc=new mxCell("",new mxGeometry(.04,.092,.92*r,.816*q),mb),e.KeyboardShown&&(Zc=new mxCell("",
|
|
|
|
|
new mxGeometry(.04,.708,.92*r,.2*q),"shape=mxgraph.android.keyboard;"+mb)),e.FullScreen||($c=new mxCell("",new mxGeometry(.04,.092,.92*r,.03*q),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*q+";"+mb));yc.vertex=!0;yc.geometry.relative=!0;v.insert(yc);"Dark"==e.Scheme?yc.style+="fillColor=#111111;":"Light"==e.Scheme&&(yc.style+="fillColor=#ffffff;");null!=Zc&&(Zc.vertex=!0,Zc.geometry.relative=!0,v.insert(Zc));null!=$c&&($c.vertex=!0,$c.geometry.relative=
|
|
|
|
|
!0,v.insert($c))}v.style+=b(v.style,e,t,v);break;case "AndroidAlertDialog":var ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);var Qa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Qa.vertex=!0;v.insert(Qa);var qd=new mxCell("",new mxGeometry(0,30,r,q-30),"strokeColor=none;fillColor=none;verticalAlign=top;");qd.vertex=!0;v.insert(qd);var ib=new mxCell("",new mxGeometry(0,q-25,.5*r,25),"fillColor=none;");
|
|
|
|
@ -87,16 +87,16 @@ ib.vertex=!0;v.insert(ib);var jb=new mxCell("",new mxGeometry(.5*r,q-25,.5*r,25)
|
|
|
|
|
ib.style+="strokeColor=#E2E2E2;",jb.style+="strokeColor=#E2E2E2;");v.style+=b(v.style,e,t,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":ac=new mxCell("",new mxGeometry(0,0,r,30),"strokeColor=none;fillColor=none;spacingLeft=9;");ac.vertex=!0;v.insert(ac);ac.value=m(e.DialogTitle);ac.style+=a(e.DialogTitle,G);Qa=new mxCell("",new mxGeometry(0,25,r,10),"shape=line;strokeColor=#33B5E5;");Qa.vertex=!0;v.insert(Qa);ib=new mxCell("",new mxGeometry(0,q-25,.5*r,25),"fillColor=none;");ib.vertex=
|
|
|
|
|
!0;v.insert(ib);ib.value=m(e.Button_0);ib.style+=a(e.Button_0,G);jb=new mxCell("",new mxGeometry(.5*r,q-25,.5*r,25),"fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=m(e.Button_1);jb.style+=a(e.Button_1,G);var ad=new mxCell("",new mxGeometry(.5*r-4,41,8,4),"shape=triangle;direction=north;");ad.vertex=!0;v.insert(ad);var bd=new mxCell("",new mxGeometry(.25*r-4,41,8,4),"shape=triangle;direction=north;");bd.vertex=!0;v.insert(bd);var cd=new mxCell("",new mxGeometry(.75*r-4,41,8,4),"shape=triangle;direction=north;");
|
|
|
|
|
cd.vertex=!0;v.insert(cd);var rd=new mxCell("",new mxGeometry(.375*r,50,.2*r,15),"strokeColor=none;fillColor=none;");rd.vertex=!0;v.insert(rd);rd.value=m(e.Label_1);rd.style+=a(e.Label_1,G);var sd=new mxCell("",new mxGeometry(.125*r,50,.2*r,15),"strokeColor=none;fillColor=none;");sd.vertex=!0;v.insert(sd);sd.value=m(e.Label_0);sd.style+=a(e.Label_0,G);var dd=null;"AndroidDateDialog"==u.Class&&(dd=new mxCell("",new mxGeometry(.625*r,50,.2*r,15),"strokeColor=none;fillColor=none;"),dd.vertex=!0,v.insert(dd),
|
|
|
|
|
dd.value=m(e.Label_2),dd.style+=a(e.Label_2,G));var Ab=new mxCell("",new mxGeometry(.43*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ab.vertex=!0;v.insert(Ab);var Bb=new mxCell("",new mxGeometry(.18*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Bb.vertex=!0;v.insert(Bb);var Le=new mxCell("",new mxGeometry(.68*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Le.vertex=!0;v.insert(Le);var td=new mxCell("",new mxGeometry(.375*r,65,.2*r,15),"strokeColor=none;fillColor=none;");td.vertex=!0;v.insert(td);
|
|
|
|
|
dd.value=m(e.Label_2),dd.style+=a(e.Label_2,G));var zb=new mxCell("",new mxGeometry(.43*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");zb.vertex=!0;v.insert(zb);var Ab=new mxCell("",new mxGeometry(.18*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ab.vertex=!0;v.insert(Ab);var Le=new mxCell("",new mxGeometry(.68*r,60,.14*r,10),"shape=line;strokeColor=#33B5E5;");Le.vertex=!0;v.insert(Le);var td=new mxCell("",new mxGeometry(.375*r,65,.2*r,15),"strokeColor=none;fillColor=none;");td.vertex=!0;v.insert(td);
|
|
|
|
|
td.value=m(e.Label_4);td.style+=a(e.Label_4,G);var ed=null;"AndroidTimeDialog"==u.Class&&(ed=new mxCell("",new mxGeometry(.3*r,65,.1*r,15),"strokeColor=none;fillColor=none;"),ed.vertex=!0,v.insert(ed),ed.value=m(e.Label_Colon),ed.style+=a(e.Label_Colon,G));var ud=new mxCell("",new mxGeometry(.125*r,65,.2*r,15),"strokeColor=none;fillColor=none;");ud.vertex=!0;v.insert(ud);ud.value=m(e.Label_3);ud.style+=a(e.Label_3,G);var vd=new mxCell("",new mxGeometry(.625*r,65,.2*r,15),"strokeColor=none;fillColor=none;");
|
|
|
|
|
vd.vertex=!0;v.insert(vd);vd.value=m(e.Label_5);vd.style+=a(e.Label_5,G);var Me=new mxCell("",new mxGeometry(.43*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Me.vertex=!0;v.insert(Me);var Ne=new mxCell("",new mxGeometry(.18*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Ne.vertex=!0;v.insert(Ne);var Oe=new mxCell("",new mxGeometry(.68*r,75,.14*r,10),"shape=line;strokeColor=#33B5E5;");Oe.vertex=!0;v.insert(Oe);var wd=new mxCell("",new mxGeometry(.375*r,80,.2*r,15),"strokeColor=none;fillColor=none;");
|
|
|
|
|
wd.vertex=!0;v.insert(wd);wd.value=m(e.Label_7);wd.style+=a(e.Label_7,G);var xd=new mxCell("",new mxGeometry(.125*r,80,.2*r,15),"strokeColor=none;fillColor=none;");xd.vertex=!0;v.insert(xd);xd.value=m(e.Label_6);xd.style+=a(e.Label_6,G);var yd=new mxCell("",new mxGeometry(.625*r,80,.2*r,15),"strokeColor=none;fillColor=none;");yd.vertex=!0;v.insert(yd);yd.value=m(e.Label_8);yd.style+=a(e.Label_8,G);var fd=new mxCell("",new mxGeometry(.5*r-4,99,8,4),"shape=triangle;direction=south;");fd.vertex=!0;v.insert(fd);
|
|
|
|
|
var gd=new mxCell("",new mxGeometry(.25*r-4,99,8,4),"shape=triangle;direction=south;");gd.vertex=!0;v.insert(gd);var hd=new mxCell("",new mxGeometry(.75*r-4,99,8,4),"shape=triangle;direction=south;");hd.vertex=!0;v.insert(hd);"Dark"==e.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",ib.style+="strokeColor=#353535;",jb.style+="strokeColor=#353535;",ad.style+="strokeColor=none;fillColor=#7E7E7E;",bd.style+="strokeColor=none;fillColor=#7E7E7E;",cd.style+="strokeColor=none;fillColor=#7E7E7E;",
|
|
|
|
|
fd.style+="strokeColor=none;fillColor=#7E7E7E;",gd.style+="strokeColor=none;fillColor=#7E7E7E;",hd.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",ib.style+="strokeColor=#E2E2E2;",jb.style+="strokeColor=#E2E2E2;",ad.style+="strokeColor=none;fillColor=#939393;",bd.style+="strokeColor=none;fillColor=#939393;",cd.style+="strokeColor=none;fillColor=#939393;",fd.style+="strokeColor=none;fillColor=#939393;",gd.style+="strokeColor=none;fillColor=#939393;",
|
|
|
|
|
hd.style+="strokeColor=none;fillColor=#939393;");v.style+=b(v.style,e,t,v);break;case "AndroidListItems":var Cb=q,zc=0;if(e.ShowHeader){zc=8;var Oc=new mxCell("",new mxGeometry(0,0,r,zc),"strokeColor=none;fillColor=none;");Oc.vertex=!0;v.insert(Oc);Oc.value=m(e.Header);Oc.style+=a(e.Header,G);Cb-=zc;var Pe=new mxCell("",new mxGeometry(0,zc-2,r,4),"shape=line;strokeColor=#999999;");Pe.vertex=!0;v.insert(Pe)}var bc=parseInt(e.Items);0<bc&&(Cb/=bc);var X=[];Qa=[];for(l=0;l<bc;l++)X[l]=new mxCell("",
|
|
|
|
|
new mxGeometry(0,zc+l*Cb,r,Cb),"strokeColor=none;fillColor=none;"),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["Item_"+l]),X[l].style+=a(e["Item_"+l],G),0<l&&(Qa[l]=new mxCell("",new mxGeometry(0,zc+l*Cb-2,r,4),"shape=line;"),Qa[l].vertex=!0,v.insert(Qa[l]),Qa[l].style="Dark"==e.Scheme?Qa[l].style+"strokeColor=#ffffff;":Qa[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=b(v.style,e,t,v);
|
|
|
|
|
break;case "AndroidTabs":var cc=parseInt(e.Tabs),Hb=r;0<cc&&(Hb/=cc);var Ta=[];Qa=[];for(l=0;l<cc;l++)Ta[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,q),"strokeColor=none;fillColor=none;"),Ta[l].vertex=!0,v.insert(Ta[l]),Ta[l].value=m(e["Tab_"+l]),Ta[l].style+=a(e["Tab_"+l],G),0<l&&(Qa[l]=new mxCell("",new mxGeometry(l*Hb-2,.2*q,4,.6*q),"shape=line;direction=north;"),Qa[l].vertex=!0,v.insert(Qa[l]),Qa[l].style="Dark"==e.Scheme?Qa[l].style+"strokeColor=#484848;":Qa[l].style+"strokeColor=#CCCCCC;");var Qe=
|
|
|
|
|
new mxCell("",new mxGeometry(e.Selected*Hb+2,q-3,Hb-4,3),"strokeColor=none;fillColor=#33B5E5;");Qe.vertex=!0;v.insert(Qe);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=b(v.style,e,t,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(Z),Math.round(aa+.25*q),Math.round(r),Math.round(.5*q)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var zd=new mxCell("",new mxGeometry(0,
|
|
|
|
|
hd.style+="strokeColor=none;fillColor=#939393;");v.style+=b(v.style,e,t,v);break;case "AndroidListItems":var Bb=q,zc=0;if(e.ShowHeader){zc=8;var Oc=new mxCell("",new mxGeometry(0,0,r,zc),"strokeColor=none;fillColor=none;");Oc.vertex=!0;v.insert(Oc);Oc.value=m(e.Header);Oc.style+=a(e.Header,G);Bb-=zc;var Pe=new mxCell("",new mxGeometry(0,zc-2,r,4),"shape=line;strokeColor=#999999;");Pe.vertex=!0;v.insert(Pe)}var bc=parseInt(e.Items);0<bc&&(Bb/=bc);var X=[];Qa=[];for(l=0;l<bc;l++)X[l]=new mxCell("",
|
|
|
|
|
new mxGeometry(0,zc+l*Bb,r,Bb),"strokeColor=none;fillColor=none;"),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["Item_"+l]),X[l].style+=a(e["Item_"+l],G),0<l&&(Qa[l]=new mxCell("",new mxGeometry(0,zc+l*Bb-2,r,4),"shape=line;"),Qa[l].vertex=!0,v.insert(Qa[l]),Qa[l].style="Dark"==e.Scheme?Qa[l].style+"strokeColor=#ffffff;":Qa[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=b(v.style,e,t,v);
|
|
|
|
|
break;case "AndroidTabs":var cc=parseInt(e.Tabs),Gb=r;0<cc&&(Gb/=cc);var Ta=[];Qa=[];for(l=0;l<cc;l++)Ta[l]=new mxCell("",new mxGeometry(l*Gb,0,Gb,q),"strokeColor=none;fillColor=none;"),Ta[l].vertex=!0,v.insert(Ta[l]),Ta[l].value=m(e["Tab_"+l]),Ta[l].style+=a(e["Tab_"+l],G),0<l&&(Qa[l]=new mxCell("",new mxGeometry(l*Gb-2,.2*q,4,.6*q),"shape=line;direction=north;"),Qa[l].vertex=!0,v.insert(Qa[l]),Qa[l].style="Dark"==e.Scheme?Qa[l].style+"strokeColor=#484848;":Qa[l].style+"strokeColor=#CCCCCC;");var Qe=
|
|
|
|
|
new mxCell("",new mxGeometry(e.Selected*Gb+2,q-3,Gb-4,3),"strokeColor=none;fillColor=#33B5E5;");Qe.vertex=!0;v.insert(Qe);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=b(v.style,e,t,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(Z),Math.round(aa+.25*q),Math.round(r),Math.round(.5*q)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;");v.vertex=!0;var zd=new mxCell("",new mxGeometry(0,
|
|
|
|
|
0,r*e.BarPosition,Math.round(.5*q)),"strokeColor=none;fillColor=#33B5E5;");zd.vertex=!0;v.insert(zd);v.style="Dark"==e.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=b(v.style,e,t,v);break;case "AndroidImageBlock":v.style="Dark"==e.Scheme?v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#7E7E7E;fillColor=#111111;":v.style+"shape=mxgraph.mockup.graphics.simpleIcon;strokeColor=#939393;fillColor=#ffffff;";v.style+=b(v.style,e,
|
|
|
|
|
t,v);break;case "AndroidTextBlock":v.style="Dark"==e.Scheme?e.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":e.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=m(e.Label);v.style+=a(e.Label,G);v.style+=b(v.style,e,t,v,G);break;case "AndroidActionBar":v.style+="strokeColor=none;";switch(e.BarBackground){case "Blue":v.style+="fillColor=#002E3E;";break;case "Gray":v.style+="fillColor=#DDDDDD;";
|
|
|
|
|
break;case "Dark Gray":v.style+="fillColor=#474747;";break;case "White":v.style+="fillColor=#ffffff;"}if(e.HighlightShow){var Ac=null;Ac=e.HighlightTop?new mxCell("",new mxGeometry(0,0,r,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,q-2,r,2),"strokeColor=none;");Ac.vertex=!0;v.insert(Ac);switch(e.HighlightColor){case "Blue":Ac.style+="fillColor=#33B5E5;";break;case "Dark Gray":Ac.style+="fillColor=#B0B0B0;";break;case "White":Ac.style+="fillColor=#ffffff;"}}if(e.VlignShow){var id=new mxCell("",
|
|
|
|
@ -104,27 +104,27 @@ new mxGeometry(20,5,2,q-10),"shape=line;direction=north;");id.vertex=!0;v.insert
|
|
|
|
|
break;case "AndroidTextBox":v.value=m(e.Label);v.style+=a(e.Label,G);var Ad=new mxCell("",new mxGeometry(2,q-6,r-4,4),"shape=partialRectangle;top=0;fillColor=none;");Ad.vertex=!0;v.insert(Ad);v.style="Dark"==e.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";Ad.style=e.TextFocused?Ad.style+"strokeColor=#33B5E5;":Ad.style+"strokeColor=#A9A9A9;";v.style+=b(v.style,e,t,v);break;case "AndroidRadioButton":var Pc=null;e.Checked&&(Pc=new mxCell("",new mxGeometry(.15*
|
|
|
|
|
r,.15*q,.7*r,.7*q),"ellipse;fillColor=#33B5E5;strokeWidth=1;"),Pc.vertex=!0,v.insert(Pc));"Dark"==e.Scheme?(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;strokeColor=#272727;",e.Checked?(Pc.style+="strokeColor=#1F5C73;",v.style+="fillColor=#193C49;"):v.style+="fillColor=#111111;"):(v.style+="shape=ellipse;perimeter=ellipsePerimeter;strokeWidth=1;fillColor=#ffffff;strokeColor=#5C5C5C;",e.Checked&&(Pc.style+="strokeColor=#999999;"));v.style+=b(v.style,e,t,v);break;case "AndroidCheckBox":var ie=
|
|
|
|
|
null;e.Checked&&(ie=new mxCell("",new mxGeometry(.25*r,.05*-q,r,.8*q),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),ie.vertex=!0,v.insert(ie));v.style="Dark"==e.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=b(v.style,e,t,v);break;case "AndroidToggle":v.style="Dark"==e.Scheme?e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":
|
|
|
|
|
e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";v.style+=b(v.style,e,t,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+e.BarPosition+";fillColor=#33b5e5;";v.style+=b(v.style,e,t,v);break;case "iOSSegmentedControl":cc=parseInt(e.Tabs);Hb=r;v.style+="strokeColor=none;fillColor=none;";0<cc&&(Hb/=cc);Ta=[];Qa=[];for(l=0;l<cc;l++)Ta[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,q),
|
|
|
|
|
e.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";v.style+=b(v.style,e,t,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+e.BarPosition+";fillColor=#33b5e5;";v.style+=b(v.style,e,t,v);break;case "iOSSegmentedControl":cc=parseInt(e.Tabs);Gb=r;v.style+="strokeColor=none;fillColor=none;";0<cc&&(Gb/=cc);Ta=[];Qa=[];for(l=0;l<cc;l++)Ta[l]=new mxCell("",new mxGeometry(l*Gb,0,Gb,q),
|
|
|
|
|
"strokeColor="+e.FillColor+";"),Ta[l].vertex=!0,v.insert(Ta[l]),Ta[l].value=m(e["Tab_"+l]),Ta[l].style+=a(e["Tab_"+l],G),Ta[l].style=e.Selected==l?Ta[l].style+ca(e,t):Ta[l].style+"fillColor=none;";v.style+=b(v.style,e,t,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+e.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*e.BarPosition+";";v.style+=b(v.style,e,t,v);break;case "iOSProgressBar":v=new mxCell("",new mxGeometry(Math.round(Z),Math.round(aa+.25*q),Math.round(r),
|
|
|
|
|
Math.round(.5*q)),"html=1;overflow=block;blockSpacing=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;zd=new mxCell("",new mxGeometry(0,0,r*e.BarPosition,Math.round(.5*q)),"strokeColor=none;"+ca(e,t));zd.vertex=!0;v.insert(zd);v.style+=b(v.style,e,t,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=b(v.style,e,t,v);break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";var Da=new mxCell(m(e.Text),
|
|
|
|
|
new mxGeometry(.35*r,0,.3*r,q),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.Text,G);var Db=new mxCell(m(e.Carrier),new mxGeometry(.09*r,0,.2*r,q),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.style+=a(e.Carrier,G);v.style+=b(v.style,e,t,v);break;case "iOSSearchBar":v.value=m(e.Search);v.style+="strokeColor=none;";v.style+=b(v.style,e,t,v,G)+a(e.Search,G);var Ja=new mxCell("",new mxGeometry(.3*r,.3*q,.4*q,.4*q),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");
|
|
|
|
|
Ja.vertex=!0;v.insert(Ja);break;case "iOSNavBar":v.value=m(e.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+a(e.Title,G);v.style+=b(v.style,e,t,v,G);Da=new mxCell(m(e.LeftText),new mxGeometry(.03*r,0,.3*r,q),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.LeftText,G);Db=new mxCell(m(e.RightText),new mxGeometry(.65*r,0,.3*r,q),"strokeColor=none;fillColor=none;");Db.vertex=!0;v.insert(Db);Db.style+=a(e.RightText,G);Ja=new mxCell("",new mxGeometry(.02*
|
|
|
|
|
r,.2*q,.3*q,.5*q),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");Ja.vertex=!0;v.insert(Ja);break;case "iOSTabs":cc=parseInt(e.Tabs);Hb=r;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=b(v.style,e,t,v);0<cc&&(Hb/=cc);Ta=[];Qa=[];for(l=0;l<cc;l++)Ta[l]=new mxCell("",new mxGeometry(l*Hb,0,Hb,q),"strokeColor=none;"),Ta[l].vertex=!0,v.insert(Ta[l]),Ta[l].value=m(e["Tab_"+l]),Ta[l].style+=G?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+
|
|
|
|
|
new mxGeometry(.35*r,0,.3*r,q),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.Text,G);var Cb=new mxCell(m(e.Carrier),new mxGeometry(.09*r,0,.2*r,q),"strokeColor=none;fillColor=none;");Cb.vertex=!0;v.insert(Cb);Cb.style+=a(e.Carrier,G);v.style+=b(v.style,e,t,v);break;case "iOSSearchBar":v.value=m(e.Search);v.style+="strokeColor=none;";v.style+=b(v.style,e,t,v,G)+a(e.Search,G);var Ja=new mxCell("",new mxGeometry(.3*r,.3*q,.4*q,.4*q),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");
|
|
|
|
|
Ja.vertex=!0;v.insert(Ja);break;case "iOSNavBar":v.value=m(e.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;"+a(e.Title,G);v.style+=b(v.style,e,t,v,G);Da=new mxCell(m(e.LeftText),new mxGeometry(.03*r,0,.3*r,q),"strokeColor=none;fillColor=none;");Da.vertex=!0;v.insert(Da);Da.style+=a(e.LeftText,G);Cb=new mxCell(m(e.RightText),new mxGeometry(.65*r,0,.3*r,q),"strokeColor=none;fillColor=none;");Cb.vertex=!0;v.insert(Cb);Cb.style+=a(e.RightText,G);Ja=new mxCell("",new mxGeometry(.02*
|
|
|
|
|
r,.2*q,.3*q,.5*q),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");Ja.vertex=!0;v.insert(Ja);break;case "iOSTabs":cc=parseInt(e.Tabs);Gb=r;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=b(v.style,e,t,v);0<cc&&(Gb/=cc);Ta=[];Qa=[];for(l=0;l<cc;l++)Ta[l]=new mxCell("",new mxGeometry(l*Gb,0,Gb,q),"strokeColor=none;"),Ta[l].vertex=!0,v.insert(Ta[l]),Ta[l].value=m(e["Tab_"+l]),Ta[l].style+=G?"overflow=block;blockSpacing=1;html=1;fontSize=13;"+
|
|
|
|
|
lb:f(e["Tab_"+l])+k(e["Tab_"+l])+p(e["Tab_"+l])+x(e["Tab_"+l])+C(e["Tab_"+l])+J(e["Tab_"+l])+M(e["Tab_"+l])+L(e["Tab_"+l])+Q(e["Tab_"+l])+U(e["Tab_"+l]),Ta[l].style+="verticalAlign=bottom;",Ta[l].style=e.Selected==l?Ta[l].style+"fillColor=#BBBBBB;":Ta[l].style+"fillColor=none;";break;case "iOSDatePicker":var dc=new mxCell("",new mxGeometry(0,0,.5*r,.2*q),"strokeColor=none;fillColor=none;");dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);var ec=new mxCell("",new mxGeometry(.5*
|
|
|
|
|
r,0,.15*r,.2*q),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);var fc=new mxCell("",new mxGeometry(.65*r,0,.15*r,.2*q),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);var gc=new mxCell("",new mxGeometry(0,.2*q,.5*r,.2*q),"strokeColor=none;fillColor=none;");gc.vertex=!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,G);var hc=new mxCell("",new mxGeometry(.5*r,.2*
|
|
|
|
|
q,.15*r,.2*q),"strokeColor=none;fillColor=none;");hc.vertex=!0;v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);var ic=new mxCell("",new mxGeometry(.65*r,.2*q,.15*r,.2*q),"strokeColor=none;fillColor=none;");ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);var qb=new mxCell("",new mxGeometry(0,.4*q,.5*r,.2*q),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=m(e.Option13);qb.style+=a(e.Option13,G);var rb=new mxCell("",new mxGeometry(.5*r,
|
|
|
|
|
.4*q,.15*r,.2*q),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option23);rb.style+=a(e.Option23,G);var jc=new mxCell("",new mxGeometry(.65*r,.4*q,.15*r,.2*q),"strokeColor=none;fillColor=none;");jc.vertex=!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);var sb=new mxCell("",new mxGeometry(.8*r,.4*q,.15*r,.2*q),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option43);sb.style+=a(e.Option43,G);var tb=new mxCell("",new mxGeometry(0,
|
|
|
|
|
.6*q,.5*r,.2*q),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option14);tb.style+=a(e.Option14,G);var kc=new mxCell("",new mxGeometry(.5*r,.6*q,.15*r,.2*q),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);var lc=new mxCell("",new mxGeometry(.65*r,.6*q,.15*r,.2*q),"strokeColor=none;fillColor=none;");lc.vertex=!0;v.insert(lc);lc.value=m(e.Option34);lc.style+=a(e.Option34,G);var mc=new mxCell("",new mxGeometry(.8*
|
|
|
|
|
r,.6*q,.15*r,.2*q),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=m(e.Option44);mc.style+=a(e.Option44,G);var ub=new mxCell("",new mxGeometry(0,.8*q,.5*r,.2*q),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option15);ub.style+=a(e.Option15,G);var nc=new mxCell("",new mxGeometry(.5*r,.8*q,.15*r,.2*q),"strokeColor=none;fillColor=none;");nc.vertex=!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);var oc=new mxCell("",new mxGeometry(.65*
|
|
|
|
|
r,.8*q,.15*r,.2*q),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);Ab=new mxCell("",new mxGeometry(0,.4*q-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,.6*q-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=b(v.style,e,t,v);break;case "iOSTimePicker":dc=new mxCell("",new mxGeometry(0,0,.25*r,.2*q),"strokeColor=none;fillColor=none;");
|
|
|
|
|
r,.8*q,.15*r,.2*q),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);zb=new mxCell("",new mxGeometry(0,.4*q-2,r,4),"shape=line;strokeColor=#888888;");zb.vertex=!0;v.insert(zb);Ab=new mxCell("",new mxGeometry(0,.6*q-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);v.style+="strokeColor=none;";v.style+=b(v.style,e,t,v);break;case "iOSTimePicker":dc=new mxCell("",new mxGeometry(0,0,.25*r,.2*q),"strokeColor=none;fillColor=none;");
|
|
|
|
|
dc.vertex=!0;v.insert(dc);dc.value=m(e.Option11);dc.style+=a(e.Option11,G);ec=new mxCell("",new mxGeometry(.25*r,0,.3*r,.2*q),"strokeColor=none;fillColor=none;");ec.vertex=!0;v.insert(ec);ec.value=m(e.Option21);ec.style+=a(e.Option21,G);gc=new mxCell("",new mxGeometry(0,.2*q,.25*r,.2*q),"strokeColor=none;fillColor=none;");gc.vertex=!0;v.insert(gc);gc.value=m(e.Option12);gc.style+=a(e.Option12,G);hc=new mxCell("",new mxGeometry(.25*r,.2*q,.3*r,.2*q),"strokeColor=none;fillColor=none;");hc.vertex=!0;
|
|
|
|
|
v.insert(hc);hc.value=m(e.Option22);hc.style+=a(e.Option22,G);qb=new mxCell("",new mxGeometry(0,.4*q,.25*r,.2*q),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=m(e.Option13);qb.style+=a(e.Option13,G);rb=new mxCell("",new mxGeometry(.25*r,.4*q,.3*r,.2*q),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option23);rb.style+=a(e.Option23,G);sb=new mxCell("",new mxGeometry(.7*r,.4*q,.15*r,.2*q),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);
|
|
|
|
|
sb.value=m(e.Option33);sb.style+=a(e.Option33,G);tb=new mxCell("",new mxGeometry(0,.6*q,.25*r,.2*q),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option14);tb.style+=a(e.Option14,G);kc=new mxCell("",new mxGeometry(.25*r,.6*q,.3*r,.2*q),"strokeColor=none;fillColor=none;");kc.vertex=!0;v.insert(kc);kc.value=m(e.Option24);kc.style+=a(e.Option24,G);mc=new mxCell("",new mxGeometry(.7*r,.6*q,.15*r,.2*q),"strokeColor=none;fillColor=none;");mc.vertex=!0;v.insert(mc);mc.value=
|
|
|
|
|
m(e.Option34);mc.style+=a(e.Option34,G);ub=new mxCell("",new mxGeometry(0,.8*q,.25*r,.2*q),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option15);ub.style+=a(e.Option15,G);nc=new mxCell("",new mxGeometry(.25*r,.8*q,.3*r,.2*q),"strokeColor=none;fillColor=none;");nc.vertex=!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);Ab=new mxCell("",new mxGeometry(0,.4*q-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,
|
|
|
|
|
.6*q-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+="strokeColor=none;";v.style+=b(v.style,e,t,v);break;case "iOSCountdownPicker":fc=new mxCell("",new mxGeometry(.45*r,0,.2*r,.2*q),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);ic=new mxCell("",new mxGeometry(.45*r,.2*q,.2*r,.2*q),"strokeColor=none;fillColor=none;");ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);qb=new mxCell("",
|
|
|
|
|
m(e.Option34);mc.style+=a(e.Option34,G);ub=new mxCell("",new mxGeometry(0,.8*q,.25*r,.2*q),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option15);ub.style+=a(e.Option15,G);nc=new mxCell("",new mxGeometry(.25*r,.8*q,.3*r,.2*q),"strokeColor=none;fillColor=none;");nc.vertex=!0;v.insert(nc);nc.value=m(e.Option25);nc.style+=a(e.Option25,G);zb=new mxCell("",new mxGeometry(0,.4*q-2,r,4),"shape=line;strokeColor=#888888;");zb.vertex=!0;v.insert(zb);Ab=new mxCell("",new mxGeometry(0,
|
|
|
|
|
.6*q-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);v.style+="strokeColor=none;";v.style+=b(v.style,e,t,v);break;case "iOSCountdownPicker":fc=new mxCell("",new mxGeometry(.45*r,0,.2*r,.2*q),"strokeColor=none;fillColor=none;");fc.vertex=!0;v.insert(fc);fc.value=m(e.Option31);fc.style+=a(e.Option31,G);ic=new mxCell("",new mxGeometry(.45*r,.2*q,.2*r,.2*q),"strokeColor=none;fillColor=none;");ic.vertex=!0;v.insert(ic);ic.value=m(e.Option32);ic.style+=a(e.Option32,G);qb=new mxCell("",
|
|
|
|
|
new mxGeometry(0,.4*q,.25*r,.2*q),"strokeColor=none;fillColor=none;");qb.vertex=!0;v.insert(qb);qb.value=m(e.Option13);qb.style+=a(e.Option13,G);rb=new mxCell("",new mxGeometry(.2*r,.4*q,.25*r,.2*q),"strokeColor=none;fillColor=none;");rb.vertex=!0;v.insert(rb);rb.value=m(e.Option23);rb.style+=a(e.Option23,G);jc=new mxCell("",new mxGeometry(.45*r,.4*q,.2*r,.2*q),"strokeColor=none;fillColor=none;");jc.vertex=!0;v.insert(jc);jc.value=m(e.Option33);jc.style+=a(e.Option33,G);sb=new mxCell("",new mxGeometry(.6*
|
|
|
|
|
r,.4*q,.2*r,.2*q),"strokeColor=none;fillColor=none;");sb.vertex=!0;v.insert(sb);sb.value=m(e.Option43);sb.style+=a(e.Option43,G);tb=new mxCell("",new mxGeometry(0,.6*q,.25*r,.2*q),"strokeColor=none;fillColor=none;");tb.vertex=!0;v.insert(tb);tb.value=m(e.Option14);tb.style+=a(e.Option14,G);lc=new mxCell("",new mxGeometry(.45*r,.6*q,.2*r,.2*q),"strokeColor=none;fillColor=none;");lc.vertex=!0;v.insert(lc);lc.value=m(e.Option34);lc.style+=a(e.Option34,G);ub=new mxCell("",new mxGeometry(0,.8*q,.25*r,
|
|
|
|
|
.2*q),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option15);ub.style+=a(e.Option15,G);oc=new mxCell("",new mxGeometry(.45*r,.8*q,.2*r,.2*q),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);Ab=new mxCell("",new mxGeometry(0,.4*q-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(0,.6*q-2,r,4),"shape=line;strokeColor=#888888;");Bb.vertex=!0;v.insert(Bb);v.style+=
|
|
|
|
|
.2*q),"strokeColor=none;fillColor=none;");ub.vertex=!0;v.insert(ub);ub.value=m(e.Option15);ub.style+=a(e.Option15,G);oc=new mxCell("",new mxGeometry(.45*r,.8*q,.2*r,.2*q),"strokeColor=none;fillColor=none;");oc.vertex=!0;v.insert(oc);oc.value=m(e.Option35);oc.style+=a(e.Option35,G);zb=new mxCell("",new mxGeometry(0,.4*q-2,r,4),"shape=line;strokeColor=#888888;");zb.vertex=!0;v.insert(zb);Ab=new mxCell("",new mxGeometry(0,.6*q-2,r,4),"shape=line;strokeColor=#888888;");Ab.vertex=!0;v.insert(Ab);v.style+=
|
|
|
|
|
"strokeColor=none;";v.style+=b(v.style,e,t,v);break;case "iOSBasicCell":v.value=m(e.text);v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+.75*e.SeparatorInset+";";v.style+=(G?"fontSize=13;":f(e.text)+p(e.text)+x(e.text))+H(e.text);v.style+=b(v.style,e,t,v,G);switch(e.AccessoryIndicatorType){case "Disclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*q,.15*q,.3*q),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=
|
|
|
|
|
!0;v.insert(Ja);break;case "DetailDisclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*q,.15*q,.3*q),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);var $a=new mxCell("",new mxGeometry(.79*r,.25*q,.5*q,.5*q),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=!0;v.insert($a);break;case "DetailIndicator":$a=new mxCell("",new mxGeometry(.87*r,.25*q,.5*q,.5*q),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=
|
|
|
|
|
!0;v.insert($a);break;case "CheckMark":Ja=new mxCell("",new mxGeometry(.89*r,.37*q,.4*q,.26*q),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ja.vertex=!0,v.insert(Ja)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+.75*e.SeparatorInset+";";v.value=m(e.subtext);v.style+=G?"fontSize=13;":f(e.subtext)+p(e.subtext)+x(e.subtext);v.style+=b(v.style,e,t,v,G);
|
|
|
|
@ -137,7 +137,7 @@ Ja.vertex=!0;v.insert(Ja);cb=new mxCell("",new mxGeometry(.55*r,0,.3*r,q),"fillC
|
|
|
|
|
b(v.style,e,t,v);var Ub=new mxCell("",new mxGeometry(0,0,.25*r,q),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle;spacingRight=3;");Ub.vertex=!0;v.insert(Ub);Ub.value=m(e.subtext);Ub.style+=G?"html=1;fontSize=13;"+lb:f(e.subtext)+k(e.subtext)+p(e.subtext)+x(e.subtext);cb=new mxCell("",new mxGeometry(.25*r,0,.5*r,q),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=middle;spacingLeft=3;");cb.vertex=!0;v.insert(cb);cb.value=m(e.text);cb.style+=G?"html=1;fontSize=13;"+
|
|
|
|
|
lb:f(e.text)+k(e.text)+p(e.text)+x(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*q,.15*q,.3*q),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);break;case "DetailDisclosure":Ja=new mxCell("",new mxGeometry(.91*r,.35*q,.15*q,.3*q),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");Ja.vertex=!0;v.insert(Ja);$a=new mxCell("",new mxGeometry(.79*r,.25*q,.5*q,.5*q),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
|
|
|
|
|
$a.vertex=!0;v.insert($a);break;case "DetailIndicator":$a=new mxCell("",new mxGeometry(.87*r,.25*q,.5*q,.5*q),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");$a.vertex=!0;v.insert($a);break;case "CheckMark":Ja=new mxCell("",new mxGeometry(.89*r,.37*q,.4*q,.26*q),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),Ja.vertex=!0,v.insert(Ja)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";
|
|
|
|
|
Da=new mxCell("",new mxGeometry(0,0,r,.4*q),"fillColor=none;strokeColor=none;spacing=10;align=left;");Da.vertex=!0;v.insert(Da);Da.value=m(e.text);Da.style+=G?"html=1;fontSize=13;"+lb:f(e.text)+k(e.text)+p(e.text)+x(e.text);Db=new mxCell("",new mxGeometry(0,.6*q,r,.4*q),"fillColor=none;strokeColor=none;spacing=10;align=left;");Db.vertex=!0;v.insert(Db);Db.value=m(e["bottom-text"]);Db.style+=G?"html=1;fontSize=13;"+lb:f(e["bottom-text"])+k(e["bottom-text"])+p(e["bottom-text"])+x(e["bottom-text"]);
|
|
|
|
|
Da=new mxCell("",new mxGeometry(0,0,r,.4*q),"fillColor=none;strokeColor=none;spacing=10;align=left;");Da.vertex=!0;v.insert(Da);Da.value=m(e.text);Da.style+=G?"html=1;fontSize=13;"+lb:f(e.text)+k(e.text)+p(e.text)+x(e.text);Cb=new mxCell("",new mxGeometry(0,.6*q,r,.4*q),"fillColor=none;strokeColor=none;spacing=10;align=left;");Cb.vertex=!0;v.insert(Cb);Cb.value=m(e["bottom-text"]);Cb.style+=G?"html=1;fontSize=13;"+lb:f(e["bottom-text"])+k(e["bottom-text"])+p(e["bottom-text"])+x(e["bottom-text"]);
|
|
|
|
|
break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.value=m(e.text);v.style+=G?"fontSize=13;":f(e.text)+p(e.text)+x(e.text);v.style+=b(v.style,e,t,v,G);break;case "SMPage":if(e.Group){v.style+="strokeColor=none;fillColor=none;";var w=new mxCell("",new mxGeometry(0,0,.9*r,.9*q),"rounded=1;arcSize=3;part=1;");w.vertex=!0;v.insert(w);w.style+=I(e,t)+ca(e,t)+O(e,t,w)+W(e)+sa(e);var E=new mxCell("",new mxGeometry(.1*r,.1*q,.9*r,.9*
|
|
|
|
|
q),"rounded=1;arcSize=3;part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=I(e,t)+ca(e,t)+O(e,t,E)+W(e)+sa(e)+a(e,G);e.Future&&(w.style+="dashed=1;fixDash=1;",E.style+="dashed=1;fixDash=1;")}else v.style+="rounded=1;arcSize=3;",e.Future&&(v.style+="dashed=1;fixDash=1;"),v.value=m(e.Text),v.style+=I(e,t)+ca(e,t)+O(e,t,v)+W(e)+sa(e)+a(e,G);v.style+=b(v.style,e,t,v,G);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":w=
|
|
|
|
|
null;switch(u.Class){case "SMHome":w=new mxCell("",new mxGeometry(.5*r-.4*q,.1*q,.8*q,.8*q),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMPrint":w=new mxCell("",new mxGeometry(.5*r-.4*q,.19*q,.8*q,.62*q),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":w=new mxCell("",new mxGeometry(.5*r-.4*q,.1*q,.8*q,.8*q),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
@ -146,18 +146,18 @@ break;case "SMVideo":w=new mxCell("",new mxGeometry(.5*r-.4*q,.2*q,.8*q,.6*q),"p
|
|
|
|
|
break;case "SMChart":var Y=ca(e,t);Y=""==Y?"#ffffff;":Y.replace("fillColor=","");w=new mxCell("",new mxGeometry(.5*r-.35*q,.15*q,.7*q,.7*q),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+Y);break;case "SMCloud":w=new mxCell("",new mxGeometry(.5*r-.4*q,.27*q,.8*q,.46*q),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":w=new mxCell("",new mxGeometry(.5*r-.25*q,.15*q,.5*q,.7*q),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
|
|
|
|
break;case "SMForm":w=new mxCell("",new mxGeometry(.5*r-.4*q,.15*q,.8*q,.7*q),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMGame":w=new mxCell("",new mxGeometry(.5*r-.4*q,.2*q,.8*q,.6*q),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":w=new mxCell("",new mxGeometry(.5*r-.4*q,.2*q,.8*q,.6*q),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}w.vertex=
|
|
|
|
|
!0;v.insert(w);w.value=m(e.Text);w.style+=a(e,G);v.style+=b(v.style,e,t,v);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";w=new mxCell("",new mxGeometry(.1*r,0,.9*r,.9*q),"part=1;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);E=new mxCell("",new mxGeometry(0,.1*q,.9*r,.9*q),"part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=a(e.Text,G);E.style+=b(E.style,e,t,E,G);break;case "UMLConstraintBlock":var Bc=new mxCell("",new mxGeometry(0,0,.25*q,q),"shape=curlyBracket;rounded=1;");
|
|
|
|
|
Bc.vertex=!0;v.insert(Bc);var Cc=new mxCell("",new mxGeometry(r-.25*q,0,.25*q,q),"shape=curlyBracket;rounded=1;flipH=1;");Cc.vertex=!0;v.insert(Cc);oa=new mxCell("",new mxGeometry(.25*q,0,r-.5*q,q),"strokeColor=none;fillColor=none;");oa.vertex=!0;oa.value=m(e);v.insert(oa);v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,t,v);Bc.style+=O(e,t,Bc);Cc.style+=O(e,t,Cc);oa.style+=p(e,oa);Bc.style+=b(Bc.style,e,t,Bc);Cc.style+=b(Cc.style,e,t,Cc);oa.style+=b(oa.style,e,t,oa,G);break;case "UMLTextBlock":v.value=
|
|
|
|
|
Bc.vertex=!0;v.insert(Bc);var Cc=new mxCell("",new mxGeometry(r-.25*q,0,.25*q,q),"shape=curlyBracket;rounded=1;flipH=1;");Cc.vertex=!0;v.insert(Cc);na=new mxCell("",new mxGeometry(.25*q,0,r-.5*q,q),"strokeColor=none;fillColor=none;");na.vertex=!0;na.value=m(e);v.insert(na);v.style="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,t,v);Bc.style+=O(e,t,Bc);Cc.style+=O(e,t,Cc);na.style+=p(e,na);Bc.style+=b(Bc.style,e,t,Bc);Cc.style+=b(Cc.style,e,t,Cc);na.style+=b(na.style,e,t,na,G);break;case "UMLTextBlock":v.value=
|
|
|
|
|
m(e.Text);v.style+="strokeColor=none;"+a(e.Text,G);v.style+=b(v.style,e,t,v,G);break;case "UMLProvidedInterfaceBlock":case "UMLProvidedInterfaceBlockV2":mb=ba(e,t,v);e.Rotatio=null;var Vb=b(v.style,e,t,v,G);-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+mb;var Td=.8*r,Ff=r-Td,Qc=new mxCell("",new mxGeometry(.2,0,Td,q),"shape=ellipse;"+Vb);Qc.vertex=!0;Qc.geometry.relative=!0;v.insert(Qc);Qa=new mxCell("",new mxGeometry(0,
|
|
|
|
|
.5,Ff,1),"line;"+Vb);Qa.geometry.relative=!0;Qa.vertex=!0;v.insert(Qa);break;case "UMLComponentBoxBlock":case "UMLComponentBoxBlockV2":v.value=m(e);v.style="html=1;dropTarget=0;"+b(v.style,e,t,v,G);var nb=new mxCell("",new mxGeometry(1,0,15,15),"shape=component;jettyWidth=8;jettyHeight=4;");nb.geometry.relative=!0;nb.geometry.offset=new mxPoint(-20,5);nb.vertex=!0;v.insert(nb);break;case "UMLAssemblyConnectorBlock":case "UMLAssemblyConnectorBlockV2":mb=ba(e,t,v);e.Rotatio=null;Vb=b(v.style,e,t,v,
|
|
|
|
|
G);-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+mb;var Re=.225*r,Se=.1*r;Td=r-Re-Se;Qc=new mxCell("",new mxGeometry(.225,0,Td,q),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+Vb);Qc.vertex=!0;Qc.geometry.relative=!0;v.insert(Qc);Ab=new mxCell("",new mxGeometry(0,.5,Re,1),"line;"+Vb);Ab.geometry.relative=!0;Ab.vertex=!0;v.insert(Ab);Bb=new mxCell("",new mxGeometry(.9,.5,Se,1),"line;"+Vb);Bb.geometry.relative=
|
|
|
|
|
!0;Bb.vertex=!0;v.insert(Bb);break;case "BPMNActivity":v.value=m(e.Text);switch(e.bpmnActivityType){case 1:v.style+=a(e.Text,G);break;case 2:v.style+="shape=ext;double=1;"+a(e.Text,G);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+a(e.Text,G);break;case 4:v.style+="shape=ext;strokeWidth=2;"+a(e.Text,G)}if(0!=e.bpmnTaskType){switch(e.bpmnTaskType){case 1:w=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");w.geometry.offset=new mxPoint(4,7);break;case 2:w=new mxCell("",new mxGeometry(0,
|
|
|
|
|
G);-1==Vb.indexOf(mxConstants.STYLE_STROKEWIDTH)&&(Vb=mxConstants.STYLE_STROKEWIDTH+"=1;"+Vb);v.style="group;dropTarget=0;pointerEvents=0;"+mb;var Re=.225*r,Se=.1*r;Td=r-Re-Se;Qc=new mxCell("",new mxGeometry(.225,0,Td,q),"shape=providedRequiredInterface;verticalLabelPosition=bottom;"+Vb);Qc.vertex=!0;Qc.geometry.relative=!0;v.insert(Qc);zb=new mxCell("",new mxGeometry(0,.5,Re,1),"line;"+Vb);zb.geometry.relative=!0;zb.vertex=!0;v.insert(zb);Ab=new mxCell("",new mxGeometry(.9,.5,Se,1),"line;"+Vb);Ab.geometry.relative=
|
|
|
|
|
!0;Ab.vertex=!0;v.insert(Ab);break;case "BPMNActivity":v.value=m(e.Text);switch(e.bpmnActivityType){case 1:v.style+=a(e.Text,G);break;case 2:v.style+="shape=ext;double=1;"+a(e.Text,G);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 5;"+a(e.Text,G);break;case 4:v.style+="shape=ext;strokeWidth=2;"+a(e.Text,G)}if(0!=e.bpmnTaskType){switch(e.bpmnTaskType){case 1:w=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");w.geometry.offset=new mxPoint(4,7);break;case 2:w=new mxCell("",new mxGeometry(0,
|
|
|
|
|
0,19,12),"shape=message;");w.geometry.offset=new mxPoint(4,7);break;case 3:w=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");w.geometry.offset=new mxPoint(4,5);break;case 4:w=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");w.geometry.offset=new mxPoint(4,7);break;case 5:w=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");w.geometry.offset=new mxPoint(4,7);break;case 6:w=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");
|
|
|
|
|
w.geometry.offset=new mxPoint(4,5);break;case 7:w=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),w.geometry.offset=new mxPoint(4,5)}if(1==e.bpmnTaskType){var Rc=ca(e,t);Y=I(e,t);Y=Y.replace("strokeColor","fillColor");Rc=Rc.replace("fillColor","strokeColor");""==Y&&(Y="fillColor=#000000;");""==Rc&&(Rc="strokeColor=#ffffff;");w.style+=Rc+Y+"part=1;"}else w.style+=ca(e,t)+I(e,t)+"part=1;";w.geometry.relative=!0;w.vertex=!0;v.insert(w)}var Bd=0;0!=e.bpmnActivityMarker1&&Bd++;
|
|
|
|
|
0!=e.bpmnActivityMarker2&&Bd++;var Eb=0;1==Bd?Eb=-7.5:2==Bd&&(Eb=-19);if(0!=e.bpmnActivityMarker1){switch(e.bpmnActivityMarker1){case 1:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");w.geometry.offset=new mxPoint(Eb,-20);w.style+=ca(e,t)+I(e,t);break;case 2:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");w.geometry.offset=new mxPoint(Eb,-20);w.style+=ca(e,t)+I(e,t);break;case 3:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");
|
|
|
|
|
w.geometry.offset=new mxPoint(Eb,-20);w.style+=ca(e,t)+I(e,t);break;case 4:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");w.geometry.offset=new mxPoint(Eb,-20);w.style+=ca(e,t)+I(e,t);break;case 5:w=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");w.geometry.offset=new mxPoint(Eb,-17);Y=I(e,t);Y=Y.replace("strokeColor","fillColor");""==Y&&(Y="fillColor=#000000;");w.style+=Y;break;case 6:w=new mxCell("",
|
|
|
|
|
new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),w.geometry.offset=new mxPoint(Eb,-18),w.style+=ca(e,t)+I(e,t)}w.geometry.relative=!0;w.vertex=!0;v.insert(w)}2==Bd&&(Eb=5);if(0!=e.bpmnActivityMarker2){switch(e.bpmnActivityMarker2){case 1:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");w.geometry.offset=new mxPoint(Eb,-20);w.style+=ca(e,t)+I(e,t);break;case 2:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");w.geometry.offset=new mxPoint(Eb,
|
|
|
|
|
-20);w.style+=ca(e,t)+I(e,t);break;case 3:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");w.geometry.offset=new mxPoint(Eb,-20);w.style+=ca(e,t)+I(e,t);break;case 4:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");w.geometry.offset=new mxPoint(Eb,-20);w.style+=ca(e,t)+I(e,t);break;case 5:w=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");w.geometry.offset=new mxPoint(Eb,-17);
|
|
|
|
|
Y=I(e,t);Y=Y.replace("strokeColor","fillColor");""==Y&&(Y="fillColor=#000000;");w.style+=Y;break;case 6:w=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),w.geometry.offset=new mxPoint(Eb,-18),w.style+=ca(e,t)+I(e,t)}w.geometry.relative=!0;w.vertex=!0;v.insert(w)}v.style+=b(v.style,e,t,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);if(1==e.bpmnDashed)switch(e.bpmnEventGroup){case 0:v.style+=
|
|
|
|
|
0!=e.bpmnActivityMarker2&&Bd++;var Db=0;1==Bd?Db=-7.5:2==Bd&&(Db=-19);if(0!=e.bpmnActivityMarker1){switch(e.bpmnActivityMarker1){case 1:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");w.geometry.offset=new mxPoint(Db,-20);w.style+=ca(e,t)+I(e,t);break;case 2:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");w.geometry.offset=new mxPoint(Db,-20);w.style+=ca(e,t)+I(e,t);break;case 3:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");
|
|
|
|
|
w.geometry.offset=new mxPoint(Db,-20);w.style+=ca(e,t)+I(e,t);break;case 4:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");w.geometry.offset=new mxPoint(Db,-20);w.style+=ca(e,t)+I(e,t);break;case 5:w=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");w.geometry.offset=new mxPoint(Db,-17);Y=I(e,t);Y=Y.replace("strokeColor","fillColor");""==Y&&(Y="fillColor=#000000;");w.style+=Y;break;case 6:w=new mxCell("",
|
|
|
|
|
new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),w.geometry.offset=new mxPoint(Db,-18),w.style+=ca(e,t)+I(e,t)}w.geometry.relative=!0;w.vertex=!0;v.insert(w)}2==Bd&&(Db=5);if(0!=e.bpmnActivityMarker2){switch(e.bpmnActivityMarker2){case 1:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=plus;part=1;");w.geometry.offset=new mxPoint(Db,-20);w.style+=ca(e,t)+I(e,t);break;case 2:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=mxgraph.bpmn.loop;part=1;");w.geometry.offset=new mxPoint(Db,
|
|
|
|
|
-20);w.style+=ca(e,t)+I(e,t);break;case 3:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;part=1;");w.geometry.offset=new mxPoint(Db,-20);w.style+=ca(e,t)+I(e,t);break;case 4:w=new mxCell("",new mxGeometry(.5,1,15,15),"shape=parallelMarker;direction=south;part=1;");w.geometry.offset=new mxPoint(Db,-20);w.style+=ca(e,t)+I(e,t);break;case 5:w=new mxCell("",new mxGeometry(.5,1,15,10),"shape=mxgraph.bpmn.ad_hoc;strokeColor=none;flipH=1;part=1;");w.geometry.offset=new mxPoint(Db,-17);
|
|
|
|
|
Y=I(e,t);Y=Y.replace("strokeColor","fillColor");""==Y&&(Y="fillColor=#000000;");w.style+=Y;break;case 6:w=new mxCell("",new mxGeometry(.5,1,15,11),"shape=mxgraph.bpmn.compensation;part=1;"),w.geometry.offset=new mxPoint(Db,-18),w.style+=ca(e,t)+I(e,t)}w.geometry.relative=!0;w.vertex=!0;v.insert(w)}v.style+=b(v.style,e,t,v);break;case "BPMNEvent":v.style+="shape=mxgraph.bpmn.shape;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);if(1==e.bpmnDashed)switch(e.bpmnEventGroup){case 0:v.style+=
|
|
|
|
|
"outline=eventNonint;";break;case 1:v.style+="outline=boundNonint;";break;case 2:v.style+="outline=end;"}else switch(e.bpmnEventGroup){case 0:v.style+="outline=standard;";break;case 1:v.style+="outline=throwing;";break;case 2:v.style+="outline=end;"}switch(e.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+=b(v.style,e,t,v,G);break;case "BPMNChoreography":try{var ia=S(e.FillColor),je=Rd(ia,.75),Jc=f(e.Name).match(/\d+/),db=Math.max(mxUtils.getSizeForString(e.Name.t,Jc?Jc[0]:"13",null,r-10).height,24);ia="swimlaneFillColor="+je+";";v.value=
|
|
|
|
|
m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ia+"startSize="+db+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Name,G);v.style+=b(v.style,e,t,v,G);var Wb=db;Jc=f(e.TaskName).match(/\d+/);var pc=e.TaskHeight?.75*e.TaskHeight:Math.max(mxUtils.getSizeForString(e.TaskName.t,Jc?Jc[0]:"13",null,r-10).height+15,24),Dc=new mxCell("",new mxGeometry(0,Wb,r,pc),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");
|
|
|
|
@ -168,15 +168,15 @@ v.value=m(e.Text);v.style+=a(e,G);break;case "BPMNData":v.style+="shape=note;siz
|
|
|
|
|
3);w.style+=ca(e,t)+I(e,t);w.geometry.relative=!0;w.vertex=!0;v.insert(w);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;");Da.geometry.offset=new mxPoint(0,14);Da.geometry.relative=!0;Da.vertex=!0;v.insert(Da);Da.value=m(e.Text);Da.style+=a(e,G);break;case 3:w=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),w.geometry.offset=new mxPoint(3,3),w.style+=I(e,t),w.geometry.relative=
|
|
|
|
|
!0,w.vertex=!0,v.insert(w),Y=I(e,t),Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),w.style+=Y,Da=new mxCell("",new mxGeometry(0,0,r,20),"strokeColor=none;fillColor=none;"),Da.geometry.offset=new mxPoint(0,14),Da.geometry.relative=!0,Da.vertex=!0,v.insert(Da),Da.value=m(e.Text),Da.style+=a(e,G)}v.style+=b(v.style,e,t,v);break;case "BPMNBlackPool":v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(0,0,r,q),"fillColor=#000000;strokeColor=none;opacity=30;");
|
|
|
|
|
w.vertex=!0;v.insert(w);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,t,v);w=new mxCell("",new mxGeometry(0,0,.95*r,.95*q),"part=1;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);E=new mxCell("",new mxGeometry(.05*r,.05*q,.95*r,.95*q),"part=1;");E.vertex=!0;v.insert(E);E.value=m(e.Text);E.style+=a(e.Text,G);E.style+=b(E.style,e,t,E,G);break;case "GSDFDDataStoreBlock":v.value=m(e.Text);v.style+="shape=partialRectangle;right=0;"+a(e.Text,G);
|
|
|
|
|
v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(0,0,.2*r,q),"part=1;");w.vertex=!0;v.insert(w);w.value=m(e.Number);w.style+=a(e.Number,G);w.style+=b(w.style,e,t,w,G);break;case "OrgBlock":var Te="";for(Ga in e.Active)"Photo"!=Ga&&e.Active[Ga]&&(Te+=m(e[Ga],!0));if(e.Active.Photo){var ke=.4*r;v.style+="spacingLeft="+ke+";imageWidth="+(ke-4)+";imageHeight="+(ke-4)+";imageAlign=left;imageVerticalAlign=top;image="+g(e.Photo)}v.value=Te;v.style+=b(v.style,e,t,v,!0);break;case "DefaultTableBlock":try{Gb=
|
|
|
|
|
e.RowHeights.length;Rb=e.ColWidths.length;var Vd=[],Cd=[];for(l=0;l<Gb;l++)Vd[l]=.75*e.RowHeights[l];for(fa=0;fa<Rb;fa++)Cd[fa]=.75*e.ColWidths[fa];v.style="group;dropTarget=0;pointerEvents=0;";var le=e.BandedColor1,me=e.BandedColor2,Gf=e.BandedRows,Ue=e.BandedCols,Wd=e.HideH,Hf=e.HideV,Ve=e.TextVAlign,We=e.FillColor,Xe=e.StrokeStyle;delete e.StrokeStyle;var If=la(We,"fillOpacity"),Ye=e.LineColor,Jf=la(Ye,"strokeOpacity");aa=0;var Dd={};for(l=0;l<Gb;l++){Z=0;q=Vd[l];for(fa=0;fa<Rb;fa++){var Mb=l+
|
|
|
|
|
","+fa;if(Dd[Mb])Z+=Cd[fa];else{var kb=e["CellFill_"+Mb],ne=e["NoBand_"+Mb],Xd=e["CellSize_"+Mb],qc=e["Cell_"+Mb],Ze=e["Cell_"+Mb+"_VAlign"],Kf=e["Cell_"+Mb+"_TRotation"],Lf=e["CellBorderWidthH_"+Mb],Mf=e["CellBorderColorH_"+Mb],Nf=e["CellBorderStrokeStyleH_"+Mb],Of=e["CellBorderWidthV_"+Mb],Pf=e["CellBorderColorV_"+Mb],Qf=e["CellBorderStrokeStyleV_"+Mb],$e=Wd?Pf:Mf,af=la($e,"strokeOpacity"),bf=Wd?Of:Lf,Sc=Wd?Qf:Nf;kb=Gf&&!ne?0==l%2?le:Ue&&!ne?0==fa%2?le:me:me:Ue&&!ne?0==fa%2?le:me:kb;var Rf=la(kb,
|
|
|
|
|
"fillOpacity")||If;r=Cd[fa];var cf=q;Yc=r;for(var Nb=l+1;Nb<l+Xd.h;Nb++)if(null!=Vd[Nb]){cf+=Vd[Nb];Dd[Nb+","+fa]=!0;for(var Tc=fa+1;Tc<fa+Xd.w;Tc++)Dd[Nb+","+Tc]=!0}for(Nb=fa+1;Nb<fa+Xd.w;Nb++)if(null!=Cd[Nb])for(Yc+=Cd[Nb],Dd[l+","+Nb]=!0,Tc=l+1;Tc<l+Xd.h;Tc++)Dd[Tc+","+Nb]=!0;var pa=new mxCell("",new mxGeometry(Z,aa,Yc,cf),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(Hf?"left=0;right=0;":"")+(Wd?"top=0;bottom=0;":"")+ca({FillColor:kb||We})+Zb(mxConstants.STYLE_STROKECOLOR,S($e),
|
|
|
|
|
S(Ye))+(null!=bf?Zb(mxConstants.STYLE_STROKEWIDTH,Math.round(.75*parseFloat(bf)),"1"):"")+(af?af:Jf)+Rf+"verticalAlign="+(Ze?Ze:Ve?Ve:"middle")+";"+qa({StrokeStyle:Sc?Sc:Xe?Xe:"solid"})+(Kf?"horizontal=0;":""));pa.vertex=!0;pa.value=m(qc);pa.style+=b(pa.style,e,t,pa,G)+(G?"fontSize=13;":f(qc)+p(qc)+x(qc)+C(qc,pa)+J(qc)+M(qc)+L(qc)+Q(qc))+U(qc)+H(qc);v.insert(pa);Z+=r}}aa+=q}}catch(gb){console.log(gb)}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";
|
|
|
|
|
v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(0,0,.2*r,q),"part=1;");w.vertex=!0;v.insert(w);w.value=m(e.Number);w.style+=a(e.Number,G);w.style+=b(w.style,e,t,w,G);break;case "OrgBlock":var Te="";for(Ga in e.Active)"Photo"!=Ga&&e.Active[Ga]&&(Te+=m(e[Ga],!0));if(e.Active.Photo){var ke=.4*r;v.style+="spacingLeft="+ke+";imageWidth="+(ke-4)+";imageHeight="+(ke-4)+";imageAlign=left;imageVerticalAlign=top;image="+g(e.Photo)}v.value=Te;v.style+=b(v.style,e,t,v,!0);break;case "DefaultTableBlock":try{Fb=
|
|
|
|
|
e.RowHeights.length;Rb=e.ColWidths.length;var Vd=[],Cd=[];for(l=0;l<Fb;l++)Vd[l]=.75*e.RowHeights[l];for(fa=0;fa<Rb;fa++)Cd[fa]=.75*e.ColWidths[fa];v.style="group;dropTarget=0;pointerEvents=0;";var le=e.BandedColor1,me=e.BandedColor2,Gf=e.BandedRows,Ue=e.BandedCols,Wd=e.HideH,Hf=e.HideV,Ve=e.TextVAlign,We=e.FillColor,Xe=e.StrokeStyle;delete e.StrokeStyle;var If=ka(We,"fillOpacity"),Ye=e.LineColor,Jf=ka(Ye,"strokeOpacity");aa=0;var Dd={};for(l=0;l<Fb;l++){Z=0;q=Vd[l];for(fa=0;fa<Rb;fa++){var Lb=l+
|
|
|
|
|
","+fa;if(Dd[Lb])Z+=Cd[fa];else{var kb=e["CellFill_"+Lb],ne=e["NoBand_"+Lb],Xd=e["CellSize_"+Lb],qc=e["Cell_"+Lb],Ze=e["Cell_"+Lb+"_VAlign"],Kf=e["Cell_"+Lb+"_TRotation"],Lf=e["CellBorderWidthH_"+Lb],Mf=e["CellBorderColorH_"+Lb],Nf=e["CellBorderStrokeStyleH_"+Lb],Of=e["CellBorderWidthV_"+Lb],Pf=e["CellBorderColorV_"+Lb],Qf=e["CellBorderStrokeStyleV_"+Lb],$e=Wd?Pf:Mf,af=ka($e,"strokeOpacity"),bf=Wd?Of:Lf,Sc=Wd?Qf:Nf;kb=Gf&&!ne?0==l%2?le:Ue&&!ne?0==fa%2?le:me:me:Ue&&!ne?0==fa%2?le:me:kb;var Rf=ka(kb,
|
|
|
|
|
"fillOpacity")||If;r=Cd[fa];var cf=q;Yc=r;for(var Mb=l+1;Mb<l+Xd.h;Mb++)if(null!=Vd[Mb]){cf+=Vd[Mb];Dd[Mb+","+fa]=!0;for(var Tc=fa+1;Tc<fa+Xd.w;Tc++)Dd[Mb+","+Tc]=!0}for(Mb=fa+1;Mb<fa+Xd.w;Mb++)if(null!=Cd[Mb])for(Yc+=Cd[Mb],Dd[l+","+Mb]=!0,Tc=l+1;Tc<l+Xd.h;Tc++)Dd[Tc+","+Mb]=!0;var oa=new mxCell("",new mxGeometry(Z,aa,Yc,cf),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(Hf?"left=0;right=0;":"")+(Wd?"top=0;bottom=0;":"")+ca({FillColor:kb||We})+Zb(mxConstants.STYLE_STROKECOLOR,S($e),
|
|
|
|
|
S(Ye))+(null!=bf?Zb(mxConstants.STYLE_STROKEWIDTH,Math.round(.75*parseFloat(bf)),"1"):"")+(af?af:Jf)+Rf+"verticalAlign="+(Ze?Ze:Ve?Ve:"middle")+";"+qa({StrokeStyle:Sc?Sc:Xe?Xe:"solid"})+(Kf?"horizontal=0;":""));oa.vertex=!0;oa.value=m(qc);oa.style+=b(oa.style,e,t,oa,G)+(G?"fontSize=13;":f(qc)+p(qc)+x(qc)+C(qc,oa)+J(qc)+M(qc)+L(qc)+Q(qc))+U(qc)+H(qc);v.insert(oa);Z+=r}}aa+=q}}catch(gb){console.log(gb)}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";
|
|
|
|
|
"VSMDedicatedProcessBlock"==u.Class?v.value=m(e.Text):"VSMProductionControlBlock"==u.Class&&(v.value=m(e.Resources));v.style+=b(v.style,e,t,v,G);"VSMDedicatedProcessBlock"==u.Class&&(w=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),w.geometry.relative=!0,w.geometry.offset=new mxPoint(4,-13),w.vertex=!0,v.insert(w),w.style+=b(w.style,e,t,w));Da=new mxCell("",new mxGeometry(0,0,r,15),"strokeColor=none;fillColor=none;part=1;");Da.vertex=!0;v.insert(Da);Da.value=
|
|
|
|
|
m(e.Title);Da.style+=a(e.Title,G);e.Text=null;break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);Da=new mxCell("",new mxGeometry(.1*r,.3*q,.8*r,.6*q),"part=1;");Da.vertex=!0;v.insert(Da);Da.value=m(e.Resource);Da.style+=a(e.Resource,G);Da.style+=b(Da.style,e,t,Da,G);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";
|
|
|
|
|
v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,t,v);Cb=q;bc=parseInt(e.Cells);ia=b("part=1;",e,t,v);0<bc&&(Cb/=bc);X=[];Qa=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(0,(l-1)*Cb,r,Cb),ia),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["cell_"+l]),X[l].style+=a(e["cell_"+l],G);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";
|
|
|
|
|
v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=b(v.style,e,t,v);Cb=q;bc=parseInt(e.Cells);ia=b("part=1;fillColor=none;",e,t,v);0<bc&&(Cb/=bc);X=[];Ub=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(.5*r,(l-1)*Cb,.5*r,Cb),"shape=partialRectangle;left=0;"+ia),X[l].vertex=!0,v.insert(X[l]),Ub[l]=new mxCell("",new mxGeometry(0,(l-1)*Cb,r,Cb),"strokeColor=none;fillColor=none;part=1;"),Ub[l].vertex=!0,v.insert(Ub[l]),Ub[l].value=
|
|
|
|
|
v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,t,v);Bb=q;bc=parseInt(e.Cells);ia=b("part=1;",e,t,v);0<bc&&(Bb/=bc);X=[];Qa=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(0,(l-1)*Bb,r,Bb),ia),X[l].vertex=!0,v.insert(X[l]),X[l].value=m(e["cell_"+l]),X[l].style+=a(e["cell_"+l],G);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";
|
|
|
|
|
v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=b(v.style,e,t,v);Bb=q;bc=parseInt(e.Cells);ia=b("part=1;fillColor=none;",e,t,v);0<bc&&(Bb/=bc);X=[];Ub=[];for(l=1;l<=bc;l++)X[l]=new mxCell("",new mxGeometry(.5*r,(l-1)*Bb,.5*r,Bb),"shape=partialRectangle;left=0;"+ia),X[l].vertex=!0,v.insert(X[l]),Ub[l]=new mxCell("",new mxGeometry(0,(l-1)*Bb,r,Bb),"strokeColor=none;fillColor=none;part=1;"),Ub[l].vertex=!0,v.insert(Ub[l]),Ub[l].value=
|
|
|
|
|
m(e["cell_"+l]),Ub[l].style+=a(e["cell_"+l],G);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";v.style+=b(v.style,e,t,v);v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(.17*r,.2*q,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");w.vertex=!0;v.insert(w);
|
|
|
|
|
w.style+=b(w.style,e,t,w);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";ia="shape=card;size=18;flipH=1;part=1;";w=new mxCell("",new mxGeometry(.1*r,0,.9*r,.8*q),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+ia);w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);E=new mxCell("",new mxGeometry(.05*r,.1*q,.9*r,.8*q),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;"+ia);E.vertex=!0;v.insert(E);E.style+=b(E.style,
|
|
|
|
|
e,t,E);var T=new mxCell("",new mxGeometry(0,.2*q,.9*r,.8*q),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;"+ia);T.vertex=!0;v.insert(T);T.value=m(e.Text);T.style+=b(T.style,e,t,T,G);break;case "VSMElectronicInformationArrow":v.style="group;";v.value=m(e.Title);v.style+=a(e.Title,G);var va=new mxCell("",new mxGeometry(0,0,r,q),"shape=mxgraph.lean_mapping.electronic_info_flow_edge;html=1;entryX=0;entryY=1;exitX=1;exitY=0;");va.edge=!0;va.geometry.relative=
|
|
|
|
@ -188,24 +188,24 @@ new mxPoint(30,0),E.vertex=!0,v.insert(E)):e.VPC?(w=new mxCell("",new mxGeometry
|
|
|
|
|
0),E.vertex=!0,v.insert(E)):e.AWS?(w=new mxCell("",new mxGeometry(0,0,r,q-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),w.geometry.offset=new mxPoint(0,20),w.geometry.relative=!0,w.vertex=!0,v.insert(w),w.value=m(e.Title),w.style+=b(w.style,e,t,w,G),E=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):
|
|
|
|
|
e.Corporate?(w=new mxCell("",new mxGeometry(0,0,r,q-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),w.geometry.offset=new mxPoint(0,20),w.geometry.relative=!0,w.vertex=!0,v.insert(w),w.value=m(e.Title),w.style+=b(w.style,e,t,w,G),E=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(30,0),E.vertex=!0,v.insert(E)):
|
|
|
|
|
(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;",v.value=m(e.Title),v.style+=b(v.style,e,t,v,G));break;case "AWSElasticComputeCloudBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.ec2;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=b(v.style,e,t,v,G);break;case "AWSRoute53Block2":v.style+="strokeColor=none;shape=mxgraph.aws3.route_53;verticalLabelPosition=bottom;align=center;verticalAlign=top;";
|
|
|
|
|
v.value=m(e.Title);v.style+=b(v.style,e,t,v,G);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=b(v.style,e,t,v,G);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";pa=new mxCell("",new mxGeometry(.25*r,.25*q,.5*r,.5*q),"ellipse;html=1;strokeColor=#29AAE1;strokeWidth=2;");pa.vertex=!0;v.insert(pa);var Oa=[pa];pa.style+=ca(e,t);va=new mxCell("",new mxGeometry(0,
|
|
|
|
|
0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;sc(.5*r,0,va,F,D,Oa,v,pa);sc(.855*r,.145*q,va,F,D,Oa,v,pa);sc(r,.5*q,va,F,D,Oa,v,pa);sc(.855*r,.855*q,va,F,D,Oa,v,pa);sc(.5*r,q,va,F,D,Oa,v,pa);sc(.145*r,.855*q,va,F,D,Oa,v,pa);sc(0,.5*q,va,F,D,Oa,v,pa);sc(.145*r,.145*q,va,F,D,Oa,v,pa);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";pa=new mxCell("",new mxGeometry(0,.5*q-10,r,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");
|
|
|
|
|
pa.vertex=!0;v.insert(pa);Oa=[pa];va=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;Oa=[pa];var Ed=r/e.NumTopNodes;for(l=0;l<e.NumTopNodes;l++)sc(.5*Ed+l*Ed,0,va,F,D,Oa,v,pa);Ed=r/e.NumBottomNodes;for(l=0;l<e.NumBottomNodes;l++)sc(.5*Ed+l*Ed,q,va,F,D,Oa,v,pa);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;";v.value=m(e.Title);v.style+=b(v.style,e,t,v,G);
|
|
|
|
|
v.value=m(e.Title);v.style+=b(v.style,e,t,v,G);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;";v.value=m(e.Title);v.style+=b(v.style,e,t,v,G);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";oa=new mxCell("",new mxGeometry(.25*r,.25*q,.5*r,.5*q),"ellipse;html=1;strokeColor=#29AAE1;strokeWidth=2;");oa.vertex=!0;v.insert(oa);var Oa=[oa];oa.style+=ca(e,t);va=new mxCell("",new mxGeometry(0,
|
|
|
|
|
0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;sc(.5*r,0,va,F,D,Oa,v,oa);sc(.855*r,.145*q,va,F,D,Oa,v,oa);sc(r,.5*q,va,F,D,Oa,v,oa);sc(.855*r,.855*q,va,F,D,Oa,v,oa);sc(.5*r,q,va,F,D,Oa,v,oa);sc(.145*r,.855*q,va,F,D,Oa,v,oa);sc(0,.5*q,va,F,D,Oa,v,oa);sc(.145*r,.145*q,va,F,D,Oa,v,oa);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";oa=new mxCell("",new mxGeometry(0,.5*q-10,r,20),"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");
|
|
|
|
|
oa.vertex=!0;v.insert(oa);Oa=[oa];va=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");va.geometry.relative=!0;va.edge=!0;Oa=[oa];var Ed=r/e.NumTopNodes;for(l=0;l<e.NumTopNodes;l++)sc(.5*Ed+l*Ed,0,va,F,D,Oa,v,oa);Ed=r/e.NumBottomNodes;for(l=0;l<e.NumBottomNodes;l++)sc(.5*Ed+l*Ed,q,va,F,D,Oa,v,oa);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;";v.value=m(e.Title);v.style+=b(v.style,e,t,v,G);
|
|
|
|
|
e.ToggleCharge&&(v.style+="flipV=1;");break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);"EIMessageChannelBlock"==u.Class?(w=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),w.geometry.offset=new mxPoint(.45*-r,0)):"EIDatatypeChannelBlock"==
|
|
|
|
|
u.Class?(w=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),w.geometry.offset=new mxPoint(.45*-r,0)):"EIInvalidMessageChannelBlock"==u.Class?(w=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),w.geometry.offset=new mxPoint(.45*-r,0)):"EIDeadLetterChannelBlock"==u.Class?(w=new mxCell("",new mxGeometry(.5,.5,.9*r,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),w.geometry.offset=
|
|
|
|
|
new mxPoint(.45*-r,0)):"EIGuaranteedDeliveryBlock"==u.Class&&(w=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),w.geometry.offset=new mxPoint(-10,-7));w.geometry.relative=!0;w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);va=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");va.geometry.relative=!0;va.edge=!0;fb(.15*r,.25*q,.85*r,.25*q,va,F,D,Oa,v,pa);break;
|
|
|
|
|
new mxPoint(.45*-r,0)):"EIGuaranteedDeliveryBlock"==u.Class&&(w=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),w.geometry.offset=new mxPoint(-10,-7));w.geometry.relative=!0;w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);va=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");va.geometry.relative=!0;va.edge=!0;fb(.15*r,.25*q,.85*r,.25*q,va,F,D,Oa,v,oa);break;
|
|
|
|
|
case "EIChannelAdapterBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(0,.07*q,.21*r,.86*q),"fillColor=#FFFF33;part=1;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);E=new mxCell("",new mxGeometry(.26*r,.09*q,.2*r,.82*q),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");E.vertex=!0;v.insert(E);E.style+=b(E.style,e,t,E);T=new mxCell("",new mxGeometry(1,.5,.35*r,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");
|
|
|
|
|
T.geometry.relative=!0;T.geometry.offset=new mxPoint(.4*-r,-10);T.vertex=!0;v.insert(T);T.style+=b(T.style,e,t,T);ea=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=none;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=2;");ea.geometry.relative=!0;ea.edge=!0;w.insertEdge(ea,!0);E.insertEdge(ea,!1);ea.style+=I(e,t);F.push(D.addCell(ea,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=block;startArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=2;startFill=1;startSize=2;");
|
|
|
|
|
da.geometry.relative=!0;da.edge=!0;E.insertEdge(da,!0);T.insertEdge(da,!1);F.push(D.addCell(da,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);var Fd=
|
|
|
|
|
e.Messages,oe=(q-17)/Fd;E=[];va=[];for(l=0;l<Fd;l++){var Gd=oe*(l+1)-3;E[l]=new mxCell("",new mxGeometry(r-20,Gd,20,20),"part=1;");E[l].vertex=!0;v.insert(E[l]);switch(u.Class){case "EIMessageBlock":E[l].value=m(e["message_"+(l+1)]);E.style+=a(e["message_"+(l+1)],G);break;case "EICommandMessageBlock":E[l].value="C";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIDocumentMessageBlock":E[l].value="D";E[l].style+="fontStyle=1;fontSize=13;";break;case "EIEventMessageBlock":E[l].value="E",E[l].style+=
|
|
|
|
|
"fontStyle=1;fontSize=13;"}E[l].style+=b(E[l].style,e,t,E[l]);va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");va[l].geometry.relative=!0;va[l].edge=!0;w.insertEdge(va[l],!1);E[l].insertEdge(va[l],!0);va[l].style+=b(va[l].style,e,t,va[l]);var Kc=[];Kc.push(new mxPoint(Z+8.5,aa+Gd+10));va[l].geometry.points=Kc;F.push(D.addCell(va[l],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
|
|
|
|
|
v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(.45*r,.25*q,.3*r,.5*q),"part=1;fillColor=#ffffff");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);va=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");va.geometry.relative=!0;va.edge=!0;fb(0,.5*q,.4*r,.5*q,va,F,D,Oa,v,pa);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
|
|
|
|
|
v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);var ea=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");ea.geometry.relative=!0;ea.edge=!0;fb(.05*r,.5*q,.85*r,.5*q,ea,F,D,Oa,v,pa);var da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");da.geometry.relative=!0;da.edge=!0;fb(.05*r,.5*q,.85*
|
|
|
|
|
r,.15*q,da,F,D,Oa,v,pa);var xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");xa.geometry.relative=!0;xa.edge=!0;fb(.05*r,.5*q,.85*r,.85*q,xa,F,D,Oa,v,pa);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);ea=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
|
|
|
|
|
ea.geometry.relative=!0;ea.edge=!0;ea.style+=I(e,t);fb(.05*r,.5*q,.95*r,.5*q,ea,F,D,Oa,v,pa);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");da.geometry.relative=!0;da.edge=!0;da.style+=I(e,t);fb(.3*r,.1*q,.3*r,.5*q,da,F,D,Oa,v,pa);xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
|
|
|
|
|
xa.geometry.relative=!0;xa.edge=!0;xa.style+=I(e,t);fb(.7*r,.1*q,.7*r,.5*q,xa,F,D,Oa,v,pa);var Ya=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");Ya.geometry.relative=!0;Ya.edge=!0;Ya.style+=I(e,t);fb(.5*r,.5*q,.5*r,.9*q,Ya,F,D,Oa,v,pa);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,
|
|
|
|
|
e,t,v,G);w=new mxCell("",new mxGeometry(.2*r,.21*q,.16*r,.24*q),"part=1;fillColor=#ffffff;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);ea=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");ea.geometry.relative=!0;ea.edge=!0;fb(.45*r,.33*q,.8*r,.33*q,ea,F,D,Oa,v,pa);E=new mxCell("",new mxGeometry(.64*r,.55*q,.16*r,.24*q),"part=1;fillColor=#ffffff;");E.vertex=!0;v.insert(E);E.style+=b(E.style,
|
|
|
|
|
e,t,E);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");da.geometry.relative=!0;da.edge=!0;fb(.55*r,.67*q,.2*r,.67*q,da,F,D,Oa,v,pa);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(.1*r,.15*q,.8*r,.7*q),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");w.vertex=!0;v.insert(w);
|
|
|
|
|
v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(.45*r,.25*q,.3*r,.5*q),"part=1;fillColor=#ffffff");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);va=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");va.geometry.relative=!0;va.edge=!0;fb(0,.5*q,.4*r,.5*q,va,F,D,Oa,v,oa);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
|
|
|
|
|
v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);var ea=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");ea.geometry.relative=!0;ea.edge=!0;fb(.05*r,.5*q,.85*r,.5*q,ea,F,D,Oa,v,oa);var da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");da.geometry.relative=!0;da.edge=!0;fb(.05*r,.5*q,.85*
|
|
|
|
|
r,.15*q,da,F,D,Oa,v,oa);var xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");xa.geometry.relative=!0;xa.edge=!0;fb(.05*r,.5*q,.85*r,.85*q,xa,F,D,Oa,v,oa);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);ea=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
|
|
|
|
|
ea.geometry.relative=!0;ea.edge=!0;ea.style+=I(e,t);fb(.05*r,.5*q,.95*r,.5*q,ea,F,D,Oa,v,oa);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");da.geometry.relative=!0;da.edge=!0;da.style+=I(e,t);fb(.3*r,.1*q,.3*r,.5*q,da,F,D,Oa,v,oa);xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
|
|
|
|
|
xa.geometry.relative=!0;xa.edge=!0;xa.style+=I(e,t);fb(.7*r,.1*q,.7*r,.5*q,xa,F,D,Oa,v,oa);var Ya=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");Ya.geometry.relative=!0;Ya.edge=!0;Ya.style+=I(e,t);fb(.5*r,.5*q,.5*r,.9*q,Ya,F,D,Oa,v,oa);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,
|
|
|
|
|
e,t,v,G);w=new mxCell("",new mxGeometry(.2*r,.21*q,.16*r,.24*q),"part=1;fillColor=#ffffff;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);ea=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");ea.geometry.relative=!0;ea.edge=!0;fb(.45*r,.33*q,.8*r,.33*q,ea,F,D,Oa,v,oa);E=new mxCell("",new mxGeometry(.64*r,.55*q,.16*r,.24*q),"part=1;fillColor=#ffffff;");E.vertex=!0;v.insert(E);E.style+=b(E.style,
|
|
|
|
|
e,t,E);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");da.geometry.relative=!0;da.edge=!0;fb(.55*r,.67*q,.2*r,.67*q,da,F,D,Oa,v,oa);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(.1*r,.15*q,.8*r,.7*q),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");w.vertex=!0;v.insert(w);
|
|
|
|
|
w.style+=b(w.style,e,t,w);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(.04*r,.06*q,.18*r,.28*q),"ellipse;fillColor=#808080;part=1;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);E=new mxCell("",new mxGeometry(.2*r,.56*q,.2*r,.32*q),"part=1;");E.vertex=!0;v.insert(E);E.value="A";E.style+="fontStyle=1;fontSize=13;";w.style+=b(w.style,e,t,w);ea=new mxCell("",new mxGeometry(0,
|
|
|
|
|
0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");ea.geometry.relative=!0;ea.edge=!0;w.insertEdge(ea,!1);E.insertEdge(ea,!0);ea.style+=b(ea.style,e,t,ea);Kc=[];Kc.push(new mxPoint(Z+.13*r,aa+.72*q));ea.geometry.points=Kc;F.push(D.addCell(ea,null,null,null,null));T=new mxCell("",new mxGeometry(.6*r,.06*q,.18*r,.28*q),"ellipse;fillColor=#808080;part=1;");T.vertex=!0;v.insert(T);T.style+=I(e,t)+sa(e);T.style+=b(T.style,e,t,T);ta=new mxCell("",new mxGeometry(.76*
|
|
|
|
|
r,.56*q,.2*r,.32*q),"part=1;");ta.vertex=!0;v.insert(ta);ta.style+=I(e,t)+O(e,t,ta)+sa(e)+qa(e);ta.value="B";ta.style+="fontStyle=1;fontSize=13;fillColor=#ffffff;";ta.style+=b(ta.style,e,t,ta);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");da.geometry.relative=!0;da.edge=!0;T.insertEdge(da,!1);ta.insertEdge(da,!0);da.style+=b(da.style,e,t,da);var df=[];df.push(new mxPoint(Z+.69*r,aa+.72*q));da.geometry.points=
|
|
|
|
@ -217,27 +217,27 @@ w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);E=new mxCell("",new mxGeometry
|
|
|
|
|
.61*q,.24*r,.16*q),"");Zd.vertex=!0;v.insert(Zd);Zd.style=E.style;var $d=new mxCell("",new mxGeometry(0,.23*q,.24*r,.16*q),"");$d.vertex=!0;v.insert($d);$d.style=E.style;ea=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");w.insertEdge(ea,!1);E.insertEdge(ea,!0);ea.edge=!0;ea.style+=b(ea.style,e,t,ea);F.push(D.addCell(ea,null,null,null,null));da=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");w.insertEdge(da,!1);T.insertEdge(da,!0);da.edge=!0;da.style+=b(da.style,e,t,da);
|
|
|
|
|
F.push(D.addCell(da,null,null,null,null));xa=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");w.insertEdge(xa,!1);ta.insertEdge(xa,!0);xa.edge=!0;xa.style+=b(xa.style,e,t,xa);F.push(D.addCell(xa,null,null,null,null));Ya=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");w.insertEdge(Ya,!1);Yd.insertEdge(Ya,!0);Ya.edge=!0;Ya.style+=b(Ya.style,e,t,Ya);F.push(D.addCell(Ya,null,null,null,null));var Lc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");w.insertEdge(Lc,
|
|
|
|
|
!1);Zd.insertEdge(Lc,!0);Lc.edge=!0;Lc.style+=b(Lc.style,e,t,Lc);F.push(D.addCell(Lc,null,null,null,null));var Mc=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");w.insertEdge(Mc,!1);$d.insertEdge(Mc,!0);Mc.edge=!0;Mc.style+=b(Mc.style,e,t,Mc);F.push(D.addCell(Mc,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);ea=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");
|
|
|
|
|
ea.geometry.relative=!0;ea.edge=!0;fb(.05*r,.5*q,.6*r,.25*q,ea,F,D,Oa,v,pa);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");da.geometry.relative=!0;da.edge=!0;fb(.05*r,.5*q,.6*r,.75*q,da,F,D,Oa,v,pa);w=new mxCell("",new mxGeometry(.7*r,.1*q,.15*r,.32*q),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
|
|
|
|
|
ea.geometry.relative=!0;ea.edge=!0;fb(.05*r,.5*q,.6*r,.25*q,ea,F,D,Oa,v,oa);da=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");da.geometry.relative=!0;da.edge=!0;fb(.05*r,.5*q,.6*r,.75*q,da,F,D,Oa,v,oa);w=new mxCell("",new mxGeometry(.7*r,.1*q,.15*r,.32*q),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";
|
|
|
|
|
v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(.25*r,.25*q,.5*r,.5*q),"shape=mxgraph.eip.control_bus;part=1;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(0,0,17,17),"ellipse;fillColor=#808080;part=1;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);T=new mxCell("",
|
|
|
|
|
new mxGeometry(r-45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");T.vertex=!0;v.insert(T);T.style+=b(T.style,e,t,T);xa=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");xa.geometry.relative=!0;xa.edge=!0;w.insertEdge(xa,!1);T.insertEdge(xa,!0);xa.style+=b(xa.style,e,t,xa);xa.geometry.points=[new mxPoint(Z+8.5,aa+40)];F.push(D.addCell(xa,null,null,null,null));ta=new mxCell("",new mxGeometry(r-45,
|
|
|
|
|
q-20,20,20),"part=1;");ta.vertex=!0;v.insert(ta);ta.value=m(e.message_0);ta.style+=a(e.message_0,G);ta.style+=b(ta.style,e,t,ta,G);Ya=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");Ya.geometry.relative=!0;Ya.edge=!0;w.insertEdge(Ya,!1);ta.insertEdge(Ya,!0);Ya.style+=b(Ya.style,e,t,Ya);Ya.geometry.points=[new mxPoint(Z+8.5,aa+q-10)];F.push(D.addCell(Ya,null,null,null,null));Fd=e.HistoryMessages;oe=(q-75)/Fd;E=[];va=
|
|
|
|
|
[];for(l=0;l<Fd;l++)Gd=oe*(l+1)+30,E[l]=new mxCell("",new mxGeometry(r-20,Gd,20,20),"part=1;"),E[l].vertex=!0,E[l].value=m(e["message_"+(l+1)]),E.style+=a(e["message_"+(l+1)],G),v.insert(E[l]),E[l].style+=b(E[l].style,e,t,E[l],G),va[l]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),va[l].geometry.relative=!0,va[l].edge=!0,T.insertEdge(va[l],!1),E[l].insertEdge(va[l],!0),va[l].style+=b(va[l].style,e,t,va[l]),Kc=[],Kc.push(new mxPoint(Z+
|
|
|
|
|
r-30,aa+Gd+10)),va[l].geometry.points=Kc,F.push(D.addCell(va[l],null,null,null,null));break;case "Equation":LucidImporter.hasMath=!0;v.style+="strokeColor=none;";v.style+=b(v.style,e,t,v);v.value="$$"+e.Latex+"$$";break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;";0>e.DoorAngle&&(v.style+="flipV=1;");v.style+=b(v.style,e,t,v);break;case "fpWall":v.style+="labelPosition=center;verticalAlign=bottom;verticalLabelPosition=top;";v.value=m(e);v.style+=b(v.style,e,t,v,G);v.style=v.style.replace("rotation=180;",
|
|
|
|
|
"");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;";0<e.DoorAngle&&(v.style+="flipV=1;");v.style+=b(v.style,e,t,v);break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,t,v);w=new mxCell("",new mxGeometry(0,0,r,.25*q),"part=1;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);E=[];var ef=.02*r,pe=(r-2*ef)/e.LightCount,ff=.8*pe;for(l=0;l<e.LightCount;l++)E[l]=new mxCell("",new mxGeometry(ef+pe*l+(pe-ff)/2,.25*q,ff,.75*q),"ellipse;part=1;"),
|
|
|
|
|
E[l].vertex=!0,v.insert(E[l]),E[l].style+=b(E[l].style,e,t,E[l]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,t,v);w=[];var gf=r/e.SinkCount;for(l=0;l<e.SinkCount;l++)w[l]=new mxCell("",new mxGeometry(gf*l,0,gf,q),"part=1;shape=mxgraph.floorplan.sink_2;"),w[l].vertex=!0,v.insert(w[l]),w[l].style+=b(w[l].style,e,t,w[l]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var Fb=.1*r/e.StallCount;w=new mxCell("",new mxGeometry(0,
|
|
|
|
|
0,Fb,q),"fillColor=#000000;part=1;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);var Ob=(r-Fb)/e.StallCount,qe=[],Hd=[],Id=[],Jd=[];Y=I(e,t);Y=""==Y?"#000000;":Y.replace("stokreColor=","");var re="part=1;fillColor="+Y;re+=b(re,e,t,v);var se=b("",e,t,v);for(l=0;l<e.StallCount;l++)qe[l]=new mxCell("",new mxGeometry((l+1)*Ob,0,Fb,q),re),qe[l].vertex=!0,v.insert(qe[l]),Id[l]=new mxCell("",new mxGeometry(Fb+l*Ob+.05*(Ob-Fb),q-.92*(Ob-Fb),.9*(Ob-Fb),.92*(Ob-Fb)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),
|
|
|
|
|
Id[l].vertex=!0,v.insert(Id[l]),Id[l].style+=se,Hd[l]=new mxCell("",new mxGeometry(Fb+l*Ob+.2*(Ob-Fb),0,.6*(Ob-Fb),.8*(Ob-Fb)),"shape=mxgraph.floorplan.toilet;part=1;"),Hd[l].vertex=!0,v.insert(Hd[l]),Hd[l].style+=se,Jd[l]=new mxCell("",new mxGeometry(Fb+l*Ob,.42*q,.15*(Ob-Fb),.12*(Ob-Fb)),"part=1;"),Jd[l].vertex=!0,v.insert(Jd[l]),Jd[l].style+=se;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var ae="edgeStyle=none;endArrow=none;part=1;";Y=I(e,t);Y=""==Y?"#000000;":Y.replace("strokeColor=",
|
|
|
|
|
"");var Uc="shape=triangle;part=1;fillColor="+Y;Uc+=b(Uc,e,t,v);ea=new mxCell("",new mxGeometry(0,0,0,0),ae);ea.geometry.relative=!0;ea.edge=!0;fb(0,.5*q,.65*r,.5*q,ea,F,D,Oa,v,pa);var ha=q/e.numLines;da=[];var Vc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),ae),da[l].geometry.relative=!0,da[l].edge=!0,fb(.65*r,.5*q,.96*r,(l+.5)*ha,da[l],F,D,Oa,v,pa),Vc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ha,.05*r,.6*ha),Uc),Vc[l].vertex=!0,v.insert(Vc[l]);break;case "PEMultilines":v.style+=
|
|
|
|
|
"strokeColor=none;fillColor=none;";ae="edgeStyle=none;endArrow=none;part=1;";Y=I(e,t);Y=""==Y?"#000000;":Y.replace("strokeColor=","");Uc="shape=triangle;part=1;fillColor="+Y;Uc+=b(Uc,e,t,v);ha=q/e.numLines;da=[];Vc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),ae),da[l].geometry.relative=!0,da[l].edge=!0,fb(0,(l+.5)*ha,.96*r,(l+.5)*ha,da[l],F,D,Oa,v,pa),Vc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ha,.05*r,.6*ha),Uc),Vc[l].vertex=!0,v.insert(Vc[l]);break;case "PEVesselBlock":v.style+=
|
|
|
|
|
E[l].vertex=!0,v.insert(E[l]),E[l].style+=b(E[l].style,e,t,E[l]);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;";v.style+=b(v.style,e,t,v);w=[];var gf=r/e.SinkCount;for(l=0;l<e.SinkCount;l++)w[l]=new mxCell("",new mxGeometry(gf*l,0,gf,q),"part=1;shape=mxgraph.floorplan.sink_2;"),w[l].vertex=!0,v.insert(w[l]),w[l].style+=b(w[l].style,e,t,w[l]);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var Eb=.1*r/e.StallCount;w=new mxCell("",new mxGeometry(0,
|
|
|
|
|
0,Eb,q),"fillColor=#000000;part=1;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);var Nb=(r-Eb)/e.StallCount,qe=[],Hd=[],Id=[],Jd=[];Y=I(e,t);Y=""==Y?"#000000;":Y.replace("stokreColor=","");var re="part=1;fillColor="+Y;re+=b(re,e,t,v);var se=b("",e,t,v);for(l=0;l<e.StallCount;l++)qe[l]=new mxCell("",new mxGeometry((l+1)*Nb,0,Eb,q),re),qe[l].vertex=!0,v.insert(qe[l]),Id[l]=new mxCell("",new mxGeometry(Eb+l*Nb+.05*(Nb-Eb),q-.92*(Nb-Eb),.9*(Nb-Eb),.92*(Nb-Eb)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),
|
|
|
|
|
Id[l].vertex=!0,v.insert(Id[l]),Id[l].style+=se,Hd[l]=new mxCell("",new mxGeometry(Eb+l*Nb+.2*(Nb-Eb),0,.6*(Nb-Eb),.8*(Nb-Eb)),"shape=mxgraph.floorplan.toilet;part=1;"),Hd[l].vertex=!0,v.insert(Hd[l]),Hd[l].style+=se,Jd[l]=new mxCell("",new mxGeometry(Eb+l*Nb,.42*q,.15*(Nb-Eb),.12*(Nb-Eb)),"part=1;"),Jd[l].vertex=!0,v.insert(Jd[l]),Jd[l].style+=se;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var ae="edgeStyle=none;endArrow=none;part=1;";Y=I(e,t);Y=""==Y?"#000000;":Y.replace("strokeColor=",
|
|
|
|
|
"");var Uc="shape=triangle;part=1;fillColor="+Y;Uc+=b(Uc,e,t,v);ea=new mxCell("",new mxGeometry(0,0,0,0),ae);ea.geometry.relative=!0;ea.edge=!0;fb(0,.5*q,.65*r,.5*q,ea,F,D,Oa,v,oa);var ha=q/e.numLines;da=[];var Vc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),ae),da[l].geometry.relative=!0,da[l].edge=!0,fb(.65*r,.5*q,.96*r,(l+.5)*ha,da[l],F,D,Oa,v,oa),Vc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ha,.05*r,.6*ha),Uc),Vc[l].vertex=!0,v.insert(Vc[l]);break;case "PEMultilines":v.style+=
|
|
|
|
|
"strokeColor=none;fillColor=none;";ae="edgeStyle=none;endArrow=none;part=1;";Y=I(e,t);Y=""==Y?"#000000;":Y.replace("strokeColor=","");Uc="shape=triangle;part=1;fillColor="+Y;Uc+=b(Uc,e,t,v);ha=q/e.numLines;da=[];Vc=[];for(l=0;l<e.numLines;l++)da[l]=new mxCell("",new mxGeometry(0,0,0,0),ae),da[l].geometry.relative=!0,da[l].edge=!0,fb(0,(l+.5)*ha,.96*r,(l+.5)*ha,da[l],F,D,Oa,v,oa),Vc[l]=new mxCell("",new mxGeometry(.95*r,(l+.2)*ha,.05*r,.6*ha),Uc),Vc[l].vertex=!0,v.insert(Vc[l]);break;case "PEVesselBlock":v.style+=
|
|
|
|
|
"verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);switch(e.vesselType){case 1:v.style+="shape=mxgraph.pid.vessels.pressurized_vessel;";break;case 2:v.style+="shape=hexagon;perimeter=hexagonPerimeter2;size=0.10;direction=south;"}v.style+=b(v.style,e,t,v,G);break;case "PEClosedTankBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);1==e.peakedRoof&&0==e.stumpType?v.style+="shape=mxgraph.pid.vessels.tank_(conical_roof);":1==e.stumpType&&(v.style+="shape=mxgraph.pid.vessels.tank_(boot);");
|
|
|
|
|
v.style+=b(v.style,e,t,v,G);break;case "PEColumnBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;";v.value=m(e.Text);v.style=0==e.columnType?v.style+"shape=mxgraph.pid.vessels.pressurized_vessel;":v.style+"shape=mxgraph.pid.vessels.tank;";v.style+=b(v.style,e,t,v,G);break;case "PECompressorTurbineBlock":v.style+="strokeColor=none;fillColor=none;";v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(0,.2*q,r,.6*q),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");
|
|
|
|
|
w.vertex=!0;v.insert(w);w.style+=ia;w.style+=b(w.style,e,t,w);ia="endSize=4;endArrow=block;endFill=1;";0==e.compressorType?(ea=new mxCell("",new mxGeometry(0,0,0,0),""),ea.geometry.relative=!0,ea.edge=!0,ea.style+=ia,ea.style+=b(ea.style,e,t,ea),fb(0,0,0,.2*q,ea,F,D,Oa,v,pa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=ia,da.style+=b(da.style,e,t,da),fb(r,.67*q,r,q,da,F,D,Oa,v,pa)):(w.style+="flipH=1;",ea=new mxCell("",new mxGeometry(0,0,0,0),""),ea.geometry.relative=
|
|
|
|
|
!0,ea.edge=!0,ea.style+=ia,ea.style+=b(ea.style,e,t,ea),fb(0,0,0,.33*q,ea,F,D,Oa,v,pa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=ia,da.style+=b(da.style,e,t,da),fb(r,.8*q,r,q,da,F,D,Oa,v,pa));1==e.centerLineType&&(xa=new mxCell("",new mxGeometry(0,0,0,0),""),xa.geometry.relative=!0,xa.edge=!0,xa.style+=ia,xa.style+=b(xa.style,e,t,xa),fb(.2*r,.5*q,.8*r,.5*q,xa,F,D,Oa,v,pa));break;case "PEMotorDrivenTurbineBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";
|
|
|
|
|
w.vertex=!0;v.insert(w);w.style+=ia;w.style+=b(w.style,e,t,w);ia="endSize=4;endArrow=block;endFill=1;";0==e.compressorType?(ea=new mxCell("",new mxGeometry(0,0,0,0),""),ea.geometry.relative=!0,ea.edge=!0,ea.style+=ia,ea.style+=b(ea.style,e,t,ea),fb(0,0,0,.2*q,ea,F,D,Oa,v,oa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=ia,da.style+=b(da.style,e,t,da),fb(r,.67*q,r,q,da,F,D,Oa,v,oa)):(w.style+="flipH=1;",ea=new mxCell("",new mxGeometry(0,0,0,0),""),ea.geometry.relative=
|
|
|
|
|
!0,ea.edge=!0,ea.style+=ia,ea.style+=b(ea.style,e,t,ea),fb(0,0,0,.33*q,ea,F,D,Oa,v,oa),da=new mxCell("",new mxGeometry(0,0,0,0),""),da.geometry.relative=!0,da.edge=!0,da.style+=ia,da.style+=b(da.style,e,t,da),fb(r,.8*q,r,q,da,F,D,Oa,v,oa));1==e.centerLineType&&(xa=new mxCell("",new mxGeometry(0,0,0,0),""),xa.geometry.relative=!0,xa.edge=!0,xa.style+=ia,xa.style+=b(xa.style,e,t,xa),fb(.2*r,.5*q,.8*r,.5*q,xa,F,D,Oa,v,oa));break;case "PEMotorDrivenTurbineBlock":v.style+="shape=ellipse;perimeter=ellipsePerimeter;";
|
|
|
|
|
v.value=m(e.Text);v.style+=b(v.style,e,t,v,G);w=new mxCell("",new mxGeometry(.2*r,.2*q,.6*r,.6*q),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");w.vertex=!0;v.insert(w);w.style+=b(w.style,e,t,w);break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":switch(u.Class){case "PEIndicatorBlock":v.style+="shape=mxgraph.pid2inst.discInst;";break;case "PEIndicator2Block":v.style+=
|
|
|
|
|
"shape=mxgraph.pid2inst.indicator;indType=inst;";break;case "PESharedIndicatorBlock":v.style+="shape=mxgraph.pid2inst.sharedCont;";break;case "PEComputerIndicatorBlock":v.style+="shape=mxgraph.pid2inst.compFunc;";break;case "PESharedIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=ctrl;";break;case "PEProgrammableIndicatorBlock":v.style+="shape=mxgraph.pid2inst.progLogCont;"}v.style+=b(v.style,e,t,v);"PEIndicator2Block"==u.Class||"PESharedIndicator2Block"==u.Class?(w=new mxCell("",
|
|
|
|
|
new mxGeometry(0,0,r,.5*r),"part=1;strokeColor=none;fillColor=none;"),w.vertex=!0,v.insert(w),w.value=m(e.TopText),w.style+=a(e.TopText,G),w.style+=b(w.style,e,t,w,G),E=new mxCell("",new mxGeometry(0,.5*r,r,.5*r),"part=1;strokeColor=none;fillColor=none;")):(w=new mxCell("",new mxGeometry(0,0,r,.5*q),"part=1;strokeColor=none;fillColor=none;"),w.vertex=!0,v.insert(w),w.value=m(e.TopText),w.style+=a(e.TopText,G),w.style+=b(w.style,e,t,w,G),E=new mxCell("",new mxGeometry(0,.5*q,r,.5*q),"part=1;strokeColor=none;fillColor=none;"));
|
|
|
|
|
E.vertex=!0;v.insert(E);E.value=m(e.BotText);E.style+=a(e.BotText,G);E.style+=b(E.style,e,t,E,G);switch(e.instrumentLocation){case 0:v.style+="mounting=field;";break;case 1:v.style+="mounting=inaccessible;";break;case 2:v.style+="mounting=room;";break;case 3:v.style+="mounting=local;"}break;case "PEGateValveBlock":case "PEGlobeValveBlock":case "PEAngleValveBlock":case "PEAngleGlobeValveBlock":case "PEPoweredValveBlock":var te=!1;"PEPoweredValveBlock"==u.Class?1!=e.poweredHandOperated&&(te=!0):1!=
|
|
|
|
|
e.handOperated&&(te=!0);if(te){e=h(u).Properties;P=e.BoundingBox;var Sf=P.h;P.h="PEAngleValveBlock"==u.Class||"PEAngleGlobeValveBlock"==u.Class?.7*P.h:.6*P.h;v=new mxCell("",new mxGeometry(Math.round(.75*P.x+wc),Math.round(.75*(P.y+Sf-P.h)+xc),Math.round(.75*P.w),Math.round(.75*P.h)),"");v.vertex=!0;yb(v,u,D)}if("PEPoweredValveBlock"==u.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",v.style+=b(v.style,e,t,v),1==e.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",
|
|
|
|
|
e.handOperated&&(te=!0);if(te){e=h(u).Properties;P=e.BoundingBox;var Sf=P.h;P.h="PEAngleValveBlock"==u.Class||"PEAngleGlobeValveBlock"==u.Class?.7*P.h:.6*P.h;v=new mxCell("",new mxGeometry(Math.round(.75*P.x+wc),Math.round(.75*(P.y+Sf-P.h)+xc),Math.round(.75*P.w),Math.round(.75*P.h)),"");v.vertex=!0;Qb(v,u,D)}if("PEPoweredValveBlock"==u.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",v.style+=b(v.style,e,t,v),1==e.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",
|
|
|
|
|
w=new mxCell("",new mxGeometry(.325*r,0,.35*r,.35*q),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),w.vertex=!0,v.insert(w),w.value=m(e.PoweredText),w.style+=(G?"":p(e.PoweredText)+x(e.PoweredText)+C(e.PoweredText)+J(e.PoweredText)+M(e.PoweredText)+Q(e.PoweredText)+U(e.PoweredText))+"fontSize=6;"+H(e.PoweredText),w.style+=b(w.style,e,t,w,G)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";v.value=m(e.Text);switch(u.Class){case "PEGateValveBlock":v.style+=
|
|
|
|
|
"valveType=gate;";break;case "PEGlobeValveBlock":v.style+="valveType=globe;";break;case "PEAngleValveBlock":v.style+="valveType=angle;";break;case "PEAngleGlobeValveBlock":v.style+="valveType=angleGlobe;flipH=1;"}1==e.handOperated&&(v.style+="actuator=man;")}v.style+=b(v.style,e,t,v,G);break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;";1==e.vScroll&&(T=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,q-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
|
|
|
|
|
new mxCell("",new mxGeometry(1,0,20,q-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(-20,110),T.vertex=!0,v.insert(T),v.style+="spacingRight=20;");1==e.hScroll&&(ta=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
|
|
|
|
@ -249,15 +249,15 @@ E.vertex=!0;w.insert(E);1==e.vScroll&&(T=1==e.hScroll?new mxCell("",new mxGeomet
|
|
|
|
|
l==e.Selected-1?new mxCell("",new mxGeometry(0,l*ha,r,ha),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,q-(e.Panels-e.Selected)*ha+(l-e.Selected)*ha,r,ha),"part=1;fillColor=#000000;fillOpacity=25;"),w[l].vertex=!0,v.insert(w[l]),w[l].value=m(e["Panel_"+(l+1)]),w[l].style+=a(e["Panel_"+(l+1)],G),0>w[l].style.indexOf(";align=")&&(w[l].style+="align=left;spacingLeft=5;");var Ua=I(e,t);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?
|
|
|
|
|
new mxCell("",new mxGeometry(1,0,20,q-e.Selected*ha-20-(e.Panels-e.Selected)*ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,q-e.Selected*ha-(e.Panels-e.Selected)*ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,e.Selected*ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,
|
|
|
|
|
e,t,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20-(e.Panels-e.Selected)*ha),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,t,T));ta=1==e.vScroll?new mxCell("",new mxGeometry(0,e.Selected*ha,r-20,q-e.Selected*ha-
|
|
|
|
|
20-(e.Panels-e.Selected)*ha),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*ha,r-20,q-e.Selected*ha-(e.Panels-e.Selected)*ha),"part=1;fillColor=none;strokeColor=none;");ta.vertex=!0;v.insert(ta);ta.value=m(e.Content_1);ta.style+=a(e.Content_1,G);!G&&0>ta.style.indexOf(";align=")&&(ta.style+="align=left;spacingLeft=5;");v.style+=b(v.style,e,t,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";w=[];E=[];ha=25;var Ib=3,Ha=(r+Ib)/
|
|
|
|
|
(e.Tabs+1),hb=new mxCell("",new mxGeometry(0,ha,r,q-ha),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,t,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(10+l*Ha,0,Ha-Ib,ha),""),E[l].vertex=!0,v.insert(E[l])):(w[l]=new mxCell("",new mxGeometry(10+l*Ha,0,Ha-Ib,ha),"strokeColor=none;"),w[l].vertex=!0,v.insert(w[l]),w[l].style+=w[l].style+=b(w[l].style,e,t,w[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha-Ib,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=
|
|
|
|
|
20-(e.Panels-e.Selected)*ha),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*ha,r-20,q-e.Selected*ha-(e.Panels-e.Selected)*ha),"part=1;fillColor=none;strokeColor=none;");ta.vertex=!0;v.insert(ta);ta.value=m(e.Content_1);ta.style+=a(e.Content_1,G);!G&&0>ta.style.indexOf(";align=")&&(ta.style+="align=left;spacingLeft=5;");v.style+=b(v.style,e,t,v);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";w=[];E=[];ha=25;var Hb=3,Ha=(r+Hb)/
|
|
|
|
|
(e.Tabs+1),hb=new mxCell("",new mxGeometry(0,ha,r,q-ha),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,t,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(10+l*Ha,0,Ha-Hb,ha),""),E[l].vertex=!0,v.insert(E[l])):(w[l]=new mxCell("",new mxGeometry(10+l*Ha,0,Ha-Hb,ha),"strokeColor=none;"),w[l].vertex=!0,v.insert(w[l]),w[l].style+=w[l].style+=b(w[l].style,e,t,w[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha-Hb,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=
|
|
|
|
|
!0,w[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,e,t,E[l]);Ua=I(e,t);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,q-20-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,q-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),
|
|
|
|
|
E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,e,t,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=
|
|
|
|
|
Ua,T.style+=b(T.style,e,t,T));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";w=[];E=[];ha=25;Ib=3;Ha=(r+Ib)/e.Tabs;hb=new mxCell("",new mxGeometry(0,ha,r,q-ha),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,t,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha-Ib,ha),""),E[l].vertex=!0,v.insert(E[l])):(w[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha-Ib,ha),"strokeColor=none;"),w[l].vertex=!0,v.insert(w[l]),w[l].style+=
|
|
|
|
|
b(w[l].style,e,t,w[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha-Ib,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,w[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,t,E[l],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;");Ua=I(e,t);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,q-20-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
|
|
|
|
|
Ua,T.style+=b(T.style,e,t,T));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";w=[];E=[];ha=25;Hb=3;Ha=(r+Hb)/e.Tabs;hb=new mxCell("",new mxGeometry(0,ha,r,q-ha),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,t,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha-Hb,ha),""),E[l].vertex=!0,v.insert(E[l])):(w[l]=new mxCell("",new mxGeometry(l*Ha,0,Ha-Hb,ha),"strokeColor=none;"),w[l].vertex=!0,v.insert(w[l]),w[l].style+=
|
|
|
|
|
b(w[l].style,e,t,w[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha-Hb,ha),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,w[l].insert(E[l])),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,t,E[l],G),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;");Ua=I(e,t);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,q-20-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
|
|
|
|
|
new mxCell("",new mxGeometry(1,0,20,q-ha),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,ha),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",E.style+=Ua,E.style+=b(E.style,e,t,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(0,1,r-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,r,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
|
|
|
|
|
T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,t,T));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";w=[];E=[];Ib=3;ha=25+Ib;Ha=80;zc=10;hb=new mxCell("",new mxGeometry(Ha,0,r-Ha,q),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,t,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,zc+l*ha,Ha,ha-Ib),""),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Tab_"+
|
|
|
|
|
(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,t,E[l],G)):(w[l]=new mxCell("",new mxGeometry(0,zc+l*ha,Ha,ha-Ib),"strokeColor=none;"),w[l].vertex=!0,v.insert(w[l]),w[l].style+=b(w[l].style,e,t,w[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha,ha-Ib),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,w[l].insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G)),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,
|
|
|
|
|
T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,t,T));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";w=[];E=[];Hb=3;ha=25+Hb;Ha=80;zc=10;hb=new mxCell("",new mxGeometry(Ha,0,r-Ha,q),"part=1;");hb.vertex=!0;v.insert(hb);hb.style+=b(hb.style,e,t,hb);for(l=0;l<=e.Tabs-1;l++)l==e.Selected-1?(E[l]=new mxCell("",new mxGeometry(0,zc+l*ha,Ha,ha-Hb),""),E[l].vertex=!0,v.insert(E[l]),E[l].value=m(e["Tab_"+
|
|
|
|
|
(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G),E[l].style+=b(E[l].style,e,t,E[l],G)):(w[l]=new mxCell("",new mxGeometry(0,zc+l*ha,Ha,ha-Hb),"strokeColor=none;"),w[l].vertex=!0,v.insert(w[l]),w[l].style+=b(w[l].style,e,t,w[l]),E[l]=new mxCell("",new mxGeometry(0,0,Ha,ha-Hb),"fillColor=#000000;fillOpacity=25;"),E[l].vertex=!0,w[l].insert(E[l]),E[l].value=m(e["Tab_"+(l+1)]),E[l].style+=a(e["Tab_"+(l+1)],G)),0>E[l].style.indexOf(";align=")&&(E[l].style+="align=left;spacingLeft=2;"),E[l].style+=b(E[l].style,
|
|
|
|
|
e,t,E[l]);Ua=I(e,t);Ua=Ua.replace("strokeColor","fillColor2");""==Ua&&(Ua="fillColor2=#000000;");1==e.vScroll&&(E=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,q-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,q),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),E.geometry.relative=!0,E.geometry.offset=new mxPoint(-20,0),E.vertex=!0,v.insert(E),v.style+="spacingRight=20;",
|
|
|
|
|
E.style+=Ua,E.style+=b(E.style,e,t,E));1==e.hScroll&&(T=1==e.vScroll?new mxCell("",new mxGeometry(Ha,1,r-20-Ha,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(Ha,1,r-Ha,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),T.geometry.relative=!0,T.geometry.offset=new mxPoint(0,-20),T.vertex=!0,v.insert(T),T.style+=Ua,T.style+=b(T.style,e,t,T));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";
|
|
|
|
|
ha=q/e.Options;w=[];E=[];for(l=0;l<e.Options;l++)w[l]=new mxCell("",new mxGeometry(0,l*ha+.5*ha-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),w[l].vertex=!0,v.insert(w[l]),w[l].value=m(e["Option_"+(l+1)]),w[l].style+=a(e["Option_"+(l+1)],G),w[l].style+=b(w[l].style,e,t,w[l],G),null!=e.Selected[l+1]&&1==e.Selected[l+1]&&(Y=I(e,t),Y=Y.replace("strokeColor","fillColor"),""==Y&&(Y="fillColor=#000000;"),E[l]=new mxCell("",new mxGeometry(2,
|
|
|
|
@ -287,16 +287,16 @@ Wb+=8,ue[l].vertex=!0,v.insert(ue[l])),ha=0,0==e.Attributes?ha=l=1:l<e.Attribute
|
|
|
|
|
ia+O(e,t,X[l])+a(e["Text"+(l+1)],G),X[l].value=m(e["Text"+(l+1)])}else v.value=m(e.Title),v.style+="align=center;",v.style+=a(e.Title,G),v.style+=b(v.style,e,t,v,G);break;case "ERDEntityBlock":ia=ca(e,t);db=.75*e.Name_h;ia=ia.replace("fillColor","swimlaneFillColor");""==ia&&(ia="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;fontStyle=0;marginBottom=0;"+ia+"startSize="+
|
|
|
|
|
db+";"+a(e.Name,G);v.style+=b(v.style,e,t,v,G);e.ShadedHeader?(ia=S(e.FillColor),je=Rd(ia,.85),v.style+="fillColor="+je+";"):v.style+=ca(e,t);X=[];wb=db/q;Wb=db;for(l=0;l<e.Fields;l++)ha=0,pc=.75*e["Field"+(l+1)+"_h"],X[l]=new mxCell("",new mxGeometry(0,Wb,r,pc),"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;whiteSpace=wrap;"),Wb+=pc,X[l].vertex=!0,v.insert(X[l]),
|
|
|
|
|
X[l].style+=ia+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;opacity=5;":X[l].style+("fillColor=none;"+O(e,t,X[l])),X[l].value=m(e["Field"+(l+1)]);break;case "ERDEntityBlock2":ia=ca(e,t);db=.75*e.Name_h;ia=ia.replace("fillColor","swimlaneFillColor");""==ia&&(ia="swimlaneFillColor=#ffffff;");v.value=m(e.Name);v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ia+"startSize="+db+";"+a(e.Name,G);v.style=e.ShadedHeader?
|
|
|
|
|
v.style+"fillColor=#e0e0e0;":v.style+ca(e,t);v.style+=b(v.style,e,t,v,G);X=[];var Ga=[];wb=db;var Jb=30;null!=e.Column1&&(Jb=.75*e.Column1);for(l=0;l<e.Fields;l++)ha=0,Ga[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["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;whiteSpace=wrap;"),Ga[l].vertex=!0,v.insert(Ga[l]),Ga[l].style+=ia+a(e["Key"+(l+1)],
|
|
|
|
|
G),Ga[l].style=1==e.AltRows&&0!=l%2?Ga[l].style+"fillColor=#000000;fillOpacity=5;":Ga[l].style+("fillColor=none;"+O(e,t,Ga[l])),Ga[l].value=m(e["Key"+(l+1)]),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb,.75*e["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;whiteSpace=wrap;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=
|
|
|
|
|
v.style+"fillColor=#e0e0e0;":v.style+ca(e,t);v.style+=b(v.style,e,t,v,G);X=[];var Ga=[];wb=db;var Ib=30;null!=e.Column1&&(Ib=.75*e.Column1);for(l=0;l<e.Fields;l++)ha=0,Ga[l]=new mxCell("",new mxGeometry(0,wb,Ib,.75*e["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;whiteSpace=wrap;"),Ga[l].vertex=!0,v.insert(Ga[l]),Ga[l].style+=ia+a(e["Key"+(l+1)],
|
|
|
|
|
G),Ga[l].style=1==e.AltRows&&0!=l%2?Ga[l].style+"fillColor=#000000;fillOpacity=5;":Ga[l].style+("fillColor=none;"+O(e,t,Ga[l])),Ga[l].value=m(e["Key"+(l+1)]),X[l]=new mxCell("",new mxGeometry(Ib,wb,r-Ib,.75*e["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;whiteSpace=wrap;"),X[l].vertex=!0,v.insert(X[l]),X[l].style+=
|
|
|
|
|
ia+a(e["Field"+(l+1)],G),v.style+=b(v.style,e,t,v),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+O(e,t,X[l])),X[l].value=m(e["Field"+(l+1)]),wb+=.75*e["Key"+(l+1)+"_h"];break;case "ERDEntityBlock3":ia=ca(e,t);db=.75*e.Name_h;ia=ia.replace("fillColor","swimlaneFillColor");""==ia&&(ia="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+ia+"startSize="+db+
|
|
|
|
|
";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ca(e,t);v.value=m(e.Name);v.style+=b(v.style,e,t,v,G);X=[];Ga=[];wb=db;Jb=30;null!=e.Column1&&(Jb=.75*e.Column1);for(l=0;l<e.Fields;l++)ha=0,Ga[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["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;whiteSpace=wrap;"),Ga[l].vertex=!0,v.insert(Ga[l]),
|
|
|
|
|
Ga[l].style+=ia+a(e["Field"+(l+1)],G),Ga[l].style=1==e.AltRows&&0!=l%2?Ga[l].style+"fillColor=#000000;fillOpacity=5;":Ga[l].style+("fillColor=none;"+O(e,t,Ga[l])),Ga[l].value=m(e["Field"+(l+1)]),Ga[l].style+=b(Ga[l].style,e,t,Ga[l],G),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb,.75*e["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;whiteSpace=wrap;"),
|
|
|
|
|
";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ca(e,t);v.value=m(e.Name);v.style+=b(v.style,e,t,v,G);X=[];Ga=[];wb=db;Ib=30;null!=e.Column1&&(Ib=.75*e.Column1);for(l=0;l<e.Fields;l++)ha=0,Ga[l]=new mxCell("",new mxGeometry(0,wb,Ib,.75*e["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;whiteSpace=wrap;"),Ga[l].vertex=!0,v.insert(Ga[l]),
|
|
|
|
|
Ga[l].style+=ia+a(e["Field"+(l+1)],G),Ga[l].style=1==e.AltRows&&0!=l%2?Ga[l].style+"fillColor=#000000;fillOpacity=5;":Ga[l].style+("fillColor=none;"+O(e,t,Ga[l])),Ga[l].value=m(e["Field"+(l+1)]),Ga[l].style+=b(Ga[l].style,e,t,Ga[l],G),X[l]=new mxCell("",new mxGeometry(Ib,wb,r-Ib,.75*e["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;whiteSpace=wrap;"),
|
|
|
|
|
X[l].vertex=!0,v.insert(X[l]),X[l].style+=ia+a(e["Type"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+O(e,t,X[l])),X[l].value=m(e["Type"+(l+1)]),X[l].style+=b(X[l].style,e,t,X[l],G),wb+=.75*e["Field"+(l+1)+"_h"];break;case "ERDEntityBlock4":ia=ca(e,t);db=.75*e.Name_h;ia=ia.replace("fillColor","swimlaneFillColor");""==ia&&(ia="swimlaneFillColor=#ffffff;");v.style+="swimlane;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;fontStyle=0;"+
|
|
|
|
|
ia+"startSize="+db+";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ca(e,t);v.value=m(e.Name);v.style+=b(v.style,e,t,v,G);X=[];Ga=[];var Kb=[];wb=db;Jb=30;var ce=40;null!=e.Column1&&(Jb=.75*e.Column1);null!=e.Column2&&(ce=.75*e.Column2);for(l=0;l<e.Fields;l++)ha=0,Ga[l]=new mxCell("",new mxGeometry(0,wb,Jb,.75*e["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;whiteSpace=wrap;"),
|
|
|
|
|
Ga[l].vertex=!0,v.insert(Ga[l]),Ga[l].style+=ia+a(e["Key"+(l+1)],G),Ga[l].style=1==e.AltRows&&0!=l%2?Ga[l].style+"fillColor=#000000;fillOpacity=5;":Ga[l].style+("fillColor=none;"+O(e,t,Ga[l])),Ga[l].value=m(e["Key"+(l+1)]),Ga[l].style+=b(Ga[l].style,e,t,Ga[l],G),X[l]=new mxCell("",new mxGeometry(Jb,wb,r-Jb-ce,.75*e["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;whiteSpace=wrap;"),
|
|
|
|
|
X[l].vertex=!0,v.insert(X[l]),X[l].style+=ia+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+O(e,t,X[l])),X[l].value=m(e["Field"+(l+1)]),X[l].style+=b(X[l].style,e,t,X[l],G),Kb[l]=new mxCell("",new mxGeometry(r-ce,wb,ce,.75*e["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;whiteSpace=wrap;"),
|
|
|
|
|
Kb[l].vertex=!0,v.insert(Kb[l]),Kb[l].style+=ia+a(e["Type"+(l+1)],G),Kb[l].style=1==e.AltRows&&0!=l%2?Kb[l].style+"fillColor=#000000;fillOpacity=5;":Kb[l].style+("fillColor=none;"+O(e,t,Kb[l])),Kb[l].value=m(e["Type"+(l+1)]),Kb[l].style+=b(Kb[l].style,e,t,Kb[l],G),wb+=.75*e["Key"+(l+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":Sa("application_system",r,q,v,e,t);break;case "GCPServiceCardAuthorizationBlock":Sa("internal_payment_authorization",r,q,v,e,t);break;case "GCPServiceCardBlankBlock":Sa("blank",
|
|
|
|
|
ia+"startSize="+db+";"+a(e.Name);v.style=e.ShadedHeader?v.style+"fillColor=#e0e0e0;":v.style+ca(e,t);v.value=m(e.Name);v.style+=b(v.style,e,t,v,G);X=[];Ga=[];var Jb=[];wb=db;Ib=30;var ce=40;null!=e.Column1&&(Ib=.75*e.Column1);null!=e.Column2&&(ce=.75*e.Column2);for(l=0;l<e.Fields;l++)ha=0,Ga[l]=new mxCell("",new mxGeometry(0,wb,Ib,.75*e["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;whiteSpace=wrap;"),
|
|
|
|
|
Ga[l].vertex=!0,v.insert(Ga[l]),Ga[l].style+=ia+a(e["Key"+(l+1)],G),Ga[l].style=1==e.AltRows&&0!=l%2?Ga[l].style+"fillColor=#000000;fillOpacity=5;":Ga[l].style+("fillColor=none;"+O(e,t,Ga[l])),Ga[l].value=m(e["Key"+(l+1)]),Ga[l].style+=b(Ga[l].style,e,t,Ga[l],G),X[l]=new mxCell("",new mxGeometry(Ib,wb,r-Ib-ce,.75*e["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;whiteSpace=wrap;"),
|
|
|
|
|
X[l].vertex=!0,v.insert(X[l]),X[l].style+=ia+a(e["Field"+(l+1)],G),X[l].style=1==e.AltRows&&0!=l%2?X[l].style+"fillColor=#000000;fillOpacity=5;":X[l].style+("fillColor=none;"+O(e,t,X[l])),X[l].value=m(e["Field"+(l+1)]),X[l].style+=b(X[l].style,e,t,X[l],G),Jb[l]=new mxCell("",new mxGeometry(r-ce,wb,ce,.75*e["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;whiteSpace=wrap;"),
|
|
|
|
|
Jb[l].vertex=!0,v.insert(Jb[l]),Jb[l].style+=ia+a(e["Type"+(l+1)],G),Jb[l].style=1==e.AltRows&&0!=l%2?Jb[l].style+"fillColor=#000000;fillOpacity=5;":Jb[l].style+("fillColor=none;"+O(e,t,Jb[l])),Jb[l].value=m(e["Type"+(l+1)]),Jb[l].style+=b(Jb[l].style,e,t,Jb[l],G),wb+=.75*e["Key"+(l+1)+"_h"];break;case "GCPServiceCardApplicationSystemBlock":Sa("application_system",r,q,v,e,t);break;case "GCPServiceCardAuthorizationBlock":Sa("internal_payment_authorization",r,q,v,e,t);break;case "GCPServiceCardBlankBlock":Sa("blank",
|
|
|
|
|
r,q,v,e,t);break;case "GCPServiceCardReallyBlankBlock":Sa("blank",r,q,v,e,t);break;case "GCPServiceCardBucketBlock":Sa("bucket",r,q,v,e,t);break;case "GCPServiceCardCDNInterconnectBlock":Sa("google_network_edge_cache",r,q,v,e,t);break;case "GCPServiceCardCloudDNSBlock":Sa("blank",r,q,v,e,t);break;case "GCPServiceCardClusterBlock":Sa("cluster",r,q,v,e,t);break;case "GCPServiceCardDiskSnapshotBlock":Sa("persistent_disk_snapshot",r,q,v,e,t);break;case "GCPServiceCardEdgePopBlock":Sa("google_network_edge_cache",
|
|
|
|
|
r,q,v,e,t);break;case "GCPServiceCardFrontEndPlatformServicesBlock":Sa("frontend_platform_services",r,q,v,e,t);break;case "GCPServiceCardGatewayBlock":Sa("gateway",r,q,v,e,t);break;case "GCPServiceCardGoogleNetworkBlock":Sa("google_network_edge_cache",r,q,v,e,t);break;case "GCPServiceCardImageServicesBlock":Sa("image_services",r,q,v,e,t);break;case "GCPServiceCardLoadBalancerBlock":Sa("network_load_balancer",r,q,v,e,t);break;case "GCPServiceCardLocalComputeBlock":Sa("dedicated_game_server",r,q,v,
|
|
|
|
|
e,t);break;case "GCPServiceCardLocalStorageBlock":Sa("persistent_disk_snapshot",r,q,v,e,t);break;case "GCPServiceCardLogsAPIBlock":Sa("logs_api",r,q,v,e,t);break;case "GCPServiceCardMemcacheBlock":Sa("memcache",r,q,v,e,t);break;case "GCPServiceCardNATBlock":Sa("nat",r,q,v,e,t);break;case "GCPServiceCardPaymentFormBlock":Sa("external_payment_form",r,q,v,e,t);break;case "GCPServiceCardPushNotificationsBlock":Sa("push_notification_service",r,q,v,e,t);break;case "GCPServiceCardScheduledTasksBlock":Sa("scheduled_tasks",
|
|
|
|
@ -308,27 +308,27 @@ e,t,v,G));break;case "SVGPathBlock2":try{var Vf=e.LineWidth,Wf=e.LineColor,lf=e.
|
|
|
|
|
Rc+'" stroke-width="'+Yf+'"/>'}de+="</svg>";v.style=ve?ve:"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image=data:image/svg+xml,"+(window.btoa?btoa(de):Base64.encode(de,!0))+";"}catch(gb){}break;case "BraceBlock":case "BraceBlockRotated":case "BracketBlock":case "BracketBlockRotated":var nf=0==V.indexOf("Bracket")?"size=0;arcSize=50;":"",of=b(v.style,e,t,v,G);mb=ba(e,t,v);v.style="group;"+mb;var we=Math.min(.14*(mb?r:q),100),xe=
|
|
|
|
|
new mxCell("",new mxGeometry(0,0,we,q),"shape=curlyBracket;rounded=1;"+nf+of);xe.vertex=!0;xe.geometry.relative=!0;var ye=new mxCell("",new mxGeometry(1-we/r,0,we,q),"shape=curlyBracket;rounded=1;flipH=1;"+nf+of);ye.vertex=!0;ye.geometry.relative=!0;v.insert(xe);v.insert(ye);break;case "BPMNTextAnnotation":case "NoteBlock":e.InsetMargin=null;v.value=m(e.Text);v.style="group;spacingLeft=8;align=left;spacing=0;strokeColor=none;";v.style+=b(v.style,e,t,v,G);0>v.style.indexOf("verticalAlign")&&(v.style+=
|
|
|
|
|
"verticalAlign=middle;");var kd=new mxCell("",new mxGeometry(0,0,8,q),"shape=partialRectangle;right=0;fillColor=none;");kd.geometry.relative=!0;kd.vertex=!0;kd.style+=b(kd.style,e,t,v,G);v.insert(kd);break;case "VSMTimelineBlock":case "TimelineBlock":case "TimelineMilestoneBlock":case "TimelineIntervalBlock":LucidImporter.hasTimeLine=!0;LucidImporter.hasUnknownShapes=!0;break;case "FreehandBlock":try{mb=ba(e,t,v);v.style="group;"+mb;if(null!=e.Stencil){null==e.Stencil.id&&(e.Stencil.id="$$tmpId$$",
|
|
|
|
|
Ke(e.Stencil.id,e.Stencil));var Pb=LucidImporter.stencilsMap[e.Stencil.id],Zf=-Pb.x/Pb.w,$f=-Pb.y/Pb.h;for(l=0;l<Pb.stencils.length;l++){var ob=Pb.stencils[l];pa=new mxCell("",new mxGeometry(Zf,$f,r,q),"shape="+ob.shapeStencil+";");var ag=ob.FillColor,bg=ob.LineColor,cg=ob.LineWidth;"prop"==ob.FillColor&&(ob.FillColor=e.FillColor);null==ob.FillColor&&(ob.FillColor="#ffffff00");"prop"==ob.LineColor&&(ob.LineColor=e.LineColor);null==ob.LineColor&&(ob.LineColor="#ffffff00");"prop"==ob.LineWidth&&(ob.LineWidth=
|
|
|
|
|
e.LineWidth);pa.style+=b(pa.style,ob,t,pa,G);ob.FillColor=ag;ob.LineColor=bg;ob.LineWidth=cg;Y=e.FillColor;var dg=e.LineColor,eg=e.LineWidth;e.FillColor=null;e.LineColor=null;e.LineWidth=null;pa.style+=b(pa.style,e,t,pa,G);e.FillColor=Y;e.LineColor=dg;e.LineWidth=eg;pa.vertex=!0;pa.geometry.relative=!0;v.insert(pa)}var Xb=0;for(mb=e.Rotation;e["t"+Xb];){var pf=e["t"+Xb],qf=m(pf);if(qf){ra=new mxCell(qf,new mxGeometry(0,0,r,q),"strokeColor=none;fillColor=none;overflow=visible;");e.Rotation=0;ra.style+=
|
|
|
|
|
b(ra.style,pf,t,ra,G);ra.style+=b(ra.style,e,t,ra,G);e.Rotation=mb;if(null!=Pb.text&&null!=Pb.text["t"+Xb]){var eb=Pb.text["t"+Xb];eb.Rotation=mb+(eb.rotation?eb.rotation:0)+(e["t"+Xb+"_TRotation"]?e["t"+Xb+"_TRotation"]:0)+(e["t"+Xb+"_TAngle"]?e["t"+Xb+"_TAngle"]:0);ra.style+=b(ra.style,eb,t,ra,G);var Yb=ra.geometry;eb.w&&(Yb.width*=eb.w/Pb.w);eb.h&&(Yb.height*=eb.h/Pb.h);eb.x&&(Yb.x=eb.x/Pb.w);eb.y&&(Yb.y=eb.y/Pb.h);eb.fw&&(Yb.width*=.75*eb.fw/r);eb.fh&&(Yb.height*=.75*eb.fh/q);eb.fx&&(Yb.x=(0<
|
|
|
|
|
Ke(e.Stencil.id,e.Stencil));var Ob=LucidImporter.stencilsMap[e.Stencil.id],Zf=-Ob.x/Ob.w,$f=-Ob.y/Ob.h;for(l=0;l<Ob.stencils.length;l++){var ob=Ob.stencils[l];oa=new mxCell("",new mxGeometry(Zf,$f,r,q),"shape="+ob.shapeStencil+";");var ag=ob.FillColor,bg=ob.LineColor,cg=ob.LineWidth;"prop"==ob.FillColor&&(ob.FillColor=e.FillColor);null==ob.FillColor&&(ob.FillColor="#ffffff00");"prop"==ob.LineColor&&(ob.LineColor=e.LineColor);null==ob.LineColor&&(ob.LineColor="#ffffff00");"prop"==ob.LineWidth&&(ob.LineWidth=
|
|
|
|
|
e.LineWidth);oa.style+=b(oa.style,ob,t,oa,G);ob.FillColor=ag;ob.LineColor=bg;ob.LineWidth=cg;Y=e.FillColor;var dg=e.LineColor,eg=e.LineWidth;e.FillColor=null;e.LineColor=null;e.LineWidth=null;oa.style+=b(oa.style,e,t,oa,G);e.FillColor=Y;e.LineColor=dg;e.LineWidth=eg;oa.vertex=!0;oa.geometry.relative=!0;v.insert(oa)}var Xb=0;for(mb=e.Rotation;e["t"+Xb];){var pf=e["t"+Xb],qf=m(pf);if(qf){ra=new mxCell(qf,new mxGeometry(0,0,r,q),"strokeColor=none;fillColor=none;overflow=visible;");e.Rotation=0;ra.style+=
|
|
|
|
|
b(ra.style,pf,t,ra,G);ra.style+=b(ra.style,e,t,ra,G);e.Rotation=mb;if(null!=Ob.text&&null!=Ob.text["t"+Xb]){var eb=Ob.text["t"+Xb];eb.Rotation=mb+(eb.rotation?eb.rotation:0)+(e["t"+Xb+"_TRotation"]?e["t"+Xb+"_TRotation"]:0)+(e["t"+Xb+"_TAngle"]?e["t"+Xb+"_TAngle"]:0);ra.style+=b(ra.style,eb,t,ra,G);var Yb=ra.geometry;eb.w&&(Yb.width*=eb.w/Ob.w);eb.h&&(Yb.height*=eb.h/Ob.h);eb.x&&(Yb.x=eb.x/Ob.w);eb.y&&(Yb.y=eb.y/Ob.h);eb.fw&&(Yb.width*=.75*eb.fw/r);eb.fh&&(Yb.height*=.75*eb.fh/q);eb.fx&&(Yb.x=(0<
|
|
|
|
|
eb.fx?1:0)+.75*eb.fx/r);eb.fy&&(Yb.y=(0<eb.fy?1:0)+.75*eb.fy/q)}ra.vertex=!0;ra.geometry.relative=!0;v.insert(ra)}Xb++}}if(e.FillColor&&e.FillColor.url){var Nd=new mxCell("",new mxGeometry(0,0,r,q),"shape=image;html=1;");Nd.style+=Fa({},{},e.FillColor.url);Nd.vertex=!0;Nd.geometry.relative=!0;v.insert(Nd)}}catch(gb){console.log("Freehand error",gb)}break;case "RightArrowBlock":var ze=e.Head*q/r;v.style="shape=singleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+ze;v.value=m(e);v.style+=b(v.style,
|
|
|
|
|
e,t,v,G);break;case "DoubleArrowBlock":ze=e.Head*q/r;v.style="shape=doubleArrow;arrowWidth="+(1-2*e.Notch)+";arrowSize="+ze;v.value=m(e);v.style+=b(v.style,e,t,v,G);break;case "VPCSubnet2017":case "VirtualPrivateCloudContainer2017":case "ElasticBeanStalkContainer2017":case "EC2InstanceContents2017":case "AWSCloudContainer2017":case "CorporateDataCenterContainer2017":switch(V){case "VPCSubnet2017":var ld="shape=mxgraph.aws3.permissions;fillColor=#D9A741;";var md=30;var nd=35;break;case "VirtualPrivateCloudContainer2017":ld=
|
|
|
|
|
"shape=mxgraph.aws3.virtual_private_cloud;fillColor=#F58536;";md=52;nd=36;break;case "ElasticBeanStalkContainer2017":ld="shape=mxgraph.aws3.elastic_beanstalk;fillColor=#F58536;";md=30;nd=41;break;case "EC2InstanceContents2017":ld="shape=mxgraph.aws3.instance;fillColor=#F58536;";md=40;nd=41;break;case "AWSCloudContainer2017":ld="shape=mxgraph.aws3.cloud;fillColor=#F58536;";md=52;nd=36;break;case "CorporateDataCenterContainer2017":ld="shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;",md=
|
|
|
|
|
30,nd=42}v.style="rounded=1;arcSize=10;dashed=0;verticalAlign=bottom;";v.value=m(e);v.style+=b(v.style,e,t,v,G);v.geometry.y+=20;v.geometry.height-=20;nb=new mxCell("",new mxGeometry(20,-20,md,nd),ld);nb.vertex=!0;v.insert(nb);break;case "FlexiblePolygonBlock":var Wc=['<shape strokewidth="inherit"><foreground>'];Wc.push("<path>");for(fa=0;fa<e.Vertices.length;fa++)Qa=e.Vertices[fa],0==fa?Wc.push('<move x="'+100*Qa.x+'" y="'+100*Qa.y+'"/>'):Wc.push('<line x="'+100*Qa.x+'" y="'+100*Qa.y+'"/>');Wc.push("</path>");
|
|
|
|
|
Wc.push("<fillstroke/>");Wc.push("</foreground></shape>");v.style="shape=stencil("+Graph.compress(Wc.join(""))+");";v.value=m(e);v.style+=b(v.style,e,t,v,G);break;case "InfographicsBlock":var rf=e.ShapeData_1.Value,Ae=e.ShapeData_2.Value-rf,Be=e.ShapeData_3.Value-rf,ee=e.ShapeData_4.Value*r/200;Xb="ProgressBar"==e.InternalStencilId?4:5;kb=e["ShapeData_"+Xb].Value;kb="=fillColor()"==kb?e.FillColor:kb;var od=e["ShapeData_"+(Xb+1)].Value;switch(e.InternalStencilId){case "ProgressDonut":v.style="shape=mxgraph.basic.donut;dx="+
|
|
|
|
|
ee+";strokeColor=none;fillColor="+S(od)+";"+la(od,"fillOpacity");v.style+=b(v.style,e,t,v,G);var ab=new mxCell("",new mxGeometry(0,0,r,q),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+Be/Ae+";arcWidth="+ee/r*2+";strokeColor=none;fillColor="+S(kb)+";"+la(kb,"fillOpacity"));ab.style+=b(ab.style,e,t,ab,G);ab.vertex=!0;ab.geometry.relative=1;v.insert(ab);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var sf=Be/Ae/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+
|
|
|
|
|
sf+";arcWidth="+2*ee/r+";strokeColor=none;fillColor="+S(kb)+";"+la(kb,"fillOpacity");e.Rotation-=Math.PI/2;v.style+=b(v.style,e,t,v,G);ab=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-sf)+";arcWidth="+2*ee/r+";strokeColor=none;flipH=1;fillColor="+S(od)+";"+la(od,"fillOpacity"));e.Rotation+=Math.PI;ab.style+=b(ab.style,e,t,ab,G);ab.vertex=!0;ab.geometry.relative=1;v.insert(ab);break;case "ProgressBar":v.style="strokeColor=none;fillColor="+
|
|
|
|
|
S(od)+";"+la(od,"fillOpacity"),v.style+=b(v.style,e,t,v,G),ab=new mxCell("",new mxGeometry(0,0,r*Be/Ae,q),"strokeColor=none;fillColor="+S(kb)+";"+la(kb,"fillOpacity")),ab.style+=b(ab.style,e,t,ab,G),ab.vertex=!0,ab.geometry.relative=1,v.insert(ab)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(e.Text&&e.Text.m){var fe=e.Text.m,Ce=!1,De=!1;for(l=0;l<fe.length;l++){var pd=fe[l];Ce||"mt"!=pd.n?De||"il"!=pd.n||(pd.v=17+(pd.v||0),De=!0):(pd.v=17+(pd.v||0),Ce=!0)}Ce||
|
|
|
|
|
ee+";strokeColor=none;fillColor="+S(od)+";"+ka(od,"fillOpacity");v.style+=b(v.style,e,t,v,G);var ab=new mxCell("",new mxGeometry(0,0,r,q),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+Be/Ae+";arcWidth="+ee/r*2+";strokeColor=none;fillColor="+S(kb)+";"+ka(kb,"fillOpacity"));ab.style+=b(ab.style,e,t,ab,G);ab.vertex=!0;ab.geometry.relative=1;v.insert(ab);break;case "ProgressHalfDonut":v.geometry.height*=2;v.geometry.rotate90();var sf=Be/Ae/2;v.style="shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+
|
|
|
|
|
sf+";arcWidth="+2*ee/r+";strokeColor=none;fillColor="+S(kb)+";"+ka(kb,"fillOpacity");e.Rotation-=Math.PI/2;v.style+=b(v.style,e,t,v,G);ab=new mxCell("",new mxGeometry(0,0,v.geometry.width,v.geometry.height),"shape=mxgraph.basic.partConcEllipse;startAngle=0;endAngle="+(.5-sf)+";arcWidth="+2*ee/r+";strokeColor=none;flipH=1;fillColor="+S(od)+";"+ka(od,"fillOpacity"));e.Rotation+=Math.PI;ab.style+=b(ab.style,e,t,ab,G);ab.vertex=!0;ab.geometry.relative=1;v.insert(ab);break;case "ProgressBar":v.style="strokeColor=none;fillColor="+
|
|
|
|
|
S(od)+";"+ka(od,"fillOpacity"),v.style+=b(v.style,e,t,v,G),ab=new mxCell("",new mxGeometry(0,0,r*Be/Ae,q),"strokeColor=none;fillColor="+S(kb)+";"+ka(kb,"fillOpacity")),ab.style+=b(ab.style,e,t,ab,G),ab.vertex=!0,ab.geometry.relative=1,v.insert(ab)}break;case "InternalStorageBlock":v.style+="shape=internalStorage;dx=10;dy=10";if(e.Text&&e.Text.m){var fe=e.Text.m,Ce=!1,De=!1;for(l=0;l<fe.length;l++){var pd=fe[l];Ce||"mt"!=pd.n?De||"il"!=pd.n||(pd.v=17+(pd.v||0),De=!0):(pd.v=17+(pd.v||0),Ce=!0)}Ce||
|
|
|
|
|
fe.push({s:0,n:"mt",v:17});De||fe.push({s:0,n:"il",v:17})}v.value=m(e);v.style+=b(v.style,e,t,v,G);break;case "PersonRoleBlock":try{ia=ca(e,t);db=q/2;ia=ia.replace("fillColor","swimlaneFillColor");""==ia&&(ia="swimlaneFillColor=#ffffff;");v.value=m(e.Role);v.style+="swimlane;childLayout=stackLayout;horizontal=1;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;marginBottom=0;"+ia+"startSize="+db+";spacingLeft=3;spacingRight=3;fontStyle=0;"+a(e.Role,G);v.style+=b(v.style,
|
|
|
|
|
e,t,v,G);var Ec=new mxCell("",new mxGeometry(0,q/2,r,q/2),"part=1;html=1;resizeHeight=0;spacingTop=-1;spacingLeft=3;spacingRight=3;");Ec.value=m(e.Name);Ec.vertex=!0;v.insert(Ec);Ec.style+=a(e.Name,G);Ec.style+=b(Ec.style,e,t,Ec,G)}catch(gb){console.log(gb)}}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");if(e.Title&&e.Title.t&&e.Text&&e.Text.t)try{var tf=v.geometry,uf=new mxCell(m(e.Title),new mxGeometry(0,tf.height+4,tf.width,10),"strokeColor=none;fillColor=none;whiteSpace=wrap;verticalAlign=top;labelPosition=center;verticalLabelPosition=top;align=center;");
|
|
|
|
|
uf.vertex=!0;v.insert(uf);v.style+=a(e.Title,G)}catch(gb){console.log(gb)}Ge(v,e);ka(v,e,D);e.Hidden&&(v.visible=!1);return v}function Ge(u,F){if(F.Text_TRotation||F.TextRotation)try{var D=mxUtils.toDegree(F.Text_TRotation||0)+mxUtils.toDegree(F.TextRotation||0);if(!isNaN(D)&&0!=D&&u.value){var t=u.geometry.width,e=u.geometry.height,P=t,r=e,q=0,Z=0;if(-90==D||-270==D){P=e;r=t;var aa=(e-t)/2;q=-aa/t;Z=aa/e}D+=mxUtils.toDegree(F.Rotation);var V=u.style.split(";").filter(function(ja){return 0>ja.indexOf("fillColor=")&&
|
|
|
|
|
0>ja.indexOf("strokeColor=")&&0>ja.indexOf("rotation=")}).join(";"),wa=new mxCell(u.value,new mxGeometry(q,Z,P,r),V+"fillColor=none;strokeColor=none;rotation="+D+";");u.value=null;wa.geometry.relative=!0;wa.vertex=!0;u.insert(wa)}}catch(ja){console.log(ja)}}function Je(u,F,D,t,e){function P(Lb,$b){var Xa="";try{for(var pb=0;pb<Lb.text.length;pb++){var Nc=Lb.text[pb];if(Nc[0]=="t_"+$b){for(var Fc in Nc[1]){var Gc=Nc[1][Fc];if(Gc)switch(Fc){case "font":Xa+=y(Gc);break;case "bold":Xa+="font-weight: bold;";
|
|
|
|
|
break;case "italic":Xa+="font-style: italic;";break;case "underline":Xa+="text-decoration: underline;";break;case "size":Xa+="font-size:"+z(.75*Gc)+"px;";break;case "color":Xa+="color:"+R(Gc).substring(0,7)+";";break;case "fill":Xa+="background-color:"+R(Gc).substring(0,7)+";";break;case "align":Xa+="text-align:"+Gc+";"}}break}}}catch(Sd){}return Xa}try{var r=function(Lb,$b,Xa){Lb=Aa+Lb;ra[Lb]=$b;$b="";for(var pb=0;pb<V.length;pb++)$b+='<div style="'+na[pb]+'">'+(Xa[V[pb]]||" ")+"</div>";pb=
|
|
|
|
|
mxUtils.getSizeForString($b);Xa=g(Xa.Image||Xa["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Xa=new mxCell($b,new mxGeometry(0,0,pb.width+Ba,pb.height+Pa),ua+(Ca?Xa:""));Xa.vertex=!0;e[Lb]=Xa;t.addCell(Xa,aa)},q=F.OrgChartBlockType,Z=F.Location,aa=new mxCell("",new mxGeometry(.75*Z.x,.75*Z.y,200,100),"group");aa.vertex=!0;t.addCell(aa);var V=F.FieldNames,wa=F.LayoutSettings,ja=F.BlockItemDefaultStyle||
|
|
|
|
|
{props:{}},oa=F.EdgeItemDefaultStyle,ra={},Aa=(u||Date.now())+"_";4==q&&(ja.props.LineWidth=0);var na=[],Ba=25,Pa=40,Ca=!0,ua=b("",ja.props,{},aa,!0);0==q?(ua+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",Pa+=54):1==q||2==q?(ua+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",Ba+=54):3<=q&&(Ca=!1);for(u=0;u<V.length;u++)na.push(P(ja,V[u]));if(D.Items)for(var Na=D.Items.n,Ka=0;Ka<Na.length;Ka++){var La=Na[Ka];
|
|
|
|
|
uf.vertex=!0;v.insert(uf);v.style+=a(e.Title,G)}catch(gb){console.log(gb)}Ge(v,e);pa(v,e,D);e.Hidden&&(v.visible=!1);return v}function Ge(u,F){if(F.Text_TRotation||F.TextRotation)try{var D=mxUtils.toDegree(F.Text_TRotation||0)+mxUtils.toDegree(F.TextRotation||0);if(!isNaN(D)&&0!=D&&u.value){var t=u.geometry.width,e=u.geometry.height,P=t,r=e,q=0,Z=0;if(-90==D||-270==D){P=e;r=t;var aa=(e-t)/2;q=-aa/t;Z=aa/e}D+=mxUtils.toDegree(F.Rotation);var V=u.style.split(";").filter(function(ja){return 0>ja.indexOf("fillColor=")&&
|
|
|
|
|
0>ja.indexOf("strokeColor=")&&0>ja.indexOf("rotation=")}).join(";"),wa=new mxCell(u.value,new mxGeometry(q,Z,P,r),V+"fillColor=none;strokeColor=none;rotation="+D+";");u.value=null;wa.geometry.relative=!0;wa.vertex=!0;u.insert(wa)}}catch(ja){console.log(ja)}}function Je(u,F,D,t,e){function P(Kb,$b){var Xa="";try{for(var pb=0;pb<Kb.text.length;pb++){var Nc=Kb.text[pb];if(Nc[0]=="t_"+$b){for(var Fc in Nc[1]){var Gc=Nc[1][Fc];if(Gc)switch(Fc){case "font":Xa+=y(Gc);break;case "bold":Xa+="font-weight: bold;";
|
|
|
|
|
break;case "italic":Xa+="font-style: italic;";break;case "underline":Xa+="text-decoration: underline;";break;case "size":Xa+="font-size:"+z(.75*Gc)+"px;";break;case "color":Xa+="color:"+R(Gc).substring(0,7)+";";break;case "fill":Xa+="background-color:"+R(Gc).substring(0,7)+";";break;case "align":Xa+="text-align:"+Gc+";"}}break}}}catch(Sd){}return Xa}try{var r=function(Kb,$b,Xa){Kb=Aa+Kb;ra[Kb]=$b;$b="";for(var pb=0;pb<V.length;pb++)$b+='<div style="'+ma[pb]+'">'+(Xa[V[pb]]||" ")+"</div>";pb=
|
|
|
|
|
mxUtils.getSizeForString($b);Xa=g(Xa.Image||Xa["018__ImageUrl__"])||"https://cdn4.iconfinder.com/data/icons/basic-user-interface-elements/700/user-account-profile-human-avatar-face-head--128.png";Xa=new mxCell($b,new mxGeometry(0,0,pb.width+Ba,pb.height+Pa),ua+(Ca?Xa:""));Xa.vertex=!0;e[Kb]=Xa;t.addCell(Xa,aa)},q=F.OrgChartBlockType,Z=F.Location,aa=new mxCell("",new mxGeometry(.75*Z.x,.75*Z.y,200,100),"group");aa.vertex=!0;t.addCell(aa);var V=F.FieldNames,wa=F.LayoutSettings,ja=F.BlockItemDefaultStyle||
|
|
|
|
|
{props:{}},na=F.EdgeItemDefaultStyle,ra={},Aa=(u||Date.now())+"_";4==q&&(ja.props.LineWidth=0);var ma=[],Ba=25,Pa=40,Ca=!0,ua=b("",ja.props,{},aa,!0);0==q?(ua+="spacingTop=54;imageWidth=54;imageHeight=54;imageAlign=center;imageVerticalAlign=top;image=",Pa+=54):1==q||2==q?(ua+="spacingLeft=54;imageWidth=50;imageHeight=50;imageAlign=left;imageVerticalAlign=top;image=",Ba+=54):3<=q&&(Ca=!1);for(u=0;u<V.length;u++)ma.push(P(ja,V[u]));if(D.Items)for(var Na=D.Items.n,Ka=0;Ka<Na.length;Ka++){var La=Na[Ka];
|
|
|
|
|
r(La.pk,La.ie[0]?La.ie[0].nf:null,La.f)}else{var l=F.ContractMap.derivative;if(null==l){var Ia=F.ContractMap.c.People;var bb=Ia.id;bb=bb.substr(0,bb.lastIndexOf("_"));for(u=0;u<V.length;u++)V[u]=Ia.f[V[u]]||V[u]}else for(Ka=0;Ka<l.length;Ka++)if("ForeignKeyGraph"==l[Ka].type)bb=l[Ka].c[0].id,bb=bb.substr(0,bb.lastIndexOf("_"));else if("MappedGraph"==l[Ka].type)for(u=0;u<V.length;u++)V[u]=l[Ka].nfs[V[u]]||V[u];var Ea;for(Ea in D){La=D[Ea].Collections;for(var Ra in La)if(Ra==bb)Na=La[Ra].Items;else if(La[Ra].Properties.ForeignKeys&&
|
|
|
|
|
La[Ra].Properties.ForeignKeys[0]){var ma=La[Ra].Properties.ForeignKeys[0].SourceFields[0];var Ma=La[Ra].Properties.Schema.PrimaryKey[0]}if(Na)break}F={};for(var ya in Na){La=Na[ya];var za=La[Ma],Qb=La[ma];za==Qb?(F[za]=za+Date.now(),za=F[za],La[Ma]=za,r(za,Qb,La)):r(za,F[Qb]||Qb,La)}}for(Ea in ra){var fa=ra[Ea];if(null!=fa){var xb=e[Aa+fa],Va=e[Ea];if(null!=xb&&null!=Va){var rc=new mxCell("",new mxGeometry(0,0,100,100),"");rc.geometry.relative=!0;rc.edge=!0;null!=oa&&null!=oa.props&&yb(rc,oa.props,
|
|
|
|
|
t,null,null,!0);t.addCell(rc,aa,null,xb,Va)}}}var vc=.75*wa.NodeSpacing.LevelSeparation;(new mxOrgChartLayout(t,0,vc,.75*wa.NodeSpacing.NeighborSeparation)).execute(aa);for(Ka=wa=r=0;aa.children&&Ka<aa.children.length;Ka++){var Gb=aa.children[Ka].geometry;r=Math.max(r,Gb.x+Gb.width);wa=Math.max(wa,Gb.y+Gb.height)}var Rb=aa.geometry;Rb.y-=vc;Rb.width=r;Rb.height=wa}catch(Lb){LucidImporter.hasUnknownShapes=!0,LucidImporter.hasOrgChart=!0,console.log(Lb)}}var wc=0,xc=0,ge="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;",
|
|
|
|
|
La[Ra].Properties.ForeignKeys[0]){var la=La[Ra].Properties.ForeignKeys[0].SourceFields[0];var Ma=La[Ra].Properties.Schema.PrimaryKey[0]}if(Na)break}F={};for(var ya in Na){La=Na[ya];var za=La[Ma],Pb=La[la];za==Pb?(F[za]=za+Date.now(),za=F[za],La[Ma]=za,r(za,Pb,La)):r(za,F[Pb]||Pb,La)}}for(Ea in ra){var fa=ra[Ea];if(null!=fa){var xb=e[Aa+fa],Va=e[Ea];if(null!=xb&&null!=Va){var rc=new mxCell("",new mxGeometry(0,0,100,100),"");rc.geometry.relative=!0;rc.edge=!0;null!=na&&null!=na.props&&Qb(rc,na.props,
|
|
|
|
|
t,null,null,!0);t.addCell(rc,aa,null,xb,Va)}}}var vc=.75*wa.NodeSpacing.LevelSeparation;(new mxOrgChartLayout(t,0,vc,.75*wa.NodeSpacing.NeighborSeparation)).execute(aa);for(Ka=wa=r=0;aa.children&&Ka<aa.children.length;Ka++){var Fb=aa.children[Ka].geometry;r=Math.max(r,Fb.x+Fb.width);wa=Math.max(wa,Fb.y+Fb.height)}var Rb=aa.geometry;Rb.y-=vc;Rb.width=r;Rb.height=wa}catch(Kb){LucidImporter.hasUnknownShapes=!0,LucidImporter.hasOrgChart=!0,console.log(Kb)}}var wc=0,xc=0,ge="text;html=1;resizable=0;labelBackgroundColor=default;align=center;verticalAlign=middle;",
|
|
|
|
|
G=!1,lb="",vf=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],wf=["fpDoor"],Ee={None:"none;",Arrow:"block;xyzFill=1;","Hollow Arrow":"block;xyzFill=0;","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;xyzSize=10;","CFN ERD One Or More Arrow":"ERoneToMany;xyzSize=10;","CFN ERD Many Arrow":"ERmany;xyzSize=10;","CFN ERD Exactly One Arrow":"ERmandOne;xyzSize=10;","CFN ERD Zero Or One Arrow":"ERzeroToOne;xyzSize=10;","CFN ERD One Arrow":"ERone;xyzSize=16;",
|
|
|
|
|
Generalization:"block;xyzFill=0;xyzSize=12;","Big Open Arrow":"open;xyzSize=10;",Asynch1:"openAsync;flipV=1;xyzSize=10;",Asynch2:"openAsync;xyzSize=10;",Aggregation:"diamond;xyzFill=0;xyzSize=16;",Composition:"diamond;xyzFill=1;xyzSize=16;",BlockEnd:"box;xyzFill=0;xyzSize=16;",Measure:"ERone;xyzSize=10;",CircleOpen:"oval;xyzFill=0;xyzSize=16;",CircleClosed:"oval;xyzFill=1;xyzSize=16;",BlockEndFill:"box;xyzFill=1;xyzSize=16;",Nesting:"circlePlus;xyzSize=7;xyzFill=0;","BPMN Conditional":"diamond;xyzFill=0;",
|
|
|
|
|
"BPMN Default":"dash;"},Od={DefaultTextBlockNew:"strokeColor=none;fillColor=none",DefaultTextBlock:"strokeColor=none;fillColor=none",DefaultSquareBlock:"",RectangleBlock:"",DefaultNoteBlock:"shape=note;size=15",DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;fillColor=none",ImageSearchBlock2:"shape=image",UserImage2Block:"shape=image",ExtShapeBoxBlock:"",DefaultStickyNoteBlock:"shadow=1",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",
|
|
|
|
@ -1057,33 +1057,33 @@ null;return F.join("")}})();function VsdxExport(g){function y(H,I){var N={"[Cont
|
|
|
|
|
"visio/windows.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Windows ClientWidth='0' ClientHeight='0' xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve' />","visio/_rels/document.xml.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.microsoft.com/visio/2010/relationships/masters' Target='masters/masters.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/pages' Target='pages/pages.xml' /><Relationship Id='rId3' Type='http://schemas.microsoft.com/visio/2010/relationships/windows' Target='windows.xml' /></Relationships>",
|
|
|
|
|
"visio/masters/_rels/masters.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.microsoft.com/visio/2010/relationships/master" Target="master1.xml"/></Relationships>',"visio/masters/masters.xml":"<?xml version='1.0' encoding='utf-8' ?><Masters xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Master ID='4' NameU='Dynamic connector' IsCustomNameU='1' Name='Dynamic connector' IsCustomName='1' Prompt='This connector automatically routes between the shapes it connects.' IconSize='1' AlignName='2' MatchByName='1' IconUpdate='0' UniqueID='{002A9108-0000-0000-8E40-00608CF305B2}' BaseID='{F7290A45-E3AD-11D2-AE4F-006008C9F5A9}' PatternFlags='0' Hidden='0' MasterType='0'><PageSheet LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='PageWidth' V='3'/><Cell N='PageHeight' V='3'/><Cell N='ShdwOffsetX' V='0.125'/><Cell N='ShdwOffsetY' V='-0.125'/><Cell N='PageScale' V='1' U='IN_F'/><Cell N='DrawingScale' V='1' U='IN_F'/><Cell N='DrawingSizeType' V='4'/><Cell N='DrawingScaleType' V='0'/><Cell N='InhibitSnap' V='0'/><Cell N='PageLockReplace' V='0' U='BOOL'/><Cell N='PageLockDuplicate' V='0' U='BOOL'/><Cell N='UIVisibility' V='0'/><Cell N='ShdwType' V='0'/><Cell N='ShdwObliqueAngle' V='0'/><Cell N='ShdwScaleFactor' V='1'/><Cell N='DrawingResizeType' V='0'/><Section N='Layer'><Row IX='0'><Cell N='Name' V='Connector'/><Cell N='Color' V='255'/><Cell N='Status' V='0'/><Cell N='Visible' V='1'/><Cell N='Print' V='1'/><Cell N='Active' V='0'/><Cell N='Lock' V='0'/><Cell N='Snap' V='1'/><Cell N='Glue' V='1'/><Cell N='NameUniv' V='Connector'/><Cell N='ColorTrans' V='0'/></Row></Section></PageSheet><Rel r:id='rId1'/></Master></Masters>",
|
|
|
|
|
"visio/masters/master1.xml":"<?xml version='1.0' encoding='utf-8' ?><MasterContents xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Shapes><Shape ID='5' OriginalID='0' Type='Shape' LineStyle='7' FillStyle='7' TextStyle='7'><Cell N='PinX' V='1.5' F='GUARD((BeginX+EndX)/2)'/><Cell N='PinY' V='1.5' F='GUARD((BeginY+EndY)/2)'/><Cell N='Width' V='1' F='GUARD(EndX-BeginX)'/><Cell N='Height' V='-1' F='GUARD(EndY-BeginY)'/><Cell N='LocPinX' V='0.5' F='GUARD(Width*0.5)'/><Cell N='LocPinY' V='-0.5' F='GUARD(Height*0.5)'/><Cell N='Angle' V='0' F='GUARD(0DA)'/><Cell N='FlipX' V='0' F='GUARD(FALSE)'/><Cell N='FlipY' V='0' F='GUARD(FALSE)'/><Cell N='ResizeMode' V='0'/><Cell N='BeginX' V='1'/><Cell N='BeginY' V='2'/><Cell N='EndX' V='2'/><Cell N='EndY' V='1'/><Cell N='TxtPinX' V='0' F='SETATREF(Controls.TextPosition)'/><Cell N='TxtPinY' V='-1' F='SETATREF(Controls.TextPosition.Y)'/><Cell N='TxtWidth' V='0.5555555555555556' F='MAX(TEXTWIDTH(TheText),5*Char.Size)'/><Cell N='TxtHeight' V='0.2444444444444444' F='TEXTHEIGHT(TheText,TxtWidth)'/><Cell N='TxtLocPinX' V='0.2777777777777778' F='TxtWidth*0.5'/><Cell N='TxtLocPinY' V='0.1222222222222222' F='TxtHeight*0.5'/><Cell N='TxtAngle' V='0'/><Cell N='LockHeight' V='1'/><Cell N='LockCalcWH' V='1'/><Cell N='HelpTopic' V='Vis_SE.chm!#20000'/><Cell N='Copyright' V='Copyright 2001 Microsoft Corporation. All rights reserved.'/><Cell N='NoAlignBox' V='1'/><Cell N='DynFeedback' V='2'/><Cell N='GlueType' V='2'/><Cell N='ObjType' V='2'/><Cell N='NoLiveDynamics' V='1'/><Cell N='ShapeSplittable' V='1'/><Cell N='LayerMember' V='0'/><Section N='Control'><Row N='TextPosition'><Cell N='X' V='0'/><Cell N='Y' V='-1'/><Cell N='XDyn' V='0' F='Controls.TextPosition'/><Cell N='YDyn' V='-1' F='Controls.TextPosition.Y'/><Cell N='XCon' V='5' F='IF(OR(STRSAME(SHAPETEXT(TheText),\"\"),HideText),5,0)'/><Cell N='YCon' V='0'/><Cell N='CanGlue' V='0'/><Cell N='Prompt' V='Reposition Text'/></Row></Section><Section N='Geometry' IX='0'><Cell N='NoFill' V='1'/><Cell N='NoLine' V='0'/><Cell N='NoShow' V='0'/><Cell N='NoSnap' V='0'/><Cell N='NoQuickDrag' V='0'/><Row T='MoveTo' IX='1'><Cell N='X' V='0'/><Cell N='Y' V='0'/></Row><Row T='LineTo' IX='2'><Cell N='X' V='0'/><Cell N='Y' V='-1'/></Row></Section></Shape></Shapes></MasterContents>"},
|
|
|
|
|
K;for(K in N)if(1<I&&K==M.CONTENT_TYPES_XML){for(var O=mxUtils.parseXml(N[K]),ba=O.documentElement,W=ba.children,R=null,S=0;S<W.length;S++){var la=W[S];"/visio/pages/page1.xml"==la.getAttribute(M.PART_NAME)&&(R=la)}for(S=2;S<=I;S++)W=R.cloneNode(),W.setAttribute(M.PART_NAME,"/visio/pages/page"+S+".xml"),ba.appendChild(W);A(H,K,O,!0)}else H.file(K,N[K])}function z(H,I,N){return null!=H.createElementNS?H.createElementNS(I,N):H.createElement(N)}function B(H){var I=Q[H];null==I&&(I=U++,Q[H]=I);return I}
|
|
|
|
|
function m(H){var I={};try{var N=H.getGraphBounds().clone(),K=H.view.scale,O=H.view.translate,ba=Math.round(N.x/K)-O.x,W=Math.round(N.y/K)-O.y,R=H.pageFormat.width,S=H.pageFormat.height;0>ba&&(ba+=Math.ceil((O.x-N.x/K)/R)*R);0>W&&(W+=Math.ceil((O.y-N.y/K)/S)*S);var la=Math.max(1,Math.ceil((N.width/K+ba)/R)),ca=Math.max(1,Math.ceil((N.height/K+W)/S));I.gridEnabled=H.gridEnabled;I.gridSize=H.gridSize;I.guidesEnabled=H.graphHandler.guidesEnabled;I.pageVisible=H.pageVisible;I.pageScale=H.pageScale;I.pageWidth=
|
|
|
|
|
H.pageFormat.width*la;I.pageHeight=H.pageFormat.height*ca;I.backgroundClr=H.background;I.mathEnabled=H.mathEnabled;I.shadowVisible=H.shadowVisible}catch(qa){}return I}function h(H,I,N,K){return c(H,I/M.CONVERSION_FACTOR,N,K)}function c(H,I,N,K){N=z(N,M.XMLNS,"Cell");N.setAttribute("N",H);N.setAttribute("V",I);K&&N.setAttribute("F",K);return N}function a(H,I,N,K,O){var ba=z(O,M.XMLNS,"Row");ba.setAttribute("T",H);ba.setAttribute("IX",I);ba.appendChild(h("X",N,O));ba.appendChild(h("Y",K,O));return ba}
|
|
|
|
|
K;for(K in N)if(1<I&&K==M.CONTENT_TYPES_XML){for(var O=mxUtils.parseXml(N[K]),ba=O.documentElement,W=ba.children,R=null,S=0;S<W.length;S++){var ka=W[S];"/visio/pages/page1.xml"==ka.getAttribute(M.PART_NAME)&&(R=ka)}for(S=2;S<=I;S++)W=R.cloneNode(),W.setAttribute(M.PART_NAME,"/visio/pages/page"+S+".xml"),ba.appendChild(W);A(H,K,O,!0)}else H.file(K,N[K])}function z(H,I,N){return null!=H.createElementNS?H.createElementNS(I,N):H.createElement(N)}function B(H){var I=Q[H];null==I&&(I=U++,Q[H]=I);return I}
|
|
|
|
|
function m(H){var I={};try{var N=H.getGraphBounds().clone(),K=H.view.scale,O=H.view.translate,ba=Math.round(N.x/K)-O.x,W=Math.round(N.y/K)-O.y,R=H.pageFormat.width,S=H.pageFormat.height;0>ba&&(ba+=Math.ceil((O.x-N.x/K)/R)*R);0>W&&(W+=Math.ceil((O.y-N.y/K)/S)*S);var ka=Math.max(1,Math.ceil((N.width/K+ba)/R)),ca=Math.max(1,Math.ceil((N.height/K+W)/S));I.gridEnabled=H.gridEnabled;I.gridSize=H.gridSize;I.guidesEnabled=H.graphHandler.guidesEnabled;I.pageVisible=H.pageVisible;I.pageScale=H.pageScale;I.pageWidth=
|
|
|
|
|
H.pageFormat.width*ka;I.pageHeight=H.pageFormat.height*ca;I.backgroundClr=H.background;I.mathEnabled=H.mathEnabled;I.shadowVisible=H.shadowVisible}catch(qa){}return I}function h(H,I,N,K){return c(H,I/M.CONVERSION_FACTOR,N,K)}function c(H,I,N,K){N=z(N,M.XMLNS,"Cell");N.setAttribute("N",H);N.setAttribute("V",I);K&&N.setAttribute("F",K);return N}function a(H,I,N,K,O){var ba=z(O,M.XMLNS,"Row");ba.setAttribute("T",H);ba.setAttribute("IX",I);ba.appendChild(h("X",N,O));ba.appendChild(h("Y",K,O));return ba}
|
|
|
|
|
function b(H,I,N){var K=mxUtils.rgba2hex(H.style[mxConstants.STYLE_FILLCOLOR]);if(K&&"none"!=K){if(I.appendChild(c("FillForegnd",K,N)),(K=mxUtils.rgba2hex(H.style[mxConstants.STYLE_GRADIENTCOLOR]))&&"none"!=K){I.appendChild(c("FillBkgnd",K,N));K=H.style[mxConstants.STYLE_GRADIENT_DIRECTION];var O=28;if(K)switch(K){case mxConstants.DIRECTION_EAST:O=25;break;case mxConstants.DIRECTION_WEST:O=27;break;case mxConstants.DIRECTION_NORTH:O=30}I.appendChild(c("FillPattern",O,N))}}else I.appendChild(c("FillPattern",
|
|
|
|
|
0,N));(K=mxUtils.rgba2hex(H.style[mxConstants.STYLE_STROKECOLOR]))&&"none"!=K?I.appendChild(c("LineColor",K,N)):I.appendChild(c("LinePattern",0,N));(K=H.style[mxConstants.STYLE_STROKEWIDTH])&&I.appendChild(h("LineWeight",K,N));(O=H.style[mxConstants.STYLE_OPACITY])?K=O:(K=H.style[mxConstants.STYLE_FILL_OPACITY],O=H.style[mxConstants.STYLE_STROKE_OPACITY]);K&&I.appendChild(c("FillForegndTrans",1-parseInt(K)/100,N));O&&I.appendChild(c("LineColorTrans",1-parseInt(O)/100,N));if(1==H.style[mxConstants.STYLE_DASHED]){K=
|
|
|
|
|
H.style[mxConstants.STYLE_DASH_PATTERN];O=9;if(K)switch(K){case "1 1":O=10;break;case "1 2":O=3;break;case "1 4":O=17}I.appendChild(c("LinePattern",O,N))}1==H.style[mxConstants.STYLE_SHADOW]&&(I.appendChild(c("ShdwPattern",1,N)),I.appendChild(c("ShdwForegnd","#000000",N)),I.appendChild(c("ShdwForegndTrans",.6,N)),I.appendChild(c("ShapeShdwType",1,N)),I.appendChild(c("ShapeShdwOffsetX","0.02946278254943948",N)),I.appendChild(c("ShapeShdwOffsetY","-0.02946278254943948",N)),I.appendChild(c("ShapeShdwScaleFactor",
|
|
|
|
|
"1",N)),I.appendChild(c("ShapeShdwBlur","0.05555555555555555",N)),I.appendChild(c("ShapeShdwShow",2,N)));1==H.style[mxConstants.STYLE_FLIPH]&&I.appendChild(c("FlipX",1,N));1==H.style[mxConstants.STYLE_FLIPV]&&I.appendChild(c("FlipY",1,N));1==H.style[mxConstants.STYLE_ROUNDED]&&I.appendChild(h("Rounding",.1*H.cell.geometry.width,N));(H=mxUtils.rgba2hex(H.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR]))&&I.appendChild(c("TextBkgnd",H,N))}function d(H,I,N,K,O,ba){var W=z(K,M.XMLNS,"Shape");W.setAttribute("ID",
|
|
|
|
|
H);W.setAttribute("NameU","Shape"+H);W.setAttribute("LineStyle","0");W.setAttribute("FillStyle","0");W.setAttribute("TextStyle","0");H=I.width/2;var R=I.height/2;W.appendChild(h("PinX",I.x+H+(ba?0:L.shiftX),K));W.appendChild(h("PinY",O-I.y-R-(ba?0:L.shiftY),K));W.appendChild(h("Width",I.width,K));W.appendChild(h("Height",I.height,K));W.appendChild(h("LocPinX",H,K));W.appendChild(h("LocPinY",R,K));W.appendChild(c("LayerMember",N+"",K));return W}function f(H,I){H=M.ARROWS_MAP[(null==H?"none":H)+"|"+
|
|
|
|
|
(null==I?"1":I)];return null!=H?H:1}function k(H){return null==H?2:2>=H?0:3>=H?1:5>=H?2:7>=H?3:9>=H?4:22>=H?5:6}function n(H,I,N,K,O,ba){var W=N.view.getState(H,!0);if(null==W||null==W.absolutePoints||null==W.cellBounds)return null;N=z(K,M.XMLNS,"Shape");var R=B(H.id);N.setAttribute("ID",R);N.setAttribute("NameU","Dynamic connector."+R);N.setAttribute("Name","Dynamic connector."+R);N.setAttribute("Type","Shape");N.setAttribute("Master","4");var S=L.state;R=W.absolutePoints;var la=W.cellBounds,ca=
|
|
|
|
|
la.width/2,qa=la.height/2;N.appendChild(h("PinX",la.x+ca+(ba?0:L.shiftX),K));N.appendChild(h("PinY",O-la.y-qa-(ba?0:L.shiftY),K));N.appendChild(h("Width",la.width,K));N.appendChild(h("Height",la.height,K));N.appendChild(h("LocPinX",ca,K));N.appendChild(h("LocPinY",qa,K));L.newEdge(N,W,K);ca=function(sa,Fa,ka){var Za=sa.x;sa=sa.y;Za=Za*S.scale-la.x+S.dx+(ka||ba?0:L.shiftX);sa=(Fa?0:la.height)-sa*S.scale+la.y-S.dy-(ka||ba?0:L.shiftY);return{x:Za,y:sa}};qa=ca(R[0],!0);N.appendChild(h("BeginX",la.x+qa.x,
|
|
|
|
|
K,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));N.appendChild(h("BeginY",O-la.y+qa.y,K,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));qa=ca(R[R.length-1],!0);N.appendChild(h("EndX",la.x+qa.x,K,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));N.appendChild(h("EndY",O-la.y+qa.y,K,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));N.appendChild(c("BegTrigger","2",K,H.source?"_XFTRIGGER(Sheet."+B(H.source.id)+"!EventXFMod)":null));N.appendChild(c("EndTrigger","2",K,H.target?"_XFTRIGGER(Sheet."+
|
|
|
|
|
(null==I?"1":I)];return null!=H?H:1}function k(H){return null==H?2:2>=H?0:3>=H?1:5>=H?2:7>=H?3:9>=H?4:22>=H?5:6}function n(H,I,N,K,O,ba){var W=N.view.getState(H,!0);if(null==W||null==W.absolutePoints||null==W.cellBounds)return null;N=z(K,M.XMLNS,"Shape");var R=B(H.id);N.setAttribute("ID",R);N.setAttribute("NameU","Dynamic connector."+R);N.setAttribute("Name","Dynamic connector."+R);N.setAttribute("Type","Shape");N.setAttribute("Master","4");var S=L.state;R=W.absolutePoints;var ka=W.cellBounds,ca=
|
|
|
|
|
ka.width/2,qa=ka.height/2;N.appendChild(h("PinX",ka.x+ca+(ba?0:L.shiftX),K));N.appendChild(h("PinY",O-ka.y-qa-(ba?0:L.shiftY),K));N.appendChild(h("Width",ka.width,K));N.appendChild(h("Height",ka.height,K));N.appendChild(h("LocPinX",ca,K));N.appendChild(h("LocPinY",qa,K));L.newEdge(N,W,K);ca=function(sa,Fa,pa){var Za=sa.x;sa=sa.y;Za=Za*S.scale-ka.x+S.dx+(pa||ba?0:L.shiftX);sa=(Fa?0:ka.height)-sa*S.scale+ka.y-S.dy-(pa||ba?0:L.shiftY);return{x:Za,y:sa}};qa=ca(R[0],!0);N.appendChild(h("BeginX",ka.x+qa.x,
|
|
|
|
|
K,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));N.appendChild(h("BeginY",O-ka.y+qa.y,K,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));qa=ca(R[R.length-1],!0);N.appendChild(h("EndX",ka.x+qa.x,K,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));N.appendChild(h("EndY",O-ka.y+qa.y,K,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));N.appendChild(c("BegTrigger","2",K,H.source?"_XFTRIGGER(Sheet."+B(H.source.id)+"!EventXFMod)":null));N.appendChild(c("EndTrigger","2",K,H.target?"_XFTRIGGER(Sheet."+
|
|
|
|
|
B(H.target.id)+"!EventXFMod)":null));N.appendChild(c("ConFixedCode","6",K));N.appendChild(c("LayerMember",I+"",K));b(W,N,K);I=W.style[mxConstants.STYLE_STARTSIZE];H=f(W.style[mxConstants.STYLE_STARTARROW],W.style[mxConstants.STYLE_STARTFILL]);N.appendChild(c("BeginArrow",H,K));N.appendChild(c("BeginArrowSize",k(I),K));I=W.style[mxConstants.STYLE_ENDSIZE];H=f(W.style[mxConstants.STYLE_ENDARROW],W.style[mxConstants.STYLE_ENDFILL]);N.appendChild(c("EndArrow",H,K));N.appendChild(c("EndArrowSize",k(I),
|
|
|
|
|
K));null!=W.text&&W.text.checkBounds()&&(L.save(),W.text.paint(L),L.restore());W=z(K,M.XMLNS,"Section");W.setAttribute("N","Geometry");W.setAttribute("IX","0");for(H=0;H<R.length;H++)I=ca(R[H],!1,!0),W.appendChild(a(0==H?"MoveTo":"LineTo",H+1,I.x,I.y,K));W.appendChild(c("NoFill","1",K));W.appendChild(c("NoLine","0",K));N.appendChild(W);return N}function p(H,I,N,K,O,ba,W){var R=H.geometry,S=R;if(null!=R)try{R.relative&&ba&&(S=R.clone(),R.x*=ba.width,R.y*=ba.height,H.vertex&&null!=R.offset&&(R.x+=R.offset.x,
|
|
|
|
|
R.y+=R.offset.y),R.relative=0);var la=B(H.id);if(!H.treatAsSingle&&0<H.getChildCount()){var ca=d(la+"10000",R,I,K,O,W);ca.setAttribute("Type","Group");var qa=z(K,M.XMLNS,"Shapes");L.save();L.translate(-R.x,-R.y);var sa=R.clone();sa.x=0;sa.y=0;H.setGeometry(sa);H.treatAsSingle=!0;var Fa=p(H,I,N,K,R.height,R,!0);delete H.treatAsSingle;H.setGeometry(R);null!=Fa&&qa.appendChild(Fa);for(O=0;O<H.getChildCount();O++)Fa=p(H.children[O],I,N,K,R.height,R,!0),null!=Fa&&qa.appendChild(Fa);ca.appendChild(qa);
|
|
|
|
|
L.restore();return ca}if(H.vertex){ca=d(la,R,I,K,O,W);var ka=N.view.getState(H,!0);null!=ka&&(b(ka,ca,K),L.newShape(ca,ka,K),null!=ka.text&&ka.text.checkBounds()&&(L.save(),ka.text.paint(L),L.restore()),null!=ka.shape&&ka.shape.checkBounds()&&(L.save(),ka.shape.paint(L),L.restore()),ca.appendChild(L.getShapeGeo()),L.endShape(),ca.setAttribute("Type",L.getShapeType()));return ca}return n(H,I,N,K,O,W)}finally{H.geometry=S}else return null}function x(H,I){var N=mxUtils.createXmlDocument(),K=z(N,M.XMLNS,
|
|
|
|
|
R.y+=R.offset.y),R.relative=0);var ka=B(H.id);if(!H.treatAsSingle&&0<H.getChildCount()){var ca=d(ka+"10000",R,I,K,O,W);ca.setAttribute("Type","Group");var qa=z(K,M.XMLNS,"Shapes");L.save();L.translate(-R.x,-R.y);var sa=R.clone();sa.x=0;sa.y=0;H.setGeometry(sa);H.treatAsSingle=!0;var Fa=p(H,I,N,K,R.height,R,!0);delete H.treatAsSingle;H.setGeometry(R);null!=Fa&&qa.appendChild(Fa);for(O=0;O<H.getChildCount();O++)Fa=p(H.children[O],I,N,K,R.height,R,!0),null!=Fa&&qa.appendChild(Fa);ca.appendChild(qa);
|
|
|
|
|
L.restore();return ca}if(H.vertex){ca=d(ka,R,I,K,O,W);var pa=N.view.getState(H,!0);null!=pa&&(b(pa,ca,K),L.newShape(ca,pa,K),null!=pa.text&&pa.text.checkBounds()&&(L.save(),pa.text.paint(L),L.restore()),null!=pa.shape&&pa.shape.checkBounds()&&(L.save(),pa.shape.paint(L),L.restore()),ca.appendChild(L.getShapeGeo()),L.endShape(),ca.setAttribute("Type",L.getShapeType()));return ca}return n(H,I,N,K,O,W)}finally{H.geometry=S}else return null}function x(H,I){var N=mxUtils.createXmlDocument(),K=z(N,M.XMLNS,
|
|
|
|
|
"PageContents");K.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",M.XMLNS);K.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",M.XMLNS_R);var O=z(N,M.XMLNS,"Shapes");K.appendChild(O);var ba=H.model,W=H.view.translate,R=H.view.scale,S=H.getGraphBounds();L.shiftX=0;L.shiftY=0;if(S.x/R<W.x||S.y/R<W.y)L.shiftX=Math.ceil((W.x-S.x/R)/H.pageFormat.width)*H.pageFormat.width,L.shiftY=Math.ceil((W.y-S.y/R)/H.pageFormat.height)*H.pageFormat.height;L.save();L.translate(-W.x,-W.y);L.scale(1/R);L.newPage();
|
|
|
|
|
R=H.model.getChildCells(H.model.root);W={};for(S=0;S<R.length;S++)W[R[S].id]=S;for(var la in ba.cells)R=ba.cells[la],S=null!=R.parent?W[R.parent.id]:null,null!=S&&(R=p(R,S,H,N,I.pageHeight),null!=R&&O.appendChild(R));H=z(N,M.XMLNS,"Connects");K.appendChild(H);for(la in ba.cells)R=ba.cells[la],R.edge&&(R.source&&(I=z(N,M.XMLNS,"Connect"),I.setAttribute("FromSheet",B(R.id)),I.setAttribute("FromCell","BeginX"),I.setAttribute("ToSheet",B(R.source.id)),H.appendChild(I)),R.target&&(I=z(N,M.XMLNS,"Connect"),
|
|
|
|
|
R=H.model.getChildCells(H.model.root);W={};for(S=0;S<R.length;S++)W[R[S].id]=S;for(var ka in ba.cells)R=ba.cells[ka],S=null!=R.parent?W[R.parent.id]:null,null!=S&&(R=p(R,S,H,N,I.pageHeight),null!=R&&O.appendChild(R));H=z(N,M.XMLNS,"Connects");K.appendChild(H);for(ka in ba.cells)R=ba.cells[ka],R.edge&&(R.source&&(I=z(N,M.XMLNS,"Connect"),I.setAttribute("FromSheet",B(R.id)),I.setAttribute("FromCell","BeginX"),I.setAttribute("ToSheet",B(R.source.id)),H.appendChild(I)),R.target&&(I=z(N,M.XMLNS,"Connect"),
|
|
|
|
|
I.setAttribute("FromSheet",B(R.id)),I.setAttribute("FromCell","EndX"),I.setAttribute("ToSheet",B(R.target.id)),H.appendChild(I)));N.appendChild(K);L.restore();return N}function A(H,I,N,K){H.file(I,(K?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(N,"\n"))}function C(H,I,N,K){var O=mxUtils.createXmlDocument(),ba=mxUtils.createXmlDocument(),W=z(O,M.XMLNS,"Pages");W.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",M.XMLNS);W.setAttributeNS("http://www.w3.org/2000/xmlns/",
|
|
|
|
|
"xmlns:r",M.XMLNS_R);var R=z(ba,M.RELS_XMLNS,"Relationships"),S=1,la;for(la in I){var ca="page"+S+".xml",qa=z(O,M.XMLNS,"Page");qa.setAttribute("ID",S-1);qa.setAttribute("NameU",la);qa.setAttribute("Name",la);var sa=z(O,M.XMLNS,"PageSheet"),Fa=K[la];sa.appendChild(h("PageWidth",Fa.pageWidth,O));sa.appendChild(h("PageHeight",Fa.pageHeight,O));sa.appendChild(c("PageScale",Fa.pageScale,O));sa.appendChild(c("DrawingScale",1,O));Fa=z(O,M.XMLNS,"Rel");Fa.setAttributeNS(M.XMLNS_R,"r:id","rId"+S);var ka=
|
|
|
|
|
z(O,M.XMLNS,"Section");ka.setAttribute("N","Layer");for(var Za=N[la],yb=0;yb<Za.length;yb++){var vb=z(O,M.XMLNS,"Row");vb.setAttribute("IX",yb+"");ka.appendChild(vb);vb.appendChild(c("Name",Za[yb].name,O));vb.appendChild(c("Color","255",O));vb.appendChild(c("Status","0",O));vb.appendChild(c("Visible",Za[yb].visible?"1":"0",O));vb.appendChild(c("Print","1",O));vb.appendChild(c("Active","0",O));vb.appendChild(c("Lock",Za[yb].locked?"1":"0",O));vb.appendChild(c("Snap","1",O));vb.appendChild(c("Glue",
|
|
|
|
|
"1",O));vb.appendChild(c("NameUniv",Za[yb].name,O));vb.appendChild(c("ColorTrans","0",O))}sa.appendChild(ka);qa.appendChild(sa);qa.appendChild(Fa);W.appendChild(qa);qa=z(ba,M.RELS_XMLNS,"Relationship");qa.setAttribute("Id","rId"+S);qa.setAttribute("Type",M.PAGES_TYPE);qa.setAttribute("Target",ca);R.appendChild(qa);A(H,M.VISIO_PAGES+ca,I[la]);S++}O.appendChild(W);ba.appendChild(R);A(H,M.VISIO_PAGES+"pages.xml",O);A(H,M.VISIO_PAGES+"_rels/pages.xml.rels",ba)}function J(H,I){I=M.VISIO_PAGES_RELS+"page"+
|
|
|
|
|
"xmlns:r",M.XMLNS_R);var R=z(ba,M.RELS_XMLNS,"Relationships"),S=1,ka;for(ka in I){var ca="page"+S+".xml",qa=z(O,M.XMLNS,"Page");qa.setAttribute("ID",S-1);qa.setAttribute("NameU",ka);qa.setAttribute("Name",ka);var sa=z(O,M.XMLNS,"PageSheet"),Fa=K[ka];sa.appendChild(h("PageWidth",Fa.pageWidth,O));sa.appendChild(h("PageHeight",Fa.pageHeight,O));sa.appendChild(c("PageScale",Fa.pageScale,O));sa.appendChild(c("DrawingScale",1,O));Fa=z(O,M.XMLNS,"Rel");Fa.setAttributeNS(M.XMLNS_R,"r:id","rId"+S);var pa=
|
|
|
|
|
z(O,M.XMLNS,"Section");pa.setAttribute("N","Layer");for(var Za=N[ka],Qb=0;Qb<Za.length;Qb++){var vb=z(O,M.XMLNS,"Row");vb.setAttribute("IX",Qb+"");pa.appendChild(vb);vb.appendChild(c("Name",Za[Qb].name,O));vb.appendChild(c("Color","255",O));vb.appendChild(c("Status","0",O));vb.appendChild(c("Visible",Za[Qb].visible?"1":"0",O));vb.appendChild(c("Print","1",O));vb.appendChild(c("Active","0",O));vb.appendChild(c("Lock",Za[Qb].locked?"1":"0",O));vb.appendChild(c("Snap","1",O));vb.appendChild(c("Glue",
|
|
|
|
|
"1",O));vb.appendChild(c("NameUniv",Za[Qb].name,O));vb.appendChild(c("ColorTrans","0",O))}sa.appendChild(pa);qa.appendChild(sa);qa.appendChild(Fa);W.appendChild(qa);qa=z(ba,M.RELS_XMLNS,"Relationship");qa.setAttribute("Id","rId"+S);qa.setAttribute("Type",M.PAGES_TYPE);qa.setAttribute("Target",ca);R.appendChild(qa);A(H,M.VISIO_PAGES+ca,I[ka]);S++}O.appendChild(W);ba.appendChild(R);A(H,M.VISIO_PAGES+"pages.xml",O);A(H,M.VISIO_PAGES+"_rels/pages.xml.rels",ba)}function J(H,I){I=M.VISIO_PAGES_RELS+"page"+
|
|
|
|
|
I+".xml.rels";var N=mxUtils.createXmlDocument(),K=z(N,M.RELS_XMLNS,"Relationships"),O=z(N,M.RELS_XMLNS,"Relationship");O.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");O.setAttribute("Id","rId1");O.setAttribute("Target","../masters/master1.xml");K.appendChild(O);var ba=L.images;if(0<ba.length)for(var W=0;W<ba.length;W++)O=z(N,M.RELS_XMLNS,"Relationship"),O.setAttribute("Type",M.XMLNS_R+"/image"),O.setAttribute("Id","rId"+(W+2)),O.setAttribute("Target","../media/"+
|
|
|
|
|
ba[W]),K.appendChild(O);N.appendChild(K);A(H,I,N)}var M=this,L=new mxVsdxCanvas2D,Q={},U=1;this.exportCurrentDiagrams=function(H){try{if(g.spinner.spin(document.body,mxResources.get("exporting"))){var I=function(Fa,ka){Fa=Fa.model.getChildCells(Fa.model.root);O[ka]=[];for(var Za=0;Za<Fa.length;Za++)Fa[Za].visible&&O[ka].push({name:Fa[Za].value||"Background",visible:Fa[Za].visible,locked:Fa[Za].style&&0<=Fa[Za].style.indexOf("locked=1")})},N=new JSZip;L.init(N);Q={};U=1;var K={},O={},ba={},W=null!=
|
|
|
|
|
g.pages?g.pages.length:1;if(null!=g.pages){var R=function(Fa){Fa=Fa.getName();var ka=g.editor.graph,Za=null;null!=ka.themes&&"darkTheme"==ka.defaultThemeName&&(Za=ka.stylesheet,ka.stylesheet=ka.getDefaultStylesheet(),ka.refresh());try{var yb=m(ka);K[Fa]=x(ka,yb);I(ka,Fa);J(N,ca+1);ba[Fa]=yb}finally{null!=Za&&(ka.stylesheet=Za,ka.refresh())}},S=g.editor.graph.getSelectionCells(),la=g.currentPage;if(H)R(la);else{for(var ca=0;ca<g.pages.length;ca++){var qa=g.pages[ca];g.currentPage!=qa&&g.selectPage(qa,
|
|
|
|
|
!0);R(qa)}la!=g.currentPage&&g.selectPage(la,!0);g.editor.graph.setSelectionCells(S)}}else{R=g.editor.graph;var sa=m(R);K.Page1=x(R,sa);I(R,"Page1");J(N,1);ba.Page1=sa}y(N,W);C(N,K,O,ba);H=function(){N.generateAsync({type:"base64"}).then(function(Fa){g.spinner.stop();var ka=g.getBaseFilename();g.saveData(ka+".vsdx","vsdx",Fa,"application/vnd.visio2013",!0)})};0<L.filesLoading?L.onFilesLoaded=H:H()}return!0}catch(Fa){return console.log(Fa),g.spinner.stop(),!1}}}
|
|
|
|
|
VsdxExport.prototype.CONVERSION_FACTOR=101.6;VsdxExport.prototype.PAGES_TYPE="http://schemas.microsoft.com/visio/2010/relationships/page";VsdxExport.prototype.RELS_XMLNS="http://schemas.openxmlformats.org/package/2006/relationships";VsdxExport.prototype.XML_SPACE="preserve";VsdxExport.prototype.XMLNS_R="http://schemas.openxmlformats.org/officeDocument/2006/relationships";VsdxExport.prototype.XMLNS="http://schemas.microsoft.com/office/visio/2012/main";VsdxExport.prototype.VISIO_PAGES="visio/pages/";
|
|
|
|
|
VsdxExport.prototype.PREFEX="com/mxgraph/io/vsdx/resources/export/";VsdxExport.prototype.VSDX_ENC="ISO-8859-1";VsdxExport.prototype.PART_NAME="PartName";VsdxExport.prototype.CONTENT_TYPES_XML="[Content_Types].xml";VsdxExport.prototype.VISIO_PAGES_RELS="visio/pages/_rels/";
|
|
|
|
|
ba[W]),K.appendChild(O);N.appendChild(K);A(H,I,N)}var M=this,L=new mxVsdxCanvas2D,Q={},U=1;this.exportCurrentDiagrams=function(H){try{if(g.spinner.spin(document.body,mxResources.get("exporting"))){var I=function(Fa,pa){Fa=Fa.model.getChildCells(Fa.model.root);O[pa]=[];for(var Za=0;Za<Fa.length;Za++)Fa[Za].visible&&O[pa].push({name:Fa[Za].value||"Background",visible:Fa[Za].visible,locked:Fa[Za].style&&0<=Fa[Za].style.indexOf("locked=1")})},N=new JSZip;L.init(N);Q={};U=1;var K={},O={},ba={},W=null!=
|
|
|
|
|
g.pages?g.pages.length:1;if(null!=g.pages){var R=function(Fa){Fa=Fa.getName();var pa=g.editor.graph,Za=m(pa);K[Fa]=x(pa,Za);I(pa,Fa);J(N,ca+1);ba[Fa]=Za},S=g.editor.graph.getSelectionCells(),ka=g.currentPage;if(H)R(ka);else{for(var ca=0;ca<g.pages.length;ca++){var qa=g.pages[ca];g.currentPage!=qa&&g.selectPage(qa,!0);R(qa)}ka!=g.currentPage&&g.selectPage(ka,!0);g.editor.graph.setSelectionCells(S)}}else{R=g.editor.graph;var sa=m(R);K.Page1=x(R,sa);I(R,"Page1");J(N,1);ba.Page1=sa}y(N,W);C(N,K,O,ba);
|
|
|
|
|
H=function(){N.generateAsync({type:"base64"}).then(function(Fa){g.spinner.stop();var pa=g.getBaseFilename();g.saveData(pa+".vsdx","vsdx",Fa,"application/vnd.visio2013",!0)})};0<L.filesLoading?L.onFilesLoaded=H:H()}return!0}catch(Fa){return console.log(Fa),g.spinner.stop(),!1}}}VsdxExport.prototype.CONVERSION_FACTOR=101.6;VsdxExport.prototype.PAGES_TYPE="http://schemas.microsoft.com/visio/2010/relationships/page";VsdxExport.prototype.RELS_XMLNS="http://schemas.openxmlformats.org/package/2006/relationships";
|
|
|
|
|
VsdxExport.prototype.XML_SPACE="preserve";VsdxExport.prototype.XMLNS_R="http://schemas.openxmlformats.org/officeDocument/2006/relationships";VsdxExport.prototype.XMLNS="http://schemas.microsoft.com/office/visio/2012/main";VsdxExport.prototype.VISIO_PAGES="visio/pages/";VsdxExport.prototype.PREFEX="com/mxgraph/io/vsdx/resources/export/";VsdxExport.prototype.VSDX_ENC="ISO-8859-1";VsdxExport.prototype.PART_NAME="PartName";VsdxExport.prototype.CONTENT_TYPES_XML="[Content_Types].xml";
|
|
|
|
|
VsdxExport.prototype.VISIO_PAGES_RELS="visio/pages/_rels/";
|
|
|
|
|
VsdxExport.prototype.ARROWS_MAP={"none|1":0,"none|0":0,"open|1":1,"open|0":1,"block|1":4,"block|0":14,"classic|1":5,"classic|0":17,"oval|1":10,"oval|0":20,"diamond|1":11,"diamond|0":22,"blockThin|1":2,"blockThin|0":15,"dash|1":23,"dash|0":23,"ERone|1":24,"ERone|0":24,"ERmandOne|1":25,"ERmandOne|0":25,"ERmany|1":27,"ERmany|0":27,"ERoneToMany|1":28,"ERoneToMany|0":28,"ERzeroToMany|1":29,"ERzeroToMany|0":29,"ERzeroToOne|1":30,"ERzeroToOne|0":30,"openAsync|1":9,"openAsync|0":9};function mxVsdxCanvas2D(){mxAbstractCanvas2D.call(this)}mxUtils.extend(mxVsdxCanvas2D,mxAbstractCanvas2D);mxVsdxCanvas2D.prototype.textEnabled=!0;mxVsdxCanvas2D.prototype.init=function(g){this.filesLoading=0;this.zip=g};mxVsdxCanvas2D.prototype.onFilesLoaded=function(){};mxVsdxCanvas2D.prototype.createElt=function(g){return null!=this.xmlDoc.createElementNS?this.xmlDoc.createElementNS(VsdxExport.prototype.XMLNS,g):this.xmlDoc.createElement(g)};
|
|
|
|
|
mxVsdxCanvas2D.prototype.createGeoSec=function(){null!=this.geoSec&&this.shape.appendChild(this.geoSec);var g=this.createElt("Section");g.setAttribute("N","Geometry");g.setAttribute("IX",this.geoIndex++);this.geoSec=g;this.geoStepIndex=1;this.lastMoveToY=this.lastMoveToX=this.lastY=this.lastX=0};mxVsdxCanvas2D.prototype.newShape=function(g,y,z){this.geoIndex=0;this.shape=g;this.cellState=y;this.xmGeo=y.cell.geometry;this.xmlDoc=z;this.shapeImg=this.geoSec=null;this.shapeType="Shape";this.createGeoSec()};
|
|
|
|
|
mxVsdxCanvas2D.prototype.newEdge=function(g,y,z){this.shape=g;this.cellState=y;this.xmGeo=y.cellBounds;this.xmlDoc=z};mxVsdxCanvas2D.prototype.endShape=function(){null!=this.shapeImg&&this.addForeignData(this.shapeImg.type,this.shapeImg.id)};mxVsdxCanvas2D.prototype.newPage=function(){this.images=[]};mxVsdxCanvas2D.prototype.getShapeType=function(){return this.shapeType};mxVsdxCanvas2D.prototype.getShapeGeo=function(){return this.geoSec};
|
|
|
|
@ -1105,13 +1105,13 @@ mxVsdxCanvas2D.prototype.image=function(g,y,z,B,m,h,c,a){var b=this,d="image"+(t
|
|
|
|
|
var k=!1;0==f.indexOf("svg")&&(f="png",k=!0);d+=f;h=new XMLHttpRequest;h.open("GET",m,!0);h.responseType="arraybuffer";h.onreadystatechange=function(n){if(4==this.readyState&&(200==this.status&&(k?b.convertSvg2Png(this.response,!1,function(p){b.zip.file("visio/media/"+d,p.substring(22),{base64:!0})}):b.zip.file("visio/media/"+d,this.response)),b.filesLoading--,0==b.filesLoading))b.onFilesLoaded()};h.send()}this.images.push(d);this.shapeImg={type:f,id:this.images.length+1};m=this.state;z*=m.scale;
|
|
|
|
|
B*=m.scale;f=this.xmGeo;g=(g-f.x+m.dx)*m.scale;y=(f.height-y+f.y-m.dy)*m.scale;this.shape.appendChild(this.createCellElemScaled("ImgOffsetX",g));this.shape.appendChild(this.createCellElemScaled("ImgOffsetY",y-B));this.shape.appendChild(this.createCellElemScaled("ImgWidth",z));this.shape.appendChild(this.createCellElemScaled("ImgHeight",B))};
|
|
|
|
|
mxVsdxCanvas2D.prototype.text=function(g,y,z,B,m,h,c,a,b,d,f,k,n){var p=this;if(this.textEnabled&&null!=m){mxUtils.isNode(m)&&(m=mxUtils.getOuterHtml(m));0==z&&0==B&&(B=mxUtils.getSizeForString(m,p.cellState.style.fontSize,p.cellState.style.fontFamily),z=2*B.width,B=2*B.height);"html"==b&&("0"!=mxUtils.getValue(this.cellState.style,"nl2Br","1")&&(m=m.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n")),null==this.html2txtDiv&&(this.html2txtDiv=document.createElement("div")),this.html2txtDiv.innerHTML=Graph.sanitizeHtml(m),
|
|
|
|
|
m=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));d=this.state;f=this.xmGeo;z*=d.scale;B*=d.scale;var x=this.createElt("Section");x.setAttribute("N","Character");var A=this.createElt("Section");A.setAttribute("N","Paragraph");var C=this.createElt("Text"),J=0,M=0,L=0,Q=0,U=0,H=0,I=0,N=function(R,S,la,ca,qa){var sa=R.fontSize,Fa=R.fontFamily,ka=mxUtils.getSizeForString(qa,sa,Fa);a&&ka.width>z&&(ka=mxUtils.getSizeForString(qa,sa,Fa,z));R.blockElem?(U+=ka.width,L=Math.min(Math.max(L,U),
|
|
|
|
|
z),U=0,H=Math.max(H,ka.height),Q+=H+I,I=H,H=0):(U+=ka.width,L=Math.min(Math.max(L,U),z),H=Math.max(H,ka.height),Q=Math.max(Q,H));ka=p.createElt("Row");ka.setAttribute("IX",J);R.fontColor&&ka.appendChild(p.createCellElem("Color",mxUtils.rgba2hex(R.fontColor)));sa&&ka.appendChild(p.createCellElemScaled("Size",.97*sa));Fa&&ka.appendChild(p.createCellElem("Font",Fa));sa=0;R.bold&&(sa|=17);R.italic&&(sa|=34);R.underline&&(sa|=4);ka.appendChild(p.createCellElem("Style",sa));ka.appendChild(p.createCellElem("Case",
|
|
|
|
|
"0"));ka.appendChild(p.createCellElem("Pos","0"));ka.appendChild(p.createCellElem("FontScale","1"));ka.appendChild(p.createCellElem("Letterspace","0"));S.appendChild(ka);S=p.createElt("Row");S.setAttribute("IX",M);switch(R.align){case "left":sa=0;break;case "center":sa=1;break;case "right":sa=2;break;case "start":sa=0;break;case "end":sa=2;break;case "justify":sa=0;break;default:sa=1}S.appendChild(p.createCellElem("HorzAlign",sa));la.appendChild(S);la=p.createElt("cp");la.setAttribute("IX",J++);ca.appendChild(la);
|
|
|
|
|
R=p.xmlDoc.createTextNode(qa+(R.blockElem?"\n":""));ca.appendChild(R)},K=function(R,S){S=S||{};for(var la=0;la<R.length;la++){var ca=R[la];if(3==ca.nodeType){var qa=p.cellState.style.fontStyle;qa={fontColor:S.fontColor||p.cellState.style.fontColor,fontSize:S.fontSize||p.cellState.style.fontSize,fontFamily:S.fontFamily||p.cellState.style.fontFamily,align:S.align||p.cellState.style.align,bold:S.bold||qa&1,italic:S.italic||qa&2,underline:S.underline||qa&4};var sa=!1;la+1<R.length&&"BR"==R[la+1].nodeName.toUpperCase()&&
|
|
|
|
|
(sa=!0,la++);N(qa,x,A,C,(S.OL?S.LiIndex+". ":"")+ca.textContent+(sa?"\n":""))}else if(1==ca.nodeType){sa=ca.nodeName.toUpperCase();var Fa=ca.childNodes.length;qa=window.getComputedStyle(ca,null);qa={bold:"bold"==qa.getPropertyValue("font-weight")||S.bold,italic:"italic"==qa.getPropertyValue("font-style")||S.italic,underline:0<=qa.getPropertyValue("text-decoration").indexOf("underline")||S.underline,align:qa.getPropertyValue("text-align"),fontColor:qa.getPropertyValue("color"),fontSize:parseFloat(qa.getPropertyValue("font-size")),
|
|
|
|
|
fontFamily:qa.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==qa.getPropertyValue("display")||"BR"==sa||"LI"==sa,OL:S.OL,LiIndex:S.LiIndex};if("UL"==sa){var ka=p.createElt("Row");ka.setAttribute("IX",M);ka.appendChild(p.createCellElem("HorzAlign","0"));ka.appendChild(p.createCellElem("Bullet","1"));A.appendChild(ka);ka=p.createElt("pp");ka.setAttribute("IX",M++);C.appendChild(ka)}else"OL"==sa?qa.OL=!0:"LI"==sa&&(qa.LiIndex=la+1);0<Fa?(K(ca.childNodes,qa),"UL"==sa&&(ka=p.createElt("Row"),
|
|
|
|
|
ka.setAttribute("IX",M),ka.appendChild(p.createCellElem("Bullet","0")),A.appendChild(ka),ka=p.createElt("pp"),ka.setAttribute("IX",M++),C.appendChild(ka)),N(qa,x,A,C,"")):N(qa,x,A,C,(S.OL?S.LiIndex+". ":"")+ca.textContent)}}};"html"==b&&mxClient.IS_SVG?(m=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=m&&K(m.childNodes,{})):N({fontColor:p.cellState.style.fontColor,fontSize:p.cellState.style.fontSize,fontFamily:p.cellState.style.fontFamily},x,A,C,m);b=m=0;B=Math.max(B,
|
|
|
|
|
m=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));d=this.state;f=this.xmGeo;z*=d.scale;B*=d.scale;var x=this.createElt("Section");x.setAttribute("N","Character");var A=this.createElt("Section");A.setAttribute("N","Paragraph");var C=this.createElt("Text"),J=0,M=0,L=0,Q=0,U=0,H=0,I=0,N=function(R,S,ka,ca,qa){var sa=R.fontSize,Fa=R.fontFamily,pa=mxUtils.getSizeForString(qa,sa,Fa);a&&pa.width>z&&(pa=mxUtils.getSizeForString(qa,sa,Fa,z));R.blockElem?(U+=pa.width,L=Math.min(Math.max(L,U),
|
|
|
|
|
z),U=0,H=Math.max(H,pa.height),Q+=H+I,I=H,H=0):(U+=pa.width,L=Math.min(Math.max(L,U),z),H=Math.max(H,pa.height),Q=Math.max(Q,H));pa=p.createElt("Row");pa.setAttribute("IX",J);R.fontColor&&pa.appendChild(p.createCellElem("Color",mxUtils.rgba2hex(R.fontColor)));sa&&pa.appendChild(p.createCellElemScaled("Size",.97*sa));Fa&&pa.appendChild(p.createCellElem("Font",Fa));sa=0;R.bold&&(sa|=17);R.italic&&(sa|=34);R.underline&&(sa|=4);pa.appendChild(p.createCellElem("Style",sa));pa.appendChild(p.createCellElem("Case",
|
|
|
|
|
"0"));pa.appendChild(p.createCellElem("Pos","0"));pa.appendChild(p.createCellElem("FontScale","1"));pa.appendChild(p.createCellElem("Letterspace","0"));S.appendChild(pa);S=p.createElt("Row");S.setAttribute("IX",M);switch(R.align){case "left":sa=0;break;case "center":sa=1;break;case "right":sa=2;break;case "start":sa=0;break;case "end":sa=2;break;case "justify":sa=0;break;default:sa=1}S.appendChild(p.createCellElem("HorzAlign",sa));ka.appendChild(S);ka=p.createElt("cp");ka.setAttribute("IX",J++);ca.appendChild(ka);
|
|
|
|
|
R=p.xmlDoc.createTextNode(qa+(R.blockElem?"\n":""));ca.appendChild(R)},K=function(R,S){S=S||{};for(var ka=0;ka<R.length;ka++){var ca=R[ka];if(3==ca.nodeType){var qa=p.cellState.style.fontStyle;qa={fontColor:S.fontColor||p.cellState.style.fontColor,fontSize:S.fontSize||p.cellState.style.fontSize,fontFamily:S.fontFamily||p.cellState.style.fontFamily,align:S.align||p.cellState.style.align,bold:S.bold||qa&1,italic:S.italic||qa&2,underline:S.underline||qa&4};var sa=!1;ka+1<R.length&&"BR"==R[ka+1].nodeName.toUpperCase()&&
|
|
|
|
|
(sa=!0,ka++);N(qa,x,A,C,(S.OL?S.LiIndex+". ":"")+ca.textContent+(sa?"\n":""))}else if(1==ca.nodeType){sa=ca.nodeName.toUpperCase();var Fa=ca.childNodes.length;qa=window.getComputedStyle(ca,null);qa={bold:"bold"==qa.getPropertyValue("font-weight")||S.bold,italic:"italic"==qa.getPropertyValue("font-style")||S.italic,underline:0<=qa.getPropertyValue("text-decoration").indexOf("underline")||S.underline,align:qa.getPropertyValue("text-align"),fontColor:qa.getPropertyValue("color"),fontSize:parseFloat(qa.getPropertyValue("font-size")),
|
|
|
|
|
fontFamily:qa.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==qa.getPropertyValue("display")||"BR"==sa||"LI"==sa,OL:S.OL,LiIndex:S.LiIndex};if("UL"==sa){var pa=p.createElt("Row");pa.setAttribute("IX",M);pa.appendChild(p.createCellElem("HorzAlign","0"));pa.appendChild(p.createCellElem("Bullet","1"));A.appendChild(pa);pa=p.createElt("pp");pa.setAttribute("IX",M++);C.appendChild(pa)}else"OL"==sa?qa.OL=!0:"LI"==sa&&(qa.LiIndex=ka+1);0<Fa?(K(ca.childNodes,qa),"UL"==sa&&(pa=p.createElt("Row"),
|
|
|
|
|
pa.setAttribute("IX",M),pa.appendChild(p.createCellElem("Bullet","0")),A.appendChild(pa),pa=p.createElt("pp"),pa.setAttribute("IX",M++),C.appendChild(pa)),N(qa,x,A,C,"")):N(qa,x,A,C,(S.OL?S.LiIndex+". ":"")+ca.textContent)}}};"html"==b&&mxClient.IS_SVG?(m=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=m&&K(m.childNodes,{})):N({fontColor:p.cellState.style.fontColor,fontSize:p.cellState.style.fontSize,fontFamily:p.cellState.style.fontFamily},x,A,C,m);b=m=0;B=Math.max(B,
|
|
|
|
|
Q);z=Math.max(z,L);n=z/2;var O=B/2,ba=parseInt(mxUtils.getValue(this.cellState.style,"rotation","0")),W=ba*Math.PI/180;switch(h){case "right":0!=ba?(g-=n*Math.cos(W),y-=n*Math.sin(W)):m=L/2;break;case "left":0!=ba?(g+=n*Math.cos(W),y+=n*Math.sin(W)):m=-L/2}switch(c){case "top":0!=ba?(g+=O*Math.sin(W),y+=O*Math.cos(W)):b=Q/2;break;case "bottom":0!=ba?(g-=O*Math.sin(W),y-=O*Math.cos(W)):b=-Q/2}g=(g-f.x+d.dx)*d.scale;y=(f.height-y+f.y-d.dy)*d.scale;this.shape.appendChild(this.createCellElemScaled("TxtPinX",
|
|
|
|
|
g));this.shape.appendChild(this.createCellElemScaled("TxtPinY",y));this.shape.appendChild(this.createCellElemScaled("TxtWidth",z));this.shape.appendChild(this.createCellElemScaled("TxtHeight",B));this.shape.appendChild(this.createCellElemScaled("TxtLocPinX",n+m));this.shape.appendChild(this.createCellElemScaled("TxtLocPinY",O+b));k-=ba;0!=k&&this.shape.appendChild(this.createCellElem("TxtAngle",(360-k)*Math.PI/180));this.shape.appendChild(x);this.shape.appendChild(A);this.shape.appendChild(C)}};
|
|
|
|
|
mxVsdxCanvas2D.prototype.rotate=function(g,y,z,B,m){0!=g&&(y=this.state,B+=y.dx,m+=y.dy,B*=y.scale,m*=y.scale,this.shape.appendChild(this.createCellElem("Angle",(360-g)*Math.PI/180)),y.rotation+=g,y.rotationCx=B,y.rotationCy=m)};mxVsdxCanvas2D.prototype.stroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","1"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};
|
|
|
|
@ -1131,7 +1131,7 @@ BmpDecoder.prototype.bit32=function(){for(var g=this.height-1;0<=g;g--)for(var y
|
|
|
|
|
null!=a&&(d+=parseFloat(a[1])),c.setStyle(c.getStyle().replace(/;rotation=(\d+\.*\d+)/,"")+";rotation="+(60<d&&240>d?(d+180)%360:d))),d=c.getGeometry(),d.x=0,d.y=0,d.relative=!0,f=f||new mxPoint(0,0),d.offset=new mxPoint(f.x-d.width/2,f.y-d.height/2))}m.vsdxPlaceholder_$LI$=function(){null==m.vsdxPlaceholder&&(m.vsdxPlaceholder=window.atob?atob("dmlzaW8="):Base64.decode("dmlzaW8=",!0));return m.vsdxPlaceholder};m.parsererrorNS_$LI$=function(){m.parsererrorNS=mxConstants.NS_XHTML;return m.parsererrorNS};
|
|
|
|
|
m.parseXml=function(c){try{var a=mxUtils.parseXml(c);return 0<a.getElementsByTagNameNS(m.parsererrorNS,"parsererror").length?null:a}catch(b){return null}};m.decodeUTF16LE=function(c){for(var a="",b=0;b<c.length;b+=2)a+=String.fromCharCode(c.charCodeAt(b)|c.charCodeAt(b+1)<<8);return a};m.prototype.scaleGraph=function(c,a){if(1!==a){c=c.getModel();for(var b in c.cells){var d=c.cells[b],f=c.getGeometry(d);if(null!=f&&(this.scaleRect(f,a),this.scaleRect(f.alternateBounds,a),c.isEdge(d)&&(this.scalePoint(f.sourcePoint,
|
|
|
|
|
a),this.scalePoint(f.targetPoint,a),this.scalePoint(f.offset,a),d=f.points,null!=d)))for(f=0;f<d.length;f++)this.scalePoint(d[f],a)}}};m.incorrectXMLReqExp=[{regExp:/&(?!amp;|lt;|gt;|quot;|#)/g,repl:"&"}];m.prototype.decodeVsdx=function(c,a,b,d){function f(L,Q,U){function H(){C++;J();Q++;Q==I&&f(L,Q,U)}for(var I=Math.min(Q+M,L.length),N=Q;N<I;N++)(function(K){function O(W){var R=new FormData;R.append("img",W,K.name);R.append("inputformat","emf");R.append("outputformat","png");var S=new XMLHttpRequest;
|
|
|
|
|
S.open("POST",EMF_CONVERT_URL);S.responseType="blob";k.editorUi.addRemoteServiceSecurityCheck(S);S.onreadystatechange=mxUtils.bind(this,function(){if(4==S.readyState)if(200<=S.status&&299>=S.status)try{var la=new FileReader;la.readAsDataURL(S.response);la.onloadend=function(){var ca=la.result.indexOf(",")+1;U[K.name]=la.result.substr(ca);H()}}catch(ca){console.log(ca),H()}else ba++,3>ba?O(W):H()});S.send(R)}var ba=0;K.async("blob").then(O)})(L[N])}var k=this,n={},p={},x=function(){function L(){I=
|
|
|
|
|
S.open("POST",EMF_CONVERT_URL);S.responseType="blob";k.editorUi.addRemoteServiceSecurityCheck(S);S.onreadystatechange=mxUtils.bind(this,function(){if(4==S.readyState)if(200<=S.status&&299>=S.status)try{var ka=new FileReader;ka.readAsDataURL(S.response);ka.onloadend=function(){var ca=ka.result.indexOf(",")+1;U[K.name]=ka.result.substr(ca);H()}}catch(ca){console.log(ca),H()}else ba++,3>ba?O(W):H()});S.send(R)}var ba=0;K.async("blob").then(O)})(L[N])}var k=this,n={},p={},x=function(){function L(){I=
|
|
|
|
|
I.concat(k.RESPONSE_END);a&&a(I)}for(var Q=m.vsdxPlaceholder+"/document.xml",U=n[Q]?n[Q]:null,H=U.firstChild;null!=H&&1!=H.nodeType;)H=H.nextSibling;if(null!=H&&1==H.nodeType)k.importNodes(U,H,Q,n);else return null;k.vsdxModel=new g.mxgraph.io.vsdx.mxVsdxModel(U,n,p);Q=k.vsdxModel.getPages();var I=k.RESPONSE_HEADER;var N=function(ba){null==ba.entries&&(ba.entries=[]);return ba.entries}(Q),K=function(ba,W){var R=N[ba].getValue(),S=O.createMxGraph();S.getModel().beginUpdate();O.importPage(R,S,S.getDefaultParent(),
|
|
|
|
|
!0);O.scaleGraph(S,R.getPageScale()/R.getDrawingScale());S.getModel().endUpdate();O.postImportPage(R,S,function(){O.sanitiseGraph(S);I=I.concat(k.RESPONSE_DIAGRAM_START);I=I.concat(k.processPage(S,R));I=I.concat(k.RESPONSE_DIAGRAM_END);ba<N.length-1?K(ba+1,W):W()})},O=k;0<N.length?K(0,L):L()},A=0,C=0,J=function(){if(C==A)try{x()}catch(L){console.log(L),null!=d?d(L):a("")}},M=window.EMF_CHUNK_SIZE||10;JSZip.loadAsync(c).then(function(L){if(0==Object.keys(L.files).length)null!=d&&d();else{var Q=[];
|
|
|
|
|
L.forEach(function(U,H){var I=H.name;U=I.toLowerCase();var N=U.length;U.indexOf(".xml")==N-4||U.indexOf(".rels")==N-5?(A++,H.async("string").then(function(K){if(0!==K.length){65279==K.charCodeAt(0)&&(K=K.substring(1));var O=m.parseXml(K);if(null==O)if(0===K.charCodeAt(1)&&0===K.charCodeAt(3)&&0===K.charCodeAt(5))O=m.parseXml(m.decodeUTF16LE(K));else{for(O=0;O<m.incorrectXMLReqExp.length;O++)m.incorrectXMLReqExp[O].regExp.test(K)&&(K=K.replace(m.incorrectXMLReqExp[O].regExp,m.incorrectXMLReqExp[O].repl));
|
|
|
|
@ -1175,8 +1175,8 @@ f.y-=f.height,a.style+=";flipV=1;"),0>f.width&&(f.width=Math.abs(f.width),f.x-=f
|
|
|
|
|
(g.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(g){(function(y){(function(z){var B=function(m){function h(c){var a=m.call(this)||this;a.RESPONSE_END="";a.RESPONSE_DIAGRAM_START="";a.RESPONSE_DIAGRAM_END="";a.RESPONSE_HEADER="";a.editorUi=c;return a}__extends(h,m);h.prototype.decodeVssx=function(c,a,b,d){var f=this,k="<mxlibrary>[";this.decodeVsdx(c,function(n){k=k.concat(n);var p=f.vsdxModel.getMasterShapes(),x=function(Q){var U=0;return{next:function(){return U<Q.length?Q[U++]:null},hasNext:function(){return U<Q.length}}}(function(Q){var U=
|
|
|
|
|
[];null==Q.entries&&(Q.entries=[]);for(var H=0;H<Q.entries.length;H++)U.push(Q.entries[H].value);return U}(f.vsdxModel.getPages())).next();if(null!=p){var A={str:"",toString:function(){return this.str}},C=0===n.length?"":",",J=function(Q){return Object.keys(Q).map(function(U){return Q[U]})}(p);n=function(Q){Q=J[Q];var U=M.createMxGraph(),H=1;if(null!=Q.pageSheet){var I=H=1,N=Q.pageSheet.DrawingScale;null!=N&&(H=parseFloat(N.getAttribute("V"))||1);N=Q.pageSheet.PageScale;null!=N&&(I=parseFloat(N.getAttribute("V"))||
|
|
|
|
|
1);H=I/H}I=!1;for(N=0;null!=Q.firstLevelShapes&&N<Q.firstLevelShapes.length;N++){var K=Q.firstLevelShapes[N].getShape(),O=new g.mxgraph.io.vsdx.VsdxShape(x,K,!x.isEdge(K),p,null,M.vsdxModel);K=null;if(O.isVertex()){M.edgeShapeMap.entries=[];M.parentsMap.entries=[];K=M.addShape(U,O,U.getDefaultParent(),0,1169);O=function(S){null==S.entries&&(S.entries=[]);return S.entries}(M.edgeShapeMap);for(var ba=0;ba<O.length;ba++){var W=O[ba],R=function(S,la){null==S.entries&&(S.entries=[]);for(var ca=0;ca<S.entries.length;ca++)if(null!=
|
|
|
|
|
S.entries[ca].key.equals&&S.entries[ca].key.equals(la)||S.entries[ca].key===la)return S.entries[ca].value;return null}(M.parentsMap,W.getKey());M.addUnconnectedEdge(U,R,W.getValue(),1169)}}else K=M.addUnconnectedEdge(U,null,O,1169);I|=null!=K}if(I){M.scaleGraph(U,H);H=M.normalizeGraph(U);M.sanitiseGraph(U);if(0===U.getModel().getChildCount(U.getDefaultParent()))return"continue";A.str=A.str.concat(C);A.str=A.str.concat('{"xml":"');U=m.prototype.processPage.call(M,U,null);A.str=A.str.concat(U);A.str=
|
|
|
|
|
1);H=I/H}I=!1;for(N=0;null!=Q.firstLevelShapes&&N<Q.firstLevelShapes.length;N++){var K=Q.firstLevelShapes[N].getShape(),O=new g.mxgraph.io.vsdx.VsdxShape(x,K,!x.isEdge(K),p,null,M.vsdxModel);K=null;if(O.isVertex()){M.edgeShapeMap.entries=[];M.parentsMap.entries=[];K=M.addShape(U,O,U.getDefaultParent(),0,1169);O=function(S){null==S.entries&&(S.entries=[]);return S.entries}(M.edgeShapeMap);for(var ba=0;ba<O.length;ba++){var W=O[ba],R=function(S,ka){null==S.entries&&(S.entries=[]);for(var ca=0;ca<S.entries.length;ca++)if(null!=
|
|
|
|
|
S.entries[ca].key.equals&&S.entries[ca].key.equals(ka)||S.entries[ca].key===ka)return S.entries[ca].value;return null}(M.parentsMap,W.getKey());M.addUnconnectedEdge(U,R,W.getValue(),1169)}}else K=M.addUnconnectedEdge(U,null,O,1169);I|=null!=K}if(I){M.scaleGraph(U,H);H=M.normalizeGraph(U);M.sanitiseGraph(U);if(0===U.getModel().getChildCount(U.getDefaultParent()))return"continue";A.str=A.str.concat(C);A.str=A.str.concat('{"xml":"');U=m.prototype.processPage.call(M,U,null);A.str=A.str.concat(U);A.str=
|
|
|
|
|
A.str.concat('","w":');A.str=A.str.concat(H.width);A.str=A.str.concat(',"h":');A.str=A.str.concat(H.height);A.str=A.str.concat(',"title":');Q=Q.getName();null==Q&&(Q="");Q=mxUtils.htmlEntities(JSON.stringify(Q));A.str=A.str.concat(Q);A.str=A.str.concat("}");C=","}};for(var M=f,L=0;L<J.length;L++)n(L);k=k.concat(A)}k=k.concat("]</mxlibrary>");if(a)try{a(k)}catch(Q){null!=d?d(Q):a("")}},b)};h.prototype.normalizeGeo=function(c){var a=c.getGeometry();a.x=0;a.y=0;var b=a.sourcePoint;if(c.isEdge()&&null!=
|
|
|
|
|
b){this.transPoint(a.targetPoint,b);this.transPoint(a.offset,b);c=a.points;if(null!=c)for(var d=0;d<c.length;d++)this.transPoint(c[d],b);this.transPoint(b,b)}return a};h.prototype.normalizeGraph=function(c){function a(C){null!=C&&(null==b?(b=C.x,d=C.y,f=C.x+(C.width||0),k=C.y+(C.height||0)):(b=Math.min(C.x,b),d=Math.min(C.y,d),f=Math.max(C.x+(C.width||0),f),k=Math.max(C.y+(C.height||0),k)))}var b,d,f,k,n;for(n in c.model.cells){var p=c.model.cells[n],x=p.geometry;if(null!=x&&1==p.parent.id)if(p.vertex)a(x);
|
|
|
|
|
else for(a(x.sourcePoint),a(x.targetPoint),p=x.points,x=0;null!=p&&x<p.length;x++)a(p[x])}var A={x:b,y:d};for(n in c.model.cells)if(p=c.model.cells[n],x=p.geometry,null!=x&&1==p.parent.id&&(x.x-=b,x.y-=d,p.isEdge()))for(this.transPoint(x.sourcePoint,A),this.transPoint(x.targetPoint,A),this.transPoint(x.offset,A),p=x.points,x=0;null!=p&&x<p.length;x++)this.transPoint(p[x],A);return{width:f-b,height:k-d}};h.prototype.transPoint=function(c,a){null!=c&&(c.x-=a.x,c.y-=a.y)};h.prototype.processPage=function(c,
|
|
|
|
|