cx 22.1.0 → 22.1.3

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 CHANGED
@@ -1046,6 +1046,12 @@ var PieLabel = /*#__PURE__*/ (function(_BoundedObject) {
1046
1046
 
1047
1047
  var _proto = PieLabel.prototype;
1048
1048
 
1049
+ _proto.init = function init() {
1050
+ this.lineStyle = parseStyle(this.lineStyle);
1051
+
1052
+ _BoundedObject.prototype.init.call(this);
1053
+ };
1054
+
1049
1055
  _proto.declareData = function declareData() {
1050
1056
  var _BoundedObject$protot;
1051
1057
 
@@ -1057,7 +1063,15 @@ var PieLabel = /*#__PURE__*/ (function(_BoundedObject) {
1057
1063
  _BoundedObject$protot,
1058
1064
  [this].concat(args, [
1059
1065
  {
1060
- distance: undefined
1066
+ distance: undefined,
1067
+ lineStyle: {
1068
+ structured: true
1069
+ },
1070
+ lineStroke: undefined,
1071
+ lineClass: {
1072
+ structured: true
1073
+ },
1074
+ lineColorIndex: undefined
1061
1075
  }
1062
1076
  ])
1063
1077
  );
@@ -1086,17 +1100,25 @@ var PieLabel = /*#__PURE__*/ (function(_BoundedObject) {
1086
1100
 
1087
1101
  _proto.render = function render(context, instance, key) {
1088
1102
  var originalBounds = instance.originalBounds,
1089
- actualBounds = instance.actualBounds;
1103
+ actualBounds = instance.actualBounds,
1104
+ data = instance.data;
1090
1105
  return /*#__PURE__*/ jsxs(
1091
1106
  "g",
1092
1107
  {
1108
+ className: data.classNames,
1093
1109
  children: [
1094
1110
  /*#__PURE__*/ jsx("line", {
1111
+ className: this.CSS.element(
1112
+ this.baseClass,
1113
+ "line",
1114
+ data.lineColorIndex != null && "color-" + data.lineColorIndex
1115
+ ),
1095
1116
  x1: actualBounds.l < originalBounds.l ? actualBounds.r : actualBounds.l,
1096
1117
  y1: (actualBounds.t + actualBounds.b) / 2,
1097
1118
  x2: (originalBounds.l + originalBounds.r) / 2,
1098
1119
  y2: (originalBounds.t + originalBounds.b) / 2,
1099
- stroke: "gray"
1120
+ stroke: data.lineStroke,
1121
+ style: data.lineStyle
1100
1122
  }),
1101
1123
  /*#__PURE__*/ jsx("g", {
1102
1124
  transform: "translate(" + instance.actualBounds.l + " " + instance.actualBounds.t + ")",
@@ -1111,6 +1133,8 @@ var PieLabel = /*#__PURE__*/ (function(_BoundedObject) {
1111
1133
  return PieLabel;
1112
1134
  })(BoundedObject);
1113
1135
  PieLabel.prototype.distance = 100;
1136
+ PieLabel.prototype.baseClass = "pielabel";
1137
+ PieLabel.prototype.styled = true;
1114
1138
 
1115
1139
  var PieLabelsContainer = /*#__PURE__*/ (function(_BoundedObject) {
1116
1140
  _inheritsLoose(PieLabelsContainer, _BoundedObject);