|
|
|
@ -1,19 +1,19 @@
|
|
|
|
|
LucidImporter={};
|
|
|
|
|
(function(){function f(a,b){function d(a,b){var d="",n=0,c=a.t;if(a.lk){var h=a.lk;null!=h.v&&0<h.v.length&&"ext"==h.v[0].tp&&(d+='<a href="'+h.v[0].url+'">',g.push("a"),n++)}if(b)if(h=a.l||{},null==c||0!=p&&p==c.v&&Da==h.v)null==c&&(p&&(d+=k(),p=!1),d+='<div style="',g.push("div"),n++);else{p&&(d+=k());p=c.v;Da=h.v;"ul"==c.v?(d+="<ul ",g.push("ul")):(d+="<ol ",g.push("ol"));B.push(1);d+='style="margin: 0px; text-align:'+(a.a?a.a.v:"left")+"; list-style-type:";if("hl"==c.v)d+="upper-roman";else switch(h.v){case "auto":d+=
|
|
|
|
|
"disc";break;case "inv":d+="circle";break;case "disc":d+="circle";break;case "trib":d+="square";break;case "square":d+="square";break;case "dash":d+="square";break;case "heart":d+="disc";break;default:d+="decimal"}d+='">'}else p&&!e&&(d+=k(),p=!1),d+='<span style="',g.push("span"),n++;b&&null!=c&&(e=!0,d+="<li>",g.push("li"),n++,d+='<span style="',g.push("span"),n++);a.s&&(d+="font-size:"+Math.round(.6*a.s.v)+"px;");a.c&&(c=a.c.v,null!=c&&("#"!=c.charAt(0)&&(c="#"+c),c=c.substring(0,7),d+="color:"+
|
|
|
|
|
c+";"));if(a.b&&a.b.v||a.fc&&a.fc.v&&0==a.fc.v.indexOf("Bold"))d+="font-weight: bold;";a.i&&a.i.v&&(d+="font-style: italic;");a.u&&a.u.v&&(d+="text-decoration: underline;");p||(d+="text-align: "+(a.a?a.a.v:"center")+";");a.il&&(d+="margin-left: "+Math.round(.6*a.il.v-(p?21:0))+"px;");a.ir&&(d+="margin-right: "+Math.round(.6*a.ir.v)+"px;");a.mt&&(d+="margin-top: "+Math.round(.6*a.mt.v)+"px;");a.mb&&(d+="margin-bottom: "+Math.round(.6*a.mb.v)+"px;");d+='">';B.push(n);return d}function k(a,b,d,k){a=
|
|
|
|
|
a?a.substring(b,d):"";"\n"==a&&(a="");a=a.replace(/</g,"<").replace(/>/g,">");do for(b=B.pop(),d=0;d<b;d++){var c=g.pop();"li"==c&&(e=!1);a+="</"+c+">"}while(k&&0<g.length);return a}for(var n=[],c=-1,f="";-1<(c=a.indexOf("\n",c+1));)n.push(c+1);b.sort(function(a,b){return a.s-b.s});for(var u={},c=[],m=0;m<b.length;m++){var x=b[m];if(null==u[x.s]){for(var A=0;A<n.length;A++)if(n[A]>x.s){u[x.s]=n[A];break}null==u[x.s]&&(u[x.s]=a.length)}null==x.e&&(x.e=u[x.s]);c.push(x)}c.sort(function(a,b){return a.e-
|
|
|
|
|
b.e});for(var A=m=0,n={},g=[],B=[],p=!1,Da,e=!1,x=u=0;m>=A&&(m<b.length||A<c.length);){var z=b[m],C=c[A];if(z&&C&&z.s<C.e){u=z.s;C=!1;for(0<u-x&&(f+=d(n,C)+k(a,x,u));null!=z&&z.s==u;){if("a"==z.n||"il"==z.n||"ir"==z.n||"mt"==z.n||"mb"==z.n||"t"==z.n)C=!0;n[z.n]=z;z=b[++m]}f+=d(n,C)}else if(C){x=C.e;do delete n[C.n],C=c[++A];while(null!=C&&C.e==x);f+=k(a,u,x);u=x}}return f+=k(null,null,null,!0)}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!=
|
|
|
|
|
(function(){function f(a,b){function d(a,b){var d="",n=0,c=a.t;if(a.lk){var h=a.lk;null!=h.v&&0<h.v.length&&"ext"==h.v[0].tp&&(d+='<a href="'+h.v[0].url+'">',g.push("a"),n++)}if(b)if(h=a.l||{},null==c||0!=B&&B==c.v&&Da==h.v)null==c&&(B&&(d+=k(),B=!1),d+='<div style="',g.push("div"),n++);else{B&&(d+=k());B=c.v;Da=h.v;"ul"==c.v?(d+="<ul ",g.push("ul")):(d+="<ol ",g.push("ol"));p.push(1);d+='style="margin: 0px; text-align:'+(a.a?a.a.v:"left")+"; list-style-type:";if("hl"==c.v)d+="upper-roman";else switch(h.v){case "auto":d+=
|
|
|
|
|
"disc";break;case "inv":d+="circle";break;case "disc":d+="circle";break;case "trib":d+="square";break;case "square":d+="square";break;case "dash":d+="square";break;case "heart":d+="disc";break;default:d+="decimal"}d+='">'}else B&&!e&&(d+=k(),B=!1),d+='<span style="',g.push("span"),n++;b&&null!=c&&(e=!0,d+="<li>",g.push("li"),n++,d+='<span style="',g.push("span"),n++);a.s&&(d+="font-size:"+Math.round(.6*a.s.v)+"px;");a.c&&(c=a.c.v,null!=c&&("#"!=c.charAt(0)&&(c="#"+c),c=c.substring(0,7),d+="color:"+
|
|
|
|
|
c+";"));if(a.b&&a.b.v||a.fc&&a.fc.v&&0==a.fc.v.indexOf("Bold"))d+="font-weight: bold;";a.i&&a.i.v&&(d+="font-style: italic;");a.u&&a.u.v&&(d+="text-decoration: underline;");B||(d+="text-align: "+(a.a?a.a.v:"center")+";");a.il&&(d+="margin-left: "+Math.round(.6*a.il.v-(B?21:0))+"px;");a.ir&&(d+="margin-right: "+Math.round(.6*a.ir.v)+"px;");a.mt&&(d+="margin-top: "+Math.round(.6*a.mt.v)+"px;");a.mb&&(d+="margin-bottom: "+Math.round(.6*a.mb.v)+"px;");d+='">';p.push(n);return d}function k(a,b,d,k){a=
|
|
|
|
|
a?a.substring(b,d):"";"\n"==a&&(a="");a=a.replace(/</g,"<").replace(/>/g,">");do for(b=p.pop(),d=0;d<b;d++){var c=g.pop();"li"==c&&(e=!1);a+="</"+c+">"}while(k&&0<g.length);return a}for(var n=[],c=-1,f="";-1<(c=a.indexOf("\n",c+1));)n.push(c+1);b.sort(function(a,b){return a.s-b.s});for(var u={},c=[],m=0;m<b.length;m++){var x=b[m];if(null==u[x.s]){for(var z=0;z<n.length;z++)if(n[z]>x.s){u[x.s]=n[z];break}null==u[x.s]&&(u[x.s]=a.length)}null==x.e&&(x.e=u[x.s]);c.push(x)}c.sort(function(a,b){return a.e-
|
|
|
|
|
b.e});for(var z=m=0,n={},g=[],p=[],B=!1,Da,e=!1,x=u=0;m>=z&&(m<b.length||z<c.length);){var A=b[m],C=c[z];if(A&&C&&A.s<C.e){u=A.s;C=!1;for(0<u-x&&(f+=d(n,C)+k(a,x,u));null!=A&&A.s==u;){if("a"==A.n||"il"==A.n||"ir"==A.n||"mt"==A.n||"mb"==A.n||"t"==A.n)C=!0;n[A.n]=A;A=b[++m]}f+=d(n,C)}else if(C){x=C.e;do delete n[C.n],C=c[++z];while(null!=C&&C.e==x);f+=k(a,u,x);u=x}}return f+=k(null,null,null,!0)}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;b=b.m;try{for(var d=0;d<b.length;d++)if(0<b[d].s){y=!0;break}if(y)return f(a,b)}catch(la){console.log(la)}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){var n=(c?(Za(n,"overflow")?"":"overflow=width;")+(Za(n,"html")?"":"html=1;"):a(b)+d(b)+k(b)+u(b)+x(b)+A(b)+B(b)+z(b))+C(b)+D(b);return n}function c(a,d,k,c,n){var h="";null!=a&&""!=a&&";"!=a.charAt(a.length-1)&&(h=";");return h+=(n?(Za(a,"overflow")?"":"overflow=width;")+(Za(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,
|
|
|
|
|
function m(b,c){var n=(c?(Za(n,"overflow")?"":"overflow=width;")+(Za(n,"html")?"":"html=1;"):a(b)+d(b)+k(b)+u(b)+x(b)+z(b)+B(b)+C(b))+A(b)+D(b);return n}function c(a,d,k,c,n){var h="";null!=a&&""!=a&&";"!=a.charAt(a.length-1)&&(h=";");return h+=(n?(Za(a,"overflow")?"":"overflow=width;")+(Za(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(!Za(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 u(n);case mxConstants.STYLE_SPACING_LEFT:return x(n);case mxConstants.STYLE_SPACING_RIGHT:return A(n);case mxConstants.STYLE_SPACING_TOP:return B(n);case mxConstants.STYLE_SPACING_BOTTOM:return z(n);
|
|
|
|
|
case mxConstants.STYLE_SPACING:return C(n);case mxConstants.STYLE_VERTICAL_ALIGN:return D(n);case mxConstants.STYLE_STROKECOLOR:return E(n,f);case mxConstants.STYLE_OPACITY:return M(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 X(n,f,h);case mxConstants.STYLE_FLIPH:return b=n.FlipX?"flipH=1;":"",b;case mxConstants.STYLE_FLIPV:return b=
|
|
|
|
|
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(!Za(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 u(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 M(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 X(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 Q(n,f);case mxConstants.STYLE_DASHED:return ma(n);case mxConstants.STYLE_STROKEWIDTH:return ea(n);case mxConstants.STYLE_IMAGE:return $b(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.round(.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 u(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+";";u(a)}d++}return""}function A(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 z(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 C(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+
|
|
|
|
|
b+";"}return""}function u(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+";";u(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+
|
|
|
|
|
";":Ea(mxConstants.STYLE_VERTICAL_ALIGN,a.TextVAlign,"middle")}function E(a,b){return 0==a.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":Ea(mxConstants.STYLE_STROKECOLOR,Z(a.LineColor),"#000000")}function G(a){return null!=a?mxConstants.STYLE_FILLCOLOR+"="+Z(a)+";":""}function O(a){return null!=a?"swimlaneFillColor="+Z(a)+";":""}function M(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 X(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(id,b.Class)?(a-=90,d.geometry.rotate90()):0<=mxUtils.indexOf(jd,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 Z(a){return a?a.substring(0,7):null}function W(a,b){return a&&7<a.length?b+"="+Math.round(parseInt("0x"+a.substr(7))/2.55)+";":""}function Q(a,b){if(null!=a.FillColor)if("object"===typeof a.FillColor){if(null!=a.FillColor.cs&&
|
|
|
|
@ -21,26 +21,26 @@ d.n&&null!=d.v)return"spacingTop="+d.v+";";b++}return""}function z(a){a=e(a);if(
|
|
|
|
|
"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?Ea(mxConstants.STYLE_STROKEWIDTH,Math.round(.6*parseFloat(a.LineWidth)),"1"):
|
|
|
|
|
""}function $b(a,b,d){"ImageSearchBlock2"==b.Class?d=a.URL:"UserImage2Block"==b.Class&&null!=a.ImageFillProps&&null!=a.ImageFillProps.url&&(d=a.ImageFillProps.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 ia(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 ac(a,b,d,k,n,f){var h=
|
|
|
|
|
p(b);if(null!=h){var u=Nb[h.Class];null!=u&&(a.style+=u+";");u=null!=h.Properties?h.Properties:h;if(null!=u){a.value=f?"":g(u);a.style+=c(a.style,u,h,a,y);a.style.includes("strokeColor")||(a.style+=E(u,h));if(null!=u.Link&&0<u.Link.length&&"ext"==u.Link[0].tp)d.setAttributeForCell(a,"link",u.Link[0].url);else if(null!=u.Text){a:{f=e(u.Text);if(null!=f)for(h=0;h<f.length;h++)if(f[h].n=null!=f[h].v&&0<f[h].v.length&&"ext"==f[h].v[0].tp){f=f[h].v[0].url;break a}f=null}null!=f&&d.setAttributeForCell(a,
|
|
|
|
|
"link",f)}f=[];var h=d.convertValueToString(a),x=!1;if(null!=h){for(var A=0;match=kd.exec(h);){var B=match[0],x=!0;if(2<B.length){var la=B.substring(2,B.length-2);"documentName"==la?la="filename":"pageName"==la?la="page":"totalPages"==la?la="pagecount":"page"==la?la="pagenumber":"date:"==la.substring(0,5)?la="date{"+la.substring(5).replace(/MMMM/g,"mmmm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==la.substring(0,16)?la=la.replace(/MMMM/g,"mmmm").replace(/YYYY/g,"yyyy"):"i18nDate:"==la.substring(0,
|
|
|
|
|
9)&&(la="date{"+la.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");la="%"+la+"%";f.push(h.substring(A,match.index)+(null!=la?la:B));A=match.index+B.length}}x&&(f.push(h.substring(A)),d.setAttributeForCell(a,"label",f.join("")),d.setAttributeForCell(a,"placeholders","1"))}for(var z in u)if(u.hasOwnProperty(z)&&z.toString().startsWith("ShapeData_"))try{var C=u[z],D=mxUtils.trim(C.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,
|
|
|
|
|
"");ia(a,D,C.Value,d)}catch(hd){window.console&&console.log("Ignored "+z+":",hd)}u.Title&&u.Text&&(z=a.geometry,z=new mxCell(g(u.Title),new mxGeometry(0,z.height,z.width,10),"strokeColor=none;fillColor=none;"),z.vertex=!0,a.insert(z),z.style+=m(u.Title,y));if(a.edge){a.style=null!=u.Rounding&&"diagonal"!=u.Shape?a.style+("rounded=1;arcSize="+u.Rounding+";"):a.style+"rounded=0;";if("diagonal"!=u.Shape)if(null!=u.ElbowPoints&&0<u.ElbowPoints.length)for(a.geometry.points=[],z=0;z<u.ElbowPoints.length;z++)a.geometry.points.push(new mxPoint(Math.round(.6*
|
|
|
|
|
u.ElbowPoints[z].x+Eb),Math.round(.6*u.ElbowPoints[z].y+Fb)));else"elbow"==u.Shape?a.style=null!=u.Endpoint1.Block&&null!=u.Endpoint2.Block?a.style+"edgeStyle=orthogonalEdgeStyle;":a.style+"edgeStyle=elbowEdgeStyle;":null!=u.Endpoint1.Block&&null!=u.Endpoint2.Block&&(a.style+="edgeStyle=orthogonalEdgeStyle;","curve"==u.Shape&&(a.style+="curved=1;"));null!=u.Endpoint1.Style&&(null!=Ob[u.Endpoint1.Style]?a.style+="startArrow="+Ob[u.Endpoint1.Style]+";":window.console&&console.log("Unknown endpoint style: "+
|
|
|
|
|
u.Endpoint1.Style));null!=u.Endpoint2.Style&&(null!=Ob[u.Endpoint2.Style]?a.style+="endArrow="+Ob[u.Endpoint2.Style].replace(/startSize/g,"endSize")+";":window.console&&console.log("Unknown endpoint style: "+u.Endpoint2.Style));C=null!=u.ElbowControlPoints&&0<u.ElbowControlPoints.length?u.ElbowControlPoints:null!=u.BezierJoints&&0<u.BezierJoints.length?u.BezierJoints:u.Joints;if(null!=C)for(a.geometry.points=[],z=0;z<C.length;z++)D=C[z].p?C[z].p:C[z],a.geometry.points.push(new mxPoint(Math.round(.6*
|
|
|
|
|
D.x+Eb),Math.round(.6*D.y+Fb)));z=!1;null==u.ElbowPoints&&null!=u.Endpoint1.Block&&u.Endpoint1.Block==u.Endpoint2.Block&&null==u.ElbowControlPoints&&null!=k&&null!=n&&(k=new mxPoint(Math.round(k.geometry.x+k.geometry.width*u.Endpoint1.LinkX),Math.round(k.geometry.y+k.geometry.height*u.Endpoint1.LinkY)),n=new mxPoint(Math.round(n.geometry.x+n.geometry.width*u.Endpoint2.LinkX),Math.round(n.geometry.y+n.geometry.height*u.Endpoint2.LinkY)),Eb=k.x==n.x?20:0,Fb=0,z=new mxPoint(k.x+Eb,k.y+Fb),C=new mxPoint(n.x+
|
|
|
|
|
Eb,n.y+Fb),z.generated=!0,C.generated=!0,a.geometry.points=[z,C],implicitX=k.y==n.y,z=k.x==n.x);xb(a,u.Endpoint1,!0,z);xb(a,u.Endpoint2,!1,z)}}}null!=b.id&&ia(a,"lucidchartObjectId",b.id,d)}function oc(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+Eb),Math.round(.6*n.y+Fb),Math.round(.6*n.w),Math.round(.6*n.h)),"html=1;whiteSpace=wrap;");
|
|
|
|
|
"link",f)}f=[];var h=d.convertValueToString(a),x=!1;if(null!=h){for(var z=0;match=kd.exec(h);){var B=match[0],x=!0;if(2<B.length){var la=B.substring(2,B.length-2);"documentName"==la?la="filename":"pageName"==la?la="page":"totalPages"==la?la="pagecount":"page"==la?la="pagenumber":"date:"==la.substring(0,5)?la="date{"+la.substring(5).replace(/MMMM/g,"mmmm").replace(/YYYY/g,"yyyy")+"}":"lastModifiedTime"==la.substring(0,16)?la=la.replace(/MMMM/g,"mmmm").replace(/YYYY/g,"yyyy"):"i18nDate:"==la.substring(0,
|
|
|
|
|
9)&&(la="date{"+la.substring(9).replace(/i18nShort/g,"shortDate").replace(/i18nMediumWithTime/g,"mmm d, yyyy hh:MM TT")+"}");la="%"+la+"%";f.push(h.substring(z,match.index)+(null!=la?la:B));z=match.index+B.length}}x&&(f.push(h.substring(z)),d.setAttributeForCell(a,"label",f.join("")),d.setAttributeForCell(a,"placeholders","1"))}for(var A in u)if(u.hasOwnProperty(A)&&A.toString().startsWith("ShapeData_"))try{var C=u[A],D=mxUtils.trim(C.Label).replace(/[^a-z0-9]+/ig,"_").replace(/^\d+/,"").replace(/_+$/,
|
|
|
|
|
"");ia(a,D,C.Value,d)}catch(hd){window.console&&console.log("Ignored "+A+":",hd)}u.Title&&u.Text&&(A=a.geometry,A=new mxCell(g(u.Title),new mxGeometry(0,A.height,A.width,10),"strokeColor=none;fillColor=none;"),A.vertex=!0,a.insert(A),A.style+=m(u.Title,y));if(a.edge){a.style=null!=u.Rounding&&"diagonal"!=u.Shape?a.style+("rounded=1;arcSize="+u.Rounding+";"):a.style+"rounded=0;";if("diagonal"!=u.Shape)if(null!=u.ElbowPoints&&0<u.ElbowPoints.length)for(a.geometry.points=[],A=0;A<u.ElbowPoints.length;A++)a.geometry.points.push(new mxPoint(Math.round(.6*
|
|
|
|
|
u.ElbowPoints[A].x+Eb),Math.round(.6*u.ElbowPoints[A].y+Fb)));else"elbow"==u.Shape?a.style=null!=u.Endpoint1.Block&&null!=u.Endpoint2.Block?a.style+"edgeStyle=orthogonalEdgeStyle;":a.style+"edgeStyle=elbowEdgeStyle;":null!=u.Endpoint1.Block&&null!=u.Endpoint2.Block&&(a.style+="edgeStyle=orthogonalEdgeStyle;","curve"==u.Shape&&(a.style+="curved=1;"));null!=u.Endpoint1.Style&&(null!=Ob[u.Endpoint1.Style]?a.style+="startArrow="+Ob[u.Endpoint1.Style]+";":window.console&&console.log("Unknown endpoint style: "+
|
|
|
|
|
u.Endpoint1.Style));null!=u.Endpoint2.Style&&(null!=Ob[u.Endpoint2.Style]?a.style+="endArrow="+Ob[u.Endpoint2.Style].replace(/startSize/g,"endSize")+";":window.console&&console.log("Unknown endpoint style: "+u.Endpoint2.Style));C=null!=u.ElbowControlPoints&&0<u.ElbowControlPoints.length?u.ElbowControlPoints:null!=u.BezierJoints&&0<u.BezierJoints.length?u.BezierJoints:u.Joints;if(null!=C)for(a.geometry.points=[],A=0;A<C.length;A++)D=C[A].p?C[A].p:C[A],a.geometry.points.push(new mxPoint(Math.round(.6*
|
|
|
|
|
D.x+Eb),Math.round(.6*D.y+Fb)));A=!1;null==u.ElbowPoints&&null!=u.Endpoint1.Block&&u.Endpoint1.Block==u.Endpoint2.Block&&null==u.ElbowControlPoints&&null!=k&&null!=n&&(k=new mxPoint(Math.round(k.geometry.x+k.geometry.width*u.Endpoint1.LinkX),Math.round(k.geometry.y+k.geometry.height*u.Endpoint1.LinkY)),n=new mxPoint(Math.round(n.geometry.x+n.geometry.width*u.Endpoint2.LinkX),Math.round(n.geometry.y+n.geometry.height*u.Endpoint2.LinkY)),Eb=k.x==n.x?20:0,Fb=0,A=new mxPoint(k.x+Eb,k.y+Fb),C=new mxPoint(n.x+
|
|
|
|
|
Eb,n.y+Fb),A.generated=!0,C.generated=!0,a.geometry.points=[A,C],implicitX=k.y==n.y,A=k.x==n.x);xb(a,u.Endpoint1,!0,A);xb(a,u.Endpoint2,!1,A)}}}null!=b.id&&ia(a,"lucidchartObjectId",b.id,d)}function oc(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+Eb),Math.round(.6*n.y+Fb),Math.round(.6*n.w),Math.round(.6*n.h)),"html=1;whiteSpace=wrap;");
|
|
|
|
|
v.vertex=!0;ac(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);Hd(v,k);return v}function qa(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;ac(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",u="";if(null!=a&&null!=a.Value&&null!=
|
|
|
|
|
a.Value.m)for(var u=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));u+="fontColor="+x+";"}a=new d(c,k,"text;html=1;resizable=0;labelBackgroundColor=#ffffff;align=center;verticalAlign=middle;"+(u+";fontSize="+f+";"));a.geometry.relative=!0;a.vertex=!0;b.insert(a);return b}function Ea(a,b,d,k){null!=b&&null!=k&&(b=k(b));return null!=b&&b!=d?a+"="+
|
|
|
|
|
b+";":""}function xb(a,b,d,k,n){null!=b&&null!=b.LinkX&&null!=b.LinkY&&(a.style+=(k?"":(d?"exitX":"entryX")+"="+b.LinkX+";")+(n?"":(d?"exitY":"entryY")+"="+b.LinkY+";")+(d?"exitPerimeter":"entryPerimeter")+"=1;")}function yb(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,u=-Infinity,m=a.Members,x=[],A;for(A in m){var g=b[A];null!=g?x.push(g):d[A]=k}x.sort(function(a,
|
|
|
|
|
b+";":""}function xb(a,b,d,k,n){null!=b&&null!=b.LinkX&&null!=b.LinkY&&(a.style+=(k?"":(d?"exitX":"entryX")+"="+b.LinkX+";")+(n?"":(d?"exitY":"entryY")+"="+b.LinkY+";")+(d?"exitPerimeter":"entryPerimeter")+"=1;")}function yb(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,u=-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),u=Math.max(u,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=u-c;if(null!=k.children)for(b=0;b<k.children.length;b++){var B=k.children[b].geometry;B.x-=n;B.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(pa){console.log(pa)}}function Uc(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,u=null!=d.Endpoint2.Block?c[d.Endpoint2.Block]:null,x=qa(b,a,h,u);null==h&&null!=d.Endpoint1&&x.geometry.setTerminalPoint(new mxPoint(Math.round(.6*d.Endpoint1.x),Math.round(.6*d.Endpoint1.y)),!0);null==u&&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,A=m.geometry;k(l.sourcePoint,A);k(l.targetPoint,A);k(l.offset,A);l=l.points;if(null!=l)for(var g=0;g<l.length;g++)k(l[g],A)}n.push(a.addCell(x,m,null,h,u))},n=[],c={},f={},u=[];if(null!=b.Blocks)for(var m in b.Blocks){var x=b.Blocks[m];x.id=m;var A=!1;null!=Nb[x.Class]&&"mxCompositeShape"==Nb[x.Class]&&(c[x.id]=Vc(x,n,a),u.push(x),A=!0);A||(c[x.id]=oc(x,
|
|
|
|
|
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,u))},n=[],c={},f={},u=[];if(null!=b.Blocks)for(var m in b.Blocks){var x=b.Blocks[m];x.id=m;var z=!1;null!=Nb[x.Class]&&"mxCompositeShape"==Nb[x.Class]&&(c[x.id]=Vc(x,n,a),u.push(x),z=!0);z||(c[x.id]=oc(x,
|
|
|
|
|
a),u.push(x))}else{for(var g=0;g<b.Objects.length;g++)x=b.Objects[g],null!=x.Action&&"mxCompositeShape"==Nb[x.Action.Class]?c[x.id]=Vc(x,n,a):x.IsBlock&&null!=x.Action&&null!=x.Action.Properties&&(c[x.id]=oc(x,a)),u.push(x);for(g=0;g<b.Objects.length;g++)if(x=b.Objects[g],x.IsGroup){var B=yb(x,c,f);B&&(c[x.id]=B,u.push(x))}}if(null!=b.Groups)try{for(m in b.Groups)if(x=b.Groups[m],x.id=m,B=yb(x,c,f))c[x.id]=B,u.push(x)}catch(hd){console.log(hd)}if(null!=b.Lines)for(m in b.Lines)x=b.Lines[m],x.id=m,
|
|
|
|
|
u.push(x);u.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<u.length;g++){var x=u[g],e=c[x.id];if(null!=e){if(null==e.parent)if(e.lucidLayerInfo){var z=new mxCell;a.addCell(z,a.model.root);z.setVisible(e.lucidLayerInfo.visible);e.lucidLayerInfo.locked&&z.setStyle("locked=1;");z.setValue(e.lucidLayerInfo.name);delete e.lucidLayerInfo;a.addCell(e,z)}else n.push(a.addCell(e))}else x.IsLine&&
|
|
|
|
|
u.push(x);u.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<u.length;g++){var x=u[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)}d||a.setSelectionCells(n)}finally{a.getModel().endUpdate()}}function sb(){var a=new Graph;a.setExtendParents(!1);a.setExtendParentsOnAdd(!1);a.setConstrainChildren(!1);a.setHtmlLabels(!0);a.getModel().maintainEdgeParent=!1;return a}function Pb(a,b,d,k,n,c,f,u){this.nurbsValues=[1,3,0,0,100*(a+d),100-100*(1-(b+k)),0,1,100*(n+f),100-100*(1-(c+u)),0,1]}function Jd(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],u=f.FillColor,x=f.StrokeColor,m=f.LineWidth,A=f.Points,g=f.Lines,B=['<shape strokewidth="inherit"><foreground>'];B.push("<path>");for(var p=null,e=0;e<g.length;e++){var z=g[e];if(p!=z.p1){var C=A[z.p1].x,D=A[z.p1].y,C=100*C/k,D=100*D/n,C=Math.round(100*C)/100,D=Math.round(100*D)/100;B.push('<move x="'+C+'" y="'+D+'"/>')}if(null!=z.n1){var E;var X=A[z.p2].x,y=A[z.p2].y,Z=k,l=n,O=new Pb(A[z.p1].x,A[z.p1].y,z.n1.x,z.n1.y,A[z.p2].x,A[z.p2].y,
|
|
|
|
|
z.n2.x,z.n2.y);if(2<=O.getSize()){O.getX(0);O.getY(0);O.getX(1);O.getY(1);for(var X=Math.round(100*X/Z*100)/100,y=Math.round(100*y/l*100)/100,Z=[],l=[],ca=[],Q=O.getSize(),W=0;W<Q-1;W+=3)Z.push(new mxPoint(O.getX(W),O.getY(W))),l.push(new mxPoint(O.getX(W+1),O.getY(W+1))),W<Q-2?ca.push(new mxPoint(O.getX(W+2),O.getY(W+2))):ca.push(new mxPoint(X,y));for(var G="",W=0;W<Z.length;W++)G+='<curve x1="'+Z[W].x+'" y1="'+Z[W].y+'" x2="'+l[W].x+'" y2="'+l[W].y+'" x3="'+ca[W].x+'" y3="'+ca[W].y+'"/>';E=G}else E=
|
|
|
|
|
void 0;B.push(E)}else C=A[z.p2].x,D=A[z.p2].y,C=100*C/k,D=100*D/n,C=Math.round(100*C)/100,D=Math.round(100*D)/100,B.push('<line x="'+C+'" y="'+D+'"/>');p=z.p2}B.push("</path>");B.push("<fillstroke/>");B.push("</foreground></shape>");d.push({shapeStencil:"stencil("+Graph.compress(B.join(""))+")",FillColor:u,LineColor:x,LineWidth:m})}LucidImporter.stencilsMap[a]={text:b.Text,w:k,h:n,stencils:d}}catch(md){console.log("Stencil parsing error:",md)}}function tb(a,b,d,k,n,c,f,u){a=new mxCell("",new mxGeometry(a,
|
|
|
|
|
b.BoundingBox.h,c=0;c<b.Shapes.length;c++){var f=b.Shapes[c],u=f.FillColor,x=f.StrokeColor,m=f.LineWidth,z=f.Points,g=f.Lines,B=['<shape strokewidth="inherit"><foreground>'];B.push("<path>");for(var p=null,e=0;e<g.length;e++){var A=g[e];if(p!=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;B.push('<move x="'+C+'" y="'+D+'"/>')}if(null!=A.n1){var E;var X=z[A.p2].x,y=z[A.p2].y,Z=k,l=n,O=new Pb(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<=O.getSize()){O.getX(0);O.getY(0);O.getX(1);O.getY(1);for(var X=Math.round(100*X/Z*100)/100,y=Math.round(100*y/l*100)/100,Z=[],l=[],ca=[],Q=O.getSize(),W=0;W<Q-1;W+=3)Z.push(new mxPoint(O.getX(W),O.getY(W))),l.push(new mxPoint(O.getX(W+1),O.getY(W+1))),W<Q-2?ca.push(new mxPoint(O.getX(W+2),O.getY(W+2))):ca.push(new mxPoint(X,y));for(var G="",W=0;W<Z.length;W++)G+='<curve x1="'+Z[W].x+'" y1="'+Z[W].y+'" x2="'+l[W].x+'" y2="'+l[W].y+'" x3="'+ca[W].x+'" y3="'+ca[W].y+'"/>';E=G}else E=
|
|
|
|
|
void 0;B.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,B.push('<line x="'+C+'" y="'+D+'"/>');p=A.p2}B.push("</path>");B.push("<fillstroke/>");B.push("</foreground></shape>");d.push({shapeStencil:"stencil("+Graph.compress(B.join(""))+")",FillColor:u,LineColor:x,LineWidth:m})}LucidImporter.stencilsMap[a]={text:b.Text,w:k,h:n,stencils:d}}catch(md){console.log("Stencil parsing error:",md)}}function tb(a,b,d,k,n,c,f,u){a=new mxCell("",new mxGeometry(a,
|
|
|
|
|
b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;f.insert(a);c=[a];d=d.clone();u.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,u,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);u=[d];n=n.clone();a.insertEdge(n,!0);d.insertEdge(n,!1);u.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 ja(a,b,d,k,n,f,u,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,u,x,f);f.value=g(u);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,
|
|
|
|
@ -50,12 +50,12 @@ b.Class&&"GCPInputPhone"!==b.Class&&"GCPInputBlank"!==b.Class||(r+=20);v=new mxC
|
|
|
|
|
r),"strokeColor=none;fillColor=none;")):(sb=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),pa=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);sb.vertex=!0;v.insert(sb);sb.style+=c(sb.style,h,e,sb);pa.vertex=!0;pa.value=g(h);v.insert(pa);pa.style+=c(pa.style,h,e,pa,y);break;case "BPMNAdvancedPoolBlockRotated":case "UMLMultiLanePoolRotatedBlock":case "UMLMultiLanePoolBlock":case "BPMNAdvancedPoolBlock":case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":case "UMLSwimLaneBlockV2":var Da=
|
|
|
|
|
"MainText",yb=null,Uc="HeaderFill_",Pb="BodyFill_",Tc=25,gd=25,Za=0;if(null!=h.Lanes)Za=h.Lanes.length;else if(null!=h.PrimaryLane){for(var Nb=function(a){if(a)32>a?a=32:208<a&&(a=208);else return 0;return.6*a},Za=h.PrimaryLane.length,l=r=t=0;l<Za;l++)t+=h.PrimaryLane[l];for(l=0;l<h.SecondaryLane.length;l++)r+=h.SecondaryLane[l];Tc=Nb(h.PrimaryPoolTitleHeight);gd=Nb(h.PrimaryLaneTitleHeight);t*=.6;r=.6*r+Tc+gd;v.geometry.width=t;v.geometry.height=r;Da="poolPrimaryTitleKey";Uc="PrimaryLaneHeaderFill_";
|
|
|
|
|
Pb="CellFill_0,";yb=h.PrimaryLaneTextAreaIds;if(null==yb)for(yb=[],l=0;l<Za;l++)yb.push("Primary_"+l)}if(0==h.IsPrimaryLaneVertical){h.Rotation=-1.5707963267948966;var Ob=v.geometry.x,Vc=v.geometry.y}var ld=0!=h.Rotation,Id=0<xb.indexOf("Pool"),id=0==xb.indexOf("BPMN"),md=null!=h[Da];v.style=(Id?"swimlane;startSize="+Tc+";":"fillColor=none;strokeColor=none;pointerEvents=0;")+"html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;"+(ld?"horizontalStack=0;":
|
|
|
|
|
"");v.style+=c(v.style,h,e,v);md&&(v.value=g(h[Da]),v.style+=(y?"overflow=width;":a(h[Da])+d(h[Da])+k(h[Da])+u(h[Da],v)+x(h[Da])+A(h[Da])+B(h[Da])+z(h[Da]))+C(h[Da])+D(h[Da]));for(var Kd=0,zb=[],jd="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;startSize="+gd+";dropTarget=0;rounded=0;"+(ld?"horizontal=0;":"")+(id?"swimlaneLine=0;fillColor=none;":""),S=h.Rotation=0;S<Za;S++){if(null==yb)var Wc=parseFloat(h.Lanes[S].p),l=parseInt(h.Lanes[S].tid)||S,Ra="Lane_"+l;else Wc=.6*
|
|
|
|
|
h.PrimaryLane[S]/t,l=S,Ra=yb[S];var Ld=t*Kd,Xc=Id?Tc:0;zb.push(new mxCell("",ld?new mxGeometry(Xc,Ld,r-Xc,t*Wc):new mxGeometry(Ld,Xc,t*Wc,r-Xc),jd));zb[S].vertex=!0;v.insert(zb[S]);zb[S].value=g(h[Ra]);zb[S].style+=c(zb[S].style,h,e,zb[S],y)+(y?"":a(h[Ra])+d(h[Ra])+k(h[Ra])+u(h[Ra],zb[S])+x(h[Ra])+A(h[Ra])+B(h[Ra])+z(h[Ra]))+C(h[Ra])+D(h[Ra])+G(h[Uc+l])+O(h[Pb+l]);Kd+=Wc}null!=Ob&&(v.geometry.x=Ob,v.geometry.y=Vc);break;case "UMLMultidimensionalSwimlane":var Qb=0,Rb=0,nd=null,od=null;if(null!=h.Rows&&
|
|
|
|
|
"");v.style+=c(v.style,h,e,v);md&&(v.value=g(h[Da]),v.style+=(y?"overflow=width;":a(h[Da])+d(h[Da])+k(h[Da])+u(h[Da],v)+x(h[Da])+z(h[Da])+B(h[Da])+C(h[Da]))+A(h[Da])+D(h[Da]));for(var Kd=0,zb=[],jd="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;startSize="+gd+";dropTarget=0;rounded=0;"+(ld?"horizontal=0;":"")+(id?"swimlaneLine=0;fillColor=none;":""),S=h.Rotation=0;S<Za;S++){if(null==yb)var Wc=parseFloat(h.Lanes[S].p),l=parseInt(h.Lanes[S].tid)||S,Ra="Lane_"+l;else Wc=.6*
|
|
|
|
|
h.PrimaryLane[S]/t,l=S,Ra=yb[S];var Ld=t*Kd,Xc=Id?Tc:0;zb.push(new mxCell("",ld?new mxGeometry(Xc,Ld,r-Xc,t*Wc):new mxGeometry(Ld,Xc,t*Wc,r-Xc),jd));zb[S].vertex=!0;v.insert(zb[S]);zb[S].value=g(h[Ra]);zb[S].style+=c(zb[S].style,h,e,zb[S],y)+(y?"":a(h[Ra])+d(h[Ra])+k(h[Ra])+u(h[Ra],zb[S])+x(h[Ra])+z(h[Ra])+B(h[Ra])+C(h[Ra]))+A(h[Ra])+D(h[Ra])+G(h[Uc+l])+O(h[Pb+l]);Kd+=Wc}null!=Ob&&(v.geometry.x=Ob,v.geometry.y=Vc);break;case "UMLMultidimensionalSwimlane":var Qb=0,Rb=0,nd=null,od=null;if(null!=h.Rows&&
|
|
|
|
|
null!=h.Columns)var Qb=h.Rows.length,Rb=h.Columns.length,qc=.6*h.TitleHeight||25,rc=.6*h.TitleWidth||25;else if(null!=h.PrimaryLane&&null!=h.SecondaryLane){Qb=h.SecondaryLane.length;Rb=h.PrimaryLane.length;rc=.6*h.SecondaryLaneTitleHeight||25;qc=.6*h.PrimaryLaneTitleHeight||25;for(l=r=t=0;l<Qb;l++)r+=h.SecondaryLane[l];for(l=0;l<Rb;l++)t+=h.PrimaryLane[l];t=.6*t+rc;r=.6*r+qc;v.geometry.width=t;v.geometry.height=r;nd=h.SecondaryLaneTextAreaIds;od=h.PrimaryLaneTextAreaIds}v.style="group;";var pd=new mxCell("",
|
|
|
|
|
new mxGeometry(0,qc,t,r-qc),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;horizontalStack=0;");pd.vertex=!0;var qd=new mxCell("",new mxGeometry(rc,0,t-rc,r),"fillColor=none;strokeColor=none;html=1;whiteSpace=wrap;container=1;collapsible=0;childLayout=stackLayout;resizeParent=1;dropTarget=0;");qd.vertex=!0;v.insert(pd);v.insert(qd);for(var na=0,kd="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;horizontal=0;startSize="+
|
|
|
|
|
rc+";",S=0;S<Qb;S++){if(null==nd)var rd=.6*parseInt(h.Rows[S].height),l=parseInt(h.Rows[S].id)||S,Sa="Row_"+l;else rd=.6*h.SecondaryLane[S],Sa=nd[S];var Gb=new mxCell("",new mxGeometry(0,na,t,rd),kd),na=na+rd;Gb.vertex=!0;pd.insert(Gb);Gb.value=g(h[Sa]);Gb.style+=c(Gb.style,h,e,Gb,y)+(y?"":a(h[Sa])+d(h[Sa])+k(h[Sa])+u(h[Sa],Gb)+x(h[Sa])+A(h[Sa])+B(h[Sa])+z(h[Sa]))+C(h[Sa])+D(h[Sa])}for(var me="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;startSize="+qc+";",
|
|
|
|
|
S=qa=0;S<Rb;S++){if(null==od)var bc=.6*parseInt(h.Columns[S].width),l=parseInt(h.Columns[S].id)||S,Ta="Column_"+l;else bc=.6*h.PrimaryLane[S],Ta=od[S];var Hb=new mxCell("",new mxGeometry(qa,0,bc,r),me),qa=qa+bc;Hb.vertex=!0;qd.insert(Hb);Hb.value=g(h[Ta]);Hb.style+=c(Hb.style,h,e,Hb,y)+(y?"":a(h[Ta])+d(h[Ta])+k(h[Ta])+u(h[Ta],Hb)+x(h[Ta])+A(h[Ta])+B(h[Ta])+z(h[Ta]))+C(h[Ta])+D(h[Ta])}break;case "AndroidDevice":if(null!=h.AndroidDeviceName){v.style="fillColor=#000000;strokeColor=#000000;";var Ib=null,
|
|
|
|
|
rc+";",S=0;S<Qb;S++){if(null==nd)var rd=.6*parseInt(h.Rows[S].height),l=parseInt(h.Rows[S].id)||S,Sa="Row_"+l;else rd=.6*h.SecondaryLane[S],Sa=nd[S];var Gb=new mxCell("",new mxGeometry(0,na,t,rd),kd),na=na+rd;Gb.vertex=!0;pd.insert(Gb);Gb.value=g(h[Sa]);Gb.style+=c(Gb.style,h,e,Gb,y)+(y?"":a(h[Sa])+d(h[Sa])+k(h[Sa])+u(h[Sa],Gb)+x(h[Sa])+z(h[Sa])+B(h[Sa])+C(h[Sa]))+A(h[Sa])+D(h[Sa])}for(var me="swimlane;html=1;whiteSpace=wrap;container=1;connectable=0;collapsible=0;dropTarget=0;startSize="+qc+";",
|
|
|
|
|
S=qa=0;S<Rb;S++){if(null==od)var bc=.6*parseInt(h.Columns[S].width),l=parseInt(h.Columns[S].id)||S,Ta="Column_"+l;else bc=.6*h.PrimaryLane[S],Ta=od[S];var Hb=new mxCell("",new mxGeometry(qa,0,bc,r),me),qa=qa+bc;Hb.vertex=!0;qd.insert(Hb);Hb.value=g(h[Ta]);Hb.style+=c(Hb.style,h,e,Hb,y)+(y?"":a(h[Ta])+d(h[Ta])+k(h[Ta])+u(h[Ta],Hb)+x(h[Ta])+z(h[Ta])+B(h[Ta])+C(h[Ta]))+A(h[Ta])+D(h[Ta])}break;case "AndroidDevice":if(null!=h.AndroidDeviceName){v.style="fillColor=#000000;strokeColor=#000000;";var Ib=null,
|
|
|
|
|
sc=null,tc=null;if("Tablet"==h.AndroidDeviceName||"Mini Tablet"==h.AndroidDeviceName)v.style+="shape=mxgraph.android.tab2;",Ib=new mxCell("",new mxGeometry(.112*t,.077*r,.77*t,.85*r),""),h.KeyboardShown&&(sc=new mxCell("",new mxGeometry(.112*t,.727*r,.77*t,.2*r),"shape=mxgraph.android.keyboard;")),h.FullScreen||(tc=new mxCell("",new mxGeometry(.112*t,.077*r,.77*t,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*r+";"));else if("Large Phone"==
|
|
|
|
|
h.AndroidDeviceName||"Phone"==h.AndroidDeviceName)v.style+="shape=mxgraph.android.phone2;",Ib=new mxCell("",new mxGeometry(.04*t,.092*r,.92*t,.816*r),""),h.KeyboardShown&&(sc=new mxCell("",new mxGeometry(.04*t,.708*r,.92*t,.2*r),"shape=mxgraph.android.keyboard;")),h.FullScreen||(tc=new mxCell("",new mxGeometry(.04*t,.092*r,.92*t,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*r+";"));Ib.vertex=!0;v.insert(Ib);"Dark"==h.Scheme?Ib.style+=
|
|
|
|
|
"fillColor=#111111;":"Light"==h.Scheme&&(Ib.style+="fillColor=#ffffff;");null!=sc&&(sc.vertex=!0,v.insert(sc));null!=tc&&(tc.vertex=!0,v.insert(tc))}v.style+=c(v.style,h,e,v);break;case "AndroidAlertDialog":var $a=new mxCell("",new mxGeometry(0,0,t,30),"strokeColor=none;fillColor=none;spacingLeft=9;");$a.vertex=!0;v.insert($a);var ra=new mxCell("",new mxGeometry(0,25,t,10),"shape=line;strokeColor=#33B5E5;");ra.vertex=!0;v.insert(ra);var uc=new mxCell("",new mxGeometry(0,30,t,r-30),"strokeColor=none;fillColor=none;verticalAlign=top;");
|
|
|
|
@ -86,7 +86,7 @@ Math.round(na+.25*r),Math.round(t),Math.round(.5*r)),"html=1;whiteSpace=wrap;str
|
|
|
|
|
new mxGeometry(.35*t,0,.3*t,r),"strokeColor=none;fillColor=none;");U.vertex=!0;v.insert(U);U.style+=m(h.Text,y);var Ia=new mxCell(g(h.Carrier),new mxGeometry(.09*t,0,.2*t,r),"strokeColor=none;fillColor=none;");Ia.vertex=!0;v.insert(Ia);Ia.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);U=new mxCell(g(h.LeftText),new mxGeometry(.03*t,0,.3*t,r),"strokeColor=none;fillColor=none;");U.vertex=!0;v.insert(U);U.style+=m(h.LeftText,y);Ia=new mxCell(g(h.RightText),new mxGeometry(.65*t,0,.3*t,r),"strokeColor=none;fillColor=none;");Ia.vertex=!0;v.insert(Ia);Ia.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":db=parseInt(h.Tabs);La=t;v.style+="shape=partialRectangle;right=0;left=0;bottom=0;strokeColor=#979797;";v.style+=c(v.style,h,e,v);0<db&&(La/=db);ga=[];ra=[];for(l=0;l<db;l++)ga[l]=new mxCell("",new mxGeometry(l*La,0,La,r),"strokeColor=none;"),ga[l].vertex=!0,v.insert(ga[l]),ga[l].value=g(h["Tab_"+l]),ga[l].style+=y?"overflow=width;html=1;":a(h["Tab_"+l])+d(h["Tab_"+l])+
|
|
|
|
|
k(h["Tab_"+l])+u(h["Tab_"+l])+x(h["Tab_"+l])+A(h["Tab_"+l])+B(h["Tab_"+l])+z(h["Tab_"+l])+C(h["Tab_"+l]),ga[l].style+="verticalAlign=bottom;",ga[l].style=h.Selected==l?ga[l].style+"fillColor=#BBBBBB;":ga[l].style+"fillColor=none;";break;case "iOSDatePicker":var eb=new mxCell("",new mxGeometry(0,0,.5*t,.2*r),"strokeColor=none;fillColor=none;");eb.vertex=!0;v.insert(eb);eb.value=g(h.Option11);eb.style+=m(h.Option11,y);var fb=new mxCell("",new mxGeometry(.5*t,0,.15*t,.2*r),"strokeColor=none;fillColor=none;");
|
|
|
|
|
k(h["Tab_"+l])+u(h["Tab_"+l])+x(h["Tab_"+l])+z(h["Tab_"+l])+B(h["Tab_"+l])+C(h["Tab_"+l])+A(h["Tab_"+l]),ga[l].style+="verticalAlign=bottom;",ga[l].style=h.Selected==l?ga[l].style+"fillColor=#BBBBBB;":ga[l].style+"fillColor=none;";break;case "iOSDatePicker":var eb=new mxCell("",new mxGeometry(0,0,.5*t,.2*r),"strokeColor=none;fillColor=none;");eb.vertex=!0;v.insert(eb);eb.value=g(h.Option11);eb.style+=m(h.Option11,y);var fb=new mxCell("",new mxGeometry(.5*t,0,.15*t,.2*r),"strokeColor=none;fillColor=none;");
|
|
|
|
|
fb.vertex=!0;v.insert(fb);fb.value=g(h.Option21);fb.style+=m(h.Option21,y);var gb=new mxCell("",new mxGeometry(.65*t,0,.15*t,.2*r),"strokeColor=none;fillColor=none;");gb.vertex=!0;v.insert(gb);gb.value=g(h.Option31);gb.style+=m(h.Option31,y);var hb=new mxCell("",new mxGeometry(0,.2*r,.5*t,.2*r),"strokeColor=none;fillColor=none;");hb.vertex=!0;v.insert(hb);hb.value=g(h.Option12);hb.style+=m(h.Option12,y);var ib=new mxCell("",new mxGeometry(.5*t,.2*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");
|
|
|
|
|
ib.vertex=!0;v.insert(ib);ib.value=g(h.Option22);ib.style+=m(h.Option22,y);var jb=new mxCell("",new mxGeometry(.65*t,.2*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");jb.vertex=!0;v.insert(jb);jb.value=g(h.Option32);jb.style+=m(h.Option32,y);var xa=new mxCell("",new mxGeometry(0,.4*r,.5*t,.2*r),"strokeColor=none;fillColor=none;");xa.vertex=!0;v.insert(xa);xa.value=g(h.Option13);xa.style+=m(h.Option13,y);var ya=new mxCell("",new mxGeometry(.5*t,.4*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");
|
|
|
|
|
ya.vertex=!0;v.insert(ya);ya.value=g(h.Option23);ya.style+=m(h.Option23,y);var kb=new mxCell("",new mxGeometry(.65*t,.4*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");kb.vertex=!0;v.insert(kb);kb.value=g(h.Option33);kb.style+=m(h.Option33,y);var za=new mxCell("",new mxGeometry(.8*t,.4*r,.15*t,.2*r),"strokeColor=none;fillColor=none;");za.vertex=!0;v.insert(za);za.value=g(h.Option43);za.style+=m(h.Option43,y);var Aa=new mxCell("",new mxGeometry(0,.6*r,.5*t,.2*r),"strokeColor=none;fillColor=none;");
|
|
|
|
@ -142,7 +142,7 @@ v.style+="shape=partialRectangle;right=0;"+m(h.Text,y);v.style+=c(v.style,h,e,v,
|
|
|
|
|
Zc=h.HideH,oe=h.HideV,Td=h.TextVAlign,Ud=h.FillColor,Vd=h.StrokeStyle;delete h.StrokeStyle;for(var pe=W(Ud,"fillOpacity"),Wd=h.LineColor,qe=W(Wd,"strokeOpacity"),na=0,Ic={},l=0;l<Qb;l++){qa=0;r=Yc[l];for(S=0;S<Rb;S++){var Pa=l+","+S;if(Ic[Pa])qa+=Hc[S];else{for(var $c=h["CellFill_"+Pa],vd=h["NoBand_"+Pa],ad=h["CellSize_"+Pa],qb=h["Cell_"+Pa],Xd=h["Cell_"+Pa+"_VAlign"],re=h["Cell_"+Pa+"_TRotation"],se=h["CellBorderWidthH_"+Pa],te=h["CellBorderColorH_"+Pa],ue=h["CellBorderStrokeStyleH_"+Pa],ve=h["CellBorderWidthV_"+
|
|
|
|
|
Pa],we=h["CellBorderColorV_"+Pa],xe=h["CellBorderStrokeStyleV_"+Pa],Yd=Zc?we:te,Zd=W(Yd,"strokeOpacity"),$d=Zc?ve:se,ae=Zc?xe:ue,$c=ne&&!vd?0==l%2?td:Sd&&!vd?0==S%2?td:ud:ud:Sd&&!vd?0==S%2?td:ud:$c,ye=W($c,"fillOpacity")||pe,t=Hc[S],be=r,bc=t,Va=l+1;Va<l+ad.h;Va++)if(null!=Yc[Va]){be+=Yc[Va];Ic[Va+","+S]=!0;for(var Ub=S+1;Ub<S+ad.w;Ub++)Ic[Ub+","+S]=!0}for(Va=S+1;Va<S+ad.w;Va++)if(null!=Hc[Va])for(bc+=Hc[Va],Ic[l+","+Va]=!0,Ub=l+1;Ub<l+ad.h;Ub++)Ic[Ub+","+Va]=!0;var N=new mxCell("",new mxGeometry(qa,
|
|
|
|
|
na,bc,be),"shape=partialRectangle;html=1;whiteSpace=wrap;connectable=0;"+(oe?"left=0;right=0;":"")+(Zc?"top=0;bottom=0;":"")+Ea(mxConstants.STYLE_FILLCOLOR,Z($c),Z(Ud))+Ea(mxConstants.STYLE_STROKECOLOR,Z(Yd),Z(Wd))+(null!=$d?Ea(mxConstants.STYLE_STROKEWIDTH,Math.round(.6*parseFloat($d)),"1"):"")+(Zd?Zd:qe)+ye+"verticalAlign="+(Xd?Xd:Td?Td:"middle")+";"+ma({StrokeStyle:ae?ae:Vd?Vd:"solid"})+(re?"horizontal=0;":""));N.vertex=!0;N.value=g(qb);N.style+=c(N.style,h,e,N,y)+(y?"":a(qb)+d(qb)+k(qb)+u(qb,
|
|
|
|
|
N)+x(qb)+A(qb)+B(qb)+z(qb))+C(qb)+D(qb);v.insert(N);qa+=t}}na+=r}}catch(pc){}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==b.Class?v.value=g(h.Text):"VSMProductionControlBlock"==b.Class&&(v.value=g(h.Resources));v.style+=c(v.style,h,e,v,y);"VSMDedicatedProcessBlock"==b.Class&&(q=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),q.geometry.relative=
|
|
|
|
|
N)+x(qb)+z(qb)+B(qb)+C(qb))+A(qb)+D(qb);v.insert(N);qa+=t}}na+=r}}catch(pc){}break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==b.Class?v.value=g(h.Text):"VSMProductionControlBlock"==b.Class&&(v.value=g(h.Resources));v.style+=c(v.style,h,e,v,y);"VSMDedicatedProcessBlock"==b.Class&&(q=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),q.geometry.relative=
|
|
|
|
|
!0,q.geometry.offset=new mxPoint(4,-13),q.vertex=!0,v.insert(q),q.style+=c(q.style,h,e,q));U=new mxCell("",new mxGeometry(0,0,t,15),"strokeColor=none;fillColor=none;part=1;");U.vertex=!0;v.insert(U);U.value=g(h.Title);U.style+=m(h.Title,y);break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=g(h.Text);v.style+=c(v.style,h,e,v,y);U=new mxCell("",new mxGeometry(.1*t,.3*r,.8*t,.6*r),"part=1;");U.vertex=!0;v.insert(U);
|
|
|
|
|
U.value=g(h.Resource);U.style+=m(h.Resource,y);U.style+=c(U.style,h,e,U,y);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.value=g(h.Text);v.style+=c(v.style,h,e,v,y);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";v.style+=c(v.style,h,e,v);var Fa=r,cb=parseInt(h.Cells),P=c("part=1;",h,e,v);0<cb&&(Fa/=cb);H=[];ra=[];for(l=1;l<=cb;l++)H[l]=new mxCell("",new mxGeometry(0,(l-1)*
|
|
|
|
|
Fa,t,Fa),P),H[l].vertex=!0,v.insert(H[l]),H[l].value=g(h["cell_"+l]),H[l].style+=m(h["cell_"+l],y);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;";v.value=g(h.Text);v.style+=c(v.style,h,e,v,y);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;";v.style+=c(v.style,h,e,v);Fa=r;cb=parseInt(h.Cells);P=c("part=1;fillColor=none;",h,e,v);0<cb&&(Fa/=cb);H=[];Ua=[];for(l=1;l<=cb;l++)H[l]=new mxCell("",new mxGeometry(.5*
|
|
|
|
@ -206,7 +206,7 @@ break;case "PESharedIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;
|
|
|
|
|
t),"part=1;strokeColor=none;fillColor=none;")):(q=new mxCell("",new mxGeometry(0,0,t,.5*r),"part=1;strokeColor=none;fillColor=none;"),q.vertex=!0,v.insert(q),q.value=g(h.TopText),q.style+=m(h.TopText,y),q.style+=c(q.style,h,e,q,y),w=new mxCell("",new mxGeometry(0,.5*r,t,.5*r),"part=1;strokeColor=none;fillColor=none;"));w.vertex=!0;v.insert(w);w.value=g(h.BotText);w.style+=m(h.BotText,y);w.style+=c(w.style,h,e,w,y);switch(h.instrumentLocation){case 0:v.style+="mounting=field;";break;case 1:v.style+=
|
|
|
|
|
"mounting=inaccessible;";break;case 2:v.style+="mounting=room;";break;case 3:v.style+="mounting=local;"}break;case "PEGateValveBlock":case "PEGlobeValveBlock":case "PEAngleValveBlock":case "PEAngleGlobeValveBlock":case "PEPoweredValveBlock":var Ad=!1;"PEPoweredValveBlock"==b.Class?1!=h.poweredHandOperated&&(Ad=!0):1!=h.handOperated&&(Ad=!0);if(Ad){var h=p(b).Properties,ia=h.BoundingBox,ze=ia.h;ia.h="PEAngleValveBlock"==b.Class||"PEAngleGlobeValveBlock"==b.Class?.7*ia.h:.6*ia.h;v=new mxCell("",new mxGeometry(Math.round(.6*
|
|
|
|
|
ia.x+Eb),Math.round(.6*(ia.y+ze-ia.h)+Fb),Math.round(.6*ia.w),Math.round(.6*ia.h)),"");v.vertex=!0;ac(v,b,f)}if("PEPoweredValveBlock"==b.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;",v.style+=c(v.style,h,e,v),1==h.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",q=new mxCell("",new mxGeometry(.325*t,0,.35*t,.35*r),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),q.vertex=!0,v.insert(q),q.value=g(h.PoweredText),q.style+=(y?"":
|
|
|
|
|
"fontSize=6;"+d(h.PoweredText)+k(h.PoweredText)+u(h.PoweredText)+x(h.PoweredText)+A(h.PoweredText)+z(h.PoweredText)+C(h.PoweredText))+D(h.PoweredText),q.style+=c(q.style,h,e,q,y)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";v.value=g(h.Text);switch(b.Class){case "PEGateValveBlock":v.style+="valveType=gate;";break;case "PEGlobeValveBlock":v.style+="valveType=globe;";break;case "PEAngleValveBlock":v.style+="valveType=angle;";
|
|
|
|
|
"fontSize=6;"+d(h.PoweredText)+k(h.PoweredText)+u(h.PoweredText)+x(h.PoweredText)+z(h.PoweredText)+C(h.PoweredText)+A(h.PoweredText))+D(h.PoweredText),q.style+=c(q.style,h,e,q,y)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;";v.value=g(h.Text);switch(b.Class){case "PEGateValveBlock":v.style+="valveType=gate;";break;case "PEGlobeValveBlock":v.style+="valveType=globe;";break;case "PEAngleValveBlock":v.style+="valveType=angle;";
|
|
|
|
|
break;case "PEAngleGlobeValveBlock":v.style+="valveType=angleGlobe;flipH=1;"}1==h.handOperated&&(v.style+="actuator=man;")}v.style+=c(v.style,h,e,v,y);break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;";1==h.vScroll&&(F=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),
|
|
|
|
|
F.geometry.relative=!0,F.geometry.offset=new mxPoint(-20,110),F.vertex=!0,v.insert(F),v.style+="spacingRight=20;");1==h.hScroll&&(R=1==h.vScroll?new mxCell("",new mxGeometry(0,1,t-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,t,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),R.geometry.relative=!0,R.geometry.offset=new mxPoint(0,-20),R.vertex=!0,v.insert(R));v.style+=c(v.style,h,e,v);break;case "UI2WindowBlock":v.value=
|
|
|
|
|
g(h.Title);v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+(y?"":a(h.Title)+d(h.Title)+k(h.Title));1==h.vScroll&&(F=1==h.hScroll?new mxCell("",new mxGeometry(1,0,20,r-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),F.geometry.relative=!0,F.geometry.offset=new mxPoint(-20,
|
|
|
|
@ -277,25 +277,25 @@ case "TimelineBlock":try{var Ha=new Date(h.StartDate),Ge=new Date(h.FinishDate),
|
|
|
|
|
X(h,e,v);v.style="group;"+Yb;if(null!=h.Stencil){null==h.Stencil.id&&(h.Stencil.id="$$tmpId$$",Jd(h.Stencil.id,h.Stencil));for(var Zb=LucidImporter.stencilsMap[h.Stencil.id],l=0;l<Zb.stencils.length;l++){var Xa=Zb.stencils[l],N=new mxCell("",new mxGeometry(0,0,t,r),"shape="+Xa.shapeStencil+";");"prop"==Xa.FillColor&&(Xa.FillColor=h.FillColor);null==Xa.FillColor&&(Xa.FillColor="#ffffff00");"prop"==Xa.LineColor&&(Xa.LineColor=h.LineColor);null==Xa.LineColor&&(Xa.LineColor="#ffffff00");"prop"==Xa.LineWidth&&
|
|
|
|
|
(Xa.LineWidth=h.LineWidth);N.style+=c(N.style,Xa,e,N,y);N.style+=c(N.style,h,e,N,y);N.vertex=!0;N.geometry.relative=!0;v.insert(N)}for(var Rc=0,Yb=h.Rotation;h["t"+Rc];){var ke=g(h["t"+Rc]);if(ke){var Ya=new mxCell(ke,new mxGeometry(0,0,t,r),"strokeColor=none;fillColor=none;overflow=visible;");h.Rotation=0;Ya.style+=c(Ya.style,h,e,Ya,y);h.Rotation=Yb;if(null!=Zb.text&&null!=Zb.text["t"+Rc]){var rb=Zb.text["t"+Rc];rb.Rotation=Yb+rb.rotation;Ya.style+=c(Ya.style,rb,e,Ya,y);var nc=Ya.geometry;rb.w&&
|
|
|
|
|
(nc.width*=rb.w);rb.h&&(nc.height*=rb.h);rb.x&&(nc.x=rb.x/Zb.w);rb.y&&(nc.y=rb.y/Zb.h)}Ya.vertex=!0;Ya.geometry.relative=!0;v.insert(Ya)}Rc++}}if(h.FillColor&&h.FillColor.url){var Sc=new mxCell("",new mxGeometry(0,0,t,r),"shape=image;html=1;");Sc.style+=$b({},{},h.FillColor.url);Sc.vertex=!0;Sc.geometry.relative=!0;v.insert(Sc)}}catch(pc){console.log("Freehand error",pc)}}v.style&&0>v.style.indexOf("html")&&(v.style+="html=1;");Hd(v,h);return v}function Hd(a,b){if(b.Text_TRotation)try{var d=mxUtils.toDegree(b.Text_TRotation);
|
|
|
|
|
if(0!=d&&a.value){var k=a.geometry.width,n=a.geometry.height,c=k,f=n,u=0,e=0;if(-90==d||-270==d)var c=n,f=k,x=Math.abs(n-k)/2,u=x/k,e=-x/n;var d=d+mxUtils.toDegree(b.Rotation),m=a.style.split(";").filter(function(a){return 0>a.indexOf("fillColor=")&&0>a.indexOf("strokeColor=")&&0>a.indexOf("rotation=")}).join(";"),A=new mxCell(a.value,new mxGeometry(u,e,c,f),m+"fillColor=none;strokeColor=none;rotation="+d+";");a.value=null;A.geometry.relative=!0;A.vertex=!0;a.insert(A)}}catch(le){console.log(le)}}
|
|
|
|
|
if(0!=d&&a.value){var k=a.geometry.width,n=a.geometry.height,c=k,f=n,u=0,e=0;if(-90==d||-270==d)var c=n,f=k,x=Math.abs(n-k)/2,u=x/k,e=-x/n;var d=d+mxUtils.toDegree(b.Rotation),m=a.style.split(";").filter(function(a){return 0>a.indexOf("fillColor=")&&0>a.indexOf("strokeColor=")&&0>a.indexOf("rotation=")}).join(";"),z=new mxCell(a.value,new mxGeometry(u,e,c,f),m+"fillColor=none;strokeColor=none;rotation="+d+";");a.value=null;z.geometry.relative=!0;z.vertex=!0;a.insert(z)}}catch(le){console.log(le)}}
|
|
|
|
|
var Eb=0,Fb=0,y=!1,id=["AEUSBBlock","AGSCutandpasteBlock","iOSDeviceiPadLandscape","iOSDeviceiPadProLandscape"],jd=["fpDoor"],Ob={None:"none;",Arrow:"block;endFill=1;","Hollow Arrow":"block;endFill=0;","Open Arrow":"open;","CFN ERD Zero Or More Arrow":"ERzeroToMany;startSize=10;","CFN ERD One Or More Arrow":"ERoneToMany;startSize=10;","CFN ERD Many Arrow":"ERmany;startSize=10;","CFN ERD Exactly One Arrow":"ERmandOne;startSize=10;","CFN ERD Zero Or One Arrow":"ERzeroToOne;startSize=10;","CFN ERD One Arrow":"ERone;startSize=16;",
|
|
|
|
|
Generalization:"block;endFill=0;startSize=12;","Big Open Arrow":"open;startSize=10;",Asynch1:"openAsync;flipH=1;startSize=10;",Asynch2:"openAsync;startSize=10;",Aggregation:"diamond;endFill=0;startSize=16;",Composition:"diamond;endFill=1;startSize=16;",BlockEnd:"none;endFill=1;startSize=16;",Measure:"ERone;startSize=10;"},Nb={DefaultTextBlockNew:"text;strokeColor=none;fillColor=none",DefaultTextBlock:"text;strokeColor=none;fillColor=none",DefaultSquareBlock:"",DefaultNoteBlock:"shape=note;size=15",
|
|
|
|
|
DefaultNoteBlockV2:"shape=note;size=15",HotspotBlock:"strokeColor=none;opacity=50",ImageSearchBlock2:"shape=image",UserImage2Block:"shape=image",ProcessBlock:"",DecisionBlock:"rhombus",TerminatorBlock:"rounded=1;arcSize=50",PredefinedProcessBlock:"shape=process",DocumentBlock:"shape=document",MultiDocumentBlock:"shape=mxgraph.flowchart.multi-document",ManualInputBlock:"shape=manualInput;size=15",PreparationBlock:"shape=hexagon;perimeter=hexagonPerimeter2",DataBlock:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",
|
|
|
|
|
DataBlockNew:"shape=parallelogram;perimeter=parallelogramPerimeter;anchorPointDirection=0",DatabaseBlock:"shape=cylinder;size=0.1;anchorPointDirection=0;boundedLbl=1;",DirectAccessStorageBlock:"shape=cylinder;direction=south;size=0.1;anchorPointDirection=0;boundedLbl=1;",InternalStorageBlock:"shape=internalStorage;dx=10;dy=10",PaperTapeBlock:"shape=tape;size=0.2",ManualOperationBlockNew:"shape=trapezoid;perimeter=trapezoidPerimeter;anchorPointDirection=0;flipV=1",DelayBlock:"shape=delay",StoredDataBlock:"shape=dataStorage",
|
|
|
|
|
MergeBlock:"triangle;direction=south;anchorPointDirection=0",ConnectorBlock:"ellipse",OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"mxCompositeShape",AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"container=1;collapsible=0",DiamondContainerBlock:"shape=rhombus;fillColor=none;container=1",
|
|
|
|
|
RoundedRectangleContainerBlock:"fillColor=none;container=1;rounded=1;absoluteArcSize=1;arcSize=24",CircleContainerBlock:"ellipse;fillColor=none;container=1",PillContainerBlock:"arcSize=50;fillColor=none;container=1",BraceBlock:"mxCompositeShape",BracketBlock:"mxCompositeShape",BraceBlockRotated:"mxCompositeShape",BracketBlockRotated:"mxCompositeShape",IsoscelesTriangleBlock:"triangle;direction=north;anchorPointDirection=0",RightTriangleBlock:"shape=mxgraph.basic.orthogonal_triangle",PentagonBlock:"shape=mxgraph.basic.pentagon",
|
|
|
|
|
HexagonBlock:"shape=hexagon;perimeter=hexagonPerimeter2",OctagonBlock:"shape=mxgraph.basic.octagon",CrossBlock:"shape=cross;size=0.6",CloudBlock:"ellipse;shape=cloud",HeartBlock:"shape=mxgraph.basic.heart",RightArrowBlock:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.3",DoubleArrowBlock:"shape=doubleArrow;arrowWidth=0.5;arrowSize=0.3",CalloutBlock:"shape=mxgraph.basic.rectangular_callout",ShapeCircleBlock:"ellipse",ShapePolyStarBlock:"shape=mxgraph.basic.star",ShapeDiamondBlock:"rhombus",UI2HotspotBlock:"opacity=50;strokeColor=none",
|
|
|
|
|
AndroidDevice:"mxCompositeShape",AndroidAlertDialog:"mxCompositeShape",AndroidDateDialog:"mxCompositeShape",AndroidTimeDialog:"mxCompositeShape",AndroidListItems:"mxCompositeShape",AndroidTabs:"mxCompositeShape",AndroidProgressBar:"mxCompositeShape",AndroidImageBlock:"mxCompositeShape",AndroidTextBlock:"mxCompositeShape",AndroidActionBar:"mxCompositeShape",AndroidButton:"mxCompositeShape",AndroidTextBox:"mxCompositeShape",AndroidRadioButton:"mxCompositeShape",AndroidCheckBox:"mxCompositeShape",AndroidToggle:"mxCompositeShape",
|
|
|
|
|
AndroidSlider:"mxCompositeShape",AndroidIconCheck:"shape=mxgraph.ios7.misc.check",AndroidIconCancel:"shape=mxgraph.atlassian.x",AndroidIconCollapse:"shape=mxgraph.ios7.misc.up",AndroidIconExpand:"shape=mxgraph.ios7.misc.down",AndroidIconNext:"shape=mxgraph.ios7.misc.right",AndroidIconPrevious:"shape=mxgraph.ios7.misc.left",AndroidIconRefresh:NaN,AndroidIconInformation:"shape=mxgraph.ios7.icons.info",AndroidIconSearch:"shape=mxgraph.ios7.icons.looking_glass",AndroidIconSettings:"shape=mxgraph.ios7.icons.volume;direction=south",
|
|
|
|
|
AndroidIconTrash:"shape=mxgraph.ios7.icons.trashcan",AndroidIconEmail:"shape=mxgraph.mockup.misc.mail2",AndroidIconNew:"shape=mxgraph.ios7.misc.flagged",iOSDeviceiPhoneSE:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6s:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6sPlus:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPadPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadLandscape:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProLandscape:"shape=mxgraph.ios7.misc.ipad10inch",
|
|
|
|
|
iOSButton:"fillColor=none;strokeColor=none;",iOSSegmentedControl:"mxCompositeShape",iOSStepper:"shape=mxgraph.ios7.misc.adjust",iOSToggle:"shape=mxgraph.ios7ui.onOffButton;buttonState=on;strokeColor2=#aaaaaa;fillColor2=#ffffff",iOSSlider:"mxCompositeShape",iOSProgressBar:"mxCompositeShape",iOSPageControls:"mxCompositeShape",iOSStatusBar:"mxCompositeShape",iOSSearchBar:"mxCompositeShape",iOSNavBar:"mxCompositeShape",iOSTabs:"mxCompositeShape",iOSUniversalKeyboard:"shape=mxgraph.ios.iKeybLett",iOSDatePicker:"mxCompositeShape",
|
|
|
|
|
iOSTimePicker:"mxCompositeShape",iOSCountdownPicker:"mxCompositeShape",iOSBasicCell:"mxCompositeShape",iOSSubtitleCell:"mxCompositeShape",iOSRightDetailCell:"mxCompositeShape",iOSLeftDetailCell:"mxCompositeShape",iOSTableGroupedSectionBreak:"mxCompositeShape",iOSTablePlainHeaderFooter:"mxCompositeShape",MindMapBlock:"",MindMapStadiumBlock:"arcSize=50",MindMapCloud:"shape=cloud",MindMapCircle:"ellipse",MindMapIsoscelesTriangleBlock:"shape=triangle;direction=north",MindMapDiamondBlock:"shape=rhombus",
|
|
|
|
|
MindMapPentagonBlock:"shape=mxgraph.basic.pentagon",MindMapHexagonBlock:"shape=hexagon;perimeter=hexagonPerimeter2",MindMapOctagonBlock:"shape=mxgraph.basic.octagon",MindMapCrossBlock:"shape=mxgraph.basic.cross2;dx=20",ERDEntityBlock:"mxCompositeShape",ERDEntityBlock2:"mxCompositeShape",ERDEntityBlock3:"mxCompositeShape",ERDEntityBlock4:"mxCompositeShape",UMLClassBlock:"mxCompositeShape",UMLActiveClassBlock:"shape=process",UMLMultiplicityBlock:"mxCompositeShape",UMLPackageBlock:"shape=folder;tabPosition=left",
|
|
|
|
|
UMLConstraintBlock:"mxCompositeShape",UMLNoteBlock:"shape=note;size=15",UMLTextBlock:"mxCompositeShape",UMLActorBlock:"shape=umlActor;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;whiteSpace=nowrap",UMLUseCaseBlock:"ellipse",UMLCircleContainerBlock:"ellipse;container=1",UMLRectangleContainerBlock:"container=1",UMLOptionLoopBlock:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLAlternativeBlock2:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLStartBlock:"ellipse;fillColor=#000000",
|
|
|
|
|
UMLStateBlock:"rounded=1;arcSize=20",UMLDecisionBlock:"shape=rhombus;",UMLHForkJoinBlock:"fillColor=#000000",UMLVForkJoinBlock:"fillColor=#000000",UMLFlowFinalBlock:"shape=mxgraph.flowchart.or",UMLHistoryStateBlock:"ellipse",UMLEndBlock:"shape=mxgraph.bpmn.shape;outline=end;symbol=terminate;strokeColor=#000000;fillColor=#ffffff",UMLObjectBlock:"",UMLSendSignalBlock:"shape=mxgraph.sysml.sendSigAct",UMLReceiveSignalBlock:"shape=mxgraph.sysml.accEvent;flipH=1",UMLAcceptTimeEventActionBlock:"shape=mxgraph.sysml.timeEvent",
|
|
|
|
|
UMLOffPageLinkBlock:"shape=mxgraph.sysml.sendSigAct;direction=south",UMLMultiLanePoolBlock:"mxCompositeShape",UMLMultiLanePoolRotatedBlock:"mxCompositeShape",UMLMultidimensionalSwimlane:"mxCompositeShape",UMLActivationBlock:"",UMLDeletionBlock:"shape=mxgraph.sysml.x;strokeWidth=4",UMLSeqEntityBlock:"shape=mxgraph.electrical.radio.microphone_1;direction=north",UMLComponentBlock:"shape=component;align=left;spacingLeft=36",UMLNodeBlock:"shape=cube;size=12;flipH=1",UMLComponentInterfaceBlock:"ellipse",
|
|
|
|
|
UMLComponentBoxBlock:"mxCompositeShape",UMLProvidedInterfaceBlock:"shape=lollipop;direction=south",UMLRequiredInterfaceBlock:"shape=requires;direction=north",UMLSwimLaneBlockV2:"mxCompositeShape",UMLEntityBlock:"",UMLWeakEntityBlock:"shape=ext;double=1",UMLAttributeBlock:"ellipse",UMLMultivaluedAttributeBlock:"shape=doubleEllipse",UMLRelationshipBlock:"shape=rhombus",UMLWeakRelationshipBlock:"shape=rhombus;double=1",BPMNActivity:"mxCompositeShape",BPMNEvent:"mxCompositeShape",BPMNChoreography:"mxCompositeShape",
|
|
|
|
|
BPMNConversation:"mxCompositeShape",BPMNGateway:"mxCompositeShape",BPMNData:"mxCompositeShape",BPMNDataStore:"shape=datastore",BPMNAdvancedPoolBlock:"mxCompositeShape",BPMNAdvancedPoolBlockRotated:"mxCompositeShape",BPMNBlackPool:"mxCompositeShape",BPMNTextAnnotation:"mxCompositeShape",DFDExternalEntityBlock:"mxCompositeShape",DFDExternalEntityBlock2:"",YDMDFDProcessBlock:"ellipse",YDMDFDDataStoreBlock:"shape=partialRectangle;right=0;left=0",GSDFDProcessBlock:"shape=swimlane;rounded=1;arcSize=10",
|
|
|
|
|
MergeBlock:"triangle;direction=south;anchorPointDirection=0",ConnectorBlock:"ellipse",OrBlock:"shape=mxgraph.flowchart.summing_function",SummingJunctionBlock:"shape=mxgraph.flowchart.or",DisplayBlock:"shape=display",OffPageLinkBlock:"shape=offPageConnector",BraceNoteBlock:"mxCompositeShape",NoteBlock:"mxCompositeShape",AdvancedSwimLaneBlock:"mxCompositeShape",AdvancedSwimLaneBlockRotated:"mxCompositeShape",RectangleContainerBlock:"container=1;collapsible=0",DiamondContainerBlock:"shape=rhombus;container=1;collapsible=0",
|
|
|
|
|
RoundedRectangleContainerBlock:"container=1;rounded=1;absoluteArcSize=1;arcSize=24;collapsible=0",CircleContainerBlock:"ellipse;container=1;collapsible=0",PillContainerBlock:"shape=mxgraph.flowchart.terminator;container=1;collapsible=0",BraceBlock:"mxCompositeShape",BracketBlock:"mxCompositeShape",BraceBlockRotated:"mxCompositeShape",BracketBlockRotated:"mxCompositeShape",IsoscelesTriangleBlock:"triangle;direction=north;anchorPointDirection=0",RightTriangleBlock:"shape=mxgraph.basic.orthogonal_triangle",
|
|
|
|
|
PentagonBlock:"shape=mxgraph.basic.pentagon",HexagonBlock:"shape=hexagon;perimeter=hexagonPerimeter2",OctagonBlock:"shape=mxgraph.basic.octagon",CrossBlock:"shape=cross;size=0.6",CloudBlock:"ellipse;shape=cloud",HeartBlock:"shape=mxgraph.basic.heart",RightArrowBlock:"shape=singleArrow;arrowWidth=0.5;arrowSize=0.3",DoubleArrowBlock:"shape=doubleArrow;arrowWidth=0.5;arrowSize=0.3",CalloutBlock:"shape=mxgraph.basic.rectangular_callout",ShapeCircleBlock:"ellipse",ShapePolyStarBlock:"shape=mxgraph.basic.star",
|
|
|
|
|
ShapeDiamondBlock:"rhombus",UI2HotspotBlock:"opacity=50;strokeColor=none",AndroidDevice:"mxCompositeShape",AndroidAlertDialog:"mxCompositeShape",AndroidDateDialog:"mxCompositeShape",AndroidTimeDialog:"mxCompositeShape",AndroidListItems:"mxCompositeShape",AndroidTabs:"mxCompositeShape",AndroidProgressBar:"mxCompositeShape",AndroidImageBlock:"mxCompositeShape",AndroidTextBlock:"mxCompositeShape",AndroidActionBar:"mxCompositeShape",AndroidButton:"mxCompositeShape",AndroidTextBox:"mxCompositeShape",AndroidRadioButton:"mxCompositeShape",
|
|
|
|
|
AndroidCheckBox:"mxCompositeShape",AndroidToggle:"mxCompositeShape",AndroidSlider:"mxCompositeShape",AndroidIconCheck:"shape=mxgraph.ios7.misc.check",AndroidIconCancel:"shape=mxgraph.atlassian.x",AndroidIconCollapse:"shape=mxgraph.ios7.misc.up",AndroidIconExpand:"shape=mxgraph.ios7.misc.down",AndroidIconNext:"shape=mxgraph.ios7.misc.right",AndroidIconPrevious:"shape=mxgraph.ios7.misc.left",AndroidIconRefresh:NaN,AndroidIconInformation:"shape=mxgraph.ios7.icons.info",AndroidIconSearch:"shape=mxgraph.ios7.icons.looking_glass",
|
|
|
|
|
AndroidIconSettings:"shape=mxgraph.ios7.icons.volume;direction=south",AndroidIconTrash:"shape=mxgraph.ios7.icons.trashcan",AndroidIconEmail:"shape=mxgraph.mockup.misc.mail2",AndroidIconNew:"shape=mxgraph.ios7.misc.flagged",iOSDeviceiPhoneSE:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6s:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPhone6sPlus:"shape=mxgraph.ios7.misc.iphone",iOSDeviceiPadPortrait:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadLandscape:"shape=mxgraph.ios7.misc.ipad7inch",iOSDeviceiPadProPortrait:"shape=mxgraph.ios7.misc.ipad7inch",
|
|
|
|
|
iOSDeviceiPadProLandscape:"shape=mxgraph.ios7.misc.ipad10inch",iOSButton:"fillColor=none;strokeColor=none;",iOSSegmentedControl:"mxCompositeShape",iOSStepper:"shape=mxgraph.ios7.misc.adjust",iOSToggle:"shape=mxgraph.ios7ui.onOffButton;buttonState=on;strokeColor2=#aaaaaa;fillColor2=#ffffff",iOSSlider:"mxCompositeShape",iOSProgressBar:"mxCompositeShape",iOSPageControls:"mxCompositeShape",iOSStatusBar:"mxCompositeShape",iOSSearchBar:"mxCompositeShape",iOSNavBar:"mxCompositeShape",iOSTabs:"mxCompositeShape",
|
|
|
|
|
iOSUniversalKeyboard:"shape=mxgraph.ios.iKeybLett",iOSDatePicker:"mxCompositeShape",iOSTimePicker:"mxCompositeShape",iOSCountdownPicker:"mxCompositeShape",iOSBasicCell:"mxCompositeShape",iOSSubtitleCell:"mxCompositeShape",iOSRightDetailCell:"mxCompositeShape",iOSLeftDetailCell:"mxCompositeShape",iOSTableGroupedSectionBreak:"mxCompositeShape",iOSTablePlainHeaderFooter:"mxCompositeShape",MindMapBlock:"",MindMapStadiumBlock:"arcSize=50",MindMapCloud:"shape=cloud",MindMapCircle:"ellipse",MindMapIsoscelesTriangleBlock:"shape=triangle;direction=north",
|
|
|
|
|
MindMapDiamondBlock:"shape=rhombus",MindMapPentagonBlock:"shape=mxgraph.basic.pentagon",MindMapHexagonBlock:"shape=hexagon;perimeter=hexagonPerimeter2",MindMapOctagonBlock:"shape=mxgraph.basic.octagon",MindMapCrossBlock:"shape=mxgraph.basic.cross2;dx=20",ERDEntityBlock:"mxCompositeShape",ERDEntityBlock2:"mxCompositeShape",ERDEntityBlock3:"mxCompositeShape",ERDEntityBlock4:"mxCompositeShape",UMLClassBlock:"mxCompositeShape",UMLActiveClassBlock:"shape=process",UMLMultiplicityBlock:"mxCompositeShape",
|
|
|
|
|
UMLPackageBlock:"shape=folder;tabPosition=left",UMLConstraintBlock:"mxCompositeShape",UMLNoteBlock:"shape=note;size=15",UMLTextBlock:"mxCompositeShape",UMLActorBlock:"shape=umlActor;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;whiteSpace=nowrap",UMLUseCaseBlock:"ellipse",UMLCircleContainerBlock:"ellipse;container=1",UMLRectangleContainerBlock:"container=1",UMLOptionLoopBlock:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",UMLAlternativeBlock2:"shape=mxgraph.sysml.package2;xSize=90;overflow=fill",
|
|
|
|
|
UMLStartBlock:"ellipse;fillColor=#000000",UMLStateBlock:"rounded=1;arcSize=20",UMLDecisionBlock:"shape=rhombus;",UMLHForkJoinBlock:"fillColor=#000000",UMLVForkJoinBlock:"fillColor=#000000",UMLFlowFinalBlock:"shape=mxgraph.flowchart.or",UMLHistoryStateBlock:"ellipse",UMLEndBlock:"shape=mxgraph.bpmn.shape;outline=end;symbol=terminate;strokeColor=#000000;fillColor=#ffffff",UMLObjectBlock:"",UMLSendSignalBlock:"shape=mxgraph.sysml.sendSigAct",UMLReceiveSignalBlock:"shape=mxgraph.sysml.accEvent;flipH=1",
|
|
|
|
|
UMLAcceptTimeEventActionBlock:"shape=mxgraph.sysml.timeEvent",UMLOffPageLinkBlock:"shape=mxgraph.sysml.sendSigAct;direction=south",UMLMultiLanePoolBlock:"mxCompositeShape",UMLMultiLanePoolRotatedBlock:"mxCompositeShape",UMLMultidimensionalSwimlane:"mxCompositeShape",UMLActivationBlock:"",UMLDeletionBlock:"shape=mxgraph.sysml.x;strokeWidth=4",UMLSeqEntityBlock:"shape=mxgraph.electrical.radio.microphone_1;direction=north",UMLComponentBlock:"shape=component;align=left;spacingLeft=36",UMLNodeBlock:"shape=cube;size=12;flipH=1",
|
|
|
|
|
UMLComponentInterfaceBlock:"ellipse",UMLComponentBoxBlock:"mxCompositeShape",UMLProvidedInterfaceBlock:"shape=lollipop;direction=south",UMLRequiredInterfaceBlock:"shape=requires;direction=north",UMLSwimLaneBlockV2:"mxCompositeShape",UMLEntityBlock:"",UMLWeakEntityBlock:"shape=ext;double=1",UMLAttributeBlock:"ellipse",UMLMultivaluedAttributeBlock:"shape=doubleEllipse",UMLRelationshipBlock:"shape=rhombus",UMLWeakRelationshipBlock:"shape=rhombus;double=1",BPMNActivity:"mxCompositeShape",BPMNEvent:"mxCompositeShape",
|
|
|
|
|
BPMNChoreography:"mxCompositeShape",BPMNConversation:"mxCompositeShape",BPMNGateway:"mxCompositeShape",BPMNData:"mxCompositeShape",BPMNDataStore:"shape=datastore",BPMNAdvancedPoolBlock:"mxCompositeShape",BPMNAdvancedPoolBlockRotated:"mxCompositeShape",BPMNBlackPool:"mxCompositeShape",BPMNTextAnnotation:"mxCompositeShape",DFDExternalEntityBlock:"mxCompositeShape",DFDExternalEntityBlock2:"",YDMDFDProcessBlock:"ellipse",YDMDFDDataStoreBlock:"shape=partialRectangle;right=0;left=0",GSDFDProcessBlock:"shape=swimlane;rounded=1;arcSize=10",
|
|
|
|
|
GSDFDProcessBlock2:"rounded=1;arcSize=10;",GSDFDDataStoreBlock:"mxCompositeShape",GSDFDDataStoreBlock2:"shape=partialRectangle;right=0",OrgBlock:"",DefaultTableBlock:"mxCompositeShape",VSMCustomerSupplierBlock:"shape=mxgraph.lean_mapping.outside_sources",VSMDedicatedProcessBlock:"mxCompositeShape",VSMSharedProcessBlock:"mxCompositeShape",VSMWorkcellBlock:"mxCompositeShape",VSMDatacellBlock:"mxCompositeShape",VSMInventoryBlock:"mxCompositeShape",VSMSupermarketBlock:"mxCompositeShape",VSMPhysicalPullBlock:"shape=mxgraph.lean_mapping.physical_pull;direction=south",
|
|
|
|
|
VSMFIFOLaneBlock:"mxCompositeShape",VSMSafetyBufferStockBlock:"mxCompositeShape",VSMExternalShipmentAirplaneBlock:"shape=mxgraph.lean_mapping.airplane_7",VSMExternalShipmentForkliftBlock:"shape=mxgraph.lean_mapping.move_by_forklift",VSMExternalShipmentTruckBlock:"shape=mxgraph.lean_mapping.truck_shipment",VSMExternalShipmentBoatBlock:"shape=mxgraph.lean_mapping.boat_shipment",VSMProductionControlBlock:"mxCompositeShape",VSMOtherInformationBlock:"",VSMSequencedPullBallBlock:"shape=mxgraph.lean_mapping.sequenced_pull_ball",
|
|
|
|
|
VSMMRPERPBlock:"shape=mxgraph.lean_mapping.mrp_erp;whiteSpace=wrap",VSMLoadLevelingBlock:"shape=mxgraph.lean_mapping.load_leveling",VSMGoSeeBlock:"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1",VSMGoSeeProductionBlock:"mxCompositeShape",VSMVerbalInfoBlock:"shape=mxgraph.lean_mapping.verbal",VSMKaizenBurstBlock:"shape=mxgraph.lean_mapping.kaizen_lightening_burst",VSMOperatorBlock:"shape=mxgraph.lean_mapping.operator;flipV=1",VSMTimelineBlock:"mxCompositeShape",VSMQualityProblemBlock:"shape=mxgraph.lean_mapping.quality_problem",
|
|
|
|
@ -919,7 +919,7 @@ n=[];null!=a.state&&"1"==urlParams.dev&&null!=window.console&&console.log(JSON.s
|
|
|
|
|
"visio/windows.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Windows ClientWidth='0' ClientHeight='0' xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve' />","visio/_rels/document.xml.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.microsoft.com/visio/2010/relationships/masters' Target='masters/masters.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/pages' Target='pages/pages.xml' /><Relationship Id='rId3' Type='http://schemas.microsoft.com/visio/2010/relationships/windows' Target='windows.xml' /></Relationships>",
|
|
|
|
|
"visio/masters/_rels/masters.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.microsoft.com/visio/2010/relationships/master" Target="master1.xml"/></Relationships>',"visio/masters/masters.xml":"<?xml version='1.0' encoding='utf-8' ?><Masters xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Master ID='4' NameU='Dynamic connector' IsCustomNameU='1' Name='Dynamic connector' IsCustomName='1' Prompt='This connector automatically routes between the shapes it connects.' IconSize='1' AlignName='2' MatchByName='1' IconUpdate='0' UniqueID='{002A9108-0000-0000-8E40-00608CF305B2}' BaseID='{F7290A45-E3AD-11D2-AE4F-006008C9F5A9}' PatternFlags='0' Hidden='0' MasterType='0'><PageSheet LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='PageWidth' V='3'/><Cell N='PageHeight' V='3'/><Cell N='ShdwOffsetX' V='0.125'/><Cell N='ShdwOffsetY' V='-0.125'/><Cell N='PageScale' V='1' U='IN_F'/><Cell N='DrawingScale' V='1' U='IN_F'/><Cell N='DrawingSizeType' V='4'/><Cell N='DrawingScaleType' V='0'/><Cell N='InhibitSnap' V='0'/><Cell N='PageLockReplace' V='0' U='BOOL'/><Cell N='PageLockDuplicate' V='0' U='BOOL'/><Cell N='UIVisibility' V='0'/><Cell N='ShdwType' V='0'/><Cell N='ShdwObliqueAngle' V='0'/><Cell N='ShdwScaleFactor' V='1'/><Cell N='DrawingResizeType' V='0'/><Section N='Layer'><Row IX='0'><Cell N='Name' V='Connector'/><Cell N='Color' V='255'/><Cell N='Status' V='0'/><Cell N='Visible' V='1'/><Cell N='Print' V='1'/><Cell N='Active' V='0'/><Cell N='Lock' V='0'/><Cell N='Snap' V='1'/><Cell N='Glue' V='1'/><Cell N='NameUniv' V='Connector'/><Cell N='ColorTrans' V='0'/></Row></Section></PageSheet><Rel r:id='rId1'/></Master></Masters>",
|
|
|
|
|
"visio/masters/master1.xml":"<?xml version='1.0' encoding='utf-8' ?><MasterContents xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Shapes><Shape ID='5' OriginalID='0' Type='Shape' LineStyle='7' FillStyle='7' TextStyle='7'><Cell N='PinX' V='1.5' F='GUARD((BeginX+EndX)/2)'/><Cell N='PinY' V='1.5' F='GUARD((BeginY+EndY)/2)'/><Cell N='Width' V='1' F='GUARD(EndX-BeginX)'/><Cell N='Height' V='-1' F='GUARD(EndY-BeginY)'/><Cell N='LocPinX' V='0.5' F='GUARD(Width*0.5)'/><Cell N='LocPinY' V='-0.5' F='GUARD(Height*0.5)'/><Cell N='Angle' V='0' F='GUARD(0DA)'/><Cell N='FlipX' V='0' F='GUARD(FALSE)'/><Cell N='FlipY' V='0' F='GUARD(FALSE)'/><Cell N='ResizeMode' V='0'/><Cell N='BeginX' V='1'/><Cell N='BeginY' V='2'/><Cell N='EndX' V='2'/><Cell N='EndY' V='1'/><Cell N='TxtPinX' V='0' F='SETATREF(Controls.TextPosition)'/><Cell N='TxtPinY' V='-1' F='SETATREF(Controls.TextPosition.Y)'/><Cell N='TxtWidth' V='0.5555555555555556' F='MAX(TEXTWIDTH(TheText),5*Char.Size)'/><Cell N='TxtHeight' V='0.2444444444444444' F='TEXTHEIGHT(TheText,TxtWidth)'/><Cell N='TxtLocPinX' V='0.2777777777777778' F='TxtWidth*0.5'/><Cell N='TxtLocPinY' V='0.1222222222222222' F='TxtHeight*0.5'/><Cell N='TxtAngle' V='0'/><Cell N='LockHeight' V='1'/><Cell N='LockCalcWH' V='1'/><Cell N='HelpTopic' V='Vis_SE.chm!#20000'/><Cell N='Copyright' V='Copyright 2001 Microsoft Corporation. All rights reserved.'/><Cell N='NoAlignBox' V='1'/><Cell N='DynFeedback' V='2'/><Cell N='GlueType' V='2'/><Cell N='ObjType' V='2'/><Cell N='NoLiveDynamics' V='1'/><Cell N='ShapeSplittable' V='1'/><Cell N='LayerMember' V='0'/><Section N='Control'><Row N='TextPosition'><Cell N='X' V='0'/><Cell N='Y' V='-1'/><Cell N='XDyn' V='0' F='Controls.TextPosition'/><Cell N='YDyn' V='-1' F='Controls.TextPosition.Y'/><Cell N='XCon' V='5' F='IF(OR(STRSAME(SHAPETEXT(TheText),\"\"),HideText),5,0)'/><Cell N='YCon' V='0'/><Cell N='CanGlue' V='0'/><Cell N='Prompt' V='Reposition Text'/></Row></Section><Section N='Geometry' IX='0'><Cell N='NoFill' V='1'/><Cell N='NoLine' V='0'/><Cell N='NoShow' V='0'/><Cell N='NoSnap' V='0'/><Cell N='NoQuickDrag' V='0'/><Row T='MoveTo' IX='1'><Cell N='X' V='0'/><Cell N='Y' V='0'/></Row><Row T='LineTo' IX='2'><Cell N='X' V='0'/><Cell N='Y' V='-1'/></Row></Section></Shape></Shapes></MasterContents>"},
|
|
|
|
|
k;for(k in d)if(1<b&&k==E.CONTENT_TYPES_XML){for(var n=mxUtils.parseXml(d[k]),c=n.documentElement,f=c.children,u=null,e=0;e<f.length;e++){var x=f[e];"/visio/pages/page1.xml"==x.getAttribute(E.PART_NAME)&&(u=x)}for(e=2;e<=b;e++)f=u.cloneNode(),f.setAttribute(E.PART_NAME,"/visio/pages/page"+e+".xml"),c.appendChild(f);z(a,k,n,!0)}else a.file(k,d[k])}function p(a,b,d){return null!=a.createElementNS?a.createElementNS(b,d):a.createElement(d)}function e(a){var b=O[a];null==b&&(b=M++,O[a]=b);return b}function m(a){var b=
|
|
|
|
|
k;for(k in d)if(1<b&&k==E.CONTENT_TYPES_XML){for(var n=mxUtils.parseXml(d[k]),c=n.documentElement,f=c.children,u=null,e=0;e<f.length;e++){var x=f[e];"/visio/pages/page1.xml"==x.getAttribute(E.PART_NAME)&&(u=x)}for(e=2;e<=b;e++)f=u.cloneNode(),f.setAttribute(E.PART_NAME,"/visio/pages/page"+e+".xml"),c.appendChild(f);C(a,k,n,!0)}else a.file(k,d[k])}function p(a,b,d){return null!=a.createElementNS?a.createElementNS(b,d):a.createElement(d)}function e(a){var b=O[a];null==b&&(b=M++,O[a]=b);return b}function m(a){var b=
|
|
|
|
|
{};try{var d=a.getGraphBounds().clone(),k=a.view.scale,n=a.view.translate,c=Math.round(d.x/k)-n.x,f=Math.round(d.y/k)-n.y,u=a.pageFormat.width,e=a.pageFormat.height;0>c&&(c+=Math.ceil((n.x-d.x/k)/u)*u);0>f&&(f+=Math.ceil((n.y-d.y/k)/e)*e);var x=Math.max(1,Math.ceil((d.width/k+c)/u)),m=Math.max(1,Math.ceil((d.height/k+f)/e));b.gridEnabled=a.gridEnabled;b.gridSize=a.gridSize;b.guidesEnabled=a.graphHandler.guidesEnabled;b.pageVisible=a.pageVisible;b.pageScale=a.pageScale;b.pageWidth=a.pageFormat.width*
|
|
|
|
|
x;b.pageHeight=a.pageFormat.height*m;b.backgroundClr=a.background;b.mathEnabled=a.mathEnabled;b.shadowVisible=a.shadowVisible}catch(qa){}return b}function c(a,d,k,n){return b(a,d/E.CONVERSION_FACTOR,k,n)}function b(a,b,d,k){d=p(d,E.XMLNS,"Cell");d.setAttribute("N",a);d.setAttribute("V",b);k&&d.setAttribute("F",k);return d}function a(a,b,d,k,n){var f=p(n,E.XMLNS,"Row");f.setAttribute("T",a);f.setAttribute("IX",b);f.appendChild(c("X",d,n));f.appendChild(c("Y",k,n));return f}function d(a,d,k){var n=
|
|
|
|
|
a.style[mxConstants.STYLE_FILLCOLOR];if(n&&"none"!=n){if(d.appendChild(b("FillForegnd",n,k)),(n=a.style[mxConstants.STYLE_GRADIENTCOLOR])&&"none"!=n){d.appendChild(b("FillBkgnd",n,k));var n=a.style[mxConstants.STYLE_GRADIENT_DIRECTION],f=28;if(n)switch(n){case mxConstants.DIRECTION_EAST:f=25;break;case mxConstants.DIRECTION_WEST:f=27;break;case mxConstants.DIRECTION_NORTH:f=30}d.appendChild(b("FillPattern",f,k))}}else d.appendChild(b("FillPattern",0,k));(n=a.style[mxConstants.STYLE_STROKECOLOR])&&
|
|
|
|
@ -927,30 +927,30 @@ a.style[mxConstants.STYLE_FILLCOLOR];if(n&&"none"!=n){if(d.appendChild(b("FillFo
|
|
|
|
|
10;break;case "1 2":f=3;break;case "1 4":f=17}d.appendChild(b("LinePattern",f,k))}1==a.style[mxConstants.STYLE_SHADOW]&&(d.appendChild(b("ShdwPattern",1,k)),d.appendChild(b("ShdwForegnd","#000000",k)),d.appendChild(b("ShdwForegndTrans",.6,k)),d.appendChild(b("ShapeShdwType",1,k)),d.appendChild(b("ShapeShdwOffsetX","0.02946278254943948",k)),d.appendChild(b("ShapeShdwOffsetY","-0.02946278254943948",k)),d.appendChild(b("ShapeShdwScaleFactor","1",k)),d.appendChild(b("ShapeShdwBlur","0.05555555555555555",
|
|
|
|
|
k)),d.appendChild(b("ShapeShdwShow",2,k)));1==a.style[mxConstants.STYLE_FLIPH]&&d.appendChild(b("FlipX",1,k));1==a.style[mxConstants.STYLE_FLIPV]&&d.appendChild(b("FlipY",1,k));1==a.style[mxConstants.STYLE_ROUNDED]&&d.appendChild(c("Rounding",.1*a.cell.geometry.width,k));(a=a.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR])&&d.appendChild(b("TextBkgnd",a,k))}function k(a,d,k,n,f,u){var e=p(n,E.XMLNS,"Shape");e.setAttribute("ID",a);e.setAttribute("NameU","Shape"+a);e.setAttribute("LineStyle","0");e.setAttribute("FillStyle",
|
|
|
|
|
"0");e.setAttribute("TextStyle","0");a=d.width/2;var x=d.height/2;e.appendChild(c("PinX",d.x+a+(u?0:G.shiftX),n));e.appendChild(c("PinY",f-d.y-x-(u?0:G.shiftY),n));e.appendChild(c("Width",d.width,n));e.appendChild(c("Height",d.height,n));e.appendChild(c("LocPinX",a,n));e.appendChild(c("LocPinY",x,n));e.appendChild(b("LayerMember",k+"",n));return e}function n(a,b){var d=E.ARROWS_MAP[(null==a?"none":a)+"|"+(null==b?"1":b)];return null!=d?d:1}function u(a){return null==a?2:2>=a?0:3>=a?1:5>=a?2:7>=a?
|
|
|
|
|
3:9>=a?4:22>=a?5:6}function x(k,f,x,m,A,g){var B=x.view.getState(k,!0);if(null==B||null==B.absolutePoints||null==B.cellBounds)return null;x=p(m,E.XMLNS,"Shape");var z=e(k.id);x.setAttribute("ID",z);x.setAttribute("NameU","Dynamic connector."+z);x.setAttribute("Name","Dynamic connector."+z);x.setAttribute("Type","Shape");x.setAttribute("Master","4");var C=G.state,z=B.absolutePoints,D=B.cellBounds,O=D.width/2,X=D.height/2;x.appendChild(c("PinX",D.x+O,m));x.appendChild(c("PinY",A-D.y-X,m));x.appendChild(c("Width",
|
|
|
|
|
D.width,m));x.appendChild(c("Height",D.height,m));x.appendChild(c("LocPinX",O,m));x.appendChild(c("LocPinY",X,m));G.newEdge(x,B,m);O=function(a,b){var d=a.x,k=a.y,d=d*C.scale-D.x+C.dx+(g?0:G.shiftX),k=(b?0:D.height)-k*C.scale+D.y-C.dy-(g?0:G.shiftY);return{x:d,y:k}};X=O(z[0],!0);x.appendChild(c("BeginX",D.x+X.x,m,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));x.appendChild(c("BeginY",A-D.y+X.y,m,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));X=O(z[z.length-1],!0);x.appendChild(c("EndX",
|
|
|
|
|
D.x+X.x,m,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));x.appendChild(c("EndY",A-D.y+X.y,m,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));x.appendChild(b("BegTrigger","2",m,k.source?"_XFTRIGGER(Sheet."+e(k.source.id)+"!EventXFMod)":null));x.appendChild(b("EndTrigger","2",m,k.target?"_XFTRIGGER(Sheet."+e(k.target.id)+"!EventXFMod)":null));x.appendChild(b("ConFixedCode","6",m));x.appendChild(b("LayerMember",f+"",m));d(B,x,m);f=B.style[mxConstants.STYLE_STARTSIZE];k=n(B.style[mxConstants.STYLE_STARTARROW],
|
|
|
|
|
B.style[mxConstants.STYLE_STARTFILL]);x.appendChild(b("BeginArrow",k,m));x.appendChild(b("BeginArrowSize",u(f),m));f=B.style[mxConstants.STYLE_ENDSIZE];k=n(B.style[mxConstants.STYLE_ENDARROW],B.style[mxConstants.STYLE_ENDFILL]);x.appendChild(b("EndArrow",k,m));x.appendChild(b("EndArrowSize",u(f),m));null!=B.text&&B.text.checkBounds()&&(G.save(),B.text.paint(G),G.restore());B=p(m,E.XMLNS,"Section");B.setAttribute("N","Geometry");B.setAttribute("IX","0");for(k=0;k<z.length;k++)f=O(z[k]),B.appendChild(a(0==
|
|
|
|
|
k?"MoveTo":"LineTo",k+1,f.x,f.y,m));B.appendChild(b("NoFill","1",m));B.appendChild(b("NoLine","0",m));x.appendChild(B);return x}function A(a,b,n,c,f,u,m){var g=a.geometry;if(null!=g){g.relative&&u&&(g=g.clone(),g.x*=u.width,g.y*=u.height,g.relative=0);u=e(a.id);if(!a.treatAsSingle&&0<a.getChildCount()){f=k(u+"10000",g,b,c,f,m);f.setAttribute("Type","Group");m=p(c,E.XMLNS,"Shapes");G.save();G.translate(-g.x,-g.y);u=g.clone();u.x=0;u.y=0;a.setGeometry(u);a.treatAsSingle=!0;u=A(a,b,n,c,g.height,g,!0);
|
|
|
|
|
a.treatAsSingle=!1;a.setGeometry(g);null!=u&&m.appendChild(u);for(var B=0;B<a.getChildCount();B++)u=A(a.children[B],b,n,c,g.height,g,!0),null!=u&&m.appendChild(u);f.appendChild(m);G.restore();return f}return a.vertex?(f=k(u,g,b,c,f,m),a=n.view.getState(a,!0),d(a,f,c),G.newShape(f,a,c),null!=a.text&&a.text.checkBounds()&&(G.save(),a.text.paint(G),G.restore()),null!=a.shape&&a.shape.checkBounds()&&(G.save(),a.shape.paint(G),G.restore()),f.appendChild(G.getShapeGeo()),G.endShape(),f.setAttribute("Type",
|
|
|
|
|
3:9>=a?4:22>=a?5:6}function x(k,f,x,m,z,g){var B=x.view.getState(k,!0);if(null==B||null==B.absolutePoints||null==B.cellBounds)return null;x=p(m,E.XMLNS,"Shape");var A=e(k.id);x.setAttribute("ID",A);x.setAttribute("NameU","Dynamic connector."+A);x.setAttribute("Name","Dynamic connector."+A);x.setAttribute("Type","Shape");x.setAttribute("Master","4");var C=G.state,A=B.absolutePoints,D=B.cellBounds,O=D.width/2,X=D.height/2;x.appendChild(c("PinX",D.x+O,m));x.appendChild(c("PinY",z-D.y-X,m));x.appendChild(c("Width",
|
|
|
|
|
D.width,m));x.appendChild(c("Height",D.height,m));x.appendChild(c("LocPinX",O,m));x.appendChild(c("LocPinY",X,m));G.newEdge(x,B,m);O=function(a,b){var d=a.x,k=a.y,d=d*C.scale-D.x+C.dx+(g?0:G.shiftX),k=(b?0:D.height)-k*C.scale+D.y-C.dy-(g?0:G.shiftY);return{x:d,y:k}};X=O(A[0],!0);x.appendChild(c("BeginX",D.x+X.x,m,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));x.appendChild(c("BeginY",z-D.y+X.y,m,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));X=O(A[A.length-1],!0);x.appendChild(c("EndX",
|
|
|
|
|
D.x+X.x,m,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));x.appendChild(c("EndY",z-D.y+X.y,m,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));x.appendChild(b("BegTrigger","2",m,k.source?"_XFTRIGGER(Sheet."+e(k.source.id)+"!EventXFMod)":null));x.appendChild(b("EndTrigger","2",m,k.target?"_XFTRIGGER(Sheet."+e(k.target.id)+"!EventXFMod)":null));x.appendChild(b("ConFixedCode","6",m));x.appendChild(b("LayerMember",f+"",m));d(B,x,m);f=B.style[mxConstants.STYLE_STARTSIZE];k=n(B.style[mxConstants.STYLE_STARTARROW],
|
|
|
|
|
B.style[mxConstants.STYLE_STARTFILL]);x.appendChild(b("BeginArrow",k,m));x.appendChild(b("BeginArrowSize",u(f),m));f=B.style[mxConstants.STYLE_ENDSIZE];k=n(B.style[mxConstants.STYLE_ENDARROW],B.style[mxConstants.STYLE_ENDFILL]);x.appendChild(b("EndArrow",k,m));x.appendChild(b("EndArrowSize",u(f),m));null!=B.text&&B.text.checkBounds()&&(G.save(),B.text.paint(G),G.restore());B=p(m,E.XMLNS,"Section");B.setAttribute("N","Geometry");B.setAttribute("IX","0");for(k=0;k<A.length;k++)f=O(A[k]),B.appendChild(a(0==
|
|
|
|
|
k?"MoveTo":"LineTo",k+1,f.x,f.y,m));B.appendChild(b("NoFill","1",m));B.appendChild(b("NoLine","0",m));x.appendChild(B);return x}function z(a,b,n,c,f,u,m){var g=a.geometry;if(null!=g){g.relative&&u&&(g=g.clone(),g.x*=u.width,g.y*=u.height,g.relative=0);u=e(a.id);if(!a.treatAsSingle&&0<a.getChildCount()){f=k(u+"10000",g,b,c,f,m);f.setAttribute("Type","Group");m=p(c,E.XMLNS,"Shapes");G.save();G.translate(-g.x,-g.y);u=g.clone();u.x=0;u.y=0;a.setGeometry(u);a.treatAsSingle=!0;u=z(a,b,n,c,g.height,g,!0);
|
|
|
|
|
a.treatAsSingle=!1;a.setGeometry(g);null!=u&&m.appendChild(u);for(var B=0;B<a.getChildCount();B++)u=z(a.children[B],b,n,c,g.height,g,!0),null!=u&&m.appendChild(u);f.appendChild(m);G.restore();return f}return a.vertex?(f=k(u,g,b,c,f,m),a=n.view.getState(a,!0),d(a,f,c),G.newShape(f,a,c),null!=a.text&&a.text.checkBounds()&&(G.save(),a.text.paint(G),G.restore()),null!=a.shape&&a.shape.checkBounds()&&(G.save(),a.shape.paint(G),G.restore()),f.appendChild(G.getShapeGeo()),G.endShape(),f.setAttribute("Type",
|
|
|
|
|
G.getShapeType()),f):x(a,b,n,c,f,m)}return null}function B(a,b){var d=mxUtils.createXmlDocument(),k=p(d,E.XMLNS,"PageContents");k.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns",E.XMLNS);k.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",E.XMLNS_R);var n=p(d,E.XMLNS,"Shapes");k.appendChild(n);var c=a.model,f=a.view.translate,u=a.view.scale,x=a.getGraphBounds();G.shiftX=0;G.shiftY=0;if(x.x/u<f.x||x.y/u<f.y)G.shiftX=Math.ceil((f.x-x.x/u)/a.pageFormat.width)*a.pageFormat.width,G.shiftY=
|
|
|
|
|
Math.ceil((f.y-x.y/u)/a.pageFormat.height)*a.pageFormat.height;G.save();G.translate(-f.x,-f.y);G.scale(1/u);G.newPage();u=a.model.getChildCells(a.model.root);f={};for(x=0;x<u.length;x++)f[u[x].id]=x;for(var m in c.cells)u=c.cells[m],x=null!=u.parent?f[u.parent.id]:null,null!=x&&(u=A(u,x,a,d,b.pageHeight),null!=u&&n.appendChild(u));n=p(d,E.XMLNS,"Connects");k.appendChild(n);for(m in c.cells)u=c.cells[m],u.edge&&(u.source&&(f=p(d,E.XMLNS,"Connect"),f.setAttribute("FromSheet",e(u.id)),f.setAttribute("FromCell",
|
|
|
|
|
"BeginX"),f.setAttribute("ToSheet",e(u.source.id)),n.appendChild(f)),u.target&&(f=p(d,E.XMLNS,"Connect"),f.setAttribute("FromSheet",e(u.id)),f.setAttribute("FromCell","EndX"),f.setAttribute("ToSheet",e(u.target.id)),n.appendChild(f)));d.appendChild(k);G.restore();return d}function z(a,b,d,k){a.file(b,(k?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(d,"\n"))}function C(a,d,k,n){var f=mxUtils.createXmlDocument(),u=mxUtils.createXmlDocument(),x=p(f,E.XMLNS,"Pages");x.setAttributeNS("http://www.w3.org/2000/xmlns/",
|
|
|
|
|
"xmlns",E.XMLNS);x.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",E.XMLNS_R);var e=p(u,E.RELS_XMLNS,"Relationships"),m=1,A;for(A in d){var g="page"+m+".xml",B=p(f,E.XMLNS,"Page");B.setAttribute("ID",m-1);B.setAttribute("NameU",A);B.setAttribute("Name",A);var C=p(f,E.XMLNS,"PageSheet"),D=n[A];C.appendChild(c("PageWidth",D.pageWidth,f));C.appendChild(c("PageHeight",D.pageHeight,f));C.appendChild(b("PageScale",D.pageScale,f));C.appendChild(b("DrawingScale",1,f));D=p(f,E.XMLNS,"Rel");D.setAttributeNS(E.XMLNS_R,
|
|
|
|
|
"r:id","rId"+m);var O=p(f,E.XMLNS,"Section");O.setAttribute("N","Layer");for(var X=k[A],G=0;G<X.length;G++){var M=p(f,E.XMLNS,"Row");M.setAttribute("IX",G+"");O.appendChild(M);M.appendChild(b("Name",X[G].name,f));M.appendChild(b("Color","255",f));M.appendChild(b("Status","0",f));M.appendChild(b("Visible",X[G].visible?"1":"0",f));M.appendChild(b("Print","1",f));M.appendChild(b("Active","0",f));M.appendChild(b("Lock",X[G].locked?"1":"0",f));M.appendChild(b("Snap","1",f));M.appendChild(b("Glue","1",
|
|
|
|
|
f));M.appendChild(b("NameUniv",X[G].name,f));M.appendChild(b("ColorTrans","0",f))}C.appendChild(O);B.appendChild(C);B.appendChild(D);x.appendChild(B);B=p(u,E.RELS_XMLNS,"Relationship");B.setAttribute("Id","rId"+m);B.setAttribute("Type",E.PAGES_TYPE);B.setAttribute("Target",g);e.appendChild(B);z(a,E.VISIO_PAGES+g,d[A]);m++}f.appendChild(x);u.appendChild(e);z(a,E.VISIO_PAGES+"pages.xml",f);z(a,E.VISIO_PAGES+"_rels/pages.xml.rels",u)}function D(a,b){var d=E.VISIO_PAGES_RELS+"page"+b+".xml.rels",k=mxUtils.createXmlDocument(),
|
|
|
|
|
n=p(k,E.RELS_XMLNS,"Relationships"),c=p(k,E.RELS_XMLNS,"Relationship");c.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");c.setAttribute("Id","rId1");c.setAttribute("Target","../masters/master1.xml");n.appendChild(c);var f=G.images;if(0<f.length)for(var u=0;u<f.length;u++)c=p(k,E.RELS_XMLNS,"Relationship"),c.setAttribute("Type",E.XMLNS_R+"/image"),c.setAttribute("Id","rId"+(u+2)),c.setAttribute("Target","../media/"+f[u]),n.appendChild(c);k.appendChild(n);z(a,d,k)}
|
|
|
|
|
Math.ceil((f.y-x.y/u)/a.pageFormat.height)*a.pageFormat.height;G.save();G.translate(-f.x,-f.y);G.scale(1/u);G.newPage();u=a.model.getChildCells(a.model.root);f={};for(x=0;x<u.length;x++)f[u[x].id]=x;for(var m in c.cells)u=c.cells[m],x=null!=u.parent?f[u.parent.id]:null,null!=x&&(u=z(u,x,a,d,b.pageHeight),null!=u&&n.appendChild(u));n=p(d,E.XMLNS,"Connects");k.appendChild(n);for(m in c.cells)u=c.cells[m],u.edge&&(u.source&&(f=p(d,E.XMLNS,"Connect"),f.setAttribute("FromSheet",e(u.id)),f.setAttribute("FromCell",
|
|
|
|
|
"BeginX"),f.setAttribute("ToSheet",e(u.source.id)),n.appendChild(f)),u.target&&(f=p(d,E.XMLNS,"Connect"),f.setAttribute("FromSheet",e(u.id)),f.setAttribute("FromCell","EndX"),f.setAttribute("ToSheet",e(u.target.id)),n.appendChild(f)));d.appendChild(k);G.restore();return d}function C(a,b,d,k){a.file(b,(k?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(d,"\n"))}function A(a,d,k,n){var f=mxUtils.createXmlDocument(),u=mxUtils.createXmlDocument(),x=p(f,E.XMLNS,"Pages");x.setAttributeNS("http://www.w3.org/2000/xmlns/",
|
|
|
|
|
"xmlns",E.XMLNS);x.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:r",E.XMLNS_R);var e=p(u,E.RELS_XMLNS,"Relationships"),m=1,z;for(z in d){var g="page"+m+".xml",B=p(f,E.XMLNS,"Page");B.setAttribute("ID",m-1);B.setAttribute("NameU",z);B.setAttribute("Name",z);var A=p(f,E.XMLNS,"PageSheet"),D=n[z];A.appendChild(c("PageWidth",D.pageWidth,f));A.appendChild(c("PageHeight",D.pageHeight,f));A.appendChild(b("PageScale",D.pageScale,f));A.appendChild(b("DrawingScale",1,f));D=p(f,E.XMLNS,"Rel");D.setAttributeNS(E.XMLNS_R,
|
|
|
|
|
"r:id","rId"+m);var O=p(f,E.XMLNS,"Section");O.setAttribute("N","Layer");for(var X=k[z],G=0;G<X.length;G++){var M=p(f,E.XMLNS,"Row");M.setAttribute("IX",G+"");O.appendChild(M);M.appendChild(b("Name",X[G].name,f));M.appendChild(b("Color","255",f));M.appendChild(b("Status","0",f));M.appendChild(b("Visible",X[G].visible?"1":"0",f));M.appendChild(b("Print","1",f));M.appendChild(b("Active","0",f));M.appendChild(b("Lock",X[G].locked?"1":"0",f));M.appendChild(b("Snap","1",f));M.appendChild(b("Glue","1",
|
|
|
|
|
f));M.appendChild(b("NameUniv",X[G].name,f));M.appendChild(b("ColorTrans","0",f))}A.appendChild(O);B.appendChild(A);B.appendChild(D);x.appendChild(B);B=p(u,E.RELS_XMLNS,"Relationship");B.setAttribute("Id","rId"+m);B.setAttribute("Type",E.PAGES_TYPE);B.setAttribute("Target",g);e.appendChild(B);C(a,E.VISIO_PAGES+g,d[z]);m++}f.appendChild(x);u.appendChild(e);C(a,E.VISIO_PAGES+"pages.xml",f);C(a,E.VISIO_PAGES+"_rels/pages.xml.rels",u)}function D(a,b){var d=E.VISIO_PAGES_RELS+"page"+b+".xml.rels",k=mxUtils.createXmlDocument(),
|
|
|
|
|
n=p(k,E.RELS_XMLNS,"Relationships"),c=p(k,E.RELS_XMLNS,"Relationship");c.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");c.setAttribute("Id","rId1");c.setAttribute("Target","../masters/master1.xml");n.appendChild(c);var f=G.images;if(0<f.length)for(var u=0;u<f.length;u++)c=p(k,E.RELS_XMLNS,"Relationship"),c.setAttribute("Type",E.XMLNS_R+"/image"),c.setAttribute("Id","rId"+(u+2)),c.setAttribute("Target","../media/"+f[u]),n.appendChild(c);k.appendChild(n);C(a,d,k)}
|
|
|
|
|
var E=this,G=new mxVsdxCanvas2D,O={},M=1;this.exportCurrentDiagrams=function(){try{if(f.spinner.spin(document.body,mxResources.get("exporting"))){var a=function(a,b){var d=a.model.getChildCells(a.model.root);k[b]=[];for(var n=0;n<d.length;n++)d[n].visible&&k[b].push({name:d[n].value||"Background",visible:d[n].visible,locked:d[n].style&&0<=d[n].style.indexOf("locked=1")})},b=new JSZip;G.init(b);O={};M=1;var d={},k={},n={},c=null!=f.pages?f.pages.length:1;if(null!=f.pages){for(var u=f.editor.graph.getSelectionCells(),
|
|
|
|
|
x=f.currentPage,e=0;e<f.pages.length;e++){var A=f.pages[e];f.currentPage!=A&&f.selectPage(A,!0);var p=A.getName(),z=f.editor.graph,E=null;null!=z.themes&&"darkTheme"==z.defaultThemeName&&(E=z.stylesheet,z.stylesheet=z.getDefaultStylesheet(),z.refresh());try{var Ea=m(z);d[p]=B(z,Ea);a(z,p);D(b,e+1);n[p]=Ea}finally{null!=E&&(z.stylesheet=E,z.refresh())}}x!=f.currentPage&&f.selectPage(x,!0);f.editor.graph.setSelectionCells(u)}else z=f.editor.graph,Ea=m(z),p="Page1",d[p]=B(z,Ea),a(z,p),D(b,1),n[p]=Ea;
|
|
|
|
|
g(b,c);C(b,d,k,n);a=function(){b.generateAsync({type:"base64"}).then(function(a){f.spinner.stop();var b=f.getBaseFilename();f.saveData(b+".vsdx","vsdx",a,"application/vnd.visio2013",!0)})};0<G.filesLoading?G.onFilesLoaded=a:a()}return!0}catch(xb){return console.log(xb),f.spinner.stop(),!1}}}VsdxExport.prototype.CONVERSION_FACTOR=101.6;VsdxExport.prototype.PAGES_TYPE="http://schemas.microsoft.com/visio/2010/relationships/page";VsdxExport.prototype.RELS_XMLNS="http://schemas.openxmlformats.org/package/2006/relationships";
|
|
|
|
|
x=f.currentPage,e=0;e<f.pages.length;e++){var z=f.pages[e];f.currentPage!=z&&f.selectPage(z,!0);var p=z.getName(),C=f.editor.graph,E=null;null!=C.themes&&"darkTheme"==C.defaultThemeName&&(E=C.stylesheet,C.stylesheet=C.getDefaultStylesheet(),C.refresh());try{var Ea=m(C);d[p]=B(C,Ea);a(C,p);D(b,e+1);n[p]=Ea}finally{null!=E&&(C.stylesheet=E,C.refresh())}}x!=f.currentPage&&f.selectPage(x,!0);f.editor.graph.setSelectionCells(u)}else C=f.editor.graph,Ea=m(C),p="Page1",d[p]=B(C,Ea),a(C,p),D(b,1),n[p]=Ea;
|
|
|
|
|
g(b,c);A(b,d,k,n);a=function(){b.generateAsync({type:"base64"}).then(function(a){f.spinner.stop();var b=f.getBaseFilename();f.saveData(b+".vsdx","vsdx",a,"application/vnd.visio2013",!0)})};0<G.filesLoading?G.onFilesLoaded=a:a()}return!0}catch(xb){return console.log(xb),f.spinner.stop(),!1}}}VsdxExport.prototype.CONVERSION_FACTOR=101.6;VsdxExport.prototype.PAGES_TYPE="http://schemas.microsoft.com/visio/2010/relationships/page";VsdxExport.prototype.RELS_XMLNS="http://schemas.openxmlformats.org/package/2006/relationships";
|
|
|
|
|
VsdxExport.prototype.XML_SPACE="preserve";VsdxExport.prototype.XMLNS_R="http://schemas.openxmlformats.org/officeDocument/2006/relationships";VsdxExport.prototype.XMLNS="http://schemas.microsoft.com/office/visio/2012/main";VsdxExport.prototype.VISIO_PAGES="visio/pages/";VsdxExport.prototype.PREFEX="com/mxgraph/io/vsdx/resources/export/";VsdxExport.prototype.VSDX_ENC="ISO-8859-1";VsdxExport.prototype.PART_NAME="PartName";VsdxExport.prototype.CONTENT_TYPES_XML="[Content_Types].xml";
|
|
|
|
|
VsdxExport.prototype.VISIO_PAGES_RELS="visio/pages/_rels/";
|
|
|
|
|
VsdxExport.prototype.ARROWS_MAP={"none|1":0,"none|0":0,"open|1":1,"open|0":1,"block|1":4,"block|0":14,"classic|1":5,"classic|0":17,"oval|1":10,"oval|0":20,"diamond|1":11,"diamond|0":22,"blockThin|1":2,"blockThin|0":15,"dash|1":23,"dash|0":23,"ERone|1":24,"ERone|0":24,"ERmandOne|1":25,"ERmandOne|0":25,"ERmany|1":27,"ERmany|0":27,"ERoneToMany|1":28,"ERoneToMany|0":28,"ERzeroToMany|1":29,"ERzeroToMany|0":29,"ERzeroToOne|1":30,"ERzeroToOne|0":30,"openAsync|1":9,"openAsync|0":9};function mxVsdxCanvas2D(){mxAbstractCanvas2D.call(this)}mxUtils.extend(mxVsdxCanvas2D,mxAbstractCanvas2D);mxVsdxCanvas2D.prototype.textEnabled=!0;mxVsdxCanvas2D.prototype.init=function(f){this.filesLoading=0;this.zip=f};mxVsdxCanvas2D.prototype.onFilesLoaded=function(){};mxVsdxCanvas2D.prototype.createElt=function(f){return null!=this.xmlDoc.createElementNS?this.xmlDoc.createElementNS(VsdxExport.prototype.XMLNS,f):this.xmlDoc.createElement(f)};
|
|
|
|
|
mxVsdxCanvas2D.prototype.createGeoSec=function(){null!=this.geoSec&&this.shape.appendChild(this.geoSec);var f=this.createElt("Section");f.setAttribute("N","Geometry");f.setAttribute("IX",this.geoIndex++);this.geoSec=f;this.geoStepIndex=1;this.lastMoveToY=this.lastMoveToX=this.lastY=this.lastX=0};mxVsdxCanvas2D.prototype.newShape=function(f,g,p){this.geoIndex=0;this.shape=f;this.cellState=g;this.xmGeo=g.cell.geometry;this.xmlDoc=p;this.shapeImg=this.geoSec=null;this.shapeType="Shape";this.createGeoSec()};
|
|
|
|
|
mxVsdxCanvas2D.prototype.newEdge=function(f,g,p){this.shape=f;this.cellState=g;this.xmGeo=g.cellBounds;this.xmlDoc=p};mxVsdxCanvas2D.prototype.endShape=function(){null!=this.shapeImg&&this.addForeignData(this.shapeImg.type,this.shapeImg.id)};mxVsdxCanvas2D.prototype.newPage=function(){this.images=[]};mxVsdxCanvas2D.prototype.getShapeType=function(){return this.shapeType};mxVsdxCanvas2D.prototype.getShapeGeo=function(){return this.geoSec};
|
|
|
|
|
mxVsdxCanvas2D.prototype.createCellElemScaled=function(f,g,p){return this.createCellElem(f,g/VsdxExport.prototype.CONVERSION_FACTOR,p)};mxVsdxCanvas2D.prototype.createCellElem=function(f,g,p){var e=this.createElt("Cell");e.setAttribute("N",f);e.setAttribute("V",g);p&&e.setAttribute("F",p);return e};
|
|
|
|
|
mxVsdxCanvas2D.prototype.createRowScaled=function(f,g,p,e,m,c,b,a,d,k,n,u,x,A){return this.createRowRel(f,g,p/VsdxExport.prototype.CONVERSION_FACTOR,e/VsdxExport.prototype.CONVERSION_FACTOR,m/VsdxExport.prototype.CONVERSION_FACTOR,c/VsdxExport.prototype.CONVERSION_FACTOR,b/VsdxExport.prototype.CONVERSION_FACTOR,a/VsdxExport.prototype.CONVERSION_FACTOR,d,k,n,u,x,A)};
|
|
|
|
|
mxVsdxCanvas2D.prototype.createRowRel=function(f,g,p,e,m,c,b,a,d,k,n,u,x,A){var B=this.createElt("Row");B.setAttribute("T",f);B.setAttribute("IX",g);B.appendChild(this.createCellElem("X",p,d));B.appendChild(this.createCellElem("Y",e,k));null!=m&&B.appendChild(this.createCellElem("A",m,n));null!=c&&B.appendChild(this.createCellElem("B",c,u));null!=b&&B.appendChild(this.createCellElem("C",b,x));null!=a&&B.appendChild(this.createCellElem("D",a,A));return B};
|
|
|
|
|
mxVsdxCanvas2D.prototype.createRowScaled=function(f,g,p,e,m,c,b,a,d,k,n,u,x,z){return this.createRowRel(f,g,p/VsdxExport.prototype.CONVERSION_FACTOR,e/VsdxExport.prototype.CONVERSION_FACTOR,m/VsdxExport.prototype.CONVERSION_FACTOR,c/VsdxExport.prototype.CONVERSION_FACTOR,b/VsdxExport.prototype.CONVERSION_FACTOR,a/VsdxExport.prototype.CONVERSION_FACTOR,d,k,n,u,x,z)};
|
|
|
|
|
mxVsdxCanvas2D.prototype.createRowRel=function(f,g,p,e,m,c,b,a,d,k,n,u,x,z){var B=this.createElt("Row");B.setAttribute("T",f);B.setAttribute("IX",g);B.appendChild(this.createCellElem("X",p,d));B.appendChild(this.createCellElem("Y",e,k));null!=m&&B.appendChild(this.createCellElem("A",m,n));null!=c&&B.appendChild(this.createCellElem("B",c,u));null!=b&&B.appendChild(this.createCellElem("C",b,x));null!=a&&B.appendChild(this.createCellElem("D",a,z));return B};
|
|
|
|
|
mxVsdxCanvas2D.prototype.begin=function(){1<this.geoStepIndex&&this.createGeoSec()};
|
|
|
|
|
mxVsdxCanvas2D.prototype.rect=function(f,g,p,e){1<this.geoStepIndex&&this.createGeoSec();var m=this.state;p*=m.scale;e*=m.scale;var c=this.xmGeo;f=(f-c.x+m.dx)*m.scale;g=(c.height-g+c.y-m.dy)*m.scale;this.geoSec.appendChild(this.createRowScaled("MoveTo",this.geoStepIndex++,f,g));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,f+p,g));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,f+p,g-e));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,
|
|
|
|
|
f,g-e));this.geoSec.appendChild(this.createRowScaled("LineTo",this.geoStepIndex++,f,g))};mxVsdxCanvas2D.prototype.roundrect=function(f,g,p,e,m,c){this.rect(f,g,p,e);this.shape.appendChild(this.createCellElemScaled("Rounding",m))};
|
|
|
|
@ -965,17 +965,17 @@ try{p(f)}catch(b){}e.filesLoading--;if(0==e.filesLoading)e.onFilesLoaded()};img.
|
|
|
|
|
mxVsdxCanvas2D.prototype.image=function(f,g,p,e,m,c,b,a){var d=this,k="image"+(this.images.length+1)+".",n;if(0==m.indexOf("data:"))n=m.indexOf("base64,"),c=m.substring(n+7),n=m.substring(11,n-1),0==n.indexOf("svg")?(n="png",k+=n,this.convertSvg2Png(c,!0,function(a){d.zip.file("visio/media/"+k,a.substring(22),{base64:!0})})):(k+=n,this.zip.file("visio/media/"+k,c,{base64:!0}));else if(window.XMLHttpRequest){m=this.converter.convert(m);this.filesLoading++;n=m.lastIndexOf(".");n=m.substring(n+1);var u=
|
|
|
|
|
!1;0==n.indexOf("svg")&&(n="png",u=!0);k+=n;c=new XMLHttpRequest;c.open("GET",m,!0);c.responseType="arraybuffer";c.onreadystatechange=function(a){if(4==this.readyState&&(200==this.status&&(u?d.convertSvg2Png(this.response,!1,function(a){d.zip.file("visio/media/"+k,a.substring(22),{base64:!0})}):d.zip.file("visio/media/"+k,this.response)),d.filesLoading--,0==d.filesLoading))d.onFilesLoaded()};c.send()}this.images.push(k);this.shapeImg={type:n,id:this.images.length+1};m=this.state;p*=m.scale;e*=m.scale;
|
|
|
|
|
n=this.xmGeo;f=(f-n.x+m.dx)*m.scale;g=(n.height-g+n.y-m.dy)*m.scale;this.shape.appendChild(this.createCellElemScaled("ImgOffsetX",f));this.shape.appendChild(this.createCellElemScaled("ImgOffsetY",g-e));this.shape.appendChild(this.createCellElemScaled("ImgWidth",p));this.shape.appendChild(this.createCellElemScaled("ImgHeight",e))};
|
|
|
|
|
mxVsdxCanvas2D.prototype.text=function(f,g,p,e,m,c,b,a,d,k,n,u,x){var A=this;if(this.textEnabled&&null!=m){mxUtils.isNode(m)&&(m=mxUtils.getOuterHtml(m));0==p&&0==e&&(e=mxUtils.getSizeForString(m,A.cellState.style.fontSize,A.cellState.style.fontFamily),p=2*e.width,e=2*e.height);"html"==d&&("0"!=mxUtils.getValue(this.cellState.style,"nl2Br","1")&&(m=m.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n")),null==this.html2txtDiv&&(this.html2txtDiv=document.createElement("div")),this.html2txtDiv.innerHTML=Graph.sanitizeHtml(m),
|
|
|
|
|
m=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));k=this.state;n=this.xmGeo;p*=k.scale;e*=k.scale;var B=this.createElt("Section");B.setAttribute("N","Character");var z=this.createElt("Section");z.setAttribute("N","Paragraph");var C=this.createElt("Text"),D=0,E=0,G=0,O=0,M=0,X=0,ca=0,Z=function(b,d,k,n,c){var f=b.fontSize,u=b.fontFamily,x=mxUtils.getSizeForString(c,f,u);a&&x.width>p&&(x=mxUtils.getSizeForString(c,f,u,p));b.blockElem?(M+=x.width,G=Math.min(Math.max(G,M),p),M=0,X=Math.max(X,
|
|
|
|
|
x.height),O+=X+ca,ca=X,X=0):(M+=x.width,G=Math.min(Math.max(G,M),p),X=Math.max(X,x.height),O=Math.max(O,X));x=A.createElt("Row");x.setAttribute("IX",D);b.fontColor&&x.appendChild(A.createCellElem("Color",b.fontColor));f&&x.appendChild(A.createCellElemScaled("Size",.97*f));u&&x.appendChild(A.createCellElem("Font",u));f=0;b.bold&&(f|=17);b.italic&&(f|=34);b.underline&&(f|=4);x.appendChild(A.createCellElem("Style",f));x.appendChild(A.createCellElem("Case","0"));x.appendChild(A.createCellElem("Pos","0"));
|
|
|
|
|
x.appendChild(A.createCellElem("FontScale","1"));x.appendChild(A.createCellElem("Letterspace","0"));d.appendChild(x);d=A.createElt("Row");d.setAttribute("IX",E);switch(b.align){case "left":f=0;break;case "center":f=1;break;case "right":f=2;break;case "start":f=0;break;case "end":f=2;break;case "justify":f=0;break;default:f=1}d.appendChild(A.createCellElem("HorzAlign",f));k.appendChild(d);k=A.createElt("cp");k.setAttribute("IX",D++);n.appendChild(k);b=A.xmlDoc.createTextNode(c+(b.blockElem?"\n":""));
|
|
|
|
|
n.appendChild(b)},W=function(a,b){b=b||{};for(var d=0;d<a.length;d++){var k=a[d];if(3==k.nodeType){var n=A.cellState.style.fontStyle,c={fontColor:b.fontColor||A.cellState.style.fontColor,fontSize:b.fontSize||A.cellState.style.fontSize,fontFamily:b.fontFamily||A.cellState.style.fontFamily,align:b.align||A.cellState.style.align,bold:b.bold||n&1,italic:b.italic||n&2,underline:b.underline||n&4},n=!1;d+1<a.length&&"BR"==a[d+1].nodeName.toUpperCase()&&(n=!0,d++);Z(c,B,z,C,(b.OL?b.LiIndex+". ":"")+k.textContent+
|
|
|
|
|
mxVsdxCanvas2D.prototype.text=function(f,g,p,e,m,c,b,a,d,k,n,u,x){var z=this;if(this.textEnabled&&null!=m){mxUtils.isNode(m)&&(m=mxUtils.getOuterHtml(m));0==p&&0==e&&(e=mxUtils.getSizeForString(m,z.cellState.style.fontSize,z.cellState.style.fontFamily),p=2*e.width,e=2*e.height);"html"==d&&("0"!=mxUtils.getValue(this.cellState.style,"nl2Br","1")&&(m=m.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n")),null==this.html2txtDiv&&(this.html2txtDiv=document.createElement("div")),this.html2txtDiv.innerHTML=Graph.sanitizeHtml(m),
|
|
|
|
|
m=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));k=this.state;n=this.xmGeo;p*=k.scale;e*=k.scale;var B=this.createElt("Section");B.setAttribute("N","Character");var C=this.createElt("Section");C.setAttribute("N","Paragraph");var A=this.createElt("Text"),D=0,E=0,G=0,O=0,M=0,X=0,ca=0,Z=function(b,d,k,n,c){var f=b.fontSize,u=b.fontFamily,x=mxUtils.getSizeForString(c,f,u);a&&x.width>p&&(x=mxUtils.getSizeForString(c,f,u,p));b.blockElem?(M+=x.width,G=Math.min(Math.max(G,M),p),M=0,X=Math.max(X,
|
|
|
|
|
x.height),O+=X+ca,ca=X,X=0):(M+=x.width,G=Math.min(Math.max(G,M),p),X=Math.max(X,x.height),O=Math.max(O,X));x=z.createElt("Row");x.setAttribute("IX",D);b.fontColor&&x.appendChild(z.createCellElem("Color",b.fontColor));f&&x.appendChild(z.createCellElemScaled("Size",.97*f));u&&x.appendChild(z.createCellElem("Font",u));f=0;b.bold&&(f|=17);b.italic&&(f|=34);b.underline&&(f|=4);x.appendChild(z.createCellElem("Style",f));x.appendChild(z.createCellElem("Case","0"));x.appendChild(z.createCellElem("Pos","0"));
|
|
|
|
|
x.appendChild(z.createCellElem("FontScale","1"));x.appendChild(z.createCellElem("Letterspace","0"));d.appendChild(x);d=z.createElt("Row");d.setAttribute("IX",E);switch(b.align){case "left":f=0;break;case "center":f=1;break;case "right":f=2;break;case "start":f=0;break;case "end":f=2;break;case "justify":f=0;break;default:f=1}d.appendChild(z.createCellElem("HorzAlign",f));k.appendChild(d);k=z.createElt("cp");k.setAttribute("IX",D++);n.appendChild(k);b=z.xmlDoc.createTextNode(c+(b.blockElem?"\n":""));
|
|
|
|
|
n.appendChild(b)},W=function(a,b){b=b||{};for(var d=0;d<a.length;d++){var k=a[d];if(3==k.nodeType){var n=z.cellState.style.fontStyle,c={fontColor:b.fontColor||z.cellState.style.fontColor,fontSize:b.fontSize||z.cellState.style.fontSize,fontFamily:b.fontFamily||z.cellState.style.fontFamily,align:b.align||z.cellState.style.align,bold:b.bold||n&1,italic:b.italic||n&2,underline:b.underline||n&4},n=!1;d+1<a.length&&"BR"==a[d+1].nodeName.toUpperCase()&&(n=!0,d++);Z(c,B,C,A,(b.OL?b.LiIndex+". ":"")+k.textContent+
|
|
|
|
|
(n?"\n":""))}else if(1==k.nodeType){var n=k.nodeName.toUpperCase(),f=k.childNodes.length,c=window.getComputedStyle(k,null),u="bold"==c.getPropertyValue("font-weight")||b.bold,x="italic"==c.getPropertyValue("font-style")||b.italic,e=0<=c.getPropertyValue("text-decoration").indexOf("underline")||b.underline,m=c.getPropertyValue("text-align"),g;g=c.getPropertyValue("color");g=(g=g.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===g.length?"#"+("0"+parseInt(g[1],10).toString(16)).slice(-2)+
|
|
|
|
|
("0"+parseInt(g[2],10).toString(16)).slice(-2)+("0"+parseInt(g[3],10).toString(16)).slice(-2):"";c={bold:u,italic:x,underline:e,align:m,fontColor:g,fontSize:parseFloat(c.getPropertyValue("font-size")),fontFamily:c.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==c.getPropertyValue("display")||"BR"==n||"LI"==n,OL:b.OL,LiIndex:b.LiIndex};"UL"==n?(u=A.createElt("Row"),u.setAttribute("IX",E),u.appendChild(A.createCellElem("HorzAlign","0")),u.appendChild(A.createCellElem("Bullet","1")),
|
|
|
|
|
z.appendChild(u),u=A.createElt("pp"),u.setAttribute("IX",E++),C.appendChild(u)):"OL"==n?c.OL=!0:"LI"==n&&(c.LiIndex=d+1);0<f?(W(k.childNodes,c),"UL"==n&&(u=A.createElt("Row"),u.setAttribute("IX",E),u.appendChild(A.createCellElem("Bullet","0")),z.appendChild(u),u=A.createElt("pp"),u.setAttribute("IX",E++),C.appendChild(u)),Z(c,B,z,C,"")):Z(c,B,z,C,(b.OL?b.LiIndex+". ":"")+k.textContent)}}};"html"==d&&mxClient.IS_SVG?(m=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=
|
|
|
|
|
m&&W(m.childNodes,{})):Z({fontColor:A.cellState.style.fontColor,fontSize:A.cellState.style.fontSize,fontFamily:A.cellState.style.fontFamily},B,z,C,m);d=m=0;e=Math.max(e,O);p=Math.max(p,G);x=p/2;var Q=e/2,ma=parseInt(mxUtils.getValue(this.cellState.style,"rotation","0")),ea=ma*Math.PI/180;switch(c){case "right":0!=ma?(f-=x*Math.cos(ea),g-=x*Math.sin(ea)):m=G/2;break;case "left":0!=ma?(f+=x*Math.cos(ea),g+=x*Math.sin(ea)):m=-G/2}switch(b){case "top":0!=ma?(f+=Q*Math.sin(ea),g+=Q*Math.cos(ea)):d=O/2;
|
|
|
|
|
("0"+parseInt(g[2],10).toString(16)).slice(-2)+("0"+parseInt(g[3],10).toString(16)).slice(-2):"";c={bold:u,italic:x,underline:e,align:m,fontColor:g,fontSize:parseFloat(c.getPropertyValue("font-size")),fontFamily:c.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==c.getPropertyValue("display")||"BR"==n||"LI"==n,OL:b.OL,LiIndex:b.LiIndex};"UL"==n?(u=z.createElt("Row"),u.setAttribute("IX",E),u.appendChild(z.createCellElem("HorzAlign","0")),u.appendChild(z.createCellElem("Bullet","1")),
|
|
|
|
|
C.appendChild(u),u=z.createElt("pp"),u.setAttribute("IX",E++),A.appendChild(u)):"OL"==n?c.OL=!0:"LI"==n&&(c.LiIndex=d+1);0<f?(W(k.childNodes,c),"UL"==n&&(u=z.createElt("Row"),u.setAttribute("IX",E),u.appendChild(z.createCellElem("Bullet","0")),C.appendChild(u),u=z.createElt("pp"),u.setAttribute("IX",E++),A.appendChild(u)),Z(c,B,C,A,"")):Z(c,B,C,A,(b.OL?b.LiIndex+". ":"")+k.textContent)}}};"html"==d&&mxClient.IS_SVG?(m=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=
|
|
|
|
|
m&&W(m.childNodes,{})):Z({fontColor:z.cellState.style.fontColor,fontSize:z.cellState.style.fontSize,fontFamily:z.cellState.style.fontFamily},B,C,A,m);d=m=0;e=Math.max(e,O);p=Math.max(p,G);x=p/2;var Q=e/2,ma=parseInt(mxUtils.getValue(this.cellState.style,"rotation","0")),ea=ma*Math.PI/180;switch(c){case "right":0!=ma?(f-=x*Math.cos(ea),g-=x*Math.sin(ea)):m=G/2;break;case "left":0!=ma?(f+=x*Math.cos(ea),g+=x*Math.sin(ea)):m=-G/2}switch(b){case "top":0!=ma?(f+=Q*Math.sin(ea),g+=Q*Math.cos(ea)):d=O/2;
|
|
|
|
|
break;case "bottom":0!=ma?(f-=Q*Math.sin(ea),g-=Q*Math.cos(ea)):d=-O/2}f=(f-n.x+k.dx)*k.scale;g=(n.height-g+n.y-k.dy)*k.scale;this.shape.appendChild(this.createCellElemScaled("TxtPinX",f));this.shape.appendChild(this.createCellElemScaled("TxtPinY",g));this.shape.appendChild(this.createCellElemScaled("TxtWidth",p));this.shape.appendChild(this.createCellElemScaled("TxtHeight",e));this.shape.appendChild(this.createCellElemScaled("TxtLocPinX",x+m));this.shape.appendChild(this.createCellElemScaled("TxtLocPinY",
|
|
|
|
|
Q+d));u-=ma;0!=u&&this.shape.appendChild(this.createCellElem("TxtAngle",(360-u)*Math.PI/180));this.shape.appendChild(B);this.shape.appendChild(z);this.shape.appendChild(C)}};mxVsdxCanvas2D.prototype.rotate=function(f,g,p,e,m){0!=f&&(g=this.state,e+=g.dx,m+=g.dy,e*=g.scale,m*=g.scale,this.shape.appendChild(this.createCellElem("Angle",(360-f)*Math.PI/180)),g.rotation+=f,g.rotationCx=e,g.rotationCy=m)};
|
|
|
|
|
Q+d));u-=ma;0!=u&&this.shape.appendChild(this.createCellElem("TxtAngle",(360-u)*Math.PI/180));this.shape.appendChild(B);this.shape.appendChild(C);this.shape.appendChild(A)}};mxVsdxCanvas2D.prototype.rotate=function(f,g,p,e,m){0!=f&&(g=this.state,e+=g.dx,m+=g.dy,e*=g.scale,m*=g.scale,this.shape.appendChild(this.createCellElem("Angle",(360-f)*Math.PI/180)),g.rotation+=f,g.rotationCx=e,g.rotationCy=m)};
|
|
|
|
|
mxVsdxCanvas2D.prototype.stroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","1"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};mxVsdxCanvas2D.prototype.fill=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","1"))};mxVsdxCanvas2D.prototype.fillAndStroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};function BmpDecoder(f,g){this.pos=0;this.buffer=f;this.is_with_alpha=!!g;if(66!=this.buffer[0]&&77!=this.buffer[1])throw Error("Invalid BMP File");this.pos+=2;this.parseHeader();this.parseBGR()}
|
|
|
|
|
BmpDecoder.prototype.parseHeader=function(){var f=this.buffer;this.fileSize=f[this.pos+3]<<24|f[this.pos+2]<<16|f[this.pos+1]<<8|f[this.pos];this.pos+=4;this.reserved=f[this.pos+3]<<24|f[this.pos+2]<<16|f[this.pos+1]<<8|f[this.pos];this.pos+=4;this.offset=f[this.pos+3]<<24|f[this.pos+2]<<16|f[this.pos+1]<<8|f[this.pos];this.pos+=4;this.headerSize=f[this.pos+3]<<24|f[this.pos+2]<<16|f[this.pos+1]<<8|f[this.pos];this.pos+=4;this.width=f[this.pos+3]<<24|f[this.pos+2]<<16|f[this.pos+1]<<8|f[this.pos];
|
|
|
|
|
this.pos+=4;this.height=f[this.pos+3]<<24|f[this.pos+2]<<16|f[this.pos+1]<<8|f[this.pos];this.pos+=4;this.planes=f[this.pos+1]<<8|f[this.pos];this.pos+=2;this.bitPP=f[this.pos+1]<<8|f[this.pos];this.pos+=2;this.compress=f[this.pos+3]<<24|f[this.pos+2]<<16|f[this.pos+1]<<8|f[this.pos];this.pos+=4;this.rawSize=f[this.pos+3]<<24|f[this.pos+2]<<16|f[this.pos+1]<<8|f[this.pos];this.pos+=4;this.hr=f[this.pos+3]<<24|f[this.pos+2]<<16|f[this.pos+1]<<8|f[this.pos];this.pos+=4;this.vr=f[this.pos+3]<<24|f[this.pos+
|
|
|
|
@ -991,51 +991,51 @@ BmpDecoder.prototype.bit32=function(){for(var f=this.height-1;0<=f;f--)for(var g
|
|
|
|
|
(function(f){(function(g){(function(g){var e=function(){function e(c){this.RESPONSE_END="</mxfile>";this.RESPONSE_DIAGRAM_START="";this.RESPONSE_DIAGRAM_END="</diagram>";this.RESPONSE_HEADER='<?xml version="1.0" encoding="UTF-8"?><mxfile>';this.vertexMap={};this.edgeShapeMap={};this.vertexShapeMap={};this.parentsMap={};this.layersMap={};this.debugPaths=!1;this.vsdxModel=null;this.editorUi=c}e.vsdxPlaceholder_$LI$=function(){null==e.vsdxPlaceholder&&(e.vsdxPlaceholder=window.atob?atob("dmlzaW8="):
|
|
|
|
|
Base64.decode("dmlzaW8=",!0));return e.vsdxPlaceholder};e.parsererrorNS_$LI$=function(){if(null==e.parsererrorNS&&(e.parsererrorNS="",window.DOMParser)){var c=new DOMParser;try{e.parsererrorNS=c.parseFromString("<","text/xml").getElementsByTagName("parsererror")[0].namespaceURI}catch(b){}}return e.parsererrorNS};e.parseXml=function(c){try{var b=mxUtils.parseXml(c);return 0<b.getElementsByTagNameNS(e.parsererrorNS,"parsererror").length?null:b}catch(a){return null}};e.decodeUTF16LE=function(c){for(var b=
|
|
|
|
|
"",a=0;a<c.length;a+=2)b+=String.fromCharCode(c.charCodeAt(a)|c.charCodeAt(a+1)<<8);return b};e.prototype.scaleGraph=function(c,b){if(1!==b){var a=c.getModel(),d;for(d in a.cells){var k=a.cells[d],n=a.getGeometry(k);if(null!=n&&(this.scaleRect(n,b),this.scaleRect(n.alternateBounds,b),a.isEdge(k)&&(this.scalePoint(n.sourcePoint,b),this.scalePoint(n.targetPoint,b),this.scalePoint(n.offset,b),k=n.points,null!=k)))for(n=0;n<k.length;n++)this.scalePoint(k[n],b)}}};e.incorrectXMLReqExp=[{regExp:/(\>[^&<]*)\&([^&<;]*\<)/g,
|
|
|
|
|
repl:"$1&$2"}];e.prototype.decodeVsdx=function(c,b,a,d){var k=this,n={},u={},x=function(){var a;function d(){a=a.concat(k.RESPONSE_END);b&&b(a)}for(var c=e.vsdxPlaceholder+"/document.xml",x=n[c]?n[c]:null,m=x.firstChild;null!=m&&1!=m.nodeType;)m=m.nextSibling;if(null!=m&&1==m.nodeType)k.importNodes(x,m,c,n);else return null;k.vsdxModel=new f.mxgraph.io.vsdx.mxVsdxModel(x,n,u);c=k.vsdxModel.getPages();a=k.RESPONSE_HEADER;var A=function(a){null==a.entries&&(a.entries=[]);return a.entries}(c),g=
|
|
|
|
|
function(b,d){var n=A[b].getValue(),c=B.createMxGraph();c.getModel().beginUpdate();B.importPage(n,c,c.getDefaultParent(),!0);B.scaleGraph(c,n.getPageScale()/n.getDrawingScale());c.getModel().endUpdate();B.postImportPage(n,c,function(){B.sanitiseGraph(c);a=a.concat(k.RESPONSE_DIAGRAM_START);a=a.concat(k.processPage(c,n));a=a.concat(k.RESPONSE_DIAGRAM_END);b<A.length-1?g(b+1,d):d()})},B=k;0<A.length?g(0,d):d()},m=0,g=0,p=function(){if(g==m)try{x()}catch(C){console.log(C),null!=d?d():b("")}};JSZip.loadAsync(c).then(function(a){0==
|
|
|
|
|
repl:"$1&$2"}];e.prototype.decodeVsdx=function(c,b,a,d){var k=this,n={},u={},x=function(){var a;function d(){a=a.concat(k.RESPONSE_END);b&&b(a)}for(var c=e.vsdxPlaceholder+"/document.xml",x=n[c]?n[c]:null,m=x.firstChild;null!=m&&1!=m.nodeType;)m=m.nextSibling;if(null!=m&&1==m.nodeType)k.importNodes(x,m,c,n);else return null;k.vsdxModel=new f.mxgraph.io.vsdx.mxVsdxModel(x,n,u);c=k.vsdxModel.getPages();a=k.RESPONSE_HEADER;var z=function(a){null==a.entries&&(a.entries=[]);return a.entries}(c),g=
|
|
|
|
|
function(b,d){var n=z[b].getValue(),c=B.createMxGraph();c.getModel().beginUpdate();B.importPage(n,c,c.getDefaultParent(),!0);B.scaleGraph(c,n.getPageScale()/n.getDrawingScale());c.getModel().endUpdate();B.postImportPage(n,c,function(){B.sanitiseGraph(c);a=a.concat(k.RESPONSE_DIAGRAM_START);a=a.concat(k.processPage(c,n));a=a.concat(k.RESPONSE_DIAGRAM_END);b<z.length-1?g(b+1,d):d()})},B=k;0<z.length?g(0,d):d()},m=0,g=0,p=function(){if(g==m)try{x()}catch(A){console.log(A),null!=d?d():b("")}};JSZip.loadAsync(c).then(function(a){0==
|
|
|
|
|
Object.keys(a.files).length?null!=d&&d():a.forEach(function(a,b){var d=b.name,c=d.toLowerCase(),f=c.length;c.indexOf(".xml")==f-4||c.indexOf(".rels")==f-5?(m++,b.async("string").then(function(a){if(0!==a.length){65279==a.charCodeAt(0)&&(a=a.substring(1));var b=e.parseXml(a);if(null==b)if(0===a.charCodeAt(1)&&0===a.charCodeAt(3)&&0===a.charCodeAt(5))b=e.parseXml(e.decodeUTF16LE(a));else{for(b=0;b<e.incorrectXMLReqExp.length;b++)e.incorrectXMLReqExp[b].regExp.test(a)&&(a=a.replace(e.incorrectXMLReqExp[b].regExp,
|
|
|
|
|
e.incorrectXMLReqExp[b].repl));b=e.parseXml(a)}null!=b&&(b.vsdxFileName=d,n[d]=b)}g++;p()})):0===c.indexOf(e.vsdxPlaceholder+"/media")&&(m++,function(a,b){var d=a.length-b.length,k=a.indexOf(b,d);return-1!==k&&k===d}(c,".emf")?JSZip.support.blob&&window.EMF_CONVERT_URL?b.async("blob").then(function(a){var b=new FormData;b.append("img",a,c);b.append("inputformat","emf");b.append("outputformat","png");var n=new XMLHttpRequest;n.open("POST",EMF_CONVERT_URL);n.responseType="blob";k.editorUi.addRemoteServiceSecurityCheck(n);
|
|
|
|
|
n.onreadystatechange=mxUtils.bind(this,function(){if(4==n.readyState)if(200<=n.status&&299>=n.status)try{var a=new FileReader;a.readAsDataURL(n.response);a.onloadend=function(){var b=a.result.indexOf(",")+1;u[d]=a.result.substr(b);g++;p()}}catch(Q){console.log(Q),g++,p()}else g++,p()});n.send(b)}):(g++,p()):function(a,b){var d=a.length-b.length,k=a.indexOf(b,d);return-1!==k&&k===d}(c,".bmp")?JSZip.support.uint8array&&b.async("uint8array").then(function(a){a=new BmpDecoder(a);var b=document.createElement("canvas");
|
|
|
|
|
b.width=a.width;b.height=a.height;b.getContext("2d").putImageData(a.imageData,0,0);a=b.toDataURL("image/jpeg");u[d]=a.substr(23);g++;p()}):b.async("base64").then(function(a){u[d]=a;g++;p()}))})},function(a){null!=d&&d(a)})};e.prototype.createMxGraph=function(){var c=new Graph;c.setExtendParents(!1);c.setExtendParentsOnAdd(!1);c.setConstrainChildren(!1);c.setHtmlLabels(!0);c.getModel().maintainEdgeParent=!1;return c};e.prototype.processPage=function(c,b){var a=(new mxCodec).encode(c.getModel());a.setAttribute("style",
|
|
|
|
|
"default-style2");var a=mxUtils.getXml(a),d="";if(null!=b)var k=mxUtils.htmlEntities(b.getPageName())+(b.isBackground()?" (Background)":""),d=d+('<diagram name="'+k+'" id="'+k.replace(/\s/g,"_")+'">');return d+=Graph.compress(a)};e.prototype.scalePoint=function(c,b){null!=c&&(c.x*=b,c.y*=b);return c};e.prototype.scaleRect=function(c,b){null!=c&&(c.x*=b,c.y*=b,c.height*=b,c.width*=b);return c};e.prototype.importNodes=function(c,b,a,d){var k=a.lastIndexOf("/"),n=a,f=a;if(-1!==k&&(n=a.substring(0,k),
|
|
|
|
|
f=a.substring(k+1,a.length),a=function(a,b){return a[b]?a[b]:null}(d,n+"/_rels/"+f+".rels"),null!=a)){var e=a.getElementsByTagName("Relationship");a={};for(k=0;k<e.length;k++){var f=e.item(k),m=f.getAttribute("Id"),f=f.getAttribute("Target");a[m]=f}b=b.getElementsByTagName("Rel");for(k=0;k<b.length;k++)if(e=b.item(k),f=function(a,b){return a[b]?a[b]:null}(a,e.getAttribute("r:id")),f=n+"/"+f,null!=f&&(m=d[f]?d[f]:null,null!=m)){e=e.parentNode;for(m=m.firstChild;null!=m&&1!=m.nodeType;)m=m.nextSibling;
|
|
|
|
|
if(null!=m&&1==m.nodeType)for(m=m.firstChild;null!=m;){if(null!=m&&1==m.nodeType){var g=e.appendChild(c.importNode(m,!0));this.importNodes(c,g,f,d)}m=m.nextSibling}}}};e.prototype.importPage=function(c,b,a,d){var k=c.getBackPage();if(null!=k){b.getModel().setValue(b.getDefaultParent(),c.getPageName());var n=new mxCell(k.getPageName());b.addCell(n,b.getModel().getRoot(),0,null,null);this.importPage(k,b,b.getDefaultParent())}k=c.getLayers();this.layersMap[0]=b.getDefaultParent();for(n=0;n<k.length;n++){var f=
|
|
|
|
|
k[n];if(0==n)var e=b.getDefaultParent();else e=new mxCell,b.addCell(e,b.model.root,n);e.setVisible(1==f.Visible);1==f.Lock&&e.setStyle("locked=1;");e.setValue(f.Name);this.layersMap[n]=e}f=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(c.getShapes()));k=c.getPageDimensions().y;for(n=c.getId();f.hasNext();){var e=f.next(),e=e.getValue(),m=this.layersMap[e.layerMember];this.addShape(b,
|
|
|
|
|
e,m?m:a,n,k)}for(c=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(c.getConnects()));c.hasNext();)e=c.next(),a=this.addConnectedEdge(b,e.getValue(),n,k),null!=a&&function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries.splice(d,1)[0]}(this.edgeShapeMap,
|
|
|
|
|
a);for(c=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(this.edgeShapeMap));c.hasNext();)a=c.next(),a.getKey().getPageNumber()===n&&this.addUnconnectedEdge(b,function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.parentsMap,
|
|
|
|
|
a.getKey()),a.getValue(),k);d||this.sanitiseGraph(b);return k};e.prototype.postImportPage=function(c,b,a){try{var d=this,k=[],n=c.getShapes().entries||[];for(b=0;b<n.length;b++){var u=n[b].value||{};u.toBeCroppedImg&&k.push(u)}if(0<k.length){var e=function(a,b){function n(){a<k.length-1?e(a+1,b):b()}var u=k[a],x=u.toBeCroppedImg,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}(d.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(c.Id,u.Id)),A=new Image;A.onload=function(){var a=x.iData,b=x.iType;try{var d=A.width/x.imgWidth,k=A.height/x.imgHeight,c=-x.imgOffsetX*d,f=(x.imgHeight-x.height+x.imgOffsetY)*k,u=document.createElement("canvas");u.width=x.width*d;u.height=x.height*k;var e=u.getContext("2d");e.fillStyle="#FFFFFF";e.fillRect(0,0,u.width,u.height);e.drawImage(A,c,f,u.width,u.height,0,0,u.width,u.height);a=u.toDataURL("image/jpeg").substr(23);b="jpg"}catch(ea){console.log(ea)}m.style+=
|
|
|
|
|
";image=data:image/"+b+","+a;n()};A.src="data:image/"+x.iType+";base64,"+x.iData;A.onerror=function(){m.style+=";image=data:image/"+x.iType+","+x.iData;n()}};e(0,a)}else a()}catch(A){console.log(A),a()}};e.prototype.addShape=function(c,b,a,d,k){b.parentHeight=k;var n=f.mxgraph.io.vsdx.VsdxShape.getType(b.getShape());if(null!=n&&(function(a,b){return a&&a.equals?a.equals(b):a===b}(n,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(a,b){return a&&a.equals?a.equals(b):a===b}(n,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||
|
|
|
|
|
function(a,b){return a&&a.equals?a.equals(b):a===b}(n,f.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))){var u=b.getId();if(b.isVertex())return n=null,n=b.isGroup()?this.addGroup(c,b,a,d,k):this.addVertex(c,b,a,d,k),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.vertexShapeMap,
|
|
|
|
|
new f.mxgraph.io.vsdx.ShapePageId(d,u),b),b=b.getHyperlink(),b.extLink?c.setLinkForCell(n,b.extLink):b.pageLink&&c.setLinkForCell(n,"data:page/id,"+b.pageLink),n;b.setShapeIndex(c.getModel().getChildCount(a));(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.edgeShapeMap,
|
|
|
|
|
new f.mxgraph.io.vsdx.ShapePageId(d,u),b);(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.parentsMap,new f.mxgraph.io.vsdx.ShapePageId(d,u),a)}return null};e.prototype.addGroup=function(c,b,a,d,k){var n=b.getDimensions(),u=b.getMaster(),e=b.getStyleFromShape(),
|
|
|
|
|
m=b.getGeomList();m.isNoFill()&&(e[mxConstants.STYLE_FILLCOLOR]="none",e[mxConstants.STYLE_GRADIENTCOLOR]="none");m.isNoLine()&&(e[mxConstants.STYLE_STROKECOLOR]="none");e.html="1";e[mxConstants.STYLE_WHITE_SPACE]="wrap";var g=f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(e,"="),e=null,p=b.getChildShapes(),e=null!=p&&0<function(a){null==a.entries&&(a.entries=[]);return a.entries.length}(p),m=b.isDisplacedLabel()||b.isRotatedLabel()||e,e=b.getOriginPoint(k,!0);if(m)e=c.insertVertex(a,null,null,Math.floor(Math.round(100*
|
|
|
|
|
e.x)/100),Math.floor(Math.round(100*e.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),g);else var C=b.getTextLabel(),e=c.insertVertex(a,null,C,Math.floor(Math.round(100*e.x)/100),Math.floor(Math.round(100*e.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),g);for(a=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(p));a.hasNext();)g=
|
|
|
|
|
a.next().getValue(),p=g.getId(),g.isVertex()?(C=f.mxgraph.io.vsdx.VsdxShape.getType(g.getShape()),null!=C&&(function(a,b){return a&&a.equals?a.equals(b):a===b}(C,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(a,b){return a&&a.equals?a.equals(b):a===b}(C,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(a,b){return a&&a.equals?a.equals(b):a===b}(C,f.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&g.isVertex()&&(g.propagateRotation(b.getRotation()),g.isGroup()?this.addGroup(c,g,e,d,n.y):this.addVertex(c,
|
|
|
|
|
g,e,d,n.y)),null==u&&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.vertexShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,p),g)):null==u?(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.edgeShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,p),g),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.parentsMap,new f.mxgraph.io.vsdx.ShapePageId(d,p),e)):this.addUnconnectedEdge(c,e,g,k);m&&b.createLabelSubShape(c,e);c=b.getRotation();if(0!==c)for(n=e.getGeometry(),k=n.width/2,n=n.height/2,u=0;u<e.getChildCount();u++)m=e.getChildAt(u),f.mxgraph.online.Utils.rotatedGeometry(m.getGeometry(),c,k,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.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(d,b.getId()),e);return e};e.rotatedEdgePoint=function(c,b,a,d){b=b*Math.PI/180;var k=Math.cos(b);b=Math.sin(b);var n=c.x-a,f=c.y-d;c.x=Math.round(n*k-f*b+a);c.y=Math.round(f*k+n*b+d)};e.prototype.addVertex=function(c,b,a,d,k){var n="",u=b.isDisplacedLabel()||b.isRotatedLabel();u||(n=b.getTextLabel());var e=b.getDimensions(),
|
|
|
|
|
m=b.getStyleFromShape();m.html="1";var g=m.hasOwnProperty(mxConstants.STYLE_SHAPE)||m.hasOwnProperty("stencil");m.hasOwnProperty(mxConstants.STYLE_FILLCOLOR)&&g||(m[mxConstants.STYLE_FILLCOLOR]="none");g||(m[mxConstants.STYLE_STROKECOLOR]="none");m.hasOwnProperty(mxConstants.STYLE_GRADIENTCOLOR)&&g||(m[mxConstants.STYLE_GRADIENTCOLOR]="none");m[mxConstants.STYLE_WHITE_SPACE]="wrap";k=b.getOriginPoint(k,!0);return g||null!=n?(m=f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(m,"="),g=null,g=u?c.insertVertex(a,
|
|
|
|
|
null,null,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*e.x)/100),Math.floor(Math.round(100*e.y)/100),m):c.insertVertex(a,null,n,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*e.x)/100),Math.floor(Math.round(100*e.y)/100),m),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.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(d,b.getId()),g),b.setLabelOffset(g,m),u&&b.createLabelSubShape(c,g),g):null};e.calculateAbsolutePoint=function(c){for(var b=0,a=0;null!=c;){var d=c.geometry;null!=d&&(b+=d.x,a+=d.y);c=c.parent}return new mxPoint(b,a)};e.prototype.addConnectedEdge=function(c,b,a,d){var k=b.getFromSheet(),k=new f.mxgraph.io.vsdx.ShapePageId(a,k),n=function(a,
|
|
|
|
|
b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.edgeShapeMap,k);if(null==n)return null;var u=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.parentsMap,new f.mxgraph.io.vsdx.ShapePageId(a,n.getId()));
|
|
|
|
|
if(null!=u){var m=c.getModel().getGeometry(u);null!=m&&(d=m.height)}var g=n.getStartXY(d),p=n.getEndXY(d),m=n.getRoutingPoints(d,g,n.getRotation());this.rotateChildEdge(c.getModel(),u,g,p,m);var z=null,C=b.getSourceToSheet(),C=null!=C?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(a,C)):null,D=!0;
|
|
|
|
|
if(null==C)C=c.insertVertex(u,null,null,Math.floor(Math.round(100*g.x)/100),Math.floor(Math.round(100*g.y)/100),0,0);else if(C.style&&-1==C.style.indexOf(";rotation="))var z=e.calculateAbsolutePoint(C),E=e.calculateAbsolutePoint(u),G=C.geometry,z=new mxPoint((E.x+g.x-z.x)/G.width,(E.y+g.y-z.y)/G.height);else D=!1;g=null;b=b.getTargetToSheet();b=null!=b?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===
|
|
|
|
|
b)return a.entries[d].value;return null}(this.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(a,b)):null;E=!0;null==b?b=c.insertVertex(u,null,null,Math.floor(Math.round(100*p.x)/100),Math.floor(Math.round(100*p.y)/100),0,0):b.style&&-1==b.style.indexOf(";rotation=")?(a=e.calculateAbsolutePoint(b),g=e.calculateAbsolutePoint(u),G=b.geometry,g=new mxPoint((g.x+p.x-a.x)/G.width,(g.y+p.y-a.y)/G.height)):E=!1;p=n.getStyleFromEdgeShape(d);G=n.getRotation();0!==G?(a=c.insertEdge(u,null,null,C,b,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(p,
|
|
|
|
|
"=")),D=n.createLabelSubShape(c,a),null!=D&&(D.setStyle(D.getStyle()+";rotation="+(60<G&&240>G?(G+180)%360:G)),D=D.getGeometry(),D.x=0,D.y=0,D.relative=!0,D.offset=new mxPoint(-D.width/2,-D.height/2))):(a=c.insertEdge(u,null,n.getTextLabel(),C,b,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(p,"=")),G=n.getLblEdgeOffset(c.getView(),m),a.getGeometry().offset=G,null!=z&&c.setConnectionConstraint(a,C,!0,new mxConnectionConstraint(z,!1)),D&&m.shift(),null!=g&&c.setConnectionConstraint(a,b,!1,new mxConnectionConstraint(g,
|
|
|
|
|
!1)),E&&m.pop());D=c.getModel().getGeometry(a);if(C.parent!=b.parent&&null!=u&&1!=u.id&&1==C.parent.id){b=z=0;do g=u.geometry,null!=g&&(z+=g.x,b+=g.y),u=u.parent;while(null!=u);a.parent=C.parent;for(u=0;u<m.length;u++)m[u].x+=z,m[u].y+=b}D.points=m;p.hasOwnProperty("curved")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(p,"curved"),"1")&&(D=c.getModel().getGeometry(a),c=n.getControlPoints(d),D.points=c);return k};e.prototype.addUnconnectedEdge=function(c,
|
|
|
|
|
b,a,d){if(null!=b){var k=c.getModel().getGeometry(b);null!=k&&(d=k.height)}var n=a.getStartXY(d),u=a.getEndXY(d),e=a.getStyleFromEdgeShape(d),m=a.getRoutingPoints(d,n,a.getRotation()),g=a.getRotation();if(0!==g){0===a.getShapeIndex()?k=c.insertEdge(b,null,null,null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(e,"=")):(k=c.createEdge(b,null,null,null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(e,"=")),k=c.addEdge(k,b,null,null,a.getShapeIndex()));var p=a.createLabelSubShape(c,k);null!=p&&
|
|
|
|
|
(p.setStyle(p.getStyle()+";rotation="+(60<g&&240>g?(g+180)%360:g)),g=p.getGeometry(),g.x=0,g.y=0,g.relative=!0,g.offset=new mxPoint(-g.width/2,-g.height/2))}else 0===a.getShapeIndex()?k=c.insertEdge(b,null,a.getTextLabel(),null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(e,"=")):(k=c.createEdge(b,null,a.getTextLabel(),null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(e,"=")),k=c.addEdge(k,b,null,null,a.getShapeIndex())),g=a.getLblEdgeOffset(c.getView(),m),k.getGeometry().offset=g;this.rotateChildEdge(c.getModel(),
|
|
|
|
|
b,n,u,m);b=c.getModel().getGeometry(k);m.pop();m.shift();b.points=m;b.setTerminalPoint(n,!0);b.setTerminalPoint(u,!1);e.hasOwnProperty("curved")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(e,"curved"),"1")&&(b=c.getModel().getGeometry(k),c=a.getControlPoints(d),b.points=c);return k};e.prototype.rotateChildEdge=function(c,b,a,d,k){if(null!=b){var n=c.getGeometry(b);c=c.getStyle(b);if(null!=n&&null!=c&&(b=c.indexOf("rotation="),-1<b))for(c=parseFloat(c.substring(b+
|
|
|
|
|
9,c.indexOf(";",b))),b=n.width/2,n=n.height/2,e.rotatedEdgePoint(a,c,b,n),e.rotatedEdgePoint(d,c,b,n),a=0;a<k.length;a++)e.rotatedEdgePoint(k[a],c,b,n)}};e.prototype.sanitiseGraph=function(c){var b=c.getModel().getRoot();this.sanitiseCell(c,b)};e.prototype.sanitiseCell=function(c,b){for(var a=c.getModel(),d=a.getChildCount(b),k=[],n=0;n<d;n++){var f=a.getChildAt(b,n);this.sanitiseCell(c,f)&&0<k.push(f)}for(n=0;n<k.length;n++)a.remove(k[n]);k=b.geometry;null!=k&&(0>k.height&&(k.height=Math.abs(k.height),
|
|
|
|
|
k.y-=k.height,b.style+=";flipV=1;"),0>k.width&&(k.width=Math.abs(k.width),k.x-=k.width,b.style+=";flipH=1;"));0<d&&(d=a.getChildCount(b));k=(new String(a.getValue(b))).toString();n=a.getStyle(b);return 0!==d||!a.isVertex(b)||null!=a.getValue(b)&&0!==k.length||null==n||-1==n.indexOf(mxConstants.STYLE_FILLCOLOR+"=none")||-1==n.indexOf(mxConstants.STYLE_STROKECOLOR+"=none")||-1!=n.indexOf("image=")?!1:!0};return e}();g.mxVsdxCodec=e;e.__class="com.mxgraph.io.mxVsdxCodec"})(g.io||(g.io={}))})(f.mxgraph||
|
|
|
|
|
(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
if(null!=m&&1==m.nodeType)for(m=m.firstChild;null!=m;){if(null!=m&&1==m.nodeType){var g=e.appendChild(c.importNode(m,!0));this.importNodes(c,g,f,d)}m=m.nextSibling}}}};e.prototype.importPage=function(c,b,a,d){var k=c.getBackPage();if(null!=k){b.getModel().setValue(b.getDefaultParent(),c.getPageName());var n=new mxCell(k.getPageName());b.addCell(n,b.getModel().getRoot(),0,null,null);this.importPage(k,b,b.getDefaultParent())}k=c.getLayers();this.layersMap[0]=b.getDefaultParent();var n={},f=0,e=null,
|
|
|
|
|
m=c.getShapes();try{for(var g=0;null!=m.entries&&g<m.entries.length;g++){var p=m.entries[g].getValue().layerMember;null!=p&&(null==e?(n[p]=f,e=p):e!=p&&null==n[p]&&(f++,n[p]=f,e=p))}}catch(A){console.log("VSDX Import: Failed to detect layers order")}for(g=0;g<k.length;g++)p=k[g],f=null!=n[g]?n[g]:g,0==f?e=b.getDefaultParent():(e=new mxCell,b.addCell(e,b.model.root,f)),e.setVisible(1==p.Visible),1==p.Lock&&e.setStyle("locked=1;"),e.setValue(p.Name),this.layersMap[g]=e;n=function(a){var b=0;return{next:function(){return b<
|
|
|
|
|
a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(m));p=c.getPageDimensions().y;for(k=c.getId();n.hasNext();)m=n.next(),m=m.getValue(),g=this.layersMap[m.layerMember],this.addShape(b,m,g?g:a,k,p);for(c=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(c.getConnects()));c.hasNext();)m=c.next(),a=this.addConnectedEdge(b,
|
|
|
|
|
m.getValue(),k,p),null!=a&&function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries.splice(d,1)[0]}(this.edgeShapeMap,a);for(c=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(this.edgeShapeMap));c.hasNext();)a=c.next(),a.getKey().getPageNumber()===k&&
|
|
|
|
|
this.addUnconnectedEdge(b,function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.parentsMap,a.getKey()),a.getValue(),p);d||this.sanitiseGraph(b);return p};e.prototype.postImportPage=function(c,b,a){try{var d=this,k=[],n=c.getShapes().entries||[];for(b=0;b<n.length;b++){var u=n[b].value||{};u.toBeCroppedImg&&k.push(u)}if(0<k.length){var e=function(a,
|
|
|
|
|
b){function n(){a<k.length-1?e(a+1,b):b()}var u=k[a],x=u.toBeCroppedImg,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}(d.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(c.Id,u.Id)),z=new Image;z.onload=function(){var a=x.iData,b=x.iType;try{var d=z.width/x.imgWidth,k=z.height/x.imgHeight,c=-x.imgOffsetX*d,f=(x.imgHeight-x.height+x.imgOffsetY)*k,
|
|
|
|
|
u=document.createElement("canvas");u.width=x.width*d;u.height=x.height*k;var e=u.getContext("2d");e.fillStyle="#FFFFFF";e.fillRect(0,0,u.width,u.height);e.drawImage(z,c,f,u.width,u.height,0,0,u.width,u.height);a=u.toDataURL("image/jpeg").substr(23);b="jpg"}catch(ea){console.log(ea)}m.style+=";image=data:image/"+b+","+a;n()};z.src="data:image/"+x.iType+";base64,"+x.iData;z.onerror=function(){m.style+=";image=data:image/"+x.iType+","+x.iData;n()}};e(0,a)}else a()}catch(z){console.log(z),a()}};e.prototype.addShape=
|
|
|
|
|
function(c,b,a,d,k){b.parentHeight=k;var n=f.mxgraph.io.vsdx.VsdxShape.getType(b.getShape());if(null!=n&&(function(a,b){return a&&a.equals?a.equals(b):a===b}(n,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(a,b){return a&&a.equals?a.equals(b):a===b}(n,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(a,b){return a&&a.equals?a.equals(b):a===b}(n,f.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))){var u=b.getId();if(b.isVertex())return n=null,n=b.isGroup()?this.addGroup(c,b,a,d,k):this.addVertex(c,
|
|
|
|
|
b,a,d,k),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.vertexShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,u),b),b=b.getHyperlink(),b.extLink?c.setLinkForCell(n,b.extLink):b.pageLink&&c.setLinkForCell(n,"data:page/id,"+b.pageLink),n;b.setShapeIndex(c.getModel().getChildCount(a));
|
|
|
|
|
(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.edgeShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,u),b);(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.parentsMap,new f.mxgraph.io.vsdx.ShapePageId(d,u),a)}return null};e.prototype.addGroup=function(c,b,a,d,k){var n=b.getDimensions(),u=b.getMaster(),e=b.getStyleFromShape(),m=b.getGeomList();m.isNoFill()&&(e[mxConstants.STYLE_FILLCOLOR]="none",e[mxConstants.STYLE_GRADIENTCOLOR]="none");m.isNoLine()&&(e[mxConstants.STYLE_STROKECOLOR]="none");
|
|
|
|
|
e.html="1";e[mxConstants.STYLE_WHITE_SPACE]="wrap";var g=f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(e,"="),e=null,p=b.getChildShapes(),e=null!=p&&0<function(a){null==a.entries&&(a.entries=[]);return a.entries.length}(p),m=b.isDisplacedLabel()||b.isRotatedLabel()||e,e=b.getOriginPoint(k,!0);if(m)e=c.insertVertex(a,null,null,Math.floor(Math.round(100*e.x)/100),Math.floor(Math.round(100*e.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),g);else var A=b.getTextLabel(),
|
|
|
|
|
e=c.insertVertex(a,null,A,Math.floor(Math.round(100*e.x)/100),Math.floor(Math.round(100*e.y)/100),Math.floor(Math.round(100*n.x)/100),Math.floor(Math.round(100*n.y)/100),g);for(a=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(p));a.hasNext();)g=a.next().getValue(),p=g.getId(),g.isVertex()?(A=f.mxgraph.io.vsdx.VsdxShape.getType(g.getShape()),null!=A&&(function(a,b){return a&&
|
|
|
|
|
a.equals?a.equals(b):a===b}(A,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(a,b){return a&&a.equals?a.equals(b):a===b}(A,f.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(a,b){return a&&a.equals?a.equals(b):a===b}(A,f.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&g.isVertex()&&(g.propagateRotation(b.getRotation()),g.isGroup()?this.addGroup(c,g,e,d,n.y):this.addVertex(c,g,e,d,n.y)),null==u&&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.vertexShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,p),g)):null==u?(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.edgeShapeMap,new f.mxgraph.io.vsdx.ShapePageId(d,p),g),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.parentsMap,new f.mxgraph.io.vsdx.ShapePageId(d,p),e)):this.addUnconnectedEdge(c,e,g,k);m&&b.createLabelSubShape(c,
|
|
|
|
|
e);c=b.getRotation();if(0!==c)for(n=e.getGeometry(),k=n.width/2,n=n.height/2,u=0;u<e.getChildCount();u++)m=e.getChildAt(u),f.mxgraph.online.Utils.rotatedGeometry(m.getGeometry(),c,k,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.vertexMap,
|
|
|
|
|
new f.mxgraph.io.vsdx.ShapePageId(d,b.getId()),e);return e};e.rotatedEdgePoint=function(c,b,a,d){b=b*Math.PI/180;var k=Math.cos(b);b=Math.sin(b);var n=c.x-a,f=c.y-d;c.x=Math.round(n*k-f*b+a);c.y=Math.round(f*k+n*b+d)};e.prototype.addVertex=function(c,b,a,d,k){var n="",u=b.isDisplacedLabel()||b.isRotatedLabel();u||(n=b.getTextLabel());var e=b.getDimensions(),m=b.getStyleFromShape();m.html="1";var g=m.hasOwnProperty(mxConstants.STYLE_SHAPE)||m.hasOwnProperty("stencil");m.hasOwnProperty(mxConstants.STYLE_FILLCOLOR)&&
|
|
|
|
|
g||(m[mxConstants.STYLE_FILLCOLOR]="none");g||(m[mxConstants.STYLE_STROKECOLOR]="none");m.hasOwnProperty(mxConstants.STYLE_GRADIENTCOLOR)&&g||(m[mxConstants.STYLE_GRADIENTCOLOR]="none");m[mxConstants.STYLE_WHITE_SPACE]="wrap";k=b.getOriginPoint(k,!0);return g||null!=n?(m=f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(m,"="),g=null,g=u?c.insertVertex(a,null,null,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*e.x)/100),Math.floor(Math.round(100*e.y)/
|
|
|
|
|
100),m):c.insertVertex(a,null,n,Math.floor(Math.round(100*k.x)/100),Math.floor(Math.round(100*k.y)/100),Math.floor(Math.round(100*e.x)/100),Math.floor(Math.round(100*e.y)/100),m),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.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(d,
|
|
|
|
|
b.getId()),g),b.setLabelOffset(g,m),u&&b.createLabelSubShape(c,g),g):null};e.calculateAbsolutePoint=function(c){for(var b=0,a=0;null!=c;){var d=c.geometry;null!=d&&(b+=d.x,a+=d.y);c=c.parent}return new mxPoint(b,a)};e.prototype.addConnectedEdge=function(c,b,a,d){var k=b.getFromSheet(),k=new f.mxgraph.io.vsdx.ShapePageId(a,k),n=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;
|
|
|
|
|
return null}(this.edgeShapeMap,k);if(null==n)return null;var u=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.parentsMap,new f.mxgraph.io.vsdx.ShapePageId(a,n.getId()));if(null!=u){var m=c.getModel().getGeometry(u);null!=m&&(d=m.height)}var g=n.getStartXY(d),p=n.getEndXY(d),m=n.getRoutingPoints(d,g,n.getRotation());this.rotateChildEdge(c.getModel(),
|
|
|
|
|
u,g,p,m);var C=null,A=b.getSourceToSheet(),A=null!=A?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(a,A)):null,D=!0;if(null==A)A=c.insertVertex(u,null,null,Math.floor(Math.round(100*g.x)/100),Math.floor(Math.round(100*g.y)/100),0,0);else if(A.style&&-1==A.style.indexOf(";rotation="))var C=e.calculateAbsolutePoint(A),
|
|
|
|
|
E=e.calculateAbsolutePoint(u),G=A.geometry,C=new mxPoint((E.x+g.x-C.x)/G.width,(E.y+g.y-C.y)/G.height);else D=!1;g=null;b=b.getTargetToSheet();b=null!=b?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,new f.mxgraph.io.vsdx.ShapePageId(a,b)):null;E=!0;null==b?b=c.insertVertex(u,null,null,Math.floor(Math.round(100*p.x)/100),Math.floor(Math.round(100*
|
|
|
|
|
p.y)/100),0,0):b.style&&-1==b.style.indexOf(";rotation=")?(a=e.calculateAbsolutePoint(b),g=e.calculateAbsolutePoint(u),G=b.geometry,g=new mxPoint((g.x+p.x-a.x)/G.width,(g.y+p.y-a.y)/G.height)):E=!1;p=n.getStyleFromEdgeShape(d);G=n.getRotation();0!==G?(a=c.insertEdge(u,null,null,A,b,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(p,"=")),D=n.createLabelSubShape(c,a),null!=D&&(D.setStyle(D.getStyle()+";rotation="+(60<G&&240>G?(G+180)%360:G)),D=D.getGeometry(),D.x=0,D.y=0,D.relative=!0,D.offset=new mxPoint(-D.width/
|
|
|
|
|
2,-D.height/2))):(a=c.insertEdge(u,null,n.getTextLabel(),A,b,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(p,"=")),G=n.getLblEdgeOffset(c.getView(),m),a.getGeometry().offset=G,null!=C&&c.setConnectionConstraint(a,A,!0,new mxConnectionConstraint(C,!1)),D&&m.shift(),null!=g&&c.setConnectionConstraint(a,b,!1,new mxConnectionConstraint(g,!1)),E&&m.pop());D=c.getModel().getGeometry(a);if(A.parent!=b.parent&&null!=u&&1!=u.id&&1==A.parent.id){b=C=0;do g=u.geometry,null!=g&&(C+=g.x,b+=g.y),u=u.parent;while(null!=
|
|
|
|
|
u);a.parent=A.parent;for(u=0;u<m.length;u++)m[u].x+=C,m[u].y+=b}D.points=m;p.hasOwnProperty("curved")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(p,"curved"),"1")&&(D=c.getModel().getGeometry(a),c=n.getControlPoints(d),D.points=c);return k};e.prototype.addUnconnectedEdge=function(c,b,a,d){if(null!=b){var k=c.getModel().getGeometry(b);null!=k&&(d=k.height)}var n=a.getStartXY(d),u=a.getEndXY(d),e=a.getStyleFromEdgeShape(d),m=a.getRoutingPoints(d,n,a.getRotation()),
|
|
|
|
|
g=a.getRotation();if(0!==g){0===a.getShapeIndex()?k=c.insertEdge(b,null,null,null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(e,"=")):(k=c.createEdge(b,null,null,null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(e,"=")),k=c.addEdge(k,b,null,null,a.getShapeIndex()));var p=a.createLabelSubShape(c,k);null!=p&&(p.setStyle(p.getStyle()+";rotation="+(60<g&&240>g?(g+180)%360:g)),g=p.getGeometry(),g.x=0,g.y=0,g.relative=!0,g.offset=new mxPoint(-g.width/2,-g.height/2))}else 0===a.getShapeIndex()?
|
|
|
|
|
k=c.insertEdge(b,null,a.getTextLabel(),null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(e,"=")):(k=c.createEdge(b,null,a.getTextLabel(),null,null,f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(e,"=")),k=c.addEdge(k,b,null,null,a.getShapeIndex())),g=a.getLblEdgeOffset(c.getView(),m),k.getGeometry().offset=g;this.rotateChildEdge(c.getModel(),b,n,u,m);b=c.getModel().getGeometry(k);m.pop();m.shift();b.points=m;b.setTerminalPoint(n,!0);b.setTerminalPoint(u,!1);e.hasOwnProperty("curved")&&function(a,
|
|
|
|
|
b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(e,"curved"),"1")&&(b=c.getModel().getGeometry(k),c=a.getControlPoints(d),b.points=c);return k};e.prototype.rotateChildEdge=function(c,b,a,d,k){if(null!=b){var n=c.getGeometry(b);c=c.getStyle(b);if(null!=n&&null!=c&&(b=c.indexOf("rotation="),-1<b))for(c=parseFloat(c.substring(b+9,c.indexOf(";",b))),b=n.width/2,n=n.height/2,e.rotatedEdgePoint(a,c,b,n),e.rotatedEdgePoint(d,c,b,n),a=0;a<k.length;a++)e.rotatedEdgePoint(k[a],
|
|
|
|
|
c,b,n)}};e.prototype.sanitiseGraph=function(c){var b=c.getModel().getRoot();this.sanitiseCell(c,b)};e.prototype.sanitiseCell=function(c,b){for(var a=c.getModel(),d=a.getChildCount(b),k=[],n=0;n<d;n++){var f=a.getChildAt(b,n);this.sanitiseCell(c,f)&&0<k.push(f)}for(n=0;n<k.length;n++)a.remove(k[n]);k=b.geometry;null!=k&&(0>k.height&&(k.height=Math.abs(k.height),k.y-=k.height,b.style+=";flipV=1;"),0>k.width&&(k.width=Math.abs(k.width),k.x-=k.width,b.style+=";flipH=1;"));0<d&&(d=a.getChildCount(b));
|
|
|
|
|
k=(new String(a.getValue(b))).toString();n=a.getStyle(b);return 0!==d||!a.isVertex(b)||null!=a.getValue(b)&&0!==k.length||null==n||-1==n.indexOf(mxConstants.STYLE_FILLCOLOR+"=none")||-1==n.indexOf(mxConstants.STYLE_STROKECOLOR+"=none")||-1!=n.indexOf("image=")?!1:!0};return e}();g.mxVsdxCodec=e;e.__class="com.mxgraph.io.mxVsdxCodec"})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){var e=function(e){function c(b){var a=e.call(this)||this;a.RESPONSE_END="";a.RESPONSE_DIAGRAM_START="";a.RESPONSE_DIAGRAM_END="";a.RESPONSE_HEADER="";a.editorUi=b;return a}__extends(c,e);c.prototype.decodeVssx=function(b,a,d,k){var n=this,c="<mxlibrary>[";this.decodeVsdx(b,function(b){c=c.concat(b);var d=n.vsdxModel.getMasterShapes(),u=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){var b=
|
|
|
|
|
[];null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)b.push(a.entries[d].value);return b}(n.vsdxModel.getPages())).next();if(null!=d){var m={str:"",toString:function(){return this.str}},x=0===b.length?"":",",g=function(a){return Object.keys(a).map(function(b){return a[b]})}(d);b=function(a){a=g[a];var b=p.createMxGraph(),k=1;if(null!=a.pageSheet){var n=k=1,c=a.pageSheet.DrawingScale;null!=c&&(k=parseFloat(c.getAttribute("V"))||1);c=a.pageSheet.PageScale;null!=c&&(n=parseFloat(c.getAttribute("V"))||
|
|
|
|
|
1);k=n/k}n=!1;for(c=0;null!=a.firstLevelShapes&&c<a.firstLevelShapes.length;c++){var A=a.firstLevelShapes[c].getShape(),B=new f.mxgraph.io.vsdx.VsdxShape(u,A,!u.isEdge(A),d,null,p.vsdxModel),A=null;if(B.isVertex()){p.edgeShapeMap.entries=[];p.parentsMap.entries=[];for(var A=p.addShape(b,B,b.getDefaultParent(),0,1169),B=function(a){null==a.entries&&(a.entries=[]);return a.entries}(p.edgeShapeMap),z=0;z<B.length;z++){var C=B[z],D=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}(p.parentsMap,C.getKey());p.addUnconnectedEdge(b,D,C.getValue(),1169)}}else A=p.addUnconnectedEdge(b,null,B,1169);n|=null!=A}if(n){p.scaleGraph(b,k);k=p.normalizeGraph(b);p.sanitiseGraph(b);if(0===b.getModel().getChildCount(b.getDefaultParent()))return"continue";m.str=m.str.concat(x);m.str=m.str.concat('{"xml":"');b=e.prototype.processPage.call(p,b,null);m.str=m.str.concat(b);m.str=m.str.concat('","w":');
|
|
|
|
|
m.str=m.str.concat(k.width);m.str=m.str.concat(',"h":');m.str=m.str.concat(k.height);m.str=m.str.concat(',"title":');a=a.getName();null==a&&(a="");a=mxUtils.htmlEntities(JSON.stringify(a));m.str=m.str.concat(a);m.str=m.str.concat("}");x=","}};for(var p=n,G=0;G<g.length;G++)b(G);c=c.concat(m)}c=c.concat("]</mxlibrary>");if(a)try{a(c)}catch(O){null!=k?k(O):a("")}},d)};c.prototype.normalizeGeo=function(b){var a=b.getGeometry();a.x=0;a.y=0;var d=a.sourcePoint;if(b.isEdge()&&null!=d){this.transPoint(a.targetPoint,
|
|
|
|
|
[];null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)b.push(a.entries[d].value);return b}(n.vsdxModel.getPages())).next();if(null!=d){var m={str:"",toString:function(){return this.str}},g=0===b.length?"":",",x=function(a){return Object.keys(a).map(function(b){return a[b]})}(d);b=function(a){a=x[a];var b=p.createMxGraph(),k=1;if(null!=a.pageSheet){var n=k=1,c=a.pageSheet.DrawingScale;null!=c&&(k=parseFloat(c.getAttribute("V"))||1);c=a.pageSheet.PageScale;null!=c&&(n=parseFloat(c.getAttribute("V"))||
|
|
|
|
|
1);k=n/k}n=!1;for(c=0;null!=a.firstLevelShapes&&c<a.firstLevelShapes.length;c++){var z=a.firstLevelShapes[c].getShape(),B=new f.mxgraph.io.vsdx.VsdxShape(u,z,!u.isEdge(z),d,null,p.vsdxModel),z=null;if(B.isVertex()){p.edgeShapeMap.entries=[];p.parentsMap.entries=[];for(var z=p.addShape(b,B,b.getDefaultParent(),0,1169),B=function(a){null==a.entries&&(a.entries=[]);return a.entries}(p.edgeShapeMap),A=0;A<B.length;A++){var C=B[A],D=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}(p.parentsMap,C.getKey());p.addUnconnectedEdge(b,D,C.getValue(),1169)}}else z=p.addUnconnectedEdge(b,null,B,1169);n|=null!=z}if(n){p.scaleGraph(b,k);k=p.normalizeGraph(b);p.sanitiseGraph(b);if(0===b.getModel().getChildCount(b.getDefaultParent()))return"continue";m.str=m.str.concat(g);m.str=m.str.concat('{"xml":"');b=e.prototype.processPage.call(p,b,null);m.str=m.str.concat(b);m.str=m.str.concat('","w":');
|
|
|
|
|
m.str=m.str.concat(k.width);m.str=m.str.concat(',"h":');m.str=m.str.concat(k.height);m.str=m.str.concat(',"title":');a=a.getName();null==a&&(a="");a=mxUtils.htmlEntities(JSON.stringify(a));m.str=m.str.concat(a);m.str=m.str.concat("}");g=","}};for(var p=n,G=0;G<x.length;G++)b(G);c=c.concat(m)}c=c.concat("]</mxlibrary>");if(a)try{a(c)}catch(O){null!=k?k(O):a("")}},d)};c.prototype.normalizeGeo=function(b){var a=b.getGeometry();a.x=0;a.y=0;var d=a.sourcePoint;if(b.isEdge()&&null!=d){this.transPoint(a.targetPoint,
|
|
|
|
|
d);this.transPoint(a.offset,d);b=a.points;if(null!=b)for(var k=0;k<b.length;k++)this.transPoint(b[k],d);this.transPoint(d,d)}return a};c.prototype.normalizeGraph=function(b){function a(a){null!=a&&(null==d?(d=a.x,k=a.y,n=a.x+(a.width||0),c=a.y+(a.height||0)):(d=Math.min(a.x,d),k=Math.min(a.y,k),n=Math.max(a.x+(a.width||0),n),c=Math.max(a.y+(a.height||0),c)))}var d,k,n,c,f;for(f in b.model.cells){var e=b.model.cells[f],m=e.geometry;if(null!=m&&1==e.parent.id)if(e.vertex)a(m);else for(a(m.sourcePoint),
|
|
|
|
|
a(m.targetPoint),e=m.points,m=0;null!=e&&m<e.length;m++)a(e[m])}var g={x:d,y:k};for(f in b.model.cells)if(e=b.model.cells[f],m=e.geometry,null!=m&&1==e.parent.id&&(m.x-=d,m.y-=k,e.isEdge()))for(this.transPoint(m.sourcePoint,g),this.transPoint(m.targetPoint,g),this.transPoint(m.offset,g),e=m.points,m=0;null!=e&&m<e.length;m++)this.transPoint(e[m],g);return{width:n-d,height:c-k}};c.prototype.transPoint=function(b,a){null!=b&&(b.x-=a.x,b.y-=a.y)};c.prototype.processPage=function(b,a){var d=b.getModel(),
|
|
|
|
|
k="",n="",c;for(c in d.cells){var m=d.cells[c];if(b.getDefaultParent()===d.getParent(m)){var k=k.concat(n),k=k.concat('{"xml":"'),g=this.createMxGraph();g.addCell(m);this.sanitiseGraph(g);if(0===g.getModel().getChildCount(g.getDefaultParent()))return"continue";n=this.normalizeGeo(m);g=e.prototype.processPage.call(this,g,null);k=k.concat(g);k=k.concat('","w":');k=k.concat(n.width);k=k.concat(',"h":');k=k.concat(n.height);k=k.concat(',"title":"');n=d.getStyle(m);m="";if(null!=n&&(g=n.indexOf(f.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID),
|
|
|
|
@ -1044,10 +1044,10 @@ g.mxVssxCodec=e;e.__class="com.mxgraph.io.mxVssxCodec"})(g.io||(g.io={}))})(f.mx
|
|
|
|
|
(function(f){(function(f){(function(f){(function(f){(function(f){var c=function(){function b(a,b,k){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=b;this.y=k}b.prototype.getX=function(){return this.x};b.prototype.getY=function(){return this.y};b.prototype.getA=function(){return this.a};b.prototype.getB=function(){return this.b};b.prototype.getC=function(){return this.c};b.prototype.getD=function(){return this.d};b.prototype.getFormulaA=
|
|
|
|
|
function(){return this.formulaA};b.prototype.getFormulaE=function(){return this.formulaE};b.prototype.getIndex=function(){return this.index};return b}();f.Row=c;c.__class="com.mxgraph.io.vsdx.geometry.Row"})(f.geometry||(f.geometry={}))})(f.vsdx||(f.vsdx={}))})(f.io||(f.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(){function b(){}b.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))||1}catch(d){return 1}};b.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var b=parseFloat(a);if(isFinite(b))return b}}catch(k){}return null};b.getRowObj=function(a,d){var k=a.getAttribute("T"),n=b.getIndex(a),c;c=(c=a.getAttribute("Del"))&&c.equals?c.equals("1"):"1"===c;if(!c){var e=null;n<=d.length&&(e=d[n-1]);var m=c=null,g=null,
|
|
|
|
|
p=null,C=null,D=null,E=null,G=null;null!=e&&(c=e.x,m=e.y,g=e.getA(),p=e.getB(),C=e.getC(),D=e.getD(),G=e.getFormulaA(),E=e.getFormulaE());for(var e=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),O=0;O<e.length;O++){var M=e[O],X=M.getAttribute("N"),ca=M.getAttribute("V");switch(X){case "X":c=b.getDoubleVal(ca);break;case "Y":m=b.getDoubleVal(ca);break;case "A":g=b.getDoubleVal(ca);G=M.getAttribute("V");break;case "B":p=b.getDoubleVal(ca);break;case "C":C=b.getDoubleVal(ca);break;case "D":D=
|
|
|
|
|
b.getDoubleVal(ca);break;case "E":E=ca}}switch(k){case "MoveTo":return new f.mxgraph.io.vsdx.geometry.MoveTo(n,c,m);case "LineTo":return new f.mxgraph.io.vsdx.geometry.LineTo(n,c,m);case "ArcTo":return new f.mxgraph.io.vsdx.geometry.ArcTo(n,c,m,g);case "Ellipse":return new f.mxgraph.io.vsdx.geometry.Ellipse(n,c,m,g,p,C,D);case "EllipticalArcTo":return new f.mxgraph.io.vsdx.geometry.EllipticalArcTo(n,c,m,g,p,C,D);case "InfiniteLine":return new f.mxgraph.io.vsdx.geometry.InfiniteLine(n,c,m,g,p);case "NURBSTo":return new f.mxgraph.io.vsdx.geometry.NURBSTo(n,
|
|
|
|
|
c,m,g,p,C,D,E);case "PolylineTo":return new f.mxgraph.io.vsdx.geometry.PolylineTo(n,c,m,G);case "RelCubBezTo":return new f.mxgraph.io.vsdx.geometry.RelCubBezTo(n,c,m,g,p,C,D);case "RelEllipticalArcTo":return new f.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(n,c,m,g,p,C,D);case "RelLineTo":return new f.mxgraph.io.vsdx.geometry.RelLineTo(n,c,m);case "RelMoveTo":return new f.mxgraph.io.vsdx.geometry.RelMoveTo(n,c,m);case "RelQuadBezTo":return new f.mxgraph.io.vsdx.geometry.RelQuadBezTo(n,c,m,g,p);case "SplineKnot":return new f.mxgraph.io.vsdx.geometry.SplineKnot(n,
|
|
|
|
|
c,m,g);case "SplineStart":return new f.mxgraph.io.vsdx.geometry.SplineStart(n,c,m,g,p,C,D)}}return new f.mxgraph.io.vsdx.geometry.DelRow(n)};return b}();e.RowFactory=c;c.__class="com.mxgraph.io.vsdx.geometry.RowFactory"})(e.geometry||(e.geometry={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
p=null,A=null,D=null,E=null,G=null;null!=e&&(c=e.x,m=e.y,g=e.getA(),p=e.getB(),A=e.getC(),D=e.getD(),G=e.getFormulaA(),E=e.getFormulaE());for(var e=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),O=0;O<e.length;O++){var M=e[O],X=M.getAttribute("N"),ca=M.getAttribute("V");switch(X){case "X":c=b.getDoubleVal(ca);break;case "Y":m=b.getDoubleVal(ca);break;case "A":g=b.getDoubleVal(ca);G=M.getAttribute("V");break;case "B":p=b.getDoubleVal(ca);break;case "C":A=b.getDoubleVal(ca);break;case "D":D=
|
|
|
|
|
b.getDoubleVal(ca);break;case "E":E=ca}}switch(k){case "MoveTo":return new f.mxgraph.io.vsdx.geometry.MoveTo(n,c,m);case "LineTo":return new f.mxgraph.io.vsdx.geometry.LineTo(n,c,m);case "ArcTo":return new f.mxgraph.io.vsdx.geometry.ArcTo(n,c,m,g);case "Ellipse":return new f.mxgraph.io.vsdx.geometry.Ellipse(n,c,m,g,p,A,D);case "EllipticalArcTo":return new f.mxgraph.io.vsdx.geometry.EllipticalArcTo(n,c,m,g,p,A,D);case "InfiniteLine":return new f.mxgraph.io.vsdx.geometry.InfiniteLine(n,c,m,g,p);case "NURBSTo":return new f.mxgraph.io.vsdx.geometry.NURBSTo(n,
|
|
|
|
|
c,m,g,p,A,D,E);case "PolylineTo":return new f.mxgraph.io.vsdx.geometry.PolylineTo(n,c,m,G);case "RelCubBezTo":return new f.mxgraph.io.vsdx.geometry.RelCubBezTo(n,c,m,g,p,A,D);case "RelEllipticalArcTo":return new f.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(n,c,m,g,p,A,D);case "RelLineTo":return new f.mxgraph.io.vsdx.geometry.RelLineTo(n,c,m);case "RelMoveTo":return new f.mxgraph.io.vsdx.geometry.RelMoveTo(n,c,m);case "RelQuadBezTo":return new f.mxgraph.io.vsdx.geometry.RelQuadBezTo(n,c,m,g,p);case "SplineKnot":return new f.mxgraph.io.vsdx.geometry.SplineKnot(n,
|
|
|
|
|
c,m,g);case "SplineStart":return new f.mxgraph.io.vsdx.geometry.SplineStart(n,c,m,g,p,A,D)}}return new f.mxgraph.io.vsdx.geometry.DelRow(n)};return b}();e.RowFactory=c;c.__class="com.mxgraph.io.vsdx.geometry.RowFactory"})(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){var m=function(){function c(){this.colorElementMap={};this.fontElementMap={}}c.__static_initialize=function(){c.__static_initialized||(c.__static_initialized=!0,c.__static_initializer_0())};c.defaultColors_$LI$=function(){c.__static_initialize();null==c.defaultColors&&(c.defaultColors={});return c.defaultColors};c.__static_initializer_0=function(){c.defaultColors_$LI$()["0"]="#000000";c.defaultColors_$LI$()["1"]="#FFFFFF";c.defaultColors_$LI$()["2"]=
|
|
|
|
|
"#FF0000";c.defaultColors_$LI$()["3"]="#00FF00";c.defaultColors_$LI$()["4"]="#0000FF";c.defaultColors_$LI$()["5"]="#FFFF00";c.defaultColors_$LI$()["6"]="#FF00FF";c.defaultColors_$LI$()["7"]="#00FFFF";c.defaultColors_$LI$()["8"]="#800000";c.defaultColors_$LI$()["9"]="#008000";c.defaultColors_$LI$()["10"]="#000080";c.defaultColors_$LI$()["11"]="#808000";c.defaultColors_$LI$()["12"]="#800080";c.defaultColors_$LI$()["13"]="#008080";c.defaultColors_$LI$()["14"]="#C0C0C0";c.defaultColors_$LI$()["15"]="#E6E6E6";
|
|
|
|
|
c.defaultColors_$LI$()["16"]="#CDCDCD";c.defaultColors_$LI$()["17"]="#B3B3B3";c.defaultColors_$LI$()["18"]="#9A9A9A";c.defaultColors_$LI$()["19"]="#808080";c.defaultColors_$LI$()["20"]="#666666";c.defaultColors_$LI$()["21"]="#4D4D4D";c.defaultColors_$LI$()["22"]="#333333";c.defaultColors_$LI$()["23"]="#1A1A1A"};c.prototype.initialise=function(b,a){if(null!=b){var d=b.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.COLORS);if(0<d.length)for(var k=d.item(0).getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.COLOR_ENTRY),
|
|
|
|
@ -1074,8 +1074,8 @@ c.prototype.isNoLine=function(){return this.noLine};c.prototype.isNoShow=functio
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){var g=function(){function c(b){this.geomList=[];this.parentGeomList=null;this.sortNeeded=!1;if(null!=b){this.parentGeomList=b.geomList;var a=this.geomList;a.push.apply(a,b.geomList)}}c.prototype.addGeometry=function(b){b=new f.mxgraph.io.vsdx.mxVsdxGeometry(b,this.parentGeomList);b.getIndex()<this.geomList.length?this.geomList[b.getIndex()]=b:(0<this.geomList.push(b),this.sortNeeded=!0)};c.prototype.sort=function(){this.sortNeeded&&(function(b,a){a.compare?
|
|
|
|
|
b.sort(function(b,k){return a.compare(b,k)}):b.sort(a)}(this.geomList,new c.mxVsdxGeometryList$0(this)),this.sortNeeded=!1)};c.prototype.isNoShow=function(){for(var b=0;b<this.geomList.length;b++)if(!this.geomList[b].isNoShow())return!1;return!0};c.prototype.isNoFill=function(){for(var b=0;b<this.geomList.length;b++){var a=this.geomList[b];if(!a.isNoShow()&&!a.isNoFill())return!1}return!0};c.prototype.isNoLine=function(){for(var b=0;b<this.geomList.length;b++){var a=this.geomList[b];if(!a.isNoShow()&&
|
|
|
|
|
!a.isNoLine())return!1}return!0};c.prototype.hasGeom=function(){return 0!=this.geomList.length};c.prototype.getGeoCount=function(){for(var b=0,a=0;a<this.geomList.length;a++)this.geomList[a].isNoShow()||b++;return b};c.prototype.rotatedPoint=function(b,a,d){var k=b.y*a+b.x*d;b.x=b.x*a-b.y*d;b.y=k};c.prototype.getRoutingPoints=function(b,a,d){this.sort();b=[];0<b.push(a.clone());for(var k=0,n=0,c=0;c<this.geomList.length;c++){var e=this.geomList[c];if(!e.isNoShow())for(var e=e.getRows(),g=0;g<e.length;g++){var m=
|
|
|
|
|
e[g];if(0==g&&null!=m&&m instanceof f.mxgraph.io.vsdx.geometry.MoveTo)k=null!=m.x?m.x:0,n=null!=m.y?m.y:0;else if(null!=m&&m instanceof f.mxgraph.io.vsdx.geometry.LineTo){var p=null!=m.x?m.x:0,m=null!=m.y?m.y:0,C=new mxPoint(p,m);0!==d&&(d=(360-d)*Math.PI/180,this.rotatedPoint(C,Math.cos(d),Math.sin(d)));p=(C.x-k)*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();p+=a.x;m=(C.y-n)*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$()*-1;m+=a.y;p=Math.round(100*p)/100;m=Math.round(100*m)/100;C.x=
|
|
|
|
|
p;C.y=m;0<b.push(C)}}}return b};c.prototype.getShapeXML=function(b){var a=new mxPoint(0,0),d={str:'<shape strokewidth="inherit"><foreground>',toString:function(){return this.str}},k=d.str.length,n;n=this.processGeo(b,a,d,-1,!0);n=this.processGeo(b,a,d,n,!1);if(d.str.length===k)return"";this.closePath(d,n);d.str=d.str.concat("</foreground></shape>");return d.str};c.prototype.processGeo=function(b,a,d,k,n){var c=b.getRounding(),e="";0<c&&(e=' rounded="1" arcSize="'+c*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor+
|
|
|
|
|
e[g];if(0==g&&null!=m&&m instanceof f.mxgraph.io.vsdx.geometry.MoveTo)k=null!=m.x?m.x:0,n=null!=m.y?m.y:0;else if(null!=m&&m instanceof f.mxgraph.io.vsdx.geometry.LineTo){var p=null!=m.x?m.x:0,m=null!=m.y?m.y:0,A=new mxPoint(p,m);0!==d&&(d=(360-d)*Math.PI/180,this.rotatedPoint(A,Math.cos(d),Math.sin(d)));p=(A.x-k)*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();p+=a.x;m=(A.y-n)*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$()*-1;m+=a.y;p=Math.round(100*p)/100;m=Math.round(100*m)/100;A.x=
|
|
|
|
|
p;A.y=m;0<b.push(A)}}}return b};c.prototype.getShapeXML=function(b){var a=new mxPoint(0,0),d={str:'<shape strokewidth="inherit"><foreground>',toString:function(){return this.str}},k=d.str.length,n;n=this.processGeo(b,a,d,-1,!0);n=this.processGeo(b,a,d,n,!1);if(d.str.length===k)return"";this.closePath(d,n);d.str=d.str.concat("</foreground></shape>");return d.str};c.prototype.processGeo=function(b,a,d,k,n){var c=b.getRounding(),e="";0<c&&(e=' rounded="1" arcSize="'+c*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor+
|
|
|
|
|
'" ');for(c=0;c<this.geomList.length;c++){var g=this.geomList[c];if(n!==g.isNoFill()){var m=g.getPathXML(a,b);0!==m.length&&(g=this.getGeoStyle(g),-1===k?d.str=d.str.concat("<path"+e+">"):k!==g&&(this.closePath(d,k),d.str=d.str.concat("<path"+e+">")),d.str=d.str.concat(m),k=g)}}return k};c.prototype.getGeoStyle=function(b){var a=0;b.isNoLine()||b.isNoFill()?b.isNoFill()?b.isNoLine()||(a=3):a=2:a=1;return a};c.prototype.closePath=function(b,a){b.str=b.str.concat("</path>");1===a?b.str=b.str.concat("<fillstroke/>"):
|
|
|
|
|
2===a?b.str=b.str.concat("<fill/>"):3===a&&(b.str=b.str.concat("<stroke/>"))};return c}();e.mxVsdxGeometryList=g;g.__class="com.mxgraph.io.vsdx.mxVsdxGeometryList";(function(c){var b=function(){function a(a){this.__parent=a}a.prototype.compare=function(a,b){return a.getIndex()-b.getIndex()};return a}();c.mxVsdxGeometryList$0=b;b.__interfaces=["java.util.Comparator"]})(g=e.mxVsdxGeometryList||(e.mxVsdxGeometryList={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com=
|
|
|
|
|
{}));
|
|
|
|
@ -1088,18 +1088,18 @@ 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),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!=
|
|
|
|
|
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!=
|
|
|
|
|
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 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=
|
|
|
|
|
"/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=
|
|
|
|
|
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 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=
|
|
|
|
|
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(),
|
|
|
|
@ -1162,7 +1162,7 @@ this.connLineStyles)};return c}();g.__static_initialized=!1;e.mxVsdxTheme=g;g.__
|
|
|
|
|
b.firstChild;null!=b;b=b.nextSibling)null!=b&&1==b.nodeType&&0<a.push(b);return a};c.getDirectFirstChildElement=function(b){for(b=b.firstChild;null!=b;b=b.nextSibling)if(null!=b&&1==b.nodeType)return b;return null};c.getIntAttr$org_w3c_dom_Element$java_lang_String$int=function(b,a,d){try{var k=b.getAttribute(a);if(null!=k)return parseInt(k)}catch(n){}return d};c.getIntAttr=function(b,a,d){if((null==b||1!=b.nodeType)&&null!==b||"string"!==typeof a&&null!==a||"number"!==typeof d&&null!==d){if((null==
|
|
|
|
|
b||1!=b.nodeType)&&null!==b||"string"!==typeof a&&null!==a||void 0!==d)throw Error("invalid overload");return f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(b,a)}return f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String$int(b,a,d)};c.getIntAttr$org_w3c_dom_Element$java_lang_String=function(b,a){return c.getIntAttr$org_w3c_dom_Element$java_lang_String$int(b,a,0)};c.getStyleString=function(b,a){for(var d="",k=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]})}(b)),c=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(Object.keys(b));c.hasNext();){var f=c.next(),e=k.next();if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(f,mxConstants.STYLE_SHAPE)||!function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(b[f]?b[f]:null,"image")&&!function(a,b,d){void 0===
|
|
|
|
|
d&&(d=0);return a.substr(d,b.length)===b}(b[f]?b[f]:null,"rounded="))try{d=d+f+a}catch(A){console.error("mxVsdxUtils.getStyleString,"+A+",style.length="+d.length+",key.length="+f.length+",asig.length="+a.length)}d=d+e+";"}return d};c.surroundByTags=function(b,a){return"<"+a+">"+b+"</"+a+">"};c.htmlEntities=function(b){return b.replace(RegExp("&","g"),"&").replace(RegExp('"',"g"),""").replace(RegExp("'","g"),"′").replace(RegExp("<","g"),"<").replace(RegExp(">","g"),">")};c.toInitialCapital=
|
|
|
|
|
d&&(d=0);return a.substr(d,b.length)===b}(b[f]?b[f]:null,"rounded="))try{d=d+f+a}catch(z){console.error("mxVsdxUtils.getStyleString,"+z+",style.length="+d.length+",key.length="+f.length+",asig.length="+a.length)}d=d+e+";"}return d};c.surroundByTags=function(b,a){return"<"+a+">"+b+"</"+a+">"};c.htmlEntities=function(b){return b.replace(RegExp("&","g"),"&").replace(RegExp('"',"g"),""").replace(RegExp("'","g"),"′").replace(RegExp("<","g"),"<").replace(RegExp(">","g"),">")};c.toInitialCapital=
|
|
|
|
|
function(b){b=b.split(" ");for(var a="",d=0;d<b.length;d++)var k=b[d],c=k.substring(0,1),k=k.substring(1),c=c.toUpperCase(),a=a+(c+k);return a.substring(0,a.length)};c.toSmallCaps=function(b,a){var d="",k=d;if(a&&a.equals?a.equals(k):a===k)d=b;else for(var k=b.split(""),c=0;c<k.length;c++){var f=k[c];(null==f.charCodeAt?f:f.charCodeAt(0))>=(null=="a".charCodeAt?"a":97)&&(null==f.charCodeAt?f:f.charCodeAt(0))<=(null=="z".charCodeAt?"z":122)?(f=(new String(f)).toString(),f=f.toUpperCase(),d+='<font style="font-size:'+
|
|
|
|
|
parseFloat(a)/1.28+'px">'+f+"</font>"):d+=f}return d};c.getStyleMap=function(b,a){for(var d={},k=b.split(";"),c=0;c<k.length;c++){var f=k[c],e=f.indexOf(a),g=f.substring(0,e),f=f.substring(e+1);d[g]=f}return d};c.isInsideTriangle=function(b,a,d,k,c,f,e,g){c-=d;f-=k;e-=d;g-=k;k=c*g-e*f;d=(b*(f-g)+a*(e-c)+c*g-e*f)/k;e=(b*g-a*e)/k;b=(a*c-b*f)/k;return 0<d&&1>d&&0<e&&1>e&&0<b&&1>b?!0:!1};return c}();g.screenCoordinatesPerCm=40;g.CENTIMETERS_PER_INCHES=2.54;e.mxVsdxUtils=g;g.__class="com.mxgraph.io.vsdx.mxVsdxUtils"})(g.vsdx||
|
|
|
|
|
(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
@ -1181,19 +1181,19 @@ c;c.__class="com.mxgraph.io.vsdx.theme.FillStyleFactory"})(e.theme||(e.theme={})
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(){function b(a){this.color2=this.color1=null;a=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"a:gsLst");0<a.length&&(a=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a[0]),2<=a.length&&(this.color2=f.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(f.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a[0])),this.color1=f.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(f.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a[a.length-
|
|
|
|
|
1]))));null==this.color1&&(this.color1=this.color2=new f.mxgraph.io.vsdx.theme.SrgbClr("FFFFFF"))}b.prototype.applyStyle=function(a,b){var d=this.color1.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,b);d.setGradientClr(this.color2.getColor$int$com_mxgraph_io_vsdx_mxVsdxTheme(a,b));return d};return b}();e.GradFill=c;c.__class="com.mxgraph.io.vsdx.theme.GradFill";c.__interfaces=["com.mxgraph.io.vsdx.theme.FillStyle"]})(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(a,b,k){this.lum=this.sat=this.hue=0;this.hue=a;this.sat=b;this.lum=k}b.prototype.getHue=function(){return this.hue};b.prototype.setHue=function(a){this.hue=a};b.prototype.getSat=function(){return this.sat};b.prototype.setSat=function(a){this.sat=a};b.prototype.getLum=function(){return this.lum};b.prototype.setLum=function(a){this.lum=a};b.prototype.hue2rgb=function(a,b,k){0>k&&(k+=1);1<k&&--k;return k<1/6?
|
|
|
|
|
a+6*(b-a)*k:.5>k?b:k<2/3?a+(b-a)*(2/3-k)*6:a};b.prototype.toRgb=function(){var a,b,k;k=this.hue;b=this.sat;a=this.lum;if(0===b)a=b=k=a;else{var c=.5>a?a*(1+b):a+b-a*b,e=2*a-c;a=this.hue2rgb(e,c,k+1/3);b=this.hue2rgb(e,c,k);k=this.hue2rgb(e,c,k-1/3)}return new f.mxgraph.io.vsdx.theme.Color(255*a|0,255*b|0,255*k|0)};b.prototype.clamp01=function(a){return Math.min(1,Math.max(0,a))};b.prototype.tint=function(a){this.lum*=1+a/100;this.lum=this.clamp01(this.lum);return this};b.prototype.shade=function(a){this.lum*=
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(){function b(a,b,c){this.lum=this.sat=this.hue=0;this.hue=a;this.sat=b;this.lum=c}b.prototype.getHue=function(){return this.hue};b.prototype.setHue=function(a){this.hue=a};b.prototype.getSat=function(){return this.sat};b.prototype.setSat=function(a){this.sat=a};b.prototype.getLum=function(){return this.lum};b.prototype.setLum=function(a){this.lum=a};b.prototype.hue2rgb=function(a,b,c){0>c&&(c+=1);1<c&&--c;return c<1/6?
|
|
|
|
|
a+6*(b-a)*c:.5>c?b:c<2/3?a+(b-a)*(2/3-c)*6:a};b.prototype.toRgb=function(){var a,b,c;c=this.hue;b=this.sat;a=this.lum;if(0===b)a=b=c=a;else{var n=.5>a?a*(1+b):a+b-a*b,e=2*a-n;a=this.hue2rgb(e,n,c+1/3);b=this.hue2rgb(e,n,c);c=this.hue2rgb(e,n,c-1/3)}return new f.mxgraph.io.vsdx.theme.Color(255*a|0,255*b|0,255*c|0)};b.prototype.clamp01=function(a){return Math.min(1,Math.max(0,a))};b.prototype.tint=function(a){this.lum*=1+a/100;this.lum=this.clamp01(this.lum);return this};b.prototype.shade=function(a){this.lum*=
|
|
|
|
|
a/100;this.lum=this.clamp01(this.lum);return this};b.prototype.satMod=function(a){this.sat*=a/100;this.sat=this.clamp01(this.sat);return this};b.prototype.lumMod=function(a){this.lum*=a/100;this.lum=this.clamp01(this.lum);return this};return b}();e.HSLColor=c;c.__class="com.mxgraph.io.vsdx.theme.HSLColor"})(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(a,b,k){this.h=a;this.s=b;this.v=k}b.prototype.toRgb=function(){var a=6*this.h,b=this.s,k=Math.floor(a),c=a-k,a=this.v*(1-b),e=this.v*(1-c*b),b=this.v*(1-(1-c)*b),k=(k|0)%6;return new f.mxgraph.io.vsdx.theme.Color(255*[this.v,e,a,a,b,this.v][k]|0,255*[b,this.v,this.v,e,a,a][k]|0,255*[a,a,b,this.v,this.v,e][k]|0)};b.prototype.clamp01=function(a){return Math.min(1,Math.max(0,a))};b.prototype.tint=function(a){this.v*=
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(){function b(a,b,c){this.h=a;this.s=b;this.v=c}b.prototype.toRgb=function(){var a=6*this.h,b=this.s,c=Math.floor(a),n=a-c,a=this.v*(1-b),e=this.v*(1-n*b),b=this.v*(1-(1-n)*b),c=(c|0)%6;return new f.mxgraph.io.vsdx.theme.Color(255*[this.v,e,a,a,b,this.v][c]|0,255*[b,this.v,this.v,e,a,a][c]|0,255*[a,a,b,this.v,this.v,e][c]|0)};b.prototype.clamp01=function(a){return Math.min(1,Math.max(0,a))};b.prototype.tint=function(a){this.v*=
|
|
|
|
|
1+a/100;this.v=this.clamp01(this.v);return this};b.prototype.shade=function(a){this.v*=a/100;this.v=this.clamp01(this.v);return this};b.prototype.satMod=function(a){this.s*=a/100;this.s=this.clamp01(this.s);return this};b.prototype.lumMod=function(a){this.v*=a/100;this.v=this.clamp01(this.v);return this};b.prototype.hueMod=function(a){this.h*=a/100;this.h=this.clamp01(this.h);return this};return b}();e.HSVColor=c;c.__class="com.mxgraph.io.vsdx.theme.HSVColor"})(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(a){this.isLineDashed=!1;this.lineDashPattern=[];this.isMiterJoin=this.isBevelJoin=this.isRoundJoin=!1;if(null!=a&&1==a.nodeType||null===a){Array.prototype.slice.call(arguments);this.lineWidth=0;this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null;this.headEndLen=this.headEndWidth=0;this.tailEndType=null;this.tailEndLen=this.tailEndWidth=0;this.isLineDashed=!1;this.lineDashPattern=[];this.isMiterJoin=
|
|
|
|
|
this.isBevelJoin=this.isRoundJoin=!1;this.lineWidth=0;this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null;this.headEndLen=this.headEndWidth=0;this.tailEndType=null;this.tailEndLen=this.tailEndWidth=0;this.lineWidth=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(a,"w");var d=a.getAttribute("cap");if(null!=d)switch(d){case "rnd":this.lineCap=b.LineCapType.ROUND;break;case "sq":this.lineCap=b.LineCapType.SQUARE;break;case "flat":this.lineCap=b.LineCapType.FLAT}d=
|
|
|
|
|
a.getAttribute("cmpd");if(null!=d)switch(d){case "sng":this.lineComp=b.CompoundLineType.SINGLE;break;case "dbl":this.lineComp=b.CompoundLineType.DOUBLE;break;case "thickThin":this.lineComp=b.CompoundLineType.THICK_THIN_DOUBLE;break;case "thinThick":this.lineComp=b.CompoundLineType.THIN_THICK_DOUBLE;break;case "tri":this.lineComp=b.CompoundLineType.THIN_THICK_THIN_TRIPLE}for(var d=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),k=0;k<d.length;k++){var c=d[k];switch(c.nodeName){case "a:noFill":case "a:solidFill":case "a:gradFill":case "a:pattFill":this.fillStyle=
|
|
|
|
|
f.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(c);break;case "a:prstDash":c=c.getAttribute("val");this.isLineDashed=!0;switch(c){case "solid":this.isLineDashed=!1;break;case "sysDot":case "dot":0<this.lineDashPattern.push(1);0<this.lineDashPattern.push(4);break;case "lgDash":0<this.lineDashPattern.push(12);0<this.lineDashPattern.push(4);break;case "sysDashDot":case "dashDot":0<this.lineDashPattern.push(8);0<this.lineDashPattern.push(4);0<this.lineDashPattern.push(1);0<this.lineDashPattern.push(4);
|
|
|
|
|
break;case "lgDashDot":0<this.lineDashPattern.push(12);0<this.lineDashPattern.push(4);0<this.lineDashPattern.push(1);0<this.lineDashPattern.push(4);break;case "sysDashDotDot":case "lgDashDotDot":0<this.lineDashPattern.push(12),0<this.lineDashPattern.push(4),0<this.lineDashPattern.push(1),0<this.lineDashPattern.push(4),0<this.lineDashPattern.push(1),0<this.lineDashPattern.push(4)}break;case "a:custDash":this.isLineDashed=!0;for(var c=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(c,"a:ds"),
|
|
|
|
|
e=0;e<c.length;e++){var g=c[e],m=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(g,"d"),g=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(g,"sp");0<this.lineDashPattern.push(m/1E4);0<this.lineDashPattern.push(g/1E4)}break;case "a:round":this.isRoundJoin=!0;break;case "a:bevel":this.isBevelJoin=!0;break;case "a:miter":f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(c,"lim");this.isMiterJoin=!0;break;case "a:headEnd":this.headEndType=
|
|
|
|
|
this.getLineEndType(c);this.headEndWidth=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(c,"w");this.headEndLen=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(c,"len");break;case "a:tailEnd":this.tailEndType=this.getLineEndType(c),this.tailEndWidth=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(c,"w"),this.tailEndLen=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(c,"len")}}}else if(void 0===
|
|
|
|
|
a.getAttribute("cmpd");if(null!=d)switch(d){case "sng":this.lineComp=b.CompoundLineType.SINGLE;break;case "dbl":this.lineComp=b.CompoundLineType.DOUBLE;break;case "thickThin":this.lineComp=b.CompoundLineType.THICK_THIN_DOUBLE;break;case "thinThick":this.lineComp=b.CompoundLineType.THIN_THICK_DOUBLE;break;case "tri":this.lineComp=b.CompoundLineType.THIN_THICK_THIN_TRIPLE}for(var d=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),c=0;c<d.length;c++){var n=d[c];switch(n.nodeName){case "a:noFill":case "a:solidFill":case "a:gradFill":case "a:pattFill":this.fillStyle=
|
|
|
|
|
f.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(n);break;case "a:prstDash":n=n.getAttribute("val");this.isLineDashed=!0;switch(n){case "solid":this.isLineDashed=!1;break;case "sysDot":case "dot":0<this.lineDashPattern.push(1);0<this.lineDashPattern.push(4);break;case "lgDash":0<this.lineDashPattern.push(12);0<this.lineDashPattern.push(4);break;case "sysDashDot":case "dashDot":0<this.lineDashPattern.push(8);0<this.lineDashPattern.push(4);0<this.lineDashPattern.push(1);0<this.lineDashPattern.push(4);
|
|
|
|
|
break;case "lgDashDot":0<this.lineDashPattern.push(12);0<this.lineDashPattern.push(4);0<this.lineDashPattern.push(1);0<this.lineDashPattern.push(4);break;case "sysDashDotDot":case "lgDashDotDot":0<this.lineDashPattern.push(12),0<this.lineDashPattern.push(4),0<this.lineDashPattern.push(1),0<this.lineDashPattern.push(4),0<this.lineDashPattern.push(1),0<this.lineDashPattern.push(4)}break;case "a:custDash":this.isLineDashed=!0;for(var n=f.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(n,"a:ds"),
|
|
|
|
|
e=0;e<n.length;e++){var g=n[e],m=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(g,"d"),g=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(g,"sp");0<this.lineDashPattern.push(m/1E4);0<this.lineDashPattern.push(g/1E4)}break;case "a:round":this.isRoundJoin=!0;break;case "a:bevel":this.isBevelJoin=!0;break;case "a:miter":f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(n,"lim");this.isMiterJoin=!0;break;case "a:headEnd":this.headEndType=
|
|
|
|
|
this.getLineEndType(n);this.headEndWidth=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(n,"w");this.headEndLen=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(n,"len");break;case "a:tailEnd":this.tailEndType=this.getLineEndType(n),this.tailEndWidth=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(n,"w"),this.tailEndLen=f.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(n,"len")}}}else if(void 0===
|
|
|
|
|
a)Array.prototype.slice.call(arguments),this.lineWidth=0,this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null,this.headEndLen=this.headEndWidth=0,this.tailEndType=null,this.tailEndLen=this.tailEndWidth=0,this.isLineDashed=!1,this.lineDashPattern=[],this.isMiterJoin=this.isBevelJoin=this.isRoundJoin=!1,this.lineWidth=0,this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null,this.headEndLen=this.headEndWidth=0,this.tailEndType=null,this.tailEndLen=this.tailEndWidth=0;else throw Error("invalid overload");
|
|
|
|
|
}b.prototype.getLineEndType=function(a){var d=null;switch(a.getAttribute("type")){case "none":d=b.LineEndType.NONE;break;case "triangle":d=b.LineEndType.TRIANGLE;break;case "stealth":d=b.LineEndType.STEALTH;break;case "diamond":d=b.LineEndType.DIAMOND;break;case "oval":d=b.LineEndType.OVAL;break;case "arrow":d=b.LineEndType.ARROW}return d};b.prototype.getLineColor=function(a,b){return null!=this.fillStyle?this.fillStyle.applyStyle(a,b):b.getDefaultLineClr()};b.prototype.isDashed=function(){return this.isLineDashed};
|
|
|
|
|
b.prototype.getLineDashPattern=function(){return this.lineDashPattern};b.prototype.getStartSize=function(){return 4};b.prototype.getEndSize=function(){return 4};b.prototype.getStart=function(){return 0};b.prototype.getEnd=function(){return 0};b.prototype.getLineWidth=function(){return this.lineWidth};return b}();e.LineStyle=c;c.__class="com.mxgraph.io.vsdx.theme.LineStyle";(function(b){(function(a){a[a.ROUND=0]="ROUND";a[a.SQUARE=1]="SQUARE";a[a.FLAT=2]="FLAT"})(b.LineCapType||(b.LineCapType={}));
|
|
|
|
@ -1213,8 +1213,8 @@ function(a){this.blueOff=a;this.hasEffects=!0};b.prototype.setBlueMod=function(a
|
|
|
|
|
(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;
|
|
|
|
|
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,n,f,e,g,m,p,C){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=n;this.quickStyleFontMatrix=f;this.quickStyleLineColor=
|
|
|
|
|
e;this.quickStyleLineMatrix=g;this.quickStyleShadowColor=m;this.quickStyleType=p;this.quickStyleVariation=C}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,c,n,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=c;this.quickStyleFontColor=n;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={}));
|
|
|
|
@ -1222,7 +1222,7 @@ function(a){this.quickStyleType=a};b.prototype.setQuickStyleVariation=function(a
|
|
|
|
|
(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 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,n,f){a=b.call(this,a,c,n)||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(),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*
|
|
|
|
|
(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()+
|
|
|
|
|
'" 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={}));
|
|
|
|
@ -1240,9 +1240,9 @@ m)-Math.atan2(b,a))/Math.PI;c=(c-a)%360;e=(e-a)%360;180<c?c-=360:-180>c&&(c+=360
|
|
|
|
|
(new String(d)).toString()+'" y="'+(new String(c)).toString()+'"/>'};return a}(f.mxgraph.io.vsdx.geometry.Row);e.LineTo=c;c.__class="com.mxgraph.io.vsdx.geometry.LineTo"})(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);b.setLastMoveX(d);
|
|
|
|
|
b.setLastMoveY(c);return'<move x="'+(new String(d)).toString()+'" y="'+(new String(c)).toString()+'"/>'};return a}(f.mxgraph.io.vsdx.geometry.Row);e.MoveTo=c;c.__class="com.mxgraph.io.vsdx.geometry.MoveTo"})(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,z){a=b.call(this,a,c,f)||this;a.a=e;a.b=g;a.c=m;a.d=p;a.formulaE=z;return a}__extends(a,b);a.prototype.handle=function(b,c){if(null!=this.x&&null!=this.y&&null!=this.formulaE){var d=c.getHeight(),k=c.getWidth(),e=this.x*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),m=this.formulaE.split("NURBS(").join(""),m=m.split(")").join(""),
|
|
|
|
|
m=new a.Nurbs(this,m,k,d);if(2<=m.getSize()){var p=m.getX(0),C=m.getY(0),D=m.getX(1),E=m.getY(1),e=Math.round(100*e/k*100)/100,g=Math.round(100*(100-100*g/d))/100,p=Math.round(100*p)/100,C=Math.round(100*C)/100,D=Math.round(100*D)/100,E=Math.round(100*E)/100;c.setLastX(e);c.setLastY(g);if(3===m.getDegree()&&m.isOrderedByThree(this.getA())){d=[];k=[];p=[];D=m.getSize();for(C=0;C<D-1;C+=3)0<d.push(new mxPoint(m.getX(C),m.getY(C))),0<k.push(new mxPoint(m.getX(C+1),m.getY(C+1))),C<D-2?0<p.push(new mxPoint(m.getX(C+
|
|
|
|
|
2),m.getY(C+2))):0<p.push(new mxPoint(e,g));e="";for(C=0;C<d.length;C++)e+='<curve x1="'+d[C].x+'" y1="'+d[C].y+'" x2="'+k[C].x+'" y2="'+k[C].y+'" x3="'+p[C].x+'" y3="'+p[C].y+'"/>\n';return e}return'<curve x1="'+(new String(p)).toString()+'" y1="'+(new String(C)).toString()+'" x2="'+(new String(D)).toString()+'" y2="'+(new String(E)).toString()+'" x3="'+(new String(e)).toString()+'" y3="'+(new String(g)).toString()+'"/>'}}return""};return a}(f.mxgraph.io.vsdx.geometry.Row);e.NURBSTo=c;c.__class=
|
|
|
|
|
(function(f){(function(g){(function(g){(function(e){(function(e){var c=function(b){function a(a,c,f,e,g,m,p,C){a=b.call(this,a,c,f)||this;a.a=e;a.b=g;a.c=m;a.d=p;a.formulaE=C;return a}__extends(a,b);a.prototype.handle=function(b,c){if(null!=this.x&&null!=this.y&&null!=this.formulaE){var d=c.getHeight(),k=c.getWidth(),e=this.x*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),m=this.formulaE.split("NURBS(").join(""),m=m.split(")").join(""),
|
|
|
|
|
m=new a.Nurbs(this,m,k,d);if(2<=m.getSize()){var p=m.getX(0),A=m.getY(0),D=m.getX(1),E=m.getY(1),e=Math.round(100*e/k*100)/100,g=Math.round(100*(100-100*g/d))/100,p=Math.round(100*p)/100,A=Math.round(100*A)/100,D=Math.round(100*D)/100,E=Math.round(100*E)/100;c.setLastX(e);c.setLastY(g);if(3===m.getDegree()&&m.isOrderedByThree(this.getA())){d=[];k=[];p=[];D=m.getSize();for(A=0;A<D-1;A+=3)0<d.push(new mxPoint(m.getX(A),m.getY(A))),0<k.push(new mxPoint(m.getX(A+1),m.getY(A+1))),A<D-2?0<p.push(new mxPoint(m.getX(A+
|
|
|
|
|
2),m.getY(A+2))):0<p.push(new mxPoint(e,g));e="";for(A=0;A<d.length;A++)e+='<curve x1="'+d[A].x+'" y1="'+d[A].y+'" x2="'+k[A].x+'" y2="'+k[A].y+'" x3="'+p[A].x+'" y3="'+p[A].y+'"/>\n';return e}return'<curve x1="'+(new String(p)).toString()+'" y1="'+(new String(A)).toString()+'" x2="'+(new String(D)).toString()+'" y2="'+(new String(E)).toString()+'" x3="'+(new String(e)).toString()+'" y3="'+(new String(g)).toString()+'"/>'}}return""};return a}(f.mxgraph.io.vsdx.geometry.Row);e.NURBSTo=c;c.__class=
|
|
|
|
|
"com.mxgraph.io.vsdx.geometry.NURBSTo";(function(b){var a=function(){function a(a,b,d,c){this.__parent=a;this.nurbsValues=[];a=b.split(/\s*,\s*/).slice(0);for(b=0;b<a.length;b++)3<b&&0===b%4?0<this.nurbsValues.push(100*parseFloat(a[b])):3<b&&1===b%4?0<this.nurbsValues.push(100-100*parseFloat(a[b])):0<this.nurbsValues.push(parseFloat(a[b]))}a.prototype.isOrderedByThree=function(a){for(var b=0;b+2<this.getSize();b+=3){var d=Math.round(100*this.getKnot(b))/100,c=Math.round(100*this.getKnot(b+1))/100,
|
|
|
|
|
k=Math.round(100*this.getKnot(b+2))/100;if(d!==c||d!==k||c!==k)return!1}b=Math.round(10*this.getKnot(this.getSize()-2))/10;d=Math.round(10*this.getKnot(this.getSize()-1))/10;a=Math.round(10*a)/10;return b!==d||b!==a||d!==a?!1:!0};a.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};a.prototype.getKnotLast=function(){return this.nurbsValues[0]};a.prototype.getDegree=function(){return this.nurbsValues[1]};a.prototype.getXType=function(){return this.nurbsValues[2]};a.prototype.getYType=
|
|
|
|
|
function(){return this.nurbsValues[3]};a.prototype.getX=function(a){return this.nurbsValues[4*(a+1)]};a.prototype.getY=function(a){return this.nurbsValues[4*(a+1)+1]};a.prototype.getKnot=function(a){return this.nurbsValues[4*(a+1)+2]};a.prototype.getWeight=function(a){return this.nurbsValues[4*(a+1)+3]};return a}();b.Nurbs=a;a.__class="com.mxgraph.io.vsdx.geometry.NURBSTo.Nurbs"})(c=e.NURBSTo||(e.NURBSTo={}))})(e.geometry||(e.geometry={}))})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph=
|
|
|
|
@ -1321,15 +1321,15 @@ b){return a[b]?a[b]:null}(d.cellElements,f.mxgraph.io.vsdx.mxVsdxConstants.WIDTH
|
|
|
|
|
b.UNICODE_LINE_SEP=String.fromCharCode(8232));return b.UNICODE_LINE_SEP};b.prototype.setThemeAndVariant=function(a,b){this.theme=a;this.themeVariant=b};b.prototype.getTheme=function(){null!=this.theme&&this.theme.setVariant(this.themeVariant);return this.theme};b.prototype.getQuickStyleVals=function(){return this.quickStyleVals};b.prototype.processGeomList=function(a){if(!this.geomListProcessed){this.geomList=new f.mxgraph.io.vsdx.mxVsdxGeometryList(a);if(null!=this.geom)for(a=0;a<this.geom.length;a++)this.geomList.addGeometry(this.geom[a]);
|
|
|
|
|
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(M){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(M){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(z){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,
|
|
|
|
|
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=
|
|
|
|
|
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 z=g[B],d=z.getAttribute("N"),z=z.getAttribute("V")||z.textContent||"";switch(d){case "Value":m=z;break;case "Format":p=z}}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"),C=isNaN(m)?new Date(m):new Date(b.VSDX_START_TIME+Math.floor(864E5*
|
|
|
|
|
parseFloat(m))),m=Graph.prototype.formatDate(C,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};
|
|
|
|
|
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*
|
|
|
|
|
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=
|
|
|
|
|
function(a){var b="color:"+this.getTextColor(this.cp)+";",c="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",e="font-family:"+this.getTextFont(this.cp)+";",g="direction:"+this.getRtlText(this.cp)+";",m="letter-spacing:"+parseFloat(this.getLetterSpace(this.cp))/.71+"px;",p="line-height:"+this.getSpcLine(this.pp),B=";opacity:"+this.getTextOpacity(this.cp),z=this.getTextPos(this.cp),C=this.getTextCase(this.cp);(function(a,b){return a&&a.equals?a.equals(b):a===b})(C,"1")?a=a.toUpperCase():function(a,
|
|
|
|
|
b){return a&&a.equals?a.equals(b):a===b}(C,"2")&&(a=f.mxgraph.io.vsdx.mxVsdxUtils.toInitialCapital(a));(function(a,b){return a&&a.equals?a.equals(b):a===b})(z,"1")?a=f.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sup"):function(a,b){return a&&a.equals?a.equals(b):a===b}(z,"2")&&(a=f.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sub"));a=this.isBold(this.cp)?f.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"b"):a;a=this.isItalic(this.cp)?f.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"i"):a;a=this.isUnderline(this.cp)?
|
|
|
|
|
function(a){var b="color:"+this.getTextColor(this.cp)+";",c="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",e="font-family:"+this.getTextFont(this.cp)+";",g="direction:"+this.getRtlText(this.cp)+";",m="letter-spacing:"+parseFloat(this.getLetterSpace(this.cp))/.71+"px;",p="line-height:"+this.getSpcLine(this.pp),B=";opacity:"+this.getTextOpacity(this.cp),C=this.getTextPos(this.cp),A=this.getTextCase(this.cp);(function(a,b){return a&&a.equals?a.equals(b):a===b})(A,"1")?a=a.toUpperCase():function(a,
|
|
|
|
|
b){return a&&a.equals?a.equals(b):a===b}(A,"2")&&(a=f.mxgraph.io.vsdx.mxVsdxUtils.toInitialCapital(a));(function(a,b){return a&&a.equals?a.equals(b):a===b})(C,"1")?a=f.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sup"):function(a,b){return a&&a.equals?a.equals(b):a===b}(C,"2")&&(a=f.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sub"));a=this.isBold(this.cp)?f.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"b"):a;a=this.isItalic(this.cp)?f.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"i"):a;a=this.isUnderline(this.cp)?
|
|
|
|
|
f.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"u"):a;a=this.getTextStrike(this.cp)?f.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"s"):a;a=this.isSmallCaps(this.cp)?f.mxgraph.io.vsdx.mxVsdxUtils.toSmallCaps(a,this.getTextSize(this.cp)):a;return""+('<font style="'+c+e+b+g+m+p+B+'">'+a+"</font>")};b.prototype.getTextDirection=function(a){a=this.getFlags(a);(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"0")?a="ltr":function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1")&&(a="rtl");return a};
|
|
|
|
|
b.prototype.getSpcLine=function(a){var b=!1;a=this.getSpLine(a);0<a?a*=f.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():(a=0===a?100:100*Math.abs(a),b=!0);return(new String(a)).toString()+(b?"%":"px")};b.prototype.getSpcBefore=function(a){return this.getSpBefore(a)};b.prototype.insertAttributes=function(a,b){if(-1!=a.indexOf(">")){var c=a.indexOf(">"),d=a.substring(c),c=a.substring(0,c),e=' style="'+f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(b,":")+'"';return c+e+d}return a};b.prototype.getRtlText=
|
|
|
|
|
function(a){a=this.getCellElement$java_lang_String$java_lang_String$java_lang_String(f.mxgraph.io.vsdx.mxVsdxConstants.RTL_TEXT,a,f.mxgraph.io.vsdx.mxVsdxConstants.PARAGRAPH);a=this.getValue(a,"ltr");(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"0")?a="ltr":function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1")&&(a="rtl");return a};b.prototype.isBold=function(a){var b=!1;a=this.getTextStyle(a);(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"")||function(a,b){return a&&a.equals?
|
|
|
|
@ -1412,12 +1412,12 @@ function(){return this.shape.hasAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.MAST
|
|
|
|
|
b.prototype.getMaster=function(){return this.master};b.prototype.getNameU=function(){var a=this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)||"",b;(b=null==a)||(b=(b=a)&&b.equals?b.equals(""):""===b);b&&null!=this.masterShape&&(a=this.masterShape.getNameU());return a};b.prototype.getName=function(){var a=this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME),b;(b=null==a)||(b=(b=a)&&b.equals?b.equals(""):""===b);b&&null!=this.masterShape&&(a=this.masterShape.getName());return a};
|
|
|
|
|
b.prototype.getMasterName=function(){return this.shapeName};b.prototype.setLabelOffset=function(a,b){var c="",d="";this.shape.hasAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&(c=this.shape.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));null!=this.getMaster()&&null!=this.getMaster().getMasterElement()&&this.getMaster().getMasterElement().hasAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U)&&(d=this.getMaster().getMasterElement().getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.NAME_U));
|
|
|
|
|
if(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(c,"Organizational unit")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,"Organizational unit")){var e=this.shape.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0),c=null,c="0.0",d=null,d="-0.4";null!=e&&(c=e.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),c=c.hasAttribute("F")?c.getAttribute("F"):c.textContent,d=e.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),
|
|
|
|
|
d=d.hasAttribute("F")?d.getAttribute("F"):d.textContent);e=a.getGeometry();c=c.split("Width/2+").join("");c=c.split("DL").join("");d=d.split("Height*").join("");(function(a,b){return a&&a.equals?a.equals(b):a===b})(c,"Inh")&&(c="0.0");(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"Inh")&&(d="-0.4");-1!=d.indexOf("txtHeight")&&(d="-0.4");for(var g=b.split(";"),m="",p=0;p<g.length;p++){var z=g[p],z=z.trim();(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b})(z,"tabHeight=")&&
|
|
|
|
|
(m=z.split("tabHeight=").join(""))}(function(a,b){return a&&a.equals?a.equals(b):a===b})(m,"")&&(m="20");g=parseFloat(m);c=parseFloat(c);d=parseFloat(d);m=e.height;c=.1*e.width+100*c;c=new mxPoint(c,m-m*d-g/2);a.getGeometry().offset=c}else if(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(c,"Domain 3D")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,"Domain 3D")){e=this.shape.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);c=null;
|
|
|
|
|
d=d.hasAttribute("F")?d.getAttribute("F"):d.textContent);e=a.getGeometry();c=c.split("Width/2+").join("");c=c.split("DL").join("");d=d.split("Height*").join("");(function(a,b){return a&&a.equals?a.equals(b):a===b})(c,"Inh")&&(c="0.0");(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"Inh")&&(d="-0.4");-1!=d.indexOf("txtHeight")&&(d="-0.4");for(var g=b.split(";"),m="",p=0;p<g.length;p++){var C=g[p],C=C.trim();(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b})(C,"tabHeight=")&&
|
|
|
|
|
(m=C.split("tabHeight=").join(""))}(function(a,b){return a&&a.equals?a.equals(b):a===b})(m,"")&&(m="20");g=parseFloat(m);c=parseFloat(c);d=parseFloat(d);m=e.height;c=.1*e.width+100*c;c=new mxPoint(c,m-m*d-g/2);a.getGeometry().offset=c}else if(function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(c,"Domain 3D")||function(a,b,c){void 0===c&&(c=0);return a.substr(c,b.length)===b}(d,"Domain 3D")){e=this.shape.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);c=null;
|
|
|
|
|
c="0.0";d=null;d="-0.4";null!=e&&(c=e.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),c=c.getAttribute("F")||"",d=e.getElementsByTagName(f.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),d=d.getAttribute("F")||"");e=a.getGeometry();c=c.split("Width/2+").join("");c=c.split("DL").join("");d=d.split("Height*").join("");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(c,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(c,""))c="0.0";if(function(a,b){return a&&a.equals?a.equals(b):
|
|
|
|
|
a===b}(d,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(d,""))d="-0.4";-1!=d.indexOf("txtHeight")&&(d="-0.4");c=parseFloat(c);d=parseFloat(d);m=e.height;c=.1*e.width+100*c;c=new mxPoint(c,m-m*d);a.getGeometry().offset=c}};b.prototype.getForm=function(){var a={};if(this.isVertex())try{var c=b.getType(this.getShape());this.styleDebug("shape type = "+c);if(null!=this.imageData||function(a,b){return a&&a.equals?a.equals(b):a===b}(f.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,c)&&null!=this.masterShape&&
|
|
|
|
|
null!=this.masterShape.imageData){var e=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var g=function(a,b){return a[b]?a[b]:null}(e,"iType"),m=function(a,b){return a[b]?a[b]:null}(e,"iData"),p=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetX"),"0")),A=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetY"),"0")),B=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgWidth"),"0")),z=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgHeight"),
|
|
|
|
|
"0")),C=parseFloat(this.getValue(this.getCellElement$java_lang_String("Width"),"0")),D=parseFloat(this.getValue(this.getCellElement$java_lang_String("Height"),"0"));0!=p||0!=A?this.toBeCroppedImg={imgOffsetX:p,imgOffsetY:A,imgWidth:B,imgHeight:z,width:C,height:D,iType:g,iData:m}:a.image="data:image/"+g+","+m;return a}var E=this.parseGeom();if(function(a,b){return a&&a.equals?a.equals(b):a===b}(E,""))return this.styleDebug("No geom found"),a;var G=Graph.compress(E);a[mxConstants.STYLE_SHAPE]="stencil("+
|
|
|
|
|
null!=this.masterShape.imageData){var e=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var g=function(a,b){return a[b]?a[b]:null}(e,"iType"),m=function(a,b){return a[b]?a[b]:null}(e,"iData"),p=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetX"),"0")),z=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgOffsetY"),"0")),B=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgWidth"),"0")),C=parseFloat(this.getValue(this.getCellElement$java_lang_String("ImgHeight"),
|
|
|
|
|
"0")),A=parseFloat(this.getValue(this.getCellElement$java_lang_String("Width"),"0")),D=parseFloat(this.getValue(this.getCellElement$java_lang_String("Height"),"0"));0!=p||0!=z?this.toBeCroppedImg={imgOffsetX:p,imgOffsetY:z,imgWidth:B,imgHeight:C,width:A,height:D,iType:g,iData:m}:a.image="data:image/"+g+","+m;return a}var E=this.parseGeom();if(function(a,b){return a&&a.equals?a.equals(b):a===b}(E,""))return this.styleDebug("No geom found"),a;var G=Graph.compress(E);a[mxConstants.STYLE_SHAPE]="stencil("+
|
|
|
|
|
G+")"}catch(O){console.error(O.message,O)}else return this.getEdgeStyle();return a};b.prototype.isOff_page_reference=function(){var a=this.getNameU();return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Off-page reference")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Lined/Shaded process")?!0:!1};b.prototype.isExternal_process=function(){var a;a=(a=this.shapeName)&&a.equals?a.equals("External process"):"External process"===a;return a};b.prototype.getDirection=function(a){a=mxResources.get("mxOffset"+
|
|
|
|
|
this.shapeName);if(null!=a&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")){if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1"))return mxConstants.DIRECTION_SOUTH;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"2"))return mxConstants.DIRECTION_WEST;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"3"))return mxConstants.DIRECTION_NORTH}return mxConstants.DIRECTION_EAST};b.prototype.isSubproces=function(){var a;
|
|
|
|
|
a=(a=this.shapeName)&&a.equals?a.equals("Subproces"):"Subproces"===a;return a};b.prototype.getEdgeStyle$=function(){return{edgeStyle:"none"}};b.prototype.getChildShapes=function(){return this.childShapes};b.prototype.setChildShapes=function(a){this.childShapes=a};b.prototype.isDisplacedLabel=function(){var a=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F",""),b=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F",""),c=this.getAttribute(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,
|
|
|
|
@ -1439,31 +1439,31 @@ this.getTheme();null!=g&&(e=this.isVertex()?g.getEdgeMarker(a,this.getQuickStyle
|
|
|
|
|
a.entries[c].key.equals&&a.entries[c].key.equals(b)||a.entries[c].key===b)return a.entries[c].value;return null}(b.arrowTypes_$LI$(),1));return a};b.prototype.getCellElement$java_lang_String=function(a){var b=c.prototype.getCellElement$java_lang_String.call(this,a);return null==b&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String(a):b};b.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String=function(a,b,e){var d=c.prototype.getCellElement$java_lang_String$java_lang_String$java_lang_String.call(this,
|
|
|
|
|
a,b,e);return null==d&&null!=this.masterShape?this.masterShape.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,b,e):d};b.prototype.getCellElement=function(a,b,c){if("string"!==typeof a&&null!==a||"string"!==typeof b&&null!==b||"string"!==typeof c&&null!==c){if("string"!==typeof a&&null!==a||void 0!==b||void 0!==c)throw Error("invalid overload");return this.getCellElement$java_lang_String(a)}return this.getCellElement$java_lang_String$java_lang_String$java_lang_String(a,b,c)};b.prototype.createLabelSubShape=
|
|
|
|
|
function(a,b){var c=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),this.getWidth()),d=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),e=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),c/2),g=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),
|
|
|
|
|
d/2),m=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),e),p=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),g),z=this.getValueAsDouble(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),0),C=this.getTextLabel();if(null!=C&&0!==C.length){var D=mxUtils.clone(this.getStyleMap())||{};D[mxConstants.STYLE_FILLCOLOR]=mxConstants.NONE;D[mxConstants.STYLE_STROKECOLOR]=
|
|
|
|
|
mxConstants.NONE;D[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;D.hasOwnProperty("align")||(D.align="center");D.hasOwnProperty("verticalAlign")||(D.verticalAlign="middle");D.hasOwnProperty("whiteSpace")||(D.whiteSpace="wrap");delete D.shape;delete D.image;this.isVerticalLabel()&&(z+=Math.PI+.01,D.horizontal="0");var E=this.getRotation();0!==z&&(z=360-180*z/Math.PI,z=Math.round((z+E)%360*100)/100,0!==z&&(D.rotation=""+z));D="text;"+f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(D,"=");g=b.getGeometry().height-
|
|
|
|
|
(p+d-g);e=m-e;0<E&&(m=new mxGeometry(e,g,c,d),e=b.getGeometry(),f.mxgraph.online.Utils.rotatedGeometry(m,E,e.width/2,e.height/2),e=m.x,g=m.y);return a.insertVertex(b,null,C,Math.round(100*e)/100,Math.round(100*g)/100,Math.round(100*c)/100,Math.round(100*d)/100,D+";html=1;")}return null};b.prototype.getLblEdgeOffset=function(a,b){if(null!=b&&1<b.length){var c=new mxCellState;c.absolutePoints=b;a.updateEdgeBounds(c);var c=a.getPoint(c),d=b[0],e=b[b.length-1],g=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),
|
|
|
|
|
this.getWidth()),m=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),p=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),0),z=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),0),C=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),
|
|
|
|
|
0),D=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),0),e=(this.getHeight()-(d.y-e.y))/2+d.y-c.y-(D-z+m/2),c=C-p+g/2+(d.x-c.x);return 1E11<Math.abs(c)?null:new mxPoint(Math.floor(Math.round(100*c)/100),Math.floor(Math.round(100*e)/100))}return null};b.prototype.getShapeIndex=function(){return this.shapeIndex};b.prototype.setShapeIndex=function(a){this.shapeIndex=a};return b}(f.mxgraph.io.vsdx.Shape);g.__static_initialized=!1;g.ARROW_NO_FILL_MARKER=
|
|
|
|
|
d/2),m=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),e),p=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),g),C=this.getValueAsDouble(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_ANGLE),0),A=this.getTextLabel();if(null!=A&&0!==A.length){var D=mxUtils.clone(this.getStyleMap())||{};D[mxConstants.STYLE_FILLCOLOR]=mxConstants.NONE;D[mxConstants.STYLE_STROKECOLOR]=
|
|
|
|
|
mxConstants.NONE;D[mxConstants.STYLE_GRADIENTCOLOR]=mxConstants.NONE;D.hasOwnProperty("align")||(D.align="center");D.hasOwnProperty("verticalAlign")||(D.verticalAlign="middle");D.hasOwnProperty("whiteSpace")||(D.whiteSpace="wrap");delete D.shape;delete D.image;this.isVerticalLabel()&&(C+=Math.PI+.01,D.horizontal="0");var E=this.getRotation();0!==C&&(C=360-180*C/Math.PI,C=Math.round((C+E)%360*100)/100,0!==C&&(D.rotation=""+C));D="text;"+f.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(D,"=");g=b.getGeometry().height-
|
|
|
|
|
(p+d-g);e=m-e;0<E&&(m=new mxGeometry(e,g,c,d),e=b.getGeometry(),f.mxgraph.online.Utils.rotatedGeometry(m,E,e.width/2,e.height/2),e=m.x,g=m.y);return a.insertVertex(b,null,A,Math.round(100*e)/100,Math.round(100*g)/100,Math.round(100*c)/100,Math.round(100*d)/100,D+";html=1;")}return null};b.prototype.getLblEdgeOffset=function(a,b){if(null!=b&&1<b.length){var c=new mxCellState;c.absolutePoints=b;a.updateEdgeBounds(c);var c=a.getPoint(c),d=b[0],e=b[b.length-1],g=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH),
|
|
|
|
|
this.getWidth()),m=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_HEIGHT),this.getHeight()),p=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_X),0),C=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_LOC_PIN_Y),0),A=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X),
|
|
|
|
|
0),D=this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getShapeNode(f.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y),0),e=(this.getHeight()-(d.y-e.y))/2+d.y-c.y-(D-C+m/2),c=A-p+g/2+(d.x-c.x);return 1E11<Math.abs(c)?null:new mxPoint(Math.floor(Math.round(100*c)/100),Math.floor(Math.round(100*e)/100))}return null};b.prototype.getShapeIndex=function(){return this.shapeIndex};b.prototype.setShapeIndex=function(a){this.shapeIndex=a};return b}(f.mxgraph.io.vsdx.Shape);g.__static_initialized=!1;g.ARROW_NO_FILL_MARKER=
|
|
|
|
|
"0";g.maxDp=2;g.USE_SHAPE_MATCH=!1;g.stencilTemplate='<shape h="htemplate" w="wtemplate" aspect="variable" strokewidth="inherit"><connections></connections><background></background><foreground></foreground></shape>';e.VsdxShape=g;g.__class="com.mxgraph.io.vsdx.VsdxShape"})(g.vsdx||(g.vsdx={}))})(g.io||(g.io={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));
|
|
|
|
|
(function(f){(function(g){(function(g){var e=function(){function e(){}e.__static_initialize=function(){e.__static_initialized||(e.__static_initialized=!0,e.__static_initializer_0())};e.CA_$LI$=function(){e.__static_initialize();null==e.CA&&(e.CA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""));return e.CA};e.IA_$LI$=function(){e.__static_initialize();if(null==e.IA){for(var c=256,b=[];0<c--;)b.push(0);e.IA=b}return e.IA};e.__static_initializer_0=function(){for(var c=e.IA_$LI$(),
|
|
|
|
|
b=0;b<c.length;b++)c[b]=-1;c=0;for(b=e.CA_$LI$().length;c<b;c++)e.IA_$LI$()[e.CA_$LI$()[c].charCodeAt(0)]=c;e.IA_$LI$()[61]=0};e.encodeToChar=function(c,b,a){var d=null!=c?c.length-b:0;if(0===d)return[];for(var f=3*(d/3|0),g=((d-1)/3|0)+1<<2,g=g+(a?((g-1)/76|0)<<1:0),m=Array(g),p=b,A=0,B=0;p<f+b;){var z=(c[p++]&255)<<16|(c[p++]&255)<<8|c[p++]&255;m[A++]=e.CA_$LI$()[z>>>18&63];m[A++]=e.CA_$LI$()[z>>>12&63];m[A++]=e.CA_$LI$()[z>>>6&63];m[A++]=e.CA_$LI$()[z&63];a&&19===++B&&A<g-2&&(m[A++]="\r",m[A++]=
|
|
|
|
|
"\n",B=0)}a=d-f;0<a&&(z=(c[f+b]&255)<<10|(2===a?(c[d+b-1]&255)<<2:0),m[g-4]=e.CA_$LI$()[z>>12],m[g-3]=e.CA_$LI$()[z>>>6&63],m[g-2]=2===a?e.CA_$LI$()[z&63]:"=",m[g-1]="=");return m};e.decode$char_A=function(c){var b=null!=c?c.length:0;if(0===b)return[];for(var a=0,d=0;d<b;d++)0>e.IA_$LI$()[c[d].charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;for(var f=0,d=b;1<d&&0>=e.IA_$LI$()[c[--d].charCodeAt(0)];)61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d])&&f++;for(var b=(6*(b-a)>>3)-f,a=function(a){for(var b=
|
|
|
|
|
b=0;b<c.length;b++)c[b]=-1;c=0;for(b=e.CA_$LI$().length;c<b;c++)e.IA_$LI$()[e.CA_$LI$()[c].charCodeAt(0)]=c;e.IA_$LI$()[61]=0};e.encodeToChar=function(c,b,a){var d=null!=c?c.length-b:0;if(0===d)return[];for(var f=3*(d/3|0),g=((d-1)/3|0)+1<<2,g=g+(a?((g-1)/76|0)<<1:0),m=Array(g),p=b,z=0,B=0;p<f+b;){var C=(c[p++]&255)<<16|(c[p++]&255)<<8|c[p++]&255;m[z++]=e.CA_$LI$()[C>>>18&63];m[z++]=e.CA_$LI$()[C>>>12&63];m[z++]=e.CA_$LI$()[C>>>6&63];m[z++]=e.CA_$LI$()[C&63];a&&19===++B&&z<g-2&&(m[z++]="\r",m[z++]=
|
|
|
|
|
"\n",B=0)}a=d-f;0<a&&(C=(c[f+b]&255)<<10|(2===a?(c[d+b-1]&255)<<2:0),m[g-4]=e.CA_$LI$()[C>>12],m[g-3]=e.CA_$LI$()[C>>>6&63],m[g-2]=2===a?e.CA_$LI$()[C&63]:"=",m[g-1]="=");return m};e.decode$char_A=function(c){var b=null!=c?c.length:0;if(0===b)return[];for(var a=0,d=0;d<b;d++)0>e.IA_$LI$()[c[d].charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;for(var f=0,d=b;1<d&&0>=e.IA_$LI$()[c[--d].charCodeAt(0)];)61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d])&&f++;for(var b=(6*(b-a)>>3)-f,a=function(a){for(var b=
|
|
|
|
|
[];0<a--;)b.push(0);return b}(b),g=f=0;g<b;){for(var m=d=0;4>m;m++){var p=e.IA_$LI$()[c[f++].charCodeAt(0)];0<=p?d|=p<<18-6*m:m--}a[g++]=d>>16|0;g<b&&(a[g++]=d>>8|0,g<b&&(a[g++]=d|0))}return a};e.decode=function(c){if(null!=c&&c instanceof Array&&(0==c.length||null==c[0]||"string"===typeof c[0])||null===c)return f.mxgraph.online.mxBase64.decode$char_A(c);if(null!=c&&c instanceof Array&&(0==c.length||null==c[0]||"number"===typeof c[0])||null===c)return f.mxgraph.online.mxBase64.decode$byte_A(c);if("string"===
|
|
|
|
|
typeof c||null===c)return f.mxgraph.online.mxBase64.decode$java_lang_String(c);throw Error("invalid overload");};e.decodeFast$char_A=function(c){var b=c.length;if(0===b)return[];for(var a=0,d=b-1;a<d&&0>e.IA_$LI$()[c[a].charCodeAt(0)];)a++;for(;0<d&&0>e.IA_$LI$()[c[d].charCodeAt(0)];)d--;for(var f=61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d])?61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d-1])?2:1:0,g=d-a+1,m=76<b?(13==function(a){return null==a.charCodeAt?a:
|
|
|
|
|
a.charCodeAt(0)}(c[76])?g/78|0:0)<<1:0,g=(6*(g-m)>>3)-f,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(g),p=0,A=0,B=3*(g/3|0);p<B;){var z=e.IA_$LI$()[c[a++].charCodeAt(0)]<<18|e.IA_$LI$()[c[a++].charCodeAt(0)]<<12|e.IA_$LI$()[c[a++].charCodeAt(0)]<<6|e.IA_$LI$()[c[a++].charCodeAt(0)];b[p++]=z>>16|0;b[p++]=z>>8|0;b[p++]=z|0;0<m&&19===++A&&(a+=2,A=0)}if(p<g){for(m=z=0;a<=d-f;m++)z|=e.IA_$LI$()[c[a++].charCodeAt(0)]<<18-6*m;for(c=16;p<g;c-=8)b[p++]=z>>c|0}return b};e.decodeFast=function(c){if(null!=
|
|
|
|
|
a.charCodeAt(0)}(c[76])?g/78|0:0)<<1:0,g=(6*(g-m)>>3)-f,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(g),p=0,z=0,B=3*(g/3|0);p<B;){var C=e.IA_$LI$()[c[a++].charCodeAt(0)]<<18|e.IA_$LI$()[c[a++].charCodeAt(0)]<<12|e.IA_$LI$()[c[a++].charCodeAt(0)]<<6|e.IA_$LI$()[c[a++].charCodeAt(0)];b[p++]=C>>16|0;b[p++]=C>>8|0;b[p++]=C|0;0<m&&19===++z&&(a+=2,z=0)}if(p<g){for(m=C=0;a<=d-f;m++)C|=e.IA_$LI$()[c[a++].charCodeAt(0)]<<18-6*m;for(c=16;p<g;c-=8)b[p++]=C>>c|0}return b};e.decodeFast=function(c){if(null!=
|
|
|
|
|
c&&c instanceof Array&&(0==c.length||null==c[0]||"string"===typeof c[0])||null===c)return f.mxgraph.online.mxBase64.decodeFast$char_A(c);if(null!=c&&c instanceof Array&&(0==c.length||null==c[0]||"number"===typeof c[0])||null===c)return f.mxgraph.online.mxBase64.decodeFast$byte_A(c);if("string"===typeof c||null===c)return f.mxgraph.online.mxBase64.decodeFast$java_lang_String(c);throw Error("invalid overload");};e.encodeToByte=function(c,b){var a=null!=c?c.length:0;if(0===a)return[];for(var d=3*(a/
|
|
|
|
|
3|0),f=((a-1)/3|0)+1<<2,g=f+=b?((f-1)/76|0)<<1:0,m=[];0<g--;)m.push(0);for(var p=0,A=0,B=0;p<d;)g=(c[p++]&255)<<16|(c[p++]&255)<<8|c[p++]&255,m[A++]=e.CA_$LI$()[g>>>18&63].charCodeAt(0),m[A++]=e.CA_$LI$()[g>>>12&63].charCodeAt(0),m[A++]=e.CA_$LI$()[g>>>6&63].charCodeAt(0),m[A++]=e.CA_$LI$()[g&63].charCodeAt(0),b&&19===++B&&A<f-2&&(m[A++]=13,m[A++]=10,B=0);p=a-d;0<p&&(g=(c[d]&255)<<10|(2===p?(c[a-1]&255)<<2:0),m[f-4]=e.CA_$LI$()[g>>12].charCodeAt(0),m[f-3]=e.CA_$LI$()[g>>>6&63].charCodeAt(0),m[f-2]=
|
|
|
|
|
3|0),f=((a-1)/3|0)+1<<2,g=f+=b?((f-1)/76|0)<<1:0,m=[];0<g--;)m.push(0);for(var p=0,z=0,B=0;p<d;)g=(c[p++]&255)<<16|(c[p++]&255)<<8|c[p++]&255,m[z++]=e.CA_$LI$()[g>>>18&63].charCodeAt(0),m[z++]=e.CA_$LI$()[g>>>12&63].charCodeAt(0),m[z++]=e.CA_$LI$()[g>>>6&63].charCodeAt(0),m[z++]=e.CA_$LI$()[g&63].charCodeAt(0),b&&19===++B&&z<f-2&&(m[z++]=13,m[z++]=10,B=0);p=a-d;0<p&&(g=(c[d]&255)<<10|(2===p?(c[a-1]&255)<<2:0),m[f-4]=e.CA_$LI$()[g>>12].charCodeAt(0),m[f-3]=e.CA_$LI$()[g>>>6&63].charCodeAt(0),m[f-2]=
|
|
|
|
|
2===p?e.CA_$LI$()[g&63].charCodeAt(0):61,m[f-1]=61);return m};e.decode$byte_A=function(c){for(var b=c.length,a=0,d=0;d<b;d++)0>e.IA_$LI$()[c[d]&255]&&a++;if(0!==(b-a)%4)return null;for(var f=0,d=b;1<d&&0>=e.IA_$LI$()[c[--d]&255];)61==c[d]&&f++;d=b=(6*(b-a)>>3)-f;for(a=[];0<d--;)a.push(0);for(var g=f=0;g<b;){for(var m=d=0;4>m;m++){var p=e.IA_$LI$()[c[f++]&255];0<=p?d|=p<<18-6*m:m--}a[g++]=d>>16|0;g<b&&(a[g++]=d>>8|0,g<b&&(a[g++]=d|0))}return a};e.decodeFast$byte_A=function(c){var b=c.length;if(0===
|
|
|
|
|
b)return[];for(var a=0,d=b-1;a<d&&0>e.IA_$LI$()[c[a]&255];)a++;for(;0<d&&0>e.IA_$LI$()[c[d]&255];)d--;for(var f=61==c[d]?61==c[d-1]?2:1:0,g=d-a+1,m=76<b?(13==c[76]?g/78|0:0)<<1:0,p=g=(6*(g-m)>>3)-f,b=[];0<p--;)b.push(0);for(var A=p=0,B=3*(g/3|0);p<B;){var z=e.IA_$LI$()[c[a++]]<<18|e.IA_$LI$()[c[a++]]<<12|e.IA_$LI$()[c[a++]]<<6|e.IA_$LI$()[c[a++]];b[p++]=z>>16|0;b[p++]=z>>8|0;b[p++]=z|0;0<m&&19===++A&&(a+=2,A=0)}if(p<g){for(m=z=0;a<=d-f;m++)z|=e.IA_$LI$()[c[a++]]<<18-6*m;for(c=16;p<g;c-=8)b[p++]=z>>
|
|
|
|
|
b)return[];for(var a=0,d=b-1;a<d&&0>e.IA_$LI$()[c[a]&255];)a++;for(;0<d&&0>e.IA_$LI$()[c[d]&255];)d--;for(var f=61==c[d]?61==c[d-1]?2:1:0,g=d-a+1,m=76<b?(13==c[76]?g/78|0:0)<<1:0,p=g=(6*(g-m)>>3)-f,b=[];0<p--;)b.push(0);for(var z=p=0,B=3*(g/3|0);p<B;){var C=e.IA_$LI$()[c[a++]]<<18|e.IA_$LI$()[c[a++]]<<12|e.IA_$LI$()[c[a++]]<<6|e.IA_$LI$()[c[a++]];b[p++]=C>>16|0;b[p++]=C>>8|0;b[p++]=C|0;0<m&&19===++z&&(a+=2,z=0)}if(p<g){for(m=C=0;a<=d-f;m++)C|=e.IA_$LI$()[c[a++]]<<18-6*m;for(c=16;p<g;c-=8)b[p++]=C>>
|
|
|
|
|
c|0}return b};e.encodeToString=function(c,b,a){return e.encodeToChar(c,b,a).join("")};e.decode$java_lang_String=function(c){var b=null!=c?c.length:0;if(0===b)return[];for(var a=0,d=0;d<b;d++)0>e.IA_$LI$()[c.charAt(d).charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;for(var f=0,d=b;1<d&&0>=e.IA_$LI$()[c.charAt(--d).charCodeAt(0)];)61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))&&f++;for(var b=(6*(b-a)>>3)-f,a=function(a){for(var b=[];0<a--;)b.push(0);return b}(b),g=f=0;g<b;){for(var m=
|
|
|
|
|
d=0;4>m;m++){var p=e.IA_$LI$()[c.charAt(f++).charCodeAt(0)];0<=p?d|=p<<18-6*m:m--}a[g++]=d>>16|0;g<b&&(a[g++]=d>>8|0,g<b&&(a[g++]=d|0))}return a};e.decodeFast$java_lang_String=function(c){var b=c.length;if(0===b)return[];for(var a=0,d=b-1;a<d&&0>e.IA_$LI$()[function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(a))&255];)a++;for(;0<d&&0>e.IA_$LI$()[function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))&255];)d--;for(var f=61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))?
|
|
|
|
|
61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d-1))?2:1:0,g=d-a+1,m=76<b?(13==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(76))?g/78|0:0)<<1:0,g=(6*(g-m)>>3)-f,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(g),p=0,A=0,B=3*(g/3|0);p<B;){var z=e.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18|e.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<12|e.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<6|e.IA_$LI$()[c.charAt(a++).charCodeAt(0)];b[p++]=z>>16|0;b[p++]=z>>8|0;b[p++]=
|
|
|
|
|
z|0;0<m&&19===++A&&(a+=2,A=0)}if(p<g){for(m=z=0;a<=d-f;m++)z|=e.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18-6*m;for(c=16;p<g;c-=8)b[p++]=z>>c|0}return b};return e}();e.__static_initialized=!1;g.mxBase64=e;e.__class="com.mxgraph.online.mxBase64"})(g.online||(g.online={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));com.mxgraph.online.mxBase64.IA_$LI$();com.mxgraph.online.mxBase64.CA_$LI$();com.mxgraph.online.mxBase64.__static_initialize();com.mxgraph.io.vsdx.VsdxShape.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$();
|
|
|
|
|
61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d-1))?2:1:0,g=d-a+1,m=76<b?(13==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(76))?g/78|0:0)<<1:0,g=(6*(g-m)>>3)-f,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(g),p=0,z=0,B=3*(g/3|0);p<B;){var C=e.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18|e.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<12|e.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<6|e.IA_$LI$()[c.charAt(a++).charCodeAt(0)];b[p++]=C>>16|0;b[p++]=C>>8|0;b[p++]=
|
|
|
|
|
C|0;0<m&&19===++z&&(a+=2,z=0)}if(p<g){for(m=C=0;a<=d-f;m++)C|=e.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18-6*m;for(c=16;p<g;c-=8)b[p++]=C>>c|0}return b};return e}();e.__static_initialized=!1;g.mxBase64=e;e.__class="com.mxgraph.online.mxBase64"})(g.online||(g.online={}))})(f.mxgraph||(f.mxgraph={}))})(com||(com={}));com.mxgraph.online.mxBase64.IA_$LI$();com.mxgraph.online.mxBase64.CA_$LI$();com.mxgraph.online.mxBase64.__static_initialize();com.mxgraph.io.vsdx.VsdxShape.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$();
|
|
|
|
|
com.mxgraph.io.vsdx.VsdxShape.arrowTypes_$LI$();com.mxgraph.io.vsdx.VsdxShape.arrowSizes_$LI$();com.mxgraph.io.vsdx.VsdxShape.OFFSET_ARRAY_$LI$();com.mxgraph.io.vsdx.VsdxShape.__static_initialize();com.mxgraph.io.vsdx.Shape.UNICODE_LINE_SEP_$LI$();com.mxgraph.io.vsdx.Style.lineDashPatterns_$LI$();com.mxgraph.io.vsdx.Style.styleTypes_$LI$();com.mxgraph.io.vsdx.Style.__static_initialize();com.mxgraph.online.Constants.MAX_AREA_$LI$();com.mxgraph.io.vsdx.theme.Color.NONE_$LI$();com.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();
|
|
|
|
|
com.mxgraph.io.vsdx.mxVsdxTheme.colorIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.themesIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.__static_initialize();com.mxgraph.io.vsdx.mxVsdxConstants.MY_SET_$LI$();com.mxgraph.io.vsdx.mxVsdxConstants.SET_VALUES_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.defaultColors_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.__static_initialize();com.mxgraph.io.mxVsdxCodec.vsdxPlaceholder_$LI$();com.mxgraph.io.mxVsdxCodec.parsererrorNS_$LI$();
|
|
|
|
|
EditorUi.prototype.doImportVisio=function(f,g,p,e){e=e||f.name;null!=e&&/(\.vs(x|sx?))($|\?)/i.test(e)?(new com.mxgraph.io.mxVssxCodec(this)).decodeVssx(f,g,null,p):(new com.mxgraph.io.mxVsdxCodec(this)).decodeVsdx(f,g,null,p)};function mxGraphMlCodec(){this.cachedRefObj={}}mxGraphMlCodec.prototype.refRegexp=/^\{y\:GraphMLReference\s+(\d+)\}$/;mxGraphMlCodec.prototype.staticRegexp=/^\{x\:Static\s+(.+)\.(.+)\}$/;
|
|
|
|
|
mxGraphMlCodec.prototype.decode=function(f,g,p){try{var e=mxUtils.parseXml(f),m=this.getDirectChildNamedElements(e.documentElement,mxGraphMlConstants.GRAPH);this.initializeKeys(e.documentElement);f='<?xml version="1.0" encoding="UTF-8"?><mxfile>';for(e=0;e<m.length;e++){var c=m[e],b=this.createMxGraph(),a=b.getModel();a.beginUpdate();try{for(this.nodesMap={},this.edges=[],this.importGraph(c,b,b.getDefaultParent()),e=0;e<this.edges.length;e++)for(var d=this.edges[e],k=d.edges,n=d.parent,u=d.dx,x=d.dy,
|
|
|
|
|
A=0;A<k.length;A++)this.importEdge(k[A],b,n,u,x)}catch(ea){throw console.log(ea),ea;}finally{a.endUpdate()}a.beginUpdate();try{var B=b.getModel().cells,z;for(z in B){var C=B[z];if(C.edge&&0<C.getChildCount())for(e=0;e<C.getChildCount();e++){var D=C.children[e].geometry;if(D.adjustIt){var E=b.view.getState(C),G=E.absolutePoints,O=G[0],M=G[G.length-1],X=D.x,ca=D.y,u=M.x-O.x,x=M.y-O.y,Z=O.x+X*u,W=O.y+X*x,Q=Math.sqrt(u*u+x*x),u=u/Q,x=x/Q,Z=Z-ca*x,W=W+ca*u,ma=b.view.getRelativePoint(E,Z,W);D.x=ma.x;D.y=
|
|
|
|
|
z=0;z<k.length;z++)this.importEdge(k[z],b,n,u,x)}catch(ea){throw console.log(ea),ea;}finally{a.endUpdate()}a.beginUpdate();try{var B=b.getModel().cells,C;for(C in B){var A=B[C];if(A.edge&&0<A.getChildCount())for(e=0;e<A.getChildCount();e++){var D=A.children[e].geometry;if(D.adjustIt){var E=b.view.getState(A),G=E.absolutePoints,O=G[0],M=G[G.length-1],X=D.x,ca=D.y,u=M.x-O.x,x=M.y-O.y,Z=O.x+X*u,W=O.y+X*x,Q=Math.sqrt(u*u+x*x),u=u/Q,x=x/Q,Z=Z-ca*x,W=W+ca*u,ma=b.view.getRelativePoint(E,Z,W);D.x=ma.x;D.y=
|
|
|
|
|
ma.y}}}}catch(ea){throw console.log(ea),ea;}finally{a.endUpdate()}f+=this.processPage(b,e+1)}g&&g(f+"</mxfile>")}catch(ea){p&&p(ea)}};
|
|
|
|
|
mxGraphMlCodec.prototype.initializeKeys=function(f){var g=this.getDirectChildNamedElements(f,mxGraphMlConstants.KEY);this.nodesKeys={};this.edgesKeys={};this.portsKeys={};this.sharedData={};this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY]={};this.nodesKeys[mxGraphMlConstants.USER_TAGS]={};this.nodesKeys[mxGraphMlConstants.NODE_STYLE]={};this.nodesKeys[mxGraphMlConstants.NODE_LABELS]={};this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS]={};this.edgesKeys[mxGraphMlConstants.EDGE_GEOMETRY]={};this.edgesKeys[mxGraphMlConstants.EDGE_STYLE]=
|
|
|
|
|
{};this.edgesKeys[mxGraphMlConstants.EDGE_LABELS]={};this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER]={};this.portsKeys[mxGraphMlConstants.PORT_STYLE]={};this.portsKeys[mxGraphMlConstants.PORT_VIEW_STATE]={};for(var p,e=0;e<g.length;e++){var m=this.dataElem2Obj(g[e]),c=m[mxGraphMlConstants.ID],b=m[mxGraphMlConstants.KEY_FOR],a=m[mxGraphMlConstants.KEY_NAME],d=m[mxGraphMlConstants.KEY_YTYPE];a==mxGraphMlConstants.SHARED_DATA&&(p=c);a=a?a:d;switch(b){case mxGraphMlConstants.NODE:this.nodesKeys[a]=
|
|
|
|
@ -1478,20 +1478,20 @@ break;case "bpmnOutline":b=mxGraphMlShapesMap.bpmnOutline[c.toLowerCase()];break
|
|
|
|
|
mxGraphMlCodec.prototype.importGraph=function(f,g,p){for(var e=this.getDirectChildNamedElements(f,mxGraphMlConstants.NODE),m=p,c=0,b=0;m&&m.geometry;)c+=m.geometry.x,b+=m.geometry.y,m=m.parent;for(m=0;m<e.length;m++)this.importNode(e[m],g,p,c,b);this.edges.push({edges:this.getDirectChildNamedElements(f,mxGraphMlConstants.EDGE),parent:p,dx:c,dy:b})};
|
|
|
|
|
mxGraphMlCodec.prototype.importPort=function(f,g){for(var p=f.getAttribute(mxGraphMlConstants.PORT_NAME),e={},m=this.getDirectChildNamedElements(f,mxGraphMlConstants.DATA),c=0;c<m.length;c++){var b=m[c];b.getAttribute(mxGraphMlConstants.KEY);b=this.dataElem2Obj(b);b.key==this.portsKeys[mxGraphMlConstants.PORT_LOCATION_PARAMETER].key&&this.mapObject(b,{"y:FreeNodePortLocationModelParameter.Ratio":function(a,b){var c=a.split(",");b.pos={x:c[0],y:c[1]}}},e)}g[p]=e};
|
|
|
|
|
mxGraphMlCodec.prototype.styleMap2Str=function(f){var g="",p="",e;for(e in f)p+=g+e+"="+f[e],g=";";return p};
|
|
|
|
|
mxGraphMlCodec.prototype.importNode=function(f,g,p,e,m){var c=this.getDirectChildNamedElements(f,mxGraphMlConstants.DATA),b=f.getAttribute(mxGraphMlConstants.ID),a=new mxCell;a.vertex=!0;a.geometry=new mxGeometry(0,0,30,30);g.addCell(a,p);p={graphMlID:b};for(var d=null,k=null,n=null,u=null,x=0;x<c.length;x++){var A=this.dataElem2Obj(c[x]);if(A.key)if(A.key==this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY].key)this.addNodeGeo(a,A,e,m);else if(A.key==this.nodesKeys[mxGraphMlConstants.USER_TAGS].key)n=
|
|
|
|
|
A;else if(A.key==this.nodesKeys[mxGraphMlConstants.NODE_STYLE].key)d=A,A["yjs:StringTemplateNodeStyle"]?k=A["yjs:StringTemplateNodeStyle"]["#text"]:this.addNodeStyle(a,A,p);else if(A.key==this.nodesKeys[mxGraphMlConstants.NODE_LABELS].key)u=A;else if(A.key==this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS].key){var B=d=null;for(B in A)if("key"!=B&&"#text"!=B){if("y:ProxyAutoBoundsNode"==B){if(B=A[B]["y:Realizers"])for(var z in B)if("active"!=z&&"#text"!=z){d=B[z][B.active];A={};A[z]=d;break}}else d=
|
|
|
|
|
A[B];break}d&&(d[mxGraphMlConstants.GEOMETRY]&&this.addNodeGeo(a,d[mxGraphMlConstants.GEOMETRY],e,m),d[mxGraphMlConstants.NODE_LABEL]&&(u=d[mxGraphMlConstants.NODE_LABEL]));d=A;this.addNodeStyle(a,A,p)}}m=this.getDirectChildNamedElements(f,mxGraphMlConstants.PORT);e={};for(x=0;x<m.length;x++)this.importPort(m[x],e);k&&this.handleTemplates(k,n,a,p);this.handleFixedRatio(a,p);this.handleCompoundShape(a,p,d,null);0==p.strokeWidth&&(p.strokeColor="none");a.style=this.styleMap2Str(p);f=this.getDirectChildNamedElements(f,
|
|
|
|
|
mxGraphMlCodec.prototype.importNode=function(f,g,p,e,m){var c=this.getDirectChildNamedElements(f,mxGraphMlConstants.DATA),b=f.getAttribute(mxGraphMlConstants.ID),a=new mxCell;a.vertex=!0;a.geometry=new mxGeometry(0,0,30,30);g.addCell(a,p);p={graphMlID:b};for(var d=null,k=null,n=null,u=null,x=0;x<c.length;x++){var z=this.dataElem2Obj(c[x]);if(z.key)if(z.key==this.nodesKeys[mxGraphMlConstants.NODE_GEOMETRY].key)this.addNodeGeo(a,z,e,m);else if(z.key==this.nodesKeys[mxGraphMlConstants.USER_TAGS].key)n=
|
|
|
|
|
z;else if(z.key==this.nodesKeys[mxGraphMlConstants.NODE_STYLE].key)d=z,z["yjs:StringTemplateNodeStyle"]?k=z["yjs:StringTemplateNodeStyle"]["#text"]:this.addNodeStyle(a,z,p);else if(z.key==this.nodesKeys[mxGraphMlConstants.NODE_LABELS].key)u=z;else if(z.key==this.nodesKeys[mxGraphMlConstants.NODE_GRAPHICS].key){var B=d=null;for(B in z)if("key"!=B&&"#text"!=B){if("y:ProxyAutoBoundsNode"==B){if(B=z[B]["y:Realizers"])for(var C in B)if("active"!=C&&"#text"!=C){d=B[C][B.active];z={};z[C]=d;break}}else d=
|
|
|
|
|
z[B];break}d&&(d[mxGraphMlConstants.GEOMETRY]&&this.addNodeGeo(a,d[mxGraphMlConstants.GEOMETRY],e,m),d[mxGraphMlConstants.NODE_LABEL]&&(u=d[mxGraphMlConstants.NODE_LABEL]));d=z;this.addNodeStyle(a,z,p)}}m=this.getDirectChildNamedElements(f,mxGraphMlConstants.PORT);e={};for(x=0;x<m.length;x++)this.importPort(m[x],e);k&&this.handleTemplates(k,n,a,p);this.handleFixedRatio(a,p);this.handleCompoundShape(a,p,d,null);0==p.strokeWidth&&(p.strokeColor="none");a.style=this.styleMap2Str(p);f=this.getDirectChildNamedElements(f,
|
|
|
|
|
mxGraphMlConstants.GRAPH);for(x=0;x<f.length;x++)this.importGraph(f[x],g,a,e);u&&this.addLabels(a,u,p,g);this.nodesMap[b]={node:a,ports:e}};
|
|
|
|
|
mxGraphMlCodec.prototype.addNodeStyle=function(f,g,p){f=function(a,b){if("line"!=a){b.dashed=1;var c;switch(a){case "DashDot":c="3 1 1 1";break;case "Dot":c="1 1";break;case "DashDotDot":c="3 1 1 1 1 1";break;case "Dash":c="3 1";break;case "dotted":c="1 3";break;case "dashed":c="5 2";break;default:c=a.replace(/0/g,"1")}c&&(0>c.indexOf(" ")&&(c=c+" "+c),b.dashPattern=c)}};f={shape:{key:"shape",mod:"shape"},"y:Shape.type":{key:"shape",mod:"shape"},configuration:{key:"shape",mod:"shape"},type:{key:"shape",
|
|
|
|
|
mod:"shape"},assetName:{key:"shape",mod:"shape"},activityType:{key:"shape",mod:"shape"},fill:{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"fillColor",mod:"color"},"fill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"y:Fill":{color:{key:"fillColor",mod:"color"},transparent:function(a,b){"true"==a&&(b.fillColor="none")}},"y:BorderStyle":{color:{key:"strokeColor",mod:"color"},width:"strokeWidth",hasColor:function(a,b){"false"==a&&(b.strokeColor="none")},
|
|
|
|
|
type:f},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:f,"dashStyle.yjs:DashStyle.dashes":f,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"}};var e=mxUtils.clone(f);e.defaults={fillColor:"#CCCCCC",strokeColor:"#6881B3"};var m=mxUtils.clone(f);m.defaults={shape:"ext;rounded=1",fillColor:"#FFFFFF",strokeColor:"#000090"};var c=mxUtils.clone(f);c.defaults={shape:"rhombus;fillColor=#FFFFFF;strokeColor=#FFCD28"};
|
|
|
|
|
var b=mxUtils.clone(f);b.defaults={shape:"hexagon",strokeColor:"#007000"};var a=mxUtils.clone(f);a.defaults={shape:"mxgraph.bpmn.shape;perimeter=ellipsePerimeter;symbol=general",outline:"standard"};a.characteristic={key:"outline",mod:"bpmnOutline"};var d=mxUtils.clone(f);d.defaults={shape:"js:bpmnDataObject"};var k=mxUtils.clone(f);k.defaults={shape:"datastore"};var n=mxUtils.clone(f);n.defaults={shape:"swimlane;swimlaneLine=0;startSize=20;dashed=1;dashPattern=3 1 1 1;collapsible=0;rounded=1"};var u=
|
|
|
|
|
mxUtils.clone(f);u.defaults={shape:"js:BpmnChoreography"};var x=mxUtils.clone(f);x.defaults={rounded:"1",glass:"1",strokeColor:"#FFFFFF"};x.inset="strokeWidth";x.radius="arcSize";x.drawShadow={key:"shadow",mod:"bool"};x.color={key:"fillColor",mod:"color",addGradient:"north"};x["color.yjs:Color.value"]=x.color;var A=mxUtils.clone(f);A.defaults={rounded:"1",arcSize:10,glass:"1",shadow:"1",strokeColor:"none"};A.drawShadow={key:"shadow",mod:"bool"};var B=mxUtils.clone(f);B.defaults={shape:"swimlane",
|
|
|
|
|
startSize:20,strokeWidth:4,spacingLeft:10};B.isCollapsible={key:"collapsible",mod:"bool"};B.borderColor={key:"strokeColor",mod:"color"};B.folderFrontColor={key:"fillColor",mod:"color"};var z=mxUtils.clone(f);z.defaults={shape:"swimlane",startSize:20,spacingLeft:10};z["yjs:PanelNodeStyle"]={color:{key:"swimlaneFillColor",mod:"color"},"color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},labelInsetsColor:{key:"fillColor",mod:"color"},"labelInsetsColor.yjs:Color.value":{key:"fillColor",mod:"color"}};
|
|
|
|
|
var C=mxUtils.clone(f);C.defaults={shape:"js:table"};var D=mxUtils.clone(f);D.defaults={shape:"image"};D.image=function(a,b){b.image=a};var E=mxUtils.clone(f);E.defaults={shape:"image"};E["y:SVGModel.y:SVGContent.y:Resource.#text"]=function(a,b){b.image="data:image/svg+xml,"+(window.btoa?btoa(a):Base64.encode(a))};var G=mxUtils.clone(f);G.defaults={shape:"swimlane",startSize:20};G["y:Shape.type"]=function(a,b){"roundrectangle"==a&&(b.rounded=1,b.arcSize=5)};var O=mxUtils.clone(f);O.defaults={shape:"js:table2"};
|
|
|
|
|
mxUtils.clone(f);u.defaults={shape:"js:BpmnChoreography"};var x=mxUtils.clone(f);x.defaults={rounded:"1",glass:"1",strokeColor:"#FFFFFF"};x.inset="strokeWidth";x.radius="arcSize";x.drawShadow={key:"shadow",mod:"bool"};x.color={key:"fillColor",mod:"color",addGradient:"north"};x["color.yjs:Color.value"]=x.color;var z=mxUtils.clone(f);z.defaults={rounded:"1",arcSize:10,glass:"1",shadow:"1",strokeColor:"none"};z.drawShadow={key:"shadow",mod:"bool"};var B=mxUtils.clone(f);B.defaults={shape:"swimlane",
|
|
|
|
|
startSize:20,strokeWidth:4,spacingLeft:10};B.isCollapsible={key:"collapsible",mod:"bool"};B.borderColor={key:"strokeColor",mod:"color"};B.folderFrontColor={key:"fillColor",mod:"color"};var C=mxUtils.clone(f);C.defaults={shape:"swimlane",startSize:20,spacingLeft:10};C["yjs:PanelNodeStyle"]={color:{key:"swimlaneFillColor",mod:"color"},"color.yjs:Color.value":{key:"swimlaneFillColor",mod:"color"},labelInsetsColor:{key:"fillColor",mod:"color"},"labelInsetsColor.yjs:Color.value":{key:"fillColor",mod:"color"}};
|
|
|
|
|
var A=mxUtils.clone(f);A.defaults={shape:"js:table"};var D=mxUtils.clone(f);D.defaults={shape:"image"};D.image=function(a,b){b.image=a};var E=mxUtils.clone(f);E.defaults={shape:"image"};E["y:SVGModel.y:SVGContent.y:Resource.#text"]=function(a,b){b.image="data:image/svg+xml,"+(window.btoa?btoa(a):Base64.encode(a))};var G=mxUtils.clone(f);G.defaults={shape:"swimlane",startSize:20};G["y:Shape.type"]=function(a,b){"roundrectangle"==a&&(b.rounded=1,b.arcSize=5)};var O=mxUtils.clone(f);O.defaults={shape:"js:table2"};
|
|
|
|
|
var M=mxUtils.clone(f);M.defaults={gradientDirection:"east"};M["y:Fill"].color2={key:"gradientColor",mod:"color"};M["y:StyleProperties.y:Property"]={"com.yworks.bpmn.characteristic":{key:"outline",mod:"bpmnOutline"},"com.yworks.bpmn.icon.fill":{key:"gradientColor",mod:"color"},"com.yworks.bpmn.icon.fill2":{key:"fillColor",mod:"color"},"com.yworks.bpmn.type":{key:"symbol",mod:"bpmnSymbol"},"y.view.ShadowNodePainter.SHADOW_PAINTING":{key:"shadow",mod:"bool"},doubleBorder:{key:"double",mod:"bool"},"com.yworks.sbgn.style.radius":{key:"arcSize",
|
|
|
|
|
mod:"scale",scale:2},"com.yworks.sbgn.style.inverse":{key:"flipV",mod:"bool"}};this.mapObject(g,{"yjs:ShapeNodeStyle":f,"demostyle:FlowchartNodeStyle":f,"demostyle:AssetNodeStyle":e,"bpmn:ActivityNodeStyle":m,"bpmn:GatewayNodeStyle":c,"bpmn:ConversationNodeStyle":b,"bpmn:EventNodeStyle":a,"bpmn:DataObjectNodeStyle":d,"bpmn:DataStoreNodeStyle":k,"bpmn:GroupNodeStyle":n,"bpmn:ChoreographyNodeStyle":u,"yjs:BevelNodeStyle":x,"yjs:ShinyPlateNodeStyle":A,"demostyle:DemoGroupStyle":B,"yjs:CollapsibleNodeStyleDecorator":z,
|
|
|
|
|
"bpmn:PoolNodeStyle":C,"yjs:TableNodeStyle":C,"demotablestyle:DemoTableStyle":C,"yjs:ImageNodeStyle":D,"y:ShapeNode":f,"y:GenericNode":M,"y:GenericGroupNode":M,"y:TableNode":O,"y:SVGNode":E,"y:GroupNode":G},p)};
|
|
|
|
|
mod:"scale",scale:2},"com.yworks.sbgn.style.inverse":{key:"flipV",mod:"bool"}};this.mapObject(g,{"yjs:ShapeNodeStyle":f,"demostyle:FlowchartNodeStyle":f,"demostyle:AssetNodeStyle":e,"bpmn:ActivityNodeStyle":m,"bpmn:GatewayNodeStyle":c,"bpmn:ConversationNodeStyle":b,"bpmn:EventNodeStyle":a,"bpmn:DataObjectNodeStyle":d,"bpmn:DataStoreNodeStyle":k,"bpmn:GroupNodeStyle":n,"bpmn:ChoreographyNodeStyle":u,"yjs:BevelNodeStyle":x,"yjs:ShinyPlateNodeStyle":z,"demostyle:DemoGroupStyle":B,"yjs:CollapsibleNodeStyleDecorator":C,
|
|
|
|
|
"bpmn:PoolNodeStyle":A,"yjs:TableNodeStyle":A,"demotablestyle:DemoTableStyle":A,"yjs:ImageNodeStyle":D,"y:ShapeNode":f,"y:GenericNode":M,"y:GenericGroupNode":M,"y:TableNode":O,"y:SVGNode":E,"y:GroupNode":G},p)};
|
|
|
|
|
mxGraphMlCodec.prototype.handleTemplates=function(f,g,p,e){if(f){for(var m=p.geometry.width,c=p.geometry.height,b='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+m+" "+c+'"><g>',a,d=[],k=/\{TemplateBinding\s+([^}]+)\}/g;null!=(a=k.exec(f));){var n="";switch(a[1]){case "width":n=m;break;case "height":n=c}d.push({match:a[0],repl:n})}if(g&&g["y:Json"])for(c=JSON.parse(g["y:Json"]["#text"]),k=/\{Binding\s+([^}]+)\}/g;null!=(a=k.exec(f));)if(n=a[1].split(","),
|
|
|
|
|
m=c[n[0]]){if(1<n.length&&n[1].indexOf("Converter=")){var u=mxGraphMlConverters[n[1].substr(11)];u&&(arguments=[m],n[2]&&arguments.push(n[2].substr(11)),m=u.apply(null,arguments))}d.push({match:a[0],repl:mxUtils.htmlEntities(m)})}for(a=0;a<d.length;a++)f=f.replace(d[a].match,d[a].repl);d=[];for(c=/\<text.+data-content="([^"]+).+\<\/text\>/g;null!=(a=c.exec(f));)m=a[0].substr(0,a[0].length-7)+a[1]+"</text>",d.push({match:a[0],repl:m});for(a=0;a<d.length;a++)f=f.replace(d[a].match,d[a].repl);b=b+f+
|
|
|
|
|
"</g></svg>";e.shape="image";e.image="data:image/svg+xml,"+(window.btoa?btoa(b):Base64.encode(b))}};
|
|
|
|
@ -1509,16 +1509,16 @@ mod:"color"},thickness:"strokeWidth"}},"backgroundStyle.yjs:ShapeNodeStyle.fill"
|
|
|
|
|
"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",
|
|
|
|
|
mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"height"};this.mapObject(e.RowDefaults,{defaults:{shape:"swimlane;collapsible=0;horizontal=0",startSize:"0"},"y:StripeDefaults":x},u);b={};d={Insets:function(a,b){b.startSize=a.split(",")[1]},"Style.bpmn:AlternatingLeafStripeStyle":{"evenLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"evenFill",mod:"color"},backgroundFill:{key:"evenLaneFill",mod:"color"}},"oddLeafDescriptor.bpmn:StripeDescriptor":{insetFill:{key:"oddFill",
|
|
|
|
|
mod:"color"},backgroundFill:{key:"oddLaneFill",mod:"color"}}},"Style.yjs:NodeStyleStripeStyleAdapter":{"demotablestyle:DemoStripeStyle":{"stripeInsetFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"fillColor",mod:"color"},"tableLineFill.yjs:SolidColorFill.color.yjs:Color.value":{key:"strokeColor",mod:"color"}},"yjs:ShapeNodeStyle":{fill:{key:"swimlaneFillColor",mod:"color"}}},Size:"width"};this.mapObject(e.ColumnDefaults,{defaults:{shape:"swimlane;collapsible=0",startSize:"0",fillColor:"none"},
|
|
|
|
|
"y:StripeDefaults":d},b);var c=f.geometry,a=e.Rows["y:Row"],k=k+parseFloat(b.startSize),A=n.x,B=n.x;n.lx=n.x;if(a)for(a instanceof Array||(a=[a]),c=0;c<a.length;c++)n.x=B,n.lx=B,k=this.addRow(a[c],f,c&1,k,n,x,u),A=Math.max(n.x,A);e=e.Columns["y:Column"];a=A;if(e)for(e instanceof Array||(e=[e]),c=0;c<e.length;c++)a=this.addColumn(e[c],f,c&1,a,p,d,b);break;case "js:table2":g.shape="swimlane;collapsible=0;swimlaneLine=0";e={};this.mapObject(p,{"y:TableNode":{"y:StyleProperties.y:Property":{"yed.table.section.color":{key:"secColor",
|
|
|
|
|
"y:StripeDefaults":d},b);var c=f.geometry,a=e.Rows["y:Row"],k=k+parseFloat(b.startSize),z=n.x,B=n.x;n.lx=n.x;if(a)for(a instanceof Array||(a=[a]),c=0;c<a.length;c++)n.x=B,n.lx=B,k=this.addRow(a[c],f,c&1,k,n,x,u),z=Math.max(n.x,z);e=e.Columns["y:Column"];a=z;if(e)for(e instanceof Array||(e=[e]),c=0;c<e.length;c++)a=this.addColumn(e[c],f,c&1,a,p,d,b);break;case "js:table2":g.shape="swimlane;collapsible=0;swimlaneLine=0";e={};this.mapObject(p,{"y:TableNode":{"y:StyleProperties.y:Property":{"yed.table.section.color":{key:"secColor",
|
|
|
|
|
mod:"color"},"yed.table.header.height":"headerH","yed.table.header.color.main":{key:"headerColor",mod:"color"},"yed.table.header.color.alternating":{key:"headerColorAlt",mod:"color"},"yed.table.lane.color.main":{key:"laneColor",mod:"color"},"yed.table.lane.color.alternating":{key:"laneColorAlt",mod:"color"},"yed.table.lane.style":"laneStyle","com.yworks.bpmn.type":"isHorz",POOL_LANE_COLOR_ALTERNATING:{key:"laneColorAlt",mod:"color"},POOL_LANE_COLOR_MAIN:{key:"laneColor",mod:"color"},POOL_LANE_STYLE:"laneStyle",
|
|
|
|
|
POOL_HEADER_COLOR_MAIN:{key:"headerColor",mod:"color"},POOL_HEADER_COLOR_ALTERNATING:{key:"headerColorAlt",mod:"color"},POOL_TABLE_SECTION_COLOR:{key:"secColor",mod:"color"}},"y:Table":{"y:DefaultColumnInsets.top":"colHHeight","y:DefaultRowInsets.left":"rowHWidth","y:Insets":{top:"tblHHeight",left:"tblHWidth"}}}},e);g.swimlaneFillColor=g.fillColor;x=b=0;"pool_type_lane_and_column"==e.isHorz||"pool_type_empty"==e.isHorz||"pool_type_lane"==e.isHorz?x=parseFloat(e.tblHWidth):b=parseFloat(e.tblHHeight);
|
|
|
|
|
g.startSize=b?b:x;try{a=p["y:TableNode"]["y:Table"]["y:Rows"]["y:Row"];d=p["y:TableNode"]["y:Table"]["y:Columns"]["y:Column"];k="lane.style.rows"==e.laneStyle||"lane_style_rows"==e.laneStyle;a instanceof Array||(a=[a]);d instanceof Array||(d=[d]);n=parseFloat(e.rowHWidth);for(c=0;c<a.length;c++)a[c]["y:Insets"]&&(n=Math.max(n,parseFloat(a[c]["y:Insets"].left)+parseFloat(a[c]["y:Insets"].right)));u=parseFloat(e.colHHeight);for(c=0;c<d.length;c++)d[c]["y:Insets"]&&(u=Math.max(u,parseFloat(d[c]["y:Insets"].top)+
|
|
|
|
|
parseFloat(d[c]["y:Insets"].bottom)));k?(this.addTbl2Rows(f,a,b,x,n,u,k,e),this.addTbl2Cols(f,d,b,x,n,u,k,e)):(this.addTbl2Cols(f,d,b,x,n,u,k,e),this.addTbl2Rows(f,a,b,x,n,u,k,e))}catch(z){}break;case "js:relationship_big_entity":g.shape="swimlane;startSize=30;rounded=1;arcSize=5;collapsible=0";if(f=p["y:GenericNode"]["y:Fill"])g.fillColor=f.color2,g.swimlaneFillColor=f.color;break;case "js:relationship_attribute":g.shape="1"==g["double"]?"doubleEllipse":"ellipse"}0<m.indexOf("Shadow")&&(g.shadow=
|
|
|
|
|
parseFloat(d[c]["y:Insets"].bottom)));k?(this.addTbl2Rows(f,a,b,x,n,u,k,e),this.addTbl2Cols(f,d,b,x,n,u,k,e)):(this.addTbl2Cols(f,d,b,x,n,u,k,e),this.addTbl2Rows(f,a,b,x,n,u,k,e))}catch(C){}break;case "js:relationship_big_entity":g.shape="swimlane;startSize=30;rounded=1;arcSize=5;collapsible=0";if(f=p["y:GenericNode"]["y:Fill"])g.fillColor=f.color2,g.swimlaneFillColor=f.color;break;case "js:relationship_attribute":g.shape="1"==g["double"]?"doubleEllipse":"ellipse"}0<m.indexOf("Shadow")&&(g.shadow=
|
|
|
|
|
"1")}};
|
|
|
|
|
mxGraphMlCodec.prototype.addTbl2Rows=function(f,g,p,e,m,c,b,a){p+=c;for(var d=null!=a.isHorz,k=0;k<g.length;k++){var n=k&1,u=new mxCell;u.vertex=!0;var x={shape:"swimlane;collapsible=0;horizontal=0",startSize:m,fillColor:a.secColor||"none",swimlaneLine:d?"0":"1"};0==parseFloat(x.startSize)&&(x.fillColor="none",x.swimlaneLine="0");if(b){var A=n?a.headerColorAlt:a.headerColor;x.swimlaneFillColor=n?a.laneColorAlt:a.laneColor;x.fillColor=A?A:x.swimlaneFillColor}n=parseFloat(g[k].height);A=d&&0==k?c:0;
|
|
|
|
|
u.geometry=new mxGeometry(e,p-A,f.geometry.width-e,n+A);p+=n;u.style=this.styleMap2Str(x);f.insert(u)}};
|
|
|
|
|
mxGraphMlCodec.prototype.addTbl2Cols=function(f,g,p,e,m,c,b,a){e=m+e;for(var d=null!=a.isHorz,k=0;k<g.length;k++){var n=k&1,u=new mxCell;u.vertex=!0;var x={shape:"swimlane;collapsible=0",startSize:c,fillColor:a.secColor||"none",swimlaneLine:d?"0":"1"};0==parseFloat(x.startSize)&&(x.fillColor="none");if(!b){var A=n?a.headerColorAlt:a.headerColor;x.swimlaneFillColor=n?a.laneColorAlt:a.laneColor;x.fillColor=A?A:x.swimlaneFillColor}n=parseFloat(g[k].width);A=d&&0==k?m:0;u.geometry=new mxGeometry(e-A,
|
|
|
|
|
p,n+A,f.geometry.height-p);e+=n;u.style=this.styleMap2Str(x);f.insert(u)}};
|
|
|
|
|
mxGraphMlCodec.prototype.addTbl2Rows=function(f,g,p,e,m,c,b,a){p+=c;for(var d=null!=a.isHorz,k=0;k<g.length;k++){var n=k&1,u=new mxCell;u.vertex=!0;var x={shape:"swimlane;collapsible=0;horizontal=0",startSize:m,fillColor:a.secColor||"none",swimlaneLine:d?"0":"1"};0==parseFloat(x.startSize)&&(x.fillColor="none",x.swimlaneLine="0");if(b){var z=n?a.headerColorAlt:a.headerColor;x.swimlaneFillColor=n?a.laneColorAlt:a.laneColor;x.fillColor=z?z:x.swimlaneFillColor}n=parseFloat(g[k].height);z=d&&0==k?c:0;
|
|
|
|
|
u.geometry=new mxGeometry(e,p-z,f.geometry.width-e,n+z);p+=n;u.style=this.styleMap2Str(x);f.insert(u)}};
|
|
|
|
|
mxGraphMlCodec.prototype.addTbl2Cols=function(f,g,p,e,m,c,b,a){e=m+e;for(var d=null!=a.isHorz,k=0;k<g.length;k++){var n=k&1,u=new mxCell;u.vertex=!0;var x={shape:"swimlane;collapsible=0",startSize:c,fillColor:a.secColor||"none",swimlaneLine:d?"0":"1"};0==parseFloat(x.startSize)&&(x.fillColor="none");if(!b){var z=n?a.headerColorAlt:a.headerColor;x.swimlaneFillColor=n?a.laneColorAlt:a.laneColor;x.fillColor=z?z:x.swimlaneFillColor}n=parseFloat(g[k].width);z=d&&0==k?m:0;u.geometry=new mxGeometry(e-z,
|
|
|
|
|
p,n+z,f.geometry.height-p);e+=n;u.style=this.styleMap2Str(x);f.insert(u)}};
|
|
|
|
|
mxGraphMlCodec.prototype.addRow=function(f,g,p,e,m,c,b){var a=new mxCell;a.vertex=!0;var d=mxUtils.clone(b);this.mapObject(f,c,d);p?(d.oddFill&&(d.fillColor=d.oddFill),d.oddLaneFill&&(d.swimlaneFillColor=d.oddLaneFill)):(d.evenFill&&(d.fillColor=d.evenFill),d.evenLaneFill&&(d.swimlaneFillColor=d.evenLaneFill));p=parseFloat(d.height);a.geometry=new mxGeometry(m.lx,e,g.geometry.width-m.lx,p);var k=f.Labels;k&&this.addLabels(a,k,d);a.style=this.styleMap2Str(d);g.insert(a);f=f["y:Row"];m.lx=0;d.startSize&&
|
|
|
|
|
(m.lx=parseFloat(d.startSize),m.x+=m.lx);g=d=m.x;var k=m.lx,n=0;if(f){f instanceof Array||(f=[f]);for(var u=0;u<f.length;u++)m.x=d,m.lx=k,n=this.addRow(f[u],a,u&1,n,m,c,b),g=Math.max(m.x,g)}m.x=g;p=Math.max(p,n);a.geometry.height=p;return e+p};
|
|
|
|
|
mxGraphMlCodec.prototype.addColumn=function(f,g,p,e,m,c,b){var a=new mxCell;a.vertex=!0;var d=mxUtils.clone(b);this.mapObject(f,c,d);p?(d.oddFill&&(d.fillColor=d.oddFill),d.oddLaneFill&&(d.swimlaneFillColor=d.oddLaneFill)):(d.evenFill&&(d.fillColor=d.evenFill),d.evenLaneFill&&(d.swimlaneFillColor=d.evenLaneFill));p=parseFloat(d.width);a.geometry=new mxGeometry(e,m,p,g.geometry.height-m);var k=f.Labels;k&&this.addLabels(a,k,d);a.style=this.styleMap2Str(d);g.insert(a);f=f["y:Column"];g=0;if(f)for(f instanceof
|
|
|
|
@ -1534,16 +1534,16 @@ mxGraphMlCodec.prototype.addEdgeStyle=function(f,g,p){f=function(a,b){b.dashed=1
|
|
|
|
|
"1"},c={defaults:{rounded:0,endArrow:"none"},configuration:{key:"shape",mod:"shape"},"y:LineStyle":{color:{key:"strokeColor",mod:"color"},type:function(a,b){"line"!=a&&(b.dashed=1);var c=null;switch(a){case "dashed":c="3 1";break;case "dotted":c="1 1";break;case "dashed_dotted":c="3 2 1 2"}c&&(b.dashPattern=c)},width:"strokeWidth"},"y:Arrows":{source:function(a,b){b.startArrow=mxGraphMlArrowsMap[a]||"classic";m(a,b)},target:function(a,b){b.endArrow=mxGraphMlArrowsMap[a]||"classic";e(a,b)}},"y:BendStyle":{smoothed:{key:"rounded",
|
|
|
|
|
mod:"bool"}}},b=mxUtils.clone(c);b.defaults.curved="1";this.mapObject(g,{"yjs:PolylineEdgeStyle":{defaults:{endArrow:"none",rounded:0},smoothingLength:function(a,b){b.rounded=a&&0<parseFloat(a)?"1":"0"},stroke:{key:"strokeColor",mod:"color"},"stroke.yjs:Stroke":{dashStyle:f,"dashStyle.yjs:DashStyle.dashes":f,fill:{key:"strokeColor",mod:"color"},"fill.yjs:SolidColorFill.color":{key:"strokeColor",mod:"color"},"thickness.sys:Double":"strokeWidth",thickness:"strokeWidth"},targetArrow:{key:"endArrow",
|
|
|
|
|
mod:"arrow"},"targetArrow.yjs:Arrow":{defaults:{endArrow:"classic",endFill:"1",endSize:"6"},fill:e,scale:{key:"endSize",mod:"scale",scale:5},type:{key:"endArrow",mod:"arrow"}},sourceArrow:{key:"startArrow",mod:"arrow"},"sourceArrow.yjs:Arrow":{defaults:{startArrow:"classic",startFill:"1",startSize:"6"},fill:m,scale:{key:"startSize",mod:"scale",scale:5},type:{key:"startArrow",mod:"arrow"}}},"y:PolyLineEdge":c,"y:GenericEdge":c,"y:ArcEdge":b,"y:BezierEdge":b,"y:QuadCurveEdge":b,"y:SplineEdge":b},p)};
|
|
|
|
|
mxGraphMlCodec.prototype.addLabels=function(f,g,p,e,m){p=f.getChildCount();var c=g[mxGraphMlConstants.Y_LABEL]||g;g=[];var b=[],a=[];if(c){c instanceof Array||(c=[c]);for(var d=0;d<c.length;d++){var k=c[d],n={},u=k[mxGraphMlConstants.TEXT]||k;u&&(u=u["#text"]);var x=k[mxGraphMlConstants.LAYOUTPARAMETER]||k||{},A=function(a,b){a&&(a=a.toUpperCase());var c=b.fontStyle||0;switch(a){case "ITALIC":c|=2;break;case "BOLD":c|=1;break;case "UNDERLINE":c|=4}b.fontStyle=c};this.mapObject(k,{"Style.yjs:DefaultLabelStyle":{backgroundFill:{key:"labelBackgroundColor",
|
|
|
|
|
mxGraphMlCodec.prototype.addLabels=function(f,g,p,e,m){p=f.getChildCount();var c=g[mxGraphMlConstants.Y_LABEL]||g;g=[];var b=[],a=[];if(c){c instanceof Array||(c=[c]);for(var d=0;d<c.length;d++){var k=c[d],n={},u=k[mxGraphMlConstants.TEXT]||k;u&&(u=u["#text"]);var x=k[mxGraphMlConstants.LAYOUTPARAMETER]||k||{},z=function(a,b){a&&(a=a.toUpperCase());var c=b.fontStyle||0;switch(a){case "ITALIC":c|=2;break;case "BOLD":c|=1;break;case "UNDERLINE":c|=4}b.fontStyle=c};this.mapObject(k,{"Style.yjs:DefaultLabelStyle":{backgroundFill:{key:"labelBackgroundColor",
|
|
|
|
|
mod:"color"},"backgroundFill.yjs:SolidColorFill.color":{key:"labelBackgroundColor",mod:"color"},backgroundStroke:{key:"labelBorderColor",mod:"color"},"backgroundStroke.yjs:Stroke.fill":{key:"labelBorderColor",mod:"color"},textFill:{key:"fontColor",mod:"color"},"textFill.yjs:SolidColorFill.color":{key:"fontColor",mod:"color"},textSize:"fontSize",horizontalTextAlignment:"align",verticalTextAlignment:"verticalAlign",wrapping:function(a,b){a&&(b.whiteSpace="wrap")},"font.yjs:Font":{fontFamily:"fontFamily",
|
|
|
|
|
fontSize:"fontSize",fontStyle:A,fontWeight:A,textDecoration:A}},"Style.y:VoidLabelStyle":function(a,b){b.VoidLbl=!0},alignment:"align",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:A,underlinedText:function(a,b){var c=b.fontStyle||0;"true"==a&&(c|=4);b.fontStyle=c},horizontalTextPosition:"",textColor:{key:"fontColor",mod:"color"},verticalTextPosition:"verticalAlign",hasText:{key:"hasText",mod:"bool"},rotationAngle:"rotation"},n);n.VoidLbl||"0"==n.hasText||(g.push(u),b.push(n),a.push(x))}}for(d=
|
|
|
|
|
fontSize:"fontSize",fontStyle:z,fontWeight:z,textDecoration:z}},"Style.y:VoidLabelStyle":function(a,b){b.VoidLbl=!0},alignment:"align",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:z,underlinedText:function(a,b){var c=b.fontStyle||0;"true"==a&&(c|=4);b.fontStyle=c},horizontalTextPosition:"",textColor:{key:"fontColor",mod:"color"},verticalTextPosition:"verticalAlign",hasText:{key:"hasText",mod:"bool"},rotationAngle:"rotation"},n);n.VoidLbl||"0"==n.hasText||(g.push(u),b.push(n),a.push(x))}}for(d=
|
|
|
|
|
0;d<g.length;d++)if(g[d]&&(!a[d]||!a[d]["bpmn:ParticipantParameter"])){g[d]=mxUtils.htmlEntities(g[d],!1).replace(/\n/g,"<br/>");x=f.geometry;n=new mxCell(g[d],new mxGeometry(0,0,x.width,x.height),"text;html=1;spacing=0;"+this.styleMap2Str(b[d]));n.vertex=!0;f.insert(n,p);c=n.geometry;if(a[d]["y:RatioAnchoredLabelModelParameter"])x=mxUtils.getSizeForString(g[d],b[d].fontSize,b[d].fontFamily),(k=a[d]["y:RatioAnchoredLabelModelParameter"].LayoutOffset)?(k=k.split(","),c.x=parseFloat(k[0]),c.y=parseFloat(k[1]),
|
|
|
|
|
c.width=x.width,c.height=x.height,n.style+=";spacingTop=-4;"):n.style+=";align=center;";else if(a[d]["y:InteriorLabelModel"]){switch(a[d]["y:InteriorLabelModel"]){case "Center":n.style+=";verticalAlign=middle;";break;case "North":c.height=1;break;case "West":c.width=x.height,c.height=x.width,c.y=x.height/2-x.width/2,c.x=-c.y,n.style+=";rotation=-90"}n.style+=";align=center;"}else if(a[d]["y:StretchStripeLabelModel"]||a[d]["y:StripeLabelModelParameter"])switch(a[d]["y:StretchStripeLabelModel"]||a[d]["y:StripeLabelModelParameter"].Position){case "North":c.height=
|
|
|
|
|
1;break;case "West":c.width=x.height,c.height=x.width,c.y=x.height/2-x.width/2,c.x=-c.y,n.style+=";rotation=-90;"}else if(a[d]["bpmn:PoolHeaderLabelModel"]){switch(a[d]["bpmn:PoolHeaderLabelModel"]){case "NORTH":c.height=1;break;case "WEST":c.width=x.height,c.height=x.width,c.y=x.height/2-x.width/2,c.x=-c.y,n.style+=";rotation=-90;"}n.style+=";align=center;"}else if(a[d]["y:InteriorStretchLabelModelParameter"])n.style+=";align=center;";else if(a[d]["y:ExteriorLabelModel"])switch(a[d]["y:ExteriorLabelModel"]){case "East":n.style+=
|
|
|
|
|
";labelPosition=right;verticalLabelPosition=middle;align=left;verticalAlign=middle;";break;case "South":n.style+=";labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;";break;case "North":n.style+=";labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;";break;case "West":n.style+=";labelPosition=left;verticalLabelPosition=middle;align=right;verticalAlign=middle;"}else if(a[d]["y:FreeEdgeLabelModelParameter"]){c.relative=!0;c.adjustIt=!0;var x=
|
|
|
|
|
a[d]["y:FreeEdgeLabelModelParameter"],k=x.Ratio,A=x.Distance,B=x.Angle;k&&(c.x=parseFloat(k));A&&(c.y=parseFloat(A));B&&(n.style+=";rotation="+parseFloat(B)*(180/Math.PI));n.style+=";verticalAlign=middle;"}else if(a[d]["y:EdgePathLabelModelParameter"]){c.relative=!0;x=a[d]["y:EdgePathLabelModelParameter"];u=x.SideOfEdge;k=x.SegmentRatio;c.x=k?2*parseFloat(k)-1:0;if(u)switch(u){case "RightOfEdge":c.y=-15;break;case "LeftOfEdge":c.y=15}n.style+=";verticalAlign=middle;"}else if(x=parseFloat(a[d].x),
|
|
|
|
|
k=parseFloat(a[d].y),a[d].width&&(c.width=parseFloat(a[d].width)),a[d].height&&(c.height=parseFloat(a[d].height)),f.edge)if(c.relative=!0,c.x=0,c.y=0,n=f.source.geometry.getCenterX()-f.target.geometry.getCenterX(),u=f.source.geometry.getCenterY()-f.target.geometry.getCenterY(),e&&m&&a[d]["y:ModelParameter"]&&a[d]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"]){var x=a[d]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"],B=parseFloat(x.angle),A=parseFloat(x.distance),z=x.position,k=parseFloat(x.ratio),
|
|
|
|
|
x=parseFloat(x.segment),C=new mxCellState;C.absolutePoints=m;e.view.updateEdgeBounds(C);var D="left"==z?1:-1;if(-1==x&&6.283185307179586==B)c.offset=new mxPoint(1>Math.abs(k)?C.segments[0]*k:k,D*A);else{-1==x&&(x=0);for(var E=B=0;E<x;E++)B+=C.segments[E];B+=C.segments[x]*k;c.x=B/C.length*2-1;c.y=(("center"==z?0:A)+c.height/2*D*(Math.abs(n)>Math.abs(u)?1:-1))*D}}else isNaN(x)||isNaN(k)||(c.offset=new mxPoint(x+n/2+(0<n?-c.width:c.width),k));else c.x=x||0,c.y=k||0;b[d].rotation&&270==b[d].rotation&&
|
|
|
|
|
a[d]["y:FreeEdgeLabelModelParameter"],k=x.Ratio,z=x.Distance,B=x.Angle;k&&(c.x=parseFloat(k));z&&(c.y=parseFloat(z));B&&(n.style+=";rotation="+parseFloat(B)*(180/Math.PI));n.style+=";verticalAlign=middle;"}else if(a[d]["y:EdgePathLabelModelParameter"]){c.relative=!0;x=a[d]["y:EdgePathLabelModelParameter"];u=x.SideOfEdge;k=x.SegmentRatio;c.x=k?2*parseFloat(k)-1:0;if(u)switch(u){case "RightOfEdge":c.y=-15;break;case "LeftOfEdge":c.y=15}n.style+=";verticalAlign=middle;"}else if(x=parseFloat(a[d].x),
|
|
|
|
|
k=parseFloat(a[d].y),a[d].width&&(c.width=parseFloat(a[d].width)),a[d].height&&(c.height=parseFloat(a[d].height)),f.edge)if(c.relative=!0,c.x=0,c.y=0,n=f.source.geometry.getCenterX()-f.target.geometry.getCenterX(),u=f.source.geometry.getCenterY()-f.target.geometry.getCenterY(),e&&m&&a[d]["y:ModelParameter"]&&a[d]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"]){var x=a[d]["y:ModelParameter"]["y:SmartEdgeLabelModelParameter"],B=parseFloat(x.angle),z=parseFloat(x.distance),C=x.position,k=parseFloat(x.ratio),
|
|
|
|
|
x=parseFloat(x.segment),A=new mxCellState;A.absolutePoints=m;e.view.updateEdgeBounds(A);var D="left"==C?1:-1;if(-1==x&&6.283185307179586==B)c.offset=new mxPoint(1>Math.abs(k)?A.segments[0]*k:k,D*z);else{-1==x&&(x=0);for(var E=B=0;E<x;E++)B+=A.segments[E];B+=A.segments[x]*k;c.x=B/A.length*2-1;c.y=(("center"==C?0:z)+c.height/2*D*(Math.abs(n)>Math.abs(u)?1:-1))*D}}else isNaN(x)||isNaN(k)||(c.offset=new mxPoint(x+n/2+(0<n?-c.width:c.width),k));else c.x=x||0,c.y=k||0;b[d].rotation&&270==b[d].rotation&&
|
|
|
|
|
(c.x-=c.height/2)}return{lblTxts:g,lblStyles:b}};mxGraphMlCodec.prototype.processPage=function(f,g){var p=(new mxCodec).encode(f.getModel());p.setAttribute("style","default-style2");p=mxUtils.getXml(p);p='<diagram name="Page '+g+'">'+Graph.compress(p);return p+"</diagram>"};mxGraphMlCodec.prototype.getDirectChildNamedElements=function(f,g){for(var p=[],e=f.firstChild;null!=e;e=e.nextSibling)null!=e&&1==e.nodeType&&g==e.nodeName&&0<p.push(e);return p};
|
|
|
|
|
mxGraphMlCodec.prototype.getDirectFirstChildNamedElements=function(f,g){for(var p=f.firstChild;null!=p;p=p.nextSibling)if(null!=p&&1==p.nodeType&&g==p.nodeName)return p;return null};mxGraphMlCodec.prototype.getDirectChildElements=function(f){var g=[];for(f=f.firstChild;null!=f;f=f.nextSibling)null!=f&&1==f.nodeType&&0<g.push(f);return g};mxGraphMlCodec.prototype.getDirectFirstChildElement=function(f){for(f=f.firstChild;null!=f;f=f.nextSibling)if(null!=f&&1==f.nodeType)return f;return null};
|
|
|
|
|
var mxGraphMlConverters={"orgchartconverters.linebreakconverter":function(f,g){if("string"===typeof f){for(var p=f;20<p.length&&-1<p.indexOf(" ");)p=p.substring(0,p.lastIndexOf(" "));return"true"===g?p:f.substring(p.length)}return""},"orgchartconverters.borderconverter":function(f,g){return"boolean"===typeof f?f?"#FFBB33":"rgba(0,0,0,0)":"#FFF"},"orgchartconverters.addhashconverter":function(f,g){return"string"===typeof f?"string"===typeof g?"#"+f+g:"#"+f:f},"orgchartconverters.intermediateconverter":function(f,
|
|
|
|
|