cx 24.7.3 → 24.7.5
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/dist/charts.js +24 -21
- package/dist/manifest.js +719 -719
- package/dist/widgets.js +1 -0
- package/package.json +1 -1
- package/src/charts/Column.d.ts +5 -3
- package/src/charts/Column.js +1 -1
- package/src/charts/ColumnBarBase.js +25 -21
- package/src/charts/LegendEntry.d.ts +15 -13
- package/src/widgets/grid/Grid.js +2 -1
package/dist/charts.js
CHANGED
|
@@ -1228,6 +1228,7 @@ var ColumnBarBase = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
1228
1228
|
offset: undefined,
|
|
1229
1229
|
hoverId: undefined,
|
|
1230
1230
|
borderRadius: undefined,
|
|
1231
|
+
hidden: undefined,
|
|
1231
1232
|
},
|
|
1232
1233
|
]),
|
|
1233
1234
|
);
|
|
@@ -1313,26 +1314,27 @@ var ColumnBarBase = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
1313
1314
|
{
|
|
1314
1315
|
className: data.classNames,
|
|
1315
1316
|
children: [
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1317
|
+
!data.hidden &&
|
|
1318
|
+
/*#__PURE__*/ jsx("rect", {
|
|
1319
|
+
className: _this2.CSS.element(_this2.baseClass, "rect", stateMods),
|
|
1320
|
+
style: data.style,
|
|
1321
|
+
x: bounds.l,
|
|
1322
|
+
y: bounds.t,
|
|
1323
|
+
width: bounds.width(),
|
|
1324
|
+
height: bounds.height(),
|
|
1325
|
+
rx: data.borderRadius,
|
|
1326
|
+
onMouseMove: function onMouseMove(e) {
|
|
1327
|
+
_onMouseMove(e, instance);
|
|
1328
|
+
tooltipMouseMove(e, instance, _this2.tooltip);
|
|
1329
|
+
},
|
|
1330
|
+
onMouseLeave: function onMouseLeave(e) {
|
|
1331
|
+
_onMouseLeave(e, instance);
|
|
1332
|
+
tooltipMouseLeave(e, instance, _this2.tooltip);
|
|
1333
|
+
},
|
|
1334
|
+
onClick: function onClick(e) {
|
|
1335
|
+
_this2.handleClick(e, instance);
|
|
1336
|
+
},
|
|
1337
|
+
}),
|
|
1336
1338
|
_this2.renderChildren(context, instance),
|
|
1337
1339
|
],
|
|
1338
1340
|
},
|
|
@@ -1363,6 +1365,7 @@ ColumnBarBase.prototype.legendShape = "rect";
|
|
|
1363
1365
|
ColumnBarBase.prototype.styled = true;
|
|
1364
1366
|
ColumnBarBase.prototype.hoverChannel = "default";
|
|
1365
1367
|
ColumnBarBase.prototype.borderRadius = 0;
|
|
1368
|
+
ColumnBarBase.prototype.hidden = false;
|
|
1366
1369
|
|
|
1367
1370
|
var Column = /*#__PURE__*/ (function (_ColumnBarBase) {
|
|
1368
1371
|
function Column() {
|
|
@@ -1426,7 +1429,7 @@ var Column = /*#__PURE__*/ (function (_ColumnBarBase) {
|
|
|
1426
1429
|
var y1 = data.stacked ? instance.yAxis.stack(data.stack, data.x, data.y0) : instance.yAxis.map(data.y0);
|
|
1427
1430
|
var y2 = data.stacked ? instance.yAxis.stack(data.stack, data.x, data.y) : instance.yAxis.map(data.y);
|
|
1428
1431
|
if (Math.abs(y2 - y1) < this.minPixelHeight) {
|
|
1429
|
-
if (y1
|
|
1432
|
+
if (y1 < y2) y2 = y1 + this.minPixelHeight;
|
|
1430
1433
|
else y2 = y1 - this.minPixelHeight;
|
|
1431
1434
|
}
|
|
1432
1435
|
var bounds = new Rect({
|