Skip to content

Commit 858e6e7

Browse files
committed
fix pointer fill
1 parent fa29935 commit 858e6e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/marks/pointer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ export class Pointer extends Mark {
4444
let C = []; // a sparse index from index[i] to an svg:circle element
4545
let P = null; // the persistent selection; a subset of index, or null
4646

47-
const g = create("svg:g")
48-
.attr("fill", "none");
47+
const g = create("svg:g");
4948

5049
const parent = g.append("g")
5150
.call(applyIndirectStyles, this)
@@ -97,6 +96,7 @@ export class Pointer extends Mark {
9796
}
9897

9998
g.append("rect")
99+
.attr("fill", "none")
100100
.attr("pointer-events", "all")
101101
.attr("width", width + marginLeft + marginRight)
102102
.attr("height", height + marginTop + marginBottom)

test/output/gistempAnomalyPointer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,8 +1727,8 @@
17271727
<circle cx="619.6520556710926" cy="89.01408450704224" r="3" stroke="rgb(197, 65, 63)"></circle>
17281728
<circle cx="620" cy="108.73239436619714" r="3" stroke="rgb(213, 95, 80)"></circle>
17291729
</g>
1730-
<g fill="none">
1730+
<g>
17311731
<g aria-label="pointer" fill="none" stroke="#3b5fc0" stroke-width="1.5"></g>
1732-
<rect pointer-events="all" width="700" height="450"></rect>
1732+
<rect fill="none" pointer-events="all" width="700" height="450"></rect>
17331733
</g>
17341734
</svg><output>1644</output></span>

0 commit comments

Comments
 (0)