# HG changeset patch # User veltr # Date 1360927381 -3600 # Node ID 7fa607ed7e828a7220bbdbb039886edb9968518a # Parent 0d947d167ec54ff72508abad730e59ce6e30d41a Saving point diff -r 0d947d167ec5 -r 7fa607ed7e82 js/startscreen-fake.js --- a/js/startscreen-fake.js Thu Feb 07 17:14:46 2013 +0100 +++ b/js/startscreen-fake.js Fri Feb 15 12:23:01 2013 +0100 @@ -206,12 +206,13 @@ + "," + yscale * (mmso.start + 2 * mmso.duration / 3); }).join("L") + "L0,"+(yscale * data.duration); - sumpath.attr({ - path: d - }); - sumpath.show(); + sumpatha.attr({ path: d }); + sumpathb.attr({ path: d }); + sumpatha.show(); + sumpathb.show(); } else { - sumpath.hide(); + sumpatha.hide(); + sumpathb.hide(); } } else { for (var i = 0; i < nmmso; i++) { @@ -251,11 +252,10 @@ xscale = (pw - 10)/mx; if (PATH_MODE) { - var sumpath = paper.path(); - sumpath.attr({ + var sumpatha = paper.path(); + sumpatha.attr({ fill: "#f0f0f0", - stroke: "#666666", - "stroke-width": 2 + stroke: "none" }); var topicpaths = data.topics.map(function(topic) { var d = "M0,0L" + topic.scores.map(function(s, i) { @@ -271,6 +271,11 @@ }).join("L") + "L0,"+(yscale * data.duration); return paper.path(d); }); + var sumpathb = paper.path(); + sumpathb.attr({ + stroke: "#666666", + "stroke-width": 2 + }); } else { var segmentrects = data.segments.map(function(mmso) { var rect = paper.rect(0, yscale * mmso.start, pw - 50, yscale * mmso.duration);