@@ -60,7 +60,7 @@ var axisIds = require('../plots/cartesian/axis_ids');
60
60
Plotly . plot = function ( gd , data , layout , config ) {
61
61
var frames ;
62
62
63
- gd = helpers . getGraphDiv ( gd ) ;
63
+ gd = Lib . getGraphDiv ( gd ) ;
64
64
65
65
// Events.init is idempotent and bails early if gd has already been init'd
66
66
Events . init ( gd ) ;
@@ -581,7 +581,7 @@ function plotPolar(gd, data, layout) {
581
581
582
582
// convenience function to force a full redraw, mostly for use by plotly.js
583
583
Plotly . redraw = function ( gd ) {
584
- gd = helpers . getGraphDiv ( gd ) ;
584
+ gd = Lib . getGraphDiv ( gd ) ;
585
585
586
586
if ( ! Lib . isPlotDiv ( gd ) ) {
587
587
throw new Error ( 'This element is not a Plotly plot: ' + gd ) ;
@@ -606,7 +606,7 @@ Plotly.redraw = function(gd) {
606
606
* @param {Object } config
607
607
*/
608
608
Plotly . newPlot = function ( gd , data , layout , config ) {
609
- gd = helpers . getGraphDiv ( gd ) ;
609
+ gd = Lib . getGraphDiv ( gd ) ;
610
610
611
611
// remove gl contexts
612
612
Plots . cleanPlot ( [ ] , { } , gd . _fullData || { } , gd . _fullLayout || { } ) ;
@@ -959,7 +959,7 @@ function spliceTraces(gd, update, indices, maxPoints, lengthenArray, spliceArray
959
959
*
960
960
*/
961
961
Plotly . extendTraces = function extendTraces ( gd , update , indices , maxPoints ) {
962
- gd = helpers . getGraphDiv ( gd ) ;
962
+ gd = Lib . getGraphDiv ( gd ) ;
963
963
964
964
var undo = spliceTraces ( gd , update , indices , maxPoints ,
965
965
@@ -986,7 +986,7 @@ Plotly.extendTraces = function extendTraces(gd, update, indices, maxPoints) {
986
986
} ;
987
987
988
988
Plotly . prependTraces = function prependTraces ( gd , update , indices , maxPoints ) {
989
- gd = helpers . getGraphDiv ( gd ) ;
989
+ gd = Lib . getGraphDiv ( gd ) ;
990
990
991
991
var undo = spliceTraces ( gd , update , indices , maxPoints ,
992
992
@@ -1022,7 +1022,7 @@ Plotly.prependTraces = function prependTraces(gd, update, indices, maxPoints) {
1022
1022
*
1023
1023
*/
1024
1024
Plotly . addTraces = function addTraces ( gd , traces , newIndices ) {
1025
- gd = helpers . getGraphDiv ( gd ) ;
1025
+ gd = Lib . getGraphDiv ( gd ) ;
1026
1026
1027
1027
var currentIndices = [ ] ,
1028
1028
undoFunc = Plotly . deleteTraces ,
@@ -1099,7 +1099,7 @@ Plotly.addTraces = function addTraces(gd, traces, newIndices) {
1099
1099
* @param {Number|Number[] } indices The indices
1100
1100
*/
1101
1101
Plotly . deleteTraces = function deleteTraces ( gd , indices ) {
1102
- gd = helpers . getGraphDiv ( gd ) ;
1102
+ gd = Lib . getGraphDiv ( gd ) ;
1103
1103
1104
1104
var traces = [ ] ,
1105
1105
undoFunc = Plotly . addTraces ,
@@ -1165,7 +1165,7 @@ Plotly.deleteTraces = function deleteTraces(gd, indices) {
1165
1165
* Plotly.moveTraces(gd, [b, d, e, a, c]) // same as 'move to end'
1166
1166
*/
1167
1167
Plotly . moveTraces = function moveTraces ( gd , currentIndices , newIndices ) {
1168
- gd = helpers . getGraphDiv ( gd ) ;
1168
+ gd = Lib . getGraphDiv ( gd ) ;
1169
1169
1170
1170
var newData = [ ] ,
1171
1171
movingTraceMap = [ ] ,
@@ -1262,7 +1262,7 @@ Plotly.moveTraces = function moveTraces(gd, currentIndices, newIndices) {
1262
1262
* style files that want to specify cyclical default values).
1263
1263
*/
1264
1264
Plotly . restyle = function restyle ( gd , astr , val , _traces ) {
1265
- gd = helpers . getGraphDiv ( gd ) ;
1265
+ gd = Lib . getGraphDiv ( gd ) ;
1266
1266
helpers . clearPromiseQueue ( gd ) ;
1267
1267
1268
1268
var aobj = { } ;
@@ -1649,7 +1649,7 @@ function _restyle(gd, aobj, traces) {
1649
1649
* allows setting multiple attributes simultaneously
1650
1650
*/
1651
1651
Plotly . relayout = function relayout ( gd , astr , val ) {
1652
- gd = helpers . getGraphDiv ( gd ) ;
1652
+ gd = Lib . getGraphDiv ( gd ) ;
1653
1653
helpers . clearPromiseQueue ( gd ) ;
1654
1654
1655
1655
if ( gd . framework && gd . framework . isPolar ) {
@@ -2079,7 +2079,7 @@ function _relayout(gd, aobj) {
2079
2079
*
2080
2080
*/
2081
2081
Plotly . update = function update ( gd , traceUpdate , layoutUpdate , _traces ) {
2082
- gd = helpers . getGraphDiv ( gd ) ;
2082
+ gd = Lib . getGraphDiv ( gd ) ;
2083
2083
helpers . clearPromiseQueue ( gd ) ;
2084
2084
2085
2085
if ( gd . framework && gd . framework . isPolar ) {
@@ -2185,7 +2185,7 @@ Plotly.update = function update(gd, traceUpdate, layoutUpdate, _traces) {
2185
2185
* configuration for the animation
2186
2186
*/
2187
2187
Plotly . animate = function ( gd , frameOrGroupNameOrFrameList , animationOpts ) {
2188
- gd = helpers . getGraphDiv ( gd ) ;
2188
+ gd = Lib . getGraphDiv ( gd ) ;
2189
2189
2190
2190
if ( ! Lib . isPlotDiv ( gd ) ) {
2191
2191
throw new Error (
@@ -2549,7 +2549,7 @@ Plotly.animate = function(gd, frameOrGroupNameOrFrameList, animationOpts) {
2549
2549
* will be overwritten.
2550
2550
*/
2551
2551
Plotly . addFrames = function ( gd , frameList , indices ) {
2552
- gd = helpers . getGraphDiv ( gd ) ;
2552
+ gd = Lib . getGraphDiv ( gd ) ;
2553
2553
2554
2554
var numericNameWarningCount = 0 ;
2555
2555
@@ -2673,7 +2673,7 @@ Plotly.addFrames = function(gd, frameList, indices) {
2673
2673
* list of integer indices of frames to be deleted
2674
2674
*/
2675
2675
Plotly . deleteFrames = function ( gd , frameList ) {
2676
- gd = helpers . getGraphDiv ( gd ) ;
2676
+ gd = Lib . getGraphDiv ( gd ) ;
2677
2677
2678
2678
if ( ! Lib . isPlotDiv ( gd ) ) {
2679
2679
throw new Error ( 'This element is not a Plotly plot: ' + gd ) ;
@@ -2717,7 +2717,7 @@ Plotly.deleteFrames = function(gd, frameList) {
2717
2717
* the id or DOM element of the graph container div
2718
2718
*/
2719
2719
Plotly . purge = function purge ( gd ) {
2720
- gd = helpers . getGraphDiv ( gd ) ;
2720
+ gd = Lib . getGraphDiv ( gd ) ;
2721
2721
2722
2722
var fullLayout = gd . _fullLayout || { } ,
2723
2723
fullData = gd . _fullData || [ ] ;
0 commit comments