mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-12 03:49:43 +02:00
Merge pull request #1225 from jgreywolf/1058-ClassDiagramScaling
1058 class diagram scaling
This commit is contained in:
@@ -570,8 +570,8 @@ export const draw = function(text, id) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
diagram.attr('height', '100%');
|
diagram.attr('height', g.graph().height + 40);
|
||||||
diagram.attr('width', `${g.graph().width * 1.5 + 20}`);
|
diagram.attr('width', g.graph().width * 1.5 + 20);
|
||||||
diagram.attr('viewBox', '-10 -10 ' + (g.graph().width + 20) + ' ' + (g.graph().height + 20));
|
diagram.attr('viewBox', '-10 -10 ' + (g.graph().width + 20) + ' ' + (g.graph().height + 20));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user