@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 +32 -0
- package/charts-vue.common.js +14 -5
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +14 -5
- 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/charts-vue.umd.js
CHANGED
|
@@ -11251,6 +11251,12 @@ var dom_utils_DOMUtils = /** @class */ (function (_super) {
|
|
|
11251
11251
|
};
|
|
11252
11252
|
};
|
|
11253
11253
|
DOMUtils.getSVGElementSize = function (svgSelector, options) {
|
|
11254
|
+
if (options === void 0) { options = {
|
|
11255
|
+
useAttrs: false,
|
|
11256
|
+
useClientDimensions: false,
|
|
11257
|
+
useBBox: false,
|
|
11258
|
+
useBoundingRect: false,
|
|
11259
|
+
}; }
|
|
11254
11260
|
if (!svgSelector.attr) {
|
|
11255
11261
|
svgSelector = src_select(svgSelector);
|
|
11256
11262
|
}
|
|
@@ -23145,7 +23151,7 @@ var title_Title = /** @class */ (function (_super) {
|
|
|
23145
23151
|
// computes the maximum space a title can take
|
|
23146
23152
|
Title.prototype.getMaxTitleWidth = function () {
|
|
23147
23153
|
return dom_utils_DOMUtils.getSVGElementSize(this.parent.node(), {
|
|
23148
|
-
|
|
23154
|
+
useAttrs: true,
|
|
23149
23155
|
}).width;
|
|
23150
23156
|
};
|
|
23151
23157
|
/**
|
|
@@ -23301,7 +23307,7 @@ var title_meter_MeterTitle = /** @class */ (function (_super) {
|
|
|
23301
23307
|
var totalString = totalFormatter !== null
|
|
23302
23308
|
? totalFormatter(totalValue)
|
|
23303
23309
|
: total + " " + unit + " total";
|
|
23304
|
-
var containerBounds = dom_utils_DOMUtils.getSVGElementSize(this.services.domUtils.getMainContainer(), {
|
|
23310
|
+
var containerBounds = dom_utils_DOMUtils.getSVGElementSize(this.services.domUtils.getMainContainer(), { useAttrs: true });
|
|
23305
23311
|
// need to check if the width is 0, and try to use the parent attribute
|
|
23306
23312
|
// this can happen if the chart is toggled on/off and the height is 0 for the parent, it wont validateDimensions
|
|
23307
23313
|
var containerWidth = containerBounds.width
|
|
@@ -28322,7 +28328,7 @@ var pie_Pie = /** @class */ (function (_super) {
|
|
|
28322
28328
|
: 'pie';
|
|
28323
28329
|
var alignment = tools_Tools.getProperty(options, optionName, 'alignment');
|
|
28324
28330
|
var width = dom_utils_DOMUtils.getSVGElementSize(this.getParent(), {
|
|
28325
|
-
|
|
28331
|
+
useAttrs: true,
|
|
28326
28332
|
}).width;
|
|
28327
28333
|
// don't add padding for labels & callouts if they are disabled
|
|
28328
28334
|
var xOffset = renderLabels ? configuration_non_customizable_pie.xOffset : 0;
|
|
@@ -28658,7 +28664,7 @@ var gauge_Gauge = /** @class */ (function (_super) {
|
|
|
28658
28664
|
arcValue.exit().remove();
|
|
28659
28665
|
var alignment = tools_Tools.getProperty(options, 'gauge', 'alignment');
|
|
28660
28666
|
var width = dom_utils_DOMUtils.getSVGElementSize(this.getParent(), {
|
|
28661
|
-
|
|
28667
|
+
useAttrs: true,
|
|
28662
28668
|
}).width;
|
|
28663
28669
|
// Position gauge
|
|
28664
28670
|
var gaugeTranslateX = radius;
|
|
@@ -32208,7 +32214,9 @@ var radar_Radar = /** @class */ (function (_super) {
|
|
|
32208
32214
|
var svgDimensions = dom_utils_DOMUtils.getSVGElementSize(svg, {
|
|
32209
32215
|
useBBox: true,
|
|
32210
32216
|
});
|
|
32211
|
-
var width = dom_utils_DOMUtils.getSVGElementSize(parent, {
|
|
32217
|
+
var width = dom_utils_DOMUtils.getSVGElementSize(parent, {
|
|
32218
|
+
useAttrs: true,
|
|
32219
|
+
}).width;
|
|
32212
32220
|
var alignmentOffset = 0;
|
|
32213
32221
|
if (alignment === Alignments.CENTER) {
|
|
32214
32222
|
alignmentOffset = Math.floor((width - svgDimensions.width) / 2);
|
|
@@ -34185,6 +34193,7 @@ var alluvial_Alluvial = /** @class */ (function (_super) {
|
|
|
34185
34193
|
originalClassName: 'link',
|
|
34186
34194
|
});
|
|
34187
34195
|
})
|
|
34196
|
+
.style('stroke', function (d) { return _this.model.getFillColor(d.source.name); })
|
|
34188
34197
|
.attr('stroke-width', function (d) { return Math.max(1, d.width); })
|
|
34189
34198
|
.style('stroke-opacity', alluvial.opacity.default)
|
|
34190
34199
|
.attr('aria-label', function (d) {
|