Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ffd4723

Browse files
committed
skip over polar:
- in default trace loop, so that basePlotModule remains [] when polar is present - return early in snapshot getDelay as polar somehow clear underscore variables e.g. _has()
1 parent dff3830 commit ffd4723

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/plots/plots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ plots.supplyDefaults = function(gd) {
472472
newFullData.push(fullTrace);
473473

474474
// detect polar
475-
if('r' in fullTrace) newFullLayout._hasPolar = true;
475+
if('r' in newData[i]) continue;
476476

477477
_module = fullTrace._module;
478478
if(!_module) continue;

src/snapshot/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
'use strict';
1111

1212
function getDelay(fullLayout) {
13+
14+
// polar clears fullLayout._has for some reason
15+
if(!fullLayout._has) return 0;
16+
1317
// maybe we should add a 'gl' (and 'svg') layoutCategory ??
1418
return (fullLayout._has('gl3d')|| fullLayout._has('gl2d')) ? 500 : 0;
1519
}

0 commit comments

Comments
 (0)