mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-23 10:16:43 +02:00
1181-Css for class diagrams
Initial change for supporting custom CSS for use with classDiagrams. updated `LABEL` regex for specificity
This commit is contained in:
@@ -26,6 +26,7 @@ const splitClassNameAndType = function(id) {
|
||||
if (id.indexOf('~') > 0) {
|
||||
let split = id.split('~');
|
||||
className = split[0];
|
||||
|
||||
genericType = split[1];
|
||||
}
|
||||
|
||||
@@ -51,6 +52,7 @@ export const addClass = function(id) {
|
||||
annotations: [],
|
||||
domId: MERMAID_DOM_ID_PREFIX + classId.className + '-' + classCounter
|
||||
};
|
||||
|
||||
classCounter++;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user