@@ -60,7 +60,7 @@ var axisIds = require('../plots/cartesian/axis_ids');
6060Plotly . plot = function ( gd , data , layout , config ) {
6161 var frames ;
6262
63- gd = helpers . getGraphDiv ( gd ) ;
63+ gd = Lib . getGraphDiv ( gd ) ;
6464
6565 // Events.init is idempotent and bails early if gd has already been init'd
6666 Events . init ( gd ) ;
@@ -581,7 +581,7 @@ function plotPolar(gd, data, layout) {
581581
582582// convenience function to force a full redraw, mostly for use by plotly.js
583583Plotly . redraw = function ( gd ) {
584- gd = helpers . getGraphDiv ( gd ) ;
584+ gd = Lib . getGraphDiv ( gd ) ;
585585
586586 if ( ! Lib . isPlotDiv ( gd ) ) {
587587 throw new Error ( 'This element is not a Plotly plot: ' + gd ) ;
@@ -606,7 +606,7 @@ Plotly.redraw = function(gd) {
606606 * @param {Object } config
607607 */
608608Plotly . newPlot = function ( gd , data , layout , config ) {
609- gd = helpers . getGraphDiv ( gd ) ;
609+ gd = Lib . getGraphDiv ( gd ) ;
610610
611611 // remove gl contexts
612612 Plots . cleanPlot ( [ ] , { } , gd . _fullData || { } , gd . _fullLayout || { } ) ;
@@ -959,7 +959,7 @@ function spliceTraces(gd, update, indices, maxPoints, lengthenArray, spliceArray
959959 *
960960 */
961961Plotly . extendTraces = function extendTraces ( gd , update , indices , maxPoints ) {
962- gd = helpers . getGraphDiv ( gd ) ;
962+ gd = Lib . getGraphDiv ( gd ) ;
963963
964964 var undo = spliceTraces ( gd , update , indices , maxPoints ,
965965
@@ -986,7 +986,7 @@ Plotly.extendTraces = function extendTraces(gd, update, indices, maxPoints) {
986986} ;
987987
988988Plotly . prependTraces = function prependTraces ( gd , update , indices , maxPoints ) {
989- gd = helpers . getGraphDiv ( gd ) ;
989+ gd = Lib . getGraphDiv ( gd ) ;
990990
991991 var undo = spliceTraces ( gd , update , indices , maxPoints ,
992992
@@ -1022,7 +1022,7 @@ Plotly.prependTraces = function prependTraces(gd, update, indices, maxPoints) {
10221022 *
10231023 */
10241024Plotly . addTraces = function addTraces ( gd , traces , newIndices ) {
1025- gd = helpers . getGraphDiv ( gd ) ;
1025+ gd = Lib . getGraphDiv ( gd ) ;
10261026
10271027 var currentIndices = [ ] ,
10281028 undoFunc = Plotly . deleteTraces ,
@@ -1099,7 +1099,7 @@ Plotly.addTraces = function addTraces(gd, traces, newIndices) {
10991099 * @param {Number|Number[] } indices The indices
11001100 */
11011101Plotly . deleteTraces = function deleteTraces ( gd , indices ) {
1102- gd = helpers . getGraphDiv ( gd ) ;
1102+ gd = Lib . getGraphDiv ( gd ) ;
11031103
11041104 var traces = [ ] ,
11051105 undoFunc = Plotly . addTraces ,
@@ -1165,7 +1165,7 @@ Plotly.deleteTraces = function deleteTraces(gd, indices) {
11651165 * Plotly.moveTraces(gd, [b, d, e, a, c]) // same as 'move to end'
11661166 */
11671167Plotly . moveTraces = function moveTraces ( gd , currentIndices , newIndices ) {
1168- gd = helpers . getGraphDiv ( gd ) ;
1168+ gd = Lib . getGraphDiv ( gd ) ;
11691169
11701170 var newData = [ ] ,
11711171 movingTraceMap = [ ] ,
@@ -1262,7 +1262,7 @@ Plotly.moveTraces = function moveTraces(gd, currentIndices, newIndices) {
12621262 * style files that want to specify cyclical default values).
12631263 */
12641264Plotly . restyle = function restyle ( gd , astr , val , _traces ) {
1265- gd = helpers . getGraphDiv ( gd ) ;
1265+ gd = Lib . getGraphDiv ( gd ) ;
12661266 helpers . clearPromiseQueue ( gd ) ;
12671267
12681268 var aobj = { } ;
@@ -1649,7 +1649,7 @@ function _restyle(gd, aobj, traces) {
16491649 * allows setting multiple attributes simultaneously
16501650 */
16511651Plotly . relayout = function relayout ( gd , astr , val ) {
1652- gd = helpers . getGraphDiv ( gd ) ;
1652+ gd = Lib . getGraphDiv ( gd ) ;
16531653 helpers . clearPromiseQueue ( gd ) ;
16541654
16551655 if ( gd . framework && gd . framework . isPolar ) {
@@ -2079,7 +2079,7 @@ function _relayout(gd, aobj) {
20792079 *
20802080 */
20812081Plotly . update = function update ( gd , traceUpdate , layoutUpdate , _traces ) {
2082- gd = helpers . getGraphDiv ( gd ) ;
2082+ gd = Lib . getGraphDiv ( gd ) ;
20832083 helpers . clearPromiseQueue ( gd ) ;
20842084
20852085 if ( gd . framework && gd . framework . isPolar ) {
@@ -2185,7 +2185,7 @@ Plotly.update = function update(gd, traceUpdate, layoutUpdate, _traces) {
21852185 * configuration for the animation
21862186 */
21872187Plotly . animate = function ( gd , frameOrGroupNameOrFrameList , animationOpts ) {
2188- gd = helpers . getGraphDiv ( gd ) ;
2188+ gd = Lib . getGraphDiv ( gd ) ;
21892189
21902190 if ( ! Lib . isPlotDiv ( gd ) ) {
21912191 throw new Error (
@@ -2549,7 +2549,7 @@ Plotly.animate = function(gd, frameOrGroupNameOrFrameList, animationOpts) {
25492549 * will be overwritten.
25502550 */
25512551Plotly . addFrames = function ( gd , frameList , indices ) {
2552- gd = helpers . getGraphDiv ( gd ) ;
2552+ gd = Lib . getGraphDiv ( gd ) ;
25532553
25542554 var numericNameWarningCount = 0 ;
25552555
@@ -2673,7 +2673,7 @@ Plotly.addFrames = function(gd, frameList, indices) {
26732673 * list of integer indices of frames to be deleted
26742674 */
26752675Plotly . deleteFrames = function ( gd , frameList ) {
2676- gd = helpers . getGraphDiv ( gd ) ;
2676+ gd = Lib . getGraphDiv ( gd ) ;
26772677
26782678 if ( ! Lib . isPlotDiv ( gd ) ) {
26792679 throw new Error ( 'This element is not a Plotly plot: ' + gd ) ;
@@ -2717,7 +2717,7 @@ Plotly.deleteFrames = function(gd, frameList) {
27172717 * the id or DOM element of the graph container div
27182718 */
27192719Plotly . purge = function purge ( gd ) {
2720- gd = helpers . getGraphDiv ( gd ) ;
2720+ gd = Lib . getGraphDiv ( gd ) ;
27212721
27222722 var fullLayout = gd . _fullLayout || { } ,
27232723 fullData = gd . _fullData || [ ] ;
0 commit comments