function attributer()

in src/components/graphs/dependency.tsx [62:80]


    function attributer(datum, index, nodes) {
      const selection = select(this);
      if (datum.tag === "svg") {
        const width = window.innerWidth;
        const height = window.innerHeight;
        const x = 200;
        const y = 10;
        const scale = 0.75;
        selection
          .attr("width", `${width}pt`)
          .attr("height", `${height}pt`)
          .attr("viewBox", `${-x} ${-y} ${width / scale} ${height / scale}`);
        datum.attributes.width = `${width}pt`;
        datum.attributes.height = `${height}pt`;
        datum.attributes.viewBox = `${-x} ${-y} ${width / scale} ${
          height / scale
        }`;
      }
    }