mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-08 08:39:38 +02:00
#1290 Hide/style today marker in gantt diagram
This commit is contained in:
@@ -6,6 +6,7 @@ import { getConfig } from '../../config';
|
||||
const config = getConfig();
|
||||
let dateFormat = '';
|
||||
let axisFormat = '';
|
||||
let todayMarker = '';
|
||||
let excludes = [];
|
||||
let title = '';
|
||||
let sections = [];
|
||||
@@ -27,6 +28,7 @@ export const clear = function() {
|
||||
rawTasks = [];
|
||||
dateFormat = '';
|
||||
axisFormat = '';
|
||||
todayMarker = '';
|
||||
excludes = [];
|
||||
inclusiveEndDates = false;
|
||||
};
|
||||
@@ -39,6 +41,14 @@ export const getAxisFormat = function() {
|
||||
return axisFormat;
|
||||
};
|
||||
|
||||
export const setTodayMarker = function(txt) {
|
||||
todayMarker = txt;
|
||||
};
|
||||
|
||||
export const getTodayMarker = function() {
|
||||
return todayMarker;
|
||||
};
|
||||
|
||||
export const setDateFormat = function(txt) {
|
||||
dateFormat = txt;
|
||||
};
|
||||
@@ -572,6 +582,8 @@ export default {
|
||||
endDatesAreInclusive,
|
||||
setAxisFormat,
|
||||
getAxisFormat,
|
||||
setTodayMarker,
|
||||
getTodayMarker,
|
||||
setTitle,
|
||||
getTitle,
|
||||
addSection,
|
||||
|
Reference in New Issue
Block a user