@vizabi/bubblechart 5.5.2 → 5.5.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 -8
- 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.5.
|
|
1
|
+
// https://github.com/vizabi/bubblechart#readme v5.5.3 build 1768916445428 Copyright 2026 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'), require('@deck.gl/core'), require('@deck.gl/layers')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', '@vizabi/shared-components', 'd3', 'mobx', '@deck.gl/core', '@deck.gl/layers'], factory) :
|
|
@@ -2156,6 +2156,7 @@ void main(void) {
|
|
|
2156
2156
|
this.dragX;
|
|
2157
2157
|
this.dragY;
|
|
2158
2158
|
this.redrawUpdateTrigger = 0;
|
|
2159
|
+
this.lastLineRedrawUpdateTrigger = 0;
|
|
2159
2160
|
this.opacityUpdateTrigger = 0;
|
|
2160
2161
|
}
|
|
2161
2162
|
|
|
@@ -2695,7 +2696,7 @@ void main(void) {
|
|
|
2695
2696
|
//requestAnimationFrame(() => {
|
|
2696
2697
|
this.deckBubble.setProps({layers: this.getBubbleLayers(this.__oldData, false, 0, undefined, this.__lastLineTrailData)});
|
|
2697
2698
|
requestAnimationFrame(() => {
|
|
2698
|
-
this.
|
|
2699
|
+
this.lastLineRedrawUpdateTrigger++;
|
|
2699
2700
|
this.deckBubble.setProps({layers: this.getBubbleLayers(this.__oldData, true, 0.001, undefined, this.__lastLineTrailData)});
|
|
2700
2701
|
requestAnimationFrame(() => {
|
|
2701
2702
|
this.redrawUpdateTrigger++;
|
|
@@ -2788,8 +2789,6 @@ void main(void) {
|
|
|
2788
2789
|
return true;
|
|
2789
2790
|
});
|
|
2790
2791
|
|
|
2791
|
-
this.labelZScale = d3.scaleLinear([0, selectedData.size - 1],[-0.09, -0.05]);
|
|
2792
|
-
|
|
2793
2792
|
if (newTrailsData.length) {
|
|
2794
2793
|
newTrailsData.forEach(d => {
|
|
2795
2794
|
if (!d[TRAIL_KEY]) return;
|
|
@@ -2855,8 +2854,16 @@ void main(void) {
|
|
|
2855
2854
|
} = this.profileConstants;
|
|
2856
2855
|
|
|
2857
2856
|
//transfer min max radius to size dialog via root ui observable (probably a cleaner way is possible)
|
|
2858
|
-
this.root.ui.minMaxRadius
|
|
2859
|
-
|
|
2857
|
+
if (this.root.ui.minMaxRadius) {
|
|
2858
|
+
this.root.ui.minMaxRadius.min = minRadiusPx;
|
|
2859
|
+
this.root.ui.minMaxRadius.max = maxRadiusPx;
|
|
2860
|
+
} else {
|
|
2861
|
+
this.root.ui.minMaxRadius = {
|
|
2862
|
+
min: minRadiusPx,
|
|
2863
|
+
max: maxRadiusPx
|
|
2864
|
+
};
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2860
2867
|
const extent = this.MDL.size.scale.extent || [0, 1];
|
|
2861
2868
|
|
|
2862
2869
|
let minArea = sharedComponents.LegacyUtils.radiusToArea(Math.max(maxRadiusPx * extent[0], minRadiusPx));
|
|
@@ -2899,6 +2906,7 @@ void main(void) {
|
|
|
2899
2906
|
this.__selectedMarkers = new Map(selectedFilter.markers);
|
|
2900
2907
|
this.__selectedKeys = [...this.__selectedMarkers.keys()];
|
|
2901
2908
|
|
|
2909
|
+
this.labelZScale = d3.scaleLinear([0, this.__selectedKeys.length - 1],[-0.09, -0.05]);
|
|
2902
2910
|
|
|
2903
2911
|
Object.keys(this.labelOffset).forEach(key => {
|
|
2904
2912
|
if (!this.__selectedMarkers.has(key)) delete this.labelOffset[key];
|
|
@@ -3653,7 +3661,7 @@ void main(void) {
|
|
|
3653
3661
|
getWidth: this.props.getLastTrailLineWidth,
|
|
3654
3662
|
updateTriggers: {
|
|
3655
3663
|
getColor: [this.activeObject, this.opacityUpdateTrigger],
|
|
3656
|
-
getTargetPosition: [this.redrawUpdateTrigger]
|
|
3664
|
+
getTargetPosition: [this.redrawUpdateTrigger, this.lastLineRedrawUpdateTrigger]
|
|
3657
3665
|
},
|
|
3658
3666
|
transitions: t ? {
|
|
3659
3667
|
getTargetPosition: {
|
|
@@ -4248,7 +4256,7 @@ void main(void) {
|
|
|
4248
4256
|
},
|
|
4249
4257
|
};
|
|
4250
4258
|
|
|
4251
|
-
BubbleChart.versionInfo = { version: "5.5.
|
|
4259
|
+
BubbleChart.versionInfo = { version: "5.5.3", build: 1768916445428, package: {"homepage":"https://github.com/vizabi/bubblechart#readme","name":"@vizabi/bubblechart","description":"Vizabi bubble chart"}, sharedComponents: sharedComponents.versionInfo};
|
|
4252
4260
|
|
|
4253
4261
|
exports.Base = BubbleChart;
|
|
4254
4262
|
|