Skip to content

Commit

Permalink
2.13.3
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Jul 25, 2022
1 parent 310c232 commit 08f621b
Show file tree
Hide file tree
Showing 24 changed files with 409 additions and 199 deletions.
50 changes: 25 additions & 25 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
| 8.4 MB | 3.5 MB | 1 MB | 8.7 MB |

#### CDN links
> https://cdn.plot.ly/plotly-2.13.2.js
> https://cdn.plot.ly/plotly-2.13.3.js
> https://cdn.plot.ly/plotly-2.13.2.min.js
> https://cdn.plot.ly/plotly-2.13.3.min.js

#### npm packages
Expand Down Expand Up @@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.7 MB | 997.9 kB | 324.5 kB |
| 2.7 MB | 998.2 kB | 324.6 kB |

#### CDN links
> https://cdn.plot.ly/plotly-basic-2.13.2.js
> https://cdn.plot.ly/plotly-basic-2.13.3.js
> https://cdn.plot.ly/plotly-basic-2.13.2.min.js
> https://cdn.plot.ly/plotly-basic-2.13.3.min.js

#### npm packages
Expand All @@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.4 MB | 1.2 MB | 397.6 kB |
| 3.4 MB | 1.2 MB | 397.7 kB |

#### CDN links
> https://cdn.plot.ly/plotly-cartesian-2.13.2.js
> https://cdn.plot.ly/plotly-cartesian-2.13.3.js
> https://cdn.plot.ly/plotly-cartesian-2.13.2.min.js
> https://cdn.plot.ly/plotly-cartesian-2.13.3.min.js

#### npm packages
Expand All @@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.1 MB | 1.1 MB | 367.2 kB |
| 3.1 MB | 1.1 MB | 367.3 kB |

#### CDN links
> https://cdn.plot.ly/plotly-geo-2.13.2.js
> https://cdn.plot.ly/plotly-geo-2.13.3.js
> https://cdn.plot.ly/plotly-geo-2.13.2.min.js
> https://cdn.plot.ly/plotly-geo-2.13.3.min.js

#### npm packages
Expand All @@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.9 MB | 1.5 MB | 488.3 kB |
| 3.9 MB | 1.5 MB | 488.4 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl3d-2.13.2.js
> https://cdn.plot.ly/plotly-gl3d-2.13.3.js
> https://cdn.plot.ly/plotly-gl3d-2.13.2.min.js
> https://cdn.plot.ly/plotly-gl3d-2.13.3.min.js

#### npm packages
Expand All @@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.4 MB | 1.8 MB | 580.5 kB |
| 4.4 MB | 1.8 MB | 580.6 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl2d-2.13.2.js
> https://cdn.plot.ly/plotly-gl2d-2.13.3.js
> https://cdn.plot.ly/plotly-gl2d-2.13.2.min.js
> https://cdn.plot.ly/plotly-gl2d-2.13.3.min.js

#### npm packages
Expand All @@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.4 MB | 1.7 MB | 521.4 kB |
| 4.4 MB | 1.7 MB | 521.5 kB |

#### CDN links
> https://cdn.plot.ly/plotly-mapbox-2.13.2.js
> https://cdn.plot.ly/plotly-mapbox-2.13.3.js
> https://cdn.plot.ly/plotly-mapbox-2.13.2.min.js
> https://cdn.plot.ly/plotly-mapbox-2.13.3.min.js

#### npm packages
Expand All @@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3 MB | 1.1 MB | 357.2 kB |
| 3 MB | 1.1 MB | 357.3 kB |

#### CDN links
> https://cdn.plot.ly/plotly-finance-2.13.2.js
> https://cdn.plot.ly/plotly-finance-2.13.3.js
> https://cdn.plot.ly/plotly-finance-2.13.2.min.js
> https://cdn.plot.ly/plotly-finance-2.13.3.min.js

#### npm packages
Expand All @@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
| 8.8 MB | 3.9 MB | 1.1 MB |

#### CDN links
> https://cdn.plot.ly/plotly-strict-2.13.2.js
> https://cdn.plot.ly/plotly-strict-2.13.3.js
> https://cdn.plot.ly/plotly-strict-2.13.2.min.js
> https://cdn.plot.ly/plotly-strict-2.13.3.min.js

#### npm packages
Expand Down
51 changes: 36 additions & 15 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v2.13.2
* plotly.js (basic) v2.13.3
* Copyright 2012-2022, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -36716,6 +36716,8 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
}

