billboard.js 3.3.0-next.2 → 3.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.
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +38 -10
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +39 -11
- package/dist/billboard.pkgd.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist-esm/billboard.js +45 -10
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +19 -19
- package/src/Chart/api/chart.ts +7 -1
- package/src/ChartInternal/ChartInternal.ts +3 -1
- package/src/ChartInternal/interactions/interaction.ts +36 -4
- package/src/ChartInternal/internals/tooltip.ts +0 -1
- package/types/axis.d.ts +4 -4
- package/types/chart.d.ts +1 -1
package/dist/billboard.pkgd.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.3.0
|
|
8
|
+
* @version 3.3.0
|
|
9
9
|
*
|
|
10
10
|
* All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
|
|
11
11
|
* - d3-axis ^3.0.0
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* - d3-interpolate ^3.0.1
|
|
17
17
|
* - d3-scale ^4.0.2
|
|
18
18
|
* - d3-selection ^3.0.0
|
|
19
|
-
* - d3-shape ^3.0
|
|
19
|
+
* - d3-shape ^3.1.0
|
|
20
20
|
* - d3-time-format ^4.1.0
|
|
21
21
|
* - d3-transition ^3.0.1
|
|
22
22
|
* - d3-zoom ^3.0.0
|
|
@@ -26351,14 +26351,40 @@ function drag_defaultTouchable() {
|
|
|
26351
26351
|
* @private
|
|
26352
26352
|
*/
|
|
26353
26353
|
unbindZoomEvent: function unbindZoomEvent() {
|
|
26354
|
-
var
|
|
26354
|
+
var _eventRect,
|
|
26355
|
+
_zoomResetBtn,
|
|
26355
26356
|
$$ = this,
|
|
26356
26357
|
_$$$$el2 = $$.$el,
|
|
26357
26358
|
eventRect = _$$$$el2.eventRect,
|
|
26358
26359
|
zoomResetBtn = _$$$$el2.zoomResetBtn;
|
|
26359
26360
|
|
|
26360
|
-
eventRect.on(".zoom
|
|
26361
|
-
(_zoomResetBtn = zoomResetBtn) == null ? void 0 : _zoomResetBtn.style("display", "none");
|
|
26361
|
+
(_eventRect = eventRect) == null ? void 0 : _eventRect.on(".zoom wheel.zoom .drag", null);
|
|
26362
|
+
(_zoomResetBtn = zoomResetBtn) == null ? void 0 : _zoomResetBtn.on("click", null).style("display", "none");
|
|
26363
|
+
},
|
|
26364
|
+
|
|
26365
|
+
/**
|
|
26366
|
+
* Unbind all attached events
|
|
26367
|
+
* @private
|
|
26368
|
+
*/
|
|
26369
|
+
unbindAllEvents: function unbindAllEvents() {
|
|
26370
|
+
var _region,
|
|
26371
|
+
_brush,
|
|
26372
|
+
_arcs,
|
|
26373
|
+
_legend,
|
|
26374
|
+
$$ = this,
|
|
26375
|
+
_$$$$el3 = $$.$el,
|
|
26376
|
+
arcs = _$$$$el3.arcs,
|
|
26377
|
+
eventRect = _$$$$el3.eventRect,
|
|
26378
|
+
legend = _$$$$el3.legend,
|
|
26379
|
+
region = _$$$$el3.region,
|
|
26380
|
+
svg = _$$$$el3.svg,
|
|
26381
|
+
brush = $$.brush;
|
|
26382
|
+
|
|
26383
|
+
// detach all possible event types
|
|
26384
|
+
[svg, eventRect, (_region = region) == null ? void 0 : _region.list, (_brush = brush) == null ? void 0 : _brush.getSelection(), (_arcs = arcs) == null ? void 0 : _arcs.selectAll("path"), (_legend = legend) == null ? void 0 : _legend.selectAll("g")].forEach(function (v) {
|
|
26385
|
+
return v == null ? void 0 : v.on("wheel click mouseover mousemove mouseout touchstart touchmove touchend touchstart.eventRect touchmove.eventRect touchend.eventRect .brush .drag .zoom wheel.zoom dblclick.zoom", null);
|
|
26386
|
+
});
|
|
26387
|
+
$$.unbindZoomEvent == null ? void 0 : $$.unbindZoomEvent();
|
|
26362
26388
|
}
|
|
26363
26389
|
});
|
|
26364
26390
|
;// CONCATENATED MODULE: ./src/ChartInternal/internals/class.ts
|
|
@@ -32460,7 +32486,7 @@ function getTextPos(pos, width) {
|
|
|
32460
32486
|
$el.tooltip = src_select(config.tooltip_contents.bindto);
|
|
32461
32487
|
|
|
32462
32488
|
if ($el.tooltip.empty()) {
|
|
32463
|
-
$el.tooltip = $el.chart.
|
|
32489
|
+
$el.tooltip = $el.chart.append("div").attr("class", config_classes.tooltipContainer).style("position", "absolute").style("pointer-events", "none").style("display", "none");
|
|
32464
32490
|
}
|
|
32465
32491
|
|
|
32466
32492
|
$$.bindTooltipResizePos();
|
|
@@ -33442,7 +33468,7 @@ var ChartInternal = /*#__PURE__*/function () {
|
|
|
33442
33468
|
$el.chart = src_select(browser_doc.body.appendChild(browser_doc.createElement("div")));
|
|
33443
33469
|
}
|
|
33444
33470
|
|
|
33445
|
-
$el.chart.html("").classed(bindto.classname, !0);
|
|
33471
|
+
$el.chart.html("").classed(bindto.classname, !0).style("position", "relative");
|
|
33446
33472
|
$$.initToRender();
|
|
33447
33473
|
}
|
|
33448
33474
|
/**
|
|
@@ -34100,12 +34126,14 @@ function loadConfig(config) {
|
|
|
34100
34126
|
|
|
34101
34127
|
if (notEmpty($$)) {
|
|
34102
34128
|
$$.callPluginHook("$willDestroy");
|
|
34103
|
-
$$.charts.splice($$.charts.indexOf(this), 1); //
|
|
34129
|
+
$$.charts.splice($$.charts.indexOf(this), 1); // detach events
|
|
34130
|
+
|
|
34131
|
+
$$.unbindAllEvents(); // clear timers && pending transition
|
|
34104
34132
|
|
|
34105
34133
|
svg.select("*").interrupt();
|
|
34106
34134
|
$$.resizeFunction.clear();
|
|
34107
34135
|
win.removeEventListener("resize", $$.resizeFunction);
|
|
34108
|
-
chart.classed("bb", !1).
|
|
34136
|
+
chart.classed("bb", !1).style("position", null).selectChildren().remove(); // releasing own references
|
|
34109
34137
|
|
|
34110
34138
|
Object.keys(this).forEach(function (key) {
|
|
34111
34139
|
key === "internal" && Object.keys($$).forEach(function (k) {
|
|
@@ -48192,7 +48220,7 @@ var _defaults = {},
|
|
|
48192
48220
|
* bb.version; // "1.0.0"
|
|
48193
48221
|
* @memberof bb
|
|
48194
48222
|
*/
|
|
48195
|
-
version: "3.
|
|
48223
|
+
version: "3.2.2",
|
|
48196
48224
|
|
|
48197
48225
|
/**
|
|
48198
48226
|
* Generate chart
|
|
@@ -48326,7 +48354,7 @@ var _defaults = {},
|
|
|
48326
48354
|
};
|
|
48327
48355
|
/**
|
|
48328
48356
|
* @namespace bb
|
|
48329
|
-
* @version 3.
|
|
48357
|
+
* @version 3.2.2
|
|
48330
48358
|
*/
|
|
48331
48359
|
;// CONCATENATED MODULE: ./src/index.ts
|
|
48332
48360
|
/**
|