billboard.js 3.15.0-next.2 → 3.15.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 +14 -24
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +6 -6
- package/dist/billboard.pkgd.js +14 -24
- package/dist/billboard.pkgd.min.js +6 -6
- 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 +10 -8
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-stanford.js +10 -8
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +10 -8
- package/dist/plugin/billboardjs-plugin-tableview.min.js +3 -3
- package/dist/plugin/billboardjs-plugin-textoverlap.js +10 -8
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +3 -3
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +10 -8
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +10 -8
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +10 -8
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +10 -8
- 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/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/billboard.js +16 -26
- 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/export.ts +1 -1
- package/src/ChartInternal/ChartInternal.ts +1 -1
- package/src/config/Options/axis/y2.ts +0 -13
- package/src/core.ts +2 -2
- package/src/module/util.ts +9 -7
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.15.
|
|
8
|
+
* @version 3.15.1
|
|
9
9
|
*/
|
|
10
10
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
11
11
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -2571,12 +2571,14 @@ function mergeObj(target, ...objectN) {
|
|
|
2571
2571
|
const source = objectN.shift();
|
|
2572
2572
|
if (isObject(target) && isObject(source)) {
|
|
2573
2573
|
Object.keys(source).forEach((key) => {
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2574
|
+
if (!/^(__proto__|constructor|prototype)$/i.test(key)) {
|
|
2575
|
+
const value = source[key];
|
|
2576
|
+
if (isObject(value)) {
|
|
2577
|
+
!target[key] && (target[key] = {});
|
|
2578
|
+
target[key] = mergeObj(target[key], value);
|
|
2579
|
+
} else {
|
|
2580
|
+
target[key] = isArray(value) ? value.concat() : value;
|
|
2581
|
+
}
|
|
2580
2582
|
}
|
|
2581
2583
|
});
|
|
2582
2584
|
}
|
|
@@ -8956,7 +8958,7 @@ class ChartInternal {
|
|
|
8956
8958
|
if (hasAxis || hasColorPatterns || hasPolar || hasTreemap || labelsBGColor || ((_a = $$.hasLegendDefsPoint) == null ? void 0 : _a.call($$))) {
|
|
8957
8959
|
$el.defs = $el.svg.append("defs");
|
|
8958
8960
|
if (hasAxis) {
|
|
8959
|
-
["id", "idXAxis", "idYAxis", "
|
|
8961
|
+
["id", "idXAxis", "idYAxis", "idGrid"].forEach((v) => {
|
|
8960
8962
|
$$.appendClip($el.defs, state.clip[v]);
|
|
8961
8963
|
});
|
|
8962
8964
|
}
|
|
@@ -9796,7 +9798,7 @@ function renderText(ctx, glyph) {
|
|
|
9796
9798
|
const $$ = this.internal;
|
|
9797
9799
|
const { state, $el: { chart, svg } } = $$;
|
|
9798
9800
|
const { width, height } = state.current;
|
|
9799
|
-
const opt = mergeObj({
|
|
9801
|
+
const opt = mergeObj(/* @__PURE__ */ Object.create(null), {
|
|
9800
9802
|
width,
|
|
9801
9803
|
height,
|
|
9802
9804
|
preserveAspectRatio: true,
|
|
@@ -16611,18 +16613,6 @@ function smoothLines(el, type) {
|
|
|
16611
16613
|
|
|
16612
16614
|
;// ./src/config/Options/axis/y2.ts
|
|
16613
16615
|
/* harmony default export */ var y2 = ({
|
|
16614
|
-
/**
|
|
16615
|
-
* Set clip-path attribute for y2 axis element
|
|
16616
|
-
* - **NOTE**: `clip-path` attribute for y2 Axis is set only when `axis.y2.inner` option is true.
|
|
16617
|
-
* @name axis․y2․clipPath
|
|
16618
|
-
* @memberof Options
|
|
16619
|
-
* @type {boolean}
|
|
16620
|
-
* @default true
|
|
16621
|
-
* @example
|
|
16622
|
-
* // don't set 'clip-path' attribute
|
|
16623
|
-
* clipPath: false
|
|
16624
|
-
*/
|
|
16625
|
-
axis_y2_clipPath: true,
|
|
16626
16616
|
/**
|
|
16627
16617
|
* Show or hide y2 axis.
|
|
16628
16618
|
* - **NOTE**:
|
|
@@ -21907,7 +21897,7 @@ let resolver_shape_treemap = () => (extendAxis([treemap], [shape_treemap]), (res
|
|
|
21907
21897
|
;// ./src/core.ts
|
|
21908
21898
|
|
|
21909
21899
|
|
|
21910
|
-
let defaults =
|
|
21900
|
+
let defaults = /* @__PURE__ */ Object.create(null);
|
|
21911
21901
|
const bb = {
|
|
21912
21902
|
/**
|
|
21913
21903
|
* Version information
|
|
@@ -21916,7 +21906,7 @@ const bb = {
|
|
|
21916
21906
|
* bb.version; // "1.0.0"
|
|
21917
21907
|
* @memberof bb
|
|
21918
21908
|
*/
|
|
21919
|
-
version: "3.15.
|
|
21909
|
+
version: "3.15.1",
|
|
21920
21910
|
/**
|
|
21921
21911
|
* Generate chart
|
|
21922
21912
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
|
@@ -21988,7 +21978,7 @@ const bb = {
|
|
|
21988
21978
|
* });
|
|
21989
21979
|
*/
|
|
21990
21980
|
generate(config) {
|
|
21991
|
-
const options = mergeObj(
|
|
21981
|
+
const options = mergeObj(/* @__PURE__ */ Object.create(null), defaults, config);
|
|
21992
21982
|
const inst = new Chart(options);
|
|
21993
21983
|
inst.internal.charts = this.instance;
|
|
21994
21984
|
this.instance.push(inst);
|
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.15.
|
|
8
|
+
* @version 3.15.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}.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}
|