billboard.js 3.8.0 → 3.8.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.
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +34 -29
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +72 -50
- package/dist/billboard.pkgd.min.js +2 -2
- 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 +40 -23
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +40 -23
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +40 -23
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +40 -23
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +40 -23
- 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 +22 -7
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +7 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +8 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +11 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +7 -2
- package/package.json +27 -27
- package/src/Chart/api/tooltip.ts +1 -1
- package/src/ChartInternal/interactions/eventrect.ts +8 -3
package/dist/billboard.css
CHANGED
package/dist/billboard.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.8.
|
|
8
|
+
* @version 3.8.2
|
|
9
9
|
*/
|
|
10
10
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
11
11
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -169,7 +169,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
169
169
|
|
|
170
170
|
// EXPORTS
|
|
171
171
|
__webpack_require__.d(__webpack_exports__, {
|
|
172
|
-
|
|
172
|
+
bb: function() { return /* reexport */ bb; },
|
|
173
173
|
"default": function() { return /* reexport */ bb; }
|
|
174
174
|
});
|
|
175
175
|
|
|
@@ -177,33 +177,33 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
177
177
|
var resolver_shape_namespaceObject = {};
|
|
178
178
|
__webpack_require__.r(resolver_shape_namespaceObject);
|
|
179
179
|
__webpack_require__.d(resolver_shape_namespaceObject, {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
180
|
+
area: function() { return _area; },
|
|
181
|
+
areaLineRange: function() { return areaLineRange; },
|
|
182
|
+
areaSpline: function() { return areaSpline; },
|
|
183
|
+
areaSplineRange: function() { return areaSplineRange; },
|
|
184
|
+
areaStep: function() { return areaStep; },
|
|
185
|
+
bar: function() { return resolver_shape_bar; },
|
|
186
|
+
bubble: function() { return resolver_shape_bubble; },
|
|
187
|
+
candlestick: function() { return resolver_shape_candlestick; },
|
|
188
|
+
donut: function() { return shape_donut; },
|
|
189
|
+
gauge: function() { return resolver_shape_gauge; },
|
|
190
|
+
line: function() { return resolver_shape_line; },
|
|
191
|
+
pie: function() { return shape_pie; },
|
|
192
|
+
polar: function() { return resolver_shape_polar; },
|
|
193
|
+
radar: function() { return resolver_shape_radar; },
|
|
194
|
+
scatter: function() { return shape_scatter; },
|
|
195
|
+
spline: function() { return shape_spline; },
|
|
196
|
+
step: function() { return step; },
|
|
197
|
+
treemap: function() { return resolver_shape_treemap; }
|
|
198
198
|
});
|
|
199
199
|
|
|
200
200
|
// NAMESPACE OBJECT: ./src/config/resolver/interaction.ts
|
|
201
201
|
var resolver_interaction_namespaceObject = {};
|
|
202
202
|
__webpack_require__.r(resolver_interaction_namespaceObject);
|
|
203
203
|
__webpack_require__.d(resolver_interaction_namespaceObject, {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
selection: function() { return _selectionModule; },
|
|
205
|
+
subchart: function() { return subchartModule; },
|
|
206
|
+
zoom: function() { return zoomModule; }
|
|
207
207
|
});
|
|
208
208
|
|
|
209
209
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/newArrowCheck.js
|
|
@@ -12394,7 +12394,7 @@ var tooltip_tooltip = {
|
|
|
12394
12394
|
eventReceiver.rect = $el.main.select("" + $$.selectorTarget(data.id, undefined, "rect"));
|
|
12395
12395
|
} else if ($$.isMultipleX()) {
|
|
12396
12396
|
// if multiple xs, target point will be determined by mouse
|
|
12397
|
-
mouse = [$$.
|
|
12397
|
+
mouse = [$$.xx(data), y];
|
|
12398
12398
|
} else {
|
|
12399
12399
|
if (!config.tooltip_grouped) {
|
|
12400
12400
|
mouse = [0, y];
|
|
@@ -14997,7 +14997,9 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
14997
14997
|
isInverted = config.axis_x_inverted;
|
|
14998
14998
|
if ($el.eventRect) {
|
|
14999
14999
|
$$.updateEventRect($el.eventRect, !0);
|
|
15000
|
-
|
|
15000
|
+
|
|
15001
|
+
// do not initialize eventRect when data is empty
|
|
15002
|
+
} else if ($$.data.targets.length) {
|
|
15001
15003
|
var eventRects = $$.$el.main.select("." + $EVENT.eventRects).style("cursor", config.zoom_enabled && config.zoom_type !== "drag" ? config.axis_rotated ? "ns-resize" : "ew-resize" : null).classed($EVENT.eventRectsMultiple, isMultipleX).classed($EVENT.eventRectsSingle, !isMultipleX),
|
|
15002
15004
|
eventRectUpdate = eventRects.selectAll("." + $EVENT.eventRect).data([0]).enter().append("rect"); // append event <rect>
|
|
15003
15005
|
$$.updateEventRect(eventRectUpdate);
|
|
@@ -15011,6 +15013,9 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15011
15013
|
if ($$.state.inputType === "touch" && !$el.svg.on("touchstart.eventRect") && !$$.hasArcType()) {
|
|
15012
15014
|
$$.bindTouchOnEventRect(isMultipleX);
|
|
15013
15015
|
}
|
|
15016
|
+
|
|
15017
|
+
// when initilazed with empty data and data loaded later, need to update eventRect
|
|
15018
|
+
state.rendered && $$.updateEventRect($el.eventRect, !0);
|
|
15014
15019
|
}
|
|
15015
15020
|
if (!isMultipleX) {
|
|
15016
15021
|
// Set data and update eventReceiver.data
|
|
@@ -15143,8 +15148,8 @@ var Axis_Axis = /*#__PURE__*/function () {
|
|
|
15143
15148
|
rectElement.attr("x", 0).attr("y", 0).attr("width", width).attr("height", height);
|
|
15144
15149
|
|
|
15145
15150
|
// only for init
|
|
15146
|
-
if (!rendered) {
|
|
15147
|
-
rectElement.
|
|
15151
|
+
if (!rendered || force) {
|
|
15152
|
+
rectElement.classed($EVENT.eventRect, !0);
|
|
15148
15153
|
}
|
|
15149
15154
|
}
|
|
15150
15155
|
updateClientRect();
|
|
@@ -24723,7 +24728,7 @@ var _defaults = {};
|
|
|
24723
24728
|
|
|
24724
24729
|
/**
|
|
24725
24730
|
* @namespace bb
|
|
24726
|
-
* @version 3.8.
|
|
24731
|
+
* @version 3.8.2
|
|
24727
24732
|
*/
|
|
24728
24733
|
var bb = {
|
|
24729
24734
|
/**
|
|
@@ -24733,7 +24738,7 @@ var bb = {
|
|
|
24733
24738
|
* bb.version; // "1.0.0"
|
|
24734
24739
|
* @memberof bb
|
|
24735
24740
|
*/
|
|
24736
|
-
version: "3.8.
|
|
24741
|
+
version: "3.8.2",
|
|
24737
24742
|
/**
|
|
24738
24743
|
* Generate chart
|
|
24739
24744
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
package/dist/billboard.min.css
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.8.
|
|
8
|
+
* @version 3.8.2
|
|
9
9
|
*/.bb svg{-webkit-tap-highlight-color:rgba(0,0,0,0);font:10px sans-serif}.bb line,.bb path{fill:none;stroke:#000}.bb .bb-button,.bb text{-webkit-user-select:none;-moz-user-select:none;user-select:none}.bb-bars path,.bb-event-rect,.bb-legend-item-tile,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-chart-arc .bb-gauge-value{fill:#000}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px}.bb-axis{shape-rendering:crispEdges}.bb-grid{pointer-events:none}.bb-grid line{stroke:#aaa}.bb-grid text{fill:#aaa}.bb-xgrid,.bb-ygrid{stroke-dasharray:3 3}.bb-text.bb-empty{fill:grey;font-size:2em}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:1px;stroke:#fff}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-circles.bb-focused,.bb-target.bb-focused{opacity:1}.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step,.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step{stroke-width:2px}.bb-circles.bb-defocused,.bb-target.bb-defocused{opacity:.3!important}.bb-circles.bb-defocused .text-overlapping,.bb-target.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-brush .extent,.bb-region,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{font-size:12px;user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font:14px sans-serif}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border-collapse:collapse;border-spacing:0;-webkit-box-shadow:7px 7px 12px -9px #777;-moz-box-shadow:7px 7px 12px -9px #777;box-shadow:7px 7px 12px -9px #777;empty-cells:show;opacity:.9}.bb-tooltip tr{border:1px solid #ccc}.bb-tooltip th{background-color:#aaa;color:#fff;font-size:14px;padding:2px 5px;text-align:left}.bb-tooltip td{background-color:#fff;border-left:1px dotted #999;font-size:13px;padding:3px 6px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;height:10px;margin-right:6px;width:10px}.bb-tooltip.value{text-align:right}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{cursor:default;font-size:1.15em}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;right:10px;top:10px}.bb-button .bb-zoom-reset{background-color:#fff;border:1px solid #ccc;border-radius:5px;cursor:pointer;font-size:11px;padding:5px}
|