billboard.js 3.10.0-next.4 → 3.10.0-next.5
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 +9 -8
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +1045 -886
- 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 +3 -3
- 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.pkgd.js +1033 -879
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +1035 -881
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +1035 -881
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +1036 -882
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +1037 -883
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
- package/dist/theme/dark.css +1 -1
- package/dist/theme/dark.min.css +1 -1
- 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 +10 -8
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +5 -5
- 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 +22 -22
- package/src/ChartInternal/interactions/interaction.ts +1 -1
- package/src/ChartInternal/internals/selection.ts +1 -1
- package/src/ChartInternal/internals/text.ts +1 -1
- package/src/ChartInternal/shape/point.ts +2 -2
- package/src/Plugin/sparkline/index.ts +1 -1
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.10.0-next.
|
|
8
|
+
* @version 3.10.0-next.5
|
|
9
9
|
*/
|
|
10
10
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
11
11
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -5764,7 +5764,7 @@ var external_commonjs_d3_drag_commonjs2_d3_drag_amd_d3_drag_root_d3_ = __webpack
|
|
|
5764
5764
|
$$.cache.add(KEY.setOverOut, last);
|
|
5765
5765
|
} else {
|
|
5766
5766
|
if (isOver) {
|
|
5767
|
-
$$.isPointFocusOnly()
|
|
5767
|
+
hasRadar && $$.isPointFocusOnly() ? $$.showCircleFocus($$.getAllValuesOnIndex(d, !0)) : $$.setExpand(d, null, !0);
|
|
5768
5768
|
}
|
|
5769
5769
|
$$.isMultipleX() || main.selectAll("." + $SHAPE.shape + "-" + d).each(function (d) {
|
|
5770
5770
|
callback(d, this);
|
|
@@ -9127,7 +9127,7 @@ function getTextPos(d, type) {
|
|
|
9127
9127
|
value = data.close;
|
|
9128
9128
|
}
|
|
9129
9129
|
}
|
|
9130
|
-
value = $$.isTreemapType(d) ? $$.treemapDataLabelFormat(d)(node) : $$.dataLabelFormat(d.id)(value, d.id,
|
|
9130
|
+
value = $$.isTreemapType(d) ? $$.treemapDataLabelFormat(d)(node) : $$.dataLabelFormat(d.id)(value, d.id, d.index, texts);
|
|
9131
9131
|
if (isNumber(value)) {
|
|
9132
9132
|
this.textContent = value;
|
|
9133
9133
|
} else {
|
|
@@ -20894,7 +20894,8 @@ const getTransitionName = function () {
|
|
|
20894
20894
|
const config = this.config;
|
|
20895
20895
|
let opacity = config.point_opacity;
|
|
20896
20896
|
if (isUndefined(opacity)) {
|
|
20897
|
-
|
|
20897
|
+
var _this$isPointFocusOnl;
|
|
20898
|
+
opacity = config.point_show && !((_this$isPointFocusOnl = this.isPointFocusOnly) != null && _this$isPointFocusOnl.call(this)) ? null : "0";
|
|
20898
20899
|
opacity = isValue(this.getBaseValue(d)) ? this.isBubbleType(d) || this.isScatterType(d) ? "0.5" : opacity : "0";
|
|
20899
20900
|
}
|
|
20900
20901
|
return opacity;
|
|
@@ -21031,7 +21032,7 @@ const getTransitionName = function () {
|
|
|
21031
21032
|
transiting = _$$$state.transiting,
|
|
21032
21033
|
$el = $$.$el;
|
|
21033
21034
|
let circle = $el.circle;
|
|
21034
|
-
if (transiting === !1 && $$.isPointFocusOnly()
|
|
21035
|
+
if (transiting === !1 && circle && $$.isPointFocusOnly()) {
|
|
21035
21036
|
const cx = (hasRadar ? $$.radarCircleX : $$.circleX).bind($$),
|
|
21036
21037
|
cy = (hasRadar ? $$.radarCircleY : $$.circleY).bind($$),
|
|
21037
21038
|
withTransition = toggling || isUndefined(d),
|
|
@@ -24417,7 +24418,7 @@ function selection_objectSpread(e) { for (var r = 1, t; r < arguments.length; r+
|
|
|
24417
24418
|
toggle = $$.getToggle(that, d).bind($$);
|
|
24418
24419
|
let toggledShape;
|
|
24419
24420
|
if (!config.data_selection_multiple) {
|
|
24420
|
-
const focusOnly = $$.isPointFocusOnly();
|
|
24421
|
+
const focusOnly = $$.isPointFocusOnly == null ? void 0 : $$.isPointFocusOnly();
|
|
24421
24422
|
let selector = "." + (focusOnly ? $SELECT.selectedCircles : $SHAPE.shapes);
|
|
24422
24423
|
if (config.data_selection_grouped) {
|
|
24423
24424
|
selector += $$.getTargetSelectorSuffix(d.id);
|
|
@@ -25507,7 +25508,7 @@ let _defaults = {};
|
|
|
25507
25508
|
|
|
25508
25509
|
/**
|
|
25509
25510
|
* @namespace bb
|
|
25510
|
-
* @version 3.10.0-next.
|
|
25511
|
+
* @version 3.10.0-next.5
|
|
25511
25512
|
*/
|
|
25512
25513
|
const bb = {
|
|
25513
25514
|
/**
|
|
@@ -25517,7 +25518,7 @@ const bb = {
|
|
|
25517
25518
|
* bb.version; // "1.0.0"
|
|
25518
25519
|
* @memberof bb
|
|
25519
25520
|
*/
|
|
25520
|
-
version: "3.10.0-next.
|
|
25521
|
+
version: "3.10.0-next.5",
|
|
25521
25522
|
/**
|
|
25522
25523
|
* Generate chart
|
|
25523
25524
|
* - **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.10.0-next.
|
|
8
|
+
* @version 3.10.0-next.5
|
|
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-legend-item-tile,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-chart-arc .bb-gauge-value,.bb-chart-arcs .bb-needle{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 rect{fill:#4682b4;fill-opacity:.1}.bb-brush .extent,.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;box-shadow:7px 7px 12px -9px #777;empty-cells:show;opacity:.9;white-space:nowrap}.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}
|