#2732 Regression fixes for accessibility

This commit is contained in:
Knut Sveidqvist
2022-05-06 19:42:40 +02:00
parent da548f1970
commit 65143a0182
12 changed files with 82 additions and 30 deletions

View File

@@ -52,6 +52,15 @@ const clear = function () {
commonClear();
};
export const setPieTitle = function (txt) {
let sanitizedText = common.sanitizeText(txt, configApi.getConfig());
title = sanitizedText;
};
export const getPieTitle = function () {
return title;
};
export default {
parseDirective,
getConfig: () => configApi.getConfig().pie,
@@ -61,6 +70,8 @@ export default {
clear,
setTitle,
getTitle,
setPieTitle,
getPieTitle,
setShowData,
getShowData,
getAccDescription,