mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
refactor(ganttDb): separate out the inclusive end date toggle
This commit is contained in:
@@ -37,9 +37,16 @@ export const getAxisFormat = function () {
|
|||||||
return axisFormat
|
return axisFormat
|
||||||
}
|
}
|
||||||
|
|
||||||
export const setDateFormat = function (txt, inclusive) {
|
export const setDateFormat = function (txt) {
|
||||||
dateFormat = txt
|
dateFormat = txt
|
||||||
inclusiveEndDates = inclusive || false // make sure it's not undefined
|
}
|
||||||
|
|
||||||
|
export const enableInclusiveEndDates = function () {
|
||||||
|
inclusiveEndDates = true
|
||||||
|
}
|
||||||
|
|
||||||
|
export const endDatesAreInclusive = function () {
|
||||||
|
return inclusiveEndDates
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getDateFormat = function () {
|
export const getDateFormat = function () {
|
||||||
@@ -518,6 +525,8 @@ export default {
|
|||||||
clear,
|
clear,
|
||||||
setDateFormat,
|
setDateFormat,
|
||||||
getDateFormat,
|
getDateFormat,
|
||||||
|
enableInclusiveEndDates,
|
||||||
|
endDatesAreInclusive,
|
||||||
setAxisFormat,
|
setAxisFormat,
|
||||||
getAxisFormat,
|
getAxisFormat,
|
||||||
setTitle,
|
setTitle,
|
||||||
|
Reference in New Issue
Block a user