Skip to content

Commit

Permalink
Doubled velocity graph width (temporary till better sol'n)
Browse files Browse the repository at this point in the history
  • Loading branch information
wustep committed Mar 21, 2019
1 parent c37c4a8 commit 1b6a6ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions midiviz/prototype/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ div.graph-disabled {
grid-column: 2 / 4;
grid-row: 1;
display: grid;
}

.graph-pane {
overflow-y: scroll;
}

Expand Down
6 changes: 3 additions & 3 deletions midiviz/prototype/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function graphNotes() {
.attr("transform", "translate(" + padding + ", 0)")
.call(d3.axisLeft(yNoteScale));

drawTitle(svg, width / 2, height / 2, padding, "Notes Played");
drawTitle(svg, width / 2, height, padding, "Notes Played");

svg.append("g")
.selectAll("g")
Expand Down Expand Up @@ -170,7 +170,7 @@ function getNotesMapping() {
function graphVelocity() {
var svg = d3.select("#velocity-over-time");

var width = d3.select(".velocity-over-time-graph-pane").node().getBoundingClientRect().width;
var width = d3.select(".velocity-over-time-graph-pane").node().getBoundingClientRect().width * 2;
var height = d3.select(".velocity-over-time-graph-pane").node().getBoundingClientRect().height;
var padding = 60;

Expand Down Expand Up @@ -220,7 +220,7 @@ function graphVelocity() {
.style("mix-blend-mode", "multiply")
.attr("d", line);

drawTitle(svg, width, height, padding, "Note Velocity");
drawTitle(svg, width / 2, height, padding, "Note Velocity");
}

/**
Expand Down

0 comments on commit 1b6a6ce

Please sign in to comment.