billboard.js 3.14.3 → 3.15.0-next.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.
Files changed (54) hide show
  1. package/README.md +4 -2
  2. package/dist/billboard.css +1 -1
  3. package/dist/billboard.js +155 -102
  4. package/dist/billboard.min.css +1 -1
  5. package/dist/billboard.min.js +10 -10
  6. package/dist/billboard.pkgd.js +1367 -1014
  7. package/dist/billboard.pkgd.min.js +14 -14
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-sparkline.min.js +3 -3
  12. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-stanford.min.js +3 -3
  14. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-tableview.min.js +3 -3
  16. package/dist/plugin/billboardjs-plugin-textoverlap.js +9 -9
  17. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +3 -3
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +1204 -914
  19. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +5 -5
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +1205 -915
  21. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +7 -7
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +1206 -916
  23. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +14 -14
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +1207 -917
  25. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +8 -8
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +1215 -918
  27. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +6 -6
  28. package/dist/theme/dark.css +1 -1
  29. package/dist/theme/dark.min.css +1 -1
  30. package/dist/theme/datalab.css +1 -1
  31. package/dist/theme/datalab.min.css +1 -1
  32. package/dist/theme/graph.css +1 -1
  33. package/dist/theme/graph.min.css +1 -1
  34. package/dist/theme/insight.css +1 -1
  35. package/dist/theme/insight.min.css +1 -1
  36. package/dist/theme/modern.css +1 -1
  37. package/dist/theme/modern.min.css +1 -1
  38. package/dist-esm/billboard.js +555 -482
  39. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +4 -4
  40. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +15 -88
  41. package/dist-esm/plugin/billboardjs-plugin-stanford.js +13 -86
  42. package/dist-esm/plugin/billboardjs-plugin-tableview.js +10 -83
  43. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +7 -70
  44. package/package.json +28 -28
  45. package/src/Chart/api/chart.ts +2 -0
  46. package/src/Chart/api/regions.ts +2 -2
  47. package/src/ChartInternal/Axis/Axis.ts +68 -60
  48. package/src/ChartInternal/ChartInternal.ts +9 -4
  49. package/src/ChartInternal/interactions/interaction.ts +1 -1
  50. package/src/ChartInternal/internals/region.ts +69 -56
  51. package/src/config/Options/axis/y2.ts +13 -0
  52. package/src/config/Options/common/main.ts +32 -11
  53. package/types/options.d.ts +3 -1
  54. package/types/types.d.ts +0 -14
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.3
8
+ * @version 3.15.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -66,7 +66,7 @@ var Plugin = /** @class */ (function () {
66
66
  * @private
67
67
  */
68
68
  function Plugin(options) {
69
- if (options === undefined) { options = {}; }
69
+ if (options === void 0) { options = {}; }
70
70
  this.options = options;
71
71
  }
72
72
  /**
@@ -100,7 +100,7 @@ var Plugin = /** @class */ (function () {
100
100
  delete _this[key];
101
101
  });
102
102
  };
103
- Plugin.version = "3.14.3";
103
+ Plugin.version = "3.15.0-next.2";
104
104
  return Plugin;
105
105
  }());
106
106
 
@@ -159,7 +159,7 @@ var BubbleCompare = /** @class */ (function (_super) {
159
159
  };
160
160
  BubbleCompare.prototype.pointExpandedR = function (d) {
161
161
  var baseR = this.getBubbleR(d);
162
- var _a = this.options.expandScale, expandScale = _a === undefined ? 1 : _a;
162
+ var _a = this.options.expandScale, expandScale = _a === void 0 ? 1 : _a;
163
163
  BubbleCompare.raiseFocusedBubbleLayer(d);
164
164
  this.changeCursorPoint();
165
165
  return baseR * expandScale;
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.3
8
+ * @version 3.15.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -49,17 +49,7 @@ var __assign = function() {
49
49
  return t;
50
50
  };
51
51
  return __assign.apply(this, arguments);
52
- };
53
-
54
- function __spreadArray(to, from, pack) {
55
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
56
- if (ar || !(i in from)) {
57
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
58
- ar[i] = from[i];
59
- }
60
- }
61
- return to.concat(ar || Array.prototype.slice.call(from));
62
- }
52
+ };
63
53
 