if(selectionErased) {
gd._fullLayout._noEmitSelectedAtStart = true;

Registry.call('_guiRelayout', gd, {
selections: list
});
Expand Down Expand Up @@ -36857,10 +36859,10 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
displayOutlines(convertPoly(mergedPolygons, isOpenMode), outlines, dragOptions);

if(isSelectMode) {
var _res = reselect(gd);
var _res = reselect(gd, false);
var extraPoints = _res.eventData ? _res.eventData.points.slice() : [];

_res = reselect(gd, selectionTesters, searchTraces, dragOptions);
_res = reselect(gd, false, selectionTesters, searchTraces, dragOptions);
selectionTesters = _res.selectionTesters;
eventData = _res.eventData;

Expand Down Expand Up @@ -36954,9 +36956,13 @@ function prepSelect(evt, startX, startY, dragOptions, mode) {
}
}

Registry.call('_guiRelayout', gd, {
selections: subSelections
});
if(subSelections.length < allSelections.length) {
gd._fullLayout._noEmitSelectedAtStart = true;

Registry.call('_guiRelayout', gd, {
selections: subSelections
});
}
}
}
} else {
Expand Down Expand Up @@ -37275,6 +37281,8 @@ function clearSelectionsCache(dragOptions, immediateSelect) {
selections = newSelections(outlines, dragOptions);
}
if(selections) {
gd._fullLayout._noEmitSelectedAtStart = true;

Registry.call('_guiRelayout', gd, {
selections: selections
}).then(function() {
Expand Down Expand Up @@ -37612,7 +37620,7 @@ function _doSelect(selectionTesters, searchTraces) {
return allSelections;
}

function reselect(gd, selectionTesters, searchTraces, dragOptions) {
function reselect(gd, mayEmitSelected, selectionTesters, searchTraces, dragOptions) {
var hadSearchTraces = !!searchTraces;
var plotinfo, xRef, yRef;
if(dragOptions) {
Expand Down Expand Up @@ -37735,15 +37743,15 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
updateSelectedState(gd, allSearchTraces, eventData);

var clickmode = fullLayout.clickmode;
var sendEvents = clickmode.indexOf('event') > -1;
var sendEvents = clickmode.indexOf('event') > -1 && mayEmitSelected;

if(
!plotinfo && // get called from plot_api & plots
fullLayout._reselect
mayEmitSelected
) {
if(sendEvents) {
var activePolygons = getLayoutPolygons(gd, true);
var activePolygons = getLayoutPolygons(gd, true);

if(activePolygons.length) {
var xref = activePolygons[0].xref;
var yref = activePolygons[0].yref;
if(xref && yref) {
Expand All @@ -37756,8 +37764,12 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {

fillRangeItems(eventData, poly);
}
}

emitSelected(gd, eventData);
if(gd._fullLayout._noEmitSelectedAtStart) {
gd._fullLayout._noEmitSelectedAtStart = false;
} else {
if(sendEvents) emitSelected(gd, eventData);
}

fullLayout._reselect = false;
Expand All @@ -37779,7 +37791,7 @@ function reselect(gd, selectionTesters, searchTraces, dragOptions) {
if(eventData.points.length) {
emitSelected(gd, eventData);
} else {
gd.emit('plotly_deselect', null);
emitDeselect(gd);
}
}

Expand Down Expand Up @@ -74526,7 +74538,16 @@ plots.redrag = function(gd) {
};

plots.reselect = function(gd) {
Registry.getComponentMethod('selections', 'reselect')(gd);
var fullLayout = gd._fullLayout;

var A = (gd.layout || {}).selections;
var B = fullLayout._previousSelections;
fullLayout._previousSelections = A;

var mayEmitSelected = fullLayout._reselect ||
JSON.stringify(A) !== JSON.stringify(B);

Registry.getComponentMethod('selections', 'reselect')(gd, mayEmitSelected);
};

plots.generalUpdatePerTraceModule = function(gd, subplot, subplotCalcData, subplotLayout) {
Expand Down Expand Up @@ -84688,7 +84709,7 @@ function getSortFunc(opts, d2c) {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '2.13.2';
exports.version = '2.13.3';

},{}]},{},[8])(8)
});
4 changes: 2 additions & 2 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 08f621b

Please sign in to comment.