@vizabi/bubblechart 4.3.0 → 4.4.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/build/bubblechart.css +0 -8
- package/build/bubblechart.js +14 -19
- package/build/bubblechart.js.map +1 -1
- package/build/stats.html +1 -1
- package/package.json +2 -2
package/build/bubblechart.css
CHANGED
|
@@ -300,14 +300,6 @@
|
|
|
300
300
|
visibility: hidden;
|
|
301
301
|
pointer-events: none;
|
|
302
302
|
}
|
|
303
|
-
.vzb-tool .vzb-bubblechart.vzb-sm-chart .vzb-datawarning-button {
|
|
304
|
-
visibility: hidden;
|
|
305
|
-
pointer-events: none;
|
|
306
|
-
}
|
|
307
|
-
.vzb-tool .vzb-bubblechart.vzb-sm-last-chart .vzb-datawarning-button {
|
|
308
|
-
visibility: visible;
|
|
309
|
-
pointer-events: all;
|
|
310
|
-
}
|
|
311
303
|
.vzb-tool .vzb-bubblechart .vzb-bubblechart-svg-front {
|
|
312
304
|
pointer-events: none;
|
|
313
305
|
}
|
package/build/bubblechart.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// https://github.com/vizabi/bubblechart#readme v4.
|
|
1
|
+
// https://github.com/vizabi/bubblechart#readme v4.4.1 build 1743007879199 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) :
|
|
@@ -1256,7 +1256,7 @@
|
|
|
1256
1256
|
|
|
1257
1257
|
const PROFILE_CONSTANTS = (width, height) => ({
|
|
1258
1258
|
SMALL: {
|
|
1259
|
-
margin: { top: 30, bottom:
|
|
1259
|
+
margin: { top: 30, bottom: 40, left: 30, right: 10},
|
|
1260
1260
|
leftMarginRatio: 1,
|
|
1261
1261
|
padding: 2,
|
|
1262
1262
|
minRadiusPx: 0.5,
|
|
@@ -1268,7 +1268,7 @@
|
|
|
1268
1268
|
xAxisTitleBottomMargin: 4
|
|
1269
1269
|
},
|
|
1270
1270
|
MEDIUM: {
|
|
1271
|
-
margin: { top: 15, bottom:
|
|
1271
|
+
margin: { top: 15, bottom: 45, left: 40, right: 15},
|
|
1272
1272
|
leftMarginRatio: 1.6,
|
|
1273
1273
|
padding: 2,
|
|
1274
1274
|
minRadiusPx: 1,
|
|
@@ -1357,7 +1357,6 @@
|
|
|
1357
1357
|
|
|
1358
1358
|
<rect class="vzb-bc-zoom-rect"></rect>
|
|
1359
1359
|
</g>
|
|
1360
|
-
<g class="vzb-datawarning-button vzb-noexport"></g>
|
|
1361
1360
|
</svg>
|
|
1362
1361
|
<svg class="vzb-bubblechart-svg-front">
|
|
1363
1362
|
<g class="vzb-bc-graph">
|
|
@@ -2104,11 +2103,11 @@
|
|
|
2104
2103
|
|
|
2105
2104
|
const _this = this;
|
|
2106
2105
|
|
|
2107
|
-
|
|
2106
|
+
this.services.layout.profile;
|
|
2108
2107
|
|
|
2109
2108
|
const margin = this.profileConstants.margin;
|
|
2110
2109
|
const infoElHeight = this.profileConstants.infoElHeight;
|
|
2111
|
-
|
|
2110
|
+
this.profileConstants.xAxisTitleBottomMargin;
|
|
2112
2111
|
|
|
2113
2112
|
//stage
|
|
2114
2113
|
const height = this.height = (this.elementHeight - margin.top - margin.bottom) || 0;
|
|
@@ -2205,17 +2204,6 @@
|
|
|
2205
2204
|
xAxisGroupsEl
|
|
2206
2205
|
.style("font-size", infoElHeight * 0.8 + "px");
|
|
2207
2206
|
|
|
2208
|
-
this.root.findChild({type: "_DataWarning"}).setOptions({
|
|
2209
|
-
width: this.elementWidth,
|
|
2210
|
-
height: this.elementHeight,
|
|
2211
|
-
vertical: "bottom",
|
|
2212
|
-
horizontal: "right",
|
|
2213
|
-
right: margin.right,
|
|
2214
|
-
bottom: xAxisTitleBottomMargin,
|
|
2215
|
-
wLimit: (layoutProfile !== "SMALL" ? 0.5 : 1) *
|
|
2216
|
-
(this.elementWidth - this.DOM.graph.select(".vzb-bc-axis-x-title").node().getBBox().width - infoElHeight * 3)
|
|
2217
|
-
});
|
|
2218
|
-
|
|
2219
2207
|
}
|
|
2220
2208
|
|
|
2221
2209
|
|
|
@@ -2738,7 +2726,7 @@
|
|
|
2738
2726
|
},{
|
|
2739
2727
|
type: sharedComponents.DataWarning,
|
|
2740
2728
|
placeholder: ".vzb-datawarning",
|
|
2741
|
-
options: {
|
|
2729
|
+
options: {appendButtonHere: ".vzb-repeater"},
|
|
2742
2730
|
model: marker,
|
|
2743
2731
|
name: "data-warning"
|
|
2744
2732
|
},{
|
|
@@ -2849,6 +2837,13 @@
|
|
|
2849
2837
|
left: 0,
|
|
2850
2838
|
top: 0
|
|
2851
2839
|
}
|
|
2840
|
+
},
|
|
2841
|
+
"data-warning": {
|
|
2842
|
+
margin: {
|
|
2843
|
+
LARGE: { bottom: 90 },
|
|
2844
|
+
MEDIUM: { bottom: 70 },
|
|
2845
|
+
SMALL: { bottom: 50 }
|
|
2846
|
+
}
|
|
2852
2847
|
}
|
|
2853
2848
|
};
|
|
2854
2849
|
|
|
@@ -2912,7 +2907,7 @@
|
|
|
2912
2907
|
}
|
|
2913
2908
|
});
|
|
2914
2909
|
|
|
2915
|
-
BubbleChart.versionInfo = { version: "4.
|
|
2910
|
+
BubbleChart.versionInfo = { version: "4.4.1", build: 1743007879199, package: {"homepage":"https://github.com/vizabi/bubblechart#readme","name":"@vizabi/bubblechart","description":"Vizabi bubble chart"}, sharedComponents: sharedComponents.versionInfo};
|
|
2916
2911
|
|
|
2917
2912
|
exports.Base = BubbleChart;
|
|
2918
2913
|
|