Merge pull request #3836 from mermaid-js/3835_handling_classes_to_paths

Fix for #3835, makes it possible to style path elements
This commit is contained in:
pbrolin47
2022-11-21 14:40:10 +01:00
committed by GitHub

View File

@@ -194,7 +194,7 @@ export const createCssStyles = (
const htmlLabels = config.htmlLabels || config.flowchart?.htmlLabels; // TODO why specifically check the Flowchart diagram config? const htmlLabels = config.htmlLabels || config.flowchart?.htmlLabels; // TODO why specifically check the Flowchart diagram config?
const cssHtmlElements = ['> *', 'span']; // TODO make a constant const cssHtmlElements = ['> *', 'span']; // TODO make a constant
const cssShapeElements = ['rect', 'polygon', 'ellipse', 'circle']; // TODO make a constant const cssShapeElements = ['rect', 'polygon', 'ellipse', 'circle', 'path']; // TODO make a constant
const cssElements = htmlLabels ? cssHtmlElements : cssShapeElements; const cssElements = htmlLabels ? cssHtmlElements : cssShapeElements;