#199 Handling path as well as rect when htmlLabels are off

This commit is contained in:
Knut Sveidqvist 2021-03-23 21:33:39 +01:00
parent 1ae074d05f
commit 4339fadd50
1 changed files with 3 additions and 0 deletions

View File

@ -307,6 +307,9 @@ const render = function(id, _txt, cb, container) {
)} !important; }`;
} else {
// console.log('classes[className].styles', classes[className].styles, cnf.htmlLabels);
userStyles += `\n.${className} path { ${classes[className].styles.join(
' !important; '
)} !important; }`;
userStyles += `\n.${className} rect { ${classes[className].styles.join(
' !important; '
)} !important; }`;