cx 23.9.1 → 23.11.1
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 +6 -0
- package/dist/manifest.js +854 -854
- package/dist/svg.js +14 -2
- package/dist/widgets.css +43 -22
- package/dist/widgets.js +76 -18
- package/package.json +1 -1
- package/src/charts/PieLabel.js +7 -0
- package/src/svg/Text.d.ts +20 -19
- package/src/svg/Text.js +49 -33
- package/src/ui/Repeater.d.ts +60 -61
- package/src/widgets/List.d.ts +5 -6
- package/src/widgets/form/ColorPicker.js +43 -14
- package/src/widgets/form/ColorPicker.scss +275 -185
- package/src/widgets/form/ColorPicker.variables.scss +22 -21
- package/src/widgets/form/LookupField.d.ts +174 -171
- package/src/widgets/form/LookupField.js +8 -3
- package/src/widgets/form/UploadButton.d.ts +34 -34
- package/src/widgets/grid/Grid.d.ts +11 -11
- package/src/widgets/icons/pixel-picker.js +17 -0
- package/src/widgets/overlay/Tooltip.d.ts +1 -1
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,
|