Fix class diagram display issue

This commit is contained in:
Tyler Long
2017-04-22 22:25:07 +08:00
parent b4e8cffd0a
commit c63d556cf8
2 changed files with 4 additions and 4 deletions

View File

@@ -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)

View File

@@ -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 {