billboard.js 2.2.6 → 2.2.7

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.
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -5,13 +5,13 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 2.2.6
8
+ * @version 2.2.7
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
12
  import { select } from 'd3-selection';
13
13
 
14
- /*! *****************************************************************************
14
+ /******************************************************************************
15
15
  Copyright (c) Microsoft Corporation.
16
16
 
17
17
  Permission to use, copy, modify, and/or distribute this software for any
@@ -25,8 +25,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
25
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
26
  PERFORMANCE OF THIS SOFTWARE.
27
27
  ***************************************************************************** */
28
-
29
28
  /* global Reflect, Promise */
29
+
30
30
  var _extendStatics = function extendStatics(d, b) {
31
31
  return _extendStatics = Object.setPrototypeOf || {
32
32
  __proto__: []
@@ -36,12 +36,10 @@ var _extendStatics = function extendStatics(d, b) {
36
36
  for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]);
37
37
  }, _extendStatics(d, b);
38
38
  };
39
-
40
39
  function __extends(d, b) {
41
40
  function __() {
42
41
  this.constructor = d;
43
42
  }
44
-
45
43
  if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + (b + "") + " is not a constructor or null");
46
44
  _extendStatics(d, b), d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
45
  }
@@ -50,12 +48,10 @@ function __extends(d, b) {
50
48
  * Copyright (c) 2017 ~ present NAVER Corp.
51
49
  * billboard.js project is licensed under the MIT license
52
50
  */
53
-
54
51
  /**
55
52
  * Base class to generate billboard.js plugin
56
53
  * @class Plugin
57
54
  */
58
-
59
55
  /**
60
56
  * Version info string for plugin
61
57
  * @name version
@@ -84,43 +80,40 @@ var Plugin = /*#__PURE__*/function () {
84
80
  function Plugin(options) {
85
81
  options === void 0 && (options = {}), this.$$, this.options = options;
86
82
  }
83
+
87
84
  /**
88
85
  * Lifecycle hook for 'beforeInit' phase.
89
86
  * @private
90
87
  */
91
-
92
-
93
88
  var _proto = Plugin.prototype;
94
89
  return _proto.$beforeInit = function $beforeInit() {}
90
+
95
91
  /**
96
92
  * Lifecycle hook for 'init' phase.
97
93
  * @private
98
- */
99
- , _proto.$init = function $init() {}
94
+ */, _proto.$init = function $init() {}
95
+
100
96
  /**
101
97
  * Lifecycle hook for 'afterInit' phase.
102
98
  * @private
103
- */
104
- , _proto.$afterInit = function $afterInit() {}
99
+ */, _proto.$afterInit = function $afterInit() {}
100
+
105
101
  /**
106
102
  * Lifecycle hook for 'redraw' phase.
107
103
  * @private
108
- */
109
- , _proto.$redraw = function $redraw() {}
104
+ */, _proto.$redraw = function $redraw() {}
105
+
110
106
  /**
111
107
  * Lifecycle hook for 'willDestroy' phase.
112
108
  * @private
113
- */
114
- , _proto.$willDestroy = function $willDestroy() {
109
+ */, _proto.$willDestroy = function $willDestroy() {
115
110
  var _this = this;
116
-
117
111
  Object.keys(this).forEach(function (key) {
118
112
  _this[key] = null, delete _this[key];
119
113
  });
120
114
  }, Plugin;
121
115
  }();
122
-
123
- Plugin.version = "#2.2.6#";
116
+ Plugin.version = "#2.2.7#";
124
117
 
125
118
  /**
126
119
  * Bubble compare diagram plugin.<br>
@@ -221,4 +214,4 @@ var BubbleCompare = /** @class */ (function (_super) {
221
214
  return BubbleCompare;
222
215
  }(Plugin));
223
216
 
224
- export default BubbleCompare;
217
+ export { BubbleCompare as default };
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 2.2.6
8
+ * @version 2.2.7
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -37,8 +37,9 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1__;
37
37
  /******/ // The require function
38
38
  /******/ function __webpack_require__(moduleId) {
39
39
  /******/ // Check if module is in cache
40
- /******/ if(__webpack_module_cache__[moduleId]) {
41
- /******/ return __webpack_module_cache__[moduleId].exports;
40
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
41
+ /******/ if (cachedModule !== undefined) {
42
+ /******/ return cachedModule.exports;
42
43
  /******/ }
43
44
  /******/ // Create a new module (and put it into the cache)
44
45
  /******/ var module = __webpack_module_cache__[moduleId] = {
@@ -87,16 +88,14 @@ function _assertThisInitialized(self) {
87
88
  if (self === void 0) {
88
89
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
89
90
  }
90
-
91
91
  return self;
92
92
  }
93
93
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
94
94
  function _setPrototypeOf(o, p) {
95
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
95
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
96
96
  o.__proto__ = p;
97
97
  return o;
98
98
  };
99
-
100
99
  return _setPrototypeOf(o, p);
101
100
  }
102
101
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
@@ -113,12 +112,10 @@ var external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_
113
112
  * Copyright (c) 2017 ~ present NAVER Corp.
114
113
  * billboard.js project is licensed under the MIT license
115
114
  */
116
-
117
115
  /**
118
116
  * Base class to generate billboard.js plugin
119
117
  * @class Plugin
120
118
  */
121
-
122
119
  /**
123
120
  * Version info string for plugin
124
121
  * @name version
@@ -137,49 +134,47 @@ var Plugin = /*#__PURE__*/function () {
137
134
  function Plugin(options) {
138
135
  options === void 0 && (options = {}), this.$$ = void 0, this.options = void 0, this.options = options;
139
136
  }
137
+
140
138
  /**
141
139
  * Lifecycle hook for 'beforeInit' phase.
142
140
  * @private
143
141
  */
144
-
145
-
146
142
  var _proto = Plugin.prototype;
147
143
  return _proto.$beforeInit = function $beforeInit() {}
144
+
148
145
  /**
149
146
  * Lifecycle hook for 'init' phase.
150
147
  * @private
151
- */
152
- , _proto.$init = function $init() {}
148
+ */, _proto.$init = function $init() {}
149
+
153
150
  /**
154
151
  * Lifecycle hook for 'afterInit' phase.
155
152
  * @private
156
- */
157
- , _proto.$afterInit = function $afterInit() {}
153
+ */, _proto.$afterInit = function $afterInit() {}
154
+
158
155
  /**
159
156
  * Lifecycle hook for 'redraw' phase.
160
157
  * @private
161
- */
162
- , _proto.$redraw = function $redraw() {}
158
+ */, _proto.$redraw = function $redraw() {}
159
+
163
160
  /**
164
161
  * Lifecycle hook for 'willDestroy' phase.
165
162
  * @private
166
- */
167
- , _proto.$willDestroy = function $willDestroy() {
163
+ */, _proto.$willDestroy = function $willDestroy() {
168
164
  var _this = this;
169
-
170
165
  Object.keys(this).forEach(function (key) {
171
166
  _this[key] = null, delete _this[key];
172
167
  });
173
168
  }, Plugin;
174
169
  }();
175
-
176
- Plugin.version = "2.2.5";
170
+ Plugin.version = "2.2.7";
177
171
 
178
172
  ;// CONCATENATED MODULE: ./src/Plugin/bubblecompare/index.ts
179
173
 
180
174
 
181
175
 
182
176
 
177
+
183
178
  /**
184
179
  * Bubble compare diagram plugin.<br>
185
180
  * Compare data 3-dimensional ways: x-axis, y-axis & bubble-size.
@@ -221,24 +216,20 @@ Plugin.version = "2.2.5";
221
216
  * ]
222
217
  * })
223
218
  */
224
-
225
219
  var BubbleCompare = /*#__PURE__*/function (_Plugin) {
226
220
  function BubbleCompare(options) {
227
221
  var _this;
228
-
229
222
  return _this = _Plugin.call(this, options) || this, _this.$$ = void 0, _assertThisInitialized(_this) || _assertThisInitialized(_this);
230
223
  }
231
-
232
224
  _inheritsLoose(BubbleCompare, _Plugin);
233
-
234
225
  var _proto = BubbleCompare.prototype;
235
226
  return _proto.$init = function $init() {
236
227
  var $$ = this.$$;
237
228
  $$.findClosest = this.findClosest.bind(this), $$.getBubbleR = this.getBubbleR.bind(this), $$.pointExpandedR = this.pointExpandedR.bind(this);
238
229
  }, _proto.pointExpandedR = function pointExpandedR(d) {
239
230
  var baseR = this.getBubbleR(d),
240
- _this$options$expandS = this.options.expandScale,
241
- expandScale = _this$options$expandS === void 0 ? 1 : _this$options$expandS;
231
+ _this$options$expandS = this.options.expandScale,
232
+ expandScale = _this$options$expandS === void 0 ? 1 : _this$options$expandS;
242
233
  return BubbleCompare.raiseFocusedBubbleLayer(d), this.changeCursorPoint(), baseR * expandScale;
243
234
  }, BubbleCompare.raiseFocusedBubbleLayer = function raiseFocusedBubbleLayer(d) {
244
235
  d.raise && (0,external_commonjs_d3_selection_commonjs2_d3_selection_amd_d3_selection_root_d3_.select)(d.node().parentNode.parentNode).raise();
@@ -246,8 +237,7 @@ var BubbleCompare = /*#__PURE__*/function (_Plugin) {
246
237
  this.$$.$el.svg.select(".bb-event-rect").style("cursor", "pointer");
247
238
  }, _proto.findClosest = function findClosest(values, pos) {
248
239
  var _this2 = this,
249
- $$ = this.$$;
250
-
240
+ $$ = this.$$;
251
241
  return values.filter(function (v) {
252
242
  return v && !$$.isBarType(v.id);
253
243
  }).reduce(function (acc, cur) {
@@ -256,34 +246,29 @@ var BubbleCompare = /*#__PURE__*/function (_Plugin) {
256
246
  }, 0);
257
247
  }, _proto.getBubbleR = function getBubbleR(d) {
258
248
  var _this3 = this,
259
- _this$options = this.options,
260
- minR = _this$options.minR,
261
- maxR = _this$options.maxR,
262
- curVal = this.getZData(d);
263
-
249
+ _this$options = this.options,
250
+ minR = _this$options.minR,
251
+ maxR = _this$options.maxR,
252
+ curVal = this.getZData(d);
264
253
  if (!curVal) return minR;
265
-
266
254
  var _this$$$$data$targets = this.$$.data.targets.reduce(function (_ref, cur) {
267
- var accMin = _ref[0],
255
+ var accMin = _ref[0],
268
256
  accMax = _ref[1],
269
257
  val = _this3.getZData(cur.values[0]);
270
-
271
- return [Math.min(accMin, val), Math.max(accMax, val)];
272
- }, [1e4, 0]),
273
- min = _this$$$$data$targets[0],
274
- max = _this$$$$data$targets[1],
275
- size = min > 0 && max === min ? 0 : curVal / max;
276
-
258
+ return [Math.min(accMin, val), Math.max(accMax, val)];
259
+ }, [1e4, 0]),
260
+ min = _this$$$$data$targets[0],
261
+ max = _this$$$$data$targets[1],
262
+ size = min > 0 && max === min ? 0 : curVal / max;
277
263
  return Math.abs(size) * (maxR - minR) + minR;
278
264
  }, _proto.getZData = function getZData(d) {
279
265
  return this.$$.isBubbleZType(d) ? this.$$.getBubbleZData(d.value, "z") : d.value;
280
266
  }, BubbleCompare;
281
267
  }(Plugin);
282
-
283
268
  BubbleCompare.version = "0.0.1";
284
269
 
285
270
  }();
286
- __webpack_exports__ = __webpack_exports__.default;
271
+ __webpack_exports__ = __webpack_exports__["default"];
287
272
  /******/ return __webpack_exports__;
288
273
  /******/ })()
289
274
  ;
@@ -5,8 +5,8 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 2.2.6
8
+ * @version 2.2.7
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-selection")):"function"==typeof define&&define.amd?define("bb",["d3-selection"],e):"object"==typeof exports?exports.bb=e(require("d3-selection")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.bubblecompare=e(t.d3))}(this,(function(t){return function(){"use strict";var e=[,function(e){e.exports=t}],n={};function i(t){if(n[t])return n[t].exports;var r=n[t]={exports:{}};return e[t](r,r.exports,i),r.exports}i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return(e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,n)}i.d(r,{default:function(){return u}});var n=i(1),o=function(){function t(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=t.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var t=this;Object.keys(this).forEach((function(e){t[e]=null,delete t[e]}))},t}();o.version="2.2.5";var u=function(i){function r(e){var n;return(n=i.call(this,e)||this).$$=void 0,t(n)||t(n)}var o,u;u=i,(o=r).prototype=Object.create(u.prototype),o.prototype.constructor=o,e(o,u);var s=r.prototype;return s.$init=function(){var t=this.$$;t.findClosest=this.findClosest.bind(this),t.getBubbleR=this.getBubbleR.bind(this),t.pointExpandedR=this.pointExpandedR.bind(this)},s.pointExpandedR=function(t){var e=this.getBubbleR(t),n=this.options.expandScale,i=void 0===n?1:n;return r.raiseFocusedBubbleLayer(t),this.changeCursorPoint(),e*i},r.raiseFocusedBubbleLayer=function(t){t.raise&&(0,n.select)(t.node().parentNode.parentNode).raise()},s.changeCursorPoint=function(){this.$$.$el.svg.select(".bb-event-rect").style("cursor","pointer")},s.findClosest=function(t,e){var n=this,i=this.$$;return t.filter((function(t){return t&&!i.isBarType(t.id)})).reduce((function(t,r){return i.dist(r,e)<n.getBubbleR(r)?r:t}),0)},s.getBubbleR=function(t){var e=this,n=this.options,i=n.minR,r=n.maxR,o=this.getZData(t);if(!o)return i;var u=this.$$.data.targets.reduce((function(t,n){var i=t[0],r=t[1],o=e.getZData(n.values[0]);return[Math.min(i,o),Math.max(r,o)]}),[1e4,0]),s=u[0],a=u[1],c=s>0&&a===s?0:o/a;return Math.abs(c)*(r-i)+i},s.getZData=function(t){return this.$$.isBubbleZType(t)?this.$$.getBubbleZData(t.value,"z"):t.value},r}(o);u.version="0.0.1"}(),r=r.default}()}));
12
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-selection")):"function"==typeof define&&define.amd?define("bb",["d3-selection"],e):"object"==typeof exports?exports.bb=e(require("d3-selection")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.bubblecompare=e(t.d3))}(this,(function(t){return function(){"use strict";var e=[,function(e){e.exports=t}],n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){function t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e(t,n)}i.d(r,{default:function(){return u}});var n=i(1),o=function(){function t(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=t.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var t=this;Object.keys(this).forEach((function(e){t[e]=null,delete t[e]}))},t}();o.version="2.2.7";var u=function(i){function r(e){var n;return(n=i.call(this,e)||this).$$=void 0,t(n)||t(n)}var o,u;u=i,(o=r).prototype=Object.create(u.prototype),o.prototype.constructor=o,e(o,u);var s=r.prototype;return s.$init=function(){var t=this.$$;t.findClosest=this.findClosest.bind(this),t.getBubbleR=this.getBubbleR.bind(this),t.pointExpandedR=this.pointExpandedR.bind(this)},s.pointExpandedR=function(t){var e=this.getBubbleR(t),n=this.options.expandScale,i=void 0===n?1:n;return r.raiseFocusedBubbleLayer(t),this.changeCursorPoint(),e*i},r.raiseFocusedBubbleLayer=function(t){t.raise&&(0,n.select)(t.node().parentNode.parentNode).raise()},s.changeCursorPoint=function(){this.$$.$el.svg.select(".bb-event-rect").style("cursor","pointer")},s.findClosest=function(t,e){var n=this,i=this.$$;return t.filter((function(t){return t&&!i.isBarType(t.id)})).reduce((function(t,r){return i.dist(r,e)<n.getBubbleR(r)?r:t}),0)},s.getBubbleR=function(t){var e=this,n=this.options,i=n.minR,r=n.maxR,o=this.getZData(t);if(!o)return i;var u=this.$$.data.targets.reduce((function(t,n){var i=t[0],r=t[1],o=e.getZData(n.values[0]);return[Math.min(i,o),Math.max(r,o)]}),[1e4,0]),s=u[0],a=u[1],c=s>0&&a===s?0:o/a;return Math.abs(c)*(r-i)+i},s.getZData=function(t){return this.$$.isBubbleZType(t)?this.$$.getBubbleZData(t.value,"z"):t.value},r}(o);u.version="0.0.1"}(),r=r.default}()}));
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 2.2.6
8
+ * @version 2.2.7
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -17,7 +17,7 @@ import 'd3-brush';
17
17
  import { axisRight } from 'd3-axis';
18
18
  import { format } from 'd3-format';
19
19
 
20
- /*! *****************************************************************************
20
+ /******************************************************************************
21
21
  Copyright (c) Microsoft Corporation.
22
22
 
23
23
  Permission to use, copy, modify, and/or distribute this software for any
@@ -31,8 +31,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
31
31
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
32
32
  PERFORMANCE OF THIS SOFTWARE.
33
33
  ***************************************************************************** */
34
-
35
34
  /* global Reflect, Promise */
35
+
36
36
  var _extendStatics = function extendStatics(d, b) {
37
37
  return _extendStatics = Object.setPrototypeOf || {
38
38
  __proto__: []
@@ -42,19 +42,16 @@ var _extendStatics = function extendStatics(d, b) {
42
42
  for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]);
43
43
  }, _extendStatics(d, b);
44
44
  };
45
-
46
45
  function __extends(d, b) {
47
46
  function __() {
48
47
  this.constructor = d;
49
48
  }
50
-
51
49
  if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + (b + "") + " is not a constructor or null");
52
50
  _extendStatics(d, b), d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
53
51
  }
