From 87c561615eda197263ec6a0e6a9e19e356ada42c Mon Sep 17 00:00:00 2001 From: omkarht Date: Thu, 27 Nov 2025 13:28:21 +0530 Subject: [PATCH] fix: extend dayjs with duration plugin for improved time calculations on-behalf-of: @Mermaid-Chart --- packages/mermaid/src/diagrams/gantt/ganttRenderer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/mermaid/src/diagrams/gantt/ganttRenderer.js b/packages/mermaid/src/diagrams/gantt/ganttRenderer.js index da672da34..6320c4ce4 100644 --- a/packages/mermaid/src/diagrams/gantt/ganttRenderer.js +++ b/packages/mermaid/src/diagrams/gantt/ganttRenderer.js @@ -1,4 +1,5 @@ import dayjs from 'dayjs'; +import dayjsDuration from 'dayjs/plugin/duration.js'; import { log } from '../../logger.js'; import { select, @@ -28,6 +29,8 @@ import common from '../common/common.js'; import { getConfig } from '../../diagram-api/diagramAPI.js'; import { configureSvgSize } from '../../setupGraphViewbox.js'; +dayjs.extend(dayjsDuration); + export const setConf = function () { log.debug('Something is calling, setConf, remove the call'); };