Skip to content

Commit 23c1aed

Browse files
committed
Add and use a _smithlayer
1 parent 9861349 commit 23c1aed

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/plot_api/plot_api.js

+3
Original file line numberDiff line numberDiff line change
@@ -3729,6 +3729,9 @@ function makePlotFramework(gd) {
37293729
// single polar layer for the whole plot
37303730
fullLayout._polarlayer = fullLayout._paper.append('g').classed('polarlayer', true);
37313731

3732+
// single smith layer for the whole plot
3733+
fullLayout._smithlayer = fullLayout._paper.append('g').classed('smithlayer', true);
3734+
37323735
// single ternary layer for the whole plot
37333736
fullLayout._ternarylayer = fullLayout._paper.append('g').classed('ternarylayer', true);
37343737

src/plots/smith/smith.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function Smith(gd, id) {
5454
.attr('id', this.clipIds.forTraces);
5555
this.clipPaths.forTraces.append('path');
5656

57-
this.framework = fullLayout._polarlayer.append('g')
57+
this.framework = fullLayout._smithlayer.append('g')
5858
.attr('class', id);
5959

6060
// unfortunately, we have to keep track of some axis tick settings

0 commit comments

Comments
 (0)