mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 02:27:05 +02:00
Adjusting initial classDiagram shape rendering
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user