billboard.js 3.11.2 → 3.12.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.
- package/README.md +2 -6
- package/dist/billboard.css +5 -1
- package/dist/billboard.js +19431 -24292
- package/dist/billboard.min.css +2 -2
- package/dist/billboard.min.js +26 -3
- package/dist/billboard.pkgd.js +22301 -29057
- package/dist/billboard.pkgd.min.js +33 -3
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +77 -175
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -3
- package/dist/plugin/billboardjs-plugin-sparkline.js +423 -1134
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +4 -3
- package/dist/plugin/billboardjs-plugin-stanford.js +660 -1524
- package/dist/plugin/billboardjs-plugin-stanford.min.js +15 -3
- package/dist/plugin/billboardjs-plugin-tableview.js +503 -1175
- package/dist/plugin/billboardjs-plugin-tableview.min.js +30 -3
- package/dist/plugin/billboardjs-plugin-textoverlap.js +351 -1055
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +4 -3
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +339 -1324
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +5 -3
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +1701 -3424
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +7 -3
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +2385 -4462
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +18 -3
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +1783 -3467
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +33 -3
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +2031 -3979
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +7 -3
- package/dist/theme/dark.css +5 -1
- package/dist/theme/dark.min.css +2 -2
- package/dist/theme/datalab.css +5 -1
- package/dist/theme/datalab.min.css +2 -2
- package/dist/theme/graph.css +5 -1
- package/dist/theme/graph.min.css +2 -2
- package/dist/theme/insight.css +5 -1
- package/dist/theme/insight.min.css +2 -2
- package/dist/theme/modern.css +5 -1
- package/dist/theme/modern.min.css +3 -4
- package/dist-esm/billboard.js +9051 -8666
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +19 -25
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +149 -148
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +295 -286
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +235 -234
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +40 -41
- package/package.json +26 -46
- package/src/Chart/api/axis.ts +6 -13
- package/src/Chart/api/chart.ts +12 -11
- package/src/Chart/api/data.ts +8 -7
- package/src/Chart/api/export.ts +28 -21
- package/src/Chart/api/flow.ts +4 -2
- package/src/Chart/api/grid.ts +1 -5
- package/src/Chart/api/load.ts +2 -2
- package/src/Chart/api/regions.ts +29 -5
- package/src/Chart/api/selection.ts +2 -2
- package/src/Chart/api/show.ts +2 -3
- package/src/Chart/api/subchart.ts +2 -2
- package/src/Chart/api/tooltip.ts +5 -7
- package/src/Chart/api/x.ts +2 -2
- package/src/Chart/api/zoom.ts +2 -2
- package/src/ChartInternal/Axis/Axis.ts +119 -44
- package/src/ChartInternal/Axis/AxisRenderer.ts +53 -38
- package/src/ChartInternal/Axis/AxisRendererHelper.ts +2 -2
- package/src/ChartInternal/ChartInternal.ts +79 -51
- package/src/ChartInternal/data/IData.ts +22 -29
- package/src/ChartInternal/data/convert.helper.ts +66 -68
- package/src/ChartInternal/data/convert.ts +11 -11
- package/src/ChartInternal/data/data.ts +40 -23
- package/src/ChartInternal/data/load.ts +7 -6
- package/src/ChartInternal/interactions/drag.ts +2 -1
- package/src/ChartInternal/interactions/eventrect.ts +54 -25
- package/src/ChartInternal/interactions/flow.ts +14 -4
- package/src/ChartInternal/interactions/interaction.ts +34 -12
- package/src/ChartInternal/interactions/subchart.ts +27 -25
- package/src/ChartInternal/interactions/zoom.ts +29 -18
- package/src/ChartInternal/internals/category.ts +1 -1
- package/src/ChartInternal/internals/class.ts +5 -5
- package/src/ChartInternal/internals/clip.ts +9 -10
- package/src/ChartInternal/internals/color.ts +70 -42
- package/src/ChartInternal/internals/domain.ts +59 -28
- package/src/ChartInternal/internals/format.ts +5 -5
- package/src/ChartInternal/internals/grid.ts +130 -47
- package/src/ChartInternal/internals/legend.ts +99 -66
- package/src/ChartInternal/internals/redraw.ts +3 -2
- package/src/ChartInternal/internals/region.ts +5 -3
- package/src/ChartInternal/internals/scale.ts +28 -15
- package/src/ChartInternal/internals/selection.ts +14 -13
- package/src/ChartInternal/internals/size.axis.ts +18 -10
- package/src/ChartInternal/internals/size.ts +97 -66
- package/src/ChartInternal/internals/style.ts +21 -19
- package/src/ChartInternal/internals/text.ts +64 -39
- package/src/ChartInternal/internals/title.ts +2 -2
- package/src/ChartInternal/internals/tooltip.ts +83 -34
- package/src/ChartInternal/internals/transform.ts +2 -2
- package/src/ChartInternal/internals/type.ts +12 -12
- package/src/ChartInternal/shape/arc.ts +78 -44
- package/src/ChartInternal/shape/area.ts +19 -22
- package/src/ChartInternal/shape/bar.ts +41 -31
- package/src/ChartInternal/shape/bubble.ts +5 -5
- package/src/ChartInternal/shape/candlestick.ts +15 -13
- package/src/ChartInternal/shape/gauge.ts +16 -9
- package/src/ChartInternal/shape/line.ts +62 -46
- package/src/ChartInternal/shape/point.common.ts +1 -4
- package/src/ChartInternal/shape/point.ts +52 -32
- package/src/ChartInternal/shape/polar.ts +4 -2
- package/src/ChartInternal/shape/radar.ts +40 -22
- package/src/ChartInternal/shape/shape.ts +84 -58
- package/src/ChartInternal/shape/treemap.ts +29 -20
- package/src/Plugin/bubblecompare/index.ts +1 -3
- package/src/Plugin/sparkline/index.ts +3 -4
- package/src/Plugin/stanford/ColorScale.ts +3 -2
- package/src/Plugin/stanford/Elements.ts +15 -6
- package/src/Plugin/stanford/Options.ts +5 -5
- package/src/Plugin/stanford/index.ts +13 -9
- package/src/Plugin/tableview/Options.ts +1 -1
- package/src/Plugin/tableview/const.ts +1 -4
- package/src/Plugin/tableview/index.ts +11 -9
- package/src/Plugin/textoverlap/index.ts +4 -6
- package/src/config/Options/Options.ts +3 -3
- package/src/config/Options/axis/axis.ts +36 -0
- package/src/config/Options/axis/x.ts +12 -13
- package/src/config/Options/axis/y.ts +13 -13
- package/src/config/Options/axis/y2.ts +23 -10
- package/src/config/Options/common/color.ts +4 -4
- package/src/config/Options/common/grid.ts +4 -4
- package/src/config/Options/common/legend.ts +13 -14
- package/src/config/Options/common/main.ts +23 -23
- package/src/config/Options/common/point.ts +17 -18
- package/src/config/Options/common/title.ts +2 -2
- package/src/config/Options/common/tooltip.ts +13 -11
- package/src/config/Options/data/axis.ts +2 -2
- package/src/config/Options/data/data.ts +45 -45
- package/src/config/Options/interaction/interaction.ts +1 -1
- package/src/config/Options/interaction/subchart.ts +2 -2
- package/src/config/Options/interaction/zoom.ts +9 -9
- package/src/config/Options/shape/arc.ts +10 -13
- package/src/config/Options/shape/area.ts +5 -7
- package/src/config/Options/shape/bar.ts +8 -10
- package/src/config/Options/shape/bubble.ts +1 -1
- package/src/config/Options/shape/candlestick.ts +2 -2
- package/src/config/Options/shape/donut.ts +4 -4
- package/src/config/Options/shape/gauge.ts +6 -6
- package/src/config/Options/shape/line.ts +3 -3
- package/src/config/Options/shape/pie.ts +5 -5
- package/src/config/Options/shape/polar.ts +3 -3
- package/src/config/Options/shape/radar.ts +2 -2
- package/src/config/Options/shape/scatter.ts +1 -1
- package/src/config/Options/shape/treemap.ts +1 -1
- package/src/config/Store/Element.ts +8 -5
- package/src/config/Store/State.ts +19 -13
- package/src/config/classes.ts +6 -4
- package/src/config/config.ts +1 -1
- package/src/config/resolver/axis.ts +4 -4
- package/src/config/resolver/interaction.ts +3 -7
- package/src/config/resolver/shape.ts +11 -12
- package/src/core.ts +2 -3
- package/src/index.esm.ts +2 -6
- package/src/index.ts +2 -2
- package/src/module/Cache.ts +2 -3
- package/src/module/browser.ts +15 -10
- package/src/module/error.ts +9 -8
- package/src/module/generator.ts +3 -5
- package/src/module/util.ts +60 -37
- package/src/module/worker.ts +14 -11
- package/src/scss/billboard.scss +6 -0
- package/src/scss/theme/dark.scss +6 -0
- package/src/scss/theme/datalab.scss +6 -0
- package/src/scss/theme/graph.scss +6 -0
- package/src/scss/theme/insight.scss +6 -0
- package/src/scss/theme/modern.scss +6 -0
- package/types/axis.d.ts +7 -0
- package/types/options.d.ts +7 -0
- package/types/options.shape.d.ts +7 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.12.0-next.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -24,26 +24,22 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
24
24
|
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
|
-
***************************************************************************** */
|
|
28
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
d
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
function __() {
|
|
44
|
-
this.constructor = d;
|
|
45
|
-
}
|
|
46
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
27
|
+
***************************************************************************** */
|
|
28
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
29
|
+
|
|
30
|
+
var extendStatics = function(d, b) {
|
|
31
|
+
extendStatics = Object.setPrototypeOf ||
|
|
32
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
33
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
34
|
+
return extendStatics(d, b);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
function __extends(d, b) {
|
|
38
|
+
if (typeof b !== "function" && b !== null)
|
|
39
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
40
|
+
extendStatics(d, b);
|
|
41
|
+
function __() { this.constructor = d; }
|
|
42
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47
43
|
}
|
|
48
44
|
|
|
49
45
|
/**
|
|
@@ -104,7 +100,7 @@ var Plugin = /** @class */ (function () {
|
|
|
104
100
|
delete _this[key];
|
|
105
101
|
});
|
|
106
102
|
};
|
|
107
|
-
Plugin.version = "3.
|
|
103
|
+
Plugin.version = "3.12.0-next.1";
|
|
108
104
|
return Plugin;
|
|
109
105
|
}());
|
|
110
106
|
var Plugin$1 = Plugin;
|
|
@@ -200,9 +196,7 @@ var BubbleCompare = /** @class */ (function (_super) {
|
|
|
200
196
|
return Math.abs(size) * (maxR - minR) + minR;
|
|
201
197
|
};
|
|
202
198
|
BubbleCompare.prototype.getZData = function (d) {
|
|
203
|
-
return this.$$.isBubbleZType(d) ?
|
|
204
|
-
this.$$.getBubbleZData(d.value, "z") :
|
|
205
|
-
d.value;
|
|
199
|
+
return this.$$.isBubbleZType(d) ? this.$$.getBubbleZData(d.value, "z") : d.value;
|
|
206
200
|
};
|
|
207
201
|
BubbleCompare.version = "0.0.1";
|
|
208
202
|
return BubbleCompare;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.12.0-next.1
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
@@ -22,45 +22,43 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
22
22
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
23
23
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
24
24
|
PERFORMANCE OF THIS SOFTWARE.
|
|
25
|
-
***************************************************************************** */
|
|
26
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
d
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
25
|
+
***************************************************************************** */
|
|
26
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
27
|
+
|
|
28
|
+
var extendStatics = function(d, b) {
|
|
29
|
+
extendStatics = Object.setPrototypeOf ||
|
|
30
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
32
|
+
return extendStatics(d, b);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
function __extends(d, b) {
|
|
36
|
+
if (typeof b !== "function" && b !== null)
|
|
37
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
38
|
+
extendStatics(d, b);
|
|
39
|
+
function __() { this.constructor = d; }
|
|
40
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
var __assign = function() {
|
|
44
|
+
__assign = Object.assign || function __assign(t) {
|
|
45
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
46
|
+
s = arguments[i];
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
48
|
+
}
|
|
49
|
+
return t;
|
|
50
|
+
};
|
|
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));
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
/**
|
|
@@ -101,7 +99,10 @@ var $AXIS = {
|
|
|
101
99
|
axisY: "bb-axis-y",
|
|
102
100
|
axisY2: "bb-axis-y2",
|
|
103
101
|
axisY2Label: "bb-axis-y2-label",
|
|
104
|
-
axisYLabel: "bb-axis-y-label"
|
|
102
|
+
axisYLabel: "bb-axis-y-label",
|
|
103
|
+
axisXTooltip: "bb-axis-x-tooltip",
|
|
104
|
+
axisYTooltip: "bb-axis-y-tooltip",
|
|
105
|
+
axisY2Tooltip: "bb-axis-y2-tooltip"
|
|
105
106
|
};
|
|
106
107
|
var $BAR = {
|
|
107
108
|
bar: "bb-bar",
|
|
@@ -156,7 +157,7 @@ var $EVENT = {
|
|
|
156
157
|
eventRect: "bb-event-rect",
|
|
157
158
|
eventRects: "bb-event-rects",
|
|
158
159
|
eventRectsMultiple: "bb-event-rects-multiple",
|
|
159
|
-
eventRectsSingle: "bb-event-rects-single"
|
|
160
|
+
eventRectsSingle: "bb-event-rects-single"
|
|
160
161
|
};
|
|
161
162
|
var $FOCUS = {
|
|
162
163
|
focused: "bb-focused",
|
|
@@ -192,7 +193,7 @@ var $SELECT = {
|
|
|
192
193
|
};
|
|
193
194
|
var $SHAPE = {
|
|
194
195
|
shape: "bb-shape",
|
|
195
|
-
shapes: "bb-shapes"
|
|
196
|
+
shapes: "bb-shapes"
|
|
196
197
|
};
|
|
197
198
|
var $SUBCHART = {
|
|
198
199
|
brush: "bb-brush",
|
|
@@ -220,101 +221,7 @@ var $ZOOM = {
|
|
|
220
221
|
buttonZoomReset: "bb-zoom-reset",
|
|
221
222
|
zoomBrush: "bb-zoom-brush"
|
|
222
223
|
};
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
227
|
-
* billboard.js project is licensed under the MIT license
|
|
228
|
-
*/
|
|
229
|
-
/**
|
|
230
|
-
* Base class to generate billboard.js plugin
|
|
231
|
-
* @class Plugin
|
|
232
|
-
*/
|
|
233
|
-
/**
|
|
234
|
-
* Version info string for plugin
|
|
235
|
-
* @name version
|
|
236
|
-
* @static
|
|
237
|
-
* @memberof Plugin
|
|
238
|
-
* @type {string}
|
|
239
|
-
* @example
|
|
240
|
-
* bb.plugin.stanford.version; // ex) 1.9.0
|
|
241
|
-
*/
|
|
242
|
-
var Plugin = /** @class */ (function () {
|
|
243
|
-
/**
|
|
244
|
-
* Constructor
|
|
245
|
-
* @param {Any} options config option object
|
|
246
|
-
* @private
|
|
247
|
-
*/
|
|
248
|
-
function Plugin(options) {
|
|
249
|
-
if (options === void 0) { options = {}; }
|
|
250
|
-
this.options = options;
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Lifecycle hook for 'beforeInit' phase.
|
|
254
|
-
* @private
|
|
255
|
-
*/
|
|
256
|
-
Plugin.prototype.$beforeInit = function () { };
|
|
257
|
-
/**
|
|
258
|
-
* Lifecycle hook for 'init' phase.
|
|
259
|
-
* @private
|
|
260
|
-
*/
|
|
261
|
-
Plugin.prototype.$init = function () { };
|
|
262
|
-
/**
|
|
263
|
-
* Lifecycle hook for 'afterInit' phase.
|
|
264
|
-
* @private
|
|
265
|
-
*/
|
|
266
|
-
Plugin.prototype.$afterInit = function () { };
|
|
267
|
-
/**
|
|
268
|
-
* Lifecycle hook for 'redraw' phase.
|
|
269
|
-
* @private
|
|
270
|
-
*/
|
|
271
|
-
Plugin.prototype.$redraw = function () { };
|
|
272
|
-
/**
|
|
273
|
-
* Lifecycle hook for 'willDestroy' phase.
|
|
274
|
-
* @private
|
|
275
|
-
*/
|
|
276
|
-
Plugin.prototype.$willDestroy = function () {
|
|
277
|
-
var _this = this;
|
|
278
|
-
Object.keys(this).forEach(function (key) {
|
|
279
|
-
_this[key] = null;
|
|
280
|
-
delete _this[key];
|
|
281
|
-
});
|
|
282
|
-
};
|
|
283
|
-
Plugin.version = "3.11.2";
|
|
284
|
-
return Plugin;
|
|
285
|
-
}());
|
|
286
|
-
var Plugin$1 = Plugin;
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Copyright (c) 2021 ~ present NAVER Corp.
|
|
290
|
-
* billboard.js project is licensed under the MIT license
|
|
291
|
-
*/
|
|
292
|
-
/**
|
|
293
|
-
* Sparkline plugin option class
|
|
294
|
-
* @class SparklineOptions
|
|
295
|
-
* @param {Options} options Sparkline plugin options
|
|
296
|
-
* @augments Plugin
|
|
297
|
-
* @returns {TableviewOptions}
|
|
298
|
-
* @private
|
|
299
|
-
*/
|
|
300
|
-
var Options = /** @class */ (function () {
|
|
301
|
-
function Options() {
|
|
302
|
-
return {
|
|
303
|
-
/**
|
|
304
|
-
* Specify sparkline charts holder selector.
|
|
305
|
-
* - **NOTE:** The amount of holder should match with the amount of data. If has less, will append necessaray amount nodes as sibling of main chart.
|
|
306
|
-
* @name selector
|
|
307
|
-
* @memberof plugin-sparkline
|
|
308
|
-
* @type {string}
|
|
309
|
-
* @default undefined
|
|
310
|
-
* @example
|
|
311
|
-
* selector: ".sparkline"
|
|
312
|
-
*/
|
|
313
|
-
selector: undefined
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
return Options;
|
|
317
|
-
}());
|
|
224
|
+
__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, $COMMON), $ARC), $AREA), $AXIS), $BAR), $CANDLESTICK), $CIRCLE), $COLOR), $DRAG), $GAUGE), $LEGEND), $LINE), $EVENT), $FOCUS), $GRID), $RADAR), $REGION), $SELECT), $SHAPE), $SUBCHART), $TEXT), $TOOLTIP), $TREEMAP), $ZOOM);
|
|
318
225
|
|
|
319
226
|
/**
|
|
320
227
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
@@ -331,7 +238,8 @@ var Options = /** @class */ (function () {
|
|
|
331
238
|
* @private
|
|
332
239
|
*/
|
|
333
240
|
function getGlobal() {
|
|
334
|
-
return (typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object &&
|
|
241
|
+
return (typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object &&
|
|
242
|
+
globalThis) ||
|
|
335
243
|
(typeof global === "object" && global !== null && global.Object === Object && global) ||
|
|
336
244
|
(typeof self === "object" && self !== null && self.Object === Object && self) ||
|
|
337
245
|
Function("return this")();
|
|
@@ -379,8 +287,7 @@ function mergeObj(target) {
|
|
|
379
287
|
target[key] = mergeObj(target[key], value);
|
|
380
288
|
}
|
|
381
289
|
else {
|
|
382
|
-
target[key] = isArray(value) ?
|
|
383
|
-
value.concat() : value;
|
|
290
|
+
target[key] = isArray(value) ? value.concat() : value;
|
|
384
291
|
}
|
|
385
292
|
});
|
|
386
293
|
}
|
|
@@ -390,7 +297,12 @@ function mergeObj(target) {
|
|
|
390
297
|
({
|
|
391
298
|
mouse: (function () {
|
|
392
299
|
var getParams = function () { return ({
|
|
393
|
-
bubbles: false,
|
|
300
|
+
bubbles: false,
|
|
301
|
+
cancelable: false,
|
|
302
|
+
screenX: 0,
|
|
303
|
+
screenY: 0,
|
|
304
|
+
clientX: 0,
|
|
305
|
+
clientY: 0
|
|
394
306
|
}); };
|
|
395
307
|
try {
|
|
396
308
|
// eslint-disable-next-line no-new
|
|
@@ -432,10 +344,6 @@ function mergeObj(target) {
|
|
|
432
344
|
}
|
|
433
345
|
});
|
|
434
346
|
|
|
435
|
-
/**
|
|
436
|
-
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
437
|
-
* billboard.js project is licensed under the MIT license
|
|
438
|
-
*/
|
|
439
347
|
/**
|
|
440
348
|
* Load configuration option
|
|
441
349
|
* @param {object} config User's generation config value
|
|
@@ -471,6 +379,100 @@ function loadConfig(config) {
|
|
|
471
379
|
}
|
|
472
380
|
}
|
|
473
381
|
|
|
382
|
+
/**
|
|
383
|
+
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
384
|
+
* billboard.js project is licensed under the MIT license
|
|
385
|
+
*/
|
|
386
|
+
/**
|
|
387
|
+
* Base class to generate billboard.js plugin
|
|
388
|
+
* @class Plugin
|
|
389
|
+
*/
|
|
390
|
+
/**
|
|
391
|
+
* Version info string for plugin
|
|
392
|
+
* @name version
|
|
393
|
+
* @static
|
|
394
|
+
* @memberof Plugin
|
|
395
|
+
* @type {string}
|
|
396
|
+
* @example
|
|
397
|
+
* bb.plugin.stanford.version; // ex) 1.9.0
|
|
398
|
+
*/
|
|
399
|
+
var Plugin = /** @class */ (function () {
|
|
400
|
+
/**
|
|
401
|
+
* Constructor
|
|
402
|
+
* @param {Any} options config option object
|
|
403
|
+
* @private
|
|
404
|
+
*/
|
|
405
|
+
function Plugin(options) {
|
|
406
|
+
if (options === void 0) { options = {}; }
|
|
407
|
+
this.options = options;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Lifecycle hook for 'beforeInit' phase.
|
|
411
|
+
* @private
|
|
412
|
+
*/
|
|
413
|
+
Plugin.prototype.$beforeInit = function () { };
|
|
414
|
+
/**
|
|
415
|
+
* Lifecycle hook for 'init' phase.
|
|
416
|
+
* @private
|
|
417
|
+
*/
|
|
418
|
+
Plugin.prototype.$init = function () { };
|
|
419
|
+
/**
|
|
420
|
+
* Lifecycle hook for 'afterInit' phase.
|
|
421
|
+
* @private
|
|
422
|
+
*/
|
|
423
|
+
Plugin.prototype.$afterInit = function () { };
|
|
424
|
+
/**
|
|
425
|
+
* Lifecycle hook for 'redraw' phase.
|
|
426
|
+
* @private
|
|
427
|
+
*/
|
|
428
|
+
Plugin.prototype.$redraw = function () { };
|
|
429
|
+
/**
|
|
430
|
+
* Lifecycle hook for 'willDestroy' phase.
|
|
431
|
+
* @private
|
|
432
|
+
*/
|
|
433
|
+
Plugin.prototype.$willDestroy = function () {
|
|
434
|
+
var _this = this;
|
|
435
|
+
Object.keys(this).forEach(function (key) {
|
|
436
|
+
_this[key] = null;
|
|
437
|
+
delete _this[key];
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
Plugin.version = "3.12.0-next.1";
|
|
441
|
+
return Plugin;
|
|
442
|
+
}());
|
|
443
|
+
var Plugin$1 = Plugin;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Copyright (c) 2021 ~ present NAVER Corp.
|
|
447
|
+
* billboard.js project is licensed under the MIT license
|
|
448
|
+
*/
|
|
449
|
+
/**
|
|
450
|
+
* Sparkline plugin option class
|
|
451
|
+
* @class SparklineOptions
|
|
452
|
+
* @param {Options} options Sparkline plugin options
|
|
453
|
+
* @augments Plugin
|
|
454
|
+
* @returns {TableviewOptions}
|
|
455
|
+
* @private
|
|
456
|
+
*/
|
|
457
|
+
var Options = /** @class */ (function () {
|
|
458
|
+
function Options() {
|
|
459
|
+
return {
|
|
460
|
+
/**
|
|
461
|
+
* Specify sparkline charts holder selector.
|
|
462
|
+
* - **NOTE:** The amount of holder should match with the amount of data. If has less, will append necessaray amount nodes as sibling of main chart.
|
|
463
|
+
* @name selector
|
|
464
|
+
* @memberof plugin-sparkline
|
|
465
|
+
* @type {string}
|
|
466
|
+
* @default undefined
|
|
467
|
+
* @example
|
|
468
|
+
* selector: ".sparkline"
|
|
469
|
+
*/
|
|
470
|
+
selector: undefined
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
return Options;
|
|
474
|
+
}());
|
|
475
|
+
|
|
474
476
|
/**
|
|
475
477
|
* Sparkline plugin.<br>
|
|
476
478
|
* Generates sparkline charts
|
|
@@ -656,8 +658,7 @@ var Sparkline = /** @class */ (function (_super) {
|
|
|
656
658
|
Sparkline.prototype.outHandler = function (e) {
|
|
657
659
|
var $$ = this.$$;
|
|
658
660
|
$$.state.event = e;
|
|
659
|
-
$$.isPointFocusOnly() ?
|
|
660
|
-
$$.hideCircleFocus() : $$.unexpandCircles();
|
|
661
|
+
$$.isPointFocusOnly() ? $$.hideCircleFocus() : $$.unexpandCircles();
|
|
661
662
|
$$.hideTooltip();
|
|
662
663
|
};
|
|
663
664
|
Sparkline.prototype.$redraw = function () {
|