292 lines
51 KiB
JavaScript
292 lines
51 KiB
JavaScript
|
|
import{D as e,M as t}from"./package-Bop5TfAT.js";import{a as n,n as r,r as i}from"./chunk-AGHRB4JF-Fz9kp2Fp.js";import{H as a,K as o,U as s,a as c,c as l,s as u,v as d,w as f,x as p,y as m}from"./chunk-CSCIHK7Q-VDPd5eNJ.js";import{t as h}from"./linear-DAeDjlp3.js";import{D as g,E as _,M as v,S as y,_ as b,b as x,f as S,g as C,h as w,k as T,m as E,n as D,p as O,r as k,u as A,v as j,w as M}from"./time-B8nkukJS.js";import{K as N,Q as ee,U as te,W as P,X as F,Y as ne,Z as I,q as L}from"./src-BrOGWJpF.js";import{g as re}from"./chunk-5ZQYHXKU-D-OgLpMs.js";import{t as ie}from"./dist-idVqPIzq.js";function ae(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function oe(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var se=Math.PI/180,ce=180/Math.PI,R=18,le=.96422,ue=1,de=.82521,fe=4/29,z=6/29,pe=3*z*z,me=z*z*z;function he(e){if(e instanceof B)return new B(e.l,e.a,e.b,e.opacity);if(e instanceof V)return Ce(e);e instanceof L||(e=ne(e));var t=be(e.r),n=be(e.g),r=be(e.b),i=_e((.2225045*t+.7168786*n+.0606169*r)/ue),a,o;return t===n&&n===r?a=o=i:(a=_e((.4360747*t+.3850649*n+.1430804*r)/le),o=_e((.0139322*t+.0971045*n+.7141733*r)/de)),new B(116*i-16,500*(a-i),200*(i-o),e.opacity)}function ge(e,t,n,r){return arguments.length===1?he(e):new B(e,t,n,r??1)}function B(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}F(B,ge,I(N,{brighter(e){return new B(this.l+R*(e??1),this.a,this.b,this.opacity)},darker(e){return new B(this.l-R*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=le*ve(t),e=ue*ve(e),n=de*ve(n),new L(ye(3.1338561*t-1.6168667*e-.4906146*n),ye(-.9787684*t+1.9161415*e+.033454*n),ye(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function _e(e){return e>me?e**(1/3):e/pe+fe}function ve(e){return e>z?e*e*e:pe*(e-fe)}function ye(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function be(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function xe(e){if(e instanceof V)return new V(e.h,e.c,e.l,e.opacity);if(e instanceof B||(e=he(e)),e.a===0&&e.b===0)return new V(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ce;return new V(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Se(e,t,n,r){return arguments.length===1?xe(e):new V(e,t,n,r??1)}function V(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ce(e){if(isNaN(e.h))return new B(e.l,0,0,e.opacity);var t=e.h*se;return new B(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}F(V,Se,I(N,{brighter(e){return new V(this.h,this.c,this.l+R*(e??1),this.opacity)},darker(e){return new V(this.h,this.c,this.l-R*(e??1),this.opacity)},rgb(){return Ce(this).rgb()}}));function we(e){return function(t,n){var r=e((t=Se(t)).h,(n=Se(n)).h),i=P(t.c,n.c),a=P(t.l,n.l),o=P(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}var Te=we(te),Ee=e(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){var e=`day`;return function(t,n,r){var i=function(t){return t.add(4-t.isoWeekday(),e)},a=n.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,a,o,s,c=i(this),l=(n=this.isoWeekYear(),a=this.$u,o=(a?r.utc:r)().year(n).startOf(`year`),s=4-o.isoWeekday(),o.isoWeekday()>4&&(s+=7),o.add(s,e));return c.diff(l,`week`)+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=a.startOf;a.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):o.bind(this)(e,t
|
||
|
|
`+h.showPosition()+`
|
||
|
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),a.push(h.yytext),o.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};D.lexer=(function(){return{EOF:1,parseError:r(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:r(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:r(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:r(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:r(function(){return this._more=!0,this},`more`),reject:r(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:r(function(e){this.unput(this.match.slice(e))},`less`),pastInput:r(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:r(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:r(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
||
|
|
`+t+`^`},`showPosition`),test_match:r(function(e,t){var n,r,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))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:r(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):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:r(function(){return this.next()||this.lex()},`lex`),begin:r(function(e){this.conditionStack.push(e)},`begin`),popState:r(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:r(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:r(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:r(function(e){this.begin(e)},`pushState`),stateStackSize:r(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:r(function(e,t,n,r){switch(n){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}}}})();function O(){this.yy={}}return r(O,`Parser`),O.prototype=D,D.Parser=O,new O})();Fe.parser=Fe;var Ie=Fe;H.default.extend(je.default),H.default.extend(Me.default),H.default.extend(Ne.default);var Le={friday:5,saturday:6},U=``,Re=``,ze=void 0,Be=``,W=[],G=[],Ve=new Map,He=[],K=[],q=``,Ue=``,We=[`active`,`done`,`crit`,`milestone`,`vert`],Ge
|
||
|
|
.mermaid-main-font {
|
||
|
|
font-family: ${e.fontFamily};
|
||
|
|
}
|
||
|
|
|
||
|
|
.exclude-range {
|
||
|
|
fill: ${e.excludeBkgColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.section {
|
||
|
|
stroke: none;
|
||
|
|
opacity: 0.2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section0 {
|
||
|
|
fill: ${e.sectionBkgColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.section2 {
|
||
|
|
fill: ${e.sectionBkgColor2};
|
||
|
|
}
|
||
|
|
|
||
|
|
.section1,
|
||
|
|
.section3 {
|
||
|
|
fill: ${e.altSectionBkgColor};
|
||
|
|
opacity: 0.2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sectionTitle0 {
|
||
|
|
fill: ${e.titleColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.sectionTitle1 {
|
||
|
|
fill: ${e.titleColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.sectionTitle2 {
|
||
|
|
fill: ${e.titleColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.sectionTitle3 {
|
||
|
|
fill: ${e.titleColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.sectionTitle {
|
||
|
|
text-anchor: start;
|
||
|
|
font-family: ${e.fontFamily};
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Grid and axis */
|
||
|
|
|
||
|
|
.grid .tick {
|
||
|
|
stroke: ${e.gridColor};
|
||
|
|
opacity: 0.8;
|
||
|
|
shape-rendering: crispEdges;
|
||
|
|
}
|
||
|
|
|
||
|
|
.grid .tick text {
|
||
|
|
font-family: ${e.fontFamily};
|
||
|
|
fill: ${e.textColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.grid path {
|
||
|
|
stroke-width: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Today line */
|
||
|
|
|
||
|
|
.today {
|
||
|
|
fill: none;
|
||
|
|
stroke: ${e.todayLineColor};
|
||
|
|
stroke-width: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Task styling */
|
||
|
|
|
||
|
|
/* Default task */
|
||
|
|
|
||
|
|
.task {
|
||
|
|
stroke-width: 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskText {
|
||
|
|
text-anchor: middle;
|
||
|
|
font-family: ${e.fontFamily};
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskTextOutsideRight {
|
||
|
|
fill: ${e.taskTextDarkColor};
|
||
|
|
text-anchor: start;
|
||
|
|
font-family: ${e.fontFamily};
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskTextOutsideLeft {
|
||
|
|
fill: ${e.taskTextDarkColor};
|
||
|
|
text-anchor: end;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Special case clickable */
|
||
|
|
|
||
|
|
.task.clickable {
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskText.clickable {
|
||
|
|
cursor: pointer;
|
||
|
|
fill: ${e.taskTextClickableColor} !important;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskTextOutsideLeft.clickable {
|
||
|
|
cursor: pointer;
|
||
|
|
fill: ${e.taskTextClickableColor} !important;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskTextOutsideRight.clickable {
|
||
|
|
cursor: pointer;
|
||
|
|
fill: ${e.taskTextClickableColor} !important;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Specific task settings for the sections*/
|
||
|
|
|
||
|
|
.taskText0,
|
||
|
|
.taskText1,
|
||
|
|
.taskText2,
|
||
|
|
.taskText3 {
|
||
|
|
fill: ${e.taskTextColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.task0,
|
||
|
|
.task1,
|
||
|
|
.task2,
|
||
|
|
.task3 {
|
||
|
|
fill: ${e.taskBkgColor};
|
||
|
|
stroke: ${e.taskBorderColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskTextOutside0,
|
||
|
|
.taskTextOutside2
|
||
|
|
{
|
||
|
|
fill: ${e.taskTextOutsideColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.taskTextOutside1,
|
||
|
|
.taskTextOutside3 {
|
||
|
|
fill: ${e.taskTextOutsideColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Active task */
|
||
|
|
|
||
|
|
.active0,
|
||
|
|
.active1,
|
||
|
|
.active2,
|
||
|
|
.active3 {
|
||
|
|
fill: ${e.activeTaskBkgColor};
|
||
|
|
stroke: ${e.activeTaskBorderColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.activeText0,
|
||
|
|
.activeText1,
|
||
|
|
.activeText2,
|
||
|
|
.activeText3 {
|
||
|
|
fill: ${e.taskTextDarkColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Completed task */
|
||
|
|
|
||
|
|
.done0,
|
||
|
|
.done1,
|
||
|
|
.done2,
|
||
|
|
.done3 {
|
||
|
|
stroke: ${e.doneTaskBorderColor};
|
||
|
|
fill: ${e.doneTaskBkgColor};
|
||
|
|
stroke-width: 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.doneText0,
|
||
|
|
.doneText1,
|
||
|
|
.doneText2,
|
||
|
|
.doneText3 {
|
||
|
|
fill: ${e.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: ${e.taskTextOutsideColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/* Tasks on the critical line */
|
||
|
|
|
||
|
|
.crit0,
|
||
|
|
.crit1,
|
||
|
|
.crit2,
|
||
|
|
.crit3 {
|
||
|
|
stroke: ${e.critBorderColor};
|
||
|
|
fill: ${e.critBkgColor};
|
||
|
|
stroke-width: 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activeCrit0,
|
||
|
|
.activeCrit1,
|
||
|
|
.activeCrit2,
|
||
|
|
.activeCrit3 {
|
||
|
|
stroke: ${e.critBorderColor};
|
||
|
|
fill: ${e.activeTaskBkgColor};
|
||
|
|
stroke-width: 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.doneCrit0,
|
||
|
|
.doneCrit1,
|
||
|
|
.doneCrit2,
|
||
|
|
.doneCrit3 {
|
||
|
|
stroke: ${e.critBorderColor};
|
||
|
|
fill: ${e.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: ${e.taskTextDarkColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
|
||
|
|
.doneCritText0.taskTextOutsideLeft,
|
||
|
|
.doneCritText0.taskTextOutsideRight,
|
||
|
|
.doneCritText1.taskTextOutsideLeft,
|
||
|
|
.doneCritText1.taskTextOutsideRight,
|
||
|
|
.doneCritText2.taskTextOutsideLeft,
|
||
|
|
.doneCritText2.taskTextOutsideRight,
|
||
|
|
.doneCritText3.taskTextOutsideLeft,
|
||
|
|
.doneCritText3.taskTextOutsideRight {
|
||
|
|
fill: ${e.taskTextOutsideColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.vert {
|
||
|
|
stroke: ${e.vertLineColor};
|
||
|
|
}
|
||
|
|
|
||
|
|
.vertText {
|
||
|
|
font-size: 15px;
|
||
|
|
text-anchor: middle;
|
||
|
|
fill: ${e.vertLineColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.activeCritText0,
|
||
|
|
.activeCritText1,
|
||
|
|
.activeCritText2,
|
||
|
|
.activeCritText3 {
|
||
|
|
fill: ${e.taskTextDarkColor} !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.titleText {
|
||
|
|
text-anchor: middle;
|
||
|
|
font-size: 18px;
|
||
|
|
fill: ${e.titleColor||e.textColor};
|
||
|
|
font-family: ${e.fontFamily};
|
||
|
|
}
|
||
|
|
`,`getStyles`)};export{Jt as diagram};
|