vexchords
vexchords copied to clipboard
Scalable chords?
is there a way to generate chords that are scalable to fit their container instead of a fixed width / height in px?
A bit hacky way to do this is by adding a viewBox to the svg and modify the width and height parameters:
let svgElement = document.querySelector("#vexchordselector svg")
svgElement.setAttribute("viewBox","0 0 130 150")
svgElement.setAttribute("width", "100%")
svgElement.setAttribute("height", "auto")