cx 23.9.1 → 23.11.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.js CHANGED
@@ -974,8 +974,14 @@ var PieLabel = /*#__PURE__*/ (function (_BoundedObject) {
974
974
  _BoundedObject.prototype.prepare.call(this, context, instance);
975
975
  if (!context.registerPieLabel)
976
976
  throw new Error("PieLabel components are allowed only within PieLabelsContainer components.");
977
+ console.log(instance.actualBounds, instance.originalBounds, instance.parentRect);
978
+ var right = instance.parentRect.r > instance.parentRect.l;
979
+ context.push("textDirection", right ? "right" : "left");
977
980
  context.registerPieLabel(instance);
978
981
  };
982
+ _proto.prepareCleanup = function prepareCleanup(context, instance) {
983
+ context.pop("textDirection");
984
+ };
979
985
  _proto.render = function render(context, instance, key) {
980
986
  var originalBounds = instance.originalBounds,
981
987
  actualBounds = instance.actualBounds,