mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-22 00:05:37 +08:00
293 lines
68 KiB
JavaScript
293 lines
68 KiB
JavaScript
|
|
import{bh as on,bi as On,bj as cn,bk as un,bl as ln,bm as ue,bn as Hn,b7 as oe,_ as d,g as Nn,s as Pn,p as Vn,o as Rn,a as zn,b as qn,c as Yt,d as Zt,e as Bn,bo as it,l as Tt,k as Zn,j as Xn,q as Gn,y as jn}from"./mermaid.core.TSSz6aZW.js";import{b as Qn,t as Ne,c as Jn,a as Kn,l as tr}from"./linear.C-E3dEV8.js";import{i as er}from"./init.Gi6I4Gst.js";import"./framework.C2AwuPrQ.js";import"./defaultLocale.DX6XiGOO.js";function nr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function rr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ir(t){return t}var Gt=1,le=2,xe=3,Xt=4,Pe=1e-6;function sr(t){return"translate("+t+",0)"}function ar(t){return"translate(0,"+t+")"}function or(t){return e=>+t(e)}function cr(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function ur(){return!this.__axis}function fn(t,e){var n=[],r=null,i=null,s=6,a=6,y=3,F=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===Gt||t===Xt?-1:1,w=t===Xt||t===le?"x":"y",P=t===Gt||t===xe?sr:ar;function _(Y){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),B=i??(e.tickFormat?e.tickFormat.apply(e,n):ir),v=Math.max(s,0)+y,U=e.range(),R=+U[0]+F,E=+U[U.length-1]+F,z=(e.bandwidth?cr:or)(e.copy(),F),G=Y.selection?Y.selection():Y,T=G.selectAll(".domain").data([null]),k=G.selectAll(".tick").data(X,e).order(),p=k.exit(),L=k.enter().append("g").attr("class","tick"),x=k.select("line"),C=k.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(L),x=x.merge(L.append("line").attr("stroke","currentColor").attr(w+"2",S*s)),C=C.merge(L.append("text").attr("fill","currentColor").attr(w,S*v).attr("dy",t===Gt?"0em":t===xe?"0.71em":"0.32em")),Y!==G&&(T=T.transition(Y),k=k.transition(Y),x=x.transition(Y),C=C.transition(Y),p=p.transition(Y).attr("opacity",Pe).attr("transform",function(M){return isFinite(M=z(M))?P(M+F):this.getAttribute("transform")}),L.attr("opacity",Pe).attr("transform",function(M){var D=this.parentNode.__axis;return P((D&&isFinite(D=D(M))?D:z(M))+F)})),p.remove(),T.attr("d",t===Xt||t===le?a?"M"+S*a+","+R+"H"+F+"V"+E+"H"+S*a:"M"+F+","+R+"V"+E:a?"M"+R+","+S*a+"V"+F+"H"+E+"V"+S*a:"M"+R+","+F+"H"+E),k.attr("opacity",1).attr("transform",function(M){return P(z(M)+F)}),x.attr(w+"2",S*s),C.attr(w,S*v).text(B),G.filter(ur).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===le?"start":t===Xt?"end":"middle"),G.each(function(){this.__axis=z})}return _.scale=function(Y){return arguments.length?(e=Y,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),_):n.slice()},_.tickValues=function(Y){return arguments.length?(r=Y==null?null:Array.from(Y),_):r&&r.slice()},_.tickFormat=function(Y){return arguments.length?(i=Y,_):i},_.tickSize=function(Y){return arguments.length?(s=a=+Y,_):s},_.tickSizeInner=function(Y){return arguments.length?(s=+Y,_):s},_.tickSizeOuter=function(Y){return arguments.length?(a=+Y,_):a},_.tickPadding=function(Y){return arguments.length?(y=+Y,_):y},_.offset=function(Y){return arguments.length?(F=+Y,_):F},_}function lr(t){return fn(Gt,t)}function fr(t){return fn(xe,t)}const dr=Math.PI/180,hr=180/Math.PI,ne=18,dn=.96422,hn=1,mn=.82521,gn=4/29,Ft=6/29,yn=3*Ft*Ft,mr=Ft*Ft*Ft;function kn(t){if(t instanceof ft)return new ft(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return pn(t);t instanceof on||(t=On(t));var e=me(t.r),n=me(t.g),r=me(t.b),i=fe((.2225045*e+.7168786*n+.0606169*r)/hn),s,a;return e===n&&n===r?s=a=i:(s=fe((.4360747*e+.3850649*n+.1430804*r)/dn),a=fe((.0139322*e+.0971045*n+.7141733*r)/mn)),new ft(116*i-16,500*(s-i),200*(i-a),t.opacity)}function gr(t,e,n,r){return arguments.length===1?kn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity
|
||
|
|
`+H.showPosition()+`
|
||
|
|
Expecting `+Bt.join(", ")+", got '"+(this.terminals_[A]||A)+"'":ce="Parse error on line "+(K+1)+": Unexpected "+(A==O?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(ce,{text:H.match,token:this.terminals_[A]||A,line:H.yylineno,loc:N,expected:Bt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+A);switch(Z[0]){case 1:b.push(A),I.push(H.yytext),o.push(H.yylloc),b.push(Z[1]),A=null,l=H.yyleng,u=H.yytext,K=H.yylineno,N=H.yylloc;break;case 2:if(ut=this.productions_[Z[1]][1],at.$=I[I.length-ut],at._$={first_line:o[o.length-(ut||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(ut||1)].first_column,last_column:o[o.length-1].last_column},V&&(at._$.range=[o[o.length-(ut||1)].range[0],o[o.length-1].range[1]]),st=this.performAction.apply(at,[u,l,K,J.yy,Z[1],I,o].concat(j)),typeof st<"u")return st;ut&&(b=b.slice(0,-1*ut*2),I=I.slice(0,-1*ut),o=o.slice(0,-1*ut)),b.push(this.productions_[Z[1]][0]),I.push(at.$),o.push(at._$),He=W[b[b.length-2]][b[b.length-1]],b.push(He);break;case 3:return!0}}return!0},"parse")},C=(function(){var D={EOF:1,parseError:d(function(g,b){if(this.yy.parser)this.yy.parser.parseError(g,b);else throw new Error(g)},"parseError"),setInput:d(function(c,g){return this.yy=g||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var g=c.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:d(function(c){var g=c.length,b=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var m=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var I=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===m.length?this.yylloc.first_column:0)+m[m.length-b.length].length-b[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[I[0],I[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(c){this.unput(this.match.slice(c))},"less"),pastInput:d(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var c=this.pastInput(),g=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
|
||
|
|
`+g+"^"},"showPosition"),test_match:d(function(c,g){var b,m,I;if(this.options.backtrack_lexer&&(I={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(I.yylloc.range=this.yylloc.range.slice(0))),m=c[0].match(/(?:\r\n?|\n).*/g),m&&(this.yylineno+=m.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:m?m[m.length-1].length-m[m.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],b=this.performAction.call(this,this.yy,this,g,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var o in I)this[o]=I[o];return!1}return!1},"test_match"),next:d(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,g,b,m;this._more||(this.yytext="",this.match="");for(var I=this._currentRules(),o=0;o<I.length;o++)if(b=this._input.match(this.rules[I[o]]),b&&(!g||b[0].length>g[0].length)){if(g=b,m=o,this.options.backtrack_lexer){if(c=this.test_match(b,I[o]),c!==!1)return c;if(this._backtrack){g=!1;continue}else return!1}else if(!this.options.flex)break}return g?(c=this.test_match(g,I[m]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:d(function(){var g=this.next();return g||this.lex()},"lex"),begin:d(function(g){this.conditionStack.push(g)},"begin"),popState:d(function(){var g=this.conditionStack.length-1;return g>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:d(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:d(function(g){return g=this.conditionStack.length-1-Math.abs(g||0),g>=0?this.conditionStack[g]:"INITIAL"},"topState"),pushState:d(function(g){this.begin(g)},"pushState"),stateStackSize:d(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:d(function(g,b,m,I){switch(m){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return D})();x.lexer=C;function M(){this.yy={}}return d(M,"Parser"),M.prototype=x,x.Parser=M,new M})();we.parser=we;var Qi=we;it.extend(Oi);it.extend(Vi);it.extend(Bi);var rn={friday:5,saturday:6},lt="",Ye="",Fe=void 0,Ue="",Lt=[],At=[],Ee=new Map,Ie=[],se=[],Wt="",Le="",Yn=["active","done","crit","milestone","vert"],Ae=[],_
|
||
|
|
.mermaid-main-font {
|
||
|
|
font-family: ${t.fontFamily};
|
||
|
|
}
|
||
|
|
|
||
|
|
.exclude-range {
|
||
|
|
fill: ${t.excludeBkgColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.section {
|
||
|
|
stroke: none;
|
||
|
|
opacity: 0.2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section0 {
|
||
|
|
fill: ${t.sectionBkgColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.section2 {
|
||
|
|
fill: ${t.sectionBkgColor2};
|
||
|
|
}
|
||
|
|
|
||
|
|
.section1,
|
||
|
|
.section3 {
|
||
|
|
fill: ${t.altSectionBkgColor};
|
||
|
|
opacity: 0.2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sectionTitle0 {
|
||
|
|
fill: ${t.titleColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.sectionTitle1 {
|
||
|
|
fill: ${t.titleColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.sectionTitle2 {
|
||
|
|
fill: ${t.titleColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.sectionTitle3 {
|
||
|
|
fill: ${t.titleColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.sectionTitle {
|
||
|
|
text-anchor: start;
|
||
|
|
font-family: ${t.fontFamily};
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Grid and axis */
|
||
|
|
|
||
|
|
.grid .tick {
|
||
|
|
stroke: ${t.gridColor};
|
||
|
|
opacity: 0.8;
|
||
|
|
shape-rendering: crispEdges;
|
||
|
|
}
|
||
|
|
|
||
|
|
.grid .tick text {
|
||
|
|
font-family: ${t.fontFamily};
|
||
|
|
fill: ${t.textColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.grid path {
|
||
|
|
stroke-width: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Today line */
|
||
|
|
|
||
|
|
.today {
|
||
|
|
fill: none;
|
||
|
|
stroke: ${t.todayLineColor};
|
||
|
|
stroke-width: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Task styling */
|
||
|
|
|
||
|
|
/* Default task */
|
||
|
|
|
||
|
|
.task {
|
||
|
|
stroke-width: 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskText {
|
||
|
|
text-anchor: middle;
|
||
|
|
font-family: ${t.fontFamily};
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskTextOutsideRight {
|
||
|
|
fill: ${t.taskTextDarkColor};
|
||
|
|
text-anchor: start;
|
||
|
|
font-family: ${t.fontFamily};
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskTextOutsideLeft {
|
||
|
|
fill: ${t.taskTextDarkColor};
|
||
|
|
text-anchor: end;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Special case clickable */
|
||
|
|
|
||
|
|
.task.clickable {
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskText.clickable {
|
||
|
|
cursor: pointer;
|
||
|
|
fill: ${t.taskTextClickableColor} !important;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskTextOutsideLeft.clickable {
|
||
|
|
cursor: pointer;
|
||
|
|
fill: ${t.taskTextClickableColor} !important;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskTextOutsideRight.clickable {
|
||
|
|
cursor: pointer;
|
||
|
|
fill: ${t.taskTextClickableColor} !important;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Specific task settings for the sections*/
|
||
|
|
|
||
|
|
.taskText0,
|
||
|
|
.taskText1,
|
||
|
|
.taskText2,
|
||
|
|
.taskText3 {
|
||
|
|
fill: ${t.taskTextColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.task0,
|
||
|
|
.task1,
|
||
|
|
.task2,
|
||
|
|
.task3 {
|
||
|
|
fill: ${t.taskBkgColor};
|
||
|
|
stroke: ${t.taskBorderColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskTextOutside0,
|
||
|
|
.taskTextOutside2
|
||
|
|
{
|
||
|
|
fill: ${t.taskTextOutsideColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskTextOutside1,
|
||
|
|
.taskTextOutside3 {
|
||
|
|
fill: ${t.taskTextOutsideColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Active task */
|
||
|
|
|
||
|
|
.active0,
|
||
|
|
.active1,
|
||
|
|
.active2,
|
||
|
|
.active3 {
|
||
|
|
fill: ${t.activeTaskBkgColor};
|
||
|
|
stroke: ${t.activeTaskBorderColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.activeText0,
|
||
|
|
.activeText1,
|
||
|
|
.activeText2,
|
||
|
|
.activeText3 {
|
||
|
|
fill: ${t.taskTextDarkColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Completed task */
|
||
|
|
|
||
|
|
.done0,
|
||
|
|
.done1,
|
||
|
|
.done2,
|
||
|
|
.done3 {
|
||
|
|
stroke: ${t.doneTaskBorderColor};
|
||
|
|
fill: ${t.doneTaskBkgColor};
|
||
|
|
stroke-width: 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.doneText0,
|
||
|
|
.doneText1,
|
||
|
|
.doneText2,
|
||
|
|
.doneText3 {
|
||
|
|
fill: ${t.taskTextDarkColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Done task text displayed outside the bar sits against the diagram background,
|
||
|
|
not against the done-task bar, so it must use the outside/contrast color. */
|
||
|
|
.doneText0.taskTextOutsideLeft,
|
||
|
|
.doneText0.taskTextOutsideRight,
|
||
|
|
.doneText1.taskTextOutsideLeft,
|
||
|
|
.doneText1.taskTextOutsideRight,
|
||
|
|
.doneText2.taskTextOutsideLeft,
|
||
|
|
.doneText2.taskTextOutsideRight,
|
||
|
|
.doneText3.taskTextOutsideLeft,
|
||
|
|
.doneText3.taskTextOutsideRight {
|
||
|
|
fill: ${t.taskTextOutsideColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Tasks on the critical line */
|
||
|
|
|
||
|
|
.crit0,
|
||
|
|
.crit1,
|
||
|
|
.crit2,
|
||
|
|
.crit3 {
|
||
|
|
stroke: ${t.critBorderColor};
|
||
|
|
fill: ${t.critBkgColor};
|
||
|
|
stroke-width: 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activeCrit0,
|
||
|
|
.activeCrit1,
|
||
|
|
.activeCrit2,
|
||
|
|
.activeCrit3 {
|
||
|
|
stroke: ${t.critBorderColor};
|
||
|
|
fill: ${t.activeTaskBkgColor};
|
||
|
|
stroke-width: 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.doneCrit0,
|
||
|
|
.doneCrit1,
|
||
|
|
.doneCrit2,
|
||
|
|
.doneCrit3 {
|
||
|
|
stroke: ${t.critBorderColor};
|
||
|
|
fill: ${t.doneTaskBkgColor};
|
||
|
|
stroke-width: 2;
|
||
|
|
cursor: pointer;
|
||
|
|
shape-rendering: crispEdges;
|
||
|
|
}
|
||
|
|
|
||
|
|
.milestone {
|
||
|
|
transform: rotate(45deg) scale(0.8,0.8);
|
||
|
|
}
|
||
|
|
|
||
|
|
.milestoneText {
|
||
|
|
font-style: italic;
|
||
|
|
}
|
||
|
|
.doneCritText0,
|
||
|
|
.doneCritText1,
|
||
|
|
.doneCritText2,
|
||
|
|
.doneCritText3 {
|
||
|
|
fill: ${t.taskTextDarkColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Done-crit task text outside the bar — same reasoning as doneText above. */
|
||
|
|
.doneCritText0.taskTextOutsideLeft,
|
||
|
|
.doneCritText0.taskTextOutsideRight,
|
||
|
|
.doneCritText1.taskTextOutsideLeft,
|
||
|
|
.doneCritText1.taskTextOutsideRight,
|
||
|
|
.doneCritText2.taskTextOutsideLeft,
|
||
|
|
.doneCritText2.taskTextOutsideRight,
|
||
|
|
.doneCritText3.taskTextOutsideLeft,
|
||
|
|
.doneCritText3.taskTextOutsideRight {
|
||
|
|
fill: ${t.taskTextOutsideColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.vert {
|
||
|
|
stroke: ${t.vertLineColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.vertText {
|
||
|
|
font-size: 15px;
|
||
|
|
text-anchor: middle;
|
||
|
|
fill: ${t.vertLineColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activeCritText0,
|
||
|
|
.activeCritText1,
|
||
|
|
.activeCritText2,
|
||
|
|
.activeCritText3 {
|
||
|
|
fill: ${t.taskTextDarkColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.titleText {
|
||
|
|
text-anchor: middle;
|
||
|
|
font-size: 18px;
|
||
|
|
fill: ${t.titleColor||t.textColor};
|
||
|
|
font-family: ${t.fontFamily};
|
||
|
|
}
|
||
|
|
`,"getStyles"),Ns=Hs,Bs={parser:Qi,db:Ls,renderer:Os,styles:Ns};export{Bs as diagram};
|