@vizabi/bubblechart 5.2.1 → 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.1 build 1746462563188 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)
@@ -46332,7 +46340,7 @@ void main(void) {
46332
46340
  }
46333
46341
  });
46334
46342
 
46335
- BubbleChart.versionInfo = { version: "5.2.1", build: 1746462563188, 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};
46336
46344
 
46337
46345
  exports.Base = BubbleChart;
46338
46346