billboard.js 3.4.1 → 3.5.0-next.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.
Files changed (53) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +3283 -1110
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +7416 -4949
  6. package/dist/billboard.pkgd.min.js +3 -2
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +29 -13
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +259 -89
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +329 -106
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +223 -71
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +219 -72
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +3940 -3793
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +4219 -3882
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +4392 -3930
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +4187 -3868
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +4195 -3872
  22. package/dist/theme/datalab.css +1 -1
  23. package/dist/theme/datalab.min.css +1 -1
  24. package/dist/theme/graph.css +1 -1
  25. package/dist/theme/graph.min.css +1 -1
  26. package/dist/theme/insight.css +1 -1
  27. package/dist/theme/insight.min.css +1 -1
  28. package/dist-esm/billboard.js +206 -41
  29. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +47 -75
  30. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +66 -85
  31. package/dist-esm/plugin/billboardjs-plugin-stanford.js +50 -76
  32. package/dist-esm/plugin/billboardjs-plugin-tableview.js +47 -75
  33. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +47 -75
  34. package/package.json +34 -34
  35. package/src/Chart/api/data.ts +2 -2
  36. package/src/ChartInternal/Axis/AxisRenderer.ts +29 -3
  37. package/src/ChartInternal/ChartInternal.ts +8 -1
  38. package/src/ChartInternal/interactions/zoom.ts +17 -4
  39. package/src/ChartInternal/internals/color.ts +3 -2
  40. package/src/ChartInternal/internals/grid.ts +5 -3
  41. package/src/ChartInternal/internals/redraw.ts +5 -2
  42. package/src/ChartInternal/internals/scale.ts +3 -1
  43. package/src/ChartInternal/internals/size.axis.ts +5 -2
  44. package/src/ChartInternal/internals/text.ts +115 -15
  45. package/src/ChartInternal/shape/bar.ts +12 -5
  46. package/src/Plugin/sparkline/index.ts +22 -11
  47. package/src/Plugin/stanford/index.ts +10 -7
  48. package/src/config/Options/common/main.ts +15 -1
  49. package/src/config/Options/common/tooltip.ts +1 -1
  50. package/src/config/Options/data/data.ts +11 -3
  51. package/src/module/generator.ts +12 -5
  52. package/types/chart.d.ts +2 -2
  53. package/types/options.d.ts +21 -8
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.4.1
8
+ * @version 3.5.0-next.1
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -105,6 +105,12 @@ function _defineProperty(obj, key, value) {
105
105
 
106
106
  return obj;
107
107
  }
108
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/newArrowCheck.js
109
+ function _newArrowCheck(innerThis, boundThis) {
110
+ if (innerThis !== boundThis) {
111
+ throw new TypeError("Cannot instantiate an arrow function");
112
+ }
113
+ }
108
114
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
109
115
  function _assertThisInitialized(self) {
110
116
  if (self === void 0) {
@@ -115,11 +121,10 @@ function _assertThisInitialized(self) {
115
121
  }
116
122
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
117
123
  function _setPrototypeOf(o, p) {
118
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
124
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
119
125
  o.__proto__ = p;
120
126
  return o;
121
127
  };
122
-
123
128
  return _setPrototypeOf(o, p);
124
129
  }
125
130
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
@@ -130,6 +135,8 @@ function _inheritsLoose(subClass, superClass) {
130
135
  _setPrototypeOf(subClass, superClass);
131
136
  }
132
137
  ;// CONCATENATED MODULE: ./src/Plugin/Plugin.ts
138
+
139
+
133
140
  /**
134
141
  * Copyright (c) 2017 ~ present NAVER Corp.
135
142
  * billboard.js project is licensed under the MIT license
@@ -204,15 +211,17 @@ var Plugin = /*#__PURE__*/function () {
204
211
  var _this = this;
205
212
 
206
213
  Object.keys(this).forEach(function (key) {
207
- _this[key] = null;
208
- delete _this[key];
209
- });
214
+ _newArrowCheck(this, _this);
215
+
216
+ this[key] = null;
217
+ delete this[key];
218
+ }.bind(this));
210
219
  };
211
220
 
212
221
  return Plugin;
213
222
  }();
214
223
 
215
- Plugin.version = "3.4.1";
224
+ Plugin.version = "3.5.0-next.1";
216
225
 
