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.
- package/CHANGELOG.md +9 -0
- package/README.md +3 -3
- package/build/plotcss.js +2 -2
- package/dist/README.md +21 -21
- package/dist/plot-schema.json +355 -355
- package/dist/plotly-basic.js +14 -9
- package/dist/plotly-basic.min.js +3 -3
- package/dist/plotly-cartesian.js +14 -9
- package/dist/plotly-cartesian.min.js +3 -3
- package/dist/plotly-finance.js +14 -9
- package/dist/plotly-finance.min.js +3 -3
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +15 -10
- package/dist/plotly-geo.min.js +3 -3
- package/dist/plotly-gl2d.js +14 -9
- package/dist/plotly-gl2d.min.js +3 -3
- package/dist/plotly-gl3d.js +14 -9
- package/dist/plotly-gl3d.min.js +3 -3
- package/dist/plotly-mapbox.js +14 -9
- package/dist/plotly-mapbox.min.js +3 -3
- package/dist/plotly-strict.js +28 -16
- package/dist/plotly-strict.min.js +3 -3
- package/dist/plotly-with-meta.js +91 -91
- package/dist/plotly.js +28 -16
- package/dist/plotly.min.js +3 -3
- package/package.json +10 -10
- package/src/components/colorscale/attributes.js +46 -54
- package/src/components/modebar/manage.js +4 -1
- package/src/plot_api/plot_api.js +3 -1
- package/src/plots/geo/geo.js +1 -1
- package/src/plots/polar/polar.js +13 -6
- package/src/registry.js +1 -1
- package/src/traces/pointcloud/attributes.js +1 -1
- package/src/traces/sankey/attributes.js +2 -6
- package/src/traces/surface/attributes.js +10 -10
- package/src/traces/table/attributes.js +4 -4
- package/src/traces/violin/attributes.js +1 -1
- package/src/version.js +1 -1
package/dist/plotly-gl3d.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (gl3d) v2.12.
|
|
2
|
+
* plotly.js (gl3d) 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:
|
|
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
|
|
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;",
|
|
@@ -23594,7 +23594,7 @@ module.exports = function colorScaleAttrs(context, opts) {
|
|
|
23594
23594
|
}
|
|
23595
23595
|
|
|
23596
23596
|
var effectDesc = onlyIfNumerical ?
|
|
23597
|
-
' Has an effect only if ' + colorAttrFull + 'is set to a numerical array.' :
|
|
23597
|
+
' Has an effect only if ' + colorAttrFull + ' is set to a numerical array.' :
|
|
23598
23598
|
'';
|
|
23599
23599
|
|
|
23600
23600
|
var auto = cLetter + 'auto';
|
|
@@ -34402,6 +34402,7 @@ var isUnifiedHover = _dereq_('../fx/helpers').isUnifiedHover;
|
|
|
34402
34402
|
var createModeBar = _dereq_('./modebar');
|
|
34403
34403
|
var modeBarButtons = _dereq_('./buttons');
|
|
34404
34404
|
var DRAW_MODES = _dereq_('./constants').DRAW_MODES;
|
|
34405
|
+
var extendDeep = _dereq_('../../lib').extendDeep;
|
|
34405
34406
|
|
|
34406
34407
|
/**
|
|
34407
34408
|
* ModeBar wrapper around 'create' and 'update',
|
|
@@ -34724,7 +34725,9 @@ function appendButtonsToGroups(groups, buttons) {
|
|
|
34724
34725
|
}
|
|
34725
34726
|
|
|
34726
34727
|
// fill in custom buttons referring to default mode bar buttons
|
|
34727
|
-
function fillCustomButton(
|
|
34728
|
+
function fillCustomButton(originalModeBarButtons) {
|
|
34729
|
+
var customButtons = extendDeep([], originalModeBarButtons);
|
|
34730
|
+
|
|
34728
34731
|
for(var i = 0; i < customButtons.length; i++) {
|
|
34729
34732
|
var buttonGroup = customButtons[i];
|
|
34730
34733
|
|
|
@@ -34747,7 +34750,7 @@ function fillCustomButton(customButtons) {
|
|
|
34747
34750
|
return customButtons;
|
|
34748
34751
|
}
|
|
34749
34752
|
|
|
34750
|
-
},{"../../plots/cartesian/axis_ids":305,"../../registry":352,"../../traces/scatter/subtypes":406,"../fx/helpers":155,"./buttons":179,"./constants":180,"./modebar":184}],184:[function(_dereq_,module,exports){
|
|
34753
|
+
},{"../../lib":252,"../../plots/cartesian/axis_ids":305,"../../registry":352,"../../traces/scatter/subtypes":406,"../fx/helpers":155,"./buttons":179,"./constants":180,"./modebar":184}],184:[function(_dereq_,module,exports){
|
|
34751
34754
|
'use strict';
|
|
34752
34755
|
|
|
34753
34756
|
var d3 = _dereq_('@plotly/d3');
|
|
@@ -52216,7 +52219,9 @@ function _relayout(gd, aobj) {
|
|
|
52216
52219
|
if(parentFull.autorange) flags.calc = true;
|
|
52217
52220
|
else flags.plot = true;
|
|
52218
52221
|
} else {
|
|
52219
|
-
if(
|
|
52222
|
+
if(ai === 'dragmode' && ((vi === false && vOld !== false) || (vi !== false && vOld === false))) {
|
|
52223
|
+
flags.plot = true;
|
|
52224
|
+
} else if((fullLayout._has('scatter-like') && fullLayout._has('regl')) &&
|
|
52220
52225
|
(ai === 'dragmode' &&
|
|
52221
52226
|
(vi === 'lasso' || vi === 'select') &&
|
|
52222
52227
|
!(vOld === 'lasso' || vOld === 'select'))
|
|
@@ -76473,7 +76478,7 @@ function registerTraceModule(_module) {
|
|
|
76473
76478
|
// add `PlotlyGeoAssets` global to stash references to all fetched
|
|
76474
76479
|
// topojson / geojson data
|
|
76475
76480
|
if((bpmName === 'geo' || bpmName === 'mapbox') &&
|
|
76476
|
-
(
|
|
76481
|
+
(window.PlotlyGeoAssets === undefined)
|
|
76477
76482
|
) {
|
|
76478
76483
|
window.PlotlyGeoAssets = {topojson: {}};
|
|
76479
76484
|
}
|
|
@@ -86885,7 +86890,7 @@ function getSortFunc(opts, d2c) {
|
|
|
86885
86890
|
'use strict';
|
|
86886
86891
|
|
|
86887
86892
|
// package version injected by `npm run preprocess`
|
|
86888
|
-
exports.version = '2.12.
|
|
86893
|
+
exports.version = '2.12.1';
|
|
86889
86894
|
|
|
86890
86895
|
},{}],435:[function(_dereq_,module,exports){
|
|
86891
86896
|
(function (global){(function (){
|