@vizabi/bubblechart 5.0.3 → 5.1.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 v5.0.3 build 1742946433136 Copyright 2025 Gapminder Foundation and contributors
1
+ // https://github.com/vizabi/bubblechart#readme v5.1.0 build 1743007947150 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) :
@@ -44201,7 +44201,7 @@ void main(void) {
44201
44201
 
44202
44202
  const PROFILE_CONSTANTS = (width, height) => ({
44203
44203
  SMALL: {
44204
- margin: { top: 30, bottom: 35, left: 30, right: 10},
44204
+ margin: { top: 30, bottom: 40, left: 30, right: 10},
44205
44205
  leftMarginRatio: 1,
44206
44206
  padding: 2,
44207
44207
  minRadiusPx: 0.5,
@@ -44213,7 +44213,7 @@ void main(void) {
44213
44213
  xAxisTitleBottomMargin: 4
44214
44214
  },
44215
44215
  MEDIUM: {
44216
- margin: { top: 15, bottom: 40, left: 40, right: 15},
44216
+ margin: { top: 15, bottom: 45, left: 40, right: 15},
44217
44217
  leftMarginRatio: 1.6,
44218
44218
  padding: 2,
44219
44219
  minRadiusPx: 1,
@@ -44299,7 +44299,6 @@ void main(void) {
44299
44299
 
44300
44300
  <rect class="vzb-bc-zoom-rect"></rect>
44301
44301
  </g>
44302
- <g class="vzb-datawarning-button vzb-noexport"></g>
44303
44302
  </svg>
44304
44303
  </svg>
44305
44304
  <svg class="vzb-bubblechart-svg vzb-export">
@@ -44745,11 +44744,11 @@ void main(void) {
44745
44744
 
44746
44745
  const _this = this;
44747
44746
 
44748
- const layoutProfile = this.services.layout.profile;
44747
+ this.services.layout.profile;
44749
44748
 
44750
44749
  const margin = this.profileConstants.margin;
44751
44750
  const infoElHeight = this.profileConstants.infoElHeight;
44752
- const xAxisTitleBottomMargin = this.profileConstants.xAxisTitleBottomMargin;
44751
+ this.profileConstants.xAxisTitleBottomMargin;
44753
44752
 
44754
44753
  //stage
44755
44754
  const height = this.height = (this.elementHeight - margin.top - margin.bottom) || 0;
@@ -44848,17 +44847,6 @@ void main(void) {
44848
44847
  xAxisGroupsEl
44849
44848
  .style("font-size", infoElHeight * 0.8 + "px");
44850
44849
 
44851
- this.root.findChild({type: "_DataWarning"}).setOptions({
44852
- width: this.elementWidth,
44853
- height: this.elementHeight,
44854
- vertical: "bottom",
44855
- horizontal: "right",
44856
- right: margin.right,
44857
- bottom: xAxisTitleBottomMargin,
44858
- wLimit: (layoutProfile !== "SMALL" ? 0.5 : 1) *
44859
- (this.elementWidth - this.DOM.graph.select(".vzb-bc-axis-x-title").node().getBBox().width - infoElHeight * 3)
44860
- });
44861
-
44862
44850
  canvasWrap.style("max-width", width + "px");
44863
44851
  canvasWrap.style("max-height", Math.max(0, height) + "px");
44864
44852
  }
@@ -46148,7 +46136,7 @@ void main(void) {
46148
46136
  },{
46149
46137
  type: sharedComponents.DataWarning,
46150
46138
  placeholder: ".vzb-datawarning",
46151
- options: {button: ".vzb-datawarning-button"},
46139
+ options: {appendButtonHere: ".vzb-repeater"},
46152
46140
  model: marker,
46153
46141
  name: "data-warning"
46154
46142
  },{
@@ -46259,6 +46247,13 @@ void main(void) {
46259
46247
  left: 0,
46260
46248
  top: 0
46261
46249
  }
46250
+ },
46251
+ "data-warning": {
46252
+ margin: {
46253
+ LARGE: { bottom: 90 },
46254
+ MEDIUM: { bottom: 70 },
46255
+ SMALL: { bottom: 50 }
46256
+ }
46262
46257
  }
46263
46258
  };
46264
46259
 
@@ -46322,7 +46317,7 @@ void main(void) {
46322
46317
  }
46323
46318
  });
46324
46319
 
46325
- BubbleChart.versionInfo = { version: "5.0.3", build: 1742946433136, package: {"homepage":"https://github.com/vizabi/bubblechart#readme","name":"@vizabi/bubblechart","description":"Vizabi bubble chart"}, sharedComponents: sharedComponents.versionInfo};
46320
+ BubbleChart.versionInfo = { version: "5.1.0", build: 1743007947150, package: {"homepage":"https://github.com/vizabi/bubblechart#readme","name":"@vizabi/bubblechart","description":"Vizabi bubble chart"}, sharedComponents: sharedComponents.versionInfo};
46326
46321
 
46327
46322
  exports.Base = BubbleChart;
46328
46323