billboard.js 3.7.1 → 3.7.3

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 (44) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +39 -24
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +2 -2
  5. package/dist/billboard.pkgd.js +1247 -1193
  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 +1159 -1130
  18. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +1160 -1131
  19. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +1204 -1165
  20. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +1161 -1132
  21. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +1161 -1132
  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 +38 -24
  29. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  30. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  31. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  32. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  33. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  34. package/package.json +13 -13
  35. package/src/Chart/api/data.ts +2 -2
  36. package/src/Chart/api/grid.x.ts +2 -2
  37. package/src/Chart/api/grid.y.ts +4 -2
  38. package/src/Chart/api/regions.ts +2 -2
  39. package/src/Chart/api/tooltip.ts +2 -2
  40. package/src/ChartInternal/data/data.ts +4 -2
  41. package/src/ChartInternal/internals/text.ts +14 -4
  42. package/src/ChartInternal/shape/bar.ts +9 -4
  43. package/types/chart.d.ts +4 -4
  44. package/types/options.d.ts +1 -1
package/types/chart.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2017 ~ present NAVER Corp.
3
3
  * billboard.js project is licensed under the MIT license
4
4
  */
5
- import {Data} from "./options";
5
+ import {Data, RegionOptions} from "./options";
6
6
  import {ArrayOrString, d3Selection, DataArray, DataItem, PrimitiveArray, TargetIds} from "./types";
7
7
 
8
8
  export interface Chart {
@@ -102,20 +102,20 @@ export interface Chart {
102
102
  * Update regions.
103
103
  * @param regions Regions will be replaced with this argument. The format of this argument is the same as regions.
104
104
  */
105
- (regions: any[]): void;
105
+ (regions: RegionOptions[]): void;
106
106
 
107
107
  /**
108
108
  * Add new region. This API adds new region instead of replacing like regions.
109
109
  * @param grids New region will be added. The format of this argument is the same as regions and it's possible to give an Object if only one region will be added.
110
110
  */
111
- add(regions: any[] | {}): void;
111
+ add(regions: RegionOptions | RegionOptions[]): void;
112
112
 
113
113
  /**
114
114
  * Remove regions. This API removes regions.
115
115
  * @param args This argument should include classes. If classes is given, the regions that have one of the specified classes will be removed. If args is not given, all of regions will be
116
116
  * removed.
117
117
  */
118
- remove(args?: { value?: number | string; class?: string }): void;
118
+ remove(args?: { classes: string[] }): void;
119
119
  };
120
120
 
121
121
  data: {
@@ -383,7 +383,7 @@ export interface ChartOptions {
383
383
  }
384
384
 
385
385
  export interface RegionOptions {
386
- axis?: string;
386
+ axis?: "x" | "y" | "y2";
387
387
  start?: string | number | Date;
388
388
  end?: string | number | Date;
389
389
  class?: string;