Skip to content

Commit bd24eb8

Browse files
committed
adopt applyAttr
1 parent f65638a commit bd24eb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/marks/link.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {ascending} from "d3";
22
import {create} from "d3";
33
import {filter} from "../defined.js";
44
import {Mark, maybeColor, maybeNumber, title} from "../mark.js";
5-
import {Style, applyDirectStyles, applyIndirectStyles, applyTransform} from "../style.js";
5+
import {Style, applyAttr, applyDirectStyles, applyIndirectStyles, applyTransform} from "../style.js";
66

77
export class Link extends Mark {
88
constructor(
@@ -55,8 +55,8 @@ export class Link extends Mark {
5555
.attr("y1", i => Y1[i])
5656
.attr("x2", i => X2[i])
5757
.attr("y2", i => Y2[i])
58-
.attr("stroke", S && (i => S[i]))
59-
.attr("stroke-width", SW && (i => SW[i]))
58+
.call(applyAttr, "stroke", S && (i => S[i]))
59+
.call(applyAttr, "stroke-width", SW && (i => SW[i]))
6060
.call(title(L)))
6161
.node();
6262
}

0 commit comments

Comments
 (0)