diff --git a/static/js/adc2019-viewer.js b/static/js/adc2019-viewer.js index 84a6bedf87a0f8e7c4115676d628f1adf25aeeea..0f19f5e78f4abe99ba9b1adfec27f7e1aa2b7833 100644 --- a/static/js/adc2019-viewer.js +++ b/static/js/adc2019-viewer.js @@ -68,10 +68,10 @@ class ADC2019BoardViewer { let _self = this; var zoom = d3.zoom() - .scaleExtent([0.5, 5]) + .scaleExtent([0.2, 2]) .translateExtent([ - [-this.width * 2, -this.height * 2], - [this.width * 2, this.height * 2] + [-this.width * 10, -this.height * 10], + [this.width * 10, this.height * 10] ]) .on("zoom", zoomed); @@ -81,9 +81,9 @@ class ADC2019BoardViewer { // this.slider.property("value", d3.event.scale); } - function slided(d) { - zoom.scaleTo(this.svg, d3.select(this).property("value")); - } + // function slided(d) { + // zoom.scaleTo(this.svg, d3.select(this).property("value")); + // } // var slider = d3.select("body").append("input") // .datum({}) @@ -95,7 +95,6 @@ class ADC2019BoardViewer { // .on("input", slided); this.svg.call(zoom).on('dblclick.zoom', null); - } _draw_solution(data){