@carbon/charts-vue 0.50.3 → 0.50.7

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 CHANGED
@@ -3,6 +3,38 @@
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.7](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.6...v0.50.7) (2021-10-12)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-vue
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.50.6](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.5...v0.50.6) (2021-10-08)
15
+
16
+ **Note:** Version bump only for package @carbon/charts-vue
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.50.5](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.4...v0.50.5) (2021-10-08)
23
+
24
+ **Note:** Version bump only for package @carbon/charts-vue
25
+
26
+
27
+
28
+
29
+
30
+ ## [0.50.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.3...v0.50.4) (2021-10-05)
31
+
32
+ **Note:** Version bump only for package @carbon/charts-vue
33
+
34
+
35
+
36
+
37
+
6
38
  ## [0.50.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.50.2...v0.50.3) (2021-10-04)
7
39
 
8
40
  **Note:** Version bump only for package @carbon/charts-vue
@@ -11242,6 +11242,12 @@ var dom_utils_DOMUtils = /** @class */ (function (_super) {
11242
11242
  };
11243
11243
  };
11244
11244
  DOMUtils.getSVGElementSize = function (svgSelector, options) {
11245
+ if (options === void 0) { options = {
11246
+ useAttrs: false,
11247
+ useClientDimensions: false,
11248
+ useBBox: false,
11249
+ useBoundingRect: false,
11250
+ }; }
11245
11251
  if (!svgSelector.attr) {
11246
11252
  svgSelector = src_select(svgSelector);
11247
11253
  }
@@ -23136,7 +23142,7 @@ var title_Title = /** @class */ (function (_super) {
23136
23142
  // computes the maximum space a title can take
23137
23143
  Title.prototype.getMaxTitleWidth = function () {
23138
23144
  return dom_utils_DOMUtils.getSVGElementSize(this.parent.node(), {
23139
- useAttr: true,
23145
+ useAttrs: true,
23140
23146
  }).width;
23141
23147
  };
23142
23148
  /**
@@ -23292,7 +23298,7 @@ var title_meter_MeterTitle = /** @class */ (function (_super) {
23292
23298
  var totalString = totalFormatter !== null
23293
23299
  ? totalFormatter(totalValue)
23294
23300
  : total + " " + unit + " total";
23295
- var containerBounds = dom_utils_DOMUtils.getSVGElementSize(this.services.domUtils.getMainContainer(), { useAttr: true });
23301
+ var containerBounds = dom_utils_DOMUtils.getSVGElementSize(this.services.domUtils.getMainContainer(), { useAttrs: true });
23296
23302
  // need to check if the width is 0, and try to use the parent attribute
23297
23303
  // this can happen if the chart is toggled on/off and the height is 0 for the parent, it wont validateDimensions
23298
23304
  var containerWidth = containerBounds.width
@@ -28313,7 +28319,7 @@ var pie_Pie = /** @class */ (function (_super) {
28313
28319
  : 'pie';
28314
28320
  var alignment = tools_Tools.getProperty(options, optionName, 'alignment');
28315
28321
  var width = dom_utils_DOMUtils.getSVGElementSize(this.getParent(), {
28316
- useAttr: true,
28322
+ useAttrs: true,
28317
28323
  }).width;
28318
28324
  // don't add padding for labels & callouts if they are disabled
28319
28325
  var xOffset = renderLabels ? configuration_non_customizable_pie.xOffset : 0;
@@ -28649,7 +28655,7 @@ var gauge_Gauge = /** @class */ (function (_super) {
28649
28655
  arcValue.exit().remove();
28650
28656
  var alignment = tools_Tools.getProperty(options, 'gauge', 'alignment');
28651
28657
  var width = dom_utils_DOMUtils.getSVGElementSize(this.getParent(), {
28652
- useAttr: true,
28658
+ useAttrs: true,
28653
28659
  }).width;
28654
28660
  // Position gauge
28655
28661
  var gaugeTranslateX = radius;
@@ -32199,7 +32205,9 @@ var radar_Radar = /** @class */ (function (_super) {
32199
32205
  var svgDimensions = dom_utils_DOMUtils.getSVGElementSize(svg, {
32200
32206
  useBBox: true,
32201
32207
  });
32202
- var width = dom_utils_DOMUtils.getSVGElementSize(parent, { useAttr: true }).width;
32208
+ var width = dom_utils_DOMUtils.getSVGElementSize(parent, {
32209
+ useAttrs: true,
32210
+ }).width;
32203
32211
  var alignmentOffset = 0;
32204
32212
  if (alignment === Alignments.CENTER) {
32205
32213
  alignmentOffset = Math.floor((width - svgDimensions.width) / 2);
@@ -34176,6 +34184,7 @@ var alluvial_Alluvial = /** @class */ (function (_super) {
34176
34184
  originalClassName: 'link',
34177
34185
  });
34178
34186
  })
34187
+ .style('stroke', function (d) { return _this.model.getFillColor(d.source.name); })
34179
34188
  .attr('stroke-width', function (d) { return Math.max(1, d.width); })
34180
34189
  .style('stroke-opacity', alluvial.opacity.default)
34181
34190
  .attr('aria-label', function (d) {