diff client/src/lib/mixins.js @ 4001:bf86f9a08733

improve fairwaydiagram printing positioning
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 18 Jul 2019 15:04:30 +0200
parents c40f8b026de3
children 7959f62d3051
line wrap: on
line diff
--- a/client/src/lib/mixins.js	Thu Jul 18 12:50:33 2019 +0200
+++ b/client/src/lib/mixins.js	Thu Jul 18 15:04:30 2019 +0200
@@ -18,6 +18,18 @@
 import locale2 from "locale2";
 import { mapState } from "vuex";
 import { HTTP } from "@/lib/http";
+import * as d3 from "d3";
+
+/*eslint no-unused-vars: ["error", { "varsIgnorePattern": "debugSVG" }]*/
+
+const debugSVG = ({ svg, svgWidth, svgHeight }) => {
+  d3.select(svg)
+    .append("rect")
+    .attr("width", svgWidth)
+    .attr("height", svgHeight)
+    .attr("fill-opacity", 0)
+    .attr("stroke", "#ff0000");
+};
 
 export const sortTable = {
   data() {