Reducing the size of the culture center circle (#855)

* 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.

* Increasing the size of the cultural centers
This commit is contained in:
Schizoid Nightmares 2022-08-17 03:15:18 -04:00 committed by GitHub
parent 4000c954f1
commit bfba711d8b
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) .select("#cultureCenter" + cultureId)
.raise() .raise()
.transition(animate) .transition(animate)
.attr("r", 8) .attr("r", 3)
.attr("stroke", "#d0240f"); .attr("stroke", "#d0240f");
}, 200); }, 200);
@ -326,7 +326,7 @@ function cultureHighlightOff(event) {
debug debug
.select("#cultureCenter" + cultureId) .select("#cultureCenter" + cultureId)
.transition() .transition()
.attr("r", 6) .attr("r", 2)
.attr("stroke", null); .attr("stroke", null);
} }
@ -557,7 +557,7 @@ function drawCultureCenters() {
const cultureCenters = debug const cultureCenters = debug
.append("g") .append("g")
.attr("id", "cultureCenters") .attr("id", "cultureCenters")
.attr("stroke-width", 2) .attr("stroke-width", 0.8)
.attr("stroke", "#444444") .attr("stroke", "#444444")
.style("cursor", "move"); .style("cursor", "move");
@ -569,7 +569,7 @@ function drawCultureCenters() {
.append("circle") .append("circle")
.attr("id", d => "cultureCenter" + d.i) .attr("id", d => "cultureCenter" + d.i)
.attr("data-id", d => d.i) .attr("data-id", d => d.i)
.attr("r", 6) .attr("r", 2)
.attr("fill", d => d.color) .attr("fill", d => d.color)
.attr("cx", d => pack.cells.p[d.center][0]) .attr("cx", d => pack.cells.p[d.center][0])
.attr("cy", d => pack.cells.p[d.center][1]) .attr("cy", d => pack.cells.p[d.center][1])