File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,9 @@ exports.plot = function plotGl3d(gd) {
51
51
// If Scene is not instantiated, create one!
52
52
if ( scene === undefined ) {
53
53
scene = new Scene ( {
54
- container : gd . querySelector ( '.gl-container' ) ,
55
54
id : sceneId ,
55
+ graphDiv : gd ,
56
+ container : gd . querySelector ( '.gl-container' ) ,
56
57
staticPlot : gd . _context . staticPlot ,
57
58
plotGlPixelRatio : gd . _context . plotGlPixelRatio
58
59
} ,
Original file line number Diff line number Diff line change @@ -180,6 +180,8 @@ function Scene(options, fullLayout) {
180
180
var sceneContainer = document . createElement ( 'div' ) ;
181
181
var plotContainer = options . container ;
182
182
183
+ // keep a ref to the graph div to fire hover+click events
184
+ this . graphDiv = options . graphDiv ;
183
185
//Create SVG container for hover text
184
186
var svgContainer = document . createElementNS (
185
187
'http://www.w3.org/2000/svg' ,
You can’t perform that action at this time.
0 commit comments