Adjusting initial classDiagram shape rendering

This commit is contained in:
Ashish Jain
2020-07-21 15:25:16 +02:00
parent 1e400624e0
commit abe23250c4
6 changed files with 237 additions and 19 deletions

View File

@@ -85,16 +85,17 @@ export const addClasses = function(classes, g) {
// Set the shape based parameters
switch (vertex.type) {
case 'class':
_shape = 'rect';
_shape = 'class_box';
break;
default:
_shape = 'rect';
_shape = 'class_box';
}
// Add the node
g.setNode(vertex.id, {
labelStyle: styles.labelStyle,
shape: _shape,
labelText: vertexText,
classData: vertex,
rx: radious,
ry: radious,
class: classStr,