@carbon/charts 0.50.2 → 0.50.6

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 (53) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/build/demo/data/alluvial.d.ts +17 -0
  3. package/build/{stories → demo}/utils.d.ts +7 -2
  4. package/build/src/services/essentials/dom-utils.d.ts +8 -1
  5. package/bundle.js +1 -1
  6. package/components/essentials/title-meter.js +1 -1
  7. package/components/essentials/title-meter.js.map +1 -1
  8. package/components/essentials/title.js +1 -1
  9. package/components/essentials/title.js.map +1 -1
  10. package/components/graphs/alluvial.js +1 -0
  11. package/components/graphs/alluvial.js.map +1 -1
  12. package/components/graphs/gauge.js +1 -1
  13. package/components/graphs/gauge.js.map +1 -1
  14. package/components/graphs/pie.js +1 -1
  15. package/components/graphs/pie.js.map +1 -1
  16. package/components/graphs/radar.js +3 -1
  17. package/components/graphs/radar.js.map +1 -1
  18. package/demo/data/alluvial.d.ts +17 -0
  19. package/demo/data/alluvial.js +18 -0
  20. package/demo/data/alluvial.js.map +1 -1
  21. package/demo/data/bundle.js +1 -1
  22. package/demo/data/index.js +5 -0
  23. package/demo/data/index.js.map +1 -1
  24. package/demo/styles.css +1605 -242
  25. package/demo/styles.css.map +1 -1
  26. package/demo/styles.min.css +1 -1
  27. package/demo/styles.min.css.map +1 -1
  28. package/demo/tsconfig.tsbuildinfo +15 -3
  29. package/demo/utils.d.ts +24 -0
  30. package/demo/utils.js +169 -0
  31. package/demo/utils.js.map +1 -0
  32. package/package.json +1 -1
  33. package/services/essentials/dom-utils.d.ts +8 -1
  34. package/services/essentials/dom-utils.js +6 -0
  35. package/services/essentials/dom-utils.js.map +1 -1
  36. package/styles/components/_layout.scss +2 -0
  37. package/styles-g10.css +2 -0
  38. package/styles-g10.css.map +1 -1
  39. package/styles-g10.min.css +1 -1
  40. package/styles-g10.min.css.map +1 -1
  41. package/styles-g100.css +2 -0
  42. package/styles-g100.css.map +1 -1
  43. package/styles-g100.min.css +1 -1
  44. package/styles-g100.min.css.map +1 -1
  45. package/styles-g90.css +2 -0
  46. package/styles-g90.css.map +1 -1
  47. package/styles-g90.min.css +1 -1
  48. package/styles-g90.min.css.map +1 -1
  49. package/styles.css +2 -0
  50. package/styles.css.map +1 -1
  51. package/styles.min.css +1 -1
  52. package/styles.min.css.map +1 -1
  53. package/tsconfig.tsbuildinfo +8 -8
package/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
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
+ ## [0.50.6](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.5...v0.50.6) (2021-10-08)
7
+
8
+ **Note:** Version bump only for package @carbon/charts
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.50.5](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.4...v0.50.5) (2021-10-08)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **core:** fix safari bug causing incorrect chart heights ([#1179](https://github.com/carbon-design-system/carbon-charts/issues/1179)) ([55dd880](https://github.com/carbon-design-system/carbon-charts/commit/55dd880e48cb07c8f392ce2b9774e49ea4220051)), closes [#1177](https://github.com/carbon-design-system/carbon-charts/issues/1177)
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.50.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.3...v0.50.4) (2021-10-05)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **core:** allow users to assign custom colors to the links of source nodes ([#1178](https://github.com/carbon-design-system/carbon-charts/issues/1178)) ([bec1cc7](https://github.com/carbon-design-system/carbon-charts/commit/bec1cc736dec36fd8ed26a1ade1ac9f375e3849c)), closes [#1175](https://github.com/carbon-design-system/carbon-charts/issues/1175)
31
+
32
+
33
+
34
+
35
+
36
+ ## [0.50.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.2...v0.50.3) (2021-10-04)
37
+
38
+ **Note:** Version bump only for package @carbon/charts
39
+
40
+
41
+
42
+
43
+
6
44
  ## [0.50.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.1...v0.50.2) (2021-10-04)
7
45
 
8
46
  **Note:** Version bump only for package @carbon/charts
@@ -13,6 +13,23 @@ export declare const alluvialSimpleOptions: {
13
13
  }[];
14
14
  };
15
15
  };
16
+ export declare const alluvialSimpleCustomColorOptions: {
17
+ title: string;
18
+ color: {
19
+ scale: {
20
+ A: string;
21
+ B: string;
22
+ C: string;
23
+ };
24
+ };
25
+ alluvial: {
26
+ units: string;
27
+ nodes: {
28
+ name: string;
29
+ category: string;
30
+ }[];
31
+ };
32
+ };
16
33
  export declare const alluvialMultipleCategoryOptions: {
17
34
  title: string;
18
35
  alluvial: {
@@ -1,5 +1,10 @@
1
- export declare const addControls: (container: any, demoGroup: any, chart: any) => void;
2
- export declare const addRadioButtonEventListeners: (container: any, chart: any) => void;
1
+ export declare const addControls: (container: any, demoGroup: any, chart: any, configs?: {
2
+ colorPairingOptions: any;
3
+ }) => void;
4
+ export declare const addRadioButtonEventListeners: (container: any, chart: any, configs: any) => void;
5
+ export declare const addOtherVersions: (container: any, demoGroup: any, demo: any, configs?: {
6
+ currentVersion: string;
7
+ }) => void;
3
8
  /**
4
9
  * Generates random data going backwards from now once a minute
5
10
  * @param {number} quantity number of data points to create
@@ -1,12 +1,18 @@
1
1
  import { Service } from '../service';
2
2
  import { Selection } from 'd3-selection';
3
+ interface getSVGElementSizeOptions {
4
+ useAttrs?: boolean;
5
+ useClientDimensions?: boolean;
6
+ useBBox?: boolean;
7
+ useBoundingRect?: boolean;
8
+ }
3
9
  export declare class DOMUtils extends Service {
4
10
  constructor(model: any, services: any);
5
11
  static getHTMLElementSize(element: HTMLElement): {
6
12
  width: number;
7
13
  height: number;
8
14
  };
9
- static getSVGElementSize(svgSelector: Selection<any, any, any, any>, options?: any): any;
15
+ static getSVGElementSize(svgSelector: Selection<any, any, any, any>, options?: getSVGElementSizeOptions): any;
10
16
  static appendOrSelect(parent: any, query: any): any;
11
17
  protected mainContainer: HTMLElement;
12
18
  protected width: string;
@@ -26,3 +32,4 @@ export declare class DOMUtils extends Service {
26
32
  addHolderListeners(): void;
27
33
  addResizeListener(): void;
28
34
  }
35
+ export {};