#1542 Fix for markers in class diagrams
This commit is contained in:
parent
b6453383cf
commit
f7a6241ac0
|
@ -47,7 +47,7 @@ g.classGroup line {
|
|||
stroke-dasharray: 3;
|
||||
}
|
||||
|
||||
#compositionStart, #compositionEnd, #dependencyStart, #dependencyEnd, #extensionStart. #extensionEnd {
|
||||
#compositionStart, #compositionEnd, #dependencyStart, #dependencyEnd, #extensionStart, #extensionEnd {
|
||||
fill: ${options.nodeBorder};
|
||||
stroke: ${options.nodeBorder};
|
||||
stroke-width: 1;
|
||||
|
|
|
@ -536,11 +536,11 @@ function initialize(options) {
|
|||
// console.log(`mermaidAPI.initialize: v${pkg.version}`);
|
||||
// Set default options
|
||||
|
||||
if (options.theme && themes[options.theme]) {
|
||||
if (options && options.theme && themes[options.theme]) {
|
||||
// Todo merge with user options
|
||||
options.themeVariables = themes[options.theme];
|
||||
} else {
|
||||
options.themeVariables = themes.default;
|
||||
if (options) options.themeVariables = themes.default;
|
||||
}
|
||||
|
||||
const config = typeof options === 'object' ? setSiteConfig(options) : getSiteConfig();
|
||||
|
|
Loading…
Reference in New Issue