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 { .regimentImage {
object-fit: contain; object-fit: contain;
width: 6px !important;
} }
#statesHalo { #statesHalo {

View file

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