@carbon/charts-vue 1.7.5 → 1.7.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.
- package/CHANGELOG.md +4 -0
- package/charts-vue.common.js +21 -16
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +21 -16
- 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
|
@@ -23974,7 +23974,7 @@ var title_meter_MeterTitle = /** @class */ (function (_super) {
|
|
|
23974
23974
|
.classed('proportional-meter-total', true)
|
|
23975
23975
|
.merge(title)
|
|
23976
23976
|
// Position the total text -24 pixels to add spacing between text and status icon (if status exists)
|
|
23977
|
-
.attr('x', this.model.getStatus()
|
|
23977
|
+
.attr('x', this.model.getStatus() && typeof containerWidth !== 'string'
|
|
23978
23978
|
? containerWidth - meter.total.paddingRight
|
|
23979
23979
|
: containerWidth)
|
|
23980
23980
|
.attr('y', '1em')
|
|
@@ -24570,11 +24570,13 @@ var chart_clip_ChartClip = /** @class */ (function (_super) {
|
|
|
24570
24570
|
// Get height
|
|
24571
24571
|
this.chartClipPath = dom_utils_DOMUtils.appendOrSelect(svg, "clipPath." + this.type).attr('id', this.chartClipId);
|
|
24572
24572
|
var clipRect = dom_utils_DOMUtils.appendOrSelect(this.chartClipPath, "rect." + this.type);
|
|
24573
|
-
|
|
24574
|
-
|
|
24575
|
-
|
|
24576
|
-
|
|
24577
|
-
|
|
24573
|
+
if (xScaleEnd - xScaleStart > 0) {
|
|
24574
|
+
clipRect
|
|
24575
|
+
.attr('x', xScaleStart)
|
|
24576
|
+
.attr('y', yScaleStart)
|
|
24577
|
+
.attr('width', xScaleEnd - xScaleStart)
|
|
24578
|
+
.attr('height', yScaleEnd - yScaleStart);
|
|
24579
|
+
}
|
|
24578
24580
|
this.chartClipPath.merge(clipRect).lower();
|
|
24579
24581
|
};
|
|
24580
24582
|
return ChartClip;
|
|
@@ -32668,7 +32670,7 @@ var radar_Radar = /** @class */ (function (_super) {
|
|
|
32668
32670
|
.attr('fill', 'none')
|
|
32669
32671
|
.call(function (selection) {
|
|
32670
32672
|
return selection
|
|
32671
|
-
.transition()
|
|
32673
|
+
.transition() // BUG: unresolved from Issue 1555 - https://github.com/carbon-design-system/carbon-charts/issues/1555
|
|
32672
32674
|
.call(function (t) {
|
|
32673
32675
|
return _this.services.transitions.setupTransition({
|
|
32674
32676
|
transition: t,
|
|
@@ -39206,6 +39208,7 @@ var grid_brush_ChartBrush = /** @class */ (function (_super) {
|
|
|
39206
39208
|
_this.services.zoom.handleDomainChange(newDomain);
|
|
39207
39209
|
}
|
|
39208
39210
|
};
|
|
39211
|
+
var brush_1;
|
|
39209
39212
|
var brushed = function (event) {
|
|
39210
39213
|
// max selection range: [0, width]
|
|
39211
39214
|
var selection = event.selection;
|
|
@@ -39218,15 +39221,17 @@ var grid_brush_ChartBrush = /** @class */ (function (_super) {
|
|
|
39218
39221
|
frontSelection.style('display', 'none');
|
|
39219
39222
|
}
|
|
39220
39223
|
};
|
|
39221
|
-
|
|
39222
|
-
|
|
39223
|
-
|
|
39224
|
-
|
|
39225
|
-
|
|
39226
|
-
|
|
39227
|
-
|
|
39228
|
-
|
|
39229
|
-
|
|
39224
|
+
if (height != 0 && width != 0) {
|
|
39225
|
+
// leave some space to display selection strokes besides axis
|
|
39226
|
+
brush_1 = brushX()
|
|
39227
|
+
.extent([
|
|
39228
|
+
[0, 0],
|
|
39229
|
+
[width - 1, height],
|
|
39230
|
+
])
|
|
39231
|
+
.on('start brush end', brushEventHandler)
|
|
39232
|
+
.on('end.brushed', brushed);
|
|
39233
|
+
brushArea.call(brush_1);
|
|
39234
|
+
}
|
|
39230
39235
|
var zoomRatio_1 = this.services.zoom.getZoomRatio();
|
|
39231
39236
|
backdrop.on('click', function (event) {
|
|
39232
39237
|
if (event.shiftKey) {
|