mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
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:
parent
4000c954f1
commit
5c5c83a65d
1 changed files with 4 additions and 4 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue