billboard.js 3.4.0 → 3.5.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 +11 -4
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +3901 -1451
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +8350 -5297
- package/dist/billboard.pkgd.min.js +3 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +29 -13
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +377 -92
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +447 -109
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +341 -74
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +337 -75
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +4233 -3792
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +4635 -3889
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +4823 -3937
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +4594 -3866
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +4606 -3874
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist-esm/billboard.js +796 -387
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +47 -75
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +68 -86
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +52 -77
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +49 -76
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +49 -76
- package/package.json +40 -40
- package/src/Chart/api/chart.ts +4 -1
- package/src/Chart/api/data.ts +2 -2
- package/src/Chart/api/flow.ts +125 -115
- package/src/ChartInternal/Axis/AxisRenderer.ts +29 -3
- package/src/ChartInternal/ChartInternal.ts +55 -18
- package/src/ChartInternal/data/IData.ts +2 -2
- package/src/ChartInternal/data/convert.helper.ts +226 -0
- package/src/ChartInternal/data/convert.ts +43 -210
- package/src/ChartInternal/data/load.ts +5 -4
- package/src/ChartInternal/interactions/zoom.ts +17 -4
- package/src/ChartInternal/internals/color.ts +59 -36
- package/src/ChartInternal/internals/grid.ts +5 -3
- package/src/ChartInternal/internals/redraw.ts +5 -2
- package/src/ChartInternal/internals/scale.ts +3 -1
- package/src/ChartInternal/internals/size.axis.ts +5 -2
- package/src/ChartInternal/internals/text.ts +118 -17
- package/src/ChartInternal/shape/area.ts +14 -7
- package/src/ChartInternal/shape/bar.ts +19 -10
- package/src/ChartInternal/shape/point.ts +15 -9
- package/src/ChartInternal/shape/polar.ts +1 -1
- package/src/Plugin/sparkline/index.ts +22 -11
- package/src/Plugin/stanford/index.ts +10 -7
- package/src/Plugin/textoverlap/index.ts +4 -1
- package/src/config/Options/Options.ts +2 -0
- package/src/config/Options/common/boost.ts +31 -0
- package/src/config/Options/common/main.ts +15 -1
- package/src/config/Options/common/tooltip.ts +1 -1
- package/src/config/Options/data/data.ts +11 -3
- package/src/config/Options/shape/area.ts +6 -1
- package/src/config/Store/State.ts +3 -0
- package/src/module/browser.ts +2 -1
- package/src/module/generator.ts +18 -16
- package/src/module/util.ts +115 -1
- package/types/chart.d.ts +2 -2
- package/types/options.d.ts +45 -8
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.5.0-next.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
/******************************************************************************
|
|
13
13
|
Copyright (c) Microsoft Corporation.
|
|
14
14
|
|
|
15
15
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -80,12 +80,10 @@ function __spreadArray(to, from, pack) {
|
|
|
80
80
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
81
81
|
* billboard.js project is licensed under the MIT license
|
|
82
82
|
*/
|
|
83
|
-
|
|
84
83
|
/**
|
|
85
84
|
* Base class to generate billboard.js plugin
|
|
86
85
|
* @class Plugin
|
|
87
86
|
*/
|
|
88
|
-
|
|
89
87
|
/**
|
|
90
88
|
* Version info string for plugin
|
|
91
89
|
* @name version
|
|
@@ -95,77 +93,51 @@ function __spreadArray(to, from, pack) {
|
|
|
95
93
|
* @example
|
|
96
94
|
* bb.plugin.stanford.version; // ex) 1.9.0
|
|
97
95
|
*/
|
|
98
|
-
var Plugin =
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
*/
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Constructor
|
|
111
|
-
* @param {Any} options config option object
|
|
112
|
-
* @private
|
|
113
|
-
*/
|
|
114
|
-
function Plugin(options) {
|
|
115
|
-
if (options === void 0) {
|
|
116
|
-
options = {};
|
|
96
|
+
var Plugin = /** @class */ (function () {
|
|
97
|
+
/**
|
|
98
|
+
* Constructor
|
|
99
|
+
* @param {Any} options config option object
|
|
100
|
+
* @private
|
|
101
|
+
*/
|
|
102
|
+
function Plugin(options) {
|
|
103
|
+
if (options === void 0) { options = {}; }
|
|
104
|
+
this.options = options;
|
|
117
105
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
*/
|
|
154
|
-
;
|
|
155
|
-
|
|
156
|
-
_proto.$willDestroy = function $willDestroy() {
|
|
157
|
-
var _this = this;
|
|
158
|
-
|
|
159
|
-
Object.keys(this).forEach(function (key) {
|
|
160
|
-
_this[key] = null;
|
|
161
|
-
delete _this[key];
|
|
162
|
-
});
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
return Plugin;
|
|
166
|
-
}();
|
|
167
|
-
|
|
168
|
-
Plugin.version = "#3.4.0#";
|
|
106
|
+
/**
|
|
107
|
+
* Lifecycle hook for 'beforeInit' phase.
|
|
108
|
+
* @private
|
|
109
|
+
*/
|
|
110
|
+
Plugin.prototype.$beforeInit = function () { };
|
|
111
|
+
/**
|
|
112
|
+
* Lifecycle hook for 'init' phase.
|
|
113
|
+
* @private
|
|
114
|
+
*/
|
|
115
|
+
Plugin.prototype.$init = function () { };
|
|
116
|
+
/**
|
|
117
|
+
* Lifecycle hook for 'afterInit' phase.
|
|
118
|
+
* @private
|
|
119
|
+
*/
|
|
120
|
+
Plugin.prototype.$afterInit = function () { };
|
|
121
|
+
/**
|
|
122
|
+
* Lifecycle hook for 'redraw' phase.
|
|
123
|
+
* @private
|
|
124
|
+
*/
|
|
125
|
+
Plugin.prototype.$redraw = function () { };
|
|
126
|
+
/**
|
|
127
|
+
* Lifecycle hook for 'willDestroy' phase.
|
|
128
|
+
* @private
|
|
129
|
+
*/
|
|
130
|
+
Plugin.prototype.$willDestroy = function () {
|
|
131
|
+
var _this = this;
|
|
132
|
+
Object.keys(this).forEach(function (key) {
|
|
133
|
+
_this[key] = null;
|
|
134
|
+
delete _this[key];
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
Plugin.version = "3.5.0-next.2";
|
|
138
|
+
return Plugin;
|
|
139
|
+
}());
|
|
140
|
+
var Plugin$1 = Plugin;
|
|
169
141
|
|
|
170
142
|
/**
|
|
171
143
|
* Copyright (c) 2021 ~ present NAVER Corp.
|
|
@@ -300,7 +272,8 @@ var win = (function () {
|
|
|
300
272
|
/* eslint-enable no-new-func, no-undef */
|
|
301
273
|
// fallback for non-supported environments
|
|
302
274
|
win.requestIdleCallback = win.requestIdleCallback || (function (cb) { return setTimeout(cb, 1); });
|
|
303
|
-
win.cancelIdleCallback = win.cancelIdleCallback || (
|
|
275
|
+
// win.cancelIdleCallback = win.cancelIdleCallback || (id => clearTimeout(id));
|
|
276
|
+
win.requestAnimationFrame = win.requestAnimationFrame || (function (cb) { return setTimeout(cb, 1); });
|
|
304
277
|
var doc = win === null || win === void 0 ? void 0 : win.document;
|
|
305
278
|
|
|
306
279
|
var isNumber = function (v) { return typeof v === "number"; };
|
|
@@ -573,6 +546,6 @@ var TableView = /** @class */ (function (_super) {
|
|
|
573
546
|
}
|
|
574
547
|
};
|
|
575
548
|
return TableView;
|
|
576
|
-
}(Plugin));
|
|
549
|
+
}(Plugin$1));
|
|
577
550
|
|
|
578
551
|
export { TableView as default };
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.
|
|
8
|
+
* @version 3.5.0-next.2
|
|
9
9
|
* @requires billboard.js
|
|
10
10
|
* @summary billboard.js plugin
|
|
11
11
|
*/
|
|
12
12
|
import { Delaunay } from 'd3-delaunay';
|
|
13
13
|
import { polygonCentroid, polygonArea } from 'd3-polygon';
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
/******************************************************************************
|
|
16
16
|
Copyright (c) Microsoft Corporation.
|
|
17
17
|
|
|
18
18
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -76,7 +76,8 @@ var win = (function () {
|
|
|
76
76
|
/* eslint-enable no-new-func, no-undef */
|
|
77
77
|
// fallback for non-supported environments
|
|
78
78
|
win.requestIdleCallback = win.requestIdleCallback || (function (cb) { return setTimeout(cb, 1); });
|
|
79
|
-
win.cancelIdleCallback = win.cancelIdleCallback || (
|
|
79
|
+
// win.cancelIdleCallback = win.cancelIdleCallback || (id => clearTimeout(id));
|
|
80
|
+
win.requestAnimationFrame = win.requestAnimationFrame || (function (cb) { return setTimeout(cb, 1); });
|
|
80
81
|
var doc = win === null || win === void 0 ? void 0 : win.document;
|
|
81
82
|
|
|
82
83
|
var isDefined = function (v) { return typeof v !== "undefined"; };
|
|
@@ -211,12 +212,10 @@ function loadConfig(config) {
|
|
|
211
212
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
212
213
|
* billboard.js project is licensed under the MIT license
|
|
213
214
|
*/
|
|
214
|
-
|
|
215
215
|
/**
|
|
216
216
|
* Base class to generate billboard.js plugin
|
|
217
217
|
* @class Plugin
|
|
218
218
|
*/
|
|
219
|
-
|
|
220
219
|
/**
|
|
221
220
|
* Version info string for plugin
|
|
222
221
|
* @name version
|
|
@@ -226,77 +225,51 @@ function loadConfig(config) {
|
|
|
226
225
|
* @example
|
|
227
226
|
* bb.plugin.stanford.version; // ex) 1.9.0
|
|
228
227
|
*/
|
|
229
|
-
var Plugin =
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
*/
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Constructor
|
|
242
|
-
* @param {Any} options config option object
|
|
243
|
-
* @private
|
|
244
|
-
*/
|
|
245
|
-
function Plugin(options) {
|
|
246
|
-
if (options === void 0) {
|
|
247
|
-
options = {};
|
|
228
|
+
var Plugin = /** @class */ (function () {
|
|
229
|
+
/**
|
|
230
|
+
* Constructor
|
|
231
|
+
* @param {Any} options config option object
|
|
232
|
+
* @private
|
|
233
|
+
*/
|
|
234
|
+
function Plugin(options) {
|
|
235
|
+
if (options === void 0) { options = {}; }
|
|
236
|
+
this.options = options;
|
|
248
237
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
*/
|
|
285
|
-
;
|
|
286
|
-
|
|
287
|
-
_proto.$willDestroy = function $willDestroy() {
|
|
288
|
-
var _this = this;
|
|
289
|
-
|
|
290
|
-
Object.keys(this).forEach(function (key) {
|
|
291
|
-
_this[key] = null;
|
|
292
|
-
delete _this[key];
|
|
293
|
-
});
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
return Plugin;
|
|
297
|
-
}();
|
|
298
|
-
|
|
299
|
-
Plugin.version = "#3.4.0#";
|
|
238
|
+
/**
|
|
239
|
+
* Lifecycle hook for 'beforeInit' phase.
|
|
240
|
+
* @private
|
|
241
|
+
*/
|
|
242
|
+
Plugin.prototype.$beforeInit = function () { };
|
|
243
|
+
/**
|
|
244
|
+
* Lifecycle hook for 'init' phase.
|
|
245
|
+
* @private
|
|
246
|
+
*/
|
|
247
|
+
Plugin.prototype.$init = function () { };
|
|
248
|
+
/**
|
|
249
|
+
* Lifecycle hook for 'afterInit' phase.
|
|
250
|
+
* @private
|
|
251
|
+
*/
|
|
252
|
+
Plugin.prototype.$afterInit = function () { };
|
|
253
|
+
/**
|
|
254
|
+
* Lifecycle hook for 'redraw' phase.
|
|
255
|
+
* @private
|
|
256
|
+
*/
|
|
257
|
+
Plugin.prototype.$redraw = function () { };
|
|
258
|
+
/**
|
|
259
|
+
* Lifecycle hook for 'willDestroy' phase.
|
|
260
|
+
* @private
|
|
261
|
+
*/
|
|
262
|
+
Plugin.prototype.$willDestroy = function () {
|
|
263
|
+
var _this = this;
|
|
264
|
+
Object.keys(this).forEach(function (key) {
|
|
265
|
+
_this[key] = null;
|
|
266
|
+
delete _this[key];
|
|
267
|
+
});
|
|
268
|
+
};
|
|
269
|
+
Plugin.version = "3.5.0-next.2";
|
|
270
|
+
return Plugin;
|
|
271
|
+
}());
|
|
272
|
+
var Plugin$1 = Plugin;
|
|
300
273
|
|
|
301
274
|
/**
|
|
302
275
|
* Copyright (c) 2017 ~ present NAVER Corp.
|
|
@@ -457,6 +430,6 @@ var TextOverlap = /** @class */ (function (_super) {
|
|
|
457
430
|
});
|
|
458
431
|
};
|
|
459
432
|
return TextOverlap;
|
|
460
|
-
}(Plugin));
|
|
433
|
+
}(Plugin$1));
|
|
461
434
|
|
|
462
435
|
export { TextOverlap as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "billboard.js",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0-next.2",
|
|
4
4
|
"description": "Re-usable easy interface JavaScript chart library, based on D3 v4+",
|
|
5
5
|
"homepage": "https://naver.github.io/billboard.js/",
|
|
6
6
|
"main": "dist/billboard.js",
|
|
@@ -95,70 +95,70 @@
|
|
|
95
95
|
"d3-zoom": "^3.0.0"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@babel/core": "^7.
|
|
98
|
+
"@babel/core": "^7.18.5",
|
|
99
99
|
"@babel/eslint-parser": "^7.17.0",
|
|
100
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
101
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.
|
|
102
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
103
|
-
"@babel/preset-env": "^7.
|
|
104
|
-
"@babel/preset-typescript": "^7.
|
|
105
|
-
"@babel/runtime": "^7.
|
|
100
|
+
"@babel/plugin-proposal-class-properties": "^7.17.12",
|
|
101
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.18.0",
|
|
102
|
+
"@babel/plugin-transform-runtime": "^7.18.5",
|
|
103
|
+
"@babel/preset-env": "^7.18.0",
|
|
104
|
+
"@babel/preset-typescript": "^7.17.12",
|
|
105
|
+
"@babel/runtime": "^7.18.0",
|
|
106
106
|
"@commitlint/cli": "^15.0.0",
|
|
107
|
-
"@commitlint/config-conventional": "^
|
|
107
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
108
108
|
"@rollup/plugin-babel": "^5.3.1",
|
|
109
|
-
"@rollup/plugin-node-resolve": "^13.1
|
|
109
|
+
"@rollup/plugin-node-resolve": "^13.2.1",
|
|
110
110
|
"@rollup/plugin-replace": "^4.0.0",
|
|
111
|
-
"@rollup/plugin-typescript": "^8.3.
|
|
111
|
+
"@rollup/plugin-typescript": "^8.3.3",
|
|
112
112
|
"@semantic-release/changelog": "^6.0.1",
|
|
113
113
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
114
114
|
"@semantic-release/exec": "^6.0.3",
|
|
115
115
|
"@semantic-release/git": "^10.0.1",
|
|
116
116
|
"@semantic-release/npm": "^9.0.1",
|
|
117
117
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
118
|
-
"@types/chai": "^4.3.
|
|
119
|
-
"@types/d3": "^7.
|
|
120
|
-
"@types/mocha": "^9.
|
|
118
|
+
"@types/chai": "^4.3.1",
|
|
119
|
+
"@types/d3": "^7.4.0",
|
|
120
|
+
"@types/mocha": "^9.1.1",
|
|
121
121
|
"@types/sinon": "^10.0.11",
|
|
122
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
123
|
-
"@typescript-eslint/parser": "^5.
|
|
122
|
+
"@typescript-eslint/eslint-plugin": "^5.28.0",
|
|
123
|
+
"@typescript-eslint/parser": "^5.29.0",
|
|
124
124
|
"babel-helper-modules": "^6.0.0",
|
|
125
|
-
"babel-loader": "^8.2.
|
|
125
|
+
"babel-loader": "^8.2.5",
|
|
126
126
|
"babel-plugin-add-module-exports": "^1.0.4",
|
|
127
127
|
"babel-plugin-minify-constant-folding": "^0.5.0",
|
|
128
|
-
"babel-plugin-minify-dead-code-elimination": "^0.5.
|
|
128
|
+
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
|
|
129
129
|
"babel-plugin-minify-guarded-expressions": "^0.4.4",
|
|
130
130
|
"babel-plugin-minify-numeric-literals": "^0.4.3",
|
|
131
131
|
"babel-plugin-minify-type-constructors": "^0.4.3",
|
|
132
132
|
"babel-plugin-transform-inline-consecutive-adds": "^0.4.3",
|
|
133
|
-
"babel-plugin-transform-merge-sibling-variables": "^6.9.
|
|
133
|
+
"babel-plugin-transform-merge-sibling-variables": "^6.9.5",
|
|
134
134
|
"babel-plugin-transform-minify-booleans": "^6.9.4",
|
|
135
135
|
"better-docs": "^2.7.2",
|
|
136
136
|
"chai": "^4.3.4",
|
|
137
137
|
"clean-webpack-plugin": "^4.0.0",
|
|
138
138
|
"cloc": "^2.9.0",
|
|
139
|
-
"core-js": "^3.
|
|
139
|
+
"core-js": "^3.23.2",
|
|
140
140
|
"coveralls": "^3.1.1",
|
|
141
141
|
"cross-env": "^7.0.3",
|
|
142
142
|
"css-loader": "^6.7.1",
|
|
143
|
-
"css-minimizer-webpack-plugin": "^
|
|
143
|
+
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
144
144
|
"d3-color": "^3.1.0",
|
|
145
145
|
"d3-delaunay": "^6.0.2",
|
|
146
146
|
"d3-format": "^3.1.0",
|
|
147
147
|
"d3-polygon": "^3.0.1",
|
|
148
148
|
"docdash": "^1.2.0",
|
|
149
149
|
"dtslint": "^4.2.1",
|
|
150
|
-
"eslint": "^8.
|
|
150
|
+
"eslint": "^8.18.0",
|
|
151
151
|
"eslint-config-naver": "^2.1.0",
|
|
152
|
-
"eslint-plugin-import": "^2.
|
|
153
|
-
"eslint-plugin-jsdoc": "^
|
|
152
|
+
"eslint-plugin-import": "^2.26.0",
|
|
153
|
+
"eslint-plugin-jsdoc": "^39.3.3",
|
|
154
154
|
"eslint-webpack-plugin": "^3.1.1",
|
|
155
|
-
"exports-loader": "^
|
|
155
|
+
"exports-loader": "^4.0.0",
|
|
156
156
|
"hammer-simulator": "0.0.1",
|
|
157
|
-
"husky": "^
|
|
157
|
+
"husky": "^8.0.1",
|
|
158
158
|
"istanbul-instrumenter-loader": "^3.0.1",
|
|
159
|
-
"istanbul-lib-instrument": "^5.
|
|
159
|
+
"istanbul-lib-instrument": "^5.2.0",
|
|
160
160
|
"jsdoc": "^3.6.10",
|
|
161
|
-
"karma": "^6.
|
|
161
|
+
"karma": "^6.4.0",
|
|
162
162
|
"karma-chai": "^0.1.0",
|
|
163
163
|
"karma-chrome-launcher": "^3.1.1",
|
|
164
164
|
"karma-coverage-istanbul-reporter": "^3.0.3",
|
|
@@ -169,27 +169,27 @@
|
|
|
169
169
|
"karma-sourcemap-loader": "^0.3.8",
|
|
170
170
|
"karma-webpack": "^5.0.0",
|
|
171
171
|
"lite-fixture": "^1.0.2",
|
|
172
|
-
"mini-css-extract-plugin": "^2.6.
|
|
173
|
-
"mocha": "^
|
|
172
|
+
"mini-css-extract-plugin": "^2.6.1",
|
|
173
|
+
"mocha": "^10.0.0",
|
|
174
174
|
"node-sass": "^7.0.1",
|
|
175
175
|
"regenerator-runtime": "^0.13.7",
|
|
176
|
-
"rollup": "^2.
|
|
176
|
+
"rollup": "^2.75.7",
|
|
177
177
|
"rollup-plugin-delete": "^2.0.0",
|
|
178
|
-
"sass-loader": "^
|
|
179
|
-
"semantic-release": "^19.0.
|
|
178
|
+
"sass-loader": "^13.0.0",
|
|
179
|
+
"semantic-release": "^19.0.3",
|
|
180
180
|
"simulant": "^0.2.2",
|
|
181
|
-
"sinon": "^
|
|
181
|
+
"sinon": "^14.0.0",
|
|
182
182
|
"string-replace-loader": "^3.1.0",
|
|
183
183
|
"style-loader": "^3.3.1",
|
|
184
|
-
"terser-webpack-plugin": "^5.3.
|
|
185
|
-
"tslib": "^2.
|
|
186
|
-
"typescript": "
|
|
187
|
-
"webpack": "^5.
|
|
184
|
+
"terser-webpack-plugin": "^5.3.3",
|
|
185
|
+
"tslib": "^2.4.0",
|
|
186
|
+
"typescript": "4.6.2",
|
|
187
|
+
"webpack": "^5.73.0",
|
|
188
188
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
189
189
|
"webpack-clean": "^1.2.5",
|
|
190
|
-
"webpack-cli": "^4.
|
|
190
|
+
"webpack-cli": "^4.10.0",
|
|
191
191
|
"webpack-common-shake": "^2.1.0",
|
|
192
|
-
"webpack-dev-server": "^4.
|
|
192
|
+
"webpack-dev-server": "^4.9.2",
|
|
193
193
|
"webpack-merge": "^5.8.0",
|
|
194
194
|
"webpackbar": "^5.0.2",
|
|
195
195
|
"write-file-webpack-plugin": "^4.5.1"
|
package/src/Chart/api/chart.ts
CHANGED
|
@@ -100,7 +100,7 @@ export default {
|
|
|
100
100
|
*/
|
|
101
101
|
destroy(): null {
|
|
102
102
|
const $$ = this.internal;
|
|
103
|
-
const {$el: {chart, svg}} = $$;
|
|
103
|
+
const {$el: {chart, style, svg}} = $$;
|
|
104
104
|
|
|
105
105
|
if (notEmpty($$)) {
|
|
106
106
|
$$.callPluginHook("$willDestroy");
|
|
@@ -119,6 +119,9 @@ export default {
|
|
|
119
119
|
.selectChildren()
|
|
120
120
|
.remove();
|
|
121
121
|
|
|
122
|
+
// remove <style> element added by boost.useCssRule option
|
|
123
|
+
style && style.parentNode.removeChild(style);
|
|
124
|
+
|
|
122
125
|
// releasing own references
|
|
123
126
|
Object.keys(this).forEach(key => {
|
|
124
127
|
key === "internal" && Object.keys($$).forEach(k => {
|
package/src/Chart/api/data.ts
CHANGED
|
@@ -97,7 +97,7 @@ extend(data, {
|
|
|
97
97
|
* @function data․names
|
|
98
98
|
* @instance
|
|
99
99
|
* @memberof Chart
|
|
100
|
-
* @param {object} names If this argument is given, the names of data will be updated. If not given, the current names will be returned. The format of this argument is the same as
|
|
100
|
+
* @param {object} names If this argument is given, the names of data will be updated. If not given, the current names will be returned. The format of this argument is the same as [data.names](./Options.html#.data%25E2%2580%25A4names).
|
|
101
101
|
* @returns {object} Corresponding names according its key value, if specified names values.
|
|
102
102
|
* @example
|
|
103
103
|
* // Get current names
|
|
@@ -110,7 +110,7 @@ extend(data, {
|
|
|
110
110
|
* data2: "New Name 2"
|
|
111
111
|
*});
|
|
112
112
|
*/
|
|
113
|
-
names: function(names?: Array<{ [key: string]: string; }>): {[key: string]: string} {
|
|
113
|
+
names: function(names?: Array<{ [key: string]: string|null; }>): {[key: string]: string|null} {
|
|
114
114
|
const $$ = this.internal;
|
|
115
115
|
|
|
116
116
|
return $$.updateDataAttributes("names", names);
|