billboard.js 3.6.1 → 3.6.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/README.md +13 -77
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +25 -17
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +109 -52
- 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 +86 -37
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +87 -38
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +88 -39
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +88 -39
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +88 -39
- 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 +27 -14
- 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/interactions/eventrect.ts +22 -13
|
@@ -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.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -268,9 +268,10 @@ __webpack_require__(485);
|
|
|
268
268
|
__webpack_require__(488);
|
|
269
269
|
__webpack_require__(489);
|
|
270
270
|
__webpack_require__(490);
|
|
271
|
-
__webpack_require__(
|
|
272
|
-
__webpack_require__(
|
|
271
|
+
__webpack_require__(491);
|
|
272
|
+
__webpack_require__(495);
|
|
273
273
|
__webpack_require__(500);
|
|
274
|
+
__webpack_require__(501);
|
|
274
275
|
|
|
275
276
|
/* unused reexport */ __webpack_require__(82);
|
|
276
277
|
|
|
@@ -815,8 +816,8 @@ var FunctionPrototype = Function.prototype;
|
|
|
815
816
|
var call = FunctionPrototype.call;
|
|
816
817
|
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
|
817
818
|
|
|
818
|
-
module.exports = function (fn) {
|
|
819
|
-
return
|
|
819
|
+
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
820
|
+
return function () {
|
|
820
821
|
return call.apply(fn, arguments);
|
|
821
822
|
};
|
|
822
823
|
};
|
|
@@ -1167,10 +1168,10 @@ var store = __webpack_require__(38);
|
|
|
1167
1168
|
(module.exports = function (key, value) {
|
|
1168
1169
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
1169
1170
|
})('versions', []).push({
|
|
1170
|
-
version: '3.
|
|
1171
|
+
version: '3.26.0',
|
|
1171
1172
|
mode: IS_PURE ? 'pure' : 'global',
|
|
1172
1173
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
1173
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
1174
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE',
|
|
1174
1175
|
source: 'https://github.com/zloirock/core-js'
|
|
1175
1176
|
});
|
|
1176
1177
|
|
|
@@ -14993,6 +14994,54 @@ $({ global: true, enumerable: true, dontCallGetSet: true }, {
|
|
|
14993
14994
|
/* 489 */
|
|
14994
14995
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
14995
14996
|
|
|
14997
|
+
"use strict";
|
|
14998
|
+
|
|
14999
|
+
var $ = __webpack_require__(3);
|
|
15000
|
+
var global = __webpack_require__(4);
|
|
15001
|
+
var defineBuiltInAccessor = __webpack_require__(306);
|
|
15002
|
+
var DESCRIPTORS = __webpack_require__(6);
|
|
15003
|
+
|
|
15004
|
+
var $TypeError = TypeError;
|
|
15005
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
15006
|
+
var defineProperty = Object.defineProperty;
|
|
15007
|
+
var INCORRECT_VALUE = global.self !== global;
|
|
15008
|
+
|
|
15009
|
+
// `self` getter
|
|
15010
|
+
// https://html.spec.whatwg.org/multipage/window-object.html#dom-self
|
|
15011
|
+
try {
|
|
15012
|
+
if (DESCRIPTORS) {
|
|
15013
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
15014
|
+
var descriptor = Object.getOwnPropertyDescriptor(global, 'self');
|
|
15015
|
+
// some engines have `self`, but with incorrect descriptor
|
|
15016
|
+
// https://github.com/denoland/deno/issues/15765
|
|
15017
|
+
if (INCORRECT_VALUE || !descriptor || !descriptor.get || !descriptor.enumerable) {
|
|
15018
|
+
defineBuiltInAccessor(global, 'self', {
|
|
15019
|
+
get: function self() {
|
|
15020
|
+
return global;
|
|
15021
|
+
},
|
|
15022
|
+
set: function self(value) {
|
|
15023
|
+
if (this !== global) throw $TypeError('Illegal invocation');
|
|
15024
|
+
defineProperty(global, 'self', {
|
|
15025
|
+
value: value,
|
|
15026
|
+
writable: true,
|
|
15027
|
+
configurable: true,
|
|
15028
|
+
enumerable: true
|
|
15029
|
+
});
|
|
15030
|
+
},
|
|
15031
|
+
configurable: true,
|
|
15032
|
+
enumerable: true
|
|
15033
|
+
});
|
|
15034
|
+
}
|
|
15035
|
+
} else $({ global: true, simple: true, forced: INCORRECT_VALUE }, {
|
|
15036
|
+
self: global
|
|
15037
|
+
});
|
|
15038
|
+
} catch (error) { /* empty */ }
|
|
15039
|
+
|
|
15040
|
+
|
|
15041
|
+
/***/ }),
|
|
15042
|
+
/* 490 */
|
|
15043
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
15044
|
+
|
|
14996
15045
|
var IS_PURE = __webpack_require__(37);
|
|
14997
15046
|
var $ = __webpack_require__(3);
|
|
14998
15047
|
var global = __webpack_require__(4);
|
|
@@ -15504,21 +15553,21 @@ $({ global: true, enumerable: true, sham: !PROPER_TRANSFER, forced: FORCED_REPLA
|
|
|
15504
15553
|
|
|
15505
15554
|
|
|
15506
15555
|
/***/ }),
|
|
15507
|
-
/*
|
|
15556
|
+
/* 491 */
|
|
15508
15557
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
15509
15558
|
|
|
15510
15559
|
// TODO: Remove this module from `core-js@4` since it's split to modules listed below
|
|
15511
|
-
__webpack_require__(
|
|
15512
|
-
__webpack_require__(
|
|
15560
|
+
__webpack_require__(492);
|
|
15561
|
+
__webpack_require__(494);
|
|
15513
15562
|
|
|
15514
15563
|
|
|
15515
15564
|
/***/ }),
|
|
15516
|
-
/*
|
|
15565
|
+
/* 492 */
|
|
15517
15566
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
15518
15567
|
|
|
15519
15568
|
var $ = __webpack_require__(3);
|
|
15520
15569
|
var global = __webpack_require__(4);
|
|
15521
|
-
var setInterval = (__webpack_require__(
|
|
15570
|
+
var setInterval = (__webpack_require__(493).setInterval);
|
|
15522
15571
|
|
|
15523
15572
|
// ie9- setInterval additional parameters fix
|
|
15524
15573
|
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
|
|
@@ -15528,7 +15577,7 @@ $({ global: true, bind: true, forced: global.setInterval !== setInterval }, {
|
|
|
15528
15577
|
|
|
15529
15578
|
|
|
15530
15579
|
/***/ }),
|
|
15531
|
-
/*
|
|
15580
|
+
/* 493 */
|
|
15532
15581
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
15533
15582
|
|
|
15534
15583
|
var global = __webpack_require__(4);
|
|
@@ -15565,12 +15614,12 @@ module.exports = {
|
|
|
15565
15614
|
|
|
15566
15615
|
|
|
15567
15616
|
/***/ }),
|
|
15568
|
-
/*
|
|
15617
|
+
/* 494 */
|
|
15569
15618
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
15570
15619
|
|
|
15571
15620
|
var $ = __webpack_require__(3);
|
|
15572
15621
|
var global = __webpack_require__(4);
|
|
15573
|
-
var setTimeout = (__webpack_require__(
|
|
15622
|
+
var setTimeout = (__webpack_require__(493).setTimeout);
|
|
15574
15623
|
|
|
15575
15624
|
// ie9- setTimeout additional parameters fix
|
|
15576
15625
|
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout
|
|
@@ -15580,15 +15629,15 @@ $({ global: true, bind: true, forced: global.setTimeout !== setTimeout }, {
|
|
|
15580
15629
|
|
|
15581
15630
|
|
|
15582
15631
|
/***/ }),
|
|
15583
|
-
/*
|
|
15632
|
+
/* 495 */
|
|
15584
15633
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
15585
15634
|
|
|
15586
15635
|
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
15587
|
-
__webpack_require__(
|
|
15636
|
+
__webpack_require__(496);
|
|
15588
15637
|
|
|
15589
15638
|
|
|
15590
15639
|
/***/ }),
|
|
15591
|
-
/*
|
|
15640
|
+
/* 496 */
|
|
15592
15641
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
15593
15642
|
|
|
15594
15643
|
"use strict";
|
|
@@ -15597,7 +15646,7 @@ __webpack_require__(495);
|
|
|
15597
15646
|
__webpack_require__(379);
|
|
15598
15647
|
var $ = __webpack_require__(3);
|
|
15599
15648
|
var DESCRIPTORS = __webpack_require__(6);
|
|
15600
|
-
var USE_NATIVE_URL = __webpack_require__(
|
|
15649
|
+
var USE_NATIVE_URL = __webpack_require__(497);
|
|
15601
15650
|
var global = __webpack_require__(4);
|
|
15602
15651
|
var bind = __webpack_require__(86);
|
|
15603
15652
|
var uncurryThis = __webpack_require__(14);
|
|
@@ -15609,11 +15658,11 @@ var assign = __webpack_require__(280);
|
|
|
15609
15658
|
var arrayFrom = __webpack_require__(159);
|
|
15610
15659
|
var arraySlice = __webpack_require__(78);
|
|
15611
15660
|
var codeAt = (__webpack_require__(373).codeAt);
|
|
15612
|
-
var toASCII = __webpack_require__(
|
|
15661
|
+
var toASCII = __webpack_require__(498);
|
|
15613
15662
|
var $toString = __webpack_require__(70);
|
|
15614
15663
|
var setToStringTag = __webpack_require__(84);
|
|
15615
15664
|
var validateArgumentsLength = __webpack_require__(317);
|
|
15616
|
-
var URLSearchParamsModule = __webpack_require__(
|
|
15665
|
+
var URLSearchParamsModule = __webpack_require__(499);
|
|
15617
15666
|
var InternalStateModule = __webpack_require__(53);
|
|
15618
15667
|
|
|
15619
15668
|
var setInternalState = InternalStateModule.set;
|
|
@@ -16637,7 +16686,7 @@ $({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS
|
|
|
16637
16686
|
|
|
16638
16687
|
|
|
16639
16688
|
/***/ }),
|
|
16640
|
-
/*
|
|
16689
|
+
/* 497 */
|
|
16641
16690
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
16642
16691
|
|
|
16643
16692
|
var fails = __webpack_require__(7);
|
|
@@ -16677,7 +16726,7 @@ module.exports = !fails(function () {
|
|
|
16677
16726
|
|
|
16678
16727
|
|
|
16679
16728
|
/***/ }),
|
|
16680
|
-
/*
|
|
16729
|
+
/* 498 */
|
|
16681
16730
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
16682
16731
|
|
|
16683
16732
|
"use strict";
|
|
@@ -16865,7 +16914,7 @@ module.exports = function (input) {
|
|
|
16865
16914
|
|
|
16866
16915
|
|
|
16867
16916
|
/***/ }),
|
|
16868
|
-
/*
|
|
16917
|
+
/* 499 */
|
|
16869
16918
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
16870
16919
|
|
|
16871
16920
|
"use strict";
|
|
@@ -16877,7 +16926,7 @@ var global = __webpack_require__(4);
|
|
|
16877
16926
|
var call = __webpack_require__(8);
|
|
16878
16927
|
var uncurryThis = __webpack_require__(14);
|
|
16879
16928
|
var DESCRIPTORS = __webpack_require__(6);
|
|
16880
|
-
var USE_NATIVE_URL = __webpack_require__(
|
|
16929
|
+
var USE_NATIVE_URL = __webpack_require__(497);
|
|
16881
16930
|
var defineBuiltIn = __webpack_require__(49);
|
|
16882
16931
|
var defineBuiltIns = __webpack_require__(198);
|
|
16883
16932
|
var setToStringTag = __webpack_require__(84);
|
|
@@ -17264,7 +17313,7 @@ module.exports = {
|
|
|
17264
17313
|
|
|
17265
17314
|
|
|
17266
17315
|
/***/ }),
|
|
17267
|
-
/*
|
|
17316
|
+
/* 500 */
|
|
17268
17317
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
17269
17318
|
|
|
17270
17319
|
"use strict";
|
|
@@ -17282,21 +17331,21 @@ $({ target: 'URL', proto: true, enumerable: true }, {
|
|
|
17282
17331
|
|
|
17283
17332
|
|
|
17284
17333
|
/***/ }),
|
|
17285
|
-
/*
|
|
17334
|
+
/* 501 */
|
|
17286
17335
|
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
17287
17336
|
|
|
17288
17337
|
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
17289
|
-
__webpack_require__(
|
|
17338
|
+
__webpack_require__(499);
|
|
17290
17339
|
|
|
17291
17340
|
|
|
17292
17341
|
/***/ }),
|
|
17293
|
-
/*
|
|
17294
|
-
/*
|
|
17342
|
+
/* 502 */,
|
|
17343
|
+
/* 503 */
|
|
17295
17344
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
17296
17345
|
|
|
17297
17346
|
// TODO(Babel 8): Remove this file.
|
|
17298
17347
|
|
|
17299
|
-
var runtime = __webpack_require__(
|
|
17348
|
+
var runtime = __webpack_require__(504)();
|
|
17300
17349
|
module.exports = runtime;
|
|
17301
17350
|
|
|
17302
17351
|
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
@@ -17312,10 +17361,10 @@ try {
|
|
|
17312
17361
|
|
|
17313
17362
|
|
|
17314
17363
|
/***/ }),
|
|
17315
|
-
/*
|
|
17364
|
+
/* 504 */
|
|
17316
17365
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
17317
17366
|
|
|
17318
|
-
var _typeof = (__webpack_require__(
|
|
17367
|
+
var _typeof = (__webpack_require__(505)["default"]);
|
|
17319
17368
|
function _regeneratorRuntime() {
|
|
17320
17369
|
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
17321
17370
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
@@ -17617,7 +17666,7 @@ function _regeneratorRuntime() {
|
|
|
17617
17666
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
17618
17667
|
|
|
17619
17668
|
/***/ }),
|
|
17620
|
-
/*
|
|
17669
|
+
/* 505 */
|
|
17621
17670
|
/***/ (function(module) {
|
|
17622
17671
|
|
|
17623
17672
|
function _typeof(obj) {
|
|
@@ -17632,10 +17681,10 @@ function _typeof(obj) {
|
|
|
17632
17681
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
17633
17682
|
|
|
17634
17683
|
/***/ }),
|
|
17635
|
-
/* 505 */,
|
|
17636
17684
|
/* 506 */,
|
|
17637
17685
|
/* 507 */,
|
|
17638
|
-
/* 508
|
|
17686
|
+
/* 508 */,
|
|
17687
|
+
/* 509 */
|
|
17639
17688
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17640
17689
|
|
|
17641
17690
|
"use strict";
|
|
@@ -17674,7 +17723,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
17674
17723
|
_setPrototypeOf(subClass, superClass);
|
|
17675
17724
|
}
|
|
17676
17725
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
17677
|
-
var regenerator = __webpack_require__(
|
|
17726
|
+
var regenerator = __webpack_require__(503);
|
|
17678
17727
|
;// CONCATENATED MODULE: ./node_modules/robust-predicates/esm/util.js
|
|
17679
17728
|
const epsilon = 1.1102230246251565e-16;
|
|
17680
17729
|
const splitter = 134217729;
|
|
@@ -25876,7 +25925,7 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
25876
25925
|
};
|
|
25877
25926
|
return Plugin;
|
|
25878
25927
|
}();
|
|
25879
|
-
Plugin.version = "3.6.
|
|
25928
|
+
Plugin.version = "3.6.2";
|
|
25880
25929
|
|
|
25881
25930
|
;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts
|
|
25882
25931
|
/**
|
|
@@ -26120,7 +26169,7 @@ var TextOverlap = /*#__PURE__*/function (_Plugin) {
|
|
|
26120
26169
|
/******/ // Load entry module and return exports
|
|
26121
26170
|
/******/ // This entry module used 'module' so it can't be inlined
|
|
26122
26171
|
/******/ __webpack_require__(0);
|
|
26123
|
-
/******/ var __webpack_exports__ = __webpack_require__(
|
|
26172
|
+
/******/ var __webpack_exports__ = __webpack_require__(509);
|
|
26124
26173
|
/******/ __webpack_exports__ = __webpack_exports__["default"];
|
|
26125
26174
|
/******/
|
|
26126
26175
|
/******/ return __webpack_exports__;
|
package/dist/theme/datalab.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.6.
|
|
8
|
+
* @version 3.6.2
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#2ac4b3;#feaf29;#ff617b;#73a2ef;#b180d0;#3064cf;#d0a45f;#8aaec7;#ef65a2;#8aaec7;)}.bb svg{font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;font-size:11px;line-height:1}.bb line,.bb path{fill:none;stroke:#000}.bb .bb-button,.bb text{-webkit-font-smoothing:antialiased;fill:#555;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis{stroke-width:.7px}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:.7px}.bb-circle{fill:#fff!important}.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:1px}.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{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;stroke-width:8px;stroke-dasharray:1 20;transform:translate(7px,1px)}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.bb-tooltip-container{font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{-webkit-font-smoothing:antialiased;background-color:#fff;border:1px solid #999;border-collapse:separate;border-radius:2px;border-spacing:0;empty-cells:show;font-size:11px;text-align:left}.bb-tooltip th{background-color:#0b00b1;border-bottom:2px solid #ff2d2d;color:#fffdfd;font-size:13px;padding:2px 8px;text-align:left}.bb-tooltip td{padding:4px 6px}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{border:1px solid #000;border-radius:3px;display:inline-block;height:8px;margin-right:6px;vertical-align:middle;width:8px}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{color:#444;font-size:11px;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;font-weight:800;padding-left:5px}.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:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:18px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{fill:#000;font-size:18px!important;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#3b6969}.bb-chart-arc path{stroke:#000;stroke-width:.5px}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:14px}.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:.7px}.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;padding:5px}
|
package/dist/theme/graph.css
CHANGED
package/dist/theme/graph.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.6.
|
|
8
|
+
* @version 3.6.2
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#65CFC2;#D0A45F;#64A4F5;#EF65A2;#A377FE;#8AAEC7;#FF7E5A;#898EFE;#FFAC35;#70B0FF;)}.bb svg{font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#8c8c8c}.bb .bb-button,.bb text{fill:#555;font-size:12px;letter-spacing:-.3px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis,.bb-bars path,.bb-event-rect,.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-axis-y text,.bb-axis-y2 text{fill:#8c8c8c}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ffb6b6;stroke-dasharray:3px}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_,rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:2px}.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{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1px;opacity:.75}.bb-legend-item line{stroke-dasharray:1px}.bb-title{font-size:14px}.bb-tooltip-container{font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border:1px solid #999;border-collapse:separate;border-radius:2px;border-spacing:0;box-shadow:.5px .5px 1px #999;empty-cells:show;font-size:12px;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-tooltip th{background-color:#efefef;border-bottom:1px dotted #000;color:#000;font-size:12px;padding:4px 8px;text-align:center}.bb-tooltip tr:last-child td{border-bottom:none}.bb-tooltip td{background-color:#fff;border-bottom:1px solid #eee;padding:3px 6px}.bb-tooltip td:first-child{border-right:1px solid #eee;padding-left:5px}.bb-tooltip td:last-child{padding-right:5px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;height:12px;margin-right:6px;vertical-align:middle;width:5px}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:1px;font-size:12px}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{color:#444;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-weight:800;padding-left:5px}.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-chart-arcs-title{fill:#8c8c8c;font-size:16px!important;font-style:italic}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#8c8c8c;font-style:italic}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px;font-weight:700}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#8c8c8c;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#8c8c8c}.bb-chart-radars .bb-axis line{stroke:#8c8c8c;stroke-width:.5px}.bb-chart-radars .bb-axis text{cursor:default;font-size:1.15em;font-weight:700}.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;box-shadow:1px 1px 2px #ccc;cursor:pointer;opacity:.8;padding:5px}
|
package/dist/theme/insight.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.6.
|
|
8
|
+
* @version 3.6.2
|
|
9
9
|
*/.bb-color-pattern{background-image:url(#00c73c;#fa7171;#2ad0ff;#7294ce;#e3e448;#cc7e6e;#fb6ccf;#c98dff;#4aea99;#bbbbbb;)}.bb svg{font-family:sans-serif,Arial,nanumgothic,Dotum;font-size:12px;line-height:1}.bb line,.bb path{fill:none;stroke:#c4c4c4}.bb .bb-button,.bb text{fill:#555;font-size:11px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bb-axis,.bb-bars path,.bb-event-rect,.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid,.bb-ygrid-focus{shape-rendering:crispEdges}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:rgba(39,201,3,.05)}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{fill:#fff!important;stroke-width:2px;stroke:red}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.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{fill:#4682b4;fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-brush .extent,.bb-zoom-brush{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{fill:#fff;stroke:#d3d3d3;stroke-width:1;opacity:.75}.bb-title{font-size:14px}.bb-tooltip-container{font-family:sans-serif,Arial,nanumgothic,Dotum;user-select:none;z-index:10}.bb-tooltip{background-color:#fff;border:1px solid #999;border-collapse:separate;border-spacing:0;empty-cells:show;font-size:11px;text-align:left}.bb-tooltip th{border-bottom:1px solid #eee;font-size:12px;padding:4px 8px;text-align:left}.bb-tooltip td{background-color:#fff;padding:4px 6px}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{border-radius:5px;display:inline-block;height:10px;margin-right:6px;vertical-align:middle;width:10px}.bb-tooltip td.value{border-left:1px solid transparent}.bb-tooltip .bb-tooltip-title{color:#aaa;display:inline-block;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{color:#444;font-size:11px;font-weight:400;line-height:13px;padding:4px 0 3px;text-align:left}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:12px;font-weight:800;padding-left:5px}.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:none}.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-chart-arcs-title{fill:#000;font-size:16px!important;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.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-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;padding:5px}
|
package/dist-esm/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.6.
|
|
8
|
+
* @version 3.6.2
|
|
9
9
|
*/
|
|
10
10
|
import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
|
|
11
11
|
import { pointer, select, namespaces, selectAll } from 'd3-selection';
|
|
@@ -13043,27 +13043,40 @@ var eventrect = {
|
|
|
13043
13043
|
rectW_1 = function (d) {
|
|
13044
13044
|
var x = getPrevNextX_1(d);
|
|
13045
13045
|
var xDomain = xScale.domain();
|
|
13046
|
+
var val;
|
|
13046
13047
|
// if there this is a single data point make the eventRect full width (or height)
|
|
13047
13048
|
if (x.prev === null && x.next === null) {
|
|
13048
|
-
|
|
13049
|
+
val = isRotated ? state.height : state.width;
|
|
13049
13050
|
}
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13054
|
-
|
|
13051
|
+
else if (x.prev === null) {
|
|
13052
|
+
val = (xScale(x.next) + xScale(d.x)) / 2;
|
|
13053
|
+
}
|
|
13054
|
+
else if (x.next === null) {
|
|
13055
|
+
val = xScale(xDomain[1]) - ((xScale(x.prev) + xScale(d.x)) / 2);
|
|
13056
|
+
}
|
|
13057
|
+
else {
|
|
13058
|
+
Object.keys(x).forEach(function (key, i) {
|
|
13059
|
+
var _a;
|
|
13060
|
+
x[key] = (_a = x[key]) !== null && _a !== void 0 ? _a : xDomain[i];
|
|
13061
|
+
});
|
|
13062
|
+
val = Math.max(0, (xScale(x.next) - xScale(x.prev)) / 2);
|
|
13063
|
+
}
|
|
13064
|
+
return val;
|
|
13055
13065
|
};
|
|
13056
13066
|
rectX = function (d) {
|
|
13057
13067
|
var x = getPrevNextX_1(d);
|
|
13058
|
-
var
|
|
13068
|
+
var val;
|
|
13059
13069
|
// if there this is a single data point position the eventRect at 0
|
|
13060
13070
|
if (x.prev === null && x.next === null) {
|
|
13061
|
-
|
|
13071
|
+
val = 0;
|
|
13062
13072
|
}
|
|
13063
|
-
if (x.prev === null) {
|
|
13064
|
-
|
|
13073
|
+
else if (x.prev === null) {
|
|
13074
|
+
val = xScale(xScale.domain()[0]);
|
|
13075
|
+
}
|
|
13076
|
+
else {
|
|
13077
|
+
val = (xScale(d.x) + xScale(x.prev)) / 2;
|
|
13065
13078
|
}
|
|
13066
|
-
return
|
|
13079
|
+
return val;
|
|
13067
13080
|
};
|
|
13068
13081
|
}
|
|
13069
13082
|
x = isRotated ? 0 : rectX;
|
|
@@ -21429,7 +21442,7 @@ var zoomModule = function () {
|
|
|
21429
21442
|
var defaults = {};
|
|
21430
21443
|
/**
|
|
21431
21444
|
* @namespace bb
|
|
21432
|
-
* @version 3.6.
|
|
21445
|
+
* @version 3.6.2
|
|
21433
21446
|
*/
|
|
21434
21447
|
var bb = {
|
|
21435
21448
|
/**
|
|
@@ -21439,7 +21452,7 @@ var bb = {
|
|
|
21439
21452
|
* bb.version; // "1.0.0"
|
|
21440
21453
|
* @memberof bb
|
|
21441
21454
|
*/
|
|
21442
|
-
version: "3.6.
|
|
21455
|
+
version: "3.6.2",
|
|
21443
21456
|
/**
|
|
21444
21457
|
* Generate chart
|
|
21445
21458
|
* - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
|
|
@@ -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.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -106,7 +106,7 @@ var Plugin = /** @class */ (function () {
|
|
|
106
106
|
delete _this[key];
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
Plugin.version = "3.6.
|
|
109
|
+
Plugin.version = "3.6.2";
|
|
110
110
|
return Plugin;
|
|
111
111
|
}());
|
|
112
112
|
var Plugin$1 = Plugin;
|
|
@@ -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.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -277,7 +277,7 @@ var Plugin = /** @class */ (function () {
|
|
|
277
277
|
delete _this[key];
|
|
278
278
|
});
|
|
279
279
|
};
|
|
280
|
-
Plugin.version = "3.6.
|
|
280
|
+
Plugin.version = "3.6.2";
|
|
281
281
|
return Plugin;
|
|
282
282
|
}());
|
|
283
283
|
var Plugin$1 = Plugin;
|
|
@@ -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.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -485,7 +485,7 @@ var Plugin = /** @class */ (function () {
|
|
|
485
485
|
delete _this[key];
|
|
486
486
|
});
|
|
487
487
|
};
|
|
488
|
-
Plugin.version = "3.6.
|
|
488
|
+
Plugin.version = "3.6.2";
|
|
489
489
|
return Plugin;
|
|
490
490
|
}());
|
|
491
491
|
var Plugin$1 = Plugin;
|
|
@@ -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.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -125,7 +125,7 @@ var Plugin = /** @class */ (function () {
|
|
|
125
125
|
delete _this[key];
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
|
-
Plugin.version = "3.6.
|
|
128
|
+
Plugin.version = "3.6.2";
|
|
129
129
|
return Plugin;
|
|
130
130
|
}());
|
|
131
131
|
var Plugin$1 = Plugin;
|
|
@@ -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.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -265,7 +265,7 @@ var Plugin = /** @class */ (function () {
|
|
|
265
265
|
delete _this[key];
|
|
266
266
|
});
|
|
267
267
|
};
|
|
268
|
-
Plugin.version = "3.6.
|
|
268
|
+
Plugin.version = "3.6.2";
|
|
269
269
|
return Plugin;
|
|
270
270
|
}());
|
|
271
271
|
var Plugin$1 = Plugin;
|
package/package.json
CHANGED
|
@@ -242,33 +242,42 @@ export default {
|
|
|
242
242
|
rectW = (d): number => {
|
|
243
243
|
const x = getPrevNextX(d);
|
|
244
244
|
const xDomain = xScale.domain();
|
|
245
|
+
let val: number;
|
|
245
246
|
|
|
246
247
|
// if there this is a single data point make the eventRect full width (or height)
|
|
247
248
|
if (x.prev === null && x.next === null) {
|
|
248
|
-
|
|
249
|
+
val = isRotated ? state.height : state.width;
|
|
250
|
+
} else if (x.prev === null) {
|
|
251
|
+
val = (xScale(x.next) + xScale(d.x)) / 2;
|
|
252
|
+
} else if (x.next === null) {
|
|
253
|
+
val = xScale(xDomain[1]) - (
|
|
254
|
+
(xScale(x.prev) + xScale(d.x)) / 2
|
|
255
|
+
);
|
|
256
|
+
} else {
|
|
257
|
+
Object.keys(x).forEach((key, i) => {
|
|
258
|
+
x[key] = x[key] ?? xDomain[i];
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
val = Math.max(0, (xScale(x.next) - xScale(x.prev)) / 2);
|
|
249
262
|
}
|
|
250
263
|
|
|
251
|
-
|
|
252
|
-
x[key] = x[key] ?? xDomain[i];
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
return Math.max(0, (xScale(x.next) - xScale(x.prev)) / 2);
|
|
264
|
+
return val;
|
|
256
265
|
};
|
|
257
266
|
|
|
258
267
|
rectX = (d): number => {
|
|
259
268
|
const x = getPrevNextX(d);
|
|
260
|
-
|
|
269
|
+
let val: number;
|
|
261
270
|
|
|
262
271
|
// if there this is a single data point position the eventRect at 0
|
|
263
272
|
if (x.prev === null && x.next === null) {
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
273
|
+
val = 0;
|
|
274
|
+
} else if (x.prev === null) {
|
|
275
|
+
val = xScale(xScale.domain()[0]);
|
|
276
|
+
} else {
|
|
277
|
+
val = (xScale(d.x) + xScale(x.prev)) / 2;
|
|
269
278
|
}
|
|
270
279
|
|
|
271
|
-
return
|
|
280
|
+
return val;
|
|
272
281
|
};
|
|
273
282
|
}
|
|
274
283
|
|