billboard.js 3.11.3 → 3.12.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.
- package/README.md +1 -5
- package/dist/billboard.css +13 -1
- package/dist/billboard.js +19672 -24210
- package/dist/billboard.min.css +2 -2
- package/dist/billboard.min.js +26 -3
- package/dist/billboard.pkgd.js +24515 -30430
- 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 +429 -1134
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +4 -3
- package/dist/plugin/billboardjs-plugin-stanford.js +666 -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 +1387 -1854
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +5 -3
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2760 -3959
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +7 -3
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +3504 -5057
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +18 -3
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2906 -4072
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +33 -3
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +3076 -4506
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +7 -3
- package/dist/theme/dark.css +12 -1
- package/dist/theme/dark.min.css +2 -2
- package/dist/theme/datalab.css +12 -1
- package/dist/theme/datalab.min.css +2 -2
- package/dist/theme/graph.css +12 -1
- package/dist/theme/graph.min.css +2 -2
- package/dist/theme/insight.css +12 -1
- package/dist/theme/insight.min.css +2 -2
- package/dist/theme/modern.css +12 -1
- package/dist/theme/modern.min.css +3 -4
- package/dist-esm/billboard.js +9297 -8527
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +20 -27
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +155 -149
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +302 -289
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +236 -236
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +41 -43
- package/package.json +29 -49
- 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 +8 -9
- 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 +87 -55
- package/src/ChartInternal/data/IData.ts +31 -31
- package/src/ChartInternal/data/convert.helper.ts +66 -68
- package/src/ChartInternal/data/convert.ts +11 -11
- package/src/ChartInternal/data/data.ts +51 -27
- package/src/ChartInternal/data/load.ts +7 -6
- package/src/ChartInternal/interactions/drag.ts +2 -1
- package/src/ChartInternal/interactions/eventrect.ts +84 -32
- package/src/ChartInternal/interactions/flow.ts +14 -4
- package/src/ChartInternal/interactions/interaction.ts +51 -22
- 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 +6 -6
- package/src/ChartInternal/internals/clip.ts +8 -4
- 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 +131 -47
- package/src/ChartInternal/internals/legend.ts +93 -61
- package/src/ChartInternal/internals/redraw.ts +6 -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 +98 -67
- package/src/ChartInternal/internals/style.ts +21 -19
- package/src/ChartInternal/internals/text.ts +79 -43
- package/src/ChartInternal/internals/title.ts +2 -2
- package/src/ChartInternal/internals/tooltip.ts +78 -32
- package/src/ChartInternal/internals/transform.ts +4 -4
- package/src/ChartInternal/internals/type.ts +17 -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/funnel.ts +317 -0
- 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 +54 -34
- 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 +31 -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 +34 -14
- 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 +12 -13
- 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 +48 -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/funnel.ts +38 -0
- 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 +20 -13
- package/src/config/classes.ts +14 -4
- package/src/config/config.ts +1 -1
- package/src/config/const.ts +2 -0
- package/src/config/resolver/axis.ts +4 -4
- package/src/config/resolver/interaction.ts +3 -7
- package/src/config/resolver/shape.ts +17 -12
- package/src/core.ts +2 -3
- package/src/index.esm.ts +3 -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 +62 -39
- package/src/module/worker.ts +14 -11
- package/src/scss/billboard.scss +18 -0
- package/src/scss/theme/dark.scss +17 -0
- package/src/scss/theme/datalab.scss +17 -0
- package/src/scss/theme/graph.scss +17 -0
- package/src/scss/theme/insight.scss +17 -0
- package/src/scss/theme/modern.scss +17 -0
- package/types/axis.d.ts +17 -0
- package/types/bb.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/options.d.ts +9 -0
- package/types/options.shape.d.ts +26 -1
- package/types/types.d.ts +1 -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.2
|
|
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,10 +100,9 @@ var Plugin = /** @class */ (function () {
|
|
|
104
100
|
delete _this[key];
|
|
105
101
|
});
|
|
106
102
|
};
|
|
107
|
-
Plugin.version = "3.
|
|
103
|
+
Plugin.version = "3.12.0-next.2";
|
|
108
104
|
return Plugin;
|
|
109
105
|
}());
|
|
110
|
-
var Plugin$1 = Plugin;
|
|
111
106
|
|
|
112
107
|
/**
|
|
113
108
|
* Bubble compare diagram plugin.<br>
|
|
@@ -200,12 +195,10 @@ var BubbleCompare = /** @class */ (function (_super) {
|
|
|
200
195
|
return Math.abs(size) * (maxR - minR) + minR;
|
|
201
196
|
};
|
|
202
197
|
BubbleCompare.prototype.getZData = function (d) {
|
|
203
|
-
return this.$$.isBubbleZType(d) ?
|
|
204
|
-
this.$$.getBubbleZData(d.value, "z") :
|
|
205
|
-
d.value;
|
|
198
|
+
return this.$$.isBubbleZType(d) ? this.$$.getBubbleZData(d.value, "z") : d.value;
|
|
206
199
|
};
|
|
207
200
|
BubbleCompare.version = "0.0.1";
|
|
208
201
|
return BubbleCompare;
|
|
209
|
-
}(Plugin
|
|
202
|
+
}(Plugin));
|
|
210
203
|
|
|
211
204
|
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 3.
|
|
8
|
+
* @version 3.12.0-next.2
|
|
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",
|
|
@@ -130,6 +131,12 @@ var $DRAG = {
|
|
|
130
131
|
dragarea: "bb-dragarea",
|
|
131
132
|
INCLUDED: "_included_"
|
|
132
133
|
};
|
|
134
|
+
var $FUNNEL = {
|
|
135
|
+
funnel: "bb-funnel",
|
|
136
|
+
chartFunnel: "bb-chart-funnel",
|
|
137
|
+
chartFunnels: "bb-chart-funnels",
|
|
138
|
+
funnelBackground: "bb-funnel-background"
|
|
139
|
+
};
|
|
133
140
|
var $GAUGE = {
|
|
134
141
|
chartArcsGaugeMax: "bb-chart-arcs-gauge-max",
|
|
135
142
|
chartArcsGaugeMin: "bb-chart-arcs-gauge-min",
|
|
@@ -156,7 +163,7 @@ var $EVENT = {
|
|
|
156
163
|
eventRect: "bb-event-rect",
|
|
157
164
|
eventRects: "bb-event-rects",
|
|
158
165
|
eventRectsMultiple: "bb-event-rects-multiple",
|
|
159
|
-
eventRectsSingle: "bb-event-rects-single"
|
|
166
|
+
eventRectsSingle: "bb-event-rects-single"
|
|
160
167
|
};
|
|
161
168
|
var $FOCUS = {
|
|
162
169
|
focused: "bb-focused",
|
|
@@ -192,7 +199,7 @@ var $SELECT = {
|
|
|
192
199
|
};
|
|
193
200
|
var $SHAPE = {
|
|
194
201
|
shape: "bb-shape",
|
|
195
|
-
shapes: "bb-shapes"
|
|
202
|
+
shapes: "bb-shapes"
|
|
196
203
|
};
|
|
197
204
|
var $SUBCHART = {
|
|
198
205
|
brush: "bb-brush",
|
|
@@ -220,101 +227,7 @@ var $ZOOM = {
|
|
|
220
227
|
buttonZoomReset: "bb-zoom-reset",
|
|
221
228
|
zoomBrush: "bb-zoom-brush"
|
|
222
229
|
};
|
|
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.3";
|
|
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
|
-
}());
|
|
230
|
+
__assign(__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), $FUNNEL), $GRID), $RADAR), $REGION), $SELECT), $SHAPE), $SUBCHART), $TEXT), $TOOLTIP), $TREEMAP), $ZOOM);
|
|
318
231
|
|
|
319
232
|
/**
|
|
320
233
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
@@ -331,7 +244,8 @@ var Options = /** @class */ (function () {
|
|
|
331
244
|
* @private
|
|
332
245
|
*/
|
|
333
246
|
function getGlobal() {
|
|
334
|
-
return (typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object &&
|
|
247
|
+
return (typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object &&
|
|
248
|
+
globalThis) ||
|
|
335
249
|
(typeof global === "object" && global !== null && global.Object === Object && global) ||
|
|
336
250
|
(typeof self === "object" && self !== null && self.Object === Object && self) ||
|
|
337
251
|
Function("return this")();
|
|
@@ -379,8 +293,7 @@ function mergeObj(target) {
|
|
|
379
293
|
target[key] = mergeObj(target[key], value);
|
|
380
294
|
}
|
|
381
295
|
else {
|
|
382
|
-
target[key] = isArray(value) ?
|
|
383
|
-
value.concat() : value;
|
|
296
|
+
target[key] = isArray(value) ? value.concat() : value;
|
|
384
297
|
}
|
|
385
298
|
});
|
|
386
299
|
}
|
|
@@ -390,7 +303,12 @@ function mergeObj(target) {
|
|
|
390
303
|
({
|
|
391
304
|
mouse: (function () {
|
|
392
305
|
var getParams = function () { return ({
|
|
393
|
-
bubbles: false,
|
|
306
|
+
bubbles: false,
|
|
307
|
+
cancelable: false,
|
|
308
|
+
screenX: 0,
|
|
309
|
+
screenY: 0,
|
|
310
|
+
clientX: 0,
|
|
311
|
+
clientY: 0
|
|
394
312
|
}); };
|
|
395
313
|
try {
|
|
396
314
|
// eslint-disable-next-line no-new
|
|
@@ -432,10 +350,6 @@ function mergeObj(target) {
|
|
|
432
350
|
}
|
|
433
351
|
});
|
|
434
352
|
|
|
435
|
-
/**
|
|
436
|
-
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
437
|
-
* billboard.js project is licensed under the MIT license
|
|
438
|
-
*/
|
|
439
353
|
/**
|
|
440
354
|
* Load configuration option
|
|
441
355
|
* @param {object} config User's generation config value
|
|
@@ -471,6 +385,99 @@ function loadConfig(config) {
|
|
|
471
385
|
}
|
|
472
386
|
}
|
|
473
387
|
|
|
388
|
+
/**
|
|
389
|
+
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
390
|
+
* billboard.js project is licensed under the MIT license
|
|
391
|
+
*/
|
|
392
|
+
/**
|
|
393
|
+
* Base class to generate billboard.js plugin
|
|
394
|
+
* @class Plugin
|
|
395
|
+
*/
|
|
396
|
+
/**
|
|
397
|
+
* Version info string for plugin
|
|
398
|
+
* @name version
|
|
399
|
+
* @static
|
|
400
|
+
* @memberof Plugin
|
|
401
|
+
* @type {string}
|
|
402
|
+
* @example
|
|
403
|
+
* bb.plugin.stanford.version; // ex) 1.9.0
|
|
404
|
+
*/
|
|
405
|
+
var Plugin = /** @class */ (function () {
|
|
406
|
+
/**
|
|
407
|
+
* Constructor
|
|
408
|
+
* @param {Any} options config option object
|
|
409
|
+
* @private
|
|
410
|
+
*/
|
|
411
|
+
function Plugin(options) {
|
|
412
|
+
if (options === void 0) { options = {}; }
|
|
413
|
+
this.options = options;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Lifecycle hook for 'beforeInit' phase.
|
|
417
|
+
* @private
|
|
418
|
+
*/
|
|
419
|
+
Plugin.prototype.$beforeInit = function () { };
|
|
420
|
+
/**
|
|
421
|
+
* Lifecycle hook for 'init' phase.
|
|
422
|
+
* @private
|
|
423
|
+
*/
|
|
424
|
+
Plugin.prototype.$init = function () { };
|
|
425
|
+
/**
|
|
426
|
+
* Lifecycle hook for 'afterInit' phase.
|
|
427
|
+
* @private
|
|
428
|
+
*/
|
|
429
|
+
Plugin.prototype.$afterInit = function () { };
|
|
430
|
+
/**
|
|
431
|
+
* Lifecycle hook for 'redraw' phase.
|
|
432
|
+
* @private
|
|
433
|
+
*/
|
|
434
|
+
Plugin.prototype.$redraw = function () { };
|
|
435
|
+
/**
|
|
436
|
+
* Lifecycle hook for 'willDestroy' phase.
|
|
437
|
+
* @private
|
|
438
|
+
*/
|
|
439
|
+
Plugin.prototype.$willDestroy = function () {
|
|
440
|
+
var _this = this;
|
|
441
|
+
Object.keys(this).forEach(function (key) {
|
|
442
|
+
_this[key] = null;
|
|
443
|
+
delete _this[key];
|
|
444
|
+
});
|
|
445
|
+
};
|
|
446
|
+
Plugin.version = "3.12.0-next.2";
|
|
447
|
+
return Plugin;
|
|
448
|
+
}());
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Copyright (c) 2021 ~ present NAVER Corp.
|
|
452
|
+
* billboard.js project is licensed under the MIT license
|
|
453
|
+
*/
|
|
454
|
+
/**
|
|
455
|
+
* Sparkline plugin option class
|
|
456
|
+
* @class SparklineOptions
|
|
457
|
+
* @param {Options} options Sparkline plugin options
|
|
458
|
+
* @augments Plugin
|
|
459
|
+
* @returns {TableviewOptions}
|
|
460
|
+
* @private
|
|
461
|
+
*/
|
|
462
|
+
var Options = /** @class */ (function () {
|
|
463
|
+
function Options() {
|
|
464
|
+
return {
|
|
465
|
+
/**
|
|
466
|
+
* Specify sparkline charts holder selector.
|
|
467
|
+
* - **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.
|
|
468
|
+
* @name selector
|
|
469
|
+
* @memberof plugin-sparkline
|
|
470
|
+
* @type {string}
|
|
471
|
+
* @default undefined
|
|
472
|
+
* @example
|
|
473
|
+
* selector: ".sparkline"
|
|
474
|
+
*/
|
|
475
|
+
selector: undefined
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
return Options;
|
|
479
|
+
}());
|
|
480
|
+
|
|
474
481
|
/**
|
|
475
482
|
* Sparkline plugin.<br>
|
|
476
483
|
* Generates sparkline charts
|
|
@@ -656,8 +663,7 @@ var Sparkline = /** @class */ (function (_super) {
|
|
|
656
663
|
Sparkline.prototype.outHandler = function (e) {
|
|
657
664
|
var $$ = this.$$;
|
|
658
665
|
$$.state.event = e;
|
|
659
|
-
$$.isPointFocusOnly() ?
|
|
660
|
-
$$.hideCircleFocus() : $$.unexpandCircles();
|
|
666
|
+
$$.isPointFocusOnly() ? $$.hideCircleFocus() : $$.unexpandCircles();
|
|
661
667
|
$$.hideTooltip();
|
|
662
668
|
};
|
|
663
669
|
Sparkline.prototype.$redraw = function () {
|
|
@@ -705,6 +711,6 @@ var Sparkline = /** @class */ (function (_super) {
|
|
|
705
711
|
};
|
|
706
712
|
Sparkline.version = "0.0.1";
|
|
707
713
|
return Sparkline;
|
|
708
|
-
}(Plugin
|
|
714
|
+
}(Plugin));
|
|
709
715
|
|
|
710
716
|
export { Sparkline as default };
|