@vizabi/bubblechart 5.2.2 → 5.2.3
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/build/bubblechart.js +16 -4
- package/build/bubblechart.js.map +1 -1
- package/build/stats.html +1 -1
- package/package.json +1 -1
package/build/bubblechart.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// https://github.com/vizabi/bubblechart#readme v5.2.
|
|
1
|
+
// https://github.com/vizabi/bubblechart#readme v5.2.3 build 1748252204619 Copyright 2025 Gapminder Foundation and contributors
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@vizabi/shared-components'), require('d3'), require('mobx')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', '@vizabi/shared-components', 'd3', 'mobx'], factory) :
|
|
@@ -44913,6 +44913,7 @@ void main(void) {
|
|
|
44913
44913
|
let trailChunkIndex = 0;
|
|
44914
44914
|
let trailChunkIndex1 = 0;
|
|
44915
44915
|
let indexOffset;
|
|
44916
|
+
let newData = [];
|
|
44916
44917
|
//let deltaTrailChunkIndex = 0;
|
|
44917
44918
|
let currentTrailKey = null;
|
|
44918
44919
|
//const _updateRanges = [];
|
|
@@ -44925,7 +44926,7 @@ void main(void) {
|
|
|
44925
44926
|
let dataTrailChunkIndex;
|
|
44926
44927
|
const trailsShowAndSomeSelected = this.MDL.trail.show && this.__someSelected;
|
|
44927
44928
|
|
|
44928
|
-
|
|
44929
|
+
if (trailsShowAndSomeSelected) newData = this.model.dataArray.reduce((res, d, i) => {
|
|
44929
44930
|
d.r = sharedComponents.LegacyUtils.areaToRadius(this.sScale(d.size || 0));
|
|
44930
44931
|
if (d[TRAIL_KEY]) {
|
|
44931
44932
|
if (!currentTrailKey) {
|
|
@@ -44965,7 +44966,18 @@ void main(void) {
|
|
|
44965
44966
|
}
|
|
44966
44967
|
return res;
|
|
44967
44968
|
|
|
44968
|
-
}, [])
|
|
44969
|
+
}, []);
|
|
44970
|
+
|
|
44971
|
+
//handle a situation when user is using opacity feature to hide unselected bubbles completely
|
|
44972
|
+
//the invisible bubbles should be completely transparent to mouse events, better yet not exist at all
|
|
44973
|
+
//it is convenient to do here because we are running O(N) filter for other purposes anyway
|
|
44974
|
+
else if (this.__someSelected && this.ui.opacitySelectDim === 0) newData = this.model.dataArray.filter(d => {
|
|
44975
|
+
if (d[REQUIRED_KEY] || !this.MDL.selected.data.filter.markers.has(d[KEY])) return false;
|
|
44976
|
+
d.r = sharedComponents.LegacyUtils.areaToRadius(this.sScale(d.size || 0));
|
|
44977
|
+
return true;
|
|
44978
|
+
});
|
|
44979
|
+
|
|
44980
|
+
else newData = this.model.dataArray.filter(d => {
|
|
44969
44981
|
if (d[REQUIRED_KEY]) return false;
|
|
44970
44982
|
d.r = sharedComponents.LegacyUtils.areaToRadius(this.sScale(d.size || 0));
|
|
44971
44983
|
return true;
|
|
@@ -46340,7 +46352,7 @@ void main(void) {
|
|
|
46340
46352
|
}
|
|
46341
46353
|
});
|
|
46342
46354
|
|
|
46343
|
-
BubbleChart.versionInfo = { version: "5.2.
|
|
46355
|
+
BubbleChart.versionInfo = { version: "5.2.3", build: 1748252204619, package: {"homepage":"https://github.com/vizabi/bubblechart#readme","name":"@vizabi/bubblechart","description":"Vizabi bubble chart"}, sharedComponents: sharedComponents.versionInfo};
|
|
46344
46356
|
|
|
46345
46357
|
exports.Base = BubbleChart;
|
|
46346
46358
|
|