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 (cartesian) v2.12.0
2
+ * plotly.js (cartesian) 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;",
@@ -32074,7 +32074,7 @@ module.exports = function colorScaleAttrs(context, opts) {
32074
32074
  }
32075
32075
 
32076
32076
  var effectDesc = onlyIfNumerical ?
32077
- ' Has an effect only if ' + colorAttrFull + 'is set to a numerical array.' :
32077
+ ' Has an effect only if ' + colorAttrFull + ' is set to a numerical array.' :
32078
32078
  '';
32079
32079
 
32080
32080
  var auto = cLetter + 'auto';
@@ -42882,6 +42882,7 @@ var isUnifiedHover = _dereq_('../fx/helpers').isUnifiedHover;
42882
42882
  var createModeBar = _dereq_('./modebar');
42883
42883
  var modeBarButtons = _dereq_('./buttons');
42884
42884
  var DRAW_MODES = _dereq_('./constants').DRAW_MODES;
42885
+ var extendDeep = _dereq_('../../lib').extendDeep;
42885
42886
 
42886
42887
  /**
42887
42888
  * ModeBar wrapper around 'create' and 'update',
@@ -43204,7 +43205,9 @@ function appendButtonsToGroups(groups, buttons) {
43204
43205
  }
43205
43206
 
43206
43207
  // fill in custom buttons referring to default mode bar buttons
43207
- function fillCustomButton(customButtons) {
43208
+ function fillCustomButton(originalModeBarButtons) {
43209
+ var customButtons = extendDeep([], originalModeBarButtons);
43210
+
43208
43211
  for(var i = 0; i < customButtons.length; i++) {
43209
43212
  var buttonGroup = customButtons[i];
43210
43213
 
@@ -43227,7 +43230,7 @@ function fillCustomButton(customButtons) {
43227
43230
  return customButtons;
43228
43231
  }
43229
43232
 
43230
- },{"../../plots/cartesian/axis_ids":338,"../../registry":378,"../../traces/scatter/subtypes":525,"../fx/helpers":193,"./buttons":217,"./constants":218,"./modebar":222}],222:[function(_dereq_,module,exports){
43233
+ },{"../../lib":287,"../../plots/cartesian/axis_ids":338,"../../registry":378,"../../traces/scatter/subtypes":525,"../fx/helpers":193,"./buttons":217,"./constants":218,"./modebar":222}],222:[function(_dereq_,module,exports){
43231
43234
  'use strict';
43232
43235
 
43233
43236
  var d3 = _dereq_('@plotly/d3');
@@ -60510,7 +60513,9 @@ function _relayout(gd, aobj) {
60510
60513
  if(parentFull.autorange) flags.calc = true;
60511
60514
  else flags.plot = true;
60512
60515
  } else {
60513
- if((fullLayout._has('scatter-like') && fullLayout._has('regl')) &&
60516
+ if(ai === 'dragmode' && ((vi === false && vOld !== false) || (vi !== false && vOld === false))) {
60517
+ flags.plot = true;
60518
+ } else if((fullLayout._has('scatter-like') && fullLayout._has('regl')) &&
60514
60519
  (ai === 'dragmode' &&
60515
60520
  (vi === 'lasso' || vi === 'select') &&
60516
60521
  !(vOld === 'lasso' || vOld === 'select'))
@@ -83794,7 +83799,7 @@ function registerTraceModule(_module) {
83794
83799
  // add `PlotlyGeoAssets` global to stash references to all fetched
83795
83800
  // topojson / geojson data
83796
83801
  if((bpmName === 'geo' || bpmName === 'mapbox') &&
83797
- (typeof window !== undefined && window.PlotlyGeoAssets === undefined)
83802
+ (window.PlotlyGeoAssets === undefined)
83798
83803
  ) {
83799
83804
  window.PlotlyGeoAssets = {topojson: {}};
83800
83805
  }
@@ -103426,7 +103431,7 @@ function getSortFunc(opts, d2c) {
103426
103431
  'use strict';
103427
103432
 
103428
103433
  // package version injected by `npm run preprocess`
103429
- exports.version = '2.12.0';
103434
+ exports.version = '2.12.1';
103430
103435
 
103431
103436
  },{}]},{},[15])(15)
103432
103437
  });