mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
feat: burg groups - image icons
This commit is contained in:
parent
c86f7de9de
commit
c29f3b73e8
9 changed files with 371 additions and 41 deletions
|
|
@ -12,6 +12,7 @@ function drawBurgIcons() {
|
|||
if (g.empty()) continue;
|
||||
|
||||
const icon = g.attr("data-icon") || "#icon-circle";
|
||||
|
||||
g.selectAll("use")
|
||||
.data(burgsInGroup)
|
||||
.enter()
|
||||
|
|
@ -22,6 +23,17 @@ function drawBurgIcons() {
|
|||
.attr("x", d => d.x)
|
||||
.attr("y", d => d.y);
|
||||
|
||||
// g.selectAll("circle")
|
||||
// .data(burgsInGroup)
|
||||
// .enter()
|
||||
// .append("circle")
|
||||
// .attr("id", d => "burg_circle" + d.i)
|
||||
// .attr("cx", d => d.x)
|
||||
// .attr("cy", d => d.y)
|
||||
// .attr("r", 0.2)
|
||||
// .attr("fill", "red")
|
||||
// .attr("stroke", "none");
|
||||
|
||||
// capitalAnchors
|
||||
// .selectAll("use")
|
||||
// .data(capitals.filter(c => c.port))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue