billboard.js 3.8.1 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +27 -27
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +57 -47
  6. package/dist/billboard.pkgd.min.js +2 -2
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +32 -22
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +32 -22
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +32 -22
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +32 -22
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +32 -22
  22. package/dist/theme/datalab.css +1 -1
  23. package/dist/theme/datalab.min.css +1 -1
  24. package/dist/theme/graph.css +1 -1
  25. package/dist/theme/graph.min.css +1 -1
  26. package/dist/theme/insight.css +1 -1
  27. package/dist/theme/insight.min.css +1 -1
  28. package/dist-esm/billboard.js +17 -5
  29. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  30. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +7 -2
  31. package/dist-esm/plugin/billboardjs-plugin-stanford.js +8 -2
  32. package/dist-esm/plugin/billboardjs-plugin-tableview.js +11 -2
  33. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +7 -2
  34. package/package.json +15 -15
  35. package/src/ChartInternal/interactions/eventrect.ts +2 -2
@@ -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.1
8
+ * @version 3.8.2
9
9
  */
10
10
  import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format';
11
11
  import { pointer, select, namespaces, selectAll } from 'd3-selection';
@@ -25,6 +25,11 @@ import { zoomIdentity, zoomTransform, zoom as zoom$2 } from 'd3-zoom';
25
25
  * Copyright (c) 2017 ~ present NAVER Corp.
26
26
  * billboard.js project is licensed under the MIT license
27
27
  */
28
+ /**
29
+ * Window object
30
+ * @private
31
+ */
32
+ /* eslint-disable no-new-func, no-undef */
28
33
  var win = (function () {
29
34
  var root = (typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis) ||
30
35
  (typeof global === "object" && global !== null && global.Object === Object && global) ||
@@ -151,6 +156,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
151
156
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
152
157
  PERFORMANCE OF THIS SOFTWARE.
153
158
  ***************************************************************************** */
159
+ /* global Reflect, Promise */
160
+
154
161
  var _assign = function __assign() {
155
162
  _assign = Object.assign || function (t) {
156
163
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -3355,6 +3362,7 @@ function runWorker(useWorker, fn, callback, depsFn) {
3355
3362
  * Copyright (c) 2017 ~ present NAVER Corp.
3356
3363
  * billboard.js project is licensed under the MIT license
3357
3364
  */
3365
+ /* eslint-disable */
3358
3366
  /***** Functions to be executed on Web Worker *****
3359
3367
  * NOTE: Don't allowed to use
3360
3368
  * - arrow function syntax
@@ -13381,8 +13389,8 @@ var eventrect = {
13381
13389
  .attr("width", width)
13382
13390
  .attr("height", height);
13383
13391
  // only for init
13384
- if (!rendered) {
13385
- rectElement.attr("class", $EVENT.eventRect);
13392
+ if (!rendered || force) {
13393
+ rectElement.classed($EVENT.eventRect, true);
13386
13394
  }
13387
13395
  }
13388
13396
  updateClientRect();
@@ -16525,6 +16533,10 @@ var optGrid = {
16525
16533
  * Copyright (c) 2017 ~ present NAVER Corp.
16526
16534
  * billboard.js project is licensed under the MIT license
16527
16535
  */
16536
+ /**
16537
+ * Modules exports for Axis based chart
16538
+ */
16539
+ // Chart
16528
16540
  var api = [
16529
16541
  apiAxis,
16530
16542
  apiCategory,
@@ -22268,7 +22280,7 @@ var zoomModule = function () {
22268
22280
  var defaults = {};
22269
22281
  /**
22270
22282
  * @namespace bb
22271
- * @version 3.8.1
22283
+ * @version 3.8.2
22272
22284
  */
22273
22285
  var bb = {
22274
22286
  /**
@@ -22278,7 +22290,7 @@ var bb = {
22278
22290
  * bb.version; // "1.0.0"
22279
22291
  * @memberof bb
22280
22292
  */
22281
- version: "3.8.1",
22293
+ version: "3.8.2",
22282
22294
  /**
22283
22295
  * Generate chart
22284
22296
  * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when:
@@ -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.1
8
+ * @version 3.8.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -104,7 +104,7 @@ var Plugin = /** @class */ (function () {
104
104
  delete _this[key];
105
105
  });
106
106
  };
107
- Plugin.version = "3.8.1";
107
+ Plugin.version = "3.8.2";
108
108
  return Plugin;
109
109
  }());
110
110
  var Plugin$1 = Plugin;
@@ -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.1
8
+ * @version 3.8.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -278,7 +278,7 @@ var Plugin = /** @class */ (function () {
278
278
  delete _this[key];
279
279
  });
280
280
  };
281
- Plugin.version = "3.8.1";
281
+ Plugin.version = "3.8.2";
282
282
  return Plugin;
283
283
  }());
284
284
  var Plugin$1 = Plugin;
@@ -319,6 +319,11 @@ var Options$1 = Options;
319
319
  * Copyright (c) 2017 ~ present NAVER Corp.
320
320
  * billboard.js project is licensed under the MIT license
321
321
  */
322
+ /**
323
+ * Window object
324
+ * @private
325
+ */
326
+ /* eslint-disable no-new-func, no-undef */
322
327
  var win = (function () {
323
328
  var root = (typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis) ||
324
329
  (typeof global === "object" && global !== null && global.Object === Object && global) ||
@@ -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.1
8
+ * @version 3.8.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -230,6 +230,11 @@ _assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(_assign(
230
230
  * Copyright (c) 2017 ~ present NAVER Corp.
231
231
  * billboard.js project is licensed under the MIT license
232
232
  */
233
+ /**
234
+ * Window object
235
+ * @private
236
+ */
237
+ /* eslint-disable no-new-func, no-undef */
233
238
  var win = (function () {
234
239
  var root = (typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis) ||
235
240
  (typeof global === "object" && global !== null && global.Object === Object && global) ||
@@ -481,7 +486,7 @@ var Plugin = /** @class */ (function () {
481
486
  delete _this[key];
482
487
  });
483
488
  };
484
- Plugin.version = "3.8.1";
489
+ Plugin.version = "3.8.2";
485
490
  return Plugin;
486
491
  }());
487
492
  var Plugin$1 = Plugin;
@@ -744,6 +749,7 @@ function getCentroid(points) {
744
749
  * Copyright (c) 2017 ~ present NAVER Corp.
745
750
  * billboard.js project is licensed under the MIT license
746
751
  */
752
+ // @ts-nocheck
747
753
  /**
748
754
  * Stanford diagram plugin element class
749
755
  * @class ColorScale
@@ -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.1
8
+ * @version 3.8.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -121,7 +121,7 @@ var Plugin = /** @class */ (function () {
121
121
  delete _this[key];
122
122
  });
123
123
  };
124
- Plugin.version = "3.8.1";
124
+ Plugin.version = "3.8.2";
125
125
  return Plugin;
126
126
  }());
127
127
  var Plugin$1 = Plugin;
@@ -233,6 +233,10 @@ var Options$1 = Options;
233
233
  * Copyright (c) 2021 ~ present NAVER Corp.
234
234
  * billboard.js project is licensed under the MIT license
235
235
  */
236
+ /**
237
+ * Constants values for plugin option
238
+ * @ignore
239
+ */
236
240
  var defaultStyle = {
237
241
  id: "__tableview-style__",
238
242
  class: "bb-tableview",
@@ -250,6 +254,11 @@ var tpl = {
250
254
  * Copyright (c) 2017 ~ present NAVER Corp.
251
255
  * billboard.js project is licensed under the MIT license
252
256
  */
257
+ /**
258
+ * Window object
259
+ * @private
260
+ */
261
+ /* eslint-disable no-new-func, no-undef */
253
262
  var win = (function () {
254
263
  var root = (typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis) ||
255
264
  (typeof global === "object" && global !== null && global.Object === Object && global) ||
@@ -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.1
8
+ * @version 3.8.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -60,6 +60,11 @@ function __spreadArray(to, from, pack) {
60
60
  * Copyright (c) 2017 ~ present NAVER Corp.
61
61
  * billboard.js project is licensed under the MIT license
62
62
  */
63
+ /**
64
+ * Window object
65
+ * @private
66
+ */
67
+ /* eslint-disable no-new-func, no-undef */
63
68
  var win = (function () {
64
69
  var root = (typeof globalThis === "object" && globalThis !== null && globalThis.Object === Object && globalThis) ||
65
70
  (typeof global === "object" && global !== null && global.Object === Object && global) ||
@@ -258,7 +263,7 @@ var Plugin = /** @class */ (function () {
258
263
  delete _this[key];
259
264
  });
260
265
  };
261
- Plugin.version = "3.8.1";
266
+ Plugin.version = "3.8.2";
262
267
  return Plugin;
263
268
  }());
264
269
  var Plugin$1 = Plugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "billboard.js",
3
- "version": "3.8.1",
3
+ "version": "3.8.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",
@@ -109,12 +109,12 @@
109
109
  "@babel/preset-env": "^7.21.5",
110
110
  "@babel/preset-typescript": "^7.21.5",
111
111
  "@babel/runtime": "^7.21.5",
112
- "@commitlint/cli": "17.6.1",
113
- "@commitlint/config-conventional": "^17.6.1",
112
+ "@commitlint/cli": "17.6.3",
113
+ "@commitlint/config-conventional": "^17.6.3",
114
114
  "@rollup/plugin-babel": "^6.0.3",
115
115
  "@rollup/plugin-node-resolve": "^15.0.2",
116
116
  "@rollup/plugin-replace": "^5.0.2",
117
- "@rollup/plugin-typescript": "^11.1.0",
117
+ "@rollup/plugin-typescript": "^11.1.1",
118
118
  "@semantic-release/changelog": "^6.0.3",
119
119
  "@semantic-release/commit-analyzer": "^9.0.2",
120
120
  "@semantic-release/exec": "^6.0.3",
@@ -124,9 +124,9 @@
124
124
  "@types/chai": "^4.3.5",
125
125
  "@types/d3": "^7.4.0",
126
126
  "@types/mocha": "^10.0.1",
127
- "@types/sinon": "^10.0.14",
128
- "@typescript-eslint/eslint-plugin": "^5.59.2",
129
- "@typescript-eslint/parser": "^5.59.2",
127
+ "@types/sinon": "^10.0.15",
128
+ "@typescript-eslint/eslint-plugin": "^5.59.6",
129
+ "@typescript-eslint/parser": "^5.59.6",
130
130
  "babel-helper-modules": "^6.0.0",
131
131
  "babel-loader": "^9.1.2",
132
132
  "babel-plugin-add-module-exports": "^1.0.4",
@@ -142,7 +142,7 @@
142
142
  "chai": "^4.3.7",
143
143
  "clean-webpack-plugin": "^4.0.0",
144
144
  "cloc": "^2.11.0",
145
- "core-js": "^3.30.1",
145
+ "core-js": "^3.30.2",
146
146
  "coveralls": "^3.1.1",
147
147
  "cross-env": "^7.0.3",
148
148
  "css-loader": "^6.7.3",
@@ -153,10 +153,10 @@
153
153
  "d3-polygon": "^3.0.1",
154
154
  "docdash": "^2.0.1",
155
155
  "dtslint": "^4.2.1",
156
- "eslint": "^8.39.0",
156
+ "eslint": "^8.40.0",
157
157
  "eslint-config-naver": "^2.1.0",
158
158
  "eslint-plugin-import": "^2.27.5",
159
- "eslint-plugin-jsdoc": "^43.1.1",
159
+ "eslint-plugin-jsdoc": "^44.2.4",
160
160
  "eslint-webpack-plugin": "^4.0.1",
161
161
  "exports-loader": "^4.0.0",
162
162
  "hammer-simulator": "0.0.1",
@@ -180,7 +180,7 @@
180
180
  "mocha": "^10.2.0",
181
181
  "node-sass": "^8.0.0",
182
182
  "regenerator-runtime": "^0.13.11",
183
- "rollup": "^3.21.3",
183
+ "rollup": "^3.21.7",
184
184
  "rollup-plugin-delete": "^2.0.0",
185
185
  "sass-loader": "^13.2.2",
186
186
  "semantic-release": "^21.0.2",
@@ -189,15 +189,15 @@
189
189
  "string-replace-loader": "^3.1.0",
190
190
  "style-loader": "^3.3.2",
191
191
  "taffydb": "^2.7.3",
192
- "terser-webpack-plugin": "^5.3.7",
192
+ "terser-webpack-plugin": "^5.3.8",
193
193
  "tslib": "^2.5.0",
194
194
  "typescript": "5.0.4",
195
- "webpack": "^5.81.0",
195
+ "webpack": "^5.82.1",
196
196
  "webpack-bundle-analyzer": "^4.8.0",
197
197
  "webpack-clean": "^1.2.5",
198
- "webpack-cli": "^5.0.2",
198
+ "webpack-cli": "^5.1.1",
199
199
  "webpack-common-shake": "^2.1.0",
200
- "webpack-dev-server": "^4.13.3",
200
+ "webpack-dev-server": "^4.15.0",
201
201
  "webpack-merge": "^5.8.0",
202
202
  "webpackbar": "^5.0.2",
203
203
  "write-file-webpack-plugin": "^4.5.1"
@@ -208,8 +208,8 @@ export default {
208
208
  .attr("height", height);
209
209
 
210
210
  // only for init
211
- if (!rendered) {
212
- rectElement.attr("class", $EVENT.eventRect);
211
+ if (!rendered || force) {
212
+ rectElement.classed($EVENT.eventRect, true);
213
213
  }
214
214
  }
215
215