mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 11:29:42 +02:00
Fix class diagram display issue
This commit is contained in:
@@ -17,7 +17,7 @@ var classCnt = 0
|
|||||||
var conf = {
|
var conf = {
|
||||||
dividerMargin: 10,
|
dividerMargin: 10,
|
||||||
padding: 5,
|
padding: 5,
|
||||||
textHeight: 14
|
textHeight: 10
|
||||||
}
|
}
|
||||||
|
|
||||||
// Todo optimize
|
// Todo optimize
|
||||||
@@ -259,8 +259,8 @@ var drawClass = function (elem, classDef) {
|
|||||||
|
|
||||||
var methodsLine = g.append('line') // text label for the x axis
|
var methodsLine = g.append('line') // text label for the x axis
|
||||||
.attr('x1', 0)
|
.attr('x1', 0)
|
||||||
.attr('y1', conf.padding + titleHeight + 3 * conf.dividerMargin / 2 + membersBox.height)
|
.attr('y1', conf.padding + titleHeight + conf.dividerMargin + membersBox.height)
|
||||||
.attr('y2', conf.padding + titleHeight + 3 * conf.dividerMargin / 2 + membersBox.height)
|
.attr('y2', conf.padding + titleHeight + conf.dividerMargin + membersBox.height)
|
||||||
|
|
||||||
var methods = g.append('text') // text label for the x axis
|
var methods = g.append('text') // text label for the x axis
|
||||||
.attr('x', conf.padding)
|
.attr('x', conf.padding)
|
||||||
|
@@ -2,7 +2,7 @@ g.classGroup text {
|
|||||||
fill: @nodeBorder;
|
fill: @nodeBorder;
|
||||||
stroke: none;
|
stroke: none;
|
||||||
font-family: 'trebuchet ms', verdana, arial;
|
font-family: 'trebuchet ms', verdana, arial;
|
||||||
font-size: 14px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
g.classGroup rect {
|
g.classGroup rect {
|
||||||
|
Reference in New Issue
Block a user