@carbon/charts-vue 1.3.2 → 1.4.0
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 +8 -0
- package/charts-vue.common.js +7 -4
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +7 -4
- package/charts-vue.umd.js.map +1 -1
- package/charts-vue.umd.min.js +1 -1
- package/charts-vue.umd.min.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.4.0](https://github.com/carbon-design-system/carbon-charts/compare/v1.3.2...v1.4.0) (2022-07-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts-vue
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.3.2](https://github.com/carbon-design-system/carbon-charts/compare/v1.3.1...v1.3.2) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @carbon/charts-vue
|
package/charts-vue.common.js
CHANGED
|
@@ -682,7 +682,7 @@ var RenderTypes;
|
|
|
682
682
|
*/
|
|
683
683
|
var ChartTheme;
|
|
684
684
|
(function (ChartTheme) {
|
|
685
|
-
ChartTheme["
|
|
685
|
+
ChartTheme["WHITE"] = "white";
|
|
686
686
|
ChartTheme["G100"] = "g100";
|
|
687
687
|
ChartTheme["G90"] = "g90";
|
|
688
688
|
ChartTheme["G10"] = "g10";
|
|
@@ -8468,6 +8468,7 @@ var chart = {
|
|
|
8468
8468
|
width: null,
|
|
8469
8469
|
height: null,
|
|
8470
8470
|
resizable: true,
|
|
8471
|
+
theme: ChartTheme.WHITE,
|
|
8471
8472
|
tooltip: baseTooltip,
|
|
8472
8473
|
legend: configuration_legend,
|
|
8473
8474
|
style: {
|
|
@@ -11459,12 +11460,10 @@ var dom_utils_DOMUtils = /** @class */ (function (_super) {
|
|
|
11459
11460
|
};
|
|
11460
11461
|
DOMUtils.prototype.styleHolderElement = function () {
|
|
11461
11462
|
var holderElement = this.getHolder();
|
|
11462
|
-
// Add class to chart holder
|
|
11463
|
-
src_select(this.getHolder()).classed(carbonPrefix + "--chart-holder", true);
|
|
11464
11463
|
// In order for resize events to not clash with these updates
|
|
11465
11464
|
// We'll check if the width & height values passed in options
|
|
11466
11465
|
// Have changed, before setting them to the holder
|
|
11467
|
-
var _a = this.model.getOptions(), width = _a.width, height = _a.height;
|
|
11466
|
+
var _a = this.model.getOptions(), width = _a.width, height = _a.height, theme = _a.theme;
|
|
11468
11467
|
if (width !== this.width) {
|
|
11469
11468
|
// Apply formatted width attribute to chart
|
|
11470
11469
|
holderElement.style.width = width;
|
|
@@ -11475,6 +11474,10 @@ var dom_utils_DOMUtils = /** @class */ (function (_super) {
|
|
|
11475
11474
|
holderElement.style.height = height;
|
|
11476
11475
|
this.height = height;
|
|
11477
11476
|
}
|
|
11477
|
+
// Add class to chart holder
|
|
11478
|
+
src_select(this.getHolder())
|
|
11479
|
+
.classed(carbonPrefix + "--chart-holder", true)
|
|
11480
|
+
.attr('data-carbon-theme', theme);
|
|
11478
11481
|
};
|
|
11479
11482
|
DOMUtils.prototype.getHolder = function () {
|
|
11480
11483
|
return this.model.get('holder');
|