@vizabi/bubblechart 5.0.1 → 5.0.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.0.1 build 1742495252456 Copyright 2025 Gapminder Foundation and contributors
1
+ // https://github.com/vizabi/bubblechart#readme v5.0.2 build 1742891344967 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) :
@@ -44447,7 +44447,7 @@ void main(void) {
44447
44447
 
44448
44448
  this.DOM.canvasWrap.style("pointer-events", "all");
44449
44449
  this.FONT_FAMILY =
44450
- 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"';
44450
+ 'Verdana, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"';
44451
44451
 
44452
44452
  this.deckBubble = this.getDeck();
44453
44453
  this.props = this.getProps();
@@ -45936,17 +45936,18 @@ void main(void) {
45936
45936
  fontSettings: this.ui.labels.removeLabelBox ? {
45937
45937
  sdf: true,
45938
45938
  // fontSize: 24,
45939
- fontSize: Math.ceil(this.__defaultFontSize * 1.3),
45939
+ fontSize: Math.ceil(this.__fontSize * 1.3),
45940
45940
  buffer: 8,
45941
- //radius: 10,
45942
- //cutoff: 0.24,
45943
- smoothing: 0.1
45941
+ radius: 11,
45942
+ cutoff: 0.24,
45943
+ //smoothing: 0.1
45944
45944
  } : { sdf: false },
45945
+ //fontWeight: '500',
45945
45946
  getPosition: this.props.getLabelPosition,
45946
45947
  getPixelOffset: this.props.getTooltipPixelOffset,
45947
45948
  getText: this.props.getTooltipText,
45948
45949
  getColor: [0x33, 0x33, 0x33],
45949
- getSize: this.__defaultFontSize,
45950
+ getSize: this.__fontSize,
45950
45951
  getTextAnchor: 'end',
45951
45952
  getAlignmentBaseline: 'bottom',
45952
45953
  getDragged: this.props.getDragged,
@@ -46024,10 +46025,11 @@ void main(void) {
46024
46025
  // fontSize: 24,
46025
46026
  fontSize: Math.ceil((this.__isConstantFontSize ? this.__fontSize : this._labels.maxLabelTextSize) * 1.3),
46026
46027
  buffer: 8,
46027
- //radius: 10,
46028
- //cutoff: 0.24,
46029
- smoothing: 0.1
46028
+ radius: 11,
46029
+ cutoff: 0.24,
46030
+ //smoothing: 0.1
46030
46031
  } : { sdf: false },
46032
+ //fontWeight: '500',
46031
46033
  getPosition: this.props.getLabelPositionZ,
46032
46034
  getPixelOffset: this.props.getPixelOffset,
46033
46035
  getText: this.props.getLabelText,
@@ -46090,42 +46092,6 @@ void main(void) {
46090
46092
 
46091
46093
 
46092
46094
  _VizabiBubbleChart.DEFAULT_UI = {
46093
- show_ticks: true,
46094
- showForecast: false,
46095
- showForecastOverlay: true,
46096
- pauseBeforeForecast: true,
46097
- opacityHighlight: 1.0,
46098
- opacitySelect: 1.0,
46099
- opacityHighlightDim: 0.1,
46100
- opacitySelectDim: 0.3,
46101
- opacityRegular: 0.5,
46102
- timeInBackground: true,
46103
- timeInTrails: true,
46104
- lockNonSelected: 0,
46105
- panWithArrow: false,
46106
- adaptMinMaxZoom: false,
46107
- cursorMode: "arrow",
46108
- zoomOnScrolling: true,
46109
- decorations: {
46110
- enabled: true,
46111
- xAxisGroups: null //left to be set by external page
46112
- },
46113
- superhighlightOnMinimapHover: true,
46114
- whenHovering: {
46115
- showProjectionLineX: true,
46116
- showProjectionLineY: true,
46117
- higlightValueX: true,
46118
- higlightValueY: true
46119
- },
46120
- labels: {
46121
- enabled: true,
46122
- dragging: true,
46123
- removeLabelBox: false
46124
- },
46125
- margin: {
46126
- left: 0,
46127
- top: 0
46128
- }
46129
46095
  };
46130
46096
 
46131
46097
  //export default BubbleChart;
@@ -46242,7 +46208,55 @@ void main(void) {
46242
46208
  }
46243
46209
 
46244
46210
  BubbleChart.DEFAULT_UI = {
46211
+ //ui
46212
+ "buttons": {
46213
+ "buttons": ["colors", "markercontrols", "trails", "moreoptions", "presentation", "sidebarcollapse", "fullscreen"]
46214
+ },
46215
+ "dialogs": {
46216
+ "dialogs": {
46217
+ "popup": ["colors", "markercontrols", "moreoptions"],
46218
+ "sidebar": ["colors", "markercontrols", "size", "zoom"],
46219
+ "moreoptions": ["opacity", "speed", "axes", "size", "colors", "label", "zoom", "technical", "repeat", "presentation", "about"]
46220
+ },
46221
+ "markercontrols": {}
46222
+ },
46245
46223
  chart: {
46224
+ show_ticks: true,
46225
+ showForecast: false,
46226
+ showForecastOverlay: true,
46227
+ pauseBeforeForecast: true,
46228
+ opacityHighlight: 1.0,
46229
+ opacitySelect: 1.0,
46230
+ opacityHighlightDim: 0.1,
46231
+ opacitySelectDim: 0.3,
46232
+ opacityRegular: 0.8,
46233
+ timeInBackground: true,
46234
+ timeInTrails: true,
46235
+ lockNonSelected: 0,
46236
+ panWithArrow: false,
46237
+ adaptMinMaxZoom: false,
46238
+ cursorMode: "arrow",
46239
+ zoomOnScrolling: true,
46240
+ decorations: {
46241
+ enabled: true,
46242
+ xAxisGroups: null //left to be set by external page
46243
+ },
46244
+ superhighlightOnMinimapHover: true,
46245
+ whenHovering: {
46246
+ showProjectionLineX: true,
46247
+ showProjectionLineY: true,
46248
+ higlightValueX: true,
46249
+ higlightValueY: true
46250
+ },
46251
+ labels: {
46252
+ enabled: true,
46253
+ dragging: true,
46254
+ removeLabelBox: false
46255
+ },
46256
+ margin: {
46257
+ left: 0,
46258
+ top: 0
46259
+ }
46246
46260
  }
46247
46261
  };
46248
46262
 
@@ -46251,6 +46265,7 @@ void main(void) {
46251
46265
  BubbleChart.DEFAULT_CORE = (markerName) => ({
46252
46266
  requiredEncodings: ["x", "y", "size"],
46253
46267
  encoding: {
46268
+ "show": { modelType: "selection" },
46254
46269
  "selected": {
46255
46270
  modelType: "selection",
46256
46271
  data: {
@@ -46293,6 +46308,7 @@ void main(void) {
46293
46308
  constant: "_default"
46294
46309
  },
46295
46310
  scale: {
46311
+ extent: [0, 0.35],
46296
46312
  modelType: "size",
46297
46313
  allowedTypes: ["linear", "point"]
46298
46314
  }
@@ -46304,7 +46320,7 @@ void main(void) {
46304
46320
  }
46305
46321
  });
46306
46322
 
46307
- BubbleChart.versionInfo = { version: "5.0.1", build: 1742495252456, package: {"homepage":"https://github.com/vizabi/bubblechart#readme","name":"@vizabi/bubblechart","description":"Vizabi bubble chart"}, sharedComponents: sharedComponents.versionInfo};
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};
46308
46324
 
46309
46325
  exports.Base = BubbleChart;
46310
46326