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.
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +39 -24
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/billboard.pkgd.js +1247 -1193
- package/dist/billboard.pkgd.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +1159 -1130
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +1160 -1131
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +1204 -1165
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +1161 -1132
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +1161 -1132
- 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 +38 -24
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +13 -13
- package/src/Chart/api/data.ts +2 -2
- package/src/Chart/api/grid.x.ts +2 -2
- package/src/Chart/api/grid.y.ts +4 -2
- package/src/Chart/api/regions.ts +2 -2
- package/src/Chart/api/tooltip.ts +2 -2
- package/src/ChartInternal/data/data.ts +4 -2
- package/src/ChartInternal/internals/text.ts +14 -4
- package/src/ChartInternal/shape/bar.ts +9 -4
- package/types/chart.d.ts +4 -4
- 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:
|
|
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:
|
|
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?: {
|
|
118
|
+
remove(args?: { classes: string[] }): void;
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
data: {
|