mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
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:
parent
4000c954f1
commit
bfba711d8b
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", 3)
|
||||
.attr("stroke", "#d0240f");
|
||||
}, 200);
|
||||
|
||||
|
|
@ -326,7 +326,7 @@ function cultureHighlightOff(event) {
|
|||
debug
|
||||
.select("#cultureCenter" + cultureId)
|
||||
.transition()
|
||||
.attr("r", 6)
|
||||
.attr("r", 2)
|
||||
.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.8)
|
||||
.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", 2)
|
||||
.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