@vizabi/bubblechart 5.2.0 → 5.2.2

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.
@@ -1,4 +1,4 @@
1
- // https://github.com/vizabi/bubblechart#readme v5.2.0 build 1746287297708 Copyright 2025 Gapminder Foundation and contributors
1
+ // https://github.com/vizabi/bubblechart#readme v5.2.2 build 1747332366038 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) :
@@ -39,7 +39,7 @@
39
39
 
40
40
  this.zoomer
41
41
  .filter(this.zoomFilter())
42
- .scaleExtent([0.0625, +Infinity])
42
+ .scaleExtent([1, 100])
43
43
  .on("start", this.zoom().start)
44
44
  .on("zoom", this.zoom().go)
45
45
  .on("end", this.zoom().stop);
@@ -44454,6 +44454,14 @@ void main(void) {
44454
44454
  this.props = this.getProps();
44455
44455
 
44456
44456
  this._panZoom.zoomSelection(this.DOM.canvasWrap.select("canvas"));
44457
+ this.DOM.canvasWrap.select("canvas").node()
44458
+ .addEventListener("wheel", e => {
44459
+ if(!_this.ui?.zoomOnScrolling) return;
44460
+ e.preventDefault();
44461
+ e.stopPropagation();
44462
+ },
44463
+ { passive: false }
44464
+ );
44457
44465
  this.DOM.canvasWrap.select("canvas")
44458
44466
  .call(this._panZoom.dragRectangle)
44459
44467
  .call(this._panZoom.zoomer)
@@ -45291,6 +45299,7 @@ void main(void) {
45291
45299
  }
45292
45300
  return;
45293
45301
  }
45302
+
45294
45303
  const _this = this;
45295
45304
  this.superHighlightFilter = superHighlightFilter;
45296
45305
  this.__superHLBlink = false;
@@ -45304,7 +45313,8 @@ void main(void) {
45304
45313
 
45305
45314
  loop();
45306
45315
  }, SUPERHIGHLIGHT_DELAY);
45307
- }
45316
+ }
45317
+
45308
45318
  }
45309
45319
 
45310
45320
  _selectDataPoints() {
@@ -45467,7 +45477,9 @@ void main(void) {
45467
45477
  },
45468
45478
  getTooltipText: (d) => {
45469
45479
  if (!d) return;
45470
- return d[TRAIL_KEY] || this.__selectedMarkers.has(d[KEY])? this.localise(d.frame) : this.__labelWithoutFrame(d);
45480
+ return this.ui.labels.enabled ? d[TRAIL_KEY] || this.__selectedMarkers.has(d[KEY]) ? this.localise(d.frame) : this.__labelWithoutFrame(d)
45481
+ :
45482
+ d[TRAIL_KEY] ? this.__labelWithFrame(d) : this.__labelWithoutFrame(d);
45471
45483
  },
45472
45484
  getLabelPosition: (d) => {
45473
45485
  if (!d) return;
@@ -45952,7 +45964,7 @@ void main(void) {
45952
45964
  getTextAnchor: 'end',
45953
45965
  getAlignmentBaseline: 'bottom',
45954
45966
  getDragged: this.props.getDragged,
45955
- pickable: true,
45967
+ pickable: false,
45956
45968
  background: !this.ui.labels.removeLabelBox,
45957
45969
  backgroundPadding: [6, 4],
45958
45970
  getBorderWidth: 1,
@@ -46080,8 +46092,8 @@ void main(void) {
46080
46092
 
46081
46093
  __tooltipDataFilter() {
46082
46094
  const index = this.__selectedKeys.indexOf(this.activeObject[TRAIL_KEY] || this.activeObject[KEY]);
46083
- return this.MDL.trail.show ? this.activeObject.frame != this.__labelData[index]?.frame || ((this.activeObject[TRAIL_KEY] || this.activeObject[KEY]) != this.__labelData[index]?.[TRAIL_KEY])
46084
- : index == -1;
46095
+ return !this.ui.labels.enabled || (this.MDL.trail.show ? this.activeObject.frame != this.__labelData[index]?.frame || ((this.activeObject[TRAIL_KEY] || this.activeObject[KEY]) != this.__labelData[index]?.[TRAIL_KEY])
46096
+ : index == -1);
46085
46097
  }
46086
46098
 
46087
46099
  get zScale() {
@@ -46328,7 +46340,7 @@ void main(void) {
46328
46340
  }
46329
46341
  });
46330
46342
 
46331
- BubbleChart.versionInfo = { version: "5.2.0", build: 1746287297708, package: {"homepage":"https://github.com/vizabi/bubblechart#readme","name":"@vizabi/bubblechart","description":"Vizabi bubble chart"}, sharedComponents: sharedComponents.versionInfo};
46343
+ BubbleChart.versionInfo = { version: "5.2.2", build: 1747332366038, package: {"homepage":"https://github.com/vizabi/bubblechart#readme","name":"@vizabi/bubblechart","description":"Vizabi bubble chart"}, sharedComponents: sharedComponents.versionInfo};
46332
46344
 
46333
46345
  exports.Base = BubbleChart;
46334
46346