217
226
  ;// CONCATENATED MODULE: ./src/Plugin/tableview/Options.ts
218
227
  /**
@@ -350,6 +359,10 @@ var external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_
350
359
  // EXTERNAL MODULE: external {"commonjs":"d3-brush","commonjs2":"d3-brush","amd":"d3-brush","root":"d3"}
351
360
  var external_commonjs_d3_brush_commonjs2_d3_brush_amd_d3_brush_root_d3_ = __webpack_require__(3);
352
361
  ;// CONCATENATED MODULE: ./src/module/browser.ts
362
+
363
+
364
+ var _this = undefined;
365
+
353
366
  /**
354
367
  * Copyright (c) 2017 ~ present NAVER Corp.
355
368
  * billboard.js project is licensed under the MIT license
@@ -364,25 +377,34 @@ var external_commonjs_d3_brush_commonjs2_d3_brush_amd_d3_brush_root_d3_ = __webp
364
377
 
365
378
 
366
379
  var win = function () {
380
+ _newArrowCheck(this, _this);
381
+
367
382
  var root = typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis || typeof global === "object" && global !== null && global.Object === Object && global || typeof self === "object" && self !== null && self.Object === Object && self;
368
383
  return root || Function("return this")();
369
- }();
384
+ }.bind(undefined)();
370
385
  /* eslint-enable no-new-func, no-undef */
371
386
  // fallback for non-supported environments
372
387
 
373
388
 
374
389
  win.requestIdleCallback = win.requestIdleCallback || function (cb) {
390
+ _newArrowCheck(this, _this);
391
+
375
392
  return setTimeout(cb, 1);
376
- };
393
+ }.bind(undefined);
377
394
 
378
395
  win.cancelIdleCallback = win.cancelIdleCallback || function (id) {
396
+ _newArrowCheck(this, _this);
397
+
379
398
  return clearTimeout(id);
380
- };
399
+ }.bind(undefined);
381
400
 
382
401
  var doc = win == null ? void 0 : win.document;
383
402
  ;// CONCATENATED MODULE: ./src/module/util.ts
384
403
 
385
404
 
405
+
406
+ var util_this = undefined;
407
+
386
408
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
387
409
 
388
410
  function _objectSpread(target) { for (var i = 1, source; i < arguments.length; i++) { source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -398,50 +420,80 @@ function _objectSpread(target) { for (var i = 1, source; i < arguments.length; i
398
420
 
399
421
 
400
422
  var isValue = function (v) {
423
+ _newArrowCheck(this, util_this);
424
+
401
425
  return v || v === 0;
402
- },
426
+ }.bind(undefined),
403
427
  isFunction = function (v) {
428
+ _newArrowCheck(this, util_this);
429
+
404
430
  return typeof v === "function";
405
- },
431
+ }.bind(undefined),
406
432
  isString = function (v) {
433
+ _newArrowCheck(this, util_this);
434
+
407
435
  return typeof v === "string";
408
- },
436
+ }.bind(undefined),
409
437
  isNumber = function (v) {
438
+ _newArrowCheck(this, util_this);
439
+
410
440
  return typeof v === "number";
411
- },
441
+ }.bind(undefined),
412
442
  isUndefined = function (v) {
443
+ _newArrowCheck(this, util_this);
444
+
413
445
  return typeof v === "undefined";
414
- },
446
+ }.bind(undefined),
415
447
  isDefined = function (v) {
448
+ _newArrowCheck(this, util_this);
449
+
416
450
  return typeof v !== "undefined";
417
- },
451
+ }.bind(undefined),
418
452
  isboolean = function (v) {
453
+ _newArrowCheck(this, util_this);
454
+
419
455
  return typeof v === "boolean";
420
- },
456
+ }.bind(undefined),
421
457
  ceil10 = function (v) {
458
+ _newArrowCheck(this, util_this);
459
+
422
460
  return Math.ceil(v / 10) * 10;
423
- },
461
+ }.bind(undefined),
424
462
  asHalfPixel = function (n) {
463
+ _newArrowCheck(this, util_this);
464
+
425
465
  return Math.ceil(n) + .5;
426
- },
466
+ }.bind(undefined),
427
467
  diffDomain = function (d) {
468
+ _newArrowCheck(this, util_this);
469
+
428
470
  return d[1] - d[0];
429
- },
471
+ }.bind(undefined),
430
472
  isObjectType = function (v) {
473
+ _newArrowCheck(this, util_this);
474
+
431
475
  return typeof v === "object";
432
- },
476
+ }.bind(undefined),
433
477
  isEmpty = function (o) {
478
+ _newArrowCheck(this, util_this);
479
+
434
480
  return isUndefined(o) || o === null || isString(o) && o.length === 0 || isObjectType(o) && !(o instanceof Date) && Object.keys(o).length === 0 || isNumber(o) && isNaN(o);
435
- },
481
+ }.bind(undefined),
436
482
  notEmpty = function (o) {
483
+ _newArrowCheck(this, util_this);
484
+
437
485
  return !isEmpty(o);
438
- },
486
+ }.bind(undefined),
439
487
  isArray = function (arr) {
488
+ _newArrowCheck(this, util_this);
489
+
440
490
  return Array.isArray(arr);
441
- },
491
+ }.bind(undefined),
442
492
  isObject = function (obj) {
493
+ _newArrowCheck(this, util_this);
494
+
443
495
  return obj && !(obj != null && obj.nodeType) && isObjectType(obj) && !isArray(obj);
444
- };
496
+ }.bind(undefined);
445
497
 
