# HG changeset patch # User Thomas Junk # Date 1558951387 -7200 # Node ID 48d09fb1d6c7fe263433b04abed8c895eab19685 # Parent 104c4f683c74499f285f94fab478710700e8a212 legend diff -r 104c4f683c74 -r 48d09fb1d6c7 client/src/components/fairway/AvailableFairwayDepthLNWL.vue --- a/client/src/components/fairway/AvailableFairwayDepthLNWL.vue Mon May 27 11:42:14 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepthLNWL.vue Mon May 27 12:03:07 2019 +0200 @@ -167,9 +167,24 @@ "from", "to", "frequency", - "legendLNWL", - "csv" + "csv", + "depthlimit1", + "depthlimit2", + "widthlimit1", + "widthlimit2" ]), + legendLNWL() { + const d = [this.depthlimit1, this.depthlimit2].sort(); + const w = [this.widthlimit1, this.widthlimit2].sort(); + const lowerBound = [d[0], w[0]].filter(x => x).join(", "); + const upperBound = [d[1], w[1]].filter(x => x).join(", "); + return [ + `> LDC`, + `< ${lowerBound}`, + `< ${upperBound}`, + `>= ${upperBound}` + ]; + }, dataLink() { return `data:text/csv;charset=utf-8, ${encodeURIComponent(this.csv)}`; },