mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-17 22:39:56 +02:00
#2043 Added PieChart theme variable support
This commit is contained in:
@@ -34,12 +34,12 @@ export const draw = (txt, id) => {
|
|||||||
width = 1200;
|
width = 1200;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof conf.useWidth !== 'undefined') {
|
if (typeof conf.pie.useWidth !== 'undefined') {
|
||||||
width = conf.useWidth;
|
width = conf.useWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
const diagram = select('#' + id);
|
const diagram = select('#' + id);
|
||||||
configureSvgSize(diagram, height, width, conf.useMaxWidth);
|
configureSvgSize(diagram, height, width, conf.pie.useMaxWidth);
|
||||||
|
|
||||||
// Set viewBox
|
// Set viewBox
|
||||||
elem.setAttribute('viewBox', '0 0 ' + width + ' ' + height);
|
elem.setAttribute('viewBox', '0 0 ' + width + ' ' + height);
|
||||||
|
Reference in New Issue
Block a user