@vizabi/bubblechart 5.0.2 → 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.2 build 1742891344967 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
  }
@@ -45086,6 +45074,7 @@ void main(void) {
45086
45074
  mobx.runInAction(() => {
45087
45075
  if (!this.MDL.trail.show) {
45088
45076
  this.__labelData = this.__selectedKeys.map(key => this.model.dataMap.get(key));
45077
+ this.opacityUpdateTrigger++;
45089
45078
  this.deckBubble.setProps({layers: this.getBubbleLayers(undefined, false)});
45090
45079
  }
45091
45080
  });
@@ -45097,6 +45086,7 @@ void main(void) {
45097
45086
  this.ui.opacitySelectDim;
45098
45087
  this.ui.opacityHighlight;
45099
45088
  this.ui.opacityHighlightDim;
45089
+ this.MDL.color.scale.d3Scale;
45100
45090
 
45101
45091
  this.opacityUpdateTrigger++;
45102
45092
  this.deckBubble.setProps({layers: this.getBubbleLayers(this.__data, false, 0)});
@@ -46146,7 +46136,7 @@ void main(void) {
46146
46136
  },{
46147
46137
  type: sharedComponents.DataWarning,
46148
46138
  placeholder: ".vzb-datawarning",
46149
- options: {button: ".vzb-datawarning-button"},
46139
+ options: {appendButtonHere: ".vzb-repeater"},
46150
46140
  model: marker,
46151
46141
  name: "data-warning"
46152
46142
  },{
@@ -46257,6 +46247,13 @@ void main(void) {
46257
46247
  left: 0,
46258
46248
  top: 0
46259
46249
  }
46250
+ },
46251
+ "data-warning": {
46252
+ margin: {
46253
+ LARGE: { bottom: 90 },
46254
+ MEDIUM: { bottom: 70 },
46255
+ SMALL: { bottom: 50 }
46256
+ }
46260
46257
  }
46261
46258
  };
46262
46259
 
@@ -46320,7 +46317,7 @@ void main(void) {
46320
46317
  }
46321
46318
  });
46322
46319
 
46323
- BubbleChart.versionInfo = { version: "5.0.2", build: 1742891344967, 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};
46324
46321
 
46325
46322
  exports.Base = BubbleChart;
46326
46323