File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ var positionTitleOutside = piePlot.positionTitleOutside;
25
25
var formatSliceLabel = piePlot . formatSliceLabel ;
26
26
27
27
module . exports = function plot ( gd , cdModule ) {
28
+ var isStatic = gd . _context . staticPlot ;
29
+
28
30
var fullLayout = gd . _fullLayout ;
29
31
30
32
clearMinTextSize ( 'funnelarea' , fullLayout ) ;
@@ -63,7 +65,7 @@ module.exports = function plot(gd, cdModule) {
63
65
64
66
slicePath . enter ( ) . append ( 'path' )
65
67
. classed ( 'surface' , true )
66
- . style ( { 'pointer-events' : 'all' } ) ;
68
+ . style ( { 'pointer-events' : isStatic ? 'none' : 'all' } ) ;
67
69
68
70
sliceTop . call ( attachFxHandlers , gd , cd ) ;
69
71
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ var eventData = require('./event_data');
20
20
var isValidTextValue = require ( '../../lib' ) . isValidTextValue ;
21
21
22
22
function plot ( gd , cdModule ) {
23
+ var isStatic = gd . _context . staticPlot ;
24
+
23
25
var fullLayout = gd . _fullLayout ;
24
26
var gs = fullLayout . _size ;
25
27
@@ -71,7 +73,7 @@ function plot(gd, cdModule) {
71
73
72
74
slicePath . enter ( ) . append ( 'path' )
73
75
. classed ( 'surface' , true )
74
- . style ( { 'pointer-events' : 'all' } ) ;
76
+ . style ( { 'pointer-events' : isStatic ? 'none' : 'all' } ) ;
75
77
76
78
sliceTop . call ( attachFxHandlers , gd , cd ) ;
77
79
You can’t perform that action at this time.
0 commit comments