mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-26 10:49:38 +02:00
#3074 Cleanup and fixes for issues with accessibility for gantt and journey diagrams
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import moment from 'moment-mini';
|
||||
import { log } from '../../logger';
|
||||
import {
|
||||
select,
|
||||
scaleTime,
|
||||
@@ -19,11 +20,9 @@ import addSVGAccessibilityFields from '../../accessibility';
|
||||
|
||||
parser.yy = ganttDb;
|
||||
export const setConf = function () {
|
||||
// const keys = Object.keys(cnf);
|
||||
// keys.forEach(function(key) {
|
||||
// conf[key] = cnf[key];
|
||||
// });
|
||||
log.debug('Something is calling, setConf, remove the call');
|
||||
};
|
||||
|
||||
let w;
|
||||
export const draw = function (text, id) {
|
||||
const conf = getConfig().gantt;
|
||||
@@ -110,7 +109,7 @@ export const draw = function (text, id) {
|
||||
|
||||
svg
|
||||
.append('text')
|
||||
.text(parser.yy.getTitle())
|
||||
.text(parser.yy.getAccTitle())
|
||||
.attr('x', w / 2)
|
||||
.attr('y', conf.titleTopMargin)
|
||||
.attr('class', 'titleText');
|
||||
|
Reference in New Issue
Block a user