54
- function __spreadArray(to, from) {
55
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];
56
-
57
- return to;
52
+ function __spreadArray(to, from, pack) {
53
+ if (pack || arguments.length === 2) for (var ar, i = 0, l = from.length; i < l; i++) (ar || !(i in from)) && (ar || (ar = Array.prototype.slice.call(from, 0, i)), ar[i] = from[i]);
54
+ return to.concat(ar || Array.prototype.slice.call(from));
58
55
  }
59
56
 
60
57
  /**
@@ -231,7 +228,7 @@ function mergeObj(target) {
231
228
  }
232
229
  });
233
230
  }
234
- return mergeObj.apply(void 0, __spreadArray([target], objectN));
231
+ return mergeObj.apply(void 0, __spreadArray([target], objectN, false));
235
232
  }
236
233
  /**
237
234
  * Get range
@@ -316,7 +313,7 @@ function parseDate(date) {
316
313
  }
317
314
  if (!parsedDate || isNaN(+parsedDate)) {
318
315
  console && console.error &&
319
- console.error("Failed to parse x '" + date + "' to Date object");
316
+ console.error("Failed to parse x '".concat(date, "' to Date object"));
320
317
  }
321
318
  return parsedDate;
322
319
  }
@@ -360,12 +357,10 @@ function loadConfig(config) {
360
357
  * Copyright (c) 2017 ~ present NAVER Corp.
361
358
  * billboard.js project is licensed under the MIT license
362
359
  */
