comparison client/src/components/fairway/AvailableFairwayDepth.vue @ 3235:0c5a28ffe9ee

available_fairway_depth: flexible layouting options
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 10 May 2019 10:49:37 +0200
parents ee6a4e8af766
children a7d44d1ae57d
comparison
equal deleted inserted replaced
3234:22dfaa22e96e 3235:0c5a28ffe9ee
98 methods: { 98 methods: {
99 close() { 99 close() {
100 this.$store.commit("application/paneSetup", "DEFAULT"); 100 this.$store.commit("application/paneSetup", "DEFAULT");
101 }, 101 },
102 drawDiagram() { 102 drawDiagram() {
103 this.dimensions = this.getDimensions(); 103 this.dimensions = this.getDimensions({
104 main: { top: 20, right: 20, bottom: 110, left: 200 }
105 });
104 this.yScale = d3 106 this.yScale = d3
105 .scaleLinear() 107 .scaleLinear()
106 .domain([-33, 33]) 108 .domain([-33, 33])
107 .range([this.dimensions.mainHeight - 30, 0]); 109 .range([this.dimensions.mainHeight - 30, 0]);
108 d3.select(".diagram-container svg").remove(); 110 d3.select(".diagram-container svg").remove();