billboard.js 3.6.2 → 3.6.3
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 +8 -10
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +66 -53
- 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 +60 -45
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +60 -45
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +60 -45
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +60 -45
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +60 -45
- 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 +9 -10
- 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 +1 -1
- package/src/ChartInternal/Axis/AxisRendererHelper.ts +4 -2
- package/src/ChartInternal/interactions/interaction.ts +6 -7
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.6.
|
|
8
|
+
* @version 3.6.3
|
|
9
9
|
*
|
|
10
10
|
* All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
|
|
11
11
|
* - d3-axis ^3.0.0
|
|
@@ -27266,12 +27266,10 @@ function drag_defaultTouchable() {
|
|
|
27266
27266
|
return;
|
|
27267
27267
|
}
|
|
27268
27268
|
}
|
|
27269
|
-
|
|
27270
|
-
|
|
27271
|
-
|
|
27272
|
-
|
|
27273
|
-
}
|
|
27274
|
-
}).filter(function (d) {
|
|
27269
|
+
|
|
27270
|
+
// remove possible previous focused state
|
|
27271
|
+
main.selectAll("." + $COMMON.EXPANDED + ":not(." + $SHAPE.shape + "-" + index + ")").classed($COMMON.EXPANDED, !1);
|
|
27272
|
+
var shapeAtIndex = main.selectAll("." + $SHAPE.shape + "-" + index).classed($COMMON.EXPANDED, !0).style("cursor", isSelectable ? "pointer" : null).filter(function (d) {
|
|
27275
27273
|
return $$.isWithinShape(this, d);
|
|
27276
27274
|
});
|
|
27277
27275
|
if (shapeAtIndex.empty() && !isTooltipGrouped) {
|
|
@@ -37454,7 +37452,7 @@ var AxisRendererHelper = /*#__PURE__*/function () {
|
|
|
37454
37452
|
_newArrowCheck(this, _this2);
|
|
37455
37453
|
selection.attr("transform", function (d) {
|
|
37456
37454
|
_newArrowCheck(this, _this3);
|
|
37457
|
-
return fn(Math.ceil(scale(d)));
|
|
37455
|
+
return isValue(d) ? fn(Math.ceil(scale(d))) : null;
|
|
37458
37456
|
}.bind(this));
|
|
37459
37457
|
}.bind(this);
|
|
37460
37458
|
};
|
|
@@ -49237,7 +49235,7 @@ var _defaults = {},
|
|
|
49237
49235
|
* bb.version; // "1.0.0"
|
|
49238
49236
|
* @memberof bb
|
|
49239
49237
|
*/
|
|
49240
|
-
version: "3.6.
|
|
49238
|
+
version: "3.6.3",
|
|
49241
49239
|
/**
|
|
49242
49240
|
* Generate chart
|
|
49243
49241
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
|
@@ -49367,7 +49365,7 @@ var _defaults = {},
|
|
|
49367
49365
|
};
|
|
49368
49366
|
/**
|
|
49369
49367
|
* @namespace bb
|
|
49370
|
-
* @version 3.6.
|
|
49368
|
+
* @version 3.6.3
|
|
49371
49369
|
*/
|
|
49372
49370
|
;// CONCATENATED MODULE: ./src/index.ts
|
|
49373
49371
|
|
|
@@ -49426,6 +49424,9 @@ function _regeneratorRuntime() {
|
|
|
49426
49424
|
var exports = {},
|
|
49427
49425
|
Op = Object.prototype,
|
|
49428
49426
|
hasOwn = Op.hasOwnProperty,
|
|
49427
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
49428
|
+
obj[key] = desc.value;
|
|
49429
|
+
},
|
|
49429
49430
|
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
49430
49431
|
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
49431
49432
|
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
@@ -49449,40 +49450,9 @@ function _regeneratorRuntime() {
|
|
|
49449
49450
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
49450
49451
|
generator = Object.create(protoGenerator.prototype),
|
|
49451
49452
|
context = new Context(tryLocsList || []);
|
|
49452
|
-
return generator
|
|
49453
|
-
|
|
49454
|
-
|
|
49455
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
49456
|
-
if ("completed" === state) {
|
|
49457
|
-
if ("throw" === method) throw arg;
|
|
49458
|
-
return doneResult();
|
|
49459
|
-
}
|
|
49460
|
-
for (context.method = method, context.arg = arg;;) {
|
|
49461
|
-
var delegate = context.delegate;
|
|
49462
|
-
if (delegate) {
|
|
49463
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
49464
|
-
if (delegateResult) {
|
|
49465
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
49466
|
-
return delegateResult;
|
|
49467
|
-
}
|
|
49468
|
-
}
|
|
49469
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
49470
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
49471
|
-
context.dispatchException(context.arg);
|
|
49472
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
49473
|
-
state = "executing";
|
|
49474
|
-
var record = tryCatch(innerFn, self, context);
|
|
49475
|
-
if ("normal" === record.type) {
|
|
49476
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
49477
|
-
return {
|
|
49478
|
-
value: record.arg,
|
|
49479
|
-
done: context.done
|
|
49480
|
-
};
|
|
49481
|
-
}
|
|
49482
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
49483
|
-
}
|
|
49484
|
-
};
|
|
49485
|
-
}(innerFn, self, context), generator;
|
|
49453
|
+
return defineProperty(generator, "_invoke", {
|
|
49454
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
49455
|
+
}), generator;
|
|
49486
49456
|
}
|
|
49487
49457
|
function tryCatch(fn, obj, arg) {
|
|
49488
49458
|
try {
|
|
@@ -49536,13 +49506,49 @@ function _regeneratorRuntime() {
|
|
|
49536
49506
|
reject(record.arg);
|
|
49537
49507
|
}
|
|
49538
49508
|
var previousPromise;
|
|
49539
|
-
this
|
|
49540
|
-
function
|
|
49541
|
-
|
|
49542
|
-
|
|
49543
|
-
|
|
49509
|
+
defineProperty(this, "_invoke", {
|
|
49510
|
+
value: function value(method, arg) {
|
|
49511
|
+
function callInvokeWithMethodAndArg() {
|
|
49512
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
49513
|
+
invoke(method, arg, resolve, reject);
|
|
49514
|
+
});
|
|
49515
|
+
}
|
|
49516
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
49517
|
+
}
|
|
49518
|
+
});
|
|
49519
|
+
}
|
|
49520
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
49521
|
+
var state = "suspendedStart";
|
|
49522
|
+
return function (method, arg) {
|
|
49523
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
49524
|
+
if ("completed" === state) {
|
|
49525
|
+
if ("throw" === method) throw arg;
|
|
49526
|
+
return doneResult();
|
|
49527
|
+
}
|
|
49528
|
+
for (context.method = method, context.arg = arg;;) {
|
|
49529
|
+
var delegate = context.delegate;
|
|
49530
|
+
if (delegate) {
|
|
49531
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
49532
|
+
if (delegateResult) {
|
|
49533
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
49534
|
+
return delegateResult;
|
|
49535
|
+
}
|
|
49536
|
+
}
|
|
49537
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
49538
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
49539
|
+
context.dispatchException(context.arg);
|
|
49540
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
49541
|
+
state = "executing";
|
|
49542
|
+
var record = tryCatch(innerFn, self, context);
|
|
49543
|
+
if ("normal" === record.type) {
|
|
49544
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
49545
|
+
return {
|
|
49546
|
+
value: record.arg,
|
|
49547
|
+
done: context.done
|
|
49548
|
+
};
|
|
49549
|
+
}
|
|
49550
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
49544
49551
|
}
|
|
49545
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
49546
49552
|
};
|
|
49547
49553
|
}
|
|
49548
49554
|
function maybeInvokeDelegate(delegate, context) {
|
|
@@ -49600,7 +49606,13 @@ function _regeneratorRuntime() {
|
|
|
49600
49606
|
done: !0
|
|
49601
49607
|
};
|
|
49602
49608
|
}
|
|
49603
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
49609
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
49610
|
+
value: GeneratorFunctionPrototype,
|
|
49611
|
+
configurable: !0
|
|
49612
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
49613
|
+
value: GeneratorFunction,
|
|
49614
|
+
configurable: !0
|
|
49615
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
49604
49616
|
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
49605
49617
|
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
49606
49618
|
}, exports.mark = function (genFun) {
|
|
@@ -49621,8 +49633,9 @@ function _regeneratorRuntime() {
|
|
|
49621
49633
|
return this;
|
|
49622
49634
|
}), define(Gp, "toString", function () {
|
|
49623
49635
|
return "[object Generator]";
|
|
49624
|
-
}), exports.keys = function (
|
|
49625
|
-
var
|
|
49636
|
+
}), exports.keys = function (val) {
|
|
49637
|
+
var object = Object(val),
|
|
49638
|
+
keys = [];
|
|
49626
49639
|
for (var key in object) {
|
|
49627
49640
|
keys.push(key);
|
|
49628
49641
|
}
|