cx 25.6.2 → 25.7.0
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.css +250 -250
- package/dist/charts.js +109 -109
- package/dist/data.js +19 -19
- package/dist/hooks.js +1 -1
- package/dist/manifest.js +776 -776
- package/dist/svg.js +25 -25
- package/dist/ui.js +84 -84
- package/dist/util.js +6 -9
- package/dist/widgets.css +11 -6
- package/dist/widgets.js +591 -543
- package/package.json +1 -1
- package/src/charts/Marker.d.ts +1 -1
- package/src/charts/MarkerLine.d.ts +25 -27
- package/src/data/ExposedValueView.d.ts +2 -2
- package/src/util/isFunction.d.ts +1 -1
- package/src/widgets/Sandbox.d.ts +3 -1
- package/src/widgets/Sandbox.js +2 -0
- package/src/widgets/form/MonthPicker.d.ts +8 -0
- package/src/widgets/form/MonthPicker.js +65 -23
- package/src/widgets/form/MonthPicker.scss +4 -0
- package/src/widgets/grid/Grid.js +28 -23
package/dist/charts.js
CHANGED
|
@@ -28,8 +28,8 @@ import {
|
|
|
28
28
|
} from "cx/util";
|
|
29
29
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
30
|
import {
|
|
31
|
-
tooltipMouseMove,
|
|
32
31
|
tooltipMouseLeave,
|
|
32
|
+
tooltipMouseMove,
|
|
33
33
|
HtmlElement,
|
|
34
34
|
tooltipParentWillUnmount,
|
|
35
35
|
tooltipParentWillReceiveProps,
|
|
@@ -53,16 +53,16 @@ function _createForOfIteratorHelperLoose(r, e) {
|
|
|
53
53
|
return function () {
|
|
54
54
|
return o >= r.length
|
|
55
55
|
? {
|
|
56
|
-
done:
|
|
57
|
-
|
|
56
|
+
done: true,
|
|
57
|
+
}
|
|
58
58
|
: {
|
|
59
|
-
done:
|
|
59
|
+
done: false,
|
|
60
60
|
value: r[o++],
|
|
61
|
-
|
|
61
|
+
};
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
throw new TypeError(
|
|
65
|
-
"Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
|
|
65
|
+
"Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
68
|
function _extends() {
|
|
@@ -75,7 +75,7 @@ function _extends() {
|
|
|
75
75
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
76
76
|
}
|
|
77
77
|
return n;
|
|
78
|
-
|
|
78
|
+
}),
|
|
79
79
|
_extends.apply(null, arguments)
|
|
80
80
|
);
|
|
81
81
|
}
|
|
@@ -88,7 +88,7 @@ function _setPrototypeOf(t, e) {
|
|
|
88
88
|
? Object.setPrototypeOf.bind()
|
|
89
89
|
: function (t, e) {
|
|
90
90
|
return (t.__proto__ = e), t;
|
|
91
|
-
|
|
91
|
+
}),
|
|
92
92
|
_setPrototypeOf(t, e)
|
|
93
93
|
);
|
|
94
94
|
}
|
|
@@ -101,8 +101,8 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
101
101
|
"Map" === t || "Set" === t
|
|
102
102
|
? Array.from(r)
|
|
103
103
|
: "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
? _arrayLikeToArray(r, a)
|
|
105
|
+
: void 0
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -214,7 +214,7 @@ var BoundedObject = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
214
214
|
margin: undefined,
|
|
215
215
|
padding: undefined,
|
|
216
216
|
},
|
|
217
|
-
].concat(Array.prototype.slice.call(arguments))
|
|
217
|
+
].concat(Array.prototype.slice.call(arguments))
|
|
218
218
|
);
|
|
219
219
|
};
|
|
220
220
|
_proto.prepareData = function prepareData(context, instance) {
|
|
@@ -300,7 +300,7 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
300
300
|
tickStyle: undefined,
|
|
301
301
|
tickClass: undefined,
|
|
302
302
|
},
|
|
303
|
-
].concat(Array.prototype.slice.call(arguments))
|
|
303
|
+
].concat(Array.prototype.slice.call(arguments))
|
|
304
304
|
);
|
|
305
305
|
};
|
|
306
306
|
_proto.prepareData = function prepareData(context, instance) {
|
|
@@ -351,7 +351,7 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
351
351
|
x2: x2,
|
|
352
352
|
y2: y2,
|
|
353
353
|
},
|
|
354
|
-
"line"
|
|
354
|
+
"line"
|
|
355
355
|
);
|
|
356
356
|
}
|
|
357
357
|
var t = [];
|
|
@@ -388,7 +388,7 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
388
388
|
? labelFormatter(formattedValue, v, {
|
|
389
389
|
tickIndex: si,
|
|
390
390
|
serieIndex: i,
|
|
391
|
-
|
|
391
|
+
})
|
|
392
392
|
: _this.wrapLines(formattedValue);
|
|
393
393
|
res.push(
|
|
394
394
|
/*#__PURE__*/ jsx(
|
|
@@ -402,8 +402,8 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
402
402
|
transform: transform,
|
|
403
403
|
children: _this.renderLabels(lines, x, _this.labelDy, _this.labelDx, offsetClass),
|
|
404
404
|
},
|
|
405
|
-
"label-" + si + "-" + i
|
|
406
|
-
)
|
|
405
|
+
"label-" + si + "-" + i
|
|
406
|
+
)
|
|
407
407
|
);
|
|
408
408
|
});
|
|
409
409
|
});
|
|
@@ -433,7 +433,7 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
433
433
|
style: data.tickStyle,
|
|
434
434
|
d: t.join(" "),
|
|
435
435
|
},
|
|
436
|
-
"ticks"
|
|
436
|
+
"ticks"
|
|
437
437
|
);
|
|
438
438
|
}
|
|
439
439
|
return res;
|
|
@@ -477,8 +477,8 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
477
477
|
dy: dy,
|
|
478
478
|
children: "_",
|
|
479
479
|
},
|
|
480
|
-
-2
|
|
481
|
-
)
|
|
480
|
+
-2
|
|
481
|
+
)
|
|
482
482
|
);
|
|
483
483
|
}
|
|
484
484
|
lines.forEach(function (p, i) {
|
|
@@ -493,8 +493,8 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
493
493
|
dx: dx,
|
|
494
494
|
children: p.text,
|
|
495
495
|
},
|
|
496
|
-
i
|
|
497
|
-
)
|
|
496
|
+
i
|
|
497
|
+
)
|
|
498
498
|
);
|
|
499
499
|
});
|
|
500
500
|
return result;
|
|
@@ -620,7 +620,7 @@ var PieChart = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
620
620
|
clockwise: undefined,
|
|
621
621
|
gap: undefined,
|
|
622
622
|
},
|
|
623
|
-
])
|
|
623
|
+
])
|
|
624
624
|
);
|
|
625
625
|
};
|
|
626
626
|
_proto.explore = function explore(context, instance) {
|
|
@@ -801,8 +801,8 @@ function createSvgArc(cx, cy, r0, r, startAngle, endAngle, br, gap) {
|
|
|
801
801
|
largeArcFlag(endAngle - innerSmallArcAngle - startAngle - innerSmallArcAngle),
|
|
802
802
|
1,
|
|
803
803
|
innerArcXTo,
|
|
804
|
-
innerArcYTo
|
|
805
|
-
)
|
|
804
|
+
innerArcYTo
|
|
805
|
+
)
|
|
806
806
|
);
|
|
807
807
|
var innerSmallArc2XTo = cx + Math.cos(startAngle) * innerHipDiagonal + Math.cos(startAngle + Math.PI / 2) * gap2;
|
|
808
808
|
var innerSmallArc2YTo = cy - Math.sin(startAngle) * innerHipDiagonal - Math.sin(startAngle + Math.PI / 2) * gap2;
|
|
@@ -839,9 +839,9 @@ function createSvgArc(cx, cy, r0, r, startAngle, endAngle, br, gap) {
|
|
|
839
839
|
largeArcFlag(endAngle - outerSmallArcAngle - startAngle - outerSmallArcAngle),
|
|
840
840
|
0,
|
|
841
841
|
outerLargeArcXTo,
|
|
842
|
-
outerLargeArcYTo
|
|
842
|
+
outerLargeArcYTo
|
|
843
843
|
),
|
|
844
|
-
arc(outerBr, outerBr, 0, 0, 0, outerSmallArc2XTo, outerSmallArc2YTo)
|
|
844
|
+
arc(outerBr, outerBr, 0, 0, 0, outerSmallArc2XTo, outerSmallArc2YTo)
|
|
845
845
|
);
|
|
846
846
|
} else {
|
|
847
847
|
if (r0 > 0) {
|
|
@@ -912,7 +912,7 @@ var PieSlice = /*#__PURE__*/ (function (_Container) {
|
|
|
912
912
|
br: undefined,
|
|
913
913
|
legendDisplayText: undefined,
|
|
914
914
|
},
|
|
915
|
-
])
|
|
915
|
+
])
|
|
916
916
|
);
|
|
917
917
|
};
|
|
918
918
|
_proto3.prepareData = function prepareData(context, instance) {
|
|
@@ -1035,7 +1035,7 @@ var PieSlice = /*#__PURE__*/ (function (_Container) {
|
|
|
1035
1035
|
segment.startAngle,
|
|
1036
1036
|
segment.endAngle,
|
|
1037
1037
|
data.br,
|
|
1038
|
-
segment.gap
|
|
1038
|
+
segment.gap
|
|
1039
1039
|
);
|
|
1040
1040
|
return /*#__PURE__*/ jsxs(
|
|
1041
1041
|
"g",
|
|
@@ -1061,7 +1061,7 @@ var PieSlice = /*#__PURE__*/ (function (_Container) {
|
|
|
1061
1061
|
_this3.renderChildren(context, instance),
|
|
1062
1062
|
],
|
|
1063
1063
|
},
|
|
1064
|
-
key
|
|
1064
|
+
key
|
|
1065
1065
|
);
|
|
1066
1066
|
});
|
|
1067
1067
|
};
|
|
@@ -1139,7 +1139,7 @@ var PieLabel = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
1139
1139
|
},
|
|
1140
1140
|
lineColorIndex: undefined,
|
|
1141
1141
|
},
|
|
1142
|
-
])
|
|
1142
|
+
])
|
|
1143
1143
|
);
|
|
1144
1144
|
};
|
|
1145
1145
|
_proto.calculateBounds = function calculateBounds(context, instance) {
|
|
@@ -1178,7 +1178,7 @@ var PieLabel = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
1178
1178
|
className: this.CSS.element(
|
|
1179
1179
|
this.baseClass,
|
|
1180
1180
|
"line",
|
|
1181
|
-
data.lineColorIndex != null && "color-" + data.lineColorIndex
|
|
1181
|
+
data.lineColorIndex != null && "color-" + data.lineColorIndex
|
|
1182
1182
|
),
|
|
1183
1183
|
x1: actualBounds.l < originalBounds.l ? actualBounds.r : actualBounds.l,
|
|
1184
1184
|
y1: (actualBounds.t + actualBounds.b) / 2,
|
|
@@ -1193,7 +1193,7 @@ var PieLabel = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
1193
1193
|
}),
|
|
1194
1194
|
],
|
|
1195
1195
|
},
|
|
1196
|
-
key
|
|
1196
|
+
key
|
|
1197
1197
|
);
|
|
1198
1198
|
};
|
|
1199
1199
|
return PieLabel;
|
|
@@ -1301,7 +1301,7 @@ var ColumnBarBase = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
1301
1301
|
borderRadius: undefined,
|
|
1302
1302
|
hidden: undefined,
|
|
1303
1303
|
},
|
|
1304
|
-
])
|
|
1304
|
+
])
|
|
1305
1305
|
);
|
|
1306
1306
|
};
|
|
1307
1307
|
_proto.prepareData = function prepareData(context, instance) {
|
|
@@ -1409,7 +1409,7 @@ var ColumnBarBase = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
1409
1409
|
_this2.renderChildren(context, instance),
|
|
1410
1410
|
],
|
|
1411
1411
|
},
|
|
1412
|
-
key
|
|
1412
|
+
key
|
|
1413
1413
|
);
|
|
1414
1414
|
});
|
|
1415
1415
|
};
|
|
@@ -1458,7 +1458,7 @@ var Column = /*#__PURE__*/ (function (_ColumnBarBase) {
|
|
|
1458
1458
|
size: undefined,
|
|
1459
1459
|
autoSize: undefined,
|
|
1460
1460
|
},
|
|
1461
|
-
])
|
|
1461
|
+
])
|
|
1462
1462
|
);
|
|
1463
1463
|
};
|
|
1464
1464
|
_proto.checkValid = function checkValid(data) {
|
|
@@ -1542,7 +1542,7 @@ var Bar = /*#__PURE__*/ (function (_ColumnBarBase) {
|
|
|
1542
1542
|
size: undefined,
|
|
1543
1543
|
autoSize: undefined,
|
|
1544
1544
|
},
|
|
1545
|
-
])
|
|
1545
|
+
])
|
|
1546
1546
|
);
|
|
1547
1547
|
};
|
|
1548
1548
|
_proto.checkValid = function checkValid(data) {
|
|
@@ -1624,7 +1624,7 @@ function circle(cx, cy, size, props, options) {
|
|
|
1624
1624
|
cx: cx,
|
|
1625
1625
|
cy: cy,
|
|
1626
1626
|
r: size / 2,
|
|
1627
|
-
})
|
|
1627
|
+
})
|
|
1628
1628
|
);
|
|
1629
1629
|
}
|
|
1630
1630
|
registerShape("circle", circle);
|
|
@@ -1637,7 +1637,7 @@ function square(cx, cy, size, props, options) {
|
|
|
1637
1637
|
y: cy - size / 2,
|
|
1638
1638
|
width: size,
|
|
1639
1639
|
height: size,
|
|
1640
|
-
})
|
|
1640
|
+
})
|
|
1641
1641
|
);
|
|
1642
1642
|
}
|
|
1643
1643
|
registerShape("square", square);
|
|
@@ -1651,7 +1651,7 @@ function bar(cx, cy, size, props, options) {
|
|
|
1651
1651
|
y: cy - size / 4,
|
|
1652
1652
|
width: size,
|
|
1653
1653
|
height: size / 2,
|
|
1654
|
-
})
|
|
1654
|
+
})
|
|
1655
1655
|
);
|
|
1656
1656
|
}
|
|
1657
1657
|
registerShape("bar", bar);
|
|
@@ -1664,7 +1664,7 @@ function column(cx, cy, size, props, options) {
|
|
|
1664
1664
|
y: cy - size / 2,
|
|
1665
1665
|
width: size / 2,
|
|
1666
1666
|
height: size,
|
|
1667
|
-
})
|
|
1667
|
+
})
|
|
1668
1668
|
);
|
|
1669
1669
|
}
|
|
1670
1670
|
registerShape("column", column);
|
|
@@ -1677,7 +1677,7 @@ function line(cx, cy, size, props, options) {
|
|
|
1677
1677
|
y1: cy,
|
|
1678
1678
|
x2: cx + size / 2,
|
|
1679
1679
|
y2: cy,
|
|
1680
|
-
})
|
|
1680
|
+
})
|
|
1681
1681
|
);
|
|
1682
1682
|
}
|
|
1683
1683
|
registerShape("line", line);
|
|
@@ -1691,7 +1691,7 @@ function vline(cx, cy, size, props, options) {
|
|
|
1691
1691
|
y1: cy - size / 2,
|
|
1692
1692
|
x2: cx,
|
|
1693
1693
|
y2: cy + size / 2,
|
|
1694
|
-
})
|
|
1694
|
+
})
|
|
1695
1695
|
);
|
|
1696
1696
|
}
|
|
1697
1697
|
registerShape("vline", vline);
|
|
@@ -1708,7 +1708,7 @@ function triangle(cx, cy, size, props, options) {
|
|
|
1708
1708
|
"path",
|
|
1709
1709
|
_extends({}, props, {
|
|
1710
1710
|
d: d,
|
|
1711
|
-
})
|
|
1711
|
+
})
|
|
1712
1712
|
);
|
|
1713
1713
|
}
|
|
1714
1714
|
registerShape("triangle", triangle);
|
|
@@ -1740,7 +1740,7 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
|
|
|
1740
1740
|
},
|
|
1741
1741
|
showValues: undefined,
|
|
1742
1742
|
},
|
|
1743
|
-
])
|
|
1743
|
+
])
|
|
1744
1744
|
);
|
|
1745
1745
|
};
|
|
1746
1746
|
_proto.init = function init() {
|
|
@@ -1822,7 +1822,7 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
|
|
|
1822
1822
|
disabled: e.disabled,
|
|
1823
1823
|
selected: e.selected,
|
|
1824
1824
|
}),
|
|
1825
|
-
entryClass
|
|
1825
|
+
entryClass
|
|
1826
1826
|
),
|
|
1827
1827
|
style: entryStyle,
|
|
1828
1828
|
onClick: e.onClick,
|
|
@@ -1842,7 +1842,7 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
|
|
|
1842
1842
|
}),
|
|
1843
1843
|
],
|
|
1844
1844
|
},
|
|
1845
|
-
i
|
|
1845
|
+
i
|
|
1846
1846
|
);
|
|
1847
1847
|
});
|
|
1848
1848
|
});
|
|
@@ -1857,7 +1857,7 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
|
|
|
1857
1857
|
((_this$CSS$element = {}),
|
|
1858
1858
|
(_this$CSS$element["color-" + entry.colorIndex] =
|
|
1859
1859
|
entry.colorIndex != null && (isUndefined(entry.active) || entry.active)),
|
|
1860
|
-
_this$CSS$element)
|
|
1860
|
+
_this$CSS$element)
|
|
1861
1861
|
);
|
|
1862
1862
|
var shape = getShape(legendEntriesShape || entry.shape || "square");
|
|
1863
1863
|
|
|
@@ -1942,7 +1942,7 @@ var LegendEntry = /*#__PURE__*/ (function (_Container) {
|
|
|
1942
1942
|
ry: undefined,
|
|
1943
1943
|
text: undefined,
|
|
1944
1944
|
},
|
|
1945
|
-
])
|
|
1945
|
+
])
|
|
1946
1946
|
);
|
|
1947
1947
|
};
|
|
1948
1948
|
_proto.prepareData = function prepareData(context, instance) {
|
|
@@ -1992,7 +1992,7 @@ var LegendEntry = /*#__PURE__*/ (function (_Container) {
|
|
|
1992
1992
|
}),
|
|
1993
1993
|
],
|
|
1994
1994
|
},
|
|
1995
|
-
key
|
|
1995
|
+
key
|
|
1996
1996
|
);
|
|
1997
1997
|
};
|
|
1998
1998
|
_proto.renderShape = function renderShape(instance) {
|
|
@@ -2007,7 +2007,7 @@ var LegendEntry = /*#__PURE__*/ (function (_Container) {
|
|
|
2007
2007
|
}),
|
|
2008
2008
|
(_this$CSS$element["color-" + entry.colorIndex] =
|
|
2009
2009
|
entry.colorIndex != null && (isUndefined(entry.active) || entry.active)),
|
|
2010
|
-
_this$CSS$element)
|
|
2010
|
+
_this$CSS$element)
|
|
2011
2011
|
);
|
|
2012
2012
|
var shape = getShape(entry.shape || "square");
|
|
2013
2013
|
|
|
@@ -2030,7 +2030,7 @@ var LegendEntry = /*#__PURE__*/ (function (_Container) {
|
|
|
2030
2030
|
ry: entry.ry,
|
|
2031
2031
|
}),
|
|
2032
2032
|
},
|
|
2033
|
-
"svg"
|
|
2033
|
+
"svg"
|
|
2034
2034
|
);
|
|
2035
2035
|
};
|
|
2036
2036
|
return LegendEntry;
|
|
@@ -2060,7 +2060,7 @@ var ColorMap = /*#__PURE__*/ (function (_Widget) {
|
|
|
2060
2060
|
step: undefined,
|
|
2061
2061
|
size: undefined,
|
|
2062
2062
|
},
|
|
2063
|
-
])
|
|
2063
|
+
])
|
|
2064
2064
|
);
|
|
2065
2065
|
};
|
|
2066
2066
|
_proto.explore = function explore(context, instance) {
|
|
@@ -2196,7 +2196,7 @@ var Marker = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2196
2196
|
rx: undefined,
|
|
2197
2197
|
ry: undefined,
|
|
2198
2198
|
},
|
|
2199
|
-
])
|
|
2199
|
+
])
|
|
2200
2200
|
);
|
|
2201
2201
|
};
|
|
2202
2202
|
_proto.prepareData = function prepareData(context, instance) {
|
|
@@ -2302,7 +2302,7 @@ var Marker = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2302
2302
|
shouldUpdate: instance.shouldUpdate,
|
|
2303
2303
|
children: this.renderChildren(context, instance),
|
|
2304
2304
|
},
|
|
2305
|
-
key
|
|
2305
|
+
key
|
|
2306
2306
|
);
|
|
2307
2307
|
};
|
|
2308
2308
|
_proto.handleMouseDown = function handleMouseDown(e, instance) {
|
|
@@ -2322,7 +2322,7 @@ var Marker = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2322
2322
|
svgEl: svgEl,
|
|
2323
2323
|
el: e.target,
|
|
2324
2324
|
},
|
|
2325
|
-
e.target.style.cursor
|
|
2325
|
+
e.target.style.cursor
|
|
2326
2326
|
);
|
|
2327
2327
|
} else {
|
|
2328
2328
|
if (!this.selection.isDummy) this.selection.selectInstance(instance);
|
|
@@ -2404,7 +2404,7 @@ var MarkerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
|
|
|
2404
2404
|
((_CSS$element = {}),
|
|
2405
2405
|
(_CSS$element["color-" + data.colorIndex] = data.colorIndex != null),
|
|
2406
2406
|
(_CSS$element.selected = data.selected),
|
|
2407
|
-
_CSS$element)
|
|
2407
|
+
_CSS$element)
|
|
2408
2408
|
),
|
|
2409
2409
|
style: data.style,
|
|
2410
2410
|
cx: (bounds.l + bounds.r) / 2,
|
|
@@ -2484,7 +2484,7 @@ var MarkerLine = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2484
2484
|
name: undefined,
|
|
2485
2485
|
legend: undefined,
|
|
2486
2486
|
},
|
|
2487
|
-
])
|
|
2487
|
+
])
|
|
2488
2488
|
);
|
|
2489
2489
|
};
|
|
2490
2490
|
_proto.explore = function explore(context, instance) {
|
|
@@ -2568,7 +2568,7 @@ var MarkerLine = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2568
2568
|
this.renderChildren(context, instance),
|
|
2569
2569
|
],
|
|
2570
2570
|
},
|
|
2571
|
-
key
|
|
2571
|
+
key
|
|
2572
2572
|
);
|
|
2573
2573
|
};
|
|
2574
2574
|
return MarkerLine;
|
|
@@ -2603,7 +2603,7 @@ var Range = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2603
2603
|
name: undefined,
|
|
2604
2604
|
legend: undefined,
|
|
2605
2605
|
},
|
|
2606
|
-
])
|
|
2606
|
+
])
|
|
2607
2607
|
);
|
|
2608
2608
|
};
|
|
2609
2609
|
_proto.explore = function explore(context, instance) {
|
|
@@ -2692,7 +2692,7 @@ var Range = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2692
2692
|
this.renderChildren(context, instance),
|
|
2693
2693
|
],
|
|
2694
2694
|
},
|
|
2695
|
-
key
|
|
2695
|
+
key
|
|
2696
2696
|
);
|
|
2697
2697
|
};
|
|
2698
2698
|
_proto.handleClick = function handleClick(e, instance) {
|
|
@@ -2730,7 +2730,7 @@ var Range = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2730
2730
|
},
|
|
2731
2731
|
null,
|
|
2732
2732
|
captureData,
|
|
2733
|
-
e.target.style.cursor
|
|
2733
|
+
e.target.style.cursor
|
|
2734
2734
|
);
|
|
2735
2735
|
}
|
|
2736
2736
|
};
|
|
@@ -2822,7 +2822,7 @@ var Gridlines = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2822
2822
|
d: path,
|
|
2823
2823
|
}),
|
|
2824
2824
|
},
|
|
2825
|
-
key
|
|
2825
|
+
key
|
|
2826
2826
|
);
|
|
2827
2827
|
};
|
|
2828
2828
|
return Gridlines;
|
|
@@ -2859,7 +2859,7 @@ var Swimlanes = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2859
2859
|
structured: true,
|
|
2860
2860
|
},
|
|
2861
2861
|
},
|
|
2862
|
-
])
|
|
2862
|
+
])
|
|
2863
2863
|
);
|
|
2864
2864
|
};
|
|
2865
2865
|
_proto.explore = function explore(context, instance) {
|
|
@@ -2920,8 +2920,8 @@ var Swimlanes = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2920
2920
|
className: rectClass,
|
|
2921
2921
|
style: data.laneStyle,
|
|
2922
2922
|
},
|
|
2923
|
-
index
|
|
2924
|
-
)
|
|
2923
|
+
index++
|
|
2924
|
+
)
|
|
2925
2925
|
);
|
|
2926
2926
|
} else {
|
|
2927
2927
|
rects.push(
|
|
@@ -2935,8 +2935,8 @@ var Swimlanes = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2935
2935
|
className: rectClass,
|
|
2936
2936
|
style: data.laneStyle,
|
|
2937
2937
|
},
|
|
2938
|
-
index
|
|
2939
|
-
)
|
|
2938
|
+
index++
|
|
2939
|
+
)
|
|
2940
2940
|
);
|
|
2941
2941
|
}
|
|
2942
2942
|
at += data.step;
|
|
@@ -2947,7 +2947,7 @@ var Swimlanes = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2947
2947
|
className: data.classNames,
|
|
2948
2948
|
children: rects,
|
|
2949
2949
|
},
|
|
2950
|
-
key
|
|
2950
|
+
key
|
|
2951
2951
|
);
|
|
2952
2952
|
};
|
|
2953
2953
|
return Swimlanes;
|
|
@@ -2991,7 +2991,7 @@ var Swimlane = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
2991
2991
|
x: undefined,
|
|
2992
2992
|
y: undefined,
|
|
2993
2993
|
},
|
|
2994
|
-
])
|
|
2994
|
+
])
|
|
2995
2995
|
);
|
|
2996
2996
|
};
|
|
2997
2997
|
_proto.explore = function explore(context, instance) {
|
|
@@ -3083,13 +3083,13 @@ var Swimlane = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
3083
3083
|
className: rectClass,
|
|
3084
3084
|
style: data.laneStyle,
|
|
3085
3085
|
},
|
|
3086
|
-
key
|
|
3086
|
+
key
|
|
3087
3087
|
),
|
|
3088
3088
|
this.renderChildren(context, instance),
|
|
3089
3089
|
";",
|
|
3090
3090
|
],
|
|
3091
3091
|
},
|
|
3092
|
-
key
|
|
3092
|
+
key
|
|
3093
3093
|
);
|
|
3094
3094
|
} else {
|
|
3095
3095
|
var _c = axis.map.apply(axis, valueFunction(data.y, -data.size / 2 + data.laneOffset));
|
|
@@ -3109,13 +3109,13 @@ var Swimlane = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
3109
3109
|
className: rectClass,
|
|
3110
3110
|
style: data.laneStyle,
|
|
3111
3111
|
},
|
|
3112
|
-
key
|
|
3112
|
+
key
|
|
3113
3113
|
),
|
|
3114
3114
|
this.renderChildren(context, instance),
|
|
3115
3115
|
";",
|
|
3116
3116
|
],
|
|
3117
3117
|
},
|
|
3118
|
-
key
|
|
3118
|
+
key
|
|
3119
3119
|
);
|
|
3120
3120
|
}
|
|
3121
3121
|
};
|
|
@@ -3157,7 +3157,7 @@ var RangeMarker = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
3157
3157
|
capSize: undefined,
|
|
3158
3158
|
inflate: undefined,
|
|
3159
3159
|
},
|
|
3160
|
-
])
|
|
3160
|
+
])
|
|
3161
3161
|
);
|
|
3162
3162
|
};
|
|
3163
3163
|
_proto.init = function init() {
|
|
@@ -3279,7 +3279,7 @@ var RangeMarker = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
3279
3279
|
this.renderChildren(context, instance),
|
|
3280
3280
|
],
|
|
3281
3281
|
},
|
|
3282
|
-
key
|
|
3282
|
+
key
|
|
3283
3283
|
);
|
|
3284
3284
|
};
|
|
3285
3285
|
return RangeMarker;
|
|
@@ -3333,7 +3333,7 @@ var LineGraph = /*#__PURE__*/ (function (_Widget) {
|
|
|
3333
3333
|
smooth: undefined,
|
|
3334
3334
|
smoothingRatio: undefined,
|
|
3335
3335
|
},
|
|
3336
|
-
])
|
|
3336
|
+
])
|
|
3337
3337
|
);
|
|
3338
3338
|
};
|
|
3339
3339
|
_proto.prepareData = function prepareData(context, instance) {
|
|
@@ -3465,8 +3465,8 @@ var LineGraph = /*#__PURE__*/ (function (_Widget) {
|
|
|
3465
3465
|
i == 0
|
|
3466
3466
|
? "M " + p.x + " " + p.y
|
|
3467
3467
|
: !data.smooth || span.length < 2
|
|
3468
|
-
|
|
3469
|
-
|
|
3468
|
+
? "L " + p.x + " " + p.y
|
|
3469
|
+
: _this4.getCurvedPathSegment(p, span, i - 1, i - 2, i - 1, i + 1, r);
|
|
3470
3470
|
});
|
|
3471
3471
|
});
|
|
3472
3472
|
line = /*#__PURE__*/ jsx("path", {
|
|
@@ -3519,7 +3519,7 @@ var LineGraph = /*#__PURE__*/ (function (_Widget) {
|
|
|
3519
3519
|
className: data.classNames,
|
|
3520
3520
|
children: [line, area],
|
|
3521
3521
|
},
|
|
3522
|
-
key
|
|
3522
|
+
key
|
|
3523
3523
|
);
|
|
3524
3524
|
};
|
|
3525
3525
|
_proto.getCurvedPathSegment = function getCurvedPathSegment(p, points, i1, i2, j1, j2, r, yField) {
|
|
@@ -3634,7 +3634,7 @@ var ColumnBarGraphBase = /*#__PURE__*/ (function (_Widget) {
|
|
|
3634
3634
|
stack: undefined,
|
|
3635
3635
|
borderRadius: undefined,
|
|
3636
3636
|
},
|
|
3637
|
-
])
|
|
3637
|
+
])
|
|
3638
3638
|
);
|
|
3639
3639
|
};
|
|
3640
3640
|
_proto.prepareData = function prepareData(context, instance) {
|
|
@@ -3688,7 +3688,7 @@ var ColumnBarGraphBase = /*#__PURE__*/ (function (_Widget) {
|
|
|
3688
3688
|
className: data.classNames,
|
|
3689
3689
|
children: data.active && this.renderGraph(context, instance),
|
|
3690
3690
|
},
|
|
3691
|
-
key
|
|
3691
|
+
key
|
|
3692
3692
|
);
|
|
3693
3693
|
};
|
|
3694
3694
|
_proto.handleClick = function handleClick(e, instance, point, index) {
|
|
@@ -3824,7 +3824,7 @@ var ColumnGraph = /*#__PURE__*/ (function (_ColumnBarGraphBase) {
|
|
|
3824
3824
|
onMouseLeave: mleave,
|
|
3825
3825
|
rx: data.borderRadius,
|
|
3826
3826
|
},
|
|
3827
|
-
i
|
|
3827
|
+
i
|
|
3828
3828
|
);
|
|
3829
3829
|
});
|
|
3830
3830
|
};
|
|
@@ -3935,7 +3935,7 @@ var BarGraph = /*#__PURE__*/ (function (_ColumnBarGraphBase) {
|
|
|
3935
3935
|
onMouseLeave: mleave,
|
|
3936
3936
|
rx: data.borderRadius,
|
|
3937
3937
|
},
|
|
3938
|
-
i
|
|
3938
|
+
i
|
|
3939
3939
|
);
|
|
3940
3940
|
});
|
|
3941
3941
|
};
|
|
@@ -3978,7 +3978,7 @@ var ScatterGraph = /*#__PURE__*/ (function (_Widget) {
|
|
|
3978
3978
|
active: true,
|
|
3979
3979
|
},
|
|
3980
3980
|
selection,
|
|
3981
|
-
])
|
|
3981
|
+
])
|
|
3982
3982
|
);
|
|
3983
3983
|
};
|
|
3984
3984
|
_proto.prepareData = function prepareData(context, instance) {
|
|
@@ -4045,7 +4045,7 @@ var ScatterGraph = /*#__PURE__*/ (function (_Widget) {
|
|
|
4045
4045
|
className: data.classNames,
|
|
4046
4046
|
children: this.renderData(context, instance),
|
|
4047
4047
|
},
|
|
4048
|
-
key
|
|
4048
|
+
key
|
|
4049
4049
|
);
|
|
4050
4050
|
};
|
|
4051
4051
|
_proto.renderData = function renderData(context, instance) {
|
|
@@ -4069,7 +4069,7 @@ var ScatterGraph = /*#__PURE__*/ (function (_Widget) {
|
|
|
4069
4069
|
selectable: !_this3.selection.isDummy,
|
|
4070
4070
|
}),
|
|
4071
4071
|
(_CSS$element["color-" + data.colorIndex] = data.colorIndex != null),
|
|
4072
|
-
_CSS$element)
|
|
4072
|
+
_CSS$element)
|
|
4073
4073
|
);
|
|
4074
4074
|
var cx = xAxis.map(p[_this3.xField]),
|
|
4075
4075
|
cy = yAxis.map(p[_this3.yField]),
|
|
@@ -4128,7 +4128,7 @@ var BubbleGraph = /*#__PURE__*/ (function (_Widget) {
|
|
|
4128
4128
|
},
|
|
4129
4129
|
},
|
|
4130
4130
|
selection,
|
|
4131
|
-
])
|
|
4131
|
+
])
|
|
4132
4132
|
);
|
|
4133
4133
|
};
|
|
4134
4134
|
_proto.init = function init() {
|
|
@@ -4162,7 +4162,7 @@ var BubbleGraph = /*#__PURE__*/ (function (_Widget) {
|
|
|
4162
4162
|
className: data.classNames,
|
|
4163
4163
|
children: this.renderData(context, instance),
|
|
4164
4164
|
},
|
|
4165
|
-
key
|
|
4165
|
+
key
|
|
4166
4166
|
);
|
|
4167
4167
|
};
|
|
4168
4168
|
_proto.renderData = function renderData(context, instance) {
|
|
@@ -4191,7 +4191,7 @@ var BubbleGraph = /*#__PURE__*/ (function (_Widget) {
|
|
|
4191
4191
|
_this2.onBubbleClick(e, instance, i);
|
|
4192
4192
|
},
|
|
4193
4193
|
},
|
|
4194
|
-
i
|
|
4194
|
+
i
|
|
4195
4195
|
);
|
|
4196
4196
|
})
|
|
4197
4197
|
);
|
|
@@ -4230,7 +4230,7 @@ var MouseTracker = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
4230
4230
|
x: undefined,
|
|
4231
4231
|
y: undefined,
|
|
4232
4232
|
},
|
|
4233
|
-
])
|
|
4233
|
+
])
|
|
4234
4234
|
);
|
|
4235
4235
|
};
|
|
4236
4236
|
_proto.explore = function explore(context, instance) {
|
|
@@ -4265,7 +4265,7 @@ var MouseTracker = /*#__PURE__*/ (function (_BoundedObject) {
|
|
|
4265
4265
|
this.renderChildren(context, instance),
|
|
4266
4266
|
],
|
|
4267
4267
|
},
|
|
4268
|
-
key
|
|
4268
|
+
key
|
|
4269
4269
|
);
|
|
4270
4270
|
};
|
|
4271
4271
|
_proto.handleMouseMove = function handleMouseMove(e, instance) {
|
|
@@ -4373,7 +4373,7 @@ var NumericAxis = /*#__PURE__*/ (function (_Axis) {
|
|
|
4373
4373
|
lowerDeadZone: undefined,
|
|
4374
4374
|
upperDeadZone: undefined,
|
|
4375
4375
|
},
|
|
4376
|
-
])
|
|
4376
|
+
])
|
|
4377
4377
|
);
|
|
4378
4378
|
};
|
|
4379
4379
|
_proto.initInstance = function initInstance(context, instance) {
|
|
@@ -4400,7 +4400,7 @@ var NumericAxis = /*#__PURE__*/ (function (_Axis) {
|
|
|
4400
4400
|
normalized,
|
|
4401
4401
|
inverted,
|
|
4402
4402
|
lowerDeadZone,
|
|
4403
|
-
upperDeadZone
|
|
4403
|
+
upperDeadZone
|
|
4404
4404
|
);
|
|
4405
4405
|
};
|
|
4406
4406
|
_proto.render = function render(context, instance, key) {
|
|
@@ -4411,7 +4411,7 @@ var NumericAxis = /*#__PURE__*/ (function (_Axis) {
|
|
|
4411
4411
|
data.labelDivisor != 1
|
|
4412
4412
|
? function (v) {
|
|
4413
4413
|
return baseFormatter(v / data.labelDivisor);
|
|
4414
|
-
|
|
4414
|
+
}
|
|
4415
4415
|
: baseFormatter;
|
|
4416
4416
|
return /*#__PURE__*/ jsx(
|
|
4417
4417
|
"g",
|
|
@@ -4420,7 +4420,7 @@ var NumericAxis = /*#__PURE__*/ (function (_Axis) {
|
|
|
4420
4420
|
style: data.style,
|
|
4421
4421
|
children: this.renderTicksAndLabels(context, instance, formatter, this.minLabelDistance),
|
|
4422
4422
|
},
|
|
4423
|
-
key
|
|
4423
|
+
key
|
|
4424
4424
|
);
|
|
4425
4425
|
};
|
|
4426
4426
|
NumericAxis.XY = function XY() {
|
|
@@ -4463,7 +4463,7 @@ var NumericScale = /*#__PURE__*/ (function () {
|
|
|
4463
4463
|
normalized,
|
|
4464
4464
|
inverted,
|
|
4465
4465
|
lowerDeadZone,
|
|
4466
|
-
upperDeadZone
|
|
4466
|
+
upperDeadZone
|
|
4467
4467
|
) {
|
|
4468
4468
|
this.min = min;
|
|
4469
4469
|
this.max = max;
|
|
@@ -4586,7 +4586,7 @@ var NumericScale = /*#__PURE__*/ (function () {
|
|
|
4586
4586
|
var factor =
|
|
4587
4587
|
smin < smax
|
|
4588
4588
|
? (Math.abs(this.b - this.a) - this.lowerDeadZone - this.upperDeadZone) /
|
|
4589
|
-
|
|
4589
|
+
(smax - smin + minPadding + maxPadding)
|
|
4590
4590
|
: 0;
|
|
4591
4591
|
if (factor < 0) factor = 0;
|
|
4592
4592
|
if (factor > 0 && (this.lowerDeadZone > 0 || this.upperDeadZone > 0)) {
|
|
@@ -4735,7 +4735,7 @@ var CategoryAxis = /*#__PURE__*/ (function (_Axis) {
|
|
|
4735
4735
|
categoryCount: undefined,
|
|
4736
4736
|
format: undefined,
|
|
4737
4737
|
},
|
|
4738
|
-
])
|
|
4738
|
+
])
|
|
4739
4739
|
);
|
|
4740
4740
|
};
|
|
4741
4741
|
_proto.initInstance = function initInstance(context, instance) {
|
|
@@ -4776,7 +4776,7 @@ var CategoryAxis = /*#__PURE__*/ (function (_Axis) {
|
|
|
4776
4776
|
style: data.style,
|
|
4777
4777
|
children: this.renderTicksAndLabels(context, instance, labelFormatter),
|
|
4778
4778
|
},
|
|
4779
|
-
key
|
|
4779
|
+
key
|
|
4780
4780
|
);
|
|
4781
4781
|
};
|
|
4782
4782
|
return CategoryAxis;
|
|
@@ -5008,7 +5008,7 @@ var TimeAxis = /*#__PURE__*/ (function (_Axis) {
|
|
|
5008
5008
|
this.minLabelDistanceFormatOverride = _extends(
|
|
5009
5009
|
{},
|
|
5010
5010
|
this.minLabelDistanceFormatOverrideDefaults,
|
|
5011
|
-
this.minLabelDistanceFormatOverride
|
|
5011
|
+
this.minLabelDistanceFormatOverride
|
|
5012
5012
|
);
|
|
5013
5013
|
_Axis.prototype.init.call(this);
|
|
5014
5014
|
};
|
|
@@ -5025,7 +5025,7 @@ var TimeAxis = /*#__PURE__*/ (function (_Axis) {
|
|
|
5025
5025
|
lowerDeadZone: undefined,
|
|
5026
5026
|
upperDeadZone: undefined,
|
|
5027
5027
|
},
|
|
5028
|
-
])
|
|
5028
|
+
])
|
|
5029
5029
|
);
|
|
5030
5030
|
};
|
|
5031
5031
|
_proto.initInstance = function initInstance(context, instance) {
|
|
@@ -5054,7 +5054,7 @@ var TimeAxis = /*#__PURE__*/ (function (_Axis) {
|
|
|
5054
5054
|
upperDeadZone,
|
|
5055
5055
|
this.decode,
|
|
5056
5056
|
this.useLabelDistanceFormatOverrides ? this.minLabelDistanceFormatOverride : {},
|
|
5057
|
-
this.format
|
|
5057
|
+
this.format
|
|
5058
5058
|
);
|
|
5059
5059
|
};
|
|
5060
5060
|
_proto.render = function render(context, instance, key) {
|
|
@@ -5073,7 +5073,7 @@ var TimeAxis = /*#__PURE__*/ (function (_Axis) {
|
|
|
5073
5073
|
style: data.style,
|
|
5074
5074
|
children: this.renderTicksAndLabels(context, instance, formatter, minLabelDistance),
|
|
5075
5075
|
},
|
|
5076
|
-
key
|
|
5076
|
+
key
|
|
5077
5077
|
);
|
|
5078
5078
|
};
|
|
5079
5079
|
return TimeAxis;
|
|
@@ -5144,7 +5144,7 @@ var TimeScale = /*#__PURE__*/ (function () {
|
|
|
5144
5144
|
upperDeadZone,
|
|
5145
5145
|
decode,
|
|
5146
5146
|
minLabelDistanceFormatOverride,
|
|
5147
|
-
format
|
|
5147
|
+
format
|
|
5148
5148
|
) {
|
|
5149
5149
|
this.dateCache = {};
|
|
5150
5150
|
this.min = min != null ? this.decodeValue(min) : null;
|
|
@@ -5422,7 +5422,7 @@ var TimeScale = /*#__PURE__*/ (function () {
|
|
|
5422
5422
|
size: s * unitSize,
|
|
5423
5423
|
measure: unit,
|
|
5424
5424
|
};
|
|
5425
|
-
})
|
|
5425
|
+
})
|
|
5426
5426
|
);
|
|
5427
5427
|
return 1; // break
|
|
5428
5428
|
}
|
|
@@ -5618,7 +5618,7 @@ var PointReducer = /*#__PURE__*/ (function (_PureContainer) {
|
|
|
5618
5618
|
structured: true,
|
|
5619
5619
|
},
|
|
5620
5620
|
},
|
|
5621
|
-
])
|
|
5621
|
+
])
|
|
5622
5622
|
);
|
|
5623
5623
|
};
|
|
5624
5624
|
_proto.prepareData = function prepareData(context, instance) {
|
|
@@ -5686,7 +5686,7 @@ var MinMaxFinder = /*#__PURE__*/ (function (_PointReducer) {
|
|
|
5686
5686
|
structured: true,
|
|
5687
5687
|
},
|
|
5688
5688
|
},
|
|
5689
|
-
])
|
|
5689
|
+
])
|
|
5690
5690
|
);
|
|
5691
5691
|
};
|
|
5692
5692
|
_proto.onInitAccumulator = function onInitAccumulator(acc, _ref) {
|
|
@@ -5745,7 +5745,7 @@ var SnapPointFinder = /*#__PURE__*/ (function (_PointReducer) {
|
|
|
5745
5745
|
snapRecord: undefined,
|
|
5746
5746
|
maxDistance: undefined,
|
|
5747
5747
|
},
|
|
5748
|
-
])
|
|
5748
|
+
])
|
|
5749
5749
|
);
|
|
5750
5750
|
};
|
|
5751
5751
|
_proto.explore = function explore(context, instance) {
|
|
@@ -5821,7 +5821,7 @@ var ValueAtFinder = /*#__PURE__*/ (function (_PointReducer) {
|
|
|
5821
5821
|
at: undefined,
|
|
5822
5822
|
value: undefined,
|
|
5823
5823
|
},
|
|
5824
|
-
])
|
|
5824
|
+
])
|
|
5825
5825
|
);
|
|
5826
5826
|
};
|
|
5827
5827
|
_proto.onInitAccumulator = function onInitAccumulator(acc, _ref) {
|