mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 15:30:03 +02:00
#1542 Fix for markers in class diagrams
This commit is contained in:
@@ -47,7 +47,7 @@ g.classGroup line {
|
|||||||
stroke-dasharray: 3;
|
stroke-dasharray: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
#compositionStart, #compositionEnd, #dependencyStart, #dependencyEnd, #extensionStart. #extensionEnd {
|
#compositionStart, #compositionEnd, #dependencyStart, #dependencyEnd, #extensionStart, #extensionEnd {
|
||||||
fill: ${options.nodeBorder};
|
fill: ${options.nodeBorder};
|
||||||
stroke: ${options.nodeBorder};
|
stroke: ${options.nodeBorder};
|
||||||
stroke-width: 1;
|
stroke-width: 1;
|
||||||
|
@@ -536,11 +536,11 @@ function initialize(options) {
|
|||||||
// console.log(`mermaidAPI.initialize: v${pkg.version}`);
|
// console.log(`mermaidAPI.initialize: v${pkg.version}`);
|
||||||
// Set default options
|
// Set default options
|
||||||
|
|
||||||
if (options.theme && themes[options.theme]) {
|
if (options && options.theme && themes[options.theme]) {
|
||||||
// Todo merge with user options
|
// Todo merge with user options
|
||||||
options.themeVariables = themes[options.theme];
|
options.themeVariables = themes[options.theme];
|
||||||
} else {
|
} else {
|
||||||
options.themeVariables = themes.default;
|
if (options) options.themeVariables = themes.default;
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = typeof options === 'object' ? setSiteConfig(options) : getSiteConfig();
|
const config = typeof options === 'object' ? setSiteConfig(options) : getSiteConfig();
|
||||||
|
Reference in New Issue
Block a user