mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-08 16:49:38 +02:00
feat(ganttDb.js): add getters for excludes,sections and date format
This commit is contained in:
@@ -39,10 +39,18 @@ export const setDateFormat = function (txt) {
|
|||||||
dateFormat = txt
|
dateFormat = txt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getDateFormat = function () {
|
||||||
|
return dateFormat
|
||||||
|
}
|
||||||
|
|
||||||
export const setExcludes = function (txt) {
|
export const setExcludes = function (txt) {
|
||||||
excludes = txt.toLowerCase().split(/[\s,]+/)
|
excludes = txt.toLowerCase().split(/[\s,]+/)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getExcludes = function () {
|
||||||
|
return excludes
|
||||||
|
}
|
||||||
|
|
||||||
export const setTitle = function (txt) {
|
export const setTitle = function (txt) {
|
||||||
title = txt
|
title = txt
|
||||||
}
|
}
|
||||||
@@ -56,6 +64,10 @@ export const addSection = function (txt) {
|
|||||||
sections.push(txt)
|
sections.push(txt)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getSections = function () {
|
||||||
|
return sections
|
||||||
|
}
|
||||||
|
|
||||||
export const getTasks = function () {
|
export const getTasks = function () {
|
||||||
let allItemsPricessed = compileTasks()
|
let allItemsPricessed = compileTasks()
|
||||||
const maxDepth = 10
|
const maxDepth = 10
|
||||||
@@ -498,16 +510,19 @@ export const bindFunctions = function (element) {
|
|||||||
export default {
|
export default {
|
||||||
clear,
|
clear,
|
||||||
setDateFormat,
|
setDateFormat,
|
||||||
|
getDateFormat,
|
||||||
setAxisFormat,
|
setAxisFormat,
|
||||||
getAxisFormat,
|
getAxisFormat,
|
||||||
setTitle,
|
setTitle,
|
||||||
getTitle,
|
getTitle,
|
||||||
addSection,
|
addSection,
|
||||||
|
getSections,
|
||||||
getTasks,
|
getTasks,
|
||||||
addTask,
|
addTask,
|
||||||
findTaskById,
|
findTaskById,
|
||||||
addTaskOrg,
|
addTaskOrg,
|
||||||
setExcludes,
|
setExcludes,
|
||||||
|
getExcludes,
|
||||||
setClickEvent,
|
setClickEvent,
|
||||||
setLink,
|
setLink,
|
||||||
bindFunctions
|
bindFunctions
|
||||||
|
Reference in New Issue
Block a user