Initial work on updating to new renderer

This commit is contained in:
yari-dewalt
2024-08-27 08:37:39 -07:00
parent a07f1f3337
commit e3c426de86
7 changed files with 287 additions and 1 deletions

View File

@@ -80,6 +80,8 @@ export const addClass = function (_id: string) {
id: name,
type: type,
label: name,
text: `<strong>${name}${type ? `&lt;${type}&gt;` : ''}</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,
};