@vizabi/bubblechart 4.2.0 → 4.3.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.
@@ -1,4 +1,4 @@
1
- // https://github.com/vizabi/bubblechart#readme v4.2.0 build 1738001668539 Copyright 2025 Gapminder Foundation and contributors
1
+ // https://github.com/vizabi/bubblechart#readme v4.3.0 build 1742823486243 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) :
@@ -2686,42 +2686,6 @@
2686
2686
  }
2687
2687
 
2688
2688
  _VizabiBubbleChart.DEFAULT_UI = {
2689
- show_ticks: true,
2690
- showForecast: false,
2691
- showForecastOverlay: true,
2692
- pauseBeforeForecast: true,
2693
- opacityHighlight: 1.0,
2694
- opacitySelect: 1.0,
2695
- opacityHighlightDim: 0.1,
2696
- opacitySelectDim: 0.3,
2697
- opacityRegular: 0.5,
2698
- timeInBackground: true,
2699
- timeInTrails: true,
2700
- lockNonSelected: 0,
2701
- panWithArrow: false,
2702
- adaptMinMaxZoom: false,
2703
- cursorMode: "arrow",
2704
- zoomOnScrolling: true,
2705
- decorations: {
2706
- enabled: true,
2707
- xAxisGroups: null //left to be set by external page
2708
- },
2709
- superhighlightOnMinimapHover: true,
2710
- whenHovering: {
2711
- showProjectionLineX: true,
2712
- showProjectionLineY: true,
2713
- higlightValueX: true,
2714
- higlightValueY: true
2715
- },
2716
- labels: {
2717
- enabled: true,
2718
- dragging: true,
2719
- removeLabelBox: false
2720
- },
2721
- margin: {
2722
- left: 0,
2723
- top: 0
2724
- }
2725
2689
  };
2726
2690
 
2727
2691
  //export default BubbleChart;
@@ -2836,7 +2800,55 @@
2836
2800
  }
2837
2801
 
2838
2802
  BubbleChart.DEFAULT_UI = {
2803
+ //ui
2804
+ "buttons": {
2805
+ "buttons": ["colors", "markercontrols", "trails", "moreoptions", "presentation", "sidebarcollapse", "fullscreen"]
2806
+ },
2807
+ "dialogs": {
2808
+ "dialogs": {
2809
+ "popup": ["colors", "markercontrols", "moreoptions"],
2810
+ "sidebar": ["colors", "markercontrols", "size", "zoom"],
2811
+ "moreoptions": ["opacity", "speed", "axes", "size", "colors", "label", "zoom", "technical", "repeat", "presentation", "about"]
2812
+ },
2813
+ "markercontrols": {}
2814
+ },
2839
2815
  chart: {
2816
+ show_ticks: true,
2817
+ showForecast: false,
2818
+ showForecastOverlay: true,
2819
+ pauseBeforeForecast: true,
2820
+ opacityHighlight: 1.0,
2821
+ opacitySelect: 1.0,
2822
+ opacityHighlightDim: 0.1,
2823
+ opacitySelectDim: 0.3,
2824
+ opacityRegular: 0.8,
2825
+ timeInBackground: true,
2826
+ timeInTrails: true,
2827
+ lockNonSelected: 0,
2828
+ panWithArrow: false,
2829
+ adaptMinMaxZoom: false,
2830
+ cursorMode: "arrow",
2831
+ zoomOnScrolling: true,
2832
+ decorations: {
2833
+ enabled: true,
2834
+ xAxisGroups: null //left to be set by external page
2835
+ },
2836
+ superhighlightOnMinimapHover: true,
2837
+ whenHovering: {
2838
+ showProjectionLineX: true,
2839
+ showProjectionLineY: true,
2840
+ higlightValueX: true,
2841
+ higlightValueY: true
2842
+ },
2843
+ labels: {
2844
+ enabled: true,
2845
+ dragging: true,
2846
+ removeLabelBox: false
2847
+ },
2848
+ margin: {
2849
+ left: 0,
2850
+ top: 0
2851
+ }
2840
2852
  }
2841
2853
  };
2842
2854
 
@@ -2845,6 +2857,7 @@
2845
2857
  BubbleChart.DEFAULT_CORE = (markerName) => ({
2846
2858
  requiredEncodings: ["x", "y", "size"],
2847
2859
  encoding: {
2860
+ "show": { modelType: "selection" },
2848
2861
  "selected": {
2849
2862
  modelType: "selection",
2850
2863
  data: {
@@ -2887,6 +2900,7 @@
2887
2900
  constant: "_default"
2888
2901
  },
2889
2902
  scale: {
2903
+ extent: [0, 0.35],
2890
2904
  modelType: "size",
2891
2905
  allowedTypes: ["linear", "point"]
2892
2906
  }
@@ -2898,7 +2912,7 @@
2898
2912
  }
2899
2913
  });
2900
2914
 
2901
- BubbleChart.versionInfo = { version: "4.2.0", build: 1738001668539, package: {"homepage":"https://github.com/vizabi/bubblechart#readme","name":"@vizabi/bubblechart","description":"Vizabi bubble chart"}, sharedComponents: sharedComponents.versionInfo};
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};
2902
2916
 
2903
2917
  exports.Base = BubbleChart;
2904
2918