remove canvas, toggle zoom brush

This commit is contained in:
Colin Megill
2018-04-26 14:03:04 -07:00
parent 5751dcf4ee
commit c98dd20cb3
3 changed files with 26 additions and 22 deletions
+7 -7
View File
@@ -14,13 +14,13 @@ export const setupGraphElements = (
handleBrushDeselectAction
) => {
var canvas = d3.select("#graphAttachPoint")
.append("canvas")
.attr("width", globals.graphWidth)
.attr("height", globals.graphHeight)
.attr("class", `${styles.graphCanvas}`);
// var canvas = d3.select("#graphAttachPoint")
// .append("canvas")
// .attr("width", globals.graphWidth)
// .attr("height", globals.graphHeight)
// .attr("class", `${styles.graphCanvas}`);
var ctx = canvas.node().getContext("2d");
// var ctx = canvas.node().getContext("2d");
var svg = d3.select("#graphAttachPoint").append("svg")
.attr("width", globals.graphWidth)
@@ -37,7 +37,7 @@ export const setupGraphElements = (
return {
svg,
ctx
// ctx
}
}