446
498
  /**
447
499
  * Get specified key value from object
@@ -465,10 +517,14 @@ function getOption(options, key, defaultValue) {
465
517
 
466
518
 
467
519
  function hasValue(dict, value) {
468
- var found = !1;
520
+ var _this2 = this,
521
+ found = !1;
522
+
469
523
  Object.keys(dict).forEach(function (key) {
524
+ _newArrowCheck(this, _this2);
525
+
470
526
  return dict[key] === value && (found = !0);
471
- });
527
+ }.bind(this));
472
528
  return found;
473
529
  }
474
530
  /**
@@ -498,7 +554,8 @@ function callFn(fn, thisArg) {
498
554
 
499
555
 
500
556
  function endall(transition, cb) {
501
- var n = 0,
557
+ var _this3 = this,
558
+ n = 0,
502
559
  end = function () {
503
560
  for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
504
561
  args[_key2] = arguments[_key2];
@@ -510,8 +567,10 @@ function endall(transition, cb) {
510
567
  // if is transition selection
511
568
  if ("duration" in transition) {
512
569
  transition.each(function () {
570
+ _newArrowCheck(this, _this3);
571
+
513
572
  return ++n;
514
- }).on("end", end);
573
+ }.bind(this)).on("end", end);
515
574
  } else {
516
575
  ++n;
517
576
  transition.call(end);
@@ -539,6 +598,8 @@ function sanitise(str) {
539
598
 
540
599
 
541
600
  function setTextValue(node, text, dy, toMiddle) {
601
+ var _this4 = this;
602
+
542
603
  if (dy === void 0) {
543
604
  dy = [-1, 1];
544
605
  }
@@ -555,8 +616,10 @@ function setTextValue(node, text, dy, toMiddle) {
555
616
  node.text(text);
556
617
  } else {
557
618
  var diff = [node.text(), text].map(function (v) {
619
+ _newArrowCheck(this, _this4);
620
+
558
621
  return v.replace(/[\s\n]/g, "");
559
- });
622
+ }.bind(this));
560
623
 
561
624
  if (diff[0] !== diff[1]) {
562
625
  var multiline = text.split("\n"),
@@ -564,8 +627,10 @@ function setTextValue(node, text, dy, toMiddle) {
564
627
  // reset possible text
565
628
  node.html("");
566
629
  multiline.forEach(function (v, i) {
630
+ _newArrowCheck(this, _this4);
631
+
567
632
  node.append("tspan").attr("x", 0).attr("dy", (i === 0 ? dy[0] * len : dy[1]) + "em").text(v);
568
- });
633
+ }.bind(this));
569
634
  }
570
635
  }
571
636
  }
@@ -644,11 +709,14 @@ function getPathBox(path) {
644
709
  function getPointer(event, element) {
645
710
  var _ref,
646
711
  touches = event && ((_ref = event.touches || event.sourceEvent && event.sourceEvent.touches) == null ? void 0 : _ref[0]),
647
- pointer = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.pointer)(touches || event, element);
712
+ pointer = (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.pointer)(touches || event, element),
713
+ _this5 = this;
648
714
 
649
715
  return pointer.map(function (v) {
716
+ _newArrowCheck(this, _this5);
717
+
650
718
  return isNaN(v) ? 0 : v;
651
- });
719
+ }.bind(this));
652
720
  }
653
721
  /**
654
722
  * Return brush selection array
@@ -775,7 +843,9 @@ function brushEmpty(ctx) {
775
843
 
776
844
 
777
845
  function deepClone() {
778
- for (var clone = function (v) {
846
+ for (var _this6 = this, clone = function (v) {
847
+ _newArrowCheck(this, _this6);
848
+
779
849
  if (isObject(v) && v.constructor) {
780
850
  var r = new v.constructor();
781
851
 
@@ -787,15 +857,19 @@ function deepClone() {
787
857
  }
788
858
 
789
859
  return v;
790
- }, _len3 = arguments.length, objectN = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
860
+ }.bind(this), _len3 = arguments.length, objectN = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
791
861
  objectN[_key3] = arguments[_key3];
792
862
  }
793
863
 
794
864
  return objectN.map(function (v) {
865
+ _newArrowCheck(this, _this6);
866
+
795
867
  return clone(v);
796
- }).reduce(function (a, c) {
868
+ }.bind(this)).reduce(function (a, c) {
869
+ _newArrowCheck(this, _this6);
870
+
797
871
  return _objectSpread(_objectSpread({}, a), c);
798
- });
872
+ }.bind(this));
799
873
  }
800
874
  /**
801
875
  * Extend target from source object
@@ -807,14 +881,18 @@ function deepClone() {
807
881
 
808
882
 
809
883
  function extend(target, source) {
884
+ var _this7 = this;
885
+
810
886
  if (target === void 0) {
811
887
  target = {};
812
888
  }
813
889
 
814
890
  if (isArray(source)) {
815
891
  source.forEach(function (v) {
892
+ _newArrowCheck(this, _this7);
893
+
816
894
  return extend(target, v);
817
- });
895
+ }.bind(this));
818
896
  } // exclude name with only numbers
819
897
 
820
898
 
@@ -837,8 +915,10 @@ function extend(target, source) {
837
915
 
838
916
 
839
917
  var capitalize = function (str) {
918
+ _newArrowCheck(this, util_this);
919
+
840
920
  return str.charAt(0).toUpperCase() + str.slice(1);
841
- };
921
+ }.bind(undefined);
842
922
  /**
843
923
  * Camelize from kebob style string
844
924
  * @param {string} str Target string
@@ -849,13 +929,17 @@ var capitalize = function (str) {
849
929
 
850
930
 
851
931
  function camelize(str, separator) {
932
+ var _this8 = this;
933
+
852
934
  if (separator === void 0) {
853
935
  separator = "-";
854
936
  }
855
937
 
856
938
  return str.split(separator).map(function (v, i) {
939
+ _newArrowCheck(this, _this8);
940
+
857
941
  return i ? v.charAt(0).toUpperCase() + v.slice(1).toLowerCase() : v.toLowerCase();
858
- }).join("");
942
+ }.bind(this)).join("");
859
943
  }
860
944
  /**
861
945
  * Convert to array
@@ -866,8 +950,10 @@ function camelize(str, separator) {
866
950
 
867
951
 
868
952
  var toArray = function (v) {
953
+ _newArrowCheck(this, util_this);
954
+
869
955
  return [].slice.call(v);
870
- };
956
+ }.bind(undefined);
871
957
  /**
872
958
  * Get css rules for specified stylesheets
873
959
  * @param {Array} styleSheets The stylesheets to get the rules from
@@ -877,8 +963,12 @@ var toArray = function (v) {
877
963
 
878
964
 
879
965
  function getCssRules(styleSheets) {
880
- var rules = [];
966
+ var _this9 = this,
967
+ rules = [];
968
+
881
969
  styleSheets.forEach(function (sheet) {
970
+ _newArrowCheck(this, _this9);
971
+
882
972
  try {
883
973
  if (sheet.cssRules && sheet.cssRules.length) {
884
974
  rules = rules.concat(toArray(sheet.cssRules));
@@ -886,7 +976,7 @@ function getCssRules(styleSheets) {
886
976
  } catch (e) {
887
977
  console.error("Error while reading rules from " + sheet.href + ": " + e.toString());
888
978
  }
889
- });
979
+ }.bind(this));
890
980
  return rules;
891
981
  }
892
982
  /**
@@ -918,13 +1008,19 @@ function getTranslation(node) {
918
1008
 
919
1009
 
920
1010
  function getUnique(data) {
921
- var isDate = data[0] instanceof Date,
1011
+ var _this10 = this,
1012
+ isDate = data[0] instanceof Date,
922
1013
  d = (isDate ? data.map(Number) : data).filter(function (v, i, self) {
1014
+ _newArrowCheck(this, _this10);
1015
+
923
1016
  return self.indexOf(v) === i;
924
- });
1017
+ }.bind(this));
1018
+
925
1019
  return isDate ? d.map(function (v) {
1020
+ _newArrowCheck(this, _this10);
1021
+
926
1022
  return new Date(v);
927
- }) : d;
1023
+ }.bind(this)) : d;
928
1024
  }
929
1025
  /**
930
1026
  * Merge array
@@ -935,9 +1031,13 @@ function getUnique(data) {
935
1031
 
936
1032
 
937
1033
  function mergeArray(arr) {
1034
+ var _this11 = this;
1035
+
938
1036
  return arr && arr.length ? arr.reduce(function (p, c) {
1037
+ _newArrowCheck(this, _this11);
1038
+
939
1039
  return p.concat(c);
940
- }) : [];
1040
+ }.bind(this)) : [];
941
1041
  }
942
1042
  /**
943
1043
  * Merge object returning new object
@@ -949,7 +1049,7 @@ function mergeArray(arr) {
949
1049
 
950
1050
 
951
1051
  function mergeObj(target) {
952
- for (var _len4 = arguments.length, objectN = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
1052
+ for (var _this12 = this, _len4 = arguments.length, objectN = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
953
1053
  objectN[_key4 - 1] = arguments[_key4];
954
1054
  }
955
1055
 
@@ -961,6 +1061,8 @@ function mergeObj(target) {
961
1061
 
962
1062
  if (isObject(target) && isObject(source)) {
963
1063
  Object.keys(source).forEach(function (key) {
1064
+ _newArrowCheck(this, _this12);
1065
+
964
1066
  var value = source[key];
965
1067
 
966
1068
  if (isObject(value)) {
@@ -969,7 +1071,7 @@ function mergeObj(target) {
969
1071
  } else {
970
1072
  target[key] = isArray(value) ? value.concat() : value;
971
1073
  }
972
- });
1074
+ }.bind(this));
973
1075
  }
974
1076
 
975
1077
  return mergeObj.apply(void 0, [target].concat(objectN));
@@ -984,6 +1086,8 @@ function mergeObj(target) {
984
1086
 
985
1087
 
986
1088
  function sortValue(data, isAsc) {
1089
+ var _this13 = this;
1090
+
987
1091
  if (isAsc === void 0) {
988
1092
  isAsc = !0;
989
1093
  }
@@ -992,19 +1096,27 @@ function sortValue(data, isAsc) {
992
1096
 
993
1097
  if (data[0] instanceof Date) {
994
1098
  fn = isAsc ? function (a, b) {
1099
+ _newArrowCheck(this, _this13);
1100
+
995
1101
  return a - b;
996
- } : function (a, b) {
1102
+ }.bind(this) : function (a, b) {
1103
+ _newArrowCheck(this, _this13);
1104
+
997
1105
  return b - a;
998
- };
1106
+ }.bind(this);
999
1107
  } else {
1000
1108
  if (isAsc && !data.every(isNaN)) {
1001
1109
  fn = function (a, b) {
1110
+ _newArrowCheck(this, _this13);
1111
+
1002
1112
  return a - b;
1003
- };
1113
+ }.bind(this);
1004
1114
  } else if (!isAsc) {
1005
1115
  fn = function (a, b) {
1116
+ _newArrowCheck(this, _this13);
1117
+
1006
1118
  return a > b && -1 || a < b && 1 || a === b && 0;
1007
- };
1119
+ }.bind(this);
1008
1120
  }
1009
1121
  }
1010
1122
 
@@ -1020,9 +1132,12 @@ function sortValue(data, isAsc) {
1020
1132
 
1021
1133
 
1022
1134
  function getMinMax(type, data) {
1023
- var res = data.filter(function (v) {
1135
+ var _this14 = this,
1136
+ res = data.filter(function (v) {
1137
+ _newArrowCheck(this, _this14);
1138
+
1024
1139
  return notEmpty(v);
1025
- });
1140
+ }.bind(this));
1026
1141
 
1027
1142
  if (res.length) {
1028
1143
  if (isNumber(res[0])) {
@@ -1051,6 +1166,8 @@ var getRange = function (start, end, step) {
1051
1166
  step = 1;
1052
1167
  }
1053
1168
 
1169
+ _newArrowCheck(this, util_this);
1170
+
1054
1171
  var res = [],
1055
1172
  n = Math.max(0, Math.ceil((end - start) / step)) | 0;
1056
1173
 
@@ -1059,10 +1176,16 @@ var getRange = function (start, end, step) {
1059
1176
  }
1060
1177
 
1061
1178
  return res;
1062
- },
1179
+ }.bind(undefined),
1063
1180
  emulateEvent = {
1064
1181
  mouse: function () {
1182
+ var _this15 = this;
1183
+
1184
+ _newArrowCheck(this, util_this);
1185
+
1065
1186
  var getParams = function () {
1187
+ _newArrowCheck(this, _this15);
1188
+
1066
1189
  return {
1067
1190
  bubbles: !1,
1068
1191
  cancelable: !1,
@@ -1071,7 +1194,7 @@ var getRange = function (start, end, step) {
1071
1194
  clientX: 0,
1072
1195
  clientY: 0
1073
1196
  };
1074
- };
1197
+ }.bind(this);
1075
1198
 
1076
1199
  try {
1077
1200
  // eslint-disable-next-line no-new
@@ -1081,8 +1204,10 @@ var getRange = function (start, end, step) {
1081
1204
  params = getParams();
1082
1205
  }
1083
1206
 
1207
+ _newArrowCheck(this, _this15);
1208
+
1084
1209
  el.dispatchEvent(new MouseEvent(eventType, params));
1085
- };
1210
+ }.bind(this);
1086
1211
  } catch (e) {
1087
1212
  // Polyfills DOM4 MouseEvent
1088
1213
  return function (el, eventType, params) {
@@ -1090,15 +1215,19 @@ var getRange = function (start, end, step) {
1090
1215
  params = getParams();
1091
1216
  }
1092
1217
 
1218
+ _newArrowCheck(this, _this15);
1219
+
1093
1220
  var mouseEvent = doc.createEvent("MouseEvent"); // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent
1094
1221
 
1095
1222
  mouseEvent.initMouseEvent(eventType, params.bubbles, params.cancelable, win, 0, // the event's mouse click count
1096
1223
  params.screenX, params.screenY, params.clientX, params.clientY, !1, !1, !1, !1, 0, null);
1097
1224
  el.dispatchEvent(mouseEvent);
1098
- };
1225
+ }.bind(this);
1099
1226
  }
1100
- }(),
1227
+ }.bind(undefined)(),
1101
1228
  touch: function touch(el, eventType, params) {
1229
+ _newArrowCheck(this, util_this);
1230
+
1102
1231
  var touchObj = new Touch(mergeObj({
1103
1232
  identifier: Date.now(),
1104
1233
  target: el,
@@ -1115,7 +1244,7 @@ var getRange = function (start, end, step) {
1115
1244
  targetTouches: [],
1116
1245
  changedTouches: [touchObj]
1117
1246
  }));
1118
- }
1247
+ }.bind(undefined)
1119
1248
  }; // emulate event
1120
1249
 
1121
1250
 
@@ -1187,7 +1316,8 @@ function isTabVisible() {
1187
1316
 
1188
1317
 
1189
1318
  function convertInputType(mouse, touch) {
1190
- var DocumentTouch = win.DocumentTouch,
1319
+ var _this16 = this,
1320
+ DocumentTouch = win.DocumentTouch,
1191
1321
  matchMedia = win.matchMedia,
1192
1322
  navigator = win.navigator,
1193
1323
  hasTouch = !1;
@@ -1215,12 +1345,16 @@ function convertInputType(mouse, touch) {
1215
1345
 
1216
1346
 
1217
1347
  var hasMouse = mouse && ["any-hover:hover", "any-pointer:fine"].some(function (v) {
1348
+ _newArrowCheck(this, _this16);
1349
+
1218
1350
  return matchMedia == null ? void 0 : matchMedia("(" + v + ")").matches;
1219
- }); // fallback to 'mouse' if no input type is detected.
1351
+ }.bind(this)); // fallback to 'mouse' if no input type is detected.
1220
1352
 
1221
1353
  return hasMouse && "mouse" || hasTouch && "touch" || "mouse";
1222
1354
  }
1223
1355
  ;// CONCATENATED MODULE: ./src/config/config.ts
1356
+
1357
+
1224
1358
  /**
1225
1359
  * Copyright (c) 2017 ~ present NAVER Corp.
1226
1360
  * billboard.js project is licensed under the MIT license
@@ -1233,11 +1367,14 @@ function convertInputType(mouse, touch) {
1233
1367
  * @private
1234
1368
  */
