billboard.js 3.17.0-next.1 → 3.17.1
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 +12 -20
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +5 -5
- package/dist/billboard.pkgd.js +17 -24
- package/dist/billboard.pkgd.min.js +13 -13
- 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.pkgd.js +7 -6
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +4 -4
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +7 -6
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +3 -3
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +7 -6
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +10 -10
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +7 -6
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +8 -8
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +7 -6
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +7 -7
- 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/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/billboard.js +10 -21
- 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 +9 -9
- package/src/ChartInternal/ChartInternal.ts +1 -1
- package/src/ChartInternal/data/convert.ts +4 -4
- package/src/ChartInternal/data/load.ts +1 -1
- package/src/config/Options/axis/y2.ts +0 -13
- package/src/config/Options/common/boost.ts +1 -0
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.17.
|
|
8
|
+
* @version 3.17.1
|
|
9
9
|
*/
|
|
10
10
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
11
11
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -415,6 +415,7 @@ const $ZOOM = {
|
|
|
415
415
|
* - **NOTE:**
|
|
416
416
|
* - For now, only applies for data conversion at the initial time.
|
|
417
417
|
* - As of Web Worker's async nature, handling chart instance synchrously is not recommended.
|
|
418
|
+
* - When given data is empty, useWorker will be ignored.
|
|
418
419
|
* @example
|
|
419
420
|
* boost: {
|
|
420
421
|
* useCssRule: true,
|
|
@@ -3692,7 +3693,10 @@ function setXS(ids, data, params) {
|
|
|
3692
3693
|
*/
|
|
3693
3694
|
convertData(args, callback) {
|
|
3694
3695
|
const { config } = this;
|
|
3695
|
-
const useWorker =
|
|
3696
|
+
const useWorker = (d) => {
|
|
3697
|
+
var _a;
|
|
3698
|
+
return (d == null ? void 0 : d.length) && ((_a = d[0]) == null ? void 0 : _a.length) ? config.boost_useWorker : false;
|
|
3699
|
+
};
|
|
3696
3700
|
let data = args;
|
|
3697
3701
|
if (args.bindto) {
|
|
3698
3702
|
data = {};
|
|
@@ -3712,14 +3716,14 @@ function setXS(ids, data, params) {
|
|
|
3712
3716
|
callback
|
|
3713
3717
|
);
|
|
3714
3718
|
} else if (data.json) {
|
|
3715
|
-
runWorker(useWorker, json, callback, [columns, rows])(
|
|
3719
|
+
runWorker(useWorker(data.json), json, callback, [columns, rows])(
|
|
3716
3720
|
data.json,
|
|
3717
3721
|
getDataKeyForJson(data.keys, config)
|
|
3718
3722
|
);
|
|
3719
3723
|
} else if (data.rows) {
|
|
3720
|
-
runWorker(useWorker, rows, callback)(data.rows);
|
|
3724
|
+
runWorker(useWorker(data.rows), rows, callback)(data.rows);
|
|
3721
3725
|
} else if (data.columns) {
|
|
3722
|
-
runWorker(useWorker, columns, callback)(data.columns);
|
|
3726
|
+
runWorker(useWorker(data.columns), columns, callback)(data.columns);
|
|
3723
3727
|
} else if (args.bindto) {
|
|
3724
3728
|
throw Error("url or json or rows or columns is required.");
|
|
3725
3729
|
}
|
|
@@ -4711,7 +4715,7 @@ function callDone(fn, resizeAfter = false) {
|
|
|
4711
4715
|
$$.convertData(args, (d) => {
|
|
4712
4716
|
const data = args.data || d;
|
|
4713
4717
|
args.append && (data.__append__ = true);
|
|
4714
|
-
data && $$.load($$.convertDataToTargets(data), args);
|
|
4718
|
+
data && $$.load($$.convertDataToTargets.call($$, data), args);
|
|
4715
4719
|
});
|
|
4716
4720
|
},
|
|
4717
4721
|
unload(rawTargetIds, customDoneCb) {
|
|
@@ -9252,7 +9256,7 @@ class ChartInternal {
|
|
|
9252
9256
|
if (hasAxis || hasColorPatterns || hasPolar || hasTreemap || labelsBGColor || ((_a = $$.hasLegendDefsPoint) == null ? void 0 : _a.call($$))) {
|
|
9253
9257
|
$el.defs = $el.svg.append("defs");
|
|
9254
9258
|
if (hasAxis) {
|
|
9255
|
-
["id", "idXAxis", "idYAxis", "
|
|
9259
|
+
["id", "idXAxis", "idYAxis", "idGrid"].forEach((v) => {
|
|
9256
9260
|
$$.appendClip($el.defs, state.clip[v]);
|
|
9257
9261
|
});
|
|
9258
9262
|
}
|
|
@@ -17014,18 +17018,6 @@ function smoothLines(el, type) {
|
|
|
17014
17018
|
|
|
17015
17019
|
;// ./src/config/Options/axis/y2.ts
|
|
17016
17020
|
/* harmony default export */ var y2 = ({
|
|
17017
|
-
/**
|
|
17018
|
-
* Set clip-path attribute for y2 axis element
|
|
17019
|
-
* - **NOTE**: `clip-path` attribute for y2 Axis is set only when `axis.y2.inner` option is true.
|
|
17020
|
-
* @name axis․y2․clipPath
|
|
17021
|
-
* @memberof Options
|
|
17022
|
-
* @type {boolean}
|
|
17023
|
-
* @default true
|
|
17024
|
-
* @example
|
|
17025
|
-
* // don't set 'clip-path' attribute
|
|
17026
|
-
* clipPath: false
|
|
17027
|
-
*/
|
|
17028
|
-
axis_y2_clipPath: true,
|
|
17029
17021
|
/**
|
|
17030
17022
|
* Show or hide y2 axis.
|
|
17031
17023
|
* - **NOTE**:
|
|
@@ -22715,7 +22707,7 @@ const bb = {
|
|
|
22715
22707
|
* bb.version; // "1.0.0"
|
|
22716
22708
|
* @memberof bb
|
|
22717
22709
|
*/
|
|
22718
|
-
version: "3.17.
|
|
22710
|
+
version: "3.17.1",
|
|
22719
22711
|
/**
|
|
22720
22712
|
* Generate chart
|
|
22721
22713
|
* - **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.17.
|
|
8
|
+
* @version 3.17.1
|
|
9
9
|
*/.bb svg{font:10px sans-serif;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bb path,.bb line{fill:none;stroke:#000}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.bb-legend-item-tile,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle,.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-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{font-size:13px;fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:1em;fill:#fff;white-space:nowrap}.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:gray;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-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{font-size:12px;user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font:14px sans-serif}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{z-index:10;user-select:none;transform:translateZ(0)}.bb-tooltip{border-collapse:collapse;border-spacing:0;background-color:#fff;empty-cells:show;opacity:.9;box-shadow:7px 7px 12px -9px #777;white-space:nowrap}.bb-tooltip tr{border:1px solid #CCC}.bb-tooltip th{background-color:#aaa;font-size:14px;padding:2px 5px;text-align:left;color:#fff}.bb-tooltip td{font-size:13px;padding:3px 6px;background-color:#fff;border-left:1px dotted #999}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:10px;height:10px;margin-right:6px}.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{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{font-size:11px;border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer}
|