cx 24.4.5 → 24.4.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/dist/charts.js +11 -0
- package/dist/manifest.js +769 -769
- package/dist/widgets.js +1 -1
- package/package.json +1 -1
- package/src/charts/Chart.js +16 -18
- package/src/charts/ColumnBarBase.d.ts +2 -2
- package/src/charts/ColumnBarGraphBase.d.ts +2 -2
- package/src/charts/Legend.js +151 -148
- package/src/charts/LineGraph.d.ts +2 -2
- package/src/charts/ScatterGraph.d.ts +2 -2
- package/src/charts/axis/Axis.js +254 -252
- package/src/charts/axis/CategoryAxis.d.ts +11 -9
- package/src/charts/axis/CategoryAxis.js +54 -67
- package/src/data/getAccessor.spec.js +11 -0
- package/src/widgets/drag-drop/DropZone.js +214 -213
- package/src/widgets/grid/Grid.d.ts +22 -4
package/dist/charts.js
CHANGED
|
@@ -270,6 +270,7 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
270
270
|
_proto.report = function report(context, instance) {
|
|
271
271
|
return instance.calculator;
|
|
272
272
|
};
|
|
273
|
+
_proto.reportData = function reportData(context, instance) {};
|
|
273
274
|
_proto.renderTicksAndLabels = function renderTicksAndLabels(context, instance, valueFormatter) {
|
|
274
275
|
var _this = this;
|
|
275
276
|
if (this.hidden) return false;
|
|
@@ -503,6 +504,9 @@ var Chart = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
503
504
|
};
|
|
504
505
|
_proto.exploreCleanup = function exploreCleanup(context, instance) {
|
|
505
506
|
context.pop("axes");
|
|
507
|
+
for (var axis in instance.axes) {
|
|
508
|
+
instance.axes[axis].widget.reportData(context, instance.axes[axis]);
|
|
509
|
+
}
|
|
506
510
|
};
|
|
507
511
|
_proto.prepare = function prepare(context, instance) {
|
|
508
512
|
context.push("axes", instance.calculators);
|
|
@@ -1663,6 +1667,7 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
|
|
|
1663
1667
|
switch (attrName) {
|
|
1664
1668
|
case "shapeSize":
|
|
1665
1669
|
case "svgSize":
|
|
1670
|
+
case "shape":
|
|
1666
1671
|
return false;
|
|
1667
1672
|
default:
|
|
1668
1673
|
return _HtmlElement.prototype.isValidHtmlAttribute.call(this, attrName);
|
|
@@ -1672,6 +1677,8 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
|
|
|
1672
1677
|
if (!context.legends) context.legends = {};
|
|
1673
1678
|
instance.legends = context.legends;
|
|
1674
1679
|
context.addLegendEntry = function (legendName, entry) {
|
|
1680
|
+
if (!legendName) return;
|
|
1681
|
+
|
|
1675
1682
|
//case when all legends are scoped and new entry is added outside the scope
|
|
1676
1683
|
if (!context.legends) return;
|
|
1677
1684
|
var legend = context.legends[legendName];
|
|
@@ -4266,6 +4273,7 @@ var CategoryAxis = /*#__PURE__*/ (function (_Axis) {
|
|
|
4266
4273
|
names: undefined,
|
|
4267
4274
|
values: undefined,
|
|
4268
4275
|
minSize: undefined,
|
|
4276
|
+
categoryCount: undefined,
|
|
4269
4277
|
},
|
|
4270
4278
|
]),
|
|
4271
4279
|
);
|
|
@@ -4283,6 +4291,9 @@ var CategoryAxis = /*#__PURE__*/ (function (_Axis) {
|
|
|
4283
4291
|
minSize = _instance$data.minSize;
|
|
4284
4292
|
instance.calculator.reset(inverted, uniform, values, names, minSize);
|
|
4285
4293
|
};
|
|
4294
|
+
_proto.reportData = function reportData(context, instance) {
|
|
4295
|
+
instance.set("categoryCount", instance.calculator.valueList.length);
|
|
4296
|
+
};
|
|
4286
4297
|
_proto.render = function render(context, instance, key) {
|
|
4287
4298
|
var data = instance.data,
|
|
4288
4299
|
calculator = instance.calculator;
|