Skip to content

Commit 28e4f83

Browse files
committed
fix marker default
1 parent 31339a5 commit 28e4f83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/marks/tree.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ export function tree(data, {
1717
strokeDasharray,
1818
strokeDashoffset,
1919
marker,
20-
markerStart,
21-
markerEnd,
22-
dot: dotDot = isNoneish(marker) && isNoneish(markerStart) && isNoneish(markerEnd),
20+
markerStart = marker,
21+
markerEnd = marker,
22+
dot: dotDot = isNoneish(markerStart) && isNoneish(markerEnd),
2323
text: textText = "node:name",
2424
textStroke = "white",
2525
dx,
2626
...options
2727
} = {}) {
2828
if (dx === undefined) dx = maybeTreeAnchor(options.treeAnchor).dx;
2929
return marks(
30-
link(data, treeLink({marker, markerStart, markerEnd, stroke: stroke !== undefined ? stroke : fill === undefined ? "node:internal" : fill, strokeWidth, strokeOpacity, strokeLinejoin, strokeLinecap, strokeMiterlimit, strokeDasharray, strokeDashoffset, ...options})),
30+
link(data, treeLink({markerStart, markerEnd, stroke: stroke !== undefined ? stroke : fill === undefined ? "node:internal" : fill, strokeWidth, strokeOpacity, strokeLinejoin, strokeLinecap, strokeMiterlimit, strokeDasharray, strokeDashoffset, ...options})),
3131
dotDot ? dot(data, treeNode({fill: fill === undefined ? "node:internal" : fill, ...options})) : null,
3232
textText != null ? text(data, treeNode({text: textText, fill: fill === undefined ? "currentColor" : fill, stroke: textStroke, dx, ...options})) : null
3333
);

0 commit comments

Comments
 (0)