All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webapp.stateDiagram-v2-1992cada.5fb9770b.js Maven / Gradle / Ivy

function e(e,t,s,i){Object.defineProperty(e,t,{get:s,set:i,enumerable:!0,configurable:!0})}var t=globalThis.parcelRequire3bab,s=t.register;s("i62GY",function(s,i){e(s.exports,"diagram",()=>L);var r=t("3ltxT"),a=t("4LkSm"),l=t("2YFJl"),o=t("4jcZX"),d=t("4FlE0");t("eJNXH"),t("gngdn"),t("2ujND"),t("i8Fxz"),t("hV1gR"),t("c0ySZ");let n="rect",c="rectWithTitle",p="statediagram",g=`${p}-state`,b="transition",u=`${b} note-edge`,h=`${p}-note`,y=`${p}-cluster`,f=`${p}-cluster-alt`,x="parent",m="note",w="----",$=`${w}${m}`,T=`${w}${x}`,S="fill:none",D="fill: #333",v="text",A="normal",k={},B=0;function N(e="",t=0,s="",i=w){let r=null!==s&&s.length>0?`${i}${s}`:"";return`state-${e}${r}-${t}`}let R=(e,t,s,i,a,l)=>{var d;let p=s.id,b=null==(d=i[p])?"":d.classes?d.classes.join(" "):"";if("root"!==p){let t=n;!0===s.start&&(t="start"),!1===s.start&&(t="end"),s.type!==r.D&&(t=s.type),k[p]||(k[p]={id:p,shape:t,description:(0,o.e).sanitizeText(p,(0,o.c)()),classes:`${b} ${g}`});let i=k[p];s.description&&(Array.isArray(i.description)?(i.shape=c,i.description.push(s.description)):i.description.length>0?(i.shape=c,i.description===p?i.description=[s.description]:i.description=[i.description,s.description]):(i.shape=n,i.description=s.description),i.description=(0,o.e).sanitizeTextOrArray(i.description,(0,o.c)())),1===i.description.length&&i.shape===c&&(i.shape=n),!i.type&&s.doc&&((0,o.l).info("Setting cluster for ",p,V(s)),i.type="group",i.dir=V(s),i.shape=s.type===r.a?"divider":"roundedWithTitle",i.classes=i.classes+" "+y+" "+(l?f:""));let a={labelStyle:"",shape:i.shape,labelText:i.description,classes:i.classes,style:"",id:p,dir:i.dir,domId:N(p,B),type:i.type,padding:15};if(a.centerLabel=!0,s.note){let t={labelStyle:"",shape:"note",labelText:s.note.text,classes:h,style:"",id:p+$+"-"+B,domId:N(p,B,m),type:i.type,padding:15},r={labelStyle:"",shape:"noteGroup",labelText:s.note.text,classes:i.classes,style:"",id:p+T,domId:N(p,B,x),type:"group",padding:0};B++;let l=p+T;e.setNode(l,r),e.setNode(t.id,t),e.setNode(p,a),e.setParent(p,l),e.setParent(t.id,l);let o=p,d=t.id;"left of"===s.note.position&&(o=t.id,d=p),e.setEdge(o,d,{arrowhead:"none",arrowType:"",style:S,labelStyle:"",classes:u,arrowheadStyle:D,labelpos:"c",labelType:v,thickness:A})}else e.setNode(p,a)}t&&"root"!==t.id&&((0,o.l).trace("Setting node ",p," to be child of its parent ",t.id),e.setParent(p,t.id)),s.doc&&((0,o.l).trace("Adding nodes children "),E(e,s,s.doc,i,a,!l))},E=(e,t,s,i,a,l)=>{(0,o.l).trace("items",s),s.forEach(s=>{switch(s.stmt){case r.b:case r.D:R(e,t,s,i,a,l);break;case r.S:{R(e,t,s.state1,i,a,l),R(e,t,s.state2,i,a,l);let r={id:"edge"+B,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:S,labelStyle:"",label:(0,o.e).sanitizeText(s.description,(0,o.c)()),arrowheadStyle:D,labelpos:"c",labelType:v,thickness:A,classes:b};e.setEdge(s.state1.id,s.state2.id,r,B),B++}}})},V=(e,t=r.c)=>{let s=t;if(e.doc)for(let t=0;t{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,(0,r.d).clear()}}}),s("hNIl0",function(s,i){e(s.exports,"default",()=>a);var r=t("gbpSA"),a=function(e){return(0,r.default)(e,4)}});
//# sourceMappingURL=stateDiagram-v2-1992cada.5fb9770b.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy