Skip to content

Commit 569e0f1

Browse files
Filmbostock
andauthored
no strokeDasharray on markers (#2381)
* no strokeDasharray on markers closes #2131 * always stroke-dasharray=none * remove unused import --------- Co-authored-by: Mike Bostock <mbostock@gmail.com>
1 parent 3d0342b commit 569e0f1

19 files changed

Lines changed: 123 additions & 66 deletions

src/marker.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function markerArrow(orient) {
4545
.attr("orient", orient)
4646
.attr("fill", "none")
4747
.attr("stroke", color)
48+
.attr("stroke-dasharray", "none")
4849
.attr("stroke-width", 1.5)
4950
.attr("stroke-linecap", "round")
5051
.attr("stroke-linejoin", "round")
@@ -70,6 +71,7 @@ function markerCircleFill(color, context) {
7071
.attr("markerHeight", 6.67)
7172
.attr("fill", color)
7273
.attr("stroke", "var(--plot-background)")
74+
.attr("stroke-dasharray", "none")
7375
.attr("stroke-width", 1.5)
7476
.call((marker) => marker.append("circle").attr("r", 3))
7577
.node();
@@ -82,6 +84,7 @@ function markerCircleStroke(color, context) {
8284
.attr("markerHeight", 6.67)
8385
.attr("fill", "var(--plot-background)")
8486
.attr("stroke", color)
87+
.attr("stroke-dasharray", "none")
8588
.attr("stroke-width", 1.5)
8689
.call((marker) => marker.append("circle").attr("r", 3))
8790
.node();
@@ -95,6 +98,7 @@ function markerTick(orient) {
9598
.attr("markerHeight", 6)
9699
.attr("orient", orient)
97100
.attr("stroke", color)
101+
.attr("stroke-dasharray", "none")
98102
.call((marker) => marker.append("path").attr("d", "M0,-3v6"))
99103
.node();
100104
}

test/output/bigint2.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/crimeanWarArrow.svg

Lines changed: 3 additions & 3 deletions
Loading

test/output/crimeanWarLine.svg

Lines changed: 3 additions & 3 deletions
Loading

test/output/driving.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/errorBarX.svg

Lines changed: 3 additions & 3 deletions
Loading

test/output/errorBarY.svg

Lines changed: 3 additions & 3 deletions
Loading

test/output/flareTree.svg

Lines changed: 2 additions & 2 deletions
Loading

test/output/geoLink.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)