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 (finance) v2.12.0
2
+ * plotly.js (finance) 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;",
@@ -24124,7 +24124,7 @@ module.exports = function colorScaleAttrs(context, opts) {
24124
24124
  }
24125
24125
 
24126
24126
  var effectDesc = onlyIfNumerical ?
24127
- ' Has an effect only if ' + colorAttrFull + 'is set to a numerical array.' :
24127
+ ' Has an effect only if ' + colorAttrFull + ' is set to a numerical array.' :
24128
24128
  '';
24129
24129
 
24130
24130
  var auto = cLetter + 'auto';
@@ -34932,6 +34932,7 @@ var isUnifiedHover = _dereq_('../fx/helpers').isUnifiedHover;
34932
34932
  var createModeBar = _dereq_('./modebar');
34933
34933
  var modeBarButtons = _dereq_('./buttons');
34934
34934
  var DRAW_MODES = _dereq_('./constants').DRAW_MODES;
34935
+ var extendDeep = _dereq_('../../lib').extendDeep;
34935
34936
 
34936
34937
  /**
34937
34938
  * ModeBar wrapper around 'create' and 'update',
@@ -35254,7 +35255,9 @@ function appendButtonsToGroups(groups, buttons) {
35254
35255
  }
35255
35256
 
35256
35257
  // fill in custom buttons referring to default mode bar buttons
35257
- function fillCustomButton(customButtons) {
35258
+ function fillCustomButton(originalModeBarButtons) {
35259
+ var customButtons = extendDeep([], originalModeBarButtons);
35260
+
35258
35261
  for(var i = 0; i < customButtons.length; i++) {
35259
35262
  var buttonGroup = customButtons[i];
35260
35263
 
@@ -35277,7 +35280,7 @@ function fillCustomButton(customButtons) {
35277
35280
  return customButtons;
35278
35281
  }
35279
35282
 
35280
- },{"../../plots/cartesian/axis_ids":293,"../../registry":328,"../../traces/scatter/subtypes":454,"../fx/helpers":147,"./buttons":171,"./constants":172,"./modebar":176}],176:[function(_dereq_,module,exports){
35283
+ },{"../../lib":242,"../../plots/cartesian/axis_ids":293,"../../registry":328,"../../traces/scatter/subtypes":454,"../fx/helpers":147,"./buttons":171,"./constants":172,"./modebar":176}],176:[function(_dereq_,module,exports){
35281
35284
  'use strict';
35282
35285
 
35283
35286
  var d3 = _dereq_('@plotly/d3');
@@ -52574,7 +52577,9 @@ function _relayout(gd, aobj) {
52574
52577
  if(parentFull.autorange) flags.calc = true;
52575
52578
  else flags.plot = true;
52576
52579
  } else {
52577
- if((fullLayout._has('scatter-like') && fullLayout._has('regl')) &&
52580
+ if(ai === 'dragmode' && ((vi === false && vOld !== false) || (vi !== false && vOld === false))) {
52581
+ flags.plot = true;
52582
+ } else if((fullLayout._has('scatter-like') && fullLayout._has('regl')) &&
52578
52583
  (ai === 'dragmode' &&
52579
52584
  (vi === 'lasso' || vi === 'select') &&
52580
52585
  !(vOld === 'lasso' || vOld === 'select'))
@@ -74723,7 +74728,7 @@ function registerTraceModule(_module) {
74723
74728
  // add `PlotlyGeoAssets` global to stash references to all fetched
74724
74729
  // topojson / geojson data
74725
74730
  if((bpmName === 'geo' || bpmName === 'mapbox') &&
74726
- (typeof window !== undefined && window.PlotlyGeoAssets === undefined)
74731
+ (window.PlotlyGeoAssets === undefined)
74727
74732
  ) {
74728
74733
  window.PlotlyGeoAssets = {topojson: {}};
74729
74734
  }
@@ -91218,7 +91223,7 @@ function getSortFunc(opts, d2c) {
91218
91223
  'use strict';
91219
91224
 
91220
91225
  // package version injected by `npm run preprocess`
91221
- exports.version = '2.12.0';
91226
+ exports.version = '2.12.1';
91222
91227
 
91223
91228
  },{}]},{},[12])(12)
91224
91229
  });