363
-
364
360
  /**
365
361
  * Base class to generate billboard.js plugin
366
362
  * @class Plugin
367
363
  */
368
-
369
364
  /**
370
365
  * Version info string for plugin
371
366
  * @name version
@@ -394,43 +389,40 @@ var Plugin = /*#__PURE__*/function () {
394
389
  function Plugin(options) {
395
390
  options === void 0 && (options = {}), this.$$, this.options = options;
396
391
  }
392
+
397
393
  /**
398
394
  * Lifecycle hook for 'beforeInit' phase.
399
395
  * @private
400
396
  */
401
-
402
-
403
397
  var _proto = Plugin.prototype;
404
398
  return _proto.$beforeInit = function $beforeInit() {}
399
+
405
400
  /**
406
401
  * Lifecycle hook for 'init' phase.
407
402
  * @private
408
- */
409
- , _proto.$init = function $init() {}
403
+ */, _proto.$init = function $init() {}
404
+
410
405
  /**
411
406
  * Lifecycle hook for 'afterInit' phase.
412
407
  * @private
413
- */
414
- , _proto.$afterInit = function $afterInit() {}
408
+ */, _proto.$afterInit = function $afterInit() {}
409
+
415
410
  /**
416
411
  * Lifecycle hook for 'redraw' phase.
417
412
  * @private
418
- */
419
- , _proto.$redraw = function $redraw() {}
413
+ */, _proto.$redraw = function $redraw() {}
414
+
420
415
  /**
421
416
  * Lifecycle hook for 'willDestroy' phase.
422
417
  * @private
423
- */
424
- , _proto.$willDestroy = function $willDestroy() {
418
+ */, _proto.$willDestroy = function $willDestroy() {
425
419
  var _this = this;
426
-
427
420
  Object.keys(this).forEach(function (key) {
428
421
  _this[key] = null, delete _this[key];
429
422
  });
430
423
  }, Plugin;
431
424
  }();
432
-
433
- Plugin.version = "#2.2.6#";
425
+ Plugin.version = "#2.2.7#";
434
426
 
435
427
  /**
436
428
  * Copyright (c) 2017 ~ present NAVER Corp.
@@ -712,9 +704,9 @@ var Elements = /** @class */ (function () {
712
704
  var xvCustom = this.xvCustom.bind($$);
713
705
  var yvCustom = this.yvCustom.bind($$);
714
706
  // Stanford-Lines
715
- var stanfordLine = main.select("." + CLASS.stanfordLines)
707
+ var stanfordLine = main.select(".".concat(CLASS.stanfordLines))
716
708
  .style("shape-rendering", "geometricprecision")
717
- .selectAll("." + CLASS.stanfordLine)
709
+ .selectAll(".".concat(CLASS.stanfordLine))
718
710
  .data(this.owner.config.lines);
719
711
  // exit
720
712
  stanfordLine.exit().transition()
@@ -727,7 +719,7 @@ var Elements = /** @class */ (function () {
727
719
  .style("opacity", "0");
728
720
  stanfordLineEnter
729
721
  .merge(stanfordLine)
730
- .attr("class", function (d) { return CLASS.stanfordLine + (d["class"] ? " " + d["class"] : ""); })
722
+ .attr("class", function (d) { return CLASS.stanfordLine + (d["class"] ? " ".concat(d["class"]) : ""); })
731
723
  .select("line")
732
724
  .transition()
733
725
  .duration(duration)
@@ -746,8 +738,8 @@ var Elements = /** @class */ (function () {
746
738
  var yvCustom = this.yvCustom.bind($$);
747
739
  var countPointsInRegion = this.owner.countEpochsInRegion.bind($$);
748
740
  // Stanford-Regions
749
- var stanfordRegion = main.select("." + CLASS.stanfordRegions)
750
- .selectAll("." + CLASS.stanfordRegion)
741
+ var stanfordRegion = main.select(".".concat(CLASS.stanfordRegions))
742
+ .selectAll(".".concat(CLASS.stanfordRegion))
751
743
  .data(this.owner.config.regions);
752
744
  // exit
753
745
  stanfordRegion.exit().transition()
@@ -764,7 +756,7 @@ var Elements = /** @class */ (function () {
764
756
  stanfordRegion = stanfordRegionEnter.merge(stanfordRegion);
765
757
  // update
766
758
  stanfordRegion
767
- .attr("class", function (d) { return CLASS.stanfordRegion + (d["class"] ? " " + d["class"] : ""); })
759
+ .attr("class", function (d) { return CLASS.stanfordRegion + (d["class"] ? " ".concat(d["class"]) : ""); })
768
760
  .select("polygon")
769
761
  .transition()
770
762
  .duration(duration)
@@ -848,7 +840,7 @@ var ColorScale = /** @class */ (function () {
848
840
  .attr("height", height)
849
841
  .attr("class", CLASS.colorScale);
850
842
  this.colorScale.append("g")
851
- .attr("transform", "translate(0, " + config.padding_top + ")")
843
+ .attr("transform", "translate(0, ".concat(config.padding_top, ")"))
852
844
  .selectAll("bars")
853
845
  .data(points)
854
846
  .enter()
@@ -879,7 +871,7 @@ var ColorScale = /** @class */ (function () {
879
871
  // Draw Axis
880
872
  var axis = this.colorScale.append("g")
881
873
  .attr("class", "legend axis")
882
- .attr("transform", "translate(" + barWidth + ",0)")
874
+ .attr("transform", "translate(".concat(barWidth, ",0)"))
883
875
  .call(legendAxis);
884
876
  if (scaleFormat === "pow10") {
885
877
  axis.selectAll(".tick text")
@@ -890,7 +882,7 @@ var ColorScale = /** @class */ (function () {
890
882
  .attr("dy", "-.7em") // https://bl.ocks.org/mbostock/6738229
891
883
  .text(function (d) { return Math.round(Math.log(d) / Math.LN10); });
892
884
  }
893
- this.colorScale.attr("transform", "translate(" + ($$.state.current.width - this.xForColorScale()) + ", 0)");
885
+ this.colorScale.attr("transform", "translate(".concat($$.state.current.width - this.xForColorScale(), ", 0)"));
894
886
  };
895
887
  ColorScale.prototype.xForColorScale = function () {
896
888
  return this.owner.config.padding_right +
@@ -1080,11 +1072,11 @@ var Stanford = /** @class */ (function (_super) {
1080
1072
  var config = this.$$.config;
1081
1073
  if (isEmpty(config.tooltip_contents)) {
1082
1074
  config.tooltip_contents = function (d, defaultTitleFormat, defaultValueFormat, color) {
1083
- var html = "<table class=\"" + CLASS$1.tooltip + "\"><tbody>";
1075
+ var html = "<table class=\"".concat(CLASS$1.tooltip, "\"><tbody>");
1084
1076
  d.forEach(function (v) {
1085
- html += "<tr>\n\t\t\t\t\t\t\t<th>" + defaultTitleFormat(config.data_x) + "</th>\n\t\t\t\t\t\t\t<th class=\"value\">" + defaultValueFormat(v.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>" + defaultTitleFormat(v.id) + "</th>\n\t\t\t\t\t\t\t<th class=\"value\">" + defaultValueFormat(v.value) + "</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr class=\"" + CLASS$1.tooltipName + "-" + v.id + "\">\n\t\t\t\t\t\t\t<td class=\"name\"><span style=\"background-color:" + color(v) + "\"></span>" + defaultTitleFormat("Epochs") + "</td>\n\t\t\t\t\t\t\t<td class=\"value\">" + defaultValueFormat(v.epochs) + "</td>\n\t\t\t\t\t\t</tr>";
1077
+ html += "<tr>\n\t\t\t\t\t\t\t<th>".concat(defaultTitleFormat(config.data_x), "</th>\n\t\t\t\t\t\t\t<th class=\"value\">").concat(defaultValueFormat(v.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(defaultTitleFormat(v.id), "</th>\n\t\t\t\t\t\t\t<th class=\"value\">").concat(defaultValueFormat(v.value), "</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr class=\"").concat(CLASS$1.tooltipName, "-").concat(v.id, "\">\n\t\t\t\t\t\t\t<td class=\"name\"><span style=\"background-color:").concat(color(v), "\"></span>").concat(defaultTitleFormat("Epochs"), "</td>\n\t\t\t\t\t\t\t<td class=\"value\">").concat(defaultValueFormat(v.epochs), "</td>\n\t\t\t\t\t\t</tr>");
1086
1078
  });
1087
- return html + "</tbody></table>";
1079
+ return "".concat(html, "</tbody></table>");
1088
1080
  };
1089
1081
  }
1090
1082
  };
@@ -1108,4 +1100,4 @@ var Stanford = /** @class */ (function (_super) {
1108
1100
  return Stanford;
1109
1101
  }(Plugin));
1110
1102
 
1111
- export default Stanford;
1103
+ export { Stanford as default };