variable size for style as requested

This commit is contained in:
Texas 2025-01-17 18:50:27 +01:00
parent 9300e624ab
commit 4ab6cf3ddd
2 changed files with 4 additions and 5 deletions

View file

@ -188,7 +188,6 @@ t,
.regimentImage {
object-fit: contain;
width: 6px !important;
}
#statesHalo {

View file

@ -59,8 +59,8 @@ const drawRegiments = function (regiments, s) {
.attr("class", "regimentImage")
.attr("x", d => x(d) - h)
.attr("y", d => y(d))
.attr("height", '6')
.attr("width", '6')
.attr("height", h)
.attr("width", h)
.text(d => d.image);
};
@ -107,8 +107,8 @@ const drawRegiment = function (reg, stateId) {
.attr("class", "regimentImage")
.attr("x", x1 - h)
.attr("y", y1)
.attr("height", '6')
.attr("width", '6')
.attr("height", h)
.attr("width", h)
.text(reg.image);
};