#3074 Cleanup and fixes for issues with accessibility for gantt and journey diagrams

This commit is contained in:
Knut Sveidqvist
2022-05-24 18:20:05 +02:00
parent 56f79692a3
commit 2ab1e162ea
33 changed files with 154 additions and 81 deletions

View File

@@ -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');