|
|
|
@ -1,82 +1,83 @@
|
|
|
|
|
LucidImporter={};
|
|
|
|
|
(function(){function f(a,b){function d(a){var b="",d=a.t,k=a.l||{};if(null==d||0!=y&&y==d.v&&l==k.v)null==d&&(y&&(b+=c(!0),y=!1),b+='<div style="',E.push("div"));else{y&&(b+=c(!0));y=d.v;l=k.v;"ul"==d.v?(b+="<ul ",E.push("ul")):(b+="<ol ",E.push("ol"));b+='style="margin: 0px; list-style-type:';if("hl"==d.v)b+="upper-roman";else switch(k.v){case "auto":b+="disc";break;case "inv":b+="circle";break;case "disc":b+="circle";break;case "trib":b+="square";break;case "square":b+="square";break;case "dash":b+=
|
|
|
|
|
"square";break;case "heart":b+="disc";break;default:b+="decimal"}b+='">'}null!=d&&(b+='<li style="text-align:'+(a.a?a.a.v:"left")+">",E.push("li"),b+='<span style="',E.push("span"));y||(b+="text-align: "+(a.a?a.a.v:"center")+";");a.il&&(b+="margin-left: "+Math.round(.6*a.il.v-(y?21:0))+"px;");a.ir&&(b+="margin-right: "+Math.round(.6*a.ir.v)+"px;");a.mt&&(b+="margin-top: "+Math.round(.6*a.mt.v)+"px;");a.mb&&(b+="margin-bottom: "+Math.round(.6*a.mb.v)+"px;");return b+'">'}function k(a){if(0==Object.keys(a).length)return"";
|
|
|
|
|
var b="",d=0;if(a.lk){var k=a.lk;null!=k.v&&0<k.v.length&&"ext"==k.v[0].tp&&(b+='<a href="'+k.v[0].url+'">',C.push("a"),d++)}b+='<span style="';C.push("span");d++;a.s&&(b+="font-size:"+Math.floor(.6*a.s.v)+"px;");a.c&&(k=a.c.v,null!=k&&("#"!=k.charAt(0)&&(k="#"+k),k=k.substring(0,7),b+="color:"+k+";"));if(a.b&&a.b.v||a.fc&&a.fc.v&&0==a.fc.v.indexOf("Bold"))b+="font-weight: bold;";a.i&&a.i.v&&(b+="font-style: italic;");a.u&&a.u.v&&(b+="text-decoration: underline;");b+='">';D.push(d);return b}function c(a){var b=
|
|
|
|
|
"";do{var d=E.pop();if(!a&&y&&("ul"==d||"ol"==d)){E.push(d);break}b+="</"+d+">"}while(0<E.length);return b}function n(a,b,d,k){a=a?a.substring(b,d):"";y&&(a=a.trim());a=a.replace(/</g,"<").replace(/>/g,">");do for(b=D.pop(),d=0;d<b;d++){var c=C.pop();a+="</"+c+">"}while(k&&0<C.length);return a}var f={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,l:!0},w={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0};b.sort(function(a,b){return a.s-b.s});var m=b.filter(function(a){return w[a.n]}),x=b.filter(function(a){return f[a.n]}),
|
|
|
|
|
z="",g=m.slice();g.sort(function(a,b){return a.e-b.e});for(var p=0,Ta=0,B=0,e={},A={},C=[],D=[],E=[],R=!1,y=!1,l,eb=0,W=0,N=a.length,ca=!0;B<x.length||ca;){ca=!1;if(B<x.length){var M=x[B],S=x[B].s;R&&(A={},z+=n(a,N,eb,!0),eb=N,z+=c());for(;null!=M&&M.s==S;)A[M.n]=M,M=x[++B];N=null!=M?M.s:a.length;z+=d(A);R&&(z+=k(e));R=!0}for(;p>=Ta&&(p<m.length||Ta<g.length);)if(M=m[p],S=g[Ta],M&&S&&M.s<S.e){if(M.s>N)break;eb=M.s;for(0<eb-W&&(z+=n(a,W,eb));null!=M&&M.s==eb;)e[M.n]=M,M=m[++p];z+=k(e)}else if(S){if(S.e>
|
|
|
|
|
N)break;W=S.e;do delete e[S.n],S=g[++Ta];while(null!=S&&S.e==W);z+=n(a,eb,W);eb=W}else break}z+=n(null,null,null,!0);R&&(z+=c(!0));return z}function g(a){y=!1;var b=null!=a.Text?a.Text:null!=a.Value?a.Value:a.Lane_0;null==b&&null!=a.State?null!=a.State.t&&(b=a.State):null==b&&null!=a.Note?null!=a.Note.t&&(b=a.Note):null==b&&null!=a.Title?null!=a.Title.t&&(b=a.Title):null!=a.t&&(b=a);null==b&&null!=a.TextAreas?null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.t&&(b=
|
|
|
|
|
a.TextAreas.Text.Value):null==b&&null!=a.t0&&null!=a.t0.t&&(b=a.t0);if(null!=b){if(null!=b.t){a=b.t;a=a.replace(/\u2028/g,"\n");b=b.m;try{for(var d=0;d<b.length;d++)if(0<b[d].s||null!=b[d].e&&b[d].e<a.length){y=!0;break}if(y)return f(a,b)}catch(Sb){console.log(Sb)}a=a.replace(/</g,"<");return a=a.replace(/>/g,">")}if(null!=b.Value&&null!=b.Value.t)return b.Value.t=b.Value.t.replace(/</g,"<"),b.Value.t=b.Value.t.replace(/>/g,">"),b.Value.t}return""}function p(a){return null!=a.Action?a.Action:
|
|
|
|
|
a}function e(a){if(null!=a.Text){if(null!=a.Text.m)return a.Text.m}else if(null!=a.TextAreas){if(null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.m)return a.TextAreas.Text.Value.m}else{if(null!=a.m)return a.m;if(null!=a.Title&&null!=a.Title.m)return a.Title.m}return null}function m(b,c){return"whiteSpace=wrap;"+(c?"html=1;":a(b)+d(b)+k(b)+w(b)+x(b)+z(b)+B(b)+C(b))+A(b)+D(b)}function c(a,d,k,c,n){var h="";null!=a&&""!=a&&";"!=a.charAt(a.length-1)&&(h=";");return h+=
|
|
|
|
|
"whiteSpace=wrap;"+(n?tc(a,"html")?"":"html=1;":b(mxConstants.STYLE_FONTSIZE,a,d,k,c)+b(mxConstants.STYLE_FONTCOLOR,a,d,k,c)+b(mxConstants.STYLE_FONTSTYLE,a,d,k,c)+b(mxConstants.STYLE_ALIGN,a,d,k,c)+b(mxConstants.STYLE_SPACING_LEFT,a,d,k,c)+b(mxConstants.STYLE_SPACING_RIGHT,a,d,k,c)+b(mxConstants.STYLE_SPACING_TOP,a,d,k,c)+b(mxConstants.STYLE_SPACING_BOTTOM,a,d,k,c))+b(mxConstants.STYLE_SPACING,a,d,k,c)+b(mxConstants.STYLE_VERTICAL_ALIGN,a,d,k,c)+b(mxConstants.STYLE_STROKECOLOR,a,d,k,c)+b(mxConstants.STYLE_OPACITY,
|
|
|
|
|
a,d,k,c)+b(mxConstants.STYLE_ROUNDED,a,d,k,c)+b(mxConstants.STYLE_ROTATION,a,d,k,c)+b(mxConstants.STYLE_FLIPH,a,d,k,c)+b(mxConstants.STYLE_FLIPV,a,d,k,c)+b(mxConstants.STYLE_SHADOW,a,d,k,c)+b(mxConstants.STYLE_FILLCOLOR,a,d,k,c)+b(mxConstants.STYLE_DASHED,a,d,k,c)+b(mxConstants.STYLE_STROKEWIDTH,a,d,k,c)+b(mxConstants.STYLE_IMAGE,a,d,k,c)}function b(b,c,n,f,h){if(!tc(c,b))switch(b){case mxConstants.STYLE_FONTSIZE:return a(n);case mxConstants.STYLE_FONTCOLOR:return d(n);case mxConstants.STYLE_FONTSTYLE:return k(n);
|
|
|
|
|
case mxConstants.STYLE_ALIGN:return w(n);case mxConstants.STYLE_SPACING_LEFT:return x(n);case mxConstants.STYLE_SPACING_RIGHT:return z(n);case mxConstants.STYLE_SPACING_TOP:return B(n);case mxConstants.STYLE_SPACING_BOTTOM:return C(n);case mxConstants.STYLE_SPACING:return A(n);case mxConstants.STYLE_VERTICAL_ALIGN:return D(n);case mxConstants.STYLE_STROKECOLOR:return E(n,f);case mxConstants.STYLE_OPACITY:return O(n,f,h);case mxConstants.STYLE_ROUNDED:return b=!h.edge&&!h.style.includes("rounded")&&
|
|
|
|
|
null!=n.Rounding&&0<n.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+.6*n.Rounding+";":"",b;case mxConstants.STYLE_ROTATION:return R(n,f,h);case mxConstants.STYLE_FLIPH:return b=n.FlipX?"flipH=1;":"",b;case mxConstants.STYLE_FLIPV:return b=n.FlipY?"flipV=1;":"",b;case mxConstants.STYLE_SHADOW:return ca(n);case mxConstants.STYLE_FILLCOLOR:return M(n,f);case mxConstants.STYLE_DASHED:return ma(n);case mxConstants.STYLE_STROKEWIDTH:return ea(n);case mxConstants.STYLE_IMAGE:return ec(n,f)}return""}function a(a){a=
|
|
|
|
|
e(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("s"==d.n&&null!=d.v)return"fontSize="+Math.floor(.6*d.v)+";";b++}return"fontSize=11;"}function d(a){a=e(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("c"==d.n&&null!=d.v)return a=d.v,"#"!=a.charAt(0)&&(a="#"+a),a=a.substring(0,7),mxConstants.STYLE_FONTCOLOR+"="+a+";";b++}return""}function k(a){return n(e(a))}function n(a){if(null!=a){var b=0,d=!1;if(null!=a)for(var k=0;!d&&k<a.length;){var c=a[k];"b"==c.n?null!=c.v&&c.v&&(d=!0,b+=1):"fc"==
|
|
|
|
|
c.n&&"Bold"==c.v&&(d=!0,b+=1);k++}d=!1;if(null!=a)for(k=0;!d&&k<a.length;)c=a[k],"i"==c.n&&null!=c.v&&c.v&&(d=!0,b+=2),k++;d=!1;if(null!=a)for(k=0;!d&&k<a.length;)c=a[k],"u"==c.n&&null!=c.v&&c.v&&(d=!0,b+=4),k++;if(0<b)return"fontStyle="+b+";"}return""}function w(a){a=e(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("a"==d.n&&null!=d.v)return"align="+d.v+";";b++}return""}function x(a){var b=e(a);if(null!=b)for(var d=0;d<b.length;){var k=b[d];if(null!=k.v){if("il"==k.n)return"spacingLeft="+.6*
|
|
|
|
|
k.v+";";w(a)}d++}return""}function z(a){a=e(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("ir"==d.n&&null!=d.v)return"spacingRight="+d.v+";";b++}return""}function B(a){a=e(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("mt"==d.n&&null!=d.v)return"spacingTop="+d.v+";";b++}return""}function C(a){a=e(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("mb"==d.n&&null!=d.v)return"spacingBottom="+d.v+";";b++}return""}function A(a){return"number"===typeof a.InsetMargin?"spacing="+Math.max(0,
|
|
|
|
|
Math.round(.6*parseInt(a.InsetMargin)))+";":""}function D(a){return null!=a.Text_VAlign&&"string"===typeof a.Text_VAlign?"verticalAlign="+a.Text_VAlign+";":null!=a.Title_VAlign&&"string"===typeof a.Title_VAlign?"verticalAlign="+a.Title_VAlign+";":Da(mxConstants.STYLE_VERTICAL_ALIGN,a.TextVAlign,"middle")}function E(a,b){return 0==a.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Da(mxConstants.STYLE_STROKECOLOR,W(a.LineColor),"#000000")}function G(a){return null!=a?mxConstants.STYLE_FILLCOLOR+"="+
|
|
|
|
|
W(a)+";":""}function N(a){return null!=a?"swimlaneFillColor="+W(a)+";":""}function O(a,b,d){b="";if("string"===typeof a.LineColor&&7<a.LineColor.length){var k="0x"+a.LineColor.substring(a.LineColor.length-2,a.LineColor.length);d.style.includes("strokeOpacity")||(b+="strokeOpacity="+Math.round(parseInt(k)/2.55)+";")}"string"===typeof a.FillColor&&7<a.FillColor.length&&(a="0x"+a.FillColor.substring(a.FillColor.length-2,a.FillColor.length),d.style.includes("fillOpacity")||(b+="fillOpacity="+Math.round(parseInt(a)/
|
|
|
|
|
2.55)+";"));return b}function R(a,b,d){var k="";if(null!=a.Rotation){a=mxUtils.toDegree(parseFloat(a.Rotation));var c=!0;0!=a&&("UMLSwimLaneBlockV2"==b.Class||(0<=b.Class.indexOf("Rotated")||-90==a||270==a)&&(0<=b.Class.indexOf("Pool")||0<=b.Class.indexOf("SwimLane")))?(a+=90,d.geometry.rotate90(),c=!1):0<=mxUtils.indexOf(md,b.Class)?(a-=90,d.geometry.rotate90()):0<=mxUtils.indexOf(nd,b.Class)&&(a+=180);0!=a&&(k+="rotation="+a+";");c||(k+="horizontal=0;")}return k}function ca(a){return null!=a.Shadow?
|
|
|
|
|
mxConstants.STYLE_SHADOW+"=1;":""}function W(a){(a=a?a.substring(0,7):null)&&"#"!=a.charAt(0)&&"r"!=a.charAt(0).toLowerCase()&&(a="#"+a);return a}function S(a,b){return a&&7<a.length?b+"="+Math.round(parseInt("0x"+a.substr(7))/2.55)+";":""}function M(a,b){if(null!=a.FillColor)if("object"===typeof a.FillColor){if(null!=a.FillColor.cs&&1<a.FillColor.cs.length)return Da(mxConstants.STYLE_FILLCOLOR,W(a.FillColor.cs[0].c))+Da(mxConstants.STYLE_GRADIENTCOLOR,W(a.FillColor.cs[1].c))}else return"string"===
|
|
|
|
|
typeof a.FillColor?Da(mxConstants.STYLE_FILLCOLOR,W(a.FillColor),"#FFFFFF"):Da(mxConstants.STYLE_FILLCOLOR,"none");return""}function ma(a){return"dotted"==a.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==a.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dashdotdot"==a.StrokeStyle?"dashed=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==a.StrokeStyle?"dashed=1;dashPattern=1 2;":"longdash"==a.StrokeStyle?"dashed=1;dashPattern=16 6;":"dashlongdash"==a.StrokeStyle?"dashed=1;dashPattern=10 6 16 6;":"dashed24"==
|
|
|
|
|
a.StrokeStyle?"dashed=1;dashPattern=3 8;":"dashed32"==a.StrokeStyle?"dashed=1;dashPattern=6 5;":"dashed44"==a.StrokeStyle?"dashed=1;dashPattern=8 8;":null!=a.StrokeStyle&&"dashed"==a.StrokeStyle.substring(0,6)?"dashed=1;":""}function ea(a){return null!=a.LineWidth?Da(mxConstants.STYLE_STROKEWIDTH,Math.round(.6*parseFloat(a.LineWidth)),"1"):""}function ec(a,b,d){"ImageSearchBlock2"==b.Class?d=a.URL:"UserImage2Block"==b.Class&&null!=a.ImageFillProps&&null!=a.ImageFillProps.url?d=a.ImageFillProps.url:
|
|
|
|
|
a.FillColor&&a.FillColor.url&&(d=a.FillColor.url);if(null!=d){if(null!=LucidImporter.imgSrcRepl)for(a=0;a<LucidImporter.imgSrcRepl.length;a++)b=LucidImporter.imgSrcRepl[a],d=d.replace(b.searchVal,b.replVal);return"image="+d+";"}return""}function ja(a,b,d,k){for(var c=b,n=0;null!=k.getAttributeForCell(a,c);)n++,c=b+"_"+n;k.setAttributeForCell(a,c,null!=d?d:"")}function fc(a,b,d,k,n,f){var h=p(b);if(null!=h){var w=Hb[h.Class];null!=w?a.style+=w+";":a.edge||(console.log("No mapping found for: "+h.Class),
|
|
|
|
|
LucidImporter.hasUnknownShapes=!0);w=null!=h.Properties?h.Properties:h;if(null!=w){a.value=f?"":g(w);a.style+=c(a.style,w,h,a,y);a.style.includes("strokeColor")||(a.style+=E(w,h));if(null!=w.Link&&0<w.Link.length&&"ext"==w.Link[0].tp)d.setAttributeForCell(a,"link",w.Link[0].url);else if(null!=w.Text){a:{f=e(w.Text);if(null!=f)for(var x=0;x<f.length;x++)if(f[x].n=null!=f[x].v&&0<f[x].v.length&&"ext"==f[x].v[0].tp){f=f[x].v[0].url;break a}f=null}null!=f&&d.setAttributeForCell(a,"link",f)}f=[];var x=
|
|
|
|
|
d.convertValueToString(a),z=!1;if(null!=x){for(var B=0;match=od.exec(x);){var Sb=match[0],z=!0;if(2<Sb.length){var C=Sb.substring(2,Sb.length-2);"documentName"==C?C="filename":"pageName"==C?C="page":"totalPages"==C?C="pagecount":"page"==C?C="pagenumber":"date:"==C.substring(0,5)?C="date{"+C.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==C.substring(0,16)?C=C.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==C.substring(0,
|
|
|
|
|
9)&&(C="date{"+C.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");C="%"+C+"%";f.push(x.substring(B,match.index)+(null!=C?C:Sb));B=match.index+Sb.length}}z&&(f.push(x.substring(B)),d.setAttributeForCell(a,"label",f.join("")),d.setAttributeForCell(a,"placeholders","1"))}for(var A in w)if(w.hasOwnProperty(A)&&A.toString().startsWith("ShapeData_"))try{var D=w[A],R=mxUtils.trim(D.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,
|
|
|
|
|
"");ja(a,R,D.Value,d)}catch(xe){window.console&&console.log("Ignored "+A+":",xe)}w.Title&&w.Text&&"ExtShape"!=h.Class.substr(0,8)&&(h=a.geometry,h=new mxCell(g(w.Title),new mxGeometry(0,h.height,h.width,10),"strokeColor=none;fillColor=none;"),h.vertex=!0,a.insert(h),h.style+=m(w.Title,y));if(a.edge){a.style=null!=w.Rounding&&"diagonal"!=w.Shape?a.style+("rounded=1;arcSize="+w.Rounding+";"):a.style+"rounded=0;";if("diagonal"!=w.Shape)if(null!=w.ElbowPoints&&0<w.ElbowPoints.length)for(a.geometry.points=
|
|
|
|
|
[],h=0;h<w.ElbowPoints.length;h++)a.geometry.points.push(new mxPoint(Math.round(.6*w.ElbowPoints[h].x+Ib),Math.round(.6*w.ElbowPoints[h].y+Jb)));else"elbow"==w.Shape?a.style+="edgeStyle=orthogonalEdgeStyle;":null!=w.Endpoint1.Block&&null!=w.Endpoint2.Block&&(a.style+="edgeStyle=orthogonalEdgeStyle;","curve"==w.Shape&&(a.style+="curved=1;"));if(w.LineJumps||LucidImporter.globalProps.LineJumps)a.style+="jumpStyle=arc;";null!=w.Endpoint1.Style&&(null!=Tb[w.Endpoint1.Style]?a.style+="startArrow="+Tb[w.Endpoint1.Style]+
|
|
|
|
|
";":(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+w.Endpoint1.Style)));null!=w.Endpoint2.Style&&(null!=Tb[w.Endpoint2.Style]?a.style+="endArrow="+Tb[w.Endpoint2.Style].replace(/startSize/g,"endSize")+";":(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+w.Endpoint2.Style)));A=null!=w.ElbowControlPoints&&0<w.ElbowControlPoints.length?w.ElbowControlPoints:null!=w.BezierJoints&&0<w.BezierJoints.length?w.BezierJoints:
|
|
|
|
|
w.Joints;if(null!=A)for(a.geometry.points=[],h=0;h<A.length;h++)D=A[h].p?A[h].p:A[h],a.geometry.points.push(new mxPoint(Math.round(.6*D.x+Ib),Math.round(.6*D.y+Jb)));A=!1;null!=a.geometry.points&&0!=a.geometry.points.length||null==w.Endpoint1.Block||w.Endpoint1.Block!=w.Endpoint2.Block||null==k||null==n||(A=new mxPoint(Math.round(k.geometry.x+k.geometry.width*w.Endpoint1.LinkX),Math.round(k.geometry.y+k.geometry.height*w.Endpoint1.LinkY)),D=new mxPoint(Math.round(n.geometry.x+n.geometry.width*w.Endpoint2.LinkX),
|
|
|
|
|
Math.round(n.geometry.y+n.geometry.height*w.Endpoint2.LinkY)),Ib=A.x==D.x?Math.abs(A.x-k.geometry.x)<k.geometry.width/2?-20:20:0,Jb=A.y==D.y?Math.abs(A.y-k.geometry.y)<k.geometry.height/2?-20:20:0,h=new mxPoint(A.x+Ib,A.y+Jb),R=new mxPoint(D.x+Ib,D.y+Jb),h.generated=!0,R.generated=!0,a.geometry.points=[h,R],A=A.x==D.x);h=Bb(a,w.Endpoint1,!0,A);null!=k&&null!=h&&(null==k.stylePoints&&(k.stylePoints=[]),k.stylePoints.push(h),LucidImporter.stylePointsSet.add(k));R=Bb(a,w.Endpoint2,!1,A);null!=n&&null!=
|
|
|
|
|
R&&(null==n.stylePoints&&(n.stylePoints=[]),n.stylePoints.push(R),LucidImporter.stylePointsSet.add(n))}}}null!=b.id&&ja(a,"lucidchartObjectId",b.id,d)}function uc(a,b){var d=p(a),k=d.Properties,n=k.BoundingBox;null==a.Class||"AWS"!==a.Class.substring(0,3)&&"Amazon"!==a.Class.substring(0,6)||a.Class.includes("AWS19")||(n.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*n.x+Ib),Math.round(.6*n.y+Jb),Math.round(.6*n.w),Math.round(.6*n.h)),"html=1;whiteSpace=wrap;");v.vertex=!0;fc(v,a,b);v.zOrder=
|
|
|
|
|
k.ZOrder;null!=v&&0<=v.style.indexOf(";grIcon=")&&(n=new mxCell("",new mxGeometry(v.geometry.x,v.geometry.y,v.geometry.width,v.geometry.height),"html=1;whiteSpace=wrap;"),n.vertex=!0,n.style+=c(n.style,k,d,n),v.geometry.x=0,v.geometry.y=0,v.style+="part=1;",n.insert(v),v=n);Md(v,k);return v}function pa(a,b,d,k){var n=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");n.geometry.relative=!0;n.edge=!0;fc(n,a,b,d,k,!0);b=p(a).Properties;d=null!=b?b.TextAreas:a.TextAreas;if(null!=d){for(k=
|
|
|
|
|
0;null!=d["t"+k];){var c=d["t"+k],n=na(c,n);k++}for(k=0;null!=d["m"+k]||1>k;)c=d["m"+k],null!=c&&(n=na(c,n,a)),k++;null!=d.Text&&(n=na(d.Text,n,a));d=null!=b?b.TextAreas:a.TextAreas;null!=d.Message&&(n=na(d.Message,n,a))}return n}function na(a,b,d){var k=2*(parseFloat(a.Location)-.5);isNaN(k)&&null!=a.Text&&null!=a.Text.Location&&(k=2*(parseFloat(a.Text.Location)-.5));d=mxCell;var c=g(a),k=new mxGeometry(isNaN(k)?0:k,0,0,0),f="11",w="";if(null!=a&&null!=a.Value&&null!=a.Value.m)for(var w=n(a.Value.m),
|
|
|
|
|
m=0;m<a.Value.m.length;m++)if("s"==a.Value.m[m].n)f=.6*parseFloat(a.Value.m[m].v);else if("c"==a.Value.m[m].n){var x=a.Value.m[m].v;null!=x&&("#"!=x.charAt(0)&&(x="#"+x),x=x.substring(0,7));w+="fontColor="+x+";"}a=new d(c,k,"text;html=1;resizable=0;labelBackgroundColor=#ffffff;align=center;verticalAlign=middle;"+(w+";fontSize="+f+";"));a.geometry.relative=!0;a.vertex=!0;b.insert(a);return b}function Da(a,b,d,k){null!=b&&null!=k&&(b=k(b));return null!=b&&b!=d?a+"="+b+";":""}function Bb(a,b,d,k,n){if(null!=
|
|
|
|
|
b&&null!=b.LinkX&&null!=b.LinkY&&(b.LinkX=Math.round(1E3*b.LinkX)/1E3,b.LinkY=Math.round(1E3*b.LinkY)/1E3,a.style+=(k?"":(d?"exitX":"entryX")+"="+b.LinkX+";")+(n?"":(d?"exitY":"entryY")+"="+b.LinkY+";")+(d?"exitPerimeter":"entryPerimeter")+"=0;",b.Inside))return"["+b.LinkX+","+b.LinkY+",0]"}function Ea(a,b,d){try{null!=a.Action&&null!=a.Action.Properties&&(a=a.Action.Properties);var k=new mxCell("",new mxGeometry,"group;dropTarget=0;");k.vertex=!0;var n=Infinity,c=Infinity,f=-Infinity,w=-Infinity,
|
|
|
|
|
m=a.Members,x=[],z;for(z in m){var g=b[z];null!=g?x.push(g):d[z]=k}x.sort(function(a,b){var d=a.zOrder,k=b.zOrder;return null!=d&&null!=k?d-k:0});for(b=0;b<x.length;b++)g=x[b],n=Math.min(n,g.geometry.x),c=Math.min(c,g.geometry.y),f=Math.max(f,g.geometry.x+g.geometry.width),w=Math.max(w,g.geometry.y+g.geometry.height),g.parent=k,k.insert(g,b);k.geometry.x=n;k.geometry.y=c;k.geometry.width=f-n;k.geometry.height=w-c;if(null!=k.children)for(b=0;b<k.children.length;b++){var p=k.children[b].geometry;p.x-=
|
|
|
|
|
n;p.y-=c}a.IsState?k.lucidLayerInfo={name:a.Name,visible:!a.Hidden,locked:a.Restrictions.b&&a.Restrictions.p&&a.Restrictions.c}:a.Hidden&&(k.visible=!1);return k}catch(ve){console.log(ve)}}function Kb(a,b,d){a.getModel().beginUpdate();try{var k=function(b,d){function k(a,b){null==a||a.generated||(a.x-=b.x,a.y-=b.y)}var h=null!=d.Endpoint1.Block?c[d.Endpoint1.Block]:null,w=null!=d.Endpoint2.Block?c[d.Endpoint2.Block]:null,x=pa(b,a,h,w);null==h&&null!=d.Endpoint1&&x.geometry.setTerminalPoint(new mxPoint(Math.round(.6*
|
|
|
|
|
d.Endpoint1.x),Math.round(.6*d.Endpoint1.y)),!0);null==w&&null!=d.Endpoint2&&x.geometry.setTerminalPoint(new mxPoint(Math.round(.6*d.Endpoint2.x),Math.round(.6*d.Endpoint2.y)),!1);var m=f[b.id];if(null!=m){var l=x.geometry,z=m.geometry;k(l.sourcePoint,z);k(l.targetPoint,z);k(l.offset,z);l=l.points;if(null!=l)for(var g=0;g<l.length;g++)k(l[g],z)}n.push(a.addCell(x,m,null,h,w))},n=[],c={},f={},w=[];if(null!=b.Blocks)for(var m in b.Blocks){var x=b.Blocks[m];x.id=m;var z=!1;null!=Hb[x.Class]&&"mxCompositeShape"==
|
|
|
|
|
Hb[x.Class]&&(c[x.id]=Yc(x,n,a),w.push(x),z=!0);z||(c[x.id]=uc(x,a),w.push(x))}else{for(var g=0;g<b.Objects.length;g++)x=b.Objects[g],null!=x.Action&&"mxCompositeShape"==Hb[x.Action.Class]?c[x.id]=Yc(x,n,a):x.IsBlock&&null!=x.Action&&null!=x.Action.Properties&&(c[x.id]=uc(x,a)),w.push(x);for(g=0;g<b.Objects.length;g++)if(x=b.Objects[g],x.IsGroup){var B=Ea(x,c,f);B&&(c[x.id]=B,w.push(x))}}if(null!=b.Groups)try{for(m in b.Groups)if(x=b.Groups[m],x.id=m,B=Ea(x,c,f))c[x.id]=B,w.push(x)}catch(we){console.log(we)}if(null!=
|
|
|
|
|
b.Lines)for(m in b.Lines)x=b.Lines[m],x.id=m,w.push(x);w.sort(function(a,b){a=p(a);b=p(b);var d=null!=a.Properties?a.Properties.ZOrder:a.ZOrder,k=null!=b.Properties?b.Properties.ZOrder:b.ZOrder;return null!=d&&null!=k?d-k:0});for(g=0;g<w.length;g++){var x=w[g],e=c[x.id];if(null!=e){if(null==e.parent)if(e.lucidLayerInfo){var A=new mxCell;a.addCell(A,a.model.root);A.setVisible(e.lucidLayerInfo.visible);e.lucidLayerInfo.locked&&A.setStyle("locked=1;");A.setValue(e.lucidLayerInfo.name);delete e.lucidLayerInfo;
|
|
|
|
|
a.addCell(e,A)}else n.push(a.addCell(e))}else x.IsLine&&null!=x.Action&&null!=x.Action.Properties?k(x,x.Action.Properties):null!=x.StrokeStyle&&k(x,x)}LucidImporter.stylePointsSet.forEach(function(a){a.style="points=["+a.stylePoints.join(",")+"];"+a.style;delete a.stylePoints});d||a.setSelectionCells(n)}finally{a.getModel().endUpdate()}}function qa(){var a=new Graph;a.setExtendParents(!1);a.setExtendParentsOnAdd(!1);a.setConstrainChildren(!1);a.setHtmlLabels(!0);a.getModel().maintainEdgeParent=!1;
|
|
|
|
|
return a}function Ub(a,b,d,k,n,c,f,w){this.nurbsValues=[1,3,0,0,100*(a+d),100-100*(1-(b+k)),0,1,100*(n+f),100-100*(1-(c+w)),0,1]}function Nd(a,b){try{for(var d=[],k=b.BoundingBox.w,n=b.BoundingBox.h,c=0;c<b.Shapes.length;c++){var f=b.Shapes[c],w=f.FillColor,x=f.StrokeColor,m=f.LineWidth,z=f.Points,g=f.Lines,p=['<shape strokewidth="inherit"><foreground>'];p.push("<path>");for(var B=null,e=0;e<g.length;e++){var A=g[e];if(B!=A.p1){var C=z[A.p1].x,D=z[A.p1].y,C=100*C/k,D=100*D/n,C=Math.round(100*C)/100,
|
|
|
|
|
D=Math.round(100*D)/100;p.push('<move x="'+C+'" y="'+D+'"/>')}if(null!=A.n1){var E;var R=z[A.p2].x,y=z[A.p2].y,W=k,l=n,N=new Ub(z[A.p1].x,z[A.p1].y,A.n1.x,A.n1.y,z[A.p2].x,z[A.p2].y,A.n2.x,A.n2.y);if(2<=N.getSize()){N.getX(0);N.getY(0);N.getX(1);N.getY(1);for(var R=Math.round(100*R/W*100)/100,y=Math.round(100*y/l*100)/100,W=[],l=[],ca=[],M=N.getSize(),S=0;S<M-1;S+=3)W.push(new mxPoint(N.getX(S),N.getY(S))),l.push(new mxPoint(N.getX(S+1),N.getY(S+1))),S<M-2?ca.push(new mxPoint(N.getX(S+2),N.getY(S+
|
|
|
|
|
2))):ca.push(new mxPoint(R,y));for(var G="",S=0;S<W.length;S++)G+='<curve x1="'+W[S].x+'" y1="'+W[S].y+'" x2="'+l[S].x+'" y2="'+l[S].y+'" x3="'+ca[S].x+'" y3="'+ca[S].y+'"/>';E=G}else E=void 0;p.push(E)}else C=z[A.p2].x,D=z[A.p2].y,C=100*C/k,D=100*D/n,C=Math.round(100*C)/100,D=Math.round(100*D)/100,p.push('<line x="'+C+'" y="'+D+'"/>');B=A.p2}p.push("</path>");p.push("<fillstroke/>");p.push("</foreground></shape>");d.push({shapeStencil:"stencil("+Graph.compress(p.join(""))+")",FillColor:w,LineColor:x,
|
|
|
|
|
LineWidth:m})}LucidImporter.stencilsMap[a]={text:b.Text,w:k,h:n,stencils:d}}catch(ld){console.log("Stencil parsing error:",ld)}}function wb(a,b,d,k,n,c,f,w){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;f.insert(a);c=[a];d=d.clone();w.insertEdge(d,!1);a.insertEdge(d,!0);c.push(d);k.push(n.addCell(d,null,null,null,null))}function ta(a,b,d,k,n,c,f,w,x){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;x.insert(a);d=new mxCell("",
|
|
|
|
|
new mxGeometry(d,k,0,0),"strokeColor=none;fillColor=none;");d.vertex=!0;x.insert(d);w=[d];n=n.clone();a.insertEdge(n,!0);d.insertEdge(n,!1);w.push(n);c.push(f.addCell(n,null,null,null,null))}function fa(a,b,d,k,n,f){k.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";k.style+=c(k.style,n,f,k);b=g(n);k.vertex=!0;a=new mxCell(b,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+a+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");
|
|
|
|
|
a.style+=c(a.style,n,f,a,y);a.geometry.relative=!0;a.geometry.offset=new mxPoint(5,-12);a.vertex=!0;k.insert(a)}function ka(a,b,d,k,n,f,w,x){n="transparent"!=a?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";f.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";f.style+=c(f.style,w,x,f);f.value=g(w);f.vertex=!0;a=new mxCell(null,new mxGeometry(.5,0,.7*k*b,.7*k*d),n+a+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");
|
|
|
|
|
a.geometry.relative=!0;a.geometry.offset=new mxPoint(-b*k*.35,10+(1-d)*k*.35);a.vertex=!0;a.style+=c(a.style,w,x,a,y);f.insert(a)}function tc(a,b){return null==a||null==b||!a.includes(";"+b+"=")&&a.substring(0,b.length+1)!=b+"="?!1:!0}function Yc(b,n,f){var e=p(b),h=e.Properties,ja=h.BoundingBox,t=Math.round(.6*ja.w),r=Math.round(.6*ja.h),pa=Math.round(.6*ja.x+Ib),na=Math.round(.6*ja.y+Jb);null==b.Class||"GCPInputDatabase"!==b.Class&&"GCPInputRecord"!==b.Class&&"GCPInputPayment"!==b.Class&&"GCPInputGateway"!==
|
|
|
|
|
b.Class&&"GCPInputLocalCompute"!==b.Class&&"GCPInputBeacon"!==b.Class&&"GCPInputStorage"!==b.Class&&"GCPInputList"!==b.Class&&"GCPInputStream"!==b.Class&&"GCPInputMobileDevices"!==b.Class&&"GCPInputCircuitBoard"!==b.Class&&"GCPInputLive"!==b.Class&&"GCPInputUsers"!==b.Class&&"GCPInputLaptop"!==b.Class&&"GCPInputApplication"!==b.Class&&"GCPInputLightbulb"!==b.Class&&"GCPInputGame"!==b.Class&&"GCPInputDesktop"!==b.Class&&"GCPInputDesktopAndMobile"!==b.Class&&"GCPInputWebcam"!==b.Class&&"GCPInputSpeaker"!==
|
|
|
|
|
b.Class&&"GCPInputRetail"!==b.Class&&"GCPInputReport"!==b.Class&&"GCPInputPhone"!==b.Class&&"GCPInputBlank"!==b.Class||(r+=20);v=new mxCell("",new mxGeometry(pa,na,t,r),"html=1;whiteSpace=wrap;");v.vertex=!0;v.zOrder=h.ZOrder;var Bb=null!=b.Class?b.Class:null!=e?e.Class:null;switch(Bb){case "BraceNoteBlock":case "UI2BraceNoteBlock":var uc=!1;null!=h.BraceDirection&&"Right"==h.BraceDirection&&(uc=!0);var Ta=null,qa=null;uc?(Ta=new mxCell("",new mxGeometry(t-.125*r,0,.125*r,r),"shape=curlyBracket;rounded=1;"),
|
|
|
|
|
qa=new mxCell("",new mxGeometry(0,0,t-.125*r,r),"strokeColor=none;fillColor=none;")):(Ta=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),qa=new mxCell("",new mxGeometry(.125*r,0,t-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=c(v.style,h,e,v);Ta.vertex=!0;v.insert(Ta);Ta.style+=c(Ta.style,h,e,Ta);qa.vertex=!0;qa.value=g(h);v.insert(qa);qa.style+=c(qa.style,h,e,qa,y);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var Ea=
|
|
|
|
|
"MainText",Kb=null,eb="HeaderFill_",Ub="BodyFill_",Wc=25,Hb=25,sc=0;if(null!=h.Lanes)sc=h.Lanes.length;else if(null!=h.PrimaryLane){for(var Tb=function(a){if(a)32>a?a=32:208<a&&(a=208);else return 0;return.6*a},sc=h.PrimaryLane.length,l=r=t=0;l<sc;l++)t+=h.PrimaryLane[l];for(l=0;l<h.SecondaryLane.length;l++)r+=h.SecondaryLane[l];Wc=Tb(h.PrimaryPoolTitleHeight);Hb=Tb(h.PrimaryLaneTitleHeight);t*=.6;r=.6*r+Wc+Hb;v.geometry.width=t;v.geometry.height=r;Ea="poolPrimaryTitleKey";eb="PrimaryLaneHeaderFill_";
|
|
|
|
|
Ub="CellFill_0,";Kb=h.PrimaryLaneTextAreaIds;if(null==Kb)for(Kb=[],l=0;l<sc;l++)Kb.push("Primary_"+l)}if(0==h.IsPrimaryLaneVertical){h.Rotation=-1.5707963267948966;var tc=v.geometry.x,Yc=v.geometry.y}var kd=0!=h.Rotation,Ld=0<Bb.indexOf("Pool"),md=0==Bb.indexOf("BPMN"),ld=null!=h[Ea];v.style=(Ld?"swimlane;startSize="+Wc+";":"fillColor=none;strokeColor=none;pointerEvents=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(kd?"horizontalStack=0;":
|
|
|
|
|
"");v.style+=c(v.style,h,e,v);ld&&(v.value=g(h[Ea]),v.style+=(y?"":a(h[Ea])+d(h[Ea])+k(h[Ea])+w(h[Ea],v)+x(h[Ea])+z(h[Ea])+B(h[Ea])+C(h[Ea]))+A(h[Ea])+D(h[Ea]));for(var Kd=0,Ab=[],nd="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;startSize="+Hb+";dropTarget=0;rounded=0;"+(kd?"horizontal=0;":"")+(md?"swimlaneLine=0;fillColor=none;":""),U=h.Rotation=0;U<sc;U++){if(null==Kb)var Xc=parseFloat(h.Lanes[U].p),l=parseInt(h.Lanes[U].tid)||U,Wa="Lane_"+l;else Xc=.6*h.PrimaryLane[U]/
|
|
|
|
|
t,l=U,Wa=Kb[U];var Od=t*Kd,Zc=Ld?Wc:0;Ab.push(new mxCell("",kd?new mxGeometry(Zc,Od,r-Zc,t*Xc):new mxGeometry(Od,Zc,t*Xc,r-Zc),nd));Ab[U].vertex=!0;v.insert(Ab[U]);Ab[U].value=g(h[Wa]);Ab[U].style+=c(Ab[U].style,h,e,Ab[U],y)+(y?"":a(h[Wa])+d(h[Wa])+k(h[Wa])+w(h[Wa],Ab[U])+x(h[Wa])+z(h[Wa])+B(h[Wa])+C(h[Wa]))+A(h[Wa])+D(h[Wa])+G(h[eb+l])+N(h[Ub+l]);Kd+=Xc}null!=tc&&(v.geometry.x=tc,v.geometry.y=Yc);break;case "UMLMultidimensionalSwimlane":var Wb=0,Xb=0,pd=null,qd=null;if(null!=h.Rows&&null!=h.Columns)var Wb=
|
|
|
|
|
h.Rows.length,Xb=h.Columns.length,vc=.6*h.TitleHeight||25,wc=.6*h.TitleWidth||25;else if(null!=h.PrimaryLane&&null!=h.SecondaryLane){Wb=h.SecondaryLane.length;Xb=h.PrimaryLane.length;wc=.6*h.SecondaryLaneTitleHeight||25;vc=.6*h.PrimaryLaneTitleHeight||25;for(l=r=t=0;l<Wb;l++)r+=h.SecondaryLane[l];for(l=0;l<Xb;l++)t+=h.PrimaryLane[l];t=.6*t+wc;r=.6*r+vc;v.geometry.width=t;v.geometry.height=r;pd=h.SecondaryLaneTextAreaIds;qd=h.PrimaryLaneTextAreaIds}v.style="group;";var rd=new mxCell("",new mxGeometry(0,
|
|
|
|
|
vc,t,r-vc),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");rd.vertex=!0;var sd=new mxCell("",new mxGeometry(wc,0,t-wc,r),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");sd.vertex=!0;v.insert(rd);v.insert(sd);for(var na=0,od="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;startSize="+
|
|
|
|
|
wc+";",U=0;U<Wb;U++){if(null==pd)var td=.6*parseInt(h.Rows[U].height),l=parseInt(h.Rows[U].id)||U,Xa="Row_"+l;else td=.6*h.SecondaryLane[U],Xa=pd[U];var Lb=new mxCell("",new mxGeometry(0,na,t,td),od),na=na+td;Lb.vertex=!0;rd.insert(Lb);Lb.value=g(h[Xa]);Lb.style+=c(Lb.style,h,e,Lb,y)+(y?"":a(h[Xa])+d(h[Xa])+k(h[Xa])+w(h[Xa],Lb)+x(h[Xa])+z(h[Xa])+B(h[Xa])+C(h[Xa]))+A(h[Xa])+D(h[Xa])}for(var ye="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;startSize="+vc+";",
|
|
|
|
|
U=pa=0;U<Xb;U++){if(null==qd)var gc=.6*parseInt(h.Columns[U].width),l=parseInt(h.Columns[U].id)||U,Ya="Column_"+l;else gc=.6*h.PrimaryLane[U],Ya=qd[U];var Mb=new mxCell("",new mxGeometry(pa,0,gc,r),ye),pa=pa+gc;Mb.vertex=!0;sd.insert(Mb);Mb.value=g(h[Ya]);Mb.style+=c(Mb.style,h,e,Mb,y)+(y?"":a(h[Ya])+d(h[Ya])+k(h[Ya])+w(h[Ya],Mb)+x(h[Ya])+z(h[Ya])+B(h[Ya])+C(h[Ya]))+A(h[Ya])+D(h[Ya])}break;case "AndroidDevice":if(null!=h.AndroidDeviceName){v.style="fillColor=#000000;strokeColor=#000000;";var Nb=null,
|
|
|
|
|
xc=null,yc=null;if("Tablet"==h.AndroidDeviceName||"Mini Tablet"==h.AndroidDeviceName||"custom"==h.AndroidDeviceName&&"Tablet"==h.CustomDeviceType)v.style+="shape=mxgraph.android.tab2;",Nb=new mxCell("",new mxGeometry(.112*t,.077*r,.77*t,.85*r),""),h.KeyboardShown&&(xc=new mxCell("",new mxGeometry(.112*t,.727*r,.77*t,.2*r),"shape=mxgraph.android.keyboard;")),h.FullScreen||(yc=new mxCell("",new mxGeometry(.112*t,.077*r,.77*t,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+
|
|
|
|
|
.015*r+";"));else if("Large Phone"==h.AndroidDeviceName||"Phone"==h.AndroidDeviceName||"custom"==h.AndroidDeviceName&&"Phone"==h.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",Nb=new mxCell("",new mxGeometry(.04*t,.092*r,.92*t,.816*r),""),h.KeyboardShown&&(xc=new mxCell("",new mxGeometry(.04*t,.708*r,.92*t,.2*r),"shape=mxgraph.android.keyboard;")),h.FullScreen||(yc=new mxCell("",new mxGeometry(.04*t,.092*r,.92*t,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+
|
|
|
|
|
.015*r+";"));Nb.vertex=!0;v.insert(Nb);"Dark"==h.Scheme?Nb.style+="fillColor=#111111;":"Light"==h.Scheme&&(Nb.style+="fillColor=#ffffff;");null!=xc&&(xc.vertex=!0,v.insert(xc));null!=yc&&(yc.vertex=!0,v.insert(yc))}v.style+=c(v.style,h,e,v);break;case "AndroidAlertDialog":var fb=new mxCell("",new mxGeometry(0,0,t,30),"strokeColor=none;fillColor=none;spacingLeft=9;");fb.vertex=!0;v.insert(fb);var ia=new mxCell("",new mxGeometry(0,25,t,10),"shape=line;strokeColor=#33B5E5;");ia.vertex=!0;v.insert(ia);
|
|
|
|
|
var zc=new mxCell("",new mxGeometry(0,30,t,r-30),"strokeColor=none;fillColor=none;verticalAlign=top;");zc.vertex=!0;v.insert(zc);var va=new mxCell("",new mxGeometry(0,r-25,.5*t,25),"fillColor=none;");va.vertex=!0;v.insert(va);var wa=new mxCell("",new mxGeometry(.5*t,r-25,.5*t,25),"fillColor=none;");wa.vertex=!0;v.insert(wa);fb.value=g(h.DialogTitle);fb.style+=m(h.DialogTitle,y);zc.value=g(h.DialogText);zc.style+=m(h.DialogText,y);va.value=g(h.Button_0);va.style+=m(h.Button_0,y);wa.value=g(h.Button_1);
|
|
|
|
|
wa.style+=m(h.Button_1,y);"Dark"==h.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",va.style+="strokeColor=#353535;",wa.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",va.style+="strokeColor=#E2E2E2;",wa.style+="strokeColor=#E2E2E2;");v.style+=c(v.style,h,e,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":fb=new mxCell("",new mxGeometry(0,0,t,30),"strokeColor=none;fillColor=none;spacingLeft=9;");fb.vertex=!0;v.insert(fb);fb.value=
|
|
|
|
|
g(h.DialogTitle);fb.style+=m(h.DialogTitle,y);ia=new mxCell("",new mxGeometry(0,25,t,10),"shape=line;strokeColor=#33B5E5;");ia.vertex=!0;v.insert(ia);va=new mxCell("",new mxGeometry(0,r-25,.5*t,25),"fillColor=none;");va.vertex=!0;v.insert(va);va.value=g(h.Button_0);va.style+=m(h.Button_0,y);wa=new mxCell("",new mxGeometry(.5*t,r-25,.5*t,25),"fillColor=none;");wa.vertex=!0;v.insert(wa);wa.value=g(h.Button_1);wa.style+=m(h.Button_1,y);var hc=new mxCell("",new mxGeometry(.5*t-4,41,8,4),"shape=triangle;direction=north;");
|
|
|
|
|
hc.vertex=!0;v.insert(hc);var ic=new mxCell("",new mxGeometry(.25*t-4,41,8,4),"shape=triangle;direction=north;");ic.vertex=!0;v.insert(ic);var jc=new mxCell("",new mxGeometry(.75*t-4,41,8,4),"shape=triangle;direction=north;");jc.vertex=!0;v.insert(jc);var Ac=new mxCell("",new mxGeometry(.375*t,50,.2*t,15),"strokeColor=none;fillColor=none;");Ac.vertex=!0;v.insert(Ac);Ac.value=g(h.Label_1);Ac.style+=m(h.Label_1,y);var Bc=new mxCell("",new mxGeometry(.125*t,50,.2*t,15),"strokeColor=none;fillColor=none;");
|
|
|
|
|
Bc.vertex=!0;v.insert(Bc);Bc.value=g(h.Label_0);Bc.style+=m(h.Label_0,y);var kc=null;"AndroidDateDialog"==b.Class&&(kc=new mxCell("",new mxGeometry(.625*t,50,.2*t,15),"strokeColor=none;fillColor=none;"),kc.vertex=!0,v.insert(kc),kc.value=g(h.Label_2),kc.style+=m(h.Label_2,y));var Ja=new mxCell("",new mxGeometry(.43*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");Ja.vertex=!0;v.insert(Ja);var Ka=new mxCell("",new mxGeometry(.18*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");Ka.vertex=!0;v.insert(Ka);
|
|
|
|
|
var Pd=new mxCell("",new mxGeometry(.68*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");Pd.vertex=!0;v.insert(Pd);var Cc=new mxCell("",new mxGeometry(.375*t,65,.2*t,15),"strokeColor=none;fillColor=none;");Cc.vertex=!0;v.insert(Cc);Cc.value=g(h.Label_4);Cc.style+=m(h.Label_4,y);var lc=null;"AndroidTimeDialog"==b.Class&&(lc=new mxCell("",new mxGeometry(.3*t,65,.1*t,15),"strokeColor=none;fillColor=none;"),lc.vertex=!0,v.insert(lc),lc.value=g(h.Label_Colon),lc.style+=m(h.Label_Colon,y));var Dc=new mxCell("",
|
|
|
|
|
new mxGeometry(.125*t,65,.2*t,15),"strokeColor=none;fillColor=none;");Dc.vertex=!0;v.insert(Dc);Dc.value=g(h.Label_3);Dc.style+=m(h.Label_3,y);var Ec=new mxCell("",new mxGeometry(.625*t,65,.2*t,15),"strokeColor=none;fillColor=none;");Ec.vertex=!0;v.insert(Ec);Ec.value=g(h.Label_5);Ec.style+=m(h.Label_5,y);var Qd=new mxCell("",new mxGeometry(.43*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");Qd.vertex=!0;v.insert(Qd);var Rd=new mxCell("",new mxGeometry(.18*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");
|
|
|
|
|
Rd.vertex=!0;v.insert(Rd);var Sd=new mxCell("",new mxGeometry(.68*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");Sd.vertex=!0;v.insert(Sd);var Fc=new mxCell("",new mxGeometry(.375*t,80,.2*t,15),"strokeColor=none;fillColor=none;");Fc.vertex=!0;v.insert(Fc);Fc.value=g(h.Label_7);Fc.style+=m(h.Label_7,y);var Gc=new mxCell("",new mxGeometry(.125*t,80,.2*t,15),"strokeColor=none;fillColor=none;");Gc.vertex=!0;v.insert(Gc);Gc.value=g(h.Label_6);Gc.style+=m(h.Label_6,y);var Hc=new mxCell("",new mxGeometry(.625*
|
|
|
|
|
t,80,.2*t,15),"strokeColor=none;fillColor=none;");Hc.vertex=!0;v.insert(Hc);Hc.value=g(h.Label_8);Hc.style+=m(h.Label_8,y);var mc=new mxCell("",new mxGeometry(.5*t-4,99,8,4),"shape=triangle;direction=south;");mc.vertex=!0;v.insert(mc);var nc=new mxCell("",new mxGeometry(.25*t-4,99,8,4),"shape=triangle;direction=south;");nc.vertex=!0;v.insert(nc);var oc=new mxCell("",new mxGeometry(.75*t-4,99,8,4),"shape=triangle;direction=south;");oc.vertex=!0;v.insert(oc);"Dark"==h.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",
|
|
|
|
|
va.style+="strokeColor=#353535;",wa.style+="strokeColor=#353535;",hc.style+="strokeColor=none;fillColor=#7E7E7E;",ic.style+="strokeColor=none;fillColor=#7E7E7E;",jc.style+="strokeColor=none;fillColor=#7E7E7E;",mc.style+="strokeColor=none;fillColor=#7E7E7E;",nc.style+="strokeColor=none;fillColor=#7E7E7E;",oc.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",va.style+="strokeColor=#E2E2E2;",wa.style+="strokeColor=#E2E2E2;",hc.style+="strokeColor=none;fillColor=#939393;",
|
|
|
|
|
ic.style+="strokeColor=none;fillColor=#939393;",jc.style+="strokeColor=none;fillColor=#939393;",mc.style+="strokeColor=none;fillColor=#939393;",nc.style+="strokeColor=none;fillColor=#939393;",oc.style+="strokeColor=none;fillColor=#939393;");v.style+=c(v.style,h,e,v);break;case "AndroidListItems":var Fa=r,Cb=0;if(h.ShowHeader){var Cb=8,Ic=new mxCell("",new mxGeometry(0,0,t,Cb),"strokeColor=none;fillColor=none;");Ic.vertex=!0;v.insert(Ic);Ic.value=g(h.Header);Ic.style+=m(h.Header,y);var Fa=Fa-Cb,Td=
|
|
|
|
|
new mxCell("",new mxGeometry(0,Cb-2,t,4),"shape=line;strokeColor=#999999;");Td.vertex=!0;v.insert(Td)}var gb=parseInt(h.Items);0<gb&&(Fa/=gb);for(var I=[],ia=[],l=0;l<gb;l++)I[l]=new mxCell("",new mxGeometry(0,Cb+l*Fa,t,Fa),"strokeColor=none;fillColor=none;"),I[l].vertex=!0,v.insert(I[l]),I[l].value=g(h["Item_"+l]),I[l].style+=m(h["Item_"+l],y),0<l&&(ia[l]=new mxCell("",new mxGeometry(0,Cb+l*Fa-2,t,4),"shape=line;"),ia[l].vertex=!0,v.insert(ia[l]),ia[l].style="Dark"==h.Scheme?ia[l].style+"strokeColor=#ffffff;":
|
|
|
|
|
ia[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==h.Scheme?v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=c(v.style,h,e,v);break;case "AndroidTabs":var hb=parseInt(h.Tabs),Pa=t;0<hb&&(Pa/=hb);for(var ga=[],ia=[],l=0;l<hb;l++)ga[l]=new mxCell("",new mxGeometry(l*Pa,0,Pa,r),"strokeColor=none;fillColor=none;"),ga[l].vertex=!0,v.insert(ga[l]),ga[l].value=g(h["Tab_"+l]),ga[l].style+=m(h["Tab_"+l],y),0<l&&(ia[l]=new mxCell("",new mxGeometry(l*Pa-2,
|
|
|
|
|
.2*r,4,.6*r),"shape=line;direction=north;"),ia[l].vertex=!0,v.insert(ia[l]),ia[l].style="Dark"==h.Scheme?ia[l].style+"strokeColor=#484848;":ia[l].style+"strokeColor=#CCCCCC;");var Ud=new mxCell("",new mxGeometry(h.Selected*Pa+2,r-3,Pa-4,3),"strokeColor=none;fillColor=#33B5E5;");Ud.vertex=!0;v.insert(Ud);v.style="Dark"==h.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=c(v.style,h,e,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(pa),
|
|
|
|
|
Math.round(na+.25*r),Math.round(t),Math.round(.5*r)),"html=1;whiteSpace=wrap;");v.vertex=!0;var Jc=new mxCell("",new mxGeometry(0,0,t*h.BarPosition,Math.round(.5*r)),"strokeColor=none;fillColor=#33B5E5;");Jc.vertex=!0;v.insert(Jc);v.style="Dark"==h.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=c(v.style,h,e,v);break;case "AndroidImageBlock":v.style="Dark"==h.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+=c(v.style,h,e,v);break;case "AndroidTextBlock":v.style="Dark"==h.Scheme?h.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":h.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=g(h.Label);v.style+=m(h.Label,y);v.style+=c(v.style,h,e,v,y);break;case "AndroidActionBar":v.style+="strokeColor=none;";
|
|
|
|
|
"square";break;case "heart":b+="disc";break;default:b+="decimal"}b+='">'}null!=d&&(b+='<li style="text-align:'+(a.a?a.a.v:"left")+">",E.push("li"),b+='<span style="',E.push("span"));k=d="";if(!y){var n=a.a?a.a.v:"center";"center"==n?(d="margin-left: -100%;",k="margin-right: -100%;"):"right"==n&&(d="margin-left: -100%;");b+="text-align: "+n+";"}a.il&&(d="margin-left: "+Math.round(.6*a.il.v-(y?21:0))+"px;");a.ir&&(k="margin-right: "+Math.round(.6*a.ir.v)+"px;");a.mt&&(b+="margin-top: "+Math.round(.6*
|
|
|
|
|
a.mt.v)+"px;");a.mb&&(b+="margin-bottom: "+Math.round(.6*a.mb.v)+"px;");return b+(d+k+'">')}function k(a){if(0==Object.keys(a).length)return"";var b="",d=0;if(a.lk){var k=a.lk;null!=k.v&&0<k.v.length&&"ext"==k.v[0].tp&&(b+='<a href="'+k.v[0].url+'">',C.push("a"),d++)}b+='<span style="';C.push("span");d++;a.s&&(b+="font-size:"+Math.floor(.6*a.s.v)+"px;");a.c&&(k=a.c.v,null!=k&&("#"!=k.charAt(0)&&(k="#"+k),k=k.substring(0,7),b+="color:"+k+";"));if(a.b&&a.b.v||a.fc&&a.fc.v&&0==a.fc.v.indexOf("Bold"))b+=
|
|
|
|
|
"font-weight: bold;";a.i&&a.i.v&&(b+="font-style: italic;");a.u&&a.u.v&&(b+="text-decoration: underline;");b+='">';D.push(d);return b}function c(a){var b="";do{var d=E.pop();if(!a&&y&&("ul"==d||"ol"==d)){E.push(d);break}b+="</"+d+">"}while(0<E.length);return b}function n(a,b,d,k){a=a?a.substring(b,d):"";y&&(a=a.trim());a=a.replace(/</g,"<").replace(/>/g,">");do for(b=D.pop(),d=0;d<b;d++){var n=C.pop();a+="</"+n+">"}while(k&&0<C.length);return a}var f={a:!0,il:!0,ir:!0,mt:!0,mb:!0,p:!0,t:!0,
|
|
|
|
|
l:!0},w={lk:!0,s:!0,c:!0,b:!0,fc:!0,i:!0,u:!0};b.sort(function(a,b){return a.s-b.s});var m=b.filter(function(a){return w[a.n]}),x=b.filter(function(a){return f[a.n]}),z="",g=m.slice();g.sort(function(a,b){return a.e-b.e});for(var p=0,Ta=0,B=0,e={},A={},C=[],D=[],E=[],R=!1,y=!1,l,eb=0,W=0,N=a.length,ca=!0;B<x.length||ca;){ca=!1;if(B<x.length){var M=x[B],S=x[B].s;R&&(A={},z+=n(a,N,eb,!0),eb=N,z+=c());for(;null!=M&&M.s==S;)A[M.n]=M,M=x[++B];N=null!=M?M.s:a.length;z+=d(A);R&&(z+=k(e));R=!0}for(;p>=Ta&&
|
|
|
|
|
(p<m.length||Ta<g.length);)if(M=m[p],S=g[Ta],M&&S&&M.s<S.e){if(M.s>N)break;eb=M.s;for(0<eb-W&&(z+=n(a,W,eb));null!=M&&M.s==eb;)e[M.n]=M,M=m[++p];z+=k(e)}else if(S){if(S.e>N)break;W=S.e;do delete e[S.n],S=g[++Ta];while(null!=S&&S.e==W);z+=n(a,eb,W);eb=W}else break}z+=n(null,null,null,!0);R&&(z+=c(!0));return z}function g(a){y=!1;var b=null!=a.Text?a.Text:null!=a.Value?a.Value:a.Lane_0;null==b&&null!=a.State?null!=a.State.t&&(b=a.State):null==b&&null!=a.Note?null!=a.Note.t&&(b=a.Note):null==b&&null!=
|
|
|
|
|
a.Title?null!=a.Title.t&&(b=a.Title):null!=a.t&&(b=a);null==b&&null!=a.TextAreas?null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.t&&(b=a.TextAreas.Text.Value):null==b&&null!=a.t0&&null!=a.t0.t&&(b=a.t0);if(null!=b){if(null!=b.t){a=b.t;a=a.replace(/\u2028/g,"\n");b=b.m;try{for(var d=0;d<b.length;d++)if(0<b[d].s||null!=b[d].e&&b[d].e<a.length){y=!0;break}if(y)return f(a,b)}catch(Sb){console.log(Sb)}a=a.replace(/</g,"<");return a=a.replace(/>/g,">")}if(null!=
|
|
|
|
|
b.Value&&null!=b.Value.t)return b.Value.t=b.Value.t.replace(/</g,"<"),b.Value.t=b.Value.t.replace(/>/g,">"),b.Value.t}return""}function p(a){return null!=a.Action?a.Action:a}function e(a){if(null!=a.Text){if(null!=a.Text.m)return a.Text.m}else if(null!=a.TextAreas){if(null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.m)return a.TextAreas.Text.Value.m}else{if(null!=a.m)return a.m;if(null!=a.Title&&null!=a.Title.m)return a.Title.m}return null}function m(b,n){return"whiteSpace=wrap;"+
|
|
|
|
|
(n?"html=1;":a(b)+d(b)+k(b)+w(b)+x(b)+z(b)+B(b)+C(b))+A(b)+D(b)}function c(a,d,k,n,c){var h="";null!=a&&""!=a&&";"!=a.charAt(a.length-1)&&(h=";");return h+="whiteSpace=wrap;"+(c?tc(a,"html")?"":"html=1;":b(mxConstants.STYLE_FONTSIZE,a,d,k,n)+b(mxConstants.STYLE_FONTCOLOR,a,d,k,n)+b(mxConstants.STYLE_FONTSTYLE,a,d,k,n)+b(mxConstants.STYLE_ALIGN,a,d,k,n)+b(mxConstants.STYLE_SPACING_LEFT,a,d,k,n)+b(mxConstants.STYLE_SPACING_RIGHT,a,d,k,n)+b(mxConstants.STYLE_SPACING_TOP,a,d,k,n)+b(mxConstants.STYLE_SPACING_BOTTOM,
|
|
|
|
|
a,d,k,n))+b(mxConstants.STYLE_SPACING,a,d,k,n)+b(mxConstants.STYLE_VERTICAL_ALIGN,a,d,k,n)+b(mxConstants.STYLE_STROKECOLOR,a,d,k,n)+b(mxConstants.STYLE_OPACITY,a,d,k,n)+b(mxConstants.STYLE_ROUNDED,a,d,k,n)+b(mxConstants.STYLE_ROTATION,a,d,k,n)+b(mxConstants.STYLE_FLIPH,a,d,k,n)+b(mxConstants.STYLE_FLIPV,a,d,k,n)+b(mxConstants.STYLE_SHADOW,a,d,k,n)+b(mxConstants.STYLE_FILLCOLOR,a,d,k,n)+b(mxConstants.STYLE_DASHED,a,d,k,n)+b(mxConstants.STYLE_STROKEWIDTH,a,d,k,n)+b(mxConstants.STYLE_IMAGE,a,d,k,n)}
|
|
|
|
|
function b(b,n,c,f,h){if(!tc(n,b))switch(b){case mxConstants.STYLE_FONTSIZE:return a(c);case mxConstants.STYLE_FONTCOLOR:return d(c);case mxConstants.STYLE_FONTSTYLE:return k(c);case mxConstants.STYLE_ALIGN:return w(c);case mxConstants.STYLE_SPACING_LEFT:return x(c);case mxConstants.STYLE_SPACING_RIGHT:return z(c);case mxConstants.STYLE_SPACING_TOP:return B(c);case mxConstants.STYLE_SPACING_BOTTOM:return C(c);case mxConstants.STYLE_SPACING:return A(c);case mxConstants.STYLE_VERTICAL_ALIGN:return D(c);
|
|
|
|
|
case mxConstants.STYLE_STROKECOLOR:return E(c,f);case mxConstants.STYLE_OPACITY:return O(c,f,h);case mxConstants.STYLE_ROUNDED:return b=!h.edge&&!h.style.includes("rounded")&&null!=c.Rounding&&0<c.Rounding?"rounded=1;absoluteArcSize=1;arcSize="+Math.round(.6*c.Rounding)+";":"",b;case mxConstants.STYLE_ROTATION:return R(c,f,h);case mxConstants.STYLE_FLIPH:return b=c.FlipX?"flipH=1;":"",b;case mxConstants.STYLE_FLIPV:return b=c.FlipY?"flipV=1;":"",b;case mxConstants.STYLE_SHADOW:return ca(c);case mxConstants.STYLE_FILLCOLOR:return M(c,
|
|
|
|
|
f);case mxConstants.STYLE_DASHED:return ma(c);case mxConstants.STYLE_STROKEWIDTH:return ea(c);case mxConstants.STYLE_IMAGE:return ec(c,f)}return""}function a(a){a=e(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("s"==d.n&&null!=d.v)return"fontSize="+Math.floor(.6*d.v)+";";b++}return"fontSize=11;"}function d(a){a=e(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("c"==d.n&&null!=d.v)return a=d.v,"#"!=a.charAt(0)&&(a="#"+a),a=a.substring(0,7),mxConstants.STYLE_FONTCOLOR+"="+a+";";b++}return""}
|
|
|
|
|
function k(a){return n(e(a))}function n(a){if(null!=a){var b=0,d=!1;if(null!=a)for(var k=0;!d&&k<a.length;){var n=a[k];"b"==n.n?null!=n.v&&n.v&&(d=!0,b+=1):"fc"==n.n&&"Bold"==n.v&&(d=!0,b+=1);k++}d=!1;if(null!=a)for(k=0;!d&&k<a.length;)n=a[k],"i"==n.n&&null!=n.v&&n.v&&(d=!0,b+=2),k++;d=!1;if(null!=a)for(k=0;!d&&k<a.length;)n=a[k],"u"==n.n&&null!=n.v&&n.v&&(d=!0,b+=4),k++;if(0<b)return"fontStyle="+b+";"}return""}function w(a){a=e(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("a"==d.n&&null!=
|
|
|
|
|
d.v)return"align="+d.v+";";b++}return""}function x(a){var b=e(a);if(null!=b)for(var d=0;d<b.length;){var k=b[d];if(null!=k.v){if("il"==k.n)return"spacingLeft="+.6*k.v+";";w(a)}d++}return""}function z(a){a=e(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("ir"==d.n&&null!=d.v)return"spacingRight="+d.v+";";b++}return""}function B(a){a=e(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("mt"==d.n&&null!=d.v)return"spacingTop="+d.v+";";b++}return""}function C(a){a=e(a);if(null!=a)for(var b=0;b<
|
|
|
|
|
a.length;){var d=a[b];if("mb"==d.n&&null!=d.v)return"spacingBottom="+d.v+";";b++}return""}function A(a){return"number"===typeof a.InsetMargin?"spacing="+Math.max(0,Math.round(.6*parseInt(a.InsetMargin)))+";":""}function D(a){return null!=a.Text_VAlign&&"string"===typeof a.Text_VAlign?"verticalAlign="+a.Text_VAlign+";":null!=a.Title_VAlign&&"string"===typeof a.Title_VAlign?"verticalAlign="+a.Title_VAlign+";":Da(mxConstants.STYLE_VERTICAL_ALIGN,a.TextVAlign,"middle")}function E(a,b){return 0==a.LineWidth?
|
|
|
|
|
mxConstants.STYLE_STROKECOLOR+"=none;":Da(mxConstants.STYLE_STROKECOLOR,W(a.LineColor),"#000000")}function G(a){return null!=a?mxConstants.STYLE_FILLCOLOR+"="+W(a)+";":""}function N(a){return null!=a?"swimlaneFillColor="+W(a)+";":""}function O(a,b,d){b="";if("string"===typeof a.LineColor&&7<a.LineColor.length){var k="0x"+a.LineColor.substring(a.LineColor.length-2,a.LineColor.length);d.style.includes("strokeOpacity")||(b+="strokeOpacity="+Math.round(parseInt(k)/2.55)+";")}"string"===typeof a.FillColor&&
|
|
|
|
|
7<a.FillColor.length&&(a="0x"+a.FillColor.substring(a.FillColor.length-2,a.FillColor.length),d.style.includes("fillOpacity")||(b+="fillOpacity="+Math.round(parseInt(a)/2.55)+";"));return b}function R(a,b,d){var k="";if(null!=a.Rotation){a=mxUtils.toDegree(parseFloat(a.Rotation));var n=!0;0!=a&&("UMLSwimLaneBlockV2"==b.Class||(0<=b.Class.indexOf("Rotated")||-90==a||270==a)&&(0<=b.Class.indexOf("Pool")||0<=b.Class.indexOf("SwimLane")))?(a+=90,d.geometry.rotate90(),n=!1):0<=mxUtils.indexOf(md,b.Class)?
|
|
|
|
|
(a-=90,d.geometry.rotate90()):0<=mxUtils.indexOf(nd,b.Class)&&(a+=180);0!=a&&(k+="rotation="+a+";");n||(k+="horizontal=0;")}return k}function ca(a){return null!=a.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function W(a){(a=a?a.substring(0,7):null)&&"#"!=a.charAt(0)&&"r"!=a.charAt(0).toLowerCase()&&(a="#"+a);return a}function S(a,b){return a&&7<a.length?b+"="+Math.round(parseInt("0x"+a.substr(7))/2.55)+";":""}function M(a,b){if(null!=a.FillColor)if("object"===typeof a.FillColor){if(null!=a.FillColor.cs&&
|
|
|
|
|
1<a.FillColor.cs.length)return Da(mxConstants.STYLE_FILLCOLOR,W(a.FillColor.cs[0].c))+Da(mxConstants.STYLE_GRADIENTCOLOR,W(a.FillColor.cs[1].c))}else return"string"===typeof a.FillColor?Da(mxConstants.STYLE_FILLCOLOR,W(a.FillColor),"#FFFFFF"):Da(mxConstants.STYLE_FILLCOLOR,"none");return""}function ma(a){return"dotted"==a.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==a.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dashdotdot"==a.StrokeStyle?"dashed=1;dashPattern=10 5 1 5 1 5;":"dotdotdot"==a.StrokeStyle?
|
|
|
|
|
"dashed=1;dashPattern=1 2;":"longdash"==a.StrokeStyle?"dashed=1;dashPattern=16 6;":"dashlongdash"==a.StrokeStyle?"dashed=1;dashPattern=10 6 16 6;":"dashed24"==a.StrokeStyle?"dashed=1;dashPattern=3 8;":"dashed32"==a.StrokeStyle?"dashed=1;dashPattern=6 5;":"dashed44"==a.StrokeStyle?"dashed=1;dashPattern=8 8;":null!=a.StrokeStyle&&"dashed"==a.StrokeStyle.substring(0,6)?"dashed=1;":""}function ea(a){return null!=a.LineWidth?Da(mxConstants.STYLE_STROKEWIDTH,Math.round(.6*parseFloat(a.LineWidth)),"1"):
|
|
|
|
|
""}function ec(a,b,d){"ImageSearchBlock2"==b.Class?d=a.URL:"UserImage2Block"==b.Class&&null!=a.ImageFillProps&&null!=a.ImageFillProps.url?d=a.ImageFillProps.url:a.FillColor&&a.FillColor.url&&(d=a.FillColor.url);if(null!=d){if(null!=LucidImporter.imgSrcRepl)for(a=0;a<LucidImporter.imgSrcRepl.length;a++)b=LucidImporter.imgSrcRepl[a],d=d.replace(b.searchVal,b.replVal);return"image="+d+";"}return""}function ja(a,b,d,k){for(var n=b,c=0;null!=k.getAttributeForCell(a,n);)c++,n=b+"_"+c;k.setAttributeForCell(a,
|
|
|
|
|
n,null!=d?d:"")}function fc(a,b,d,k,n,f){var h=p(b);if(null!=h){var w=Hb[h.Class];null!=w?a.style+=w+";":a.edge||(console.log("No mapping found for: "+h.Class),LucidImporter.hasUnknownShapes=!0);w=null!=h.Properties?h.Properties:h;if(null!=w){a.value=f?"":g(w);a.style+=c(a.style,w,h,a,y);a.style.includes("strokeColor")||(a.style+=E(w,h));if(null!=w.Link&&0<w.Link.length&&"ext"==w.Link[0].tp)d.setAttributeForCell(a,"link",w.Link[0].url);else if(null!=w.Text){a:{f=e(w.Text);if(null!=f)for(var x=0;x<
|
|
|
|
|
f.length;x++)if(f[x].n=null!=f[x].v&&0<f[x].v.length&&"ext"==f[x].v[0].tp){f=f[x].v[0].url;break a}f=null}null!=f&&d.setAttributeForCell(a,"link",f)}f=[];var x=d.convertValueToString(a),z=!1;if(null!=x){for(var B=0;match=od.exec(x);){var Sb=match[0],z=!0;if(2<Sb.length){var C=Sb.substring(2,Sb.length-2);"documentName"==C?C="filename":"pageName"==C?C="page":"totalPages"==C?C="pagecount":"page"==C?C="pagenumber":"date:"==C.substring(0,5)?C="date{"+C.substring(5).replace(/MMMM/g,"mmmm").replace(/MM/g,
|
|
|
|
|
"mm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==C.substring(0,16)?C=C.replace(/MMMM/g,"mmmm").replace(/MM/g,"mm").replace(/YYYY/g,"yyyy"):"i18nDate:"==C.substring(0,9)&&(C="date{"+C.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");C="%"+C+"%";f.push(x.substring(B,match.index)+(null!=C?C:Sb));B=match.index+Sb.length}}z&&(f.push(x.substring(B)),d.setAttributeForCell(a,"label",f.join("")),d.setAttributeForCell(a,"placeholders","1"))}for(var A in w)if(w.hasOwnProperty(A)&&
|
|
|
|
|
A.toString().startsWith("ShapeData_"))try{var D=w[A],R=mxUtils.trim(D.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,"");ja(a,R,D.Value,d)}catch(xe){window.console&&console.log("Ignored "+A+":",xe)}w.Title&&w.Text&&"ExtShape"!=h.Class.substr(0,8)&&(h=a.geometry,h=new mxCell(g(w.Title),new mxGeometry(0,h.height,h.width,10),"strokeColor=none;fillColor=none;"),h.vertex=!0,a.insert(h),h.style+=m(w.Title,y));if(a.edge){a.style=null!=w.Rounding&&"diagonal"!=w.Shape?a.style+("rounded=1;arcSize="+
|
|
|
|
|
w.Rounding+";"):a.style+"rounded=0;";if("diagonal"!=w.Shape)if(null!=w.ElbowPoints&&0<w.ElbowPoints.length)for(a.geometry.points=[],h=0;h<w.ElbowPoints.length;h++)a.geometry.points.push(new mxPoint(Math.round(.6*w.ElbowPoints[h].x+Ib),Math.round(.6*w.ElbowPoints[h].y+Jb)));else"elbow"==w.Shape?a.style+="edgeStyle=orthogonalEdgeStyle;":null!=w.Endpoint1.Block&&null!=w.Endpoint2.Block&&(a.style+="edgeStyle=orthogonalEdgeStyle;","curve"==w.Shape&&(a.style+="curved=1;"));if(w.LineJumps||LucidImporter.globalProps.LineJumps)a.style+=
|
|
|
|
|
"jumpStyle=arc;";null!=w.Endpoint1.Style&&(null!=Tb[w.Endpoint1.Style]?a.style+="startArrow="+Tb[w.Endpoint1.Style]+";":(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+w.Endpoint1.Style)));null!=w.Endpoint2.Style&&(null!=Tb[w.Endpoint2.Style]?a.style+="endArrow="+Tb[w.Endpoint2.Style].replace(/startSize/g,"endSize")+";":(LucidImporter.hasUnknownShapes=!0,window.console&&console.log("Unknown endpoint style: "+w.Endpoint2.Style)));A=null!=w.ElbowControlPoints&&
|
|
|
|
|
0<w.ElbowControlPoints.length?w.ElbowControlPoints:null!=w.BezierJoints&&0<w.BezierJoints.length?w.BezierJoints:w.Joints;if(null!=A)for(a.geometry.points=[],h=0;h<A.length;h++)D=A[h].p?A[h].p:A[h],a.geometry.points.push(new mxPoint(Math.round(.6*D.x+Ib),Math.round(.6*D.y+Jb)));A=!1;null!=a.geometry.points&&0!=a.geometry.points.length||null==w.Endpoint1.Block||w.Endpoint1.Block!=w.Endpoint2.Block||null==k||null==n||(A=new mxPoint(Math.round(k.geometry.x+k.geometry.width*w.Endpoint1.LinkX),Math.round(k.geometry.y+
|
|
|
|
|
k.geometry.height*w.Endpoint1.LinkY)),D=new mxPoint(Math.round(n.geometry.x+n.geometry.width*w.Endpoint2.LinkX),Math.round(n.geometry.y+n.geometry.height*w.Endpoint2.LinkY)),Ib=A.x==D.x?Math.abs(A.x-k.geometry.x)<k.geometry.width/2?-20:20:0,Jb=A.y==D.y?Math.abs(A.y-k.geometry.y)<k.geometry.height/2?-20:20:0,h=new mxPoint(A.x+Ib,A.y+Jb),R=new mxPoint(D.x+Ib,D.y+Jb),h.generated=!0,R.generated=!0,a.geometry.points=[h,R],A=A.x==D.x);h=Bb(a,w.Endpoint1,!0,A);null!=k&&null!=h&&(null==k.stylePoints&&(k.stylePoints=
|
|
|
|
|
[]),k.stylePoints.push(h),LucidImporter.stylePointsSet.add(k));R=Bb(a,w.Endpoint2,!1,A);null!=n&&null!=R&&(null==n.stylePoints&&(n.stylePoints=[]),n.stylePoints.push(R),LucidImporter.stylePointsSet.add(n))}}}null!=b.id&&ja(a,"lucidchartObjectId",b.id,d)}function uc(a,b){var d=p(a),k=d.Properties,n=k.BoundingBox;null==a.Class||"AWS"!==a.Class.substring(0,3)&&"Amazon"!==a.Class.substring(0,6)||a.Class.includes("AWS19")||(n.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*n.x+Ib),Math.round(.6*n.y+
|
|
|
|
|
Jb),Math.round(.6*n.w),Math.round(.6*n.h)),"html=1;overflow=block;whiteSpace=wrap;");v.vertex=!0;fc(v,a,b);v.zOrder=k.ZOrder;null!=v&&0<=v.style.indexOf(";grIcon=")&&(n=new mxCell("",new mxGeometry(v.geometry.x,v.geometry.y,v.geometry.width,v.geometry.height),"html=1;overflow=block;whiteSpace=wrap;"),n.vertex=!0,n.style+=c(n.style,k,d,n),v.geometry.x=0,v.geometry.y=0,v.style+="part=1;",n.insert(v),v=n);Md(v,k);return v}function pa(a,b,d,k){var n=new mxCell("",new mxGeometry(0,0,100,100),"html=1;jettySize=18;");
|
|
|
|
|
n.geometry.relative=!0;n.edge=!0;fc(n,a,b,d,k,!0);b=p(a).Properties;d=null!=b?b.TextAreas:a.TextAreas;if(null!=d){for(k=0;null!=d["t"+k];){var c=d["t"+k],n=na(c,n);k++}for(k=0;null!=d["m"+k]||1>k;)c=d["m"+k],null!=c&&(n=na(c,n,a)),k++;null!=d.Text&&(n=na(d.Text,n,a));d=null!=b?b.TextAreas:a.TextAreas;null!=d.Message&&(n=na(d.Message,n,a))}return n}function na(a,b,d){var k=2*(parseFloat(a.Location)-.5);isNaN(k)&&null!=a.Text&&null!=a.Text.Location&&(k=2*(parseFloat(a.Text.Location)-.5));d=mxCell;var c=
|
|
|
|
|
g(a),k=new mxGeometry(isNaN(k)?0:k,0,0,0),f="11",w="";if(null!=a&&null!=a.Value&&null!=a.Value.m)for(var w=n(a.Value.m),m=0;m<a.Value.m.length;m++)if("s"==a.Value.m[m].n)f=.6*parseFloat(a.Value.m[m].v);else if("c"==a.Value.m[m].n){var x=a.Value.m[m].v;null!=x&&("#"!=x.charAt(0)&&(x="#"+x),x=x.substring(0,7));w+="fontColor="+x+";"}a=new d(c,k,"text;html=1;resizable=0;labelBackgroundColor=#ffffff;align=center;verticalAlign=middle;"+(w+";fontSize="+f+";"));a.geometry.relative=!0;a.vertex=!0;b.insert(a);
|
|
|
|
|
return b}function Da(a,b,d,k){null!=b&&null!=k&&(b=k(b));return null!=b&&b!=d?a+"="+b+";":""}function Bb(a,b,d,k,n){if(null!=b&&null!=b.LinkX&&null!=b.LinkY&&(b.LinkX=Math.round(1E3*b.LinkX)/1E3,b.LinkY=Math.round(1E3*b.LinkY)/1E3,a.style+=(k?"":(d?"exitX":"entryX")+"="+b.LinkX+";")+(n?"":(d?"exitY":"entryY")+"="+b.LinkY+";")+(d?"exitPerimeter":"entryPerimeter")+"=0;",b.Inside))return"["+b.LinkX+","+b.LinkY+",0]"}function Ea(a,b,d){try{null!=a.Action&&null!=a.Action.Properties&&(a=a.Action.Properties);
|
|
|
|
|
var k=new mxCell("",new mxGeometry,"group;dropTarget=0;");k.vertex=!0;var n=Infinity,c=Infinity,f=-Infinity,w=-Infinity,m=a.Members,x=[],z;for(z in m){var g=b[z];null!=g?x.push(g):d[z]=k}x.sort(function(a,b){var d=a.zOrder,k=b.zOrder;return null!=d&&null!=k?d-k:0});for(b=0;b<x.length;b++)g=x[b],n=Math.min(n,g.geometry.x),c=Math.min(c,g.geometry.y),f=Math.max(f,g.geometry.x+g.geometry.width),w=Math.max(w,g.geometry.y+g.geometry.height),g.parent=k,k.insert(g,b);k.geometry.x=n;k.geometry.y=c;k.geometry.width=
|
|
|
|
|
f-n;k.geometry.height=w-c;if(null!=k.children)for(b=0;b<k.children.length;b++){var p=k.children[b].geometry;p.x-=n;p.y-=c}a.IsState?k.lucidLayerInfo={name:a.Name,visible:!a.Hidden,locked:a.Restrictions.b&&a.Restrictions.p&&a.Restrictions.c}:a.Hidden&&(k.visible=!1);return k}catch(ve){console.log(ve)}}function Kb(a,b,d){a.getModel().beginUpdate();try{var k=function(b,d){function k(a,b){null==a||a.generated||(a.x-=b.x,a.y-=b.y)}var h=null!=d.Endpoint1.Block?c[d.Endpoint1.Block]:null,w=null!=d.Endpoint2.Block?
|
|
|
|
|
c[d.Endpoint2.Block]:null,x=pa(b,a,h,w);null==h&&null!=d.Endpoint1&&x.geometry.setTerminalPoint(new mxPoint(Math.round(.6*d.Endpoint1.x),Math.round(.6*d.Endpoint1.y)),!0);null==w&&null!=d.Endpoint2&&x.geometry.setTerminalPoint(new mxPoint(Math.round(.6*d.Endpoint2.x),Math.round(.6*d.Endpoint2.y)),!1);var m=f[b.id];if(null!=m){var l=x.geometry,z=m.geometry;k(l.sourcePoint,z);k(l.targetPoint,z);k(l.offset,z);l=l.points;if(null!=l)for(var g=0;g<l.length;g++)k(l[g],z)}n.push(a.addCell(x,m,null,h,w))},
|
|
|
|
|
n=[],c={},f={},w=[];if(null!=b.Blocks)for(var m in b.Blocks){var x=b.Blocks[m];x.id=m;var z=!1;null!=Hb[x.Class]&&"mxCompositeShape"==Hb[x.Class]&&(c[x.id]=Yc(x,n,a),w.push(x),z=!0);z||(c[x.id]=uc(x,a),w.push(x))}else{for(var g=0;g<b.Objects.length;g++)x=b.Objects[g],null!=x.Action&&"mxCompositeShape"==Hb[x.Action.Class]?c[x.id]=Yc(x,n,a):x.IsBlock&&null!=x.Action&&null!=x.Action.Properties&&(c[x.id]=uc(x,a)),w.push(x);for(g=0;g<b.Objects.length;g++)if(x=b.Objects[g],x.IsGroup){var B=Ea(x,c,f);B&&
|
|
|
|
|
(c[x.id]=B,w.push(x))}}if(null!=b.Groups)try{for(m in b.Groups)if(x=b.Groups[m],x.id=m,B=Ea(x,c,f))c[x.id]=B,w.push(x)}catch(we){console.log(we)}if(null!=b.Lines)for(m in b.Lines)x=b.Lines[m],x.id=m,w.push(x);w.sort(function(a,b){a=p(a);b=p(b);var d=null!=a.Properties?a.Properties.ZOrder:a.ZOrder,k=null!=b.Properties?b.Properties.ZOrder:b.ZOrder;return null!=d&&null!=k?d-k:0});for(g=0;g<w.length;g++){var x=w[g],e=c[x.id];if(null!=e){if(null==e.parent)if(e.lucidLayerInfo){var A=new mxCell;a.addCell(A,
|
|
|
|
|
a.model.root);A.setVisible(e.lucidLayerInfo.visible);e.lucidLayerInfo.locked&&A.setStyle("locked=1;");A.setValue(e.lucidLayerInfo.name);delete e.lucidLayerInfo;a.addCell(e,A)}else n.push(a.addCell(e))}else x.IsLine&&null!=x.Action&&null!=x.Action.Properties?k(x,x.Action.Properties):null!=x.StrokeStyle&&k(x,x)}LucidImporter.stylePointsSet.forEach(function(a){a.style="points=["+a.stylePoints.join(",")+"];"+a.style;delete a.stylePoints});d||a.setSelectionCells(n)}finally{a.getModel().endUpdate()}}function qa(){var a=
|
|
|
|
|
new Graph;a.setExtendParents(!1);a.setExtendParentsOnAdd(!1);a.setConstrainChildren(!1);a.setHtmlLabels(!0);a.getModel().maintainEdgeParent=!1;return a}function Ub(a,b,d,k,n,c,f,w){this.nurbsValues=[1,3,0,0,100*(a+d),100-100*(1-(b+k)),0,1,100*(n+f),100-100*(1-(c+w)),0,1]}function Nd(a,b){try{for(var d=[],k=b.BoundingBox.w,n=b.BoundingBox.h,c=0;c<b.Shapes.length;c++){var f=b.Shapes[c],w=f.FillColor,x=f.StrokeColor,m=f.LineWidth,z=f.Points,g=f.Lines,p=['<shape strokewidth="inherit"><foreground>'];p.push("<path>");
|
|
|
|
|
for(var B=null,e=0;e<g.length;e++){var A=g[e];if(B!=A.p1){var C=z[A.p1].x,D=z[A.p1].y,C=100*C/k,D=100*D/n,C=Math.round(100*C)/100,D=Math.round(100*D)/100;p.push('<move x="'+C+'" y="'+D+'"/>')}if(null!=A.n1){var E;var R=z[A.p2].x,y=z[A.p2].y,W=k,l=n,N=new Ub(z[A.p1].x,z[A.p1].y,A.n1.x,A.n1.y,z[A.p2].x,z[A.p2].y,A.n2.x,A.n2.y);if(2<=N.getSize()){N.getX(0);N.getY(0);N.getX(1);N.getY(1);for(var R=Math.round(100*R/W*100)/100,y=Math.round(100*y/l*100)/100,W=[],l=[],ca=[],M=N.getSize(),S=0;S<M-1;S+=3)W.push(new mxPoint(N.getX(S),
|
|
|
|
|
N.getY(S))),l.push(new mxPoint(N.getX(S+1),N.getY(S+1))),S<M-2?ca.push(new mxPoint(N.getX(S+2),N.getY(S+2))):ca.push(new mxPoint(R,y));for(var G="",S=0;S<W.length;S++)G+='<curve x1="'+W[S].x+'" y1="'+W[S].y+'" x2="'+l[S].x+'" y2="'+l[S].y+'" x3="'+ca[S].x+'" y3="'+ca[S].y+'"/>';E=G}else E=void 0;p.push(E)}else C=z[A.p2].x,D=z[A.p2].y,C=100*C/k,D=100*D/n,C=Math.round(100*C)/100,D=Math.round(100*D)/100,p.push('<line x="'+C+'" y="'+D+'"/>');B=A.p2}p.push("</path>");p.push("<fillstroke/>");p.push("</foreground></shape>");
|
|
|
|
|
d.push({shapeStencil:"stencil("+Graph.compress(p.join(""))+")",FillColor:w,LineColor:x,LineWidth:m})}LucidImporter.stencilsMap[a]={text:b.Text,w:k,h:n,stencils:d}}catch(ld){console.log("Stencil parsing error:",ld)}}function wb(a,b,d,k,n,c,f,w){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;f.insert(a);c=[a];d=d.clone();w.insertEdge(d,!1);a.insertEdge(d,!0);c.push(d);k.push(n.addCell(d,null,null,null,null))}function ta(a,b,d,k,n,c,f,w,x){a=new mxCell("",new mxGeometry(a,
|
|
|
|
|
b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;x.insert(a);d=new mxCell("",new mxGeometry(d,k,0,0),"strokeColor=none;fillColor=none;");d.vertex=!0;x.insert(d);w=[d];n=n.clone();a.insertEdge(n,!0);d.insertEdge(n,!1);w.push(n);c.push(f.addCell(n,null,null,null,null))}function fa(a,b,d,k,n,f){k.style="rounded=1;absoluteArcSize=1;fillColor=#ffffff;arcSize=2;strokeColor=#dddddd;";k.style+=c(k.style,n,f,k);b=g(n);k.vertex=!0;a=new mxCell(b,new mxGeometry(0,.5,24,24),"dashed=0;connectable=0;html=1;strokeColor=none;"+
|
|
|
|
|
mxConstants.STYLE_SHAPE+"=mxgraph.gcp2."+a+";part=1;shadow=0;labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=5;");a.style+=c(a.style,n,f,a,y);a.geometry.relative=!0;a.geometry.offset=new mxPoint(5,-12);a.vertex=!0;k.insert(a)}function ka(a,b,d,k,n,f,w,x){n="transparent"!=a?mxConstants.STYLE_SHAPE+"=mxgraph.gcp2.":mxConstants.STYLE_SHAPE+"=";f.style="rounded=1;absoluteArcSize=1;arcSize=2;verticalAlign=bottom;fillColor=#ffffff;strokeColor=#dddddd;whiteSpace=wrap;";
|
|
|
|
|
f.style+=c(f.style,w,x,f);f.value=g(w);f.vertex=!0;a=new mxCell(null,new mxGeometry(.5,0,.7*k*b,.7*k*d),n+a+";part=1;dashed=0;connectable=0;html=1;strokeColor=none;shadow=0;");a.geometry.relative=!0;a.geometry.offset=new mxPoint(-b*k*.35,10+(1-d)*k*.35);a.vertex=!0;a.style+=c(a.style,w,x,a,y);f.insert(a)}function tc(a,b){return null==a||null==b||!a.includes(";"+b+"=")&&a.substring(0,b.length+1)!=b+"="?!1:!0}function Yc(b,n,f){var e=p(b),h=e.Properties,ja=h.BoundingBox,t=Math.round(.6*ja.w),r=Math.round(.6*
|
|
|
|
|
ja.h),pa=Math.round(.6*ja.x+Ib),na=Math.round(.6*ja.y+Jb);null==b.Class||"GCPInputDatabase"!==b.Class&&"GCPInputRecord"!==b.Class&&"GCPInputPayment"!==b.Class&&"GCPInputGateway"!==b.Class&&"GCPInputLocalCompute"!==b.Class&&"GCPInputBeacon"!==b.Class&&"GCPInputStorage"!==b.Class&&"GCPInputList"!==b.Class&&"GCPInputStream"!==b.Class&&"GCPInputMobileDevices"!==b.Class&&"GCPInputCircuitBoard"!==b.Class&&"GCPInputLive"!==b.Class&&"GCPInputUsers"!==b.Class&&"GCPInputLaptop"!==b.Class&&"GCPInputApplication"!==
|
|
|
|
|
b.Class&&"GCPInputLightbulb"!==b.Class&&"GCPInputGame"!==b.Class&&"GCPInputDesktop"!==b.Class&&"GCPInputDesktopAndMobile"!==b.Class&&"GCPInputWebcam"!==b.Class&&"GCPInputSpeaker"!==b.Class&&"GCPInputRetail"!==b.Class&&"GCPInputReport"!==b.Class&&"GCPInputPhone"!==b.Class&&"GCPInputBlank"!==b.Class||(r+=20);v=new mxCell("",new mxGeometry(pa,na,t,r),"html=1;overflow=block;whiteSpace=wrap;");v.vertex=!0;v.zOrder=h.ZOrder;var Bb=null!=b.Class?b.Class:null!=e?e.Class:null;switch(Bb){case "BraceNoteBlock":case "UI2BraceNoteBlock":var uc=
|
|
|
|
|
!1;null!=h.BraceDirection&&"Right"==h.BraceDirection&&(uc=!0);var Ta=null,qa=null;uc?(Ta=new mxCell("",new mxGeometry(t-.125*r,0,.125*r,r),"shape=curlyBracket;rounded=1;"),qa=new mxCell("",new mxGeometry(0,0,t-.125*r,r),"strokeColor=none;fillColor=none;")):(Ta=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),qa=new mxCell("",new mxGeometry(.125*r,0,t-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=c(v.style,h,e,
|
|
|
|
|
v);Ta.vertex=!0;v.insert(Ta);Ta.style+=c(Ta.style,h,e,Ta);qa.vertex=!0;qa.value=g(h);v.insert(qa);qa.style+=c(qa.style,h,e,qa,y);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var Ea="MainText",Kb=null,eb="HeaderFill_",Ub="BodyFill_",Wc=25,Hb=25,sc=0;if(null!=h.Lanes)sc=h.Lanes.length;else if(null!=h.PrimaryLane){for(var Tb=
|
|
|
|
|
function(a){if(a)32>a?a=32:208<a&&(a=208);else return 0;return.6*a},sc=h.PrimaryLane.length,l=r=t=0;l<sc;l++)t+=h.PrimaryLane[l];for(l=0;l<h.SecondaryLane.length;l++)r+=h.SecondaryLane[l];Wc=Tb(h.PrimaryPoolTitleHeight);Hb=Tb(h.PrimaryLaneTitleHeight);t*=.6;r=.6*r+Wc+Hb;v.geometry.width=t;v.geometry.height=r;Ea="poolPrimaryTitleKey";eb="PrimaryLaneHeaderFill_";Ub="CellFill_0,";Kb=h.PrimaryLaneTextAreaIds;if(null==Kb)for(Kb=[],l=0;l<sc;l++)Kb.push("Primary_"+l)}if(0==h.IsPrimaryLaneVertical){h.Rotation=
|
|
|
|
|
-1.5707963267948966;var tc=v.geometry.x,Yc=v.geometry.y}var kd=0!=h.Rotation,Ld=0<Bb.indexOf("Pool"),md=0==Bb.indexOf("BPMN"),ld=null!=h[Ea];v.style=(Ld?"swimlane;startSize="+Wc+";":"fillColor=none;strokeColor=none;pointerEvents=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(kd?"horizontalStack=0;":"");v.style+=c(v.style,h,e,v);ld&&(v.value=g(h[Ea]),v.style+=(y?"":a(h[Ea])+d(h[Ea])+k(h[Ea])+w(h[Ea],v)+x(h[Ea])+z(h[Ea])+B(h[Ea])+C(h[Ea]))+
|
|
|
|
|
A(h[Ea])+D(h[Ea]));for(var Kd=0,Ab=[],nd="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;startSize="+Hb+";dropTarget=0;rounded=0;"+(kd?"horizontal=0;":"")+(md?"swimlaneLine=0;fillColor=none;":""),U=h.Rotation=0;U<sc;U++){if(null==Kb)var Xc=parseFloat(h.Lanes[U].p),l=parseInt(h.Lanes[U].tid)||U,Wa="Lane_"+l;else Xc=.6*h.PrimaryLane[U]/t,l=U,Wa=Kb[U];var Od=t*Kd,Zc=Ld?Wc:0;Ab.push(new mxCell("",kd?new mxGeometry(Zc,Od,r-Zc,t*Xc):new mxGeometry(Od,Zc,t*Xc,r-Zc),nd));Ab[U].vertex=
|
|
|
|
|
!0;v.insert(Ab[U]);Ab[U].value=g(h[Wa]);Ab[U].style+=c(Ab[U].style,h,e,Ab[U],y)+(y?"":a(h[Wa])+d(h[Wa])+k(h[Wa])+w(h[Wa],Ab[U])+x(h[Wa])+z(h[Wa])+B(h[Wa])+C(h[Wa]))+A(h[Wa])+D(h[Wa])+G(h[eb+l])+N(h[Ub+l]);Kd+=Xc}null!=tc&&(v.geometry.x=tc,v.geometry.y=Yc);break;case "UMLMultidimensionalSwimlane":var Wb=0,Xb=0,pd=null,qd=null;if(null!=h.Rows&&null!=h.Columns)var Wb=h.Rows.length,Xb=h.Columns.length,vc=.6*h.TitleHeight||25,wc=.6*h.TitleWidth||25;else if(null!=h.PrimaryLane&&null!=h.SecondaryLane){Wb=
|
|
|
|
|
h.SecondaryLane.length;Xb=h.PrimaryLane.length;wc=.6*h.SecondaryLaneTitleHeight||25;vc=.6*h.PrimaryLaneTitleHeight||25;for(l=r=t=0;l<Wb;l++)r+=h.SecondaryLane[l];for(l=0;l<Xb;l++)t+=h.PrimaryLane[l];t=.6*t+wc;r=.6*r+vc;v.geometry.width=t;v.geometry.height=r;pd=h.SecondaryLaneTextAreaIds;qd=h.PrimaryLaneTextAreaIds}v.style="group;";var rd=new mxCell("",new mxGeometry(0,vc,t,r-vc),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");
|
|
|
|
|
rd.vertex=!0;var sd=new mxCell("",new mxGeometry(wc,0,t-wc,r),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");sd.vertex=!0;v.insert(rd);v.insert(sd);for(var na=0,od="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;startSize="+wc+";",U=0;U<Wb;U++){if(null==pd)var td=.6*parseInt(h.Rows[U].height),l=parseInt(h.Rows[U].id)||U,Xa="Row_"+l;else td=.6*h.SecondaryLane[U],
|
|
|
|
|
Xa=pd[U];var Lb=new mxCell("",new mxGeometry(0,na,t,td),od),na=na+td;Lb.vertex=!0;rd.insert(Lb);Lb.value=g(h[Xa]);Lb.style+=c(Lb.style,h,e,Lb,y)+(y?"":a(h[Xa])+d(h[Xa])+k(h[Xa])+w(h[Xa],Lb)+x(h[Xa])+z(h[Xa])+B(h[Xa])+C(h[Xa]))+A(h[Xa])+D(h[Xa])}for(var ye="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;startSize="+vc+";",U=pa=0;U<Xb;U++){if(null==qd)var gc=.6*parseInt(h.Columns[U].width),l=parseInt(h.Columns[U].id)||U,Ya="Column_"+l;else gc=.6*h.PrimaryLane[U],
|
|
|
|
|
Ya=qd[U];var Mb=new mxCell("",new mxGeometry(pa,0,gc,r),ye),pa=pa+gc;Mb.vertex=!0;sd.insert(Mb);Mb.value=g(h[Ya]);Mb.style+=c(Mb.style,h,e,Mb,y)+(y?"":a(h[Ya])+d(h[Ya])+k(h[Ya])+w(h[Ya],Mb)+x(h[Ya])+z(h[Ya])+B(h[Ya])+C(h[Ya]))+A(h[Ya])+D(h[Ya])}break;case "AndroidDevice":if(null!=h.AndroidDeviceName){v.style="fillColor=#000000;strokeColor=#000000;";var Nb=null,xc=null,yc=null;if("Tablet"==h.AndroidDeviceName||"Mini Tablet"==h.AndroidDeviceName||"custom"==h.AndroidDeviceName&&"Tablet"==h.CustomDeviceType)v.style+=
|
|
|
|
|
"shape=mxgraph.android.tab2;",Nb=new mxCell("",new mxGeometry(.112*t,.077*r,.77*t,.85*r),""),h.KeyboardShown&&(xc=new mxCell("",new mxGeometry(.112*t,.727*r,.77*t,.2*r),"shape=mxgraph.android.keyboard;")),h.FullScreen||(yc=new mxCell("",new mxGeometry(.112*t,.077*r,.77*t,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*r+";"));else if("Large Phone"==h.AndroidDeviceName||"Phone"==h.AndroidDeviceName||"custom"==h.AndroidDeviceName&&"Phone"==
|
|
|
|
|
h.CustomDeviceType)v.style+="shape=mxgraph.android.phone2;",Nb=new mxCell("",new mxGeometry(.04*t,.092*r,.92*t,.816*r),""),h.KeyboardShown&&(xc=new mxCell("",new mxGeometry(.04*t,.708*r,.92*t,.2*r),"shape=mxgraph.android.keyboard;")),h.FullScreen||(yc=new mxCell("",new mxGeometry(.04*t,.092*r,.92*t,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*r+";"));Nb.vertex=!0;v.insert(Nb);"Dark"==h.Scheme?Nb.style+="fillColor=#111111;":"Light"==
|
|
|
|
|
h.Scheme&&(Nb.style+="fillColor=#ffffff;");null!=xc&&(xc.vertex=!0,v.insert(xc));null!=yc&&(yc.vertex=!0,v.insert(yc))}v.style+=c(v.style,h,e,v);break;case "AndroidAlertDialog":var fb=new mxCell("",new mxGeometry(0,0,t,30),"strokeColor=none;fillColor=none;spacingLeft=9;");fb.vertex=!0;v.insert(fb);var ia=new mxCell("",new mxGeometry(0,25,t,10),"shape=line;strokeColor=#33B5E5;");ia.vertex=!0;v.insert(ia);var zc=new mxCell("",new mxGeometry(0,30,t,r-30),"strokeColor=none;fillColor=none;verticalAlign=top;");
|
|
|
|
|
zc.vertex=!0;v.insert(zc);var va=new mxCell("",new mxGeometry(0,r-25,.5*t,25),"fillColor=none;");va.vertex=!0;v.insert(va);var wa=new mxCell("",new mxGeometry(.5*t,r-25,.5*t,25),"fillColor=none;");wa.vertex=!0;v.insert(wa);fb.value=g(h.DialogTitle);fb.style+=m(h.DialogTitle,y);zc.value=g(h.DialogText);zc.style+=m(h.DialogText,y);va.value=g(h.Button_0);va.style+=m(h.Button_0,y);wa.value=g(h.Button_1);wa.style+=m(h.Button_1,y);"Dark"==h.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",
|
|
|
|
|
va.style+="strokeColor=#353535;",wa.style+="strokeColor=#353535;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",va.style+="strokeColor=#E2E2E2;",wa.style+="strokeColor=#E2E2E2;");v.style+=c(v.style,h,e,v);break;case "AndroidDateDialog":case "AndroidTimeDialog":fb=new mxCell("",new mxGeometry(0,0,t,30),"strokeColor=none;fillColor=none;spacingLeft=9;");fb.vertex=!0;v.insert(fb);fb.value=g(h.DialogTitle);fb.style+=m(h.DialogTitle,y);ia=new mxCell("",new mxGeometry(0,25,t,10),"shape=line;strokeColor=#33B5E5;");
|
|
|
|
|
ia.vertex=!0;v.insert(ia);va=new mxCell("",new mxGeometry(0,r-25,.5*t,25),"fillColor=none;");va.vertex=!0;v.insert(va);va.value=g(h.Button_0);va.style+=m(h.Button_0,y);wa=new mxCell("",new mxGeometry(.5*t,r-25,.5*t,25),"fillColor=none;");wa.vertex=!0;v.insert(wa);wa.value=g(h.Button_1);wa.style+=m(h.Button_1,y);var hc=new mxCell("",new mxGeometry(.5*t-4,41,8,4),"shape=triangle;direction=north;");hc.vertex=!0;v.insert(hc);var ic=new mxCell("",new mxGeometry(.25*t-4,41,8,4),"shape=triangle;direction=north;");
|
|
|
|
|
ic.vertex=!0;v.insert(ic);var jc=new mxCell("",new mxGeometry(.75*t-4,41,8,4),"shape=triangle;direction=north;");jc.vertex=!0;v.insert(jc);var Ac=new mxCell("",new mxGeometry(.375*t,50,.2*t,15),"strokeColor=none;fillColor=none;");Ac.vertex=!0;v.insert(Ac);Ac.value=g(h.Label_1);Ac.style+=m(h.Label_1,y);var Bc=new mxCell("",new mxGeometry(.125*t,50,.2*t,15),"strokeColor=none;fillColor=none;");Bc.vertex=!0;v.insert(Bc);Bc.value=g(h.Label_0);Bc.style+=m(h.Label_0,y);var kc=null;"AndroidDateDialog"==b.Class&&
|
|
|
|
|
(kc=new mxCell("",new mxGeometry(.625*t,50,.2*t,15),"strokeColor=none;fillColor=none;"),kc.vertex=!0,v.insert(kc),kc.value=g(h.Label_2),kc.style+=m(h.Label_2,y));var Ja=new mxCell("",new mxGeometry(.43*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");Ja.vertex=!0;v.insert(Ja);var Ka=new mxCell("",new mxGeometry(.18*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");Ka.vertex=!0;v.insert(Ka);var Pd=new mxCell("",new mxGeometry(.68*t,60,.14*t,10),"shape=line;strokeColor=#33B5E5;");Pd.vertex=!0;v.insert(Pd);
|
|
|
|
|
var Cc=new mxCell("",new mxGeometry(.375*t,65,.2*t,15),"strokeColor=none;fillColor=none;");Cc.vertex=!0;v.insert(Cc);Cc.value=g(h.Label_4);Cc.style+=m(h.Label_4,y);var lc=null;"AndroidTimeDialog"==b.Class&&(lc=new mxCell("",new mxGeometry(.3*t,65,.1*t,15),"strokeColor=none;fillColor=none;"),lc.vertex=!0,v.insert(lc),lc.value=g(h.Label_Colon),lc.style+=m(h.Label_Colon,y));var Dc=new mxCell("",new mxGeometry(.125*t,65,.2*t,15),"strokeColor=none;fillColor=none;");Dc.vertex=!0;v.insert(Dc);Dc.value=g(h.Label_3);
|
|
|
|
|
Dc.style+=m(h.Label_3,y);var Ec=new mxCell("",new mxGeometry(.625*t,65,.2*t,15),"strokeColor=none;fillColor=none;");Ec.vertex=!0;v.insert(Ec);Ec.value=g(h.Label_5);Ec.style+=m(h.Label_5,y);var Qd=new mxCell("",new mxGeometry(.43*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");Qd.vertex=!0;v.insert(Qd);var Rd=new mxCell("",new mxGeometry(.18*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");Rd.vertex=!0;v.insert(Rd);var Sd=new mxCell("",new mxGeometry(.68*t,75,.14*t,10),"shape=line;strokeColor=#33B5E5;");
|
|
|
|
|
Sd.vertex=!0;v.insert(Sd);var Fc=new mxCell("",new mxGeometry(.375*t,80,.2*t,15),"strokeColor=none;fillColor=none;");Fc.vertex=!0;v.insert(Fc);Fc.value=g(h.Label_7);Fc.style+=m(h.Label_7,y);var Gc=new mxCell("",new mxGeometry(.125*t,80,.2*t,15),"strokeColor=none;fillColor=none;");Gc.vertex=!0;v.insert(Gc);Gc.value=g(h.Label_6);Gc.style+=m(h.Label_6,y);var Hc=new mxCell("",new mxGeometry(.625*t,80,.2*t,15),"strokeColor=none;fillColor=none;");Hc.vertex=!0;v.insert(Hc);Hc.value=g(h.Label_8);Hc.style+=
|
|
|
|
|
m(h.Label_8,y);var mc=new mxCell("",new mxGeometry(.5*t-4,99,8,4),"shape=triangle;direction=south;");mc.vertex=!0;v.insert(mc);var nc=new mxCell("",new mxGeometry(.25*t-4,99,8,4),"shape=triangle;direction=south;");nc.vertex=!0;v.insert(nc);var oc=new mxCell("",new mxGeometry(.75*t-4,99,8,4),"shape=triangle;direction=south;");oc.vertex=!0;v.insert(oc);"Dark"==h.Scheme?(v.style+="strokeColor=#353535;fillColor=#282828;shadow=1;",va.style+="strokeColor=#353535;",wa.style+="strokeColor=#353535;",hc.style+=
|
|
|
|
|
"strokeColor=none;fillColor=#7E7E7E;",ic.style+="strokeColor=none;fillColor=#7E7E7E;",jc.style+="strokeColor=none;fillColor=#7E7E7E;",mc.style+="strokeColor=none;fillColor=#7E7E7E;",nc.style+="strokeColor=none;fillColor=#7E7E7E;",oc.style+="strokeColor=none;fillColor=#7E7E7E;"):(v.style+="strokeColor=none;fillColor=#ffffff;shadow=1;",va.style+="strokeColor=#E2E2E2;",wa.style+="strokeColor=#E2E2E2;",hc.style+="strokeColor=none;fillColor=#939393;",ic.style+="strokeColor=none;fillColor=#939393;",jc.style+=
|
|
|
|
|
"strokeColor=none;fillColor=#939393;",mc.style+="strokeColor=none;fillColor=#939393;",nc.style+="strokeColor=none;fillColor=#939393;",oc.style+="strokeColor=none;fillColor=#939393;");v.style+=c(v.style,h,e,v);break;case "AndroidListItems":var Fa=r,Cb=0;if(h.ShowHeader){var Cb=8,Ic=new mxCell("",new mxGeometry(0,0,t,Cb),"strokeColor=none;fillColor=none;");Ic.vertex=!0;v.insert(Ic);Ic.value=g(h.Header);Ic.style+=m(h.Header,y);var Fa=Fa-Cb,Td=new mxCell("",new mxGeometry(0,Cb-2,t,4),"shape=line;strokeColor=#999999;");
|
|
|
|
|
Td.vertex=!0;v.insert(Td)}var gb=parseInt(h.Items);0<gb&&(Fa/=gb);for(var I=[],ia=[],l=0;l<gb;l++)I[l]=new mxCell("",new mxGeometry(0,Cb+l*Fa,t,Fa),"strokeColor=none;fillColor=none;"),I[l].vertex=!0,v.insert(I[l]),I[l].value=g(h["Item_"+l]),I[l].style+=m(h["Item_"+l],y),0<l&&(ia[l]=new mxCell("",new mxGeometry(0,Cb+l*Fa-2,t,4),"shape=line;"),ia[l].vertex=!0,v.insert(ia[l]),ia[l].style="Dark"==h.Scheme?ia[l].style+"strokeColor=#ffffff;":ia[l].style+"strokeColor=#D9D9D9;");v.style="Dark"==h.Scheme?
|
|
|
|
|
v.style+"strokeColor=none;fillColor=#111111;":v.style+"strokeColor=none;fillColor=#ffffff;";v.style+=c(v.style,h,e,v);break;case "AndroidTabs":var hb=parseInt(h.Tabs),Pa=t;0<hb&&(Pa/=hb);for(var ga=[],ia=[],l=0;l<hb;l++)ga[l]=new mxCell("",new mxGeometry(l*Pa,0,Pa,r),"strokeColor=none;fillColor=none;"),ga[l].vertex=!0,v.insert(ga[l]),ga[l].value=g(h["Tab_"+l]),ga[l].style+=m(h["Tab_"+l],y),0<l&&(ia[l]=new mxCell("",new mxGeometry(l*Pa-2,.2*r,4,.6*r),"shape=line;direction=north;"),ia[l].vertex=!0,
|
|
|
|
|
v.insert(ia[l]),ia[l].style="Dark"==h.Scheme?ia[l].style+"strokeColor=#484848;":ia[l].style+"strokeColor=#CCCCCC;");var Ud=new mxCell("",new mxGeometry(h.Selected*Pa+2,r-3,Pa-4,3),"strokeColor=none;fillColor=#33B5E5;");Ud.vertex=!0;v.insert(Ud);v.style="Dark"==h.Scheme?v.style+"strokeColor=none;fillColor=#333333;":v.style+"strokeColor=none;fillColor=#DDDDDD;";v.style+=c(v.style,h,e,v);break;case "AndroidProgressBar":v=new mxCell("",new mxGeometry(Math.round(pa),Math.round(na+.25*r),Math.round(t),
|
|
|
|
|
Math.round(.5*r)),"html=1;overflow=block;whiteSpace=wrap;");v.vertex=!0;var Jc=new mxCell("",new mxGeometry(0,0,t*h.BarPosition,Math.round(.5*r)),"strokeColor=none;fillColor=#33B5E5;");Jc.vertex=!0;v.insert(Jc);v.style="Dark"==h.Scheme?v.style+"strokeColor=none;fillColor=#474747;":v.style+"strokeColor=none;fillColor=#BBBBBB;";v.style+=c(v.style,h,e,v);break;case "AndroidImageBlock":v.style="Dark"==h.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+=c(v.style,h,e,v);break;case "AndroidTextBlock":v.style="Dark"==h.Scheme?h.ShowBorder?v.style+"fillColor=#111111;strokeColor=#ffffff;":v.style+"fillColor=#111111;strokeColor=none;":h.ShowBorder?v.style+"fillColor=#ffffff;strokeColor=#000000;":v.style+"fillColor=#ffffff;strokeColor=none;";v.value=g(h.Label);v.style+=m(h.Label,y);v.style+=c(v.style,h,e,v,y);break;case "AndroidActionBar":v.style+="strokeColor=none;";
|
|
|
|
|
switch(h.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(h.HighlightShow){var Db=null,Db=h.HighlightTop?new mxCell("",new mxGeometry(0,0,t,2),"strokeColor=none;"):new mxCell("",new mxGeometry(0,r-2,t,2),"strokeColor=none;");Db.vertex=!0;v.insert(Db);switch(h.HighlightColor){case "Blue":Db.style+="fillColor=#33B5E5;";break;case "Dark Gray":Db.style+=
|
|
|
|
|
"fillColor=#B0B0B0;";break;case "White":Db.style+="fillColor=#ffffff;"}}if(h.VlignShow){var pc=new mxCell("",new mxGeometry(20,5,2,r-10),"shape=line;direction=north;");pc.vertex=!0;v.insert(pc);switch(h.VlignColor){case "Blue":pc.style+="strokeColor=#244C5A;";break;case "White":pc.style+="strokeColor=#ffffff;"}}v.style+=c(v.style,h,e,v);break;case "AndroidButton":v.value=g(h.Label);v.style+=m(h.Label,y)+"shape=partialRectangle;left=0;right=0;";v.style="Dark"==h.Scheme?v.style+"fillColor=#474747;strokeColor=#C6C5C6;bottom=0;":
|
|
|
|
|
v.style+"fillColor=#DFE0DF;strokeColor=#C6C5C6;top=0;";v.style+=c(v.style,h,e,v);break;case "AndroidTextBox":v.value=g(h.Label);v.style+=m(h.Label,y);var Kc=new mxCell("",new mxGeometry(2,r-6,t-4,4),"shape=partialRectangle;top=0;fillColor=none;");Kc.vertex=!0;v.insert(Kc);v.style="Dark"==h.Scheme?v.style+"fillColor=#111111;strokeColor=none;":v.style+"fillColor=#ffffff;strokeColor=none;";Kc.style=h.TextFocused?Kc.style+"strokeColor=#33B5E5;":Kc.style+"strokeColor=#A9A9A9;";v.style+=c(v.style,h,e,v);
|
|
|
|
@ -84,7 +85,7 @@ break;case "AndroidRadioButton":var Yb=null;h.Checked&&(Yb=new mxCell("",new mxG
|
|
|
|
|
(Yb.style+="strokeColor=#999999;"));v.style+=c(v.style,h,e,v);break;case "AndroidCheckBox":var ud=null;h.Checked&&(ud=new mxCell("",new mxGeometry(.25*t,.05*-r,t,.8*r),"shape=mxgraph.ios7.misc.check;strokeColor=#33B5E5;strokeWidth=2;"),ud.vertex=!0,v.insert(ud));v.style="Dark"==h.Scheme?v.style+"strokeWidth=1;strokeColor=#272727;fillColor=#111111;":v.style+"strokeWidth=1;strokeColor=#5C5C5C;fillColor=#ffffff;";v.style+=c(v.style,h,e,v);break;case "AndroidToggle":v.style="Dark"==h.Scheme?h.Checked?
|
|
|
|
|
v.style+"shape=mxgraph.android.switch_on;fillColor=#666666;":v.style+"shape=mxgraph.android.switch_off;fillColor=#666666;":h.Checked?v.style+"shape=mxgraph.android.switch_on;fillColor=#E6E6E6;":v.style+"shape=mxgraph.android.switch_off;fillColor=#E6E6E6;";v.style+=c(v.style,h,e,v);break;case "AndroidSlider":v.style+="shape=mxgraph.android.progressScrubberFocused;dx="+h.BarPosition+";fillColor=#33b5e5;";v.style+=c(v.style,h,e,v);break;case "iOSSegmentedControl":hb=parseInt(h.Tabs);Pa=t;v.style+="strokeColor=none;fillColor=none;";
|
|
|
|
|
0<hb&&(Pa/=hb);ga=[];ia=[];for(l=0;l<hb;l++)ga[l]=new mxCell("",new mxGeometry(l*Pa,0,Pa,r),"strokeColor="+h.FillColor+";"),ga[l].vertex=!0,v.insert(ga[l]),ga[l].value=g(h["Tab_"+l]),ga[l].style+=m(h["Tab_"+l],y),ga[l].style=h.Selected==l?ga[l].style+M(h,e):ga[l].style+"fillColor=none;";v.style+=c(v.style,h,e,v);break;case "iOSSlider":v.style+="shape=mxgraph.ios7ui.slider;strokeColor="+h.FillColor+";fillColor=#ffffff;strokeWidth=2;barPos="+100*h.BarPosition+";";v.style+=c(v.style,h,e,v);break;case "iOSProgressBar":v=
|
|
|
|
|
new mxCell("",new mxGeometry(Math.round(pa),Math.round(na+.25*r),Math.round(t),Math.round(.5*r)),"html=1;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;Jc=new mxCell("",new mxGeometry(0,0,t*h.BarPosition,Math.round(.5*r)),"strokeColor=none;"+M(h,e));Jc.vertex=!0;v.insert(Jc);v.style+=c(v.style,h,e,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=c(v.style,h,e,v);break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";
|
|
|
|
|
new mxCell("",new mxGeometry(Math.round(pa),Math.round(na+.25*r),Math.round(t),Math.round(.5*r)),"html=1;overflow=block;whiteSpace=wrap;strokeColor=none;fillColor=#B5B5B5;");v.vertex=!0;Jc=new mxCell("",new mxGeometry(0,0,t*h.BarPosition,Math.round(.5*r)),"strokeColor=none;"+M(h,e));Jc.vertex=!0;v.insert(Jc);v.style+=c(v.style,h,e,v);break;case "iOSPageControls":v.style+="shape=mxgraph.ios7ui.pageControl;strokeColor=#D6D6D6;";v.style+=c(v.style,h,e,v);break;case "iOSStatusBar":v.style+="shape=mxgraph.ios7ui.appBar;strokeColor=#000000;";
|
|
|
|
|
var X=new mxCell(g(h.Text),new mxGeometry(.35*t,0,.3*t,r),"strokeColor=none;fillColor=none;");X.vertex=!0;v.insert(X);X.style+=m(h.Text,y);var La=new mxCell(g(h.Carrier),new mxGeometry(.09*t,0,.2*t,r),"strokeColor=none;fillColor=none;");La.vertex=!0;v.insert(La);La.style+=m(h.Carrier,y);v.style+=c(v.style,h,e,v);break;case "iOSSearchBar":v.value=g(h.Search);v.style+="strokeColor=none;";v.style+=c(v.style,h,e,v,y)+m(h.Search,y);var aa=new mxCell("",new mxGeometry(.3*t,.3*r,.4*r,.4*r),"shape=mxgraph.ios7.icons.looking_glass;strokeColor=#000000;fillColor=none;");
|
|
|
|
|
aa.vertex=!0;v.insert(aa);break;case "iOSNavBar":v.value=g(h.Title);v.style+="shape=partialRectangle;top=0;right=0;left=0;strokeColor=#979797;";+m(h.Title,y);v.style+=c(v.style,h,e,v,y);X=new mxCell(g(h.LeftText),new mxGeometry(.03*t,0,.3*t,r),"strokeColor=none;fillColor=none;");X.vertex=!0;v.insert(X);X.style+=m(h.LeftText,y);La=new mxCell(g(h.RightText),new mxGeometry(.65*t,0,.3*t,r),"strokeColor=none;fillColor=none;");La.vertex=!0;v.insert(La);La.style+=m(h.RightText,y);aa=new mxCell("",new mxGeometry(.02*
|
|
|
|
|
t,.2*r,.3*r,.5*r),"shape=mxgraph.ios7.misc.left;strokeColor=#007AFF;strokeWidth=2;");aa.vertex=!0;v.insert(aa);break;case "iOSTabs":hb=parseInt(h.Tabs);Pa=t;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=c(v.style,h,e,v);0<hb&&(Pa/=hb);ga=[];ia=[];for(l=0;l<hb;l++)ga[l]=new mxCell("",new mxGeometry(l*Pa,0,Pa,r),"strokeColor=none;"),ga[l].vertex=!0,v.insert(ga[l]),ga[l].value=g(h["Tab_"+l]),ga[l].style+=y?"html=1;":a(h["Tab_"+l])+d(h["Tab_"+l])+k(h["Tab_"+l])+
|
|
|
|
@ -1130,24 +1131,24 @@ g;g.__class="com.mxgraph.io.vsdx.mxVsdxMaster"})(g.vsdx||(g.vsdx={}))})(g.io||(g
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){var g=function(){function c(b,a,d){this.pages=this.media=this.xmlDocs=null;this.masters={};this.stylesheets={};this.themes={};this.pm=this.rootElement=null;this.xmlDocs=a;this.media=d;for(b=b.firstChild;null!=b;){if(a=null!=b&&1==b.nodeType)a=b.tagName.toLowerCase(),d=f.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"document",a=a&&a.equals?a.equals(d):a===d;if(a){this.rootElement=b;break}b=b.nextSibling}this.pm=new f.mxgraph.io.vsdx.mxPropertiesManager;
|
|
|
|
|
this.pm.initialise(this.rootElement,this);this.initStylesheets();this.initThemes();this.initMasters();this.initPages()}c.prototype.initThemes=function(){if(null!=this.xmlDocs)for(var b=!0,a=1;b;){var d=function(a,b){return a[b]?a[b]:null}(this.xmlDocs,f.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/theme/theme"+a+".xml");if(null!=d){for(d=d.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(d.tagName,"a:theme")){d=new f.mxgraph.io.vsdx.mxVsdxTheme(d);0>
|
|
|
|
|
d.getThemeIndex()&&d.processTheme();var k=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.themes,d.getThemeIndex());null!=k&&k.isPure()||function(a,b,d){null==a.entries&&(a.entries=[]);for(var k=0;k<a.entries.length;k++)if(null!=a.entries[k].key.equals&&a.entries[k].key.equals(b)||a.entries[k].key===b){a.entries[k].value=d;return}a.entries.push({key:b,
|
|
|
|
|
value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.themes,d.getThemeIndex(),d);break}d=d.nextSibling}a++}else b=!1}};c.prototype.initStylesheets=function(){var b=this.rootElement.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.STYLE_SHEETS);if(0<b.length)for(var b=b.item(0).getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.STYLE_SHEET),a=b.length,d=0;d<a;d++){var k=b.item(d),c=k.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.ID),k=new f.mxgraph.io.vsdx.Style(k,
|
|
|
|
|
this);this.stylesheets[c]=k}for(b=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){return Object.keys(a).map(function(b){return a[b]})}(this.stylesheets));b.hasNext();)k=b.next(),k.stylesheetRefs(this)};c.prototype.initMasters=function(){if(null!=this.xmlDocs){var b=function(a,b){return a[b]?a[b]:null}(this.xmlDocs,f.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/masters.xml");if(null!=b)for(b=b.firstChild;null!=b;){if(null!=
|
|
|
|
|
value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.themes,d.getThemeIndex(),d);break}d=d.nextSibling}a++}else b=!1}};c.prototype.initStylesheets=function(){var b=this.rootElement.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.STYLE_SHEETS);if(0<b.length)for(var b=b.item(0).getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.STYLE_SHEET),a=b.length,d=0;d<a;d++){var k=b.item(d),n=k.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.ID),k=new f.mxgraph.io.vsdx.Style(k,
|
|
|
|
|
this);this.stylesheets[n]=k}for(b=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){return Object.keys(a).map(function(b){return a[b]})}(this.stylesheets));b.hasNext();)k=b.next(),k.stylesheetRefs(this)};c.prototype.initMasters=function(){if(null!=this.xmlDocs){var b=function(a,b){return a[b]?a[b]:null}(this.xmlDocs,f.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/masters.xml");if(null!=b)for(b=b.firstChild;null!=b;){if(null!=
|
|
|
|
|
b&&1==b.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(b.tagName,f.mxgraph.io.vsdx.mxVsdxConstants.MASTERS)){for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(b.tagName,"Master")){var a=new f.mxgraph.io.vsdx.mxVsdxMaster(b,this);this.masters[a.getId()]=a}b=b.nextSibling}break}b=b.nextSibling}}};c.prototype.initPages=function(){if(null!=this.xmlDocs){var b=function(a,b){return a[b]?a[b]:null}(this.xmlDocs,f.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+
|
|
|
|
|
"/pages/pages.xml");if(null!=b)for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(b.tagName,f.mxgraph.io.vsdx.mxVsdxConstants.PAGES)){var a=b.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.PAGE);if(null!=a&&0<a.length){this.pages={};for(var b={},d=a.length,k=0;k<d;k++){var c=a.item(k),c=this.createPage(c);c.isBackground()&&function(a,b,d){null==a.entries&&(a.entries=[]);for(var k=0;k<a.entries.length;k++)if(null!=a.entries[k].key.equals&&
|
|
|
|
|
a.entries[k].key.equals(b)||a.entries[k].key===b){a.entries[k].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(b,c.getId(),c);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var k=0;k<a.entries.length;k++)if(null!=a.entries[k].key.equals&&a.entries[k].key.equals(b)||a.entries[k].key===b){a.entries[k].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.pages,
|
|
|
|
|
c.getId(),c)}a=function(a){null==a.entries&&(a.entries=[]);return a.entries}(this.pages);for(d=0;d<a.length;d++)c=a[d].getValue(),k=c.getBackPageId(),null!=k&&(k=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(b,k),c.setBackPage(k))}break}b=b.nextSibling}}};c.prototype.getPages=function(){return this.pages};c.prototype.getThemes=function(){return this.themes};
|
|
|
|
|
c.prototype.getRelationship=function(b,a){var d=function(a,b){return a[b]?a[b]:null}(this.xmlDocs,a);if(null==d||null==b||0===b.length)return null;for(var d=d.getElementsByTagName("Relationship"),k=0;k<d.length;k++){var c=d.item(k);if(function(a,b){return a&&a.equals?a.equals(b):a===b}(c.getAttribute("Id"),b))return c}return null};c.prototype.getMaster=function(b){var a=this.masters;return a[b]?a[b]:null};c.prototype.createPage=function(b){return new f.mxgraph.io.vsdx.mxVsdxPage(b,this)};c.prototype.getPropertiesManager=
|
|
|
|
|
"/pages/pages.xml");if(null!=b)for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(b.tagName,f.mxgraph.io.vsdx.mxVsdxConstants.PAGES)){var a=b.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.PAGE);if(null!=a&&0<a.length){this.pages={};for(var b={},d=a.length,k=0;k<d;k++){var n=a.item(k),n=this.createPage(n);n.isBackground()&&function(a,b,d){null==a.entries&&(a.entries=[]);for(var k=0;k<a.entries.length;k++)if(null!=a.entries[k].key.equals&&
|
|
|
|
|
a.entries[k].key.equals(b)||a.entries[k].key===b){a.entries[k].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(b,n.getId(),n);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var k=0;k<a.entries.length;k++)if(null!=a.entries[k].key.equals&&a.entries[k].key.equals(b)||a.entries[k].key===b){a.entries[k].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.pages,
|
|
|
|
|
n.getId(),n)}a=function(a){null==a.entries&&(a.entries=[]);return a.entries}(this.pages);for(d=0;d<a.length;d++)n=a[d].getValue(),k=n.getBackPageId(),null!=k&&(k=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(b,k),n.setBackPage(k))}break}b=b.nextSibling}}};c.prototype.getPages=function(){return this.pages};c.prototype.getThemes=function(){return this.themes};
|
|
|
|
|
c.prototype.getRelationship=function(b,a){var d=function(a,b){return a[b]?a[b]:null}(this.xmlDocs,a);if(null==d||null==b||0===b.length)return null;for(var d=d.getElementsByTagName("Relationship"),k=0;k<d.length;k++){var n=d.item(k);if(function(a,b){return a&&a.equals?a.equals(b):a===b}(n.getAttribute("Id"),b))return n}return null};c.prototype.getMaster=function(b){var a=this.masters;return a[b]?a[b]:null};c.prototype.createPage=function(b){return new f.mxgraph.io.vsdx.mxVsdxPage(b,this)};c.prototype.getPropertiesManager=
|
|
|
|
|
function(){return this.pm};c.prototype.setPropertiesManager=function(b){this.pm=b};c.prototype.getMasterShapes=function(){return this.masters};c.prototype.setMasterShapes=function(b){this.masters=b};c.prototype.getStylesheet=function(b){var a=this.stylesheets;return a[b]?a[b]:null};c.prototype.getXmlDoc=function(b){var a=this.xmlDocs;return a[b]?a[b]:null};c.prototype.getMedia=function(b){var a=this.media;return a[b]?a[b]:null};return c}();e.mxVsdxModel=g;g.__class="com.mxgraph.io.vsdx.mxVsdxModel"})(g.vsdx||
|
|
|
|
|
(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){var g=function(){function c(b,a){this.pageName=this.Id=null;this.__isBackground=!1;this.pageSheet=this.backPage=this.backPageId=null;this.shapes={};this.connects={};this.cellElements={};this.model=a;this.pageElement=b;this.layers=[];var d=b.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.BACKGROUND),k;if(k=null!=d)k=f.mxgraph.io.vsdx.mxVsdxConstants.TRUE,k=d&&d.equals?d.equals(k):d===k;this.__isBackground=k?!0:!1;d=b.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.BACK_PAGE);
|
|
|
|
|
null!=d&&0<d.length&&(this.backPageId=parseFloat(d));this.Id=parseFloat(b.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.ID));this.pageName=b.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME)||"";d=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"PageSheet");if(0<d.length){d=d[0];k=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d,"Cell");for(var c=0;c<k.length;c++){var e=k[c],g=e.getAttribute("N");this.cellElements[g]=e}d=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d,
|
|
|
|
|
"Section");for(k=0;k<d.length;k++)if(c=d[k],g=c.getAttribute("N"),"Layer"==g)for(g=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(c,"Row"),c=0;c<g.length;c++){for(var e=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(g[c],"Cell"),m={},p=0;p<e.length;p++)m[e[p].getAttribute("N")]=e[p].getAttribute("V");this.layers[parseInt(g[c].getAttribute("IX"))]=m}}this.parseNodes(b,a,"pages")}c.prototype.parseNodes=function(b,a,d){for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType){var k=
|
|
|
|
|
b,c=k.nodeName;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(c,"Rel"))this.resolveRel(k,a,d);else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(c,"Shapes"))this.shapes=this.parseShapes(k,null,!1);else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(c,"Connects"))for(k=k.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.CONNECT),k=null!=k&&0<k.length?k.item(0):null;null!=k;){if(null!=k&&1==k.nodeType){var c=k,e=new f.mxgraph.io.vsdx.mxVsdxConnect(c),g=e.getFromSheet(),
|
|
|
|
|
g=null!=g&&-1<g?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.connects,g):null;null!=g?g.addConnect(c):function(a,b,d){null==a.entries&&(a.entries=[]);for(var k=0;k<a.entries.length;k++)if(null!=a.entries[k].key.equals&&a.entries[k].key.equals(b)||a.entries[k].key===b){a.entries[k].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},
|
|
|
|
|
getValue:function(){return this.value}})}(this.connects,e.getFromSheet(),e)}k=k.nextSibling}else(function(a,b){return a&&a.equals?a.equals(b):a===b})(c,"PageSheet")&&(this.pageSheet=k)}b=b.nextSibling}};c.prototype.resolveRel=function(b,a,d){d=a.getRelationship(b.getAttribute("r:id"),f.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/pages/_rels/"+d+".xml.rels");b=d.getAttribute("Target");d=d.getAttribute("Type");if(function(a,b){var d=a.length-b.length,k=a.indexOf(b,d);return-1!==k&&k===d}((new String(d)).toString(),
|
|
|
|
|
null!=d&&0<d.length&&(this.backPageId=parseFloat(d));this.Id=parseFloat(b.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.ID));this.pageName=b.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME)||"";d=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"PageSheet");if(0<d.length){d=d[0];k=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d,"Cell");for(var n=0;n<k.length;n++){var c=k[n],e=c.getAttribute("N");this.cellElements[e]=c}d=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d,
|
|
|
|
|
"Section");for(k=0;k<d.length;k++)if(n=d[k],e=n.getAttribute("N"),"Layer"==e)for(e=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(n,"Row"),n=0;n<e.length;n++){for(var c=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(e[n],"Cell"),g={},m=0;m<c.length;m++)g[c[m].getAttribute("N")]=c[m].getAttribute("V");this.layers[parseInt(e[n].getAttribute("IX"))]=g}}this.parseNodes(b,a,"pages")}c.prototype.parseNodes=function(b,a,d){for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType){var k=
|
|
|
|
|
b,n=k.nodeName;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(n,"Rel"))this.resolveRel(k,a,d);else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(n,"Shapes"))this.shapes=this.parseShapes(k,null,!1);else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(n,"Connects"))for(k=k.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.CONNECT),k=null!=k&&0<k.length?k.item(0):null;null!=k;){if(null!=k&&1==k.nodeType){var n=k,c=new f.mxgraph.io.vsdx.mxVsdxConnect(n),e=c.getFromSheet(),
|
|
|
|
|
e=null!=e&&-1<e?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.connects,e):null;null!=e?e.addConnect(n):function(a,b,d){null==a.entries&&(a.entries=[]);for(var k=0;k<a.entries.length;k++)if(null!=a.entries[k].key.equals&&a.entries[k].key.equals(b)||a.entries[k].key===b){a.entries[k].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},
|
|
|
|
|
getValue:function(){return this.value}})}(this.connects,c.getFromSheet(),c)}k=k.nextSibling}else(function(a,b){return a&&a.equals?a.equals(b):a===b})(n,"PageSheet")&&(this.pageSheet=k)}b=b.nextSibling}};c.prototype.resolveRel=function(b,a,d){d=a.getRelationship(b.getAttribute("r:id"),f.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/pages/_rels/"+d+".xml.rels");b=d.getAttribute("Target");d=d.getAttribute("Type");if(function(a,b){var d=a.length-b.length,k=a.indexOf(b,d);return-1!==k&&k===d}((new String(d)).toString(),
|
|
|
|
|
"page")){var k=null;null!=d&&function(a,b){var d=a.length-b.length,k=a.indexOf(b,d);return-1!==k&&k===d}(d,"page")&&(k=a.getXmlDoc(f.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/pages/"+b));if(null!=k)for(d=k.firstChild;null!=d;){if(null!=d&&1==d.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(d.tagName,"PageContents")){k=b.indexOf(".");-1!==k&&this.parseNodes(d,a,b.substring(0,k));break}d=d.nextSibling}}};c.prototype.parseShapes=function(b,a,d){d={};b=b.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.SHAPE);
|
|
|
|
|
for(b=null!=b&&0<b.length?b.item(0):null;null!=b;){if(null!=b&&1==b.nodeType){var k=b,c=a;if(null==c){var e=k.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MASTER);null==e||function(a,b){return a&&a.equals?a.equals(b):a===b}(e,"")||(c=this.model.getMaster(e))}var g=this.isEdge(k);g||null==c||(e=k.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE),g=c.getMasterElement(),null==e||function(a,b){return a&&a.equals?a.equals(b):a===b}(e,"")||(e=c.getSubShape(e),g=null!=e?e.getShape():g),g=this.isEdge(g));
|
|
|
|
|
k=this.createCell(k,!g,c);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var k=0;k<a.entries.length;k++)if(null!=a.entries[k].key.equals&&a.entries[k].key.equals(b)||a.entries[k].key===b){a.entries[k].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(d,k.getId(),k)}b=b.nextSibling}return d};c.prototype.createCell=function(b,a,d){return new f.mxgraph.io.vsdx.VsdxShape(this,b,a,this.model.getMasterShapes(),d,this.model)};
|
|
|
|
|
for(b=null!=b&&0<b.length?b.item(0):null;null!=b;){if(null!=b&&1==b.nodeType){var k=b,n=a;if(null==n){var c=k.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MASTER);null==c||function(a,b){return a&&a.equals?a.equals(b):a===b}(c,"")||(n=this.model.getMaster(c))}var e=this.isEdge(k);e||null==n||(c=k.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MASTER_SHAPE),e=n.getMasterElement(),null==c||function(a,b){return a&&a.equals?a.equals(b):a===b}(c,"")||(c=n.getSubShape(c),e=null!=c?c.getShape():e),e=this.isEdge(e));
|
|
|
|
|
k=this.createCell(k,!e,n);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var k=0;k<a.entries.length;k++)if(null!=a.entries[k].key.equals&&a.entries[k].key.equals(b)||a.entries[k].key===b){a.entries[k].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(d,k.getId(),k)}b=b.nextSibling}return d};c.prototype.createCell=function(b,a,d){return new f.mxgraph.io.vsdx.VsdxShape(this,b,a,this.model.getMasterShapes(),d,this.model)};
|
|
|
|
|
c.prototype.isEdge=function(b){if(null!=b&&(b=b.childNodes,null!=b))for(b=b.item(0);null!=b;){if(null!=b&&1==b.nodeType){var a=b;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a.nodeName,"Cell")&&(a=a.getAttribute("N"),function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"BeginX")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"BeginY")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"EndY")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"EndX")))return!0}b=b.nextSibling}return!1};
|
|
|
|
|
c.prototype.getPageDimensions=function(){var b=0,a=0,d=function(a,b){return a[b]?a[b]:null}(this.cellElements,"PageHeight"),k=function(a,b){return a[b]?a[b]:null}(this.cellElements,"PageWidth");null!=d&&(b=parseFloat(d.getAttribute("V"))*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),b=Math.round(100*b)/100);null!=k&&(a=parseFloat(k.getAttribute("V"))*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),a=Math.round(100*a)/100);return new mxPoint(a,b)};c.prototype.getDrawingScale=function(){var b;
|
|
|
|
|
b=this.cellElements;b=b.DrawingScale?b.DrawingScale:null;return null!=b?parseFloat(b.getAttribute("V"))*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():1};c.prototype.getPageScale=function(){var b;b=this.cellElements;b=b.PageScale?b.PageScale:null;return null!=b?parseFloat(b.getAttribute("V"))*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():1};c.prototype.getCellValue=function(b){var a=this.cellElements;b=a[b]?a[b]:null;return null!=b?b.getAttribute("V")||"":null};c.prototype.getCellIntValue=
|
|
|
|
@ -1253,29 +1254,29 @@ function(a){this.shade=a;this.hasEffects=!0};b.prototype.setComp=function(a){thi
|
|
|
|
|
a;this.hasEffects=!0};b.prototype.setRed=function(a){this.red=a;this.hasEffects=!0};b.prototype.setRedOff=function(a){this.redOff=a;this.hasEffects=!0};b.prototype.setRedMod=function(a){this.redMod=a;this.hasEffects=!0};b.prototype.setGreen=function(a){this.green=a;this.hasEffects=!0};b.prototype.setGreenOff=function(a){this.greenOff=a;this.hasEffects=!0};b.prototype.setGreenMod=function(a){this.greenMod=a;this.hasEffects=!0};b.prototype.setBlue=function(a){this.blue=a;this.hasEffects=!0};b.prototype.setBlueOff=
|
|
|
|
|
function(a){this.blueOff=a;this.hasEffects=!0};b.prototype.setBlueMod=function(a){this.blueMod=a;this.hasEffects=!0};b.prototype.setGamma=function(a){this.gamma=a;this.hasEffects=!0};b.prototype.setInvGamma=function(a){this.invGamma=a;this.hasEffects=!0};return b}();e.OoxmlColor=c;c.__class="com.mxgraph.io.vsdx.theme.OoxmlColor"})(e.theme||(e.theme={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(){function b(){}b.getOoxmlColor=function(a){var b=null;switch(a.nodeName){case "a:scrgbClr":b=new f.mxgraph.io.vsdx.theme.ScrgbClr(parseInt(a.getAttribute("r")),parseInt(a.getAttribute("g")),parseInt(a.getAttribute("b")));break;case "a:srgbClr":b=new f.mxgraph.io.vsdx.theme.SrgbClr(a.getAttribute("val"));break;case "a:hslClr":b=new f.mxgraph.io.vsdx.theme.HslClr(parseInt(a.getAttribute("hue")),parseInt(a.getAttribute("sat")),
|
|
|
|
|
parseInt(a.getAttribute("lum")));break;case "a:sysClr":b=new f.mxgraph.io.vsdx.theme.SysClr(a.getAttribute("val"),a.getAttribute("lastClr"));break;case "a:schemeClr":b=new f.mxgraph.io.vsdx.theme.SchemeClr(a.getAttribute("val"));break;case "a:prstClr":b=new f.mxgraph.io.vsdx.theme.SrgbClr(a.getAttribute("val"))}a=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(var c=0;c<a.length;c++){var n=a[c],e=parseInt(n.getAttribute("val"))/1E3|0;switch(n.nodeName){case "a:tint":b.setTint(e);break;
|
|
|
|
|
parseInt(a.getAttribute("lum")));break;case "a:sysClr":b=new f.mxgraph.io.vsdx.theme.SysClr(a.getAttribute("val"),a.getAttribute("lastClr"));break;case "a:schemeClr":b=new f.mxgraph.io.vsdx.theme.SchemeClr(a.getAttribute("val"));break;case "a:prstClr":b=new f.mxgraph.io.vsdx.theme.SrgbClr(a.getAttribute("val"))}a=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(var k=0;k<a.length;k++){var c=a[k],e=parseInt(c.getAttribute("val"))/1E3|0;switch(c.nodeName){case "a:tint":b.setTint(e);break;
|
|
|
|
|
case "a:shade":b.setShade(e);break;case "a:satMod":b.setSatMod(e);break;case "a:lumMod":b.setLumMod(e);break;case "a:hueMod":b.setHueMod(e)}}return b};return b}();e.OoxmlColorFactory=c;c.__class="com.mxgraph.io.vsdx.theme.OoxmlColorFactory"})(e.theme||(e.theme={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(f){(function(f){(function(f){(function(f){var c=function(){function b(a,b,c,f,e,g,m,p,C,A){this.quickStyleVariation=this.quickStyleType=this.quickStyleShadowColor=this.quickStyleLineColor=this.quickStyleFontMatrix=this.quickStyleFontColor=this.quickStyleFillMatrix=this.quickStyleFillColor=this.quickStyleEffectsMatrix=0;this.quickStyleEffectsMatrix=a;this.quickStyleFillColor=b;this.quickStyleFillMatrix=c;this.quickStyleFontColor=f;this.quickStyleFontMatrix=e;this.quickStyleLineColor=
|
|
|
|
|
g;this.quickStyleLineMatrix=m;this.quickStyleShadowColor=p;this.quickStyleType=C;this.quickStyleVariation=A}b.prototype.getQuickStyleEffectsMatrix=function(){return this.quickStyleEffectsMatrix};b.prototype.getQuickStyleFillColor=function(){return this.quickStyleFillColor};b.prototype.getQuickStyleFillMatrix=function(){return this.quickStyleFillMatrix};b.prototype.getQuickStyleFontColor=function(){return this.quickStyleFontColor};b.prototype.getQuickStyleFontMatrix=function(){return this.quickStyleFontMatrix};
|
|
|
|
|
(function(f){(function(f){(function(f){(function(f){(function(f){var c=function(){function b(a,b,k,c,f,e,g,m,p,A){this.quickStyleVariation=this.quickStyleType=this.quickStyleShadowColor=this.quickStyleLineColor=this.quickStyleFontMatrix=this.quickStyleFontColor=this.quickStyleFillMatrix=this.quickStyleFillColor=this.quickStyleEffectsMatrix=0;this.quickStyleEffectsMatrix=a;this.quickStyleFillColor=b;this.quickStyleFillMatrix=k;this.quickStyleFontColor=c;this.quickStyleFontMatrix=f;this.quickStyleLineColor=
|
|
|
|
|
e;this.quickStyleLineMatrix=g;this.quickStyleShadowColor=m;this.quickStyleType=p;this.quickStyleVariation=A}b.prototype.getQuickStyleEffectsMatrix=function(){return this.quickStyleEffectsMatrix};b.prototype.getQuickStyleFillColor=function(){return this.quickStyleFillColor};b.prototype.getQuickStyleFillMatrix=function(){return this.quickStyleFillMatrix};b.prototype.getQuickStyleFontColor=function(){return this.quickStyleFontColor};b.prototype.getQuickStyleFontMatrix=function(){return this.quickStyleFontMatrix};
|
|
|
|
|
b.prototype.getQuickStyleLineColor=function(){return this.quickStyleLineColor};b.prototype.getQuickStyleLineMatrix=function(){return this.quickStyleLineMatrix};b.prototype.getQuickStyleShadowColor=function(){return this.quickStyleShadowColor};b.prototype.getQuickStyleType=function(){return this.quickStyleType};b.prototype.getQuickStyleVariation=function(){return this.quickStyleVariation};b.prototype.setQuickStyleEffectsMatrix=function(a){this.quickStyleEffectsMatrix=a};b.prototype.setQuickStyleFillColor=
|
|
|
|
|
function(a){this.quickStyleFillColor=a};b.prototype.setQuickStyleFillMatrix=function(a){this.quickStyleFillMatrix=a};b.prototype.setQuickStyleFontColor=function(a){this.quickStyleFontColor=a};b.prototype.setQuickStyleFontMatrix=function(a){this.quickStyleFontMatrix=a};b.prototype.setQuickStyleLineColor=function(a){this.quickStyleLineColor=a};b.prototype.setQuickStyleLineMatrix=function(a){this.quickStyleLineMatrix=a};b.prototype.setQuickStyleShadowColor=function(a){this.quickStyleShadowColor=a};b.prototype.setQuickStyleType=
|
|
|
|
|
function(a){this.quickStyleType=a};b.prototype.setQuickStyleVariation=function(a){this.quickStyleVariation=a};return b}();f.QuickStyleVals=c;c.__class="com.mxgraph.io.vsdx.theme.QuickStyleVals"})(f.theme||(f.theme={}))})(f.vsdx||(f.vsdx={}))})(f.io||(f.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(f){(function(f){(function(f){(function(f){var c=function(){function b(a){this.color=null;this.color=a}b.prototype.applyStyle=function(a,b){return this.color.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,b)};return b}();f.SolidFillStyle=c;c.__class="com.mxgraph.io.vsdx.theme.SolidFillStyle";c.__interfaces=["com.mxgraph.io.vsdx.theme.FillStyle"]})(f.theme||(f.theme={}))})(f.vsdx||(f.vsdx={}))})(f.io||(f.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(f){(function(f){var e=function(){function f(){}f.MAX_AREA_$LI$=function(){null==f.MAX_AREA&&(f.MAX_AREA=1E8);return f.MAX_AREA};return f}();e.MAX_REQUEST_SIZE=52428800;e.IMAGE_DOMAIN="http://img.diagramly.com/";f.Constants=e;e.__class="com.mxgraph.online.Constants"})(f.online||(f.online={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(f){(function(f){var e=function(){function f(){}f.getRotatedPoint=function(c,b,a,d){var k=c.x-d.x;c=c.y-d.y;return new mxPoint(k*b-c*a+d.x,c*b+k*a+d.y)};f.rotatedGeometry=function(c,b,a,d){b=b*Math.PI/180;var k=Math.cos(b);b=Math.sin(b);var f=c.getCenterX()-a,e=c.getCenterY()-d;c.x=Math.round(f*k-e*b+a-c.width/2);c.y=Math.round(e*k+f*b+d-c.height/2)};return f}();e.CHARSET_FOR_URL_ENCODING="ISO-8859-1";f.Utils=e;e.__class="com.mxgraph.online.Utils"})(f.online||(f.online={}))})(f.mxgraph||
|
|
|
|
|
(function(f){(function(f){(function(f){var e=function(){function f(){}f.getRotatedPoint=function(c,b,a,d){var k=c.x-d.x;c=c.y-d.y;return new mxPoint(k*b-c*a+d.x,c*b+k*a+d.y)};f.rotatedGeometry=function(c,b,a,d){b=b*Math.PI/180;var k=Math.cos(b);b=Math.sin(b);var n=c.getCenterX()-a,f=c.getCenterY()-d;c.x=Math.round(n*k-f*b+a-c.width/2);c.y=Math.round(f*k+n*b+d-c.height/2)};return f}();e.CHARSET_FOR_URL_ENCODING="ISO-8859-1";f.Utils=e;e.__class="com.mxgraph.online.Utils"})(f.online||(f.online={}))})(f.mxgraph||
|
|
|
|
|
(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,c,f,e){a=b.call(this,a,c,f)||this;a.a=e;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a){var d=b.getHeight(),c=b.getWidth(),k=Math.floor(Math.round(b.getLastX()*c)/100),e=Math.floor(Math.round(b.getLastY()*d)/100),g=this.x*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),m=this.y*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),m=d-m,p=this.a*
|
|
|
|
|
f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),k=Math.abs(g-k),e=Math.abs(m-e),k=e=.5*p+(k*k+e*e)/(8*p),D=Math.abs(e),e=Math.round(100*e/c*100)/100,k=Math.round(100*k/d*100)/100,g=Math.round(100*g/c*100)/100,m=Math.round(100*m/d*100)/100,p=Math.round(100*p)/100,e=Math.abs(e),k=Math.abs(k),d=0>p?"1":"0",p=D<Math.abs(p)?"1":"0";b.setLastX(g);b.setLastY(m);return'<arc rx="'+(new String(e)).toString()+'" ry="'+(new String(k)).toString()+'" x="'+(new String(g)).toString()+'" y="'+(new String(m)).toString()+
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,k,c,f){a=b.call(this,a,k,c)||this;a.a=f;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a){var d=b.getHeight(),k=b.getWidth(),c=Math.floor(Math.round(b.getLastX()*k)/100),e=Math.floor(Math.round(b.getLastY()*d)/100),g=this.x*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),m=this.y*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),m=d-m,p=this.a*
|
|
|
|
|
f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),c=Math.abs(g-c),e=Math.abs(m-e),c=e=.5*p+(c*c+e*e)/(8*p),D=Math.abs(e),e=Math.round(100*e/k*100)/100,c=Math.round(100*c/d*100)/100,g=Math.round(100*g/k*100)/100,m=Math.round(100*m/d*100)/100,p=Math.round(100*p)/100,e=Math.abs(e),c=Math.abs(c),d=0>p?"1":"0",p=D<Math.abs(p)?"1":"0";b.setLastX(g);b.setLastY(m);return'<arc rx="'+(new String(e)).toString()+'" ry="'+(new String(c)).toString()+'" x="'+(new String(g)).toString()+'" y="'+(new String(m)).toString()+
|
|
|
|
|
'" x-axis-rotation="0" large-arc-flag="'+p+'" sweep-flag="'+d+'"/>'}return""};return a}(f.mxgraph.io.vsdx.geometry.Row);e.ArcTo=c;c.__class="com.mxgraph.io.vsdx.geometry.ArcTo"})(e.geometry||(e.geometry={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a){return b.call(this,a,null,null)||this}__extends(a,b);a.prototype.handle=function(a,b){return""};return a}(f.mxgraph.io.vsdx.geometry.Row);e.DelRow=c;c.__class="com.mxgraph.io.vsdx.geometry.DelRow"})(e.geometry||(e.geometry={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,c,f,e,g,m,p){a=b.call(this,a,c,f)||this;a.a=e;a.b=g;a.c=m;a.d=p;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=b.getHeight(),c=b.getWidth(),k=this.x*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),e=this.y*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),e=d-e,g=this.a*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),
|
|
|
|
|
m=this.b*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),m=d-m,p=this.c*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),D=this.d*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=Math.abs(g-k),m=Math.abs(m-e),m=Math.sqrt(g*g+m*m),p=Math.abs(p-k),D=Math.abs(d-D-e),k=100*k/c,D=Math.round(100*Math.sqrt(p*p+D*D)/d/2*100)/100,c=Math.round(100*m/c/2*100)/100,p=Math.round(100*(k-2*c))/100,k=Math.round(100*(k+2*c))/100,d=Math.round(100*e/d*100)/100;return'<move x="'+(new String(p)).toString()+
|
|
|
|
|
'" y="'+(new String(d)).toString()+'"/><arc rx="'+(new String(c)).toString()+'" ry="'+(new String(D)).toString()+'" x="'+(new String(k)).toString()+'" y="'+(new String(d)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/><arc rx="'+(new String(c)).toString()+'" ry="'+(new String(D)).toString()+'" x="'+(new String(p)).toString()+'" y="'+(new String(d)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/>'}return""};return a}(f.mxgraph.io.vsdx.geometry.Row);e.Ellipse=
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,k,c,f,e,g,m){a=b.call(this,a,k,c)||this;a.a=f;a.b=e;a.c=g;a.d=m;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=b.getHeight(),k=b.getWidth(),c=this.x*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),e=this.y*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),e=d-e,g=this.a*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),
|
|
|
|
|
m=this.b*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),m=d-m,p=this.c*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),D=this.d*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=Math.abs(g-c),m=Math.abs(m-e),m=Math.sqrt(g*g+m*m),p=Math.abs(p-c),D=Math.abs(d-D-e),c=100*c/k,D=Math.round(100*Math.sqrt(p*p+D*D)/d/2*100)/100,k=Math.round(100*m/k/2*100)/100,p=Math.round(100*(c-2*k))/100,c=Math.round(100*(c+2*k))/100,d=Math.round(100*e/d*100)/100;return'<move x="'+(new String(p)).toString()+
|
|
|
|
|
'" y="'+(new String(d)).toString()+'"/><arc rx="'+(new String(k)).toString()+'" ry="'+(new String(D)).toString()+'" x="'+(new String(c)).toString()+'" y="'+(new String(d)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/><arc rx="'+(new String(k)).toString()+'" ry="'+(new String(D)).toString()+'" x="'+(new String(p)).toString()+'" y="'+(new String(d)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/>'}return""};return a}(f.mxgraph.io.vsdx.geometry.Row);e.Ellipse=
|
|
|
|
|
c;c.__class="com.mxgraph.io.vsdx.geometry.Ellipse"})(e.geometry||(e.geometry={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,c,f,e,g,m,p){a=b.call(this,a,c,f)||this;a.a=e;a.b=g;a.c=m;a.d=p;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=b.getHeight(),c=b.getWidth(),k=this.x*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),e=this.y*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),e=d-e,g=this.a*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),
|
|
|
|
|
m=this.b*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),p=this.c,D=this.d,k=100*k/c,e=100*e/d,E=b.getLastX()*c/100,G=b.getLastY()*d/100,N=k*c/100,O=e*d/100,R=d-m,ca=-p,p=Math.sqrt(E*E+G*G)*Math.cos(Math.atan2(G,E)-ca),m=Math.sqrt(E*E+G*G)*Math.sin(Math.atan2(G,E)-ca),W=Math.sqrt(N*N+O*O)*Math.cos(Math.atan2(O,N)-ca),S=Math.sqrt(N*N+O*O)*Math.sin(Math.atan2(O,N)-ca),M=Math.sqrt(g*g+R*R)*Math.cos(Math.atan2(R,g)-ca),ma=Math.sqrt(g*g+R*R)*Math.sin(Math.atan2(R,g)-ca),ea=((p-W)*(p+W)*(S-ma)-(W-
|
|
|
|
|
M)*(W+M)*(m-S)+D*D*(m-S)*(S-ma)*(m-ma))/(2*((p-W)*(S-ma)-(W-M)*(m-S))),ec=((p-W)*(W-M)*(p-M)/(D*D)+(W-M)*(m-S)*(m+S)-(p-W)*(S-ma)*(S+ma))/(2*((W-M)*(m-S)-(p-W)*(S-ma))),ja=p-ea,fc=m-ec,ja=Math.sqrt(ja*ja+fc*fc*D*D),D=ja/D,ca=180*ca/Math.PI,k=Math.round(100*k)/100,e=Math.round(100*e)/100,ja=Math.round(100*ja/c*100)/100,D=Math.round(100*D/d*100)/100,ca=Math.round(100*ca)/100,d=0<(N-E)*(R-G)-(O-G)*(g-E)?"0":"1",c="0";f.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(ea,ec,p,m,W,S,M,ma)&&this.isReflexAngle(ea,
|
|
|
|
|
ec,p,m,W,S,M,ma)&&(c="1");b.setLastX(k);b.setLastY(e);return'<arc rx="'+(new String(ja)).toString()+'" ry="'+(new String(D)).toString()+'" x="'+(new String(k)).toString()+'" y="'+(new String(e)).toString()+'" x-axis-rotation="'+(new String(ca)).toString()+'" large-arc-flag="'+c+'" sweep-flag="'+d+'"/>'}return""};a.prototype.isReflexAngle=function(a,b,c,f,e,g,m,p){c-=a;f-=b;g-=b;e=m-a;p-=b;b=a=0;c=180*(Math.atan2(f,c)-Math.atan2(b,a))/Math.PI;e=180*(Math.atan2(g,e)-Math.atan2(b,a))/Math.PI;a=180*(Math.atan2(p,
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,k,c,f,e,g,m){a=b.call(this,a,k,c)||this;a.a=f;a.b=e;a.c=g;a.d=m;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=b.getHeight(),k=b.getWidth(),c=this.x*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),e=this.y*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),e=d-e,g=this.a*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),
|
|
|
|
|
m=this.b*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),p=this.c,D=this.d,c=100*c/k,e=100*e/d,E=b.getLastX()*k/100,G=b.getLastY()*d/100,N=c*k/100,O=e*d/100,R=d-m,ca=-p,p=Math.sqrt(E*E+G*G)*Math.cos(Math.atan2(G,E)-ca),m=Math.sqrt(E*E+G*G)*Math.sin(Math.atan2(G,E)-ca),W=Math.sqrt(N*N+O*O)*Math.cos(Math.atan2(O,N)-ca),S=Math.sqrt(N*N+O*O)*Math.sin(Math.atan2(O,N)-ca),M=Math.sqrt(g*g+R*R)*Math.cos(Math.atan2(R,g)-ca),ma=Math.sqrt(g*g+R*R)*Math.sin(Math.atan2(R,g)-ca),ea=((p-W)*(p+W)*(S-ma)-(W-
|
|
|
|
|
M)*(W+M)*(m-S)+D*D*(m-S)*(S-ma)*(m-ma))/(2*((p-W)*(S-ma)-(W-M)*(m-S))),ec=((p-W)*(W-M)*(p-M)/(D*D)+(W-M)*(m-S)*(m+S)-(p-W)*(S-ma)*(S+ma))/(2*((W-M)*(m-S)-(p-W)*(S-ma))),ja=p-ea,fc=m-ec,ja=Math.sqrt(ja*ja+fc*fc*D*D),D=ja/D,ca=180*ca/Math.PI,c=Math.round(100*c)/100,e=Math.round(100*e)/100,ja=Math.round(100*ja/k*100)/100,D=Math.round(100*D/d*100)/100,ca=Math.round(100*ca)/100,d=0<(N-E)*(R-G)-(O-G)*(g-E)?"0":"1",k="0";f.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(ea,ec,p,m,W,S,M,ma)&&this.isReflexAngle(ea,
|
|
|
|
|
ec,p,m,W,S,M,ma)&&(k="1");b.setLastX(c);b.setLastY(e);return'<arc rx="'+(new String(ja)).toString()+'" ry="'+(new String(D)).toString()+'" x="'+(new String(c)).toString()+'" y="'+(new String(e)).toString()+'" x-axis-rotation="'+(new String(ca)).toString()+'" large-arc-flag="'+k+'" sweep-flag="'+d+'"/>'}return""};a.prototype.isReflexAngle=function(a,b,c,f,e,g,m,p){c-=a;f-=b;g-=b;e=m-a;p-=b;b=a=0;c=180*(Math.atan2(f,c)-Math.atan2(b,a))/Math.PI;e=180*(Math.atan2(g,e)-Math.atan2(b,a))/Math.PI;a=180*(Math.atan2(p,
|
|
|
|
|
m)-Math.atan2(b,a))/Math.PI;c=(c-a)%360;e=(e-a)%360;180<c?c-=360:-180>c&&(c+=360);180<e?e-=360:-180>e&&(e+=360);return(0<c&&0>e||0>c&&0<e)&&180<Math.abs(c-e)?!0:!1};return a}(f.mxgraph.io.vsdx.geometry.Row);e.EllipticalArcTo=c;c.__class="com.mxgraph.io.vsdx.geometry.EllipticalArcTo"})(e.geometry||(e.geometry={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,c,f,e,g){a=b.call(this,a,c,f)||this;a.a=e;a.b=g;return a}__extends(a,b);a.prototype.handle=function(a,b){return""};return a}(f.mxgraph.io.vsdx.geometry.Row);e.InfiniteLine=c;c.__class="com.mxgraph.io.vsdx.geometry.InfiniteLine"})(e.geometry||(e.geometry={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,c,f){return b.call(this,a,c,f)||this}__extends(a,b);a.prototype.handle=function(a,b){var d=a.x,c=a.y,k=b.getHeight(),e=b.getWidth();null!=this.x&&null!=this.y&&(d=this.x*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),c=this.y*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());d=Math.round(100*d/e*100)/100;c=Math.round(100*(100-100*c/k))/100;a.x=d;a.y=c;b.setLastX(d);b.setLastY(c);return'<line x="'+
|
|
|
|
@ -1335,7 +1336,7 @@ b.getFontColor$com_mxgraph_io_vsdx_theme_QuickStyleVals(this.getQuickStyleVals()
|
|
|
|
|
0)};c.prototype.getTextLeftMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.LEFT_MARGIN),0)};c.prototype.getTextRightMargin=function(){return this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.RIGHT_MARGIN),0)};c.prototype.getTextStyle=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.STYLE,
|
|
|
|
|
b,f.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,"")};c.prototype.getTextFont=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.FONT,b,f.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,"")};c.prototype.getTextPos=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.POS,b,f.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,
|
|
|
|
|
"")};c.prototype.getTextStrike=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.STRIKETHRU,b,f.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);b=(b=this.getValue(b,""))&&b.equals?b.equals("1"):"1"===b;return b};c.prototype.getTextCase=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.CASE,b,f.mxgraph.io.vsdx.mxVsdxConstants.CHARACTER);return this.getValue(b,"")};c.prototype.getHorizontalAlign=
|
|
|
|
|
function(b,a){var c;c=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.HORIZONTAL_ALIGN,b,f.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);switch(this.getValue(c,"")){case "0":c=a?"left":mxConstants.ALIGN_LEFT;break;case "2":c=a?"right":mxConstants.ALIGN_RIGHT;break;case "3":case "4":c=a?"justify":mxConstants.ALIGN_CENTER;break;default:c=a?"center":mxConstants.ALIGN_CENTER}return c};c.prototype.getIndentFirst=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.INDENT_FIRST,
|
|
|
|
|
function(b,a){var d;d=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.HORIZONTAL_ALIGN,b,f.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);switch(this.getValue(d,"")){case "0":d=a?"left":mxConstants.ALIGN_LEFT;break;case "2":d=a?"right":mxConstants.ALIGN_RIGHT;break;case "3":case "4":d=a?"justify":mxConstants.ALIGN_CENTER;break;default:d=a?"center":mxConstants.ALIGN_CENTER}return d};c.prototype.getIndentFirst=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.INDENT_FIRST,
|
|
|
|
|
b,f.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))).toString()};c.prototype.getIndentLeft=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.INDENT_LEFT,b,f.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};c.prototype.getIndentRight=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.INDENT_RIGHT,
|
|
|
|
|
b,f.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};c.prototype.getSpBefore=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.SPACE_BEFORE,b,f.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};c.prototype.getSpAfter=function(b){b=
|
|
|
|
|
this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.SPACE_AFTER,b,f.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);return(new String(Math.round(this.getScreenNumericalValue$org_w3c_dom_Element$double(b,0))|0)).toString()};c.prototype.getSpLine=function(b){b=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.SPACE_LINE,b,f.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);b=this.getValue(b,"");var a;a=b&&
|
|
|
|
@ -1349,11 +1350,11 @@ b=[];0<b.push(c.DASH);0<b.push(c.SHORT_SPACE);0<b.push(c.SHORT_DASH);0<b.push(c.
|
|
|
|
|
c.lineDashPatterns_$LI$().push(b);b=[];0<b.push(c.XLONG_DASH);0<b.push(c.LONG_SPACE);0<b.push(c.DASH);0<b.push(c.LONG_SPACE);0<b.push(c.DASH);0<b.push(c.LONG_SPACE);0<c.lineDashPatterns_$LI$().push(b);b=[];0<b.push(c.XSHORT_DASH);0<b.push(c.SHORT_SPACE);0<c.lineDashPatterns_$LI$().push(b)};c.getLineDashPattern=function(b){return 0<=b&&23>=b?c.lineDashPatterns_$LI$()[b]:c.lineDashPatterns_$LI$()[0]};return c}();g.__static_initialized=!1;g.vsdxStyleDebug=!1;g.SPACE=4;g.SHORT_SPACE=2;g.LONG_SPACE=6;
|
|
|
|
|
g.DOT=1;g.DASH=8;g.LONG_DASH=12;g.SHORT_DASH=4;g.XLONG_DASH=20;g.XSHORT_DASH=2;e.Style=g;g.__class="com.mxgraph.io.vsdx.Style"})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,c,e){var d=b.call(this)||this;d.__com_mxgraph_io_vsdx_theme_HslClr_hue=a/360;d.__com_mxgraph_io_vsdx_theme_HslClr_sat=c/100;d.__com_mxgraph_io_vsdx_theme_HslClr_lum=e/100;d.color=(new f.mxgraph.io.vsdx.theme.HSLColor(a,c,e)).toRgb();return d}__extends(a,b);return a}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.HslClr=c;c.__class="com.mxgraph.io.vsdx.theme.HslClr"})(e.theme||(e.theme={}))})(g.vsdx||(g.vsdx={}))})(g.io||
|
|
|
|
|
(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a){var c=b.call(this)||this;c.val=a;c.color=new f.mxgraph.io.vsdx.theme.Color(255,255,255);return c}__extends(a,b);return a}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.PrstClr=c;c.__class="com.mxgraph.io.vsdx.theme.PrstClr"})(e.theme||(e.theme={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a){var c=b.call(this)||this;c.isDynamic=!0;c.val=a;return c}__extends(a,b);a.prototype.calcColor=function(a,c){var d;d=this.val;d="phClr".equals?"phClr".equals(d):"phClr"===d;d?this.color=c.getStyleColor(a):(this.color=c.getSchemeColor(this.val),this.isDynamic=!1);b.prototype.calcColor.call(this,a,c)};return a}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.SchemeClr=c;c.__class="com.mxgraph.io.vsdx.theme.SchemeClr"})(e.theme||
|
|
|
|
|
(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a){var d=b.call(this)||this;d.val=a;d.color=new f.mxgraph.io.vsdx.theme.Color(255,255,255);return d}__extends(a,b);return a}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.PrstClr=c;c.__class="com.mxgraph.io.vsdx.theme.PrstClr"})(e.theme||(e.theme={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a){var d=b.call(this)||this;d.isDynamic=!0;d.val=a;return d}__extends(a,b);a.prototype.calcColor=function(a,c){var d;d=this.val;d="phClr".equals?"phClr".equals(d):"phClr"===d;d?this.color=c.getStyleColor(a):(this.color=c.getSchemeColor(this.val),this.isDynamic=!1);b.prototype.calcColor.call(this,a,c)};return a}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.SchemeClr=c;c.__class="com.mxgraph.io.vsdx.theme.SchemeClr"})(e.theme||
|
|
|
|
|
(e.theme={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,c,e){var d=b.call(this)||this;d.r=0;d.g=0;d.b=0;d.r=a;d.g=c;d.b=e;d.color=new f.mxgraph.io.vsdx.theme.Color(a,c,e);return d}__extends(a,b);return a}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.ScrgbClr=c;c.__class="com.mxgraph.io.vsdx.theme.ScrgbClr"})(e.theme||(e.theme={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a){var c=b.call(this)||this;c.hexVal=null;c.hexVal=a;c.color=f.mxgraph.io.vsdx.theme.Color.decodeColorHex(a);return c}__extends(a,b);return a}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.SrgbClr=c;c.__class="com.mxgraph.io.vsdx.theme.SrgbClr"})(e.theme||(e.theme={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a){var d=b.call(this)||this;d.hexVal=null;d.hexVal=a;d.color=f.mxgraph.io.vsdx.theme.Color.decodeColorHex(a);return d}__extends(a,b);return a}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.SrgbClr=c;c.__class="com.mxgraph.io.vsdx.theme.SrgbClr"})(e.theme||(e.theme={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,c){var d=b.call(this)||this;d.lastClr=null;d.val=a;var k=d.lastClr=c;if(null==k)switch(a){case "windowText":k="000000";break;case "window":k="FFFFFF";break;default:k="FFFFFF"}d.color=f.mxgraph.io.vsdx.theme.Color.decodeColorHex(k);return d}__extends(a,b);return a}(f.mxgraph.io.vsdx.theme.OoxmlColor);e.SysClr=c;c.__class="com.mxgraph.io.vsdx.theme.SysClr"})(e.theme||(e.theme={}))})(g.vsdx||(g.vsdx={}))})(g.io||
|
|
|
|
|
(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,c,f,e,g,m,p){return b.call(this,a,c,f,e,g,m,p)||this}__extends(a,b);a.prototype.handle=function(a,c){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=c.getHeight()/f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),k=c.getWidth()/f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();this.x*=k;this.y*=d;this.a*=k;this.b*=d}return b.prototype.handle.call(this,
|
|
|
|
@ -1364,9 +1365,9 @@ b.UNICODE_LINE_SEP=String.fromCharCode(8232));return b.UNICODE_LINE_SEP};b.proto
|
|
|
|
|
this.geomListProcessed=!0}};b.prototype.parseShapeElem=function(a,d){c.prototype.parseShapeElem.call(this,a,d);var k=a.nodeName;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(k,"ForeignData")){var k=function(a,b){for(var c=a.firstChild;null!=c;){if(1==c.nodeType){var k=c;if("rel"==k.nodeName.toLowerCase()&&(k=k.getAttribute("r:id"),null!=k&&0!==k.length)){var c=b.lastIndexOf("/"),f="",e="";try{f=b.substring(0,c),e=b.substring(c,b.length)}catch(O){break}c=d.getRelationship(k,f+"/_rels"+e+".rels");
|
|
|
|
|
if(null!=c){k=c.getAttribute("Target")||"";f=c.getAttribute("Type");c=k.lastIndexOf("/");try{k=k.substring(c+1,k.length)}catch(O){break}return{type:f,target:k}}break}}c=c.nextSibling}},e=a.ownerDocument.vsdxFileName,g=a.getAttribute("ForeignType"),m=a.getAttribute("CompressionType")||"",p=null;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(g,"Bitmap"))m=m.toLowerCase();else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(g,"MetaFile"))m="png";else if(function(a,b){return a&&a.equals?
|
|
|
|
|
a.equals(b):a===b}(g,"Enhanced Metafile")||function(a,b){return a&&a.equals?a.equals(b):a===b}(g,"EnhMetaFile"))m="png";else if("Object"==g){if(p=k(a,e),0<p.type.indexOf("/oleObject"))if(m=d.getRelationship("rId1","visio/embeddings/_rels/"+p.target+".rels"),null!=m){p=m.getAttribute("Target");g=m.getAttribute("Type");try{var B=p.lastIndexOf("/"),p=p.substring(B+1,p.length)}catch(C){return}m="png";p={type:g,target:p}}else return}else return;null==p&&(p=k(a,e));g=p.type;p=p.target;null!=g&&function(a,
|
|
|
|
|
b){var c=a.length-b.length,d=a.indexOf(b,c);return-1!==d&&d===c}(g,"image")&&(this.imageData={},(B=d.getMedia(f.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/media/"+p))?(this.imageData.iData=B,function(a,b){var c=a.length-b.length,d=a.indexOf(b,c);return-1!==d&&d===c}(p.toLowerCase(),".bmp")&&(m="jpg"),this.imageData.iType=m):(this.imageData.iData=b.ERROR_IMAGE,this.imageData.iType="svg+xml"))}else(function(a,b){return a&&a.equals?a.equals(b):a===b})(k,f.mxgraph.io.vsdx.mxVsdxConstants.TEXT)&&(this.text=
|
|
|
|
|
b){var d=a.length-b.length,c=a.indexOf(b,d);return-1!==c&&c===d}(g,"image")&&(this.imageData={},(B=d.getMedia(f.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/media/"+p))?(this.imageData.iData=B,function(a,b){var d=a.length-b.length,c=a.indexOf(b,d);return-1!==c&&c===d}(p.toLowerCase(),".bmp")&&(m="jpg"),this.imageData.iType=m):(this.imageData.iData=b.ERROR_IMAGE,this.imageData.iType="svg+xml"))}else(function(a,b){return a&&a.equals?a.equals(b):a===b})(k,f.mxgraph.io.vsdx.mxVsdxConstants.TEXT)&&(this.text=
|
|
|
|
|
a)};b.prototype.parseSection=function(a){var d=a.getAttribute("N");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Geometry"))null==this.geom&&(this.geom=[]),0<this.geom.push(a);else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Field")){a=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Row");for(var k=0;k<a.length;k++){var d=a[k],e=d.getAttribute("IX")||"";if(0!==e.length)if(null==this.fields&&(this.fields={}),function(a,b){return a&&a.equals?a.equals(b):a===b}("1",
|
|
|
|
|
d.getAttribute("Del")))this.fields[e]="";else{for(var g=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d,"Cell"),m="",p="",B=0;B<g.length;B++){var C=g[B],d=C.getAttribute("N"),C=C.getAttribute("V")||C.textContent||"";switch(d){case "Value":m=C;break;case "Format":p=C}}if(0!==m.length){try{if(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(p,"{{"))var p=p.replace(/m/g,"@").replace(/M/g,"m").replace(/@/g,"M"),A=isNaN(m)?new Date(m):new Date(b.VSDX_START_TIME+Math.floor(864E5*
|
|
|
|
|
d.getAttribute("Del")))this.fields[e]="";else{for(var g=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d,"Cell"),m="",p="",B=0;B<g.length;B++){var C=g[B],d=C.getAttribute("N"),C=C.getAttribute("V")||C.textContent||"";switch(d){case "Value":m=C;break;case "Format":p=C}}if(0!==m.length){try{if(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(p,"{{"))var p=p.replace(/m/g,"@").replace(/M/g,"m").replace(/@/g,"M"),A=isNaN(m)?new Date(m):new Date(b.VSDX_START_TIME+Math.floor(864E5*
|
|
|
|
|
parseFloat(m))),m=Graph.prototype.formatDate(A,p.replace(RegExp("\\{|\\}","g"),""))}catch(D){}this.fields[e]=m}}}}else c.prototype.parseSection.call(this,a)};b.prototype.parseGeom=function(){return this.hasGeomList()?this.geomList.getShapeXML(this):""};b.prototype.getText=function(){return null!=this.text?this.text.textContent:null};b.prototype.getTextChildren=function(){return null!=this.text?this.text.childNodes:null};b.prototype.getWidth=function(){return 0===this.width&&0<this.height?1:this.width};
|
|
|
|
|
b.prototype.getHeight=function(){return 0===this.height&&0<this.width?1:this.height};b.prototype.getRotation=function(){return this.rotation};b.prototype.getStyleMap=function(){return this.styleMap};b.prototype.hasGeom=function(){return!(null==this.geom||0==this.geom.length)};b.prototype.hasGeomList=function(){return null!=this.geomList&&this.geomList.hasGeom()};b.prototype.getPPList=function(a){var b=null;""!=a&&(a=this.getBullet(a),"0"!=a&&(b='<ul style="margin: 0;list-style-type: '+("4"==a?"square":
|
|
|
|
|
"disc")+'">'));return b};b.prototype.getTextParagraphFormated=function(a){var b="",c={};c.align=this.getHorizontalAlign(this.pp,!0);c["margin-left"]=this.getIndentLeft(this.pp);c["margin-right"]=this.getIndentRight(this.pp);c["margin-top"]=this.getSpBefore(this.pp)+"px";c["margin-bottom"]=this.getSpAfter(this.pp)+"px";c["text-indent"]=this.getIndentFirst(this.pp);c.valign=this.getAlignVertical();c.direction=this.getTextDirection(this.pp);return b+=this.insertAttributes(a,c)};b.prototype.getTextCharFormated=
|
|
|
|
@ -1381,8 +1382,8 @@ a.equals(b):a===b}(a.toLowerCase(),"themed")||(b=1===(parseInt(a)&1));return b};
|
|
|
|
|
"1"));0===b?a=mxConstants.ALIGN_TOP:2===b&&(a=mxConstants.ALIGN_BOTTOM);return a};b.prototype.getGeomList=function(){return this.geomList};b.prototype.getLastX=function(){return this.lastX};b.prototype.getLastY=function(){return this.lastY};b.prototype.getLastMoveX=function(){return this.lastMoveX};b.prototype.getLastMoveY=function(){return this.lastMoveY};b.prototype.getLastKnot=function(){return this.lastKnot};b.prototype.setLastX=function(a){this.lastX=a};b.prototype.setLastY=function(a){this.lastY=
|
|
|
|
|
a};b.prototype.setLastMoveX=function(a){this.lastMoveX=a};b.prototype.setLastMoveY=function(a){this.lastMoveY=a};b.prototype.setLastKnot=function(a){this.lastKnot=a};return b}(f.mxgraph.io.vsdx.Style);g.VSDX_START_TIME=-22091688E5;e.Shape=g;g.__class="com.mxgraph.io.vsdx.Shape"})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){var g=function(c){function b(a,b,k,e,g,m){var d=this;d.masterShape=null;d.master=null;d.parentHeight=0;d=c.call(this,b,m)||this;d.htmlLabels=!0;d.rootShape=d;d.shapeName=null;d.shapeIndex=0;d.vertex=!0;d.childShapes={};var n=d.getMasterId(),w=d.getShapeMasterId();d.master=null!=n?e[n]?e[n]:null:g;null!=d.master&&(d.masterShape=null==n&&null!=w?d.master.getSubShape(w):d.master.getMasterShape());e=d.getNameU();g=e.lastIndexOf(".");-1!==g&&(e=e.substring(0,
|
|
|
|
|
g));d.shapeName=e;b=b.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.SHAPES);null!=b&&0<b.length&&(b=b.item(0),d.childShapes=a.parseShapes(b,d.master,!1));b=d.calcRotation();d.rotation=100*b/100;d.rotation%=360;b=a.getCellIntValue("ThemeIndex",-100);-100===b&&(b=parseInt(d.getValue(d.getCellElement$java_lang_String("ThemeIndex"),"0")));m=function(a,b){null==a.entries&&(a.entries=[]);for(var c=0;c<a.entries.length;c++)if(null!=a.entries[c].key.equals&&a.entries[c].key.equals(b)||a.entries[c].key===
|
|
|
|
|
b)return a.entries[c].value;return null}(m.getThemes(),b);a=a.getCellIntValue("VariationColorIndex",0);d.setThemeAndVariant(m,a);b=function(a){null==a.entries&&(a.entries=[]);return a.entries}(d.childShapes);for(e=0;e<b.length;e++)g=b[e].getValue(),g.setRootShape(d),null==g.theme&&g.setThemeAndVariant(m,a);d.quickStyleVals=new f.mxgraph.io.vsdx.theme.QuickStyleVals(parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleEffectsMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFillColor"),
|
|
|
|
|
g));d.shapeName=e;b=b.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.SHAPES);null!=b&&0<b.length&&(b=b.item(0),d.childShapes=a.parseShapes(b,d.master,!1));b=d.calcRotation();d.rotation=100*b/100;d.rotation%=360;b=a.getCellIntValue("ThemeIndex",-100);-100===b&&(b=parseInt(d.getValue(d.getCellElement$java_lang_String("ThemeIndex"),"0")));m=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===
|
|
|
|
|
b)return a.entries[d].value;return null}(m.getThemes(),b);a=a.getCellIntValue("VariationColorIndex",0);d.setThemeAndVariant(m,a);b=function(a){null==a.entries&&(a.entries=[]);return a.entries}(d.childShapes);for(e=0;e<b.length;e++)g=b[e].getValue(),g.setRootShape(d),null==g.theme&&g.setThemeAndVariant(m,a);d.quickStyleVals=new f.mxgraph.io.vsdx.theme.QuickStyleVals(parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleEffectsMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFillColor"),
|
|
|
|
|
"1")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFillMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFontColor"),"1")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleFontMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleLineColor"),"1")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleLineMatrix"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleShadowColor"),
|
|
|
|
|
"1")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleType"),"0")),parseInt(d.getValue(d.getCellElement$java_lang_String("QuickStyleVariation"),"0")));null!=d.masterShape?(d.masterShape.processGeomList(null),d.processGeomList(d.masterShape.getGeomList()),0===d.width&&(d.width=d.getScreenNumericalValue$org_w3c_dom_Element$double(d.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.WIDTH),0)),0===d.height&&(d.height=d.getScreenNumericalValue$org_w3c_dom_Element$double(d.getCellElement$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.HEIGHT),
|
|
|
|
|
0))):d.processGeomList(null);d.vertex=k||null!=d.childShapes&&!function(a){null==a.entries&&(a.entries=[]);return 0==a.entries.length}(d.childShapes)||null!=d.geomList&&(!d.geomList.isNoFill()||1<d.geomList.getGeoCount());d.layerMember=d.getValue(d.getCellElement$java_lang_String("LayerMember"));d.layerMember&&0==d.layerMember.indexOf("0;")&&(d.layerMember=d.layerMember.substr(2));return d}__extends(b,c);b.__static_initialize=function(){b.__static_initialized||(b.__static_initialized=!0,b.__static_initializer_0())};
|
|
|
|
|