Reducing the size of the culture center circle

This makes it easier to place the center more precisely and to see what cell it is in.
This commit is contained in:
Schizoid Nightmares 2022-08-13 15:39:03 -04:00 committed by GitHub
parent 4000c954f1
commit 5c5c83a65d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -310,7 +310,7 @@ const cultureHighlightOn = debounce(event => {
.select("#cultureCenter" + cultureId)
.raise()
.transition(animate)
.attr("r", 8)
.attr("r", 2)
.attr("stroke", "#d0240f");
}, 200);
@ -326,7 +326,7 @@ function cultureHighlightOff(event) {
debug
.select("#cultureCenter" + cultureId)
.transition()
.attr("r", 6)
.attr("r", 1)
.attr("stroke", null);
}
@ -557,7 +557,7 @@ function drawCultureCenters() {
const cultureCenters = debug
.append("g")
.attr("id", "cultureCenters")
.attr("stroke-width", 2)
.attr("stroke-width", 0.5)
.attr("stroke", "#444444")
.style("cursor", "move");
@ -569,7 +569,7 @@ function drawCultureCenters() {
.append("circle")
.attr("id", d => "cultureCenter" + d.i)
.attr("data-id", d => d.i)
.attr("r", 6)
.attr("r", 1)
.attr("fill", d => d.color)
.attr("cx", d => pack.cells.p[d.center][0])
.attr("cy", d => pack.cells.p[d.center][1])