@vizabi/bubblechart 4.3.0 → 4.4.0

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.
@@ -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
  }
@@ -1,4 +1,4 @@
1
- // https://github.com/vizabi/bubblechart#readme v4.3.0 build 1742823486243 Copyright 2025 Gapminder Foundation and contributors
1
+ // https://github.com/vizabi/bubblechart#readme v4.4.0 build 1743007605486 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: 35, left: 30, right: 10},
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: 40, left: 40, right: 15},
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
- const layoutProfile = this.services.layout.profile;
2106
+ this.services.layout.profile;
2108
2107
 
2109
2108
  const margin = this.profileConstants.margin;
2110
2109
  const infoElHeight = this.profileConstants.infoElHeight;
2111
- const xAxisTitleBottomMargin = this.profileConstants.xAxisTitleBottomMargin;
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,8 @@
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
-
2207
+ canvasWrap.style("max-width", width + "px");
2208
+ canvasWrap.style("max-height", Math.max(0, height) + "px");
2219
2209
  }
2220
2210
 
2221
2211
 
@@ -2738,7 +2728,7 @@
2738
2728
  },{
2739
2729
  type: sharedComponents.DataWarning,
2740
2730
  placeholder: ".vzb-datawarning",
2741
- options: {button: ".vzb-datawarning-button"},
2731
+ options: {appendButtonHere: ".vzb-repeater"},
2742
2732
  model: marker,
2743
2733
  name: "data-warning"
2744
2734
  },{
@@ -2849,6 +2839,13 @@
2849
2839
  left: 0,
2850
2840
  top: 0
2851
2841
  }
2842
+ },
2843
+ "data-warning": {
2844
+ margin: {
2845
+ LARGE: { bottom: 90 },
2846
+ MEDIUM: { bottom: 70 },
2847
+ SMALL: { bottom: 50 }
2848
+ }
2852
2849
  }
2853
2850
  };
2854
2851
 
@@ -2912,7 +2909,7 @@
2912
2909
  }
2913
2910
  });
2914
2911
 
2915
- BubbleChart.versionInfo = { version: "4.3.0", build: 1742823486243, package: {"homepage":"https://github.com/vizabi/bubblechart#readme","name":"@vizabi/bubblechart","description":"Vizabi bubble chart"}, sharedComponents: sharedComponents.versionInfo};
2912
+ BubbleChart.versionInfo = { version: "4.4.0", build: 1743007605486, package: {"homepage":"https://github.com/vizabi/bubblechart#readme","name":"@vizabi/bubblechart","description":"Vizabi bubble chart"}, sharedComponents: sharedComponents.versionInfo};
2916
2913
 
2917
2914
  exports.Base = BubbleChart;
2918
2915