mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-06 22:04:16 +01:00
Initial work on updating to new renderer
This commit is contained in:
@@ -80,6 +80,8 @@ export const addClass = function (_id: string) {
|
||||
id: name,
|
||||
type: type,
|
||||
label: name,
|
||||
text: `<strong>${name}${type ? `<${type}>` : ''}</strong>`,
|
||||
shape: 'classBox',
|
||||
cssClasses: [],
|
||||
methods: [],
|
||||
members: [],
|
||||
@@ -472,6 +474,11 @@ export const setCssStyle = function (id: string, styles: string[]) {
|
||||
}
|
||||
};
|
||||
|
||||
export const getData = () => {
|
||||
const config = getConfig();
|
||||
return { nodes: classes, edges: relations, other: {}, config, direction: getDirection() };
|
||||
};
|
||||
|
||||
export default {
|
||||
setAccTitle,
|
||||
getAccTitle,
|
||||
@@ -509,4 +516,5 @@ export default {
|
||||
getNamespace,
|
||||
getNamespaces,
|
||||
setCssStyle,
|
||||
getData,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user