@vizabi/bubblechart 5.0.1 → 5.0.3
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.
- package/build/bubblechart.js +65 -47
- package/build/bubblechart.js.map +1 -1
- package/build/stats.html +1 -1
- package/package.json +1 -1
package/build/bubblechart.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// https://github.com/vizabi/bubblechart#readme v5.0.
|
|
1
|
+
// https://github.com/vizabi/bubblechart#readme v5.0.3 build 1742946433136 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();
|
|
@@ -45086,6 +45086,7 @@ void main(void) {
|
|
|
45086
45086
|
mobx.runInAction(() => {
|
|
45087
45087
|
if (!this.MDL.trail.show) {
|
|
45088
45088
|
this.__labelData = this.__selectedKeys.map(key => this.model.dataMap.get(key));
|
|
45089
|
+
this.opacityUpdateTrigger++;
|
|
45089
45090
|
this.deckBubble.setProps({layers: this.getBubbleLayers(undefined, false)});
|
|
45090
45091
|
}
|
|
45091
45092
|
});
|
|
@@ -45097,6 +45098,7 @@ void main(void) {
|
|
|
45097
45098
|
this.ui.opacitySelectDim;
|
|
45098
45099
|
this.ui.opacityHighlight;
|
|
45099
45100
|
this.ui.opacityHighlightDim;
|
|
45101
|
+
this.MDL.color.scale.d3Scale;
|
|
45100
45102
|
|
|
45101
45103
|
this.opacityUpdateTrigger++;
|
|
45102
45104
|
this.deckBubble.setProps({layers: this.getBubbleLayers(this.__data, false, 0)});
|
|
@@ -45936,17 +45938,18 @@ void main(void) {
|
|
|
45936
45938
|
fontSettings: this.ui.labels.removeLabelBox ? {
|
|
45937
45939
|
sdf: true,
|
|
45938
45940
|
// fontSize: 24,
|
|
45939
|
-
fontSize: Math.ceil(this.
|
|
45941
|
+
fontSize: Math.ceil(this.__fontSize * 1.3),
|
|
45940
45942
|
buffer: 8,
|
|
45941
|
-
|
|
45942
|
-
|
|
45943
|
-
smoothing: 0.1
|
|
45943
|
+
radius: 11,
|
|
45944
|
+
cutoff: 0.24,
|
|
45945
|
+
//smoothing: 0.1
|
|
45944
45946
|
} : { sdf: false },
|
|
45947
|
+
//fontWeight: '500',
|
|
45945
45948
|
getPosition: this.props.getLabelPosition,
|
|
45946
45949
|
getPixelOffset: this.props.getTooltipPixelOffset,
|
|
45947
45950
|
getText: this.props.getTooltipText,
|
|
45948
45951
|
getColor: [0x33, 0x33, 0x33],
|
|
45949
|
-
getSize: this.
|
|
45952
|
+
getSize: this.__fontSize,
|
|
45950
45953
|
getTextAnchor: 'end',
|
|
45951
45954
|
getAlignmentBaseline: 'bottom',
|
|
45952
45955
|
getDragged: this.props.getDragged,
|
|
@@ -46024,10 +46027,11 @@ void main(void) {
|
|
|
46024
46027
|
// fontSize: 24,
|
|
46025
46028
|
fontSize: Math.ceil((this.__isConstantFontSize ? this.__fontSize : this._labels.maxLabelTextSize) * 1.3),
|
|
46026
46029
|
buffer: 8,
|
|
46027
|
-
|
|
46028
|
-
|
|
46029
|
-
smoothing: 0.1
|
|
46030
|
+
radius: 11,
|
|
46031
|
+
cutoff: 0.24,
|
|
46032
|
+
//smoothing: 0.1
|
|
46030
46033
|
} : { sdf: false },
|
|
46034
|
+
//fontWeight: '500',
|
|
46031
46035
|
getPosition: this.props.getLabelPositionZ,
|
|
46032
46036
|
getPixelOffset: this.props.getPixelOffset,
|
|
46033
46037
|
getText: this.props.getLabelText,
|
|
@@ -46090,42 +46094,6 @@ void main(void) {
|
|
|
46090
46094
|
|
|
46091
46095
|
|
|
46092
46096
|
_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
46097
|
};
|
|
46130
46098
|
|
|
46131
46099
|
//export default BubbleChart;
|
|
@@ -46242,7 +46210,55 @@ void main(void) {
|
|
|
46242
46210
|
}
|
|
46243
46211
|
|
|
46244
46212
|
BubbleChart.DEFAULT_UI = {
|
|
46213
|
+
//ui
|
|
46214
|
+
"buttons": {
|
|
46215
|
+
"buttons": ["colors", "markercontrols", "trails", "moreoptions", "presentation", "sidebarcollapse", "fullscreen"]
|
|
46216
|
+
},
|
|
46217
|
+
"dialogs": {
|
|
46218
|
+
"dialogs": {
|
|
46219
|
+
"popup": ["colors", "markercontrols", "moreoptions"],
|
|
46220
|
+
"sidebar": ["colors", "markercontrols", "size", "zoom"],
|
|
46221
|
+
"moreoptions": ["opacity", "speed", "axes", "size", "colors", "label", "zoom", "technical", "repeat", "presentation", "about"]
|
|
46222
|
+
},
|
|
46223
|
+
"markercontrols": {}
|
|
46224
|
+
},
|
|
46245
46225
|
chart: {
|
|
46226
|
+
show_ticks: true,
|
|
46227
|
+
showForecast: false,
|
|
46228
|
+
showForecastOverlay: true,
|
|
46229
|
+
pauseBeforeForecast: true,
|
|
46230
|
+
opacityHighlight: 1.0,
|
|
46231
|
+
opacitySelect: 1.0,
|
|
46232
|
+
opacityHighlightDim: 0.1,
|
|
46233
|
+
opacitySelectDim: 0.3,
|
|
46234
|
+
opacityRegular: 0.8,
|
|
46235
|
+
timeInBackground: true,
|
|
46236
|
+
timeInTrails: true,
|
|
46237
|
+
lockNonSelected: 0,
|
|
46238
|
+
panWithArrow: false,
|
|
46239
|
+
adaptMinMaxZoom: false,
|
|
46240
|
+
cursorMode: "arrow",
|
|
46241
|
+
zoomOnScrolling: true,
|
|
46242
|
+
decorations: {
|
|
46243
|
+
enabled: true,
|
|
46244
|
+
xAxisGroups: null //left to be set by external page
|
|
46245
|
+
},
|
|
46246
|
+
superhighlightOnMinimapHover: true,
|
|
46247
|
+
whenHovering: {
|
|
46248
|
+
showProjectionLineX: true,
|
|
46249
|
+
showProjectionLineY: true,
|
|
46250
|
+
higlightValueX: true,
|
|
46251
|
+
higlightValueY: true
|
|
46252
|
+
},
|
|
46253
|
+
labels: {
|
|
46254
|
+
enabled: true,
|
|
46255
|
+
dragging: true,
|
|
46256
|
+
removeLabelBox: false
|
|
46257
|
+
},
|
|
46258
|
+
margin: {
|
|
46259
|
+
left: 0,
|
|
46260
|
+
top: 0
|
|
46261
|
+
}
|
|
46246
46262
|
}
|
|
46247
46263
|
};
|
|
46248
46264
|
|
|
@@ -46251,6 +46267,7 @@ void main(void) {
|
|
|
46251
46267
|
BubbleChart.DEFAULT_CORE = (markerName) => ({
|
|
46252
46268
|
requiredEncodings: ["x", "y", "size"],
|
|
46253
46269
|
encoding: {
|
|
46270
|
+
"show": { modelType: "selection" },
|
|
46254
46271
|
"selected": {
|
|
46255
46272
|
modelType: "selection",
|
|
46256
46273
|
data: {
|
|
@@ -46293,6 +46310,7 @@ void main(void) {
|
|
|
46293
46310
|
constant: "_default"
|
|
46294
46311
|
},
|
|
46295
46312
|
scale: {
|
|
46313
|
+
extent: [0, 0.35],
|
|
46296
46314
|
modelType: "size",
|
|
46297
46315
|
allowedTypes: ["linear", "point"]
|
|
46298
46316
|
}
|
|
@@ -46304,7 +46322,7 @@ void main(void) {
|
|
|
46304
46322
|
}
|
|
46305
46323
|
});
|
|
46306
46324
|
|
|
46307
|
-
BubbleChart.versionInfo = { version: "5.0.
|
|
46325
|
+
BubbleChart.versionInfo = { version: "5.0.3", build: 1742946433136, package: {"homepage":"https://github.com/vizabi/bubblechart#readme","name":"@vizabi/bubblechart","description":"Vizabi bubble chart"}, sharedComponents: sharedComponents.versionInfo};
|
|
46308
46326
|
|
|
46309
46327
|
exports.Base = BubbleChart;
|
|
46310
46328
|
|