64
54
  /**
65
55
  * Copyright (c) 2017 ~ present NAVER Corp.
@@ -251,54 +241,10 @@ function getGlobal() {
251
241
  Function("return this")();
252
242
  }
253
243
  var win = getGlobal();
254
- var doc = win === null || win === undefined ? undefined : win.document;
244
+ var doc = win === null || win === void 0 ? void 0 : win.document;
255
245
 
256
246
  var isDefined = function (v) { return typeof v !== "undefined"; };
257
247
  var isObjectType = function (v) { return typeof v === "object"; };
258
- /**
259
- * Check if is array
260
- * @param {Array} arr Data to be checked
261
- * @returns {boolean}
262
- * @private
263
- */
264
- var isArray = function (arr) { return Array.isArray(arr); };
265
- /**
266
- * Check if is object
267
- * @param {object} obj Data to be checked
268
- * @returns {boolean}
269
- * @private
270
- */
271
- var isObject = function (obj) { return obj && !(obj === null || obj === undefined ? undefined : obj.nodeType) && isObjectType(obj) && !isArray(obj); };
272
- /**
273
- * Merge object returning new object
274
- * @param {object} target Target object
275
- * @param {object} objectN Source object
276
- * @returns {object} merged target object
277
- * @private
278
- */
279
- function mergeObj(target) {
280
- var objectN = [];
281
- for (var _i = 1; _i < arguments.length; _i++) {
282
- objectN[_i - 1] = arguments[_i];
283
- }
284
- if (!objectN.length || (objectN.length === 1 && !objectN[0])) {
285
- return target;
286
- }
287
- var source = objectN.shift();
288
- if (isObject(target) && isObject(source)) {
289
- Object.keys(source).forEach(function (key) {
290
- var value = source[key];
291
- if (isObject(value)) {
292
- !target[key] && (target[key] = {});
293
- target[key] = mergeObj(target[key], value);
294
- }
295
- else {
296
- target[key] = isArray(value) ? value.concat() : value;
297
- }
298
- });
299
- }
300
- return mergeObj.apply(undefined, __spreadArray([target], objectN, false));
301
- }
302
248
  // emulate event
303
249
  ({
304
250
  mouse: (function () {
@@ -314,14 +260,14 @@ function mergeObj(target) {
314
260
  // eslint-disable-next-line no-new
315
261
  new MouseEvent("t");
316
262
  return function (el, eventType, params) {
317
- if (params === undefined) { params = getParams(); }
263
+ if (params === void 0) { params = getParams(); }
318
264
  el.dispatchEvent(new MouseEvent(eventType, params));
319
265
  };
320
266
  }
321
267
  catch (_a) {
322
268
  // Polyfills DOM4 MouseEvent
323
269
  return function (el, eventType, params) {
324
- if (params === undefined) { params = getParams(); }
270
+ if (params === void 0) { params = getParams(); }
325
271
  var mouseEvent = doc.createEvent("MouseEvent");
326
272
  // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent
327
273
  mouseEvent.initMouseEvent(eventType, params.bubbles, params.cancelable, win, 0, // the event's mouse click count
@@ -329,26 +275,7 @@ function mergeObj(target) {
329
275
  el.dispatchEvent(mouseEvent);
330
276
  };
331
277
  }
332
- })(),
333
- touch: function (el, eventType, params) {
334
- var touchObj = new Touch(mergeObj({
335
- identifier: Date.now(),
336
- target: el,
337
- radiusX: 2.5,
338
- radiusY: 2.5,
339
- rotationAngle: 10,
340
- force: 0.5
341
- }, params));
342
- el.dispatchEvent(new TouchEvent(eventType, {
343
- cancelable: true,
344
- bubbles: true,
345
- shiftKey: true,
346
- touches: [touchObj],
347
- targetTouches: [],
348
- changedTouches: [touchObj]
349
- }));
350
- }
351
- });
278
+ })()});
352
279
 
