mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-04 08:06:43 +02:00
Merge pull request #3636 from maiermic/bug/3263-border_attribute_does_not_work_in_a_certain_writing_style
fix: border attribute does not work in a certain writing style
This commit is contained in:
@@ -119,7 +119,11 @@ export const addVertex = function (_id, text, type, style, classes, dir, props =
|
|||||||
if (typeof dir !== 'undefined') {
|
if (typeof dir !== 'undefined') {
|
||||||
vertices[id].dir = dir;
|
vertices[id].dir = dir;
|
||||||
}
|
}
|
||||||
vertices[id].props = props;
|
if (typeof vertices[id].props === 'undefined') {
|
||||||
|
vertices[id].props = props;
|
||||||
|
} else if (typeof props !== 'undefined') {
|
||||||
|
Object.assign(vertices[id].props, props);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user