Commit 26606aa2 authored by Sato Hiroyuki's avatar Sato Hiroyuki

Fix style of network graph.

refs #3258
parent 5f9d6549
...@@ -51,21 +51,21 @@ class BranchGraph ...@@ -51,21 +51,21 @@ class BranchGraph
buildGraph: -> buildGraph: ->
graphHeight = $(@element).height() graphHeight = $(@element).height()
graphWidth = $(@element).width() graphWidth = $(@element).width()
ch = Math.max(graphHeight, @unitTime * @mtime + 100) ch = Math.max(graphHeight, @offsetY + @unitTime * @mtime + 150)
cw = Math.max(graphWidth, @unitSpace * @mspace + 260) cw = Math.max(graphWidth, @offsetX + @unitSpace * @mspace + 300)
@r = r = Raphael(@element.get(0), cw, ch) @r = r = Raphael(@element.get(0), cw, ch)
top = r.set() top = r.set()
cuday = 0 cuday = 0
cumonth = "" cumonth = ""
barHeight = Math.max(graphHeight, @unitTime * @days.length + 320) barHeight = Math.max(graphHeight, @unitTime * @days.length + 320)
r.rect(0, 0, 20, barHeight).attr fill: "#222" r.rect(0, 0, 26, barHeight).attr fill: "#222"
r.rect(20, 0, 20, barHeight).attr fill: "#444" r.rect(26, 0, 20, barHeight).attr fill: "#444"
for day, mm in @days for day, mm in @days
if cuday isnt day[0] if cuday isnt day[0]
# Dates # Dates
r.text(30, @offsetY + @unitTime * mm, day[0]) r.text(36, @offsetY + @unitTime * mm, day[0])
.attr( .attr(
font: "12px Monaco, monospace" font: "12px Monaco, monospace"
fill: "#DDD" fill: "#DDD"
...@@ -74,7 +74,7 @@ class BranchGraph ...@@ -74,7 +74,7 @@ class BranchGraph
if cumonth isnt day[1] if cumonth isnt day[1]
# Months # Months
r.text(10, @offsetY + @unitTime * mm, day[1]) r.text(13, @offsetY + @unitTime * mm, day[1])
.attr( .attr(
font: "12px Monaco, monospace" font: "12px Monaco, monospace"
fill: "#EEE" fill: "#EEE"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment