File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,16 @@ var getModuleCalcData = require('../../plots/get_data').getModuleCalcData;
13
13
var parcoordsPlot = require ( './plot' ) ;
14
14
var xmlnsNamespaces = require ( '../../constants/xmlns_namespaces' ) ;
15
15
16
- var PARCOORDS = 'parcoords' ;
17
-
18
- exports . name = PARCOORDS ;
16
+ exports . name = 'parcoords' ;
19
17
20
18
exports . plot = function ( gd ) {
21
- var calcData = getModuleCalcData ( gd . calcdata , PARCOORDS ) [ 0 ] ;
19
+ var calcData = getModuleCalcData ( gd . calcdata , 'parcoords' ) [ 0 ] ;
22
20
if ( calcData . length ) parcoordsPlot ( gd , calcData ) ;
23
21
} ;
24
22
25
23
exports . clean = function ( newFullData , newFullLayout , oldFullData , oldFullLayout ) {
26
- var hadParcoords = ( oldFullLayout . _has && oldFullLayout . _has ( PARCOORDS ) ) ;
27
- var hasParcoords = ( newFullLayout . _has && newFullLayout . _has ( PARCOORDS ) ) ;
24
+ var hadParcoords = ( oldFullLayout . _has && oldFullLayout . _has ( 'parcoords' ) ) ;
25
+ var hasParcoords = ( newFullLayout . _has && newFullLayout . _has ( 'parcoords' ) ) ;
28
26
29
27
if ( hadParcoords && ! hasParcoords ) {
30
28
oldFullLayout . _paperdiv . selectAll ( '.parcoords' ) . remove ( ) ;
Original file line number Diff line number Diff line change 11
11
var parcoords = require ( './parcoords' ) ;
12
12
var prepareRegl = require ( '../../lib/prepare_regl' ) ;
13
13
14
- module . exports = function plot ( gd , cdparcoords ) {
14
+ module . exports = function plot ( gd , cdModule ) {
15
15
var fullLayout = gd . _fullLayout ;
16
16
var svg = fullLayout . _toppaper ;
17
17
var root = fullLayout . _paperdiv ;
@@ -27,7 +27,7 @@ module.exports = function plot(gd, cdparcoords) {
27
27
28
28
var size = fullLayout . _size ;
29
29
30
- cdparcoords . forEach ( function ( d , i ) {
30
+ cdModule . forEach ( function ( d , i ) {
31
31
var trace = d [ 0 ] . trace ;
32
32
fullIndices [ i ] = trace . index ;
33
33
var iIn = inputIndices [ i ] = trace . _fullInput . index ;
@@ -138,7 +138,7 @@ module.exports = function plot(gd, cdparcoords) {
138
138
root ,
139
139
svg ,
140
140
container ,
141
- cdparcoords ,
141
+ cdModule ,
142
142
{
143
143
width : size . w ,
144
144
height : size . h ,
You can’t perform that action at this time.
0 commit comments