Skip to content

Commit

Permalink
fix: fix transition issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 8, 2021
1 parent 397933a commit cf23058
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/public/js/graph/git/file-explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function renderCodeExplorer(data, elementId) {
.attr("id", "main-explorer")
.attr("width", GraphConfig.width)
.attr("height", GraphConfig.width)
.attr("viewBox", [-GraphConfig.width / 2, -GraphConfig.height / 2, GraphConfig.width, GraphConfig.height,]);
.attr("viewBox", [-GraphConfig.width / 2, -GraphConfig.width / 2, GraphConfig.width, GraphConfig.width,]);

function filter_by_time(d, new_time) {
return d.data.data.git.details.filter(d => {
Expand Down Expand Up @@ -245,8 +245,6 @@ function renderCodeExplorer(data, elementId) {
renderSubGraph(d.data.data.git.details, "commit_day", "lines_added");
}
})
// .transition()
// .duration(1000)
.attr("stroke-width", d => {
if (d.data.layout.algorithm === "circlePack") return 0;
return d.depth < 4 ? 4 - d.depth : 1;
Expand Down

0 comments on commit cf23058

Please sign in to comment.