@carbon/charts 1.6.14 → 1.7.1
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/CHANGELOG.md +22 -0
- package/build/src/components/diagrams/buildPaths.d.ts +27 -3
- package/build/src/components/graphs/bubble.d.ts +1 -1
- package/build/src/components/graphs/wordcloud.d.ts +1 -1
- package/build/src/interfaces/charts.d.ts +6 -0
- package/bundle.js +3 -1
- package/components/essentials/threshold.js +2 -0
- package/components/essentials/threshold.js.map +1 -1
- package/components/essentials/tooltip.js +2 -0
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/bubble.d.ts +1 -1
- package/components/graphs/wordcloud.d.ts +1 -1
- package/demo/data/bar.js +60 -12
- package/demo/data/bar.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/styles.css +5813 -3083
- package/demo/styles.css.map +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/styles.min.css.map +1 -1
- package/demo/tsconfig.tsbuildinfo +758 -1538
- package/interfaces/charts.d.ts +6 -0
- package/interfaces/charts.js.map +1 -1
- package/model/model.js +7 -1
- package/model/model.js.map +1 -1
- package/package.json +15 -14
- package/services/essentials/dom-utils.js +15 -3
- package/services/essentials/dom-utils.js.map +1 -1
- package/styles.css +89 -37
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.map +1 -1
- package/tsconfig.tsbuildinfo +829 -2099
- package/services/essentials/dom-to-image.d.ts +0 -120
- package/services/essentials/dom-to-image.js +0 -720
- package/services/essentials/dom-to-image.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.7.1](https://github.com/carbon-design-system/carbon-charts/compare/v1.7.0...v1.7.1) (2023-04-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **1522:** externalize dom-to-image-more ([#1540](https://github.com/carbon-design-system/carbon-charts/issues/1540)) ([98f1bfc](https://github.com/carbon-design-system/carbon-charts/commit/98f1bfc40aaf0f6cb0e7139ff8cfc3337474aa33))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [1.7.0](https://github.com/carbon-design-system/carbon-charts/compare/v1.6.14...v1.7.0) (2023-04-19)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **exports:** custom fileDownload.fileName function ([#1536](https://github.com/carbon-design-system/carbon-charts/issues/1536)) ([fc658e0](https://github.com/carbon-design-system/carbon-charts/commit/fc658e03e188884a27ed60e95ded3f41db5d50ba))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [1.6.14](https://github.com/carbon-design-system/carbon-charts/compare/v1.6.13...v1.6.14) (2023-03-07)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @carbon/charts
|
|
@@ -8,7 +8,15 @@
|
|
|
8
8
|
* @param {Number} target.y - The target's y coordinate
|
|
9
9
|
* @return {String} The path string
|
|
10
10
|
*/
|
|
11
|
-
declare const buildStraightPathString:
|
|
11
|
+
declare const buildStraightPathString: {
|
|
12
|
+
(source: any, target: any): string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
__docgenInfo: {
|
|
15
|
+
"description": string;
|
|
16
|
+
"displayName": string;
|
|
17
|
+
"props": {};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
12
20
|
/**
|
|
13
21
|
* Returns a path string for an elbow path with a bend point
|
|
14
22
|
* @param {Object} source - The source coordinates
|
|
@@ -20,7 +28,15 @@ declare const buildStraightPathString: (source: any, target: any) => string;
|
|
|
20
28
|
* @param {Number} percent - Where the bend point should appear between the source and target
|
|
21
29
|
* @return {String} The path string
|
|
22
30
|
*/
|
|
23
|
-
declare const buildElbowPathString:
|
|
31
|
+
declare const buildElbowPathString: {
|
|
32
|
+
(source: any, target: any, percent?: number): string;
|
|
33
|
+
displayName: string;
|
|
34
|
+
__docgenInfo: {
|
|
35
|
+
"description": string;
|
|
36
|
+
"displayName": string;
|
|
37
|
+
"props": {};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
24
40
|
/**
|
|
25
41
|
* Returns a path string for an path with a custom bezier curve
|
|
26
42
|
* @param {Object} source - The source coordinates
|
|
@@ -35,5 +51,13 @@ declare const buildElbowPathString: (source: any, target: any, percent?: number)
|
|
|
35
51
|
* @param {Number} cpy1 - Y coordinate for the second control point
|
|
36
52
|
* @return {String} The path string
|
|
37
53
|
*/
|
|
38
|
-
declare const buildBezierPathString:
|
|
54
|
+
declare const buildBezierPathString: {
|
|
55
|
+
(source: any, target: any, cpx1: any, cpy1: any, cpx2: any, cpy2: any): string;
|
|
56
|
+
displayName: string;
|
|
57
|
+
__docgenInfo: {
|
|
58
|
+
"description": string;
|
|
59
|
+
"displayName": string;
|
|
60
|
+
"props": {};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
39
63
|
export { buildStraightPathString, buildElbowPathString, buildBezierPathString };
|
|
@@ -4,7 +4,7 @@ import { Selection } from 'd3-selection';
|
|
|
4
4
|
export declare class Bubble extends Scatter {
|
|
5
5
|
type: string;
|
|
6
6
|
renderType: RenderTypes;
|
|
7
|
-
getRadiusScale(selection: Selection<any, any, any, any>): import("d3-scale").ScaleLinear<number, number>;
|
|
7
|
+
getRadiusScale(selection: Selection<any, any, any, any>): import("d3-scale").ScaleLinear<number, number, never>;
|
|
8
8
|
styleCircles(selection: Selection<any, any, any, any>, animate: boolean): void;
|
|
9
9
|
getTooltipAdditionalItems(datum: any): {
|
|
10
10
|
label: any;
|
|
@@ -5,7 +5,7 @@ export declare class WordCloud extends Component {
|
|
|
5
5
|
renderType: RenderTypes;
|
|
6
6
|
init(): void;
|
|
7
7
|
render(animate?: boolean): void;
|
|
8
|
-
getFontSizeScale(data: any): import("d3-scale").ScaleLinear<number, number>;
|
|
8
|
+
getFontSizeScale(data: any): import("d3-scale").ScaleLinear<number, number, never>;
|
|
9
9
|
handleLegendOnHover: (event: CustomEvent<any>) => void;
|
|
10
10
|
handleLegendMouseOut: (event: CustomEvent<any>) => void;
|
|
11
11
|
addEventListeners(): void;
|
|
@@ -113,6 +113,12 @@ export interface BaseChartOptions {
|
|
|
113
113
|
colors?: Array<String>;
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
|
+
fileDownload?: {
|
|
117
|
+
/**
|
|
118
|
+
* the number of color variants in the palette (defaults to using the number of data groups in the given data)
|
|
119
|
+
*/
|
|
120
|
+
fileName?: (type: 'png' | 'jpg' | 'csv') => string;
|
|
121
|
+
};
|
|
116
122
|
}
|
|
117
123
|
/**
|
|
118
124
|
* Options common to any chart with an axis
|