billboard.js 3.10.0 → 3.10.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 +17 -14
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +17 -14
- 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 +13 -11
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +13 -11
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +14 -12
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +13 -11
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- 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 +13 -11
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +13 -11
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +14 -12
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +13 -11
- 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 +15 -13
- 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 +3 -3
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +1 -1
- package/src/ChartInternal/internals/size.ts +5 -3
- package/src/Plugin/tableview/Options.ts +1 -1
- package/src/module/browser.ts +8 -6
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.10.
|
|
8
|
+
* @version 3.10.2
|
|
9
9
|
*
|
|
10
10
|
* All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
|
|
11
11
|
* - @types/d3-selection ^3.0.8
|
|
@@ -21069,15 +21069,17 @@ function getGlobal() {
|
|
|
21069
21069
|
*/
|
|
21070
21070
|
function getFallback(w) {
|
|
21071
21071
|
var _this = this;
|
|
21072
|
-
const hasRAF = typeof (w == null ? void 0 : w.requestAnimationFrame) === "function",
|
|
21073
|
-
hasRIC = typeof (w == null ? void 0 : w.requestIdleCallback) === "function"
|
|
21074
|
-
|
|
21075
|
-
|
|
21076
|
-
|
|
21077
|
-
|
|
21078
|
-
|
|
21079
|
-
|
|
21080
|
-
|
|
21072
|
+
const hasRAF = typeof (w == null ? void 0 : w.requestAnimationFrame) === "function" && typeof (w == null ? void 0 : w.cancelAnimationFrame) === "function",
|
|
21073
|
+
hasRIC = typeof (w == null ? void 0 : w.requestIdleCallback) === "function" && typeof (w == null ? void 0 : w.cancelIdleCallback) === "function",
|
|
21074
|
+
request = function (cb) {
|
|
21075
|
+
_newArrowCheck(this, _this);
|
|
21076
|
+
return setTimeout(cb, 1);
|
|
21077
|
+
}.bind(this),
|
|
21078
|
+
cancel = function (id) {
|
|
21079
|
+
_newArrowCheck(this, _this);
|
|
21080
|
+
return clearTimeout(id);
|
|
21081
|
+
}.bind(this);
|
|
21082
|
+
return [hasRAF ? w.requestAnimationFrame : request, hasRAF ? w.cancelAnimationFrame : cancel, hasRIC ? w.requestIdleCallback : request, hasRIC ? w.cancelIdleCallback : cancel];
|
|
21081
21083
|
}
|
|
21082
21084
|
const win = getGlobal(),
|
|
21083
21085
|
browser_doc = win == null ? void 0 : win.document,
|
|
@@ -34825,16 +34827,17 @@ function getGroupedDataPointsFn(d) {
|
|
|
34825
34827
|
getSvgLeft: function getSvgLeft(withoutRecompute) {
|
|
34826
34828
|
const $$ = this,
|
|
34827
34829
|
config = $$.config,
|
|
34830
|
+
hasAxis = $$.state.hasAxis,
|
|
34828
34831
|
$el = $$.$el,
|
|
34829
34832
|
isRotated = config.axis_rotated,
|
|
34830
34833
|
hasLeftAxisRect = isRotated || !isRotated && !config.axis_y_inner,
|
|
34831
34834
|
leftAxisClass = isRotated ? $AXIS.axisX : $AXIS.axisY,
|
|
34832
34835
|
leftAxis = $el.main.select("." + leftAxisClass).node(),
|
|
34833
|
-
leftLabel = config["axis_" + (isRotated ? "x" : "y") + "_label"];
|
|
34836
|
+
leftLabel = hasAxis && config["axis_" + (isRotated ? "x" : "y") + "_label"];
|
|
34834
34837
|
let labelWidth = 0;
|
|
34835
34838
|
|
|
34836
34839
|
// if axis label position set to inner, exclude from the value
|
|
34837
|
-
if (isString(leftLabel) || isString(leftLabel.text) || /^inner-/.test(leftLabel == null ? void 0 : leftLabel.position)) {
|
|
34840
|
+
if (hasAxis && (isString(leftLabel) || isString(leftLabel.text) || /^inner-/.test(leftLabel == null ? void 0 : leftLabel.position))) {
|
|
34838
34841
|
const label = $el.main.select("." + leftAxisClass + "-label");
|
|
34839
34842
|
if (!label.empty()) {
|
|
34840
34843
|
labelWidth = label.node().getBoundingClientRect().left;
|
|
@@ -53626,7 +53629,7 @@ let _defaults = {};
|
|
|
53626
53629
|
|
|
53627
53630
|
/**
|
|
53628
53631
|
* @namespace bb
|
|
53629
|
-
* @version 3.10.
|
|
53632
|
+
* @version 3.10.2
|
|
53630
53633
|
*/
|
|
53631
53634
|
const bb = {
|
|
53632
53635
|
/**
|
|
@@ -53636,7 +53639,7 @@ const bb = {
|
|
|
53636
53639
|
* bb.version; // "1.0.0"
|
|
53637
53640
|
* @memberof bb
|
|
53638
53641
|
*/
|
|
53639
|
-
version: "3.10.
|
|
53642
|
+
version: "3.10.2",
|
|
53640
53643
|
/**
|
|
53641
53644
|
* Generate chart
|
|
53642
53645
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|