Skip to content

Commit 5af1c6d

Browse files
committed
gl2d: don't require Plotly
1 parent dc043ae commit 5af1c6d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/plots/gl2d/convert.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
'use strict';
1111

12-
var Plotly = require('../../plotly');
12+
var Plots = require('../plots');
13+
var Axes = require('../cartesian/axes');
1314

1415
var convertHTMLToUnicode = require('../../lib/html2unicode');
1516
var str2RGBArray = require('../../lib/str2rgbarray');
@@ -180,8 +181,8 @@ proto.merge = function(options) {
180181
// is an axis shared with an already-drawn subplot ?
181182
proto.hasSharedAxis = function(ax) {
182183
var scene = this.scene,
183-
subplotIds = Plotly.Plots.getSubplotIds(scene.fullLayout, 'gl2d'),
184-
list = Plotly.Axes.findSubplotsWithAxis(subplotIds, ax);
184+
subplotIds = Plots.getSubplotIds(scene.fullLayout, 'gl2d'),
185+
list = Axes.findSubplotsWithAxis(subplotIds, ax);
185186

186187
// if index === 0, then the subplot is already drawn as subplots
187188
// are drawn in order.

0 commit comments

Comments
 (0)