353
280
  /**
354
281
  * Load configuration option
@@ -409,7 +336,7 @@ var Plugin = /** @class */ (function () {
409
336
  * @private
410
337
  */
411
338
  function Plugin(options) {
412
- if (options === undefined) { options = {}; }
339
+ if (options === void 0) { options = {}; }
413
340
  this.options = options;
414
341
  }
415
342
  /**
@@ -443,7 +370,7 @@ var Plugin = /** @class */ (function () {
443
370
  delete _this[key];
444
371
  });
445
372
  };
446
- Plugin.version = "3.14.3";
373
+ Plugin.version = "3.15.0-next.2";
447
374
  return Plugin;
448
375
  }());
449
376
 
@@ -610,7 +537,7 @@ var Sparkline = /** @class */ (function (_super) {
610
537
  .style("width", "0")
611
538
  .style("height", "0")
612
539
  .style("pointer-events", "none");
613
- ((_a = $el.tooltip) === null || _a === undefined ? undefined : _a.node()) && document.body.appendChild($el.tooltip.node());
540
+ ((_a = $el.tooltip) === null || _a === void 0 ? void 0 : _a.node()) && document.body.appendChild($el.tooltip.node());
614
541
  };
615
542
  Sparkline.prototype.$afterInit = function () {
616
543
  var $$ = this.$$;
@@ -626,7 +553,7 @@ var Sparkline = /** @class */ (function (_super) {
626
553
  */
627
554
  Sparkline.prototype.bindEvents = function (bind) {
628
555
  var _this = this;
629
- if (bind === undefined) { bind = true; }
556
+ if (bind === void 0) { bind = true; }
630
557
  var config = this.$$.config;
631
558
  if (config.interaction_enabled && config.tooltip_show) {
632
559
  var method_1 = "".concat(bind ? "add" : "remove", "EventListener");
@@ -648,14 +575,14 @@ var Sparkline = /** @class */ (function (_super) {
648
575
  var _a, _b, _c, _d;
649
576
  var $$ = this.$$;
650
577
  var index = $$.getDataIndexFromEvent(e);
651
- var data = (_a = $$.api.data(e.target.__id)) === null || _a === undefined ? undefined : _a[0];
652
- var d = (_b = data === null || data === undefined ? undefined : data.values) === null || _b === undefined ? undefined : _b[index];
578
+ var data = (_a = $$.api.data(e.target.__id)) === null || _a === void 0 ? void 0 : _a[0];
579
+ var d = (_b = data === null || data === void 0 ? void 0 : data.values) === null || _b === void 0 ? void 0 : _b[index];
653
580
  if (d && !d.name) {
654
581
  d.name = d.id;
655
582
  }
656
583
  $$.state.event = e;
657
- if (((_c = $$.isPointFocusOnly) === null || _c === undefined ? undefined : _c.call($$)) && d) {
658
- (_d = $$.showCircleFocus) === null || _d === undefined ? undefined : _d.call($$, [d]);
584
+ if (((_c = $$.isPointFocusOnly) === null || _c === void 0 ? void 0 : _c.call($$)) && d) {
585
+ (_d = $$.showCircleFocus) === null || _d === void 0 ? void 0 : _d.call($$, [d]);
659
586
  }
660
587
  $$.setExpand(index, data.id, true);
661
588
  $$.showTooltip([d], e.target);
@@ -672,7 +599,7 @@ var Sparkline = /** @class */ (function (_super) {
672
599
  var $el = $$.$el;
673
600
  var el = this.element;
674
601
  var data = $$.api.data();
675
- var svgWrapper = (_a = $el.chart.html().match(/<svg[^>]*>/)) === null || _a === undefined ? undefined : _a[0];
602
+ var svgWrapper = (_a = $el.chart.html().match(/<svg[^>]*>/)) === null || _a === void 0 ? void 0 : _a[0];
676
603
  // append sparkline holder if is less than the data length
677
604
  if (el.length < data.length) {
678
605
  var chart = $el.chart.node();
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.3
8
+ * @version 3.15.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -55,17 +55,7 @@ var __assign = function() {
55
55
  return t;
56
56
  };
57
57
  return __assign.apply(this, arguments);
58
- };
59
-
60
- function __spreadArray(to, from, pack) {
61
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
62
- if (ar || !(i in from)) {
63
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
64
- ar[i] = from[i];
65
- }
66
- }
67
- return to.concat(ar || Array.prototype.slice.call(from));
68
- }
58
+ };
69
59
 
70
60
  /**
71
61
  * Copyright (c) 2017 ~ present NAVER Corp.
@@ -257,7 +247,7 @@ function getGlobal() {
257
247
  Function("return this")();
258
248
  }
259
249
  var win = getGlobal();
260
- var doc = win === null || win === undefined ? undefined : win.document;
250
+ var doc = win === null || win === void 0 ? void 0 : win.document;
261
251
 
262
252
  var isFunction = function (v) { return typeof v === "function"; };
263
253
  var isString = function (v) { return typeof v === "string"; };
@@ -269,50 +259,6 @@ var isEmpty = function (o) { return (isUndefined(o) || o === null ||
269
259
  (isString(o) && o.length === 0) ||
270
260
  (isObjectType(o) && !(o instanceof Date) && Object.keys(o).length === 0) ||
271
261
  (isNumber(o) && isNaN(o))); };
272
- /**
273
- * Check if is array
274
- * @param {Array} arr Data to be checked
275
- * @returns {boolean}
276
- * @private
277
- */
278
- var isArray = function (arr) { return Array.isArray(arr); };
279
- /**
280
- * Check if is object
281
- * @param {object} obj Data to be checked
282
- * @returns {boolean}
283
- * @private
284
- */
285
- var isObject = function (obj) { return obj && !(obj === null || obj === undefined ? undefined : obj.nodeType) && isObjectType(obj) && !isArray(obj); };
286
- /**
287
- * Merge object returning new object
288
- * @param {object} target Target object
289
- * @param {object} objectN Source object
290
- * @returns {object} merged target object
291
- * @private
292
- */
293
- function mergeObj(target) {
294
- var objectN = [];
295
- for (var _i = 1; _i < arguments.length; _i++) {
296
- objectN[_i - 1] = arguments[_i];
297
- }
298
- if (!objectN.length || (objectN.length === 1 && !objectN[0])) {
299
- return target;
300
- }
301
- var source = objectN.shift();
302
- if (isObject(target) && isObject(source)) {
303
- Object.keys(source).forEach(function (key) {
304
- var value = source[key];
305
- if (isObject(value)) {
306
- !target[key] && (target[key] = {});
307
- target[key] = mergeObj(target[key], value);
308
- }
309
- else {
310
- target[key] = isArray(value) ? value.concat() : value;
311
- }
312
- });
313
- }
314
- return mergeObj.apply(undefined, __spreadArray([target], objectN, false));
315
- }
316
262
  /**
317
263
  * Get range
318
264
  * @param {number} start Start number
@@ -344,14 +290,14 @@ var getRange = function (start, end, step) {
344
290
  // eslint-disable-next-line no-new
345
291
  new MouseEvent("t");
346
292
  return function (el, eventType, params) {
347
- if (params === undefined) { params = getParams(); }
293
+ if (params === void 0) { params = getParams(); }
348
294
  el.dispatchEvent(new MouseEvent(eventType, params));
349
295
  };
350
296
  }
351
297
  catch (_a) {
352
298
  // Polyfills DOM4 MouseEvent
353
299
  return function (el, eventType, params) {
354
- if (params === undefined) { params = getParams(); }
300
+ if (params === void 0) { params = getParams(); }
355
301
  var mouseEvent = doc.createEvent("MouseEvent");
356
302
  // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent
357
303
  mouseEvent.initMouseEvent(eventType, params.bubbles, params.cancelable, win, 0, // the event's mouse click count
@@ -359,26 +305,7 @@ var getRange = function (start, end, step) {
359
305
  el.dispatchEvent(mouseEvent);
360
306
  };
361
307
  }
362
- })(),
363
- touch: function (el, eventType, params) {
364
- var touchObj = new Touch(mergeObj({
365
- identifier: Date.now(),
366
- target: el,
367
- radiusX: 2.5,
368
- radiusY: 2.5,
369
- rotationAngle: 10,
370
- force: 0.5
371
- }, params));
372
- el.dispatchEvent(new TouchEvent(eventType, {
373
- cancelable: true,
374
- bubbles: true,
375
- shiftKey: true,
376
- touches: [touchObj],
377
- targetTouches: [],
378
- changedTouches: [touchObj]
379
- }));
380
- }
381
- });
308
+ })()});
382
309
  /**
383
310
  * Get parsed date value
384
311
  * (It must be called in 'ChartInternal' context)
@@ -396,7 +323,7 @@ function parseDate(date) {
396
323
  var _b = this, config = _b.config, format = _b.format;
397
324
  // if fails to parse, try by new Date()
398
325
  // https://github.com/naver/billboard.js/issues/1714
399
- parsedDate = (_a = format.dataTime(config.data_xFormat)(date)) !== null && _a !== undefined ? _a : new Date(date);
326
+ parsedDate = (_a = format.dataTime(config.data_xFormat)(date)) !== null && _a !== void 0 ? _a : new Date(date);
400
327
  }
401
328
  else if (isNumber(date) && !isNaN(date)) {
402
329
  parsedDate = new Date(+date);
@@ -467,7 +394,7 @@ var Plugin = /** @class */ (function () {
467
394
  * @private
468
395
  */
469
396
  function Plugin(options) {
470
- if (options === undefined) { options = {}; }
397
+ if (options === void 0) { options = {}; }
471
398
  this.options = options;
472
399
  }
473
400
  /**
@@ -501,7 +428,7 @@ var Plugin = /** @class */ (function () {
501
428
  delete _this[key];
502
429
  });
503
430
  };
504
- Plugin.version = "3.14.3";
431
+ Plugin.version = "3.15.0-next.2";
505
432
  return Plugin;
506
433
  }());
507
434
 
@@ -819,7 +746,7 @@ var Elements = /** @class */ (function () {
819
746
  .style("opacity", null);
820
747
  };
821
748
  Elements.prototype.updateStanfordElements = function (duration) {
822
- if (duration === undefined) { duration = 0; }
749
+ if (duration === void 0) { duration = 0; }
823
750
  this.updateStanfordLines(duration);
824
751
  this.updateStanfordRegions(duration);
825
752
  };
@@ -1113,8 +1040,8 @@ var Stanford = /** @class */ (function (_super) {
1113
1040
  };
1114
1041
  Stanford.prototype.$redraw = function (duration) {
1115
1042
  var _a, _b;
1116
- (_a = this.colorScale) === null || _a === undefined ? undefined : _a.drawColorScale();
1117
- (_b = this.elements) === null || _b === undefined ? undefined : _b.updateStanfordElements(duration);
1043
+ (_a = this.colorScale) === null || _a === void 0 ? void 0 : _a.drawColorScale();
1044
+ (_b = this.elements) === null || _b === void 0 ? void 0 : _b.updateStanfordElements(duration);
1118
1045
  };
1119
1046
  Stanford.prototype.getOptions = function () {
1120
1047
  return new Options();
@@ -1159,7 +1086,7 @@ var Stanford = /** @class */ (function (_super) {
1159
1086
  var data_x = config.data_x;
1160
1087
  var html = "<table class=\"".concat($TOOLTIP.tooltip, "\"><tbody>");
1161
1088
  d.forEach(function (v) {
1162
- var _a = v.id, id = _a === undefined ? "" : _a, _b = v.value, value = _b === undefined ? 0 : _b, _c = v.epochs, epochs = _c === undefined ? 0 : _c, _d = v.x, x = _d === undefined ? "" : _d;
1089
+ var _a = v.id, id = _a === void 0 ? "" : _a, _b = v.value, value = _b === void 0 ? 0 : _b, _c = v.epochs, epochs = _c === void 0 ? 0 : _c, _d = v.x, x = _d === void 0 ? "" : _d;
1163
1090
  html += "<tr>\n\t\t\t\t\t\t\t<th>".concat(data_x || "", "</th>\n\t\t\t\t\t\t\t<th class=\"value\">").concat(defaultTitleFormat(x), "</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>").concat(v.id, "</th>\n\t\t\t\t\t\t\t<th class=\"value\">").concat(defaultValueFormat(value), "</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr class=\"").concat($TOOLTIP.tooltipName, "-").concat(id, "\">\n\t\t\t\t\t\t\t<td class=\"name\"><span style=\"background-color:").concat(color(v), "\"></span>Epochs</td>\n\t\t\t\t\t\t\t<td class=\"value\">").concat(defaultValueFormat(epochs), "</td>\n\t\t\t\t\t\t</tr>");
1164
1091
  });
1165
1092
  return "".concat(html, "</tbody></table>");
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.14.3
8
+ * @version 3.15.0-next.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -49,17 +49,7 @@ var __assign = function() {
49
49
  return t;
50
50
  };
51
51
  return __assign.apply(this, arguments);
52
- };
53
-
54
- function __spreadArray(to, from, pack) {
55
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
56
- if (ar || !(i in from)) {
57
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
58
- ar[i] = from[i];
59
- }
60
- }
61
- return to.concat(ar || Array.prototype.slice.call(from));
62
- }
52
+ };
63
53
 
64
54
  /**
65
55
  * Copyright (c) 2017 ~ present NAVER Corp.
@@ -83,55 +73,11 @@ function getGlobal() {
83
73
  Function("return this")();
84
74
  }
85
75
  var win = getGlobal();
86
- var doc = win === null || win === undefined ? undefined : win.document;
76
+ var doc = win === null || win === void 0 ? void 0 : win.document;
87
77
 
88
78
  var isNumber = function (v) { return typeof v === "number"; };
89
79
  var isDefined = function (v) { return typeof v !== "undefined"; };
90
80
  var isObjectType = function (v) { return typeof v === "object"; };
91
- /**
92
- * Check if is array
93
- * @param {Array} arr Data to be checked
94
- * @returns {boolean}
95
- * @private
96
- */
97
- var isArray = function (arr) { return Array.isArray(arr); };
98
- /**
99
- * Check if is object
100
- * @param {object} obj Data to be checked
101
- * @returns {boolean}
102
- * @private
103
- */
104
- var isObject = function (obj) { return obj && !(obj === null || obj === undefined ? undefined : obj.nodeType) && isObjectType(obj) && !isArray(obj); };
105
- /**
106
- * Merge object returning new object
107
- * @param {object} target Target object
108
- * @param {object} objectN Source object
109
- * @returns {object} merged target object
110
- * @private
111
- */
112
- function mergeObj(target) {
113
- var objectN = [];
114
- for (var _i = 1; _i < arguments.length; _i++) {
115
- objectN[_i - 1] = arguments[_i];
116
- }
117
- if (!objectN.length || (objectN.length === 1 && !objectN[0])) {
118
- return target;
119
- }
120
- var source = objectN.shift();
121
- if (isObject(target) && isObject(source)) {
122
- Object.keys(source).forEach(function (key) {
123
- var value = source[key];
124
- if (isObject(value)) {
125
- !target[key] && (target[key] = {});
126
- target[key] = mergeObj(target[key], value);
127
- }
128
- else {
129
- target[key] = isArray(value) ? value.concat() : value;
130
- }
131
- });
132
- }
133
- return mergeObj.apply(undefined, __spreadArray([target], objectN, false));
134
- }
135
81
  // emulate event
136
82
  ({
137
83
  mouse: (function () {
@@ -147,14 +93,14 @@ function mergeObj(target) {
147
93
  // eslint-disable-next-line no-new
148
94
  new MouseEvent("t");
149
95
  return function (el, eventType, params) {
150
- if (params === undefined) { params = getParams(); }
96
+ if (params === void 0) { params = getParams(); }
151
97
  el.dispatchEvent(new MouseEvent(eventType, params));
152
98
  };
153
99
  }
154
100
  catch (_a) {
155
101
  // Polyfills DOM4 MouseEvent
156
102
  return function (el, eventType, params) {
157
- if (params === undefined) { params = getParams(); }
103
+ if (params === void 0) { params = getParams(); }
158
104
  var mouseEvent = doc.createEvent("MouseEvent");
159
105
  // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent
160
106
  mouseEvent.initMouseEvent(eventType, params.bubbles, params.cancelable, win, 0, // the event's mouse click count
@@ -162,26 +108,7 @@ function mergeObj(target) {
162
108
  el.dispatchEvent(mouseEvent);
163
109
  };
164
110
  }
165
- })(),
166
- touch: function (el, eventType, params) {
167
- var touchObj = new Touch(mergeObj({
168
- identifier: Date.now(),
169
- target: el,
170
- radiusX: 2.5,
171
- radiusY: 2.5,
172
- rotationAngle: 10,
173
- force: 0.5
174
- }, params));
175
- el.dispatchEvent(new TouchEvent(eventType, {
176
- cancelable: true,
177
- bubbles: true,
178
- shiftKey: true,
179
- touches: [touchObj],
180
- targetTouches: [],
181
- changedTouches: [touchObj]
182
- }));
183
- }
184
- });
111
+ })()});
185
112
  /**
186
113
  * Process the template & return bound string
187
114
  * @param {string} tpl Template string
@@ -256,7 +183,7 @@ var Plugin = /** @class */ (function () {
256
183
  * @private
257
184
  */
258
185
  function Plugin(options) {
259
- if (options === undefined) { options = {}; }
186
+ if (options === void 0) { options = {}; }
260
187
  this.options = options;
261
188
  }
262
189
  /**
@@ -290,7 +217,7 @@ var Plugin = /** @class */ (function () {
290
217
  delete _this[key];
291
218
  });
292
219
  };
293
- Plugin.version = "3.14.3";
220
+ Plugin.version = "3.15.0-next.2";
294
221
  return Plugin;
295
222
  }());
296
223
 
@@ -549,11 +476,11 @@ var TableView = /** @class */ (function (_super) {
549
476
  };
550
477
  TableView.prototype.$willDestroy = function () {
551
478
  var _a, _b;
552
- (_a = this.element.parentNode) === null || _a === undefined ? undefined : _a.removeChild(this.element);
479
+ (_a = this.element.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(this.element);
553
480
  // remove default css style when left one chart instance
554
481
  if (this.$$.charts.length === 1) {
555
482
  var s = document.getElementById(defaultStyle.id);
556
- (_b = s === null || s === undefined ? undefined : s.parentNode) === null || _b === undefined ? undefined : _b.removeChild(s);
483
+ (_b = s === null || s === void 0 ? void 0 : s.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(s);
557
484
  }
558
485
  };
559
486
  return TableView;