mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
removed string concat to string builder
This commit is contained in:
parent
b98217e3c3
commit
6e9eeb78c6
@ -39,7 +39,7 @@ export const draw = (txt: string, id: string, _version: string, diagObj: Diagram
|
|||||||
// @ts-ignore: TODO Fix ts errors
|
// @ts-ignore: TODO Fix ts errors
|
||||||
configureSvgSize(svg, chartConfig.height, chartConfig.width, true);
|
configureSvgSize(svg, chartConfig.height, chartConfig.width, true);
|
||||||
|
|
||||||
svg.attr('viewBox', '0 0 ' + chartConfig.width + ' ' + chartConfig.height);
|
svg.attr('viewBox', `0 0 ${chartConfig.width} ${chartConfig.height}`);
|
||||||
|
|
||||||
background.attr('fill', themeConfig.backgroundColor);
|
background.attr('fill', themeConfig.backgroundColor);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user