plotly.js 2.12.0 → 2.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js v2.12.0
2
+ * plotly.js v2.12.1
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -68,7 +68,7 @@ exports.topojson = saneTopojson;
68
68
  'use strict';
69
69
 
70
70
  // package version injected by `npm run preprocess`
71
- exports.version = '2.12.0';
71
+ exports.version = '2.12.1';
72
72
 
73
73
  },{}]},{},[16])(16)
74
74
  });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * plotly.js (geo) v2.12.0
2
+ * plotly.js (geo) v2.12.1
3
3
  * Copyright 2012-2022, Plotly, Inc.
4
4
  * All rights reserved.
5
5
  * Licensed under the MIT license
@@ -51,10 +51,10 @@ var rules = {
51
51
  "X .modebar.vertical .modebar-group .modebar-btn": "display:block;text-align:center;",
52
52
  "X [data-title]:before,X [data-title]:after": "position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;",
53
53
  "X [data-title]:hover:before,X [data-title]:hover:after": "display:block;opacity:1;",
54
- "X [data-title]:before": "content:\"\";position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;",
54
+ "X [data-title]:before": "content:\"\";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;",
55
55
  "X [data-title]:after": "content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;",
56
56
  "X .vertical [data-title]:before,X .vertical [data-title]:after": "top:0%;right:200%;",
57
- "X .vertical [data-title]:before": "border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;",
57
+ "X .vertical [data-title]:before": "border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",
58
58
  "X .select-outline": "fill:none;stroke-width:1;shape-rendering:crispEdges;",
59
59
  "X .select-outline-1": "stroke:#fff;",
60
60
  "X .select-outline-2": "stroke:#000;stroke-dasharray:2px 2px;",
@@ -36657,7 +36657,7 @@ module.exports = function colorScaleAttrs(context, opts) {
36657
36657
  }
36658
36658
 
36659
36659
  var effectDesc = onlyIfNumerical ?
36660
- ' Has an effect only if ' + colorAttrFull + 'is set to a numerical array.' :
36660
+ ' Has an effect only if ' + colorAttrFull + ' is set to a numerical array.' :
36661
36661
  '';
36662
36662
 
36663
36663
  var auto = cLetter + 'auto';
@@ -47465,6 +47465,7 @@ var isUnifiedHover = _dereq_('../fx/helpers').isUnifiedHover;
47465
47465
  var createModeBar = _dereq_('./modebar');
47466
47466
  var modeBarButtons = _dereq_('./buttons');
47467
47467
  var DRAW_MODES = _dereq_('./constants').DRAW_MODES;
47468
+ var extendDeep = _dereq_('../../lib').extendDeep;
47468
47469
 
47469
47470
  /**
47470
47471
  * ModeBar wrapper around 'create' and 'update',
@@ -47787,7 +47788,9 @@ function appendButtonsToGroups(groups, buttons) {
47787
47788
  }
47788
47789
 
47789
47790
  // fill in custom buttons referring to default mode bar buttons
47790
- function fillCustomButton(customButtons) {
47791
+ function fillCustomButton(originalModeBarButtons) {
47792
+ var customButtons = extendDeep([], originalModeBarButtons);
47793
+
47791
47794
  for(var i = 0; i < customButtons.length; i++) {
47792
47795
  var buttonGroup = customButtons[i];
47793
47796
 
@@ -47810,7 +47813,7 @@ function fillCustomButton(customButtons) {
47810
47813
  return customButtons;
47811
47814
  }
47812
47815
 
47813
- },{"../../plots/cartesian/axis_ids":300,"../../registry":342,"../../traces/scatter/subtypes":389,"../fx/helpers":152,"./buttons":176,"./constants":177,"./modebar":181}],181:[function(_dereq_,module,exports){
47816
+ },{"../../lib":248,"../../plots/cartesian/axis_ids":300,"../../registry":342,"../../traces/scatter/subtypes":389,"../fx/helpers":152,"./buttons":176,"./constants":177,"./modebar":181}],181:[function(_dereq_,module,exports){
47814
47817
  'use strict';
47815
47818
 
47816
47819
  var d3 = _dereq_('@plotly/d3');
@@ -65604,7 +65607,9 @@ function _relayout(gd, aobj) {
65604
65607
  if(parentFull.autorange) flags.calc = true;
65605
65608
  else flags.plot = true;
65606
65609
  } else {
65607
- if((fullLayout._has('scatter-like') && fullLayout._has('regl')) &&
65610
+ if(ai === 'dragmode' && ((vi === false && vOld !== false) || (vi !== false && vOld === false))) {
65611
+ flags.plot = true;
65612
+ } else if((fullLayout._has('scatter-like') && fullLayout._has('regl')) &&
65608
65613
  (ai === 'dragmode' &&
65609
65614
  (vi === 'lasso' || vi === 'select') &&
65610
65615
  !(vOld === 'lasso' || vOld === 'select'))
@@ -83942,7 +83947,7 @@ proto.fetchTopojson = function() {
83942
83947
  if(err.status === 404) {
83943
83948
  return reject(new Error([
83944
83949
  'plotly.js could not find topojson file at',
83945
- topojsonPath, '.',
83950
+ topojsonPath + '.',
83946
83951
  'Make sure the *topojsonURL* plot config option',
83947
83952
  'is set properly.'
83948
83953
  ].join(' ')));
@@ -89897,7 +89902,7 @@ function registerTraceModule(_module) {
89897
89902
  // add `PlotlyGeoAssets` global to stash references to all fetched
89898
89903
  // topojson / geojson data
89899
89904
  if((bpmName === 'geo' || bpmName === 'mapbox') &&
89900
- (typeof window !== undefined && window.PlotlyGeoAssets === undefined)
89905
+ (window.PlotlyGeoAssets === undefined)
89901
89906
  ) {
89902
89907
  window.PlotlyGeoAssets = {topojson: {}};
89903
89908
  }
@@ -95980,7 +95985,7 @@ function getSortFunc(opts, d2c) {
95980
95985
  'use strict';
95981
95986
 
95982
95987
  // package version injected by `npm run preprocess`
95983
- exports.version = '2.12.0';
95988
+ exports.version = '2.12.1';
95984
95989
 
95985
95990
  },{}]},{},[8])(8)
95986
95991
  });