You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
202 lines
25 KiB
JavaScript
202 lines
25 KiB
JavaScript
|
9 months ago
|
"use strict";exports.id=708,exports.ids=[708],exports.modules={91708:(t,e,s)=>{s.d(e,{D:()=>c,S:()=>l,a:()=>h,b:()=>a,c:()=>o,d:()=>B,p:()=>n,s:()=>w});var i=s(15537),r=function(){var t=function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},e=[1,2],s=[1,3],i=[1,4],r=[2,4],n=[1,9],o=[1,11],a=[1,15],l=[1,16],c=[1,17],h=[1,18],u=[1,30],d=[1,19],p=[1,20],y=[1,21],f=[1,22],m=[1,23],g=[1,25],S=[1,26],_=[1,27],T=[1,28],k=[1,29],b=[1,32],E=[1,33],x=[1,34],$=[1,35],C=[1,31],D=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],v=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],A=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],L={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(t,e,s,i,r,n,o){var a=n.length-1;switch(r){case 3:return i.setRootDoc(n[a]),n[a];case 4:this.$=[];break;case 5:"nl"!=n[a]&&(n[a-1].push(n[a]),this.$=n[a-1]);break;case 6:case 7:case 11:this.$=n[a];break;case 8:this.$="nl";break;case 12:let l=n[a-1];l.description=i.trimColon(n[a]),this.$=l;break;case 13:this.$={stmt:"relation",state1:n[a-2],state2:n[a]};break;case 14:let c=i.trimColon(n[a]);this.$={stmt:"relation",state1:n[a-3],state2:n[a-1],description:c};break;case 18:this.$={stmt:"state",id:n[a-3],type:"default",description:"",doc:n[a-1]};break;case 19:var h=n[a],u=n[a-2].trim();if(n[a].match(":")){var d=n[a].split(":");h=d[0],u=[u,d[1]]}this.$={stmt:"state",id:h,type:"default",description:u};break;case 20:this.$={stmt:"state",id:n[a-3],type:"default",description:n[a-5],doc:n[a-1]};break;case 21:this.$={stmt:"state",id:n[a],type:"fork"};break;case 22:this.$={stmt:"state",id:n[a],type:"join"};break;case 23:this.$={stmt:"state",id:n[a],type:"choice"};break;case 24:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:n[a-1].trim(),note:{position:n[a-2].trim(),text:n[a].trim()}};break;case 28:this.$=n[a].trim(),i.setAccTitle(this.$);break;case 29:case 30:this.$=n[a].trim(),i.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:n[a-1].trim(),classes:n[a].trim()};break;case 33:this.$={stmt:"applyClass",id:n[a-1].trim(),styleClass:n[a].trim()};break;case 34:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$
|
||
|
|
defs #statediagram-barbEnd {
|
||
|
|
fill: ${t.transitionColor};
|
||
|
|
stroke: ${t.transitionColor};
|
||
|
|
}
|
||
|
|
g.stateGroup text {
|
||
|
|
fill: ${t.nodeBorder};
|
||
|
|
stroke: none;
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
g.stateGroup text {
|
||
|
|
fill: ${t.textColor};
|
||
|
|
stroke: none;
|
||
|
|
font-size: 10px;
|
||
|
|
|
||
|
|
}
|
||
|
|
g.stateGroup .state-title {
|
||
|
|
font-weight: bolder;
|
||
|
|
fill: ${t.stateLabelColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
g.stateGroup rect {
|
||
|
|
fill: ${t.mainBkg};
|
||
|
|
stroke: ${t.nodeBorder};
|
||
|
|
}
|
||
|
|
|
||
|
|
g.stateGroup line {
|
||
|
|
stroke: ${t.lineColor};
|
||
|
|
stroke-width: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.transition {
|
||
|
|
stroke: ${t.transitionColor};
|
||
|
|
stroke-width: 1;
|
||
|
|
fill: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stateGroup .composit {
|
||
|
|
fill: ${t.background};
|
||
|
|
border-bottom: 1px
|
||
|
|
}
|
||
|
|
|
||
|
|
.stateGroup .alt-composit {
|
||
|
|
fill: #e0e0e0;
|
||
|
|
border-bottom: 1px
|
||
|
|
}
|
||
|
|
|
||
|
|
.state-note {
|
||
|
|
stroke: ${t.noteBorderColor};
|
||
|
|
fill: ${t.noteBkgColor};
|
||
|
|
|
||
|
|
text {
|
||
|
|
fill: ${t.noteTextColor};
|
||
|
|
stroke: none;
|
||
|
|
font-size: 10px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.stateLabel .box {
|
||
|
|
stroke: none;
|
||
|
|
stroke-width: 0;
|
||
|
|
fill: ${t.mainBkg};
|
||
|
|
opacity: 0.5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.edgeLabel .label rect {
|
||
|
|
fill: ${t.labelBackgroundColor};
|
||
|
|
opacity: 0.5;
|
||
|
|
}
|
||
|
|
.edgeLabel .label text {
|
||
|
|
fill: ${t.transitionLabelColor||t.tertiaryTextColor};
|
||
|
|
}
|
||
|
|
.label div .edgeLabel {
|
||
|
|
color: ${t.transitionLabelColor||t.tertiaryTextColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.stateLabel text {
|
||
|
|
fill: ${t.stateLabelColor};
|
||
|
|
font-size: 10px;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
.node circle.state-start {
|
||
|
|
fill: ${t.specialStateColor};
|
||
|
|
stroke: ${t.specialStateColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.node .fork-join {
|
||
|
|
fill: ${t.specialStateColor};
|
||
|
|
stroke: ${t.specialStateColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.node circle.state-end {
|
||
|
|
fill: ${t.innerEndBackground};
|
||
|
|
stroke: ${t.background};
|
||
|
|
stroke-width: 1.5
|
||
|
|
}
|
||
|
|
.end-state-inner {
|
||
|
|
fill: ${t.compositeBackground||t.background};
|
||
|
|
// stroke: ${t.background};
|
||
|
|
stroke-width: 1.5
|
||
|
|
}
|
||
|
|
|
||
|
|
.node rect {
|
||
|
|
fill: ${t.stateBkg||t.mainBkg};
|
||
|
|
stroke: ${t.stateBorder||t.nodeBorder};
|
||
|
|
stroke-width: 1px;
|
||
|
|
}
|
||
|
|
.node polygon {
|
||
|
|
fill: ${t.mainBkg};
|
||
|
|
stroke: ${t.stateBorder||t.nodeBorder};;
|
||
|
|
stroke-width: 1px;
|
||
|
|
}
|
||
|
|
#statediagram-barbEnd {
|
||
|
|
fill: ${t.lineColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.statediagram-cluster rect {
|
||
|
|
fill: ${t.compositeTitleBackground};
|
||
|
|
stroke: ${t.stateBorder||t.nodeBorder};
|
||
|
|
stroke-width: 1px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.cluster-label, .nodeLabel {
|
||
|
|
color: ${t.stateLabelColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.statediagram-cluster rect.outer {
|
||
|
|
rx: 5px;
|
||
|
|
ry: 5px;
|
||
|
|
}
|
||
|
|
.statediagram-state .divider {
|
||
|
|
stroke: ${t.stateBorder||t.nodeBorder};
|
||
|
|
}
|
||
|
|
|
||
|
|
.statediagram-state .title-state {
|
||
|
|
rx: 5px;
|
||
|
|
ry: 5px;
|
||
|
|
}
|
||
|
|
.statediagram-cluster.statediagram-cluster .inner {
|
||
|
|
fill: ${t.compositeBackground||t.background};
|
||
|
|
}
|
||
|
|
.statediagram-cluster.statediagram-cluster-alt .inner {
|
||
|
|
fill: ${t.altBackground?t.altBackground:"#efefef"};
|
||
|
|
}
|
||
|
|
|
||
|
|
.statediagram-cluster .inner {
|
||
|
|
rx:0;
|
||
|
|
ry:0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.statediagram-state rect.basic {
|
||
|
|
rx: 5px;
|
||
|
|
ry: 5px;
|
||
|
|
}
|
||
|
|
.statediagram-state rect.divider {
|
||
|
|
stroke-dasharray: 10,10;
|
||
|
|
fill: ${t.altBackground?t.altBackground:"#efefef"};
|
||
|
|
}
|
||
|
|
|
||
|
|
.note-edge {
|
||
|
|
stroke-dasharray: 5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.statediagram-note rect {
|
||
|
|
fill: ${t.noteBkgColor};
|
||
|
|
stroke: ${t.noteBorderColor};
|
||
|
|
stroke-width: 1px;
|
||
|
|
rx: 0;
|
||
|
|
ry: 0;
|
||
|
|
}
|
||
|
|
.statediagram-note rect {
|
||
|
|
fill: ${t.noteBkgColor};
|
||
|
|
stroke: ${t.noteBorderColor};
|
||
|
|
stroke-width: 1px;
|
||
|
|
rx: 0;
|
||
|
|
ry: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.statediagram-note text {
|
||
|
|
fill: ${t.noteTextColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.statediagram-note .nodeLabel {
|
||
|
|
color: ${t.noteTextColor};
|
||
|
|
}
|
||
|
|
.statediagram .edgeLabel {
|
||
|
|
color: red; // ${t.noteTextColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
#dependencyStart, #dependencyEnd {
|
||
|
|
fill: ${t.lineColor};
|
||
|
|
stroke: ${t.lineColor};
|
||
|
|
stroke-width: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.statediagramTitleText {
|
||
|
|
text-anchor: middle;
|
||
|
|
font-size: 18px;
|
||
|
|
fill: ${t.textColor};
|
||
|
|
}
|
||
|
|
`}};
|