1235
1369
  function loadConfig(config) {
1236
- var thisConfig = this.config,
1370
+ var _this = this,
1371
+ thisConfig = this.config,
1237
1372
  target,
1238
1373
  keys,
1239
1374
  read,
1240
1375
  find = function () {
1376
+ _newArrowCheck(this, _this);
1377
+
1241
1378
  var key = keys.shift();
1242
1379
 
1243
1380
  if (key && target && isObjectType(target) && key in target) {
@@ -1248,9 +1385,11 @@ function loadConfig(config) {
1248
1385
  }
1249
1386
 
1250
1387
  return undefined;
1251
- };
1388
+ }.bind(this);
1252
1389
 
1253
1390
  Object.keys(thisConfig).forEach(function (key) {
1391
+ _newArrowCheck(this, _this);
1392
+
1254
1393
  target = config;
1255
1394
  keys = key.split("_");
1256
1395
  read = find();
@@ -1258,13 +1397,14 @@ function loadConfig(config) {
1258
1397
  if (isDefined(read)) {
1259
1398
  thisConfig[key] = read;
1260
1399
  }
1261
- });
1400
+ }.bind(this));
1262
1401
  }
1263
1402
  ;// CONCATENATED MODULE: ./src/Plugin/tableview/index.ts
1264
1403
 
1265
1404
 
1266
1405
 
1267
1406
 
1407
+
1268
1408
  function tableview_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1269
1409
 
1270
1410
  function tableview_objectSpread(target) { for (var i = 1, source; i < arguments.length; i++) { source = null != arguments[i] ? arguments[i] : {}; i % 2 ? tableview_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : tableview_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -1391,25 +1531,37 @@ var TableView = /*#__PURE__*/function (_Plugin) {
1391
1531
  rows = [];
1392
1532
 
1393
1533
  dataToShow.forEach(function (v) {
1534
+ var _this3 = this;
1535
+
1536
+ _newArrowCheck(this, _this2);
1537
+
1394
1538
  thead += tplProcess(tpl.thead, {
1395
1539
  title: v.id
1396
1540
  }); // make up value rows
1397
1541
 
1398
1542
  v.values.forEach(function (d, i) {
1543
+ _newArrowCheck(this, _this3);
1544
+
1399
1545
  if (!rows[i]) {
1400
1546
  rows[i] = [d.x];
1401
1547
  }
1402
1548
 
1403
1549
  rows[i].push(d.value);
1404
- });
1405
- });
1550
+ }.bind(this));
1551
+ }.bind(this));
1406
1552
  rows.forEach(function (v) {
1553
+ var _this4 = this;
1554
+
1555
+ _newArrowCheck(this, _this2);
1556
+
1407
1557
  tbody += "<tr>" + v.map(function (d, i) {
1558
+ _newArrowCheck(this, _this4);
1559
+
1408
1560
  return tplProcess(i ? tpl.tbody : tpl.tbodyHeader, {
1409
- value: i === 0 ? config.categoryFormat.bind(_this2)(d) : isNumber(d) ? d.toLocaleString() : ""
1561
+ value: i === 0 ? config.categoryFormat.bind(this)(d) : isNumber(d) ? d.toLocaleString() : ""
1410
1562
  });
1411
- }).join("") + "</tr>";
1412
- });
1563
+ }.bind(this)).join("") + "</tr>";
1564
+ }.bind(this));
1413
1565
  var r = tplProcess(tpl.body, tableview_objectSpread(tableview_objectSpread({}, config), {}, {
1414
1566
  title: config.title || $$.config.title_text || "",
1415
1567
  thead: thead,