@oliasoft-open-source/charts-library 3.6.6-beta-1 → 3.6.6
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/index.js
CHANGED
|
@@ -24834,7 +24834,7 @@ const useLegendState = ({
|
|
|
24834
24834
|
};
|
|
24835
24835
|
};
|
|
24836
24836
|
const LEGEND_MARGIN = 4;
|
|
24837
|
-
const
|
|
24837
|
+
const createLegendStyle = (legendPosition, chart2) => {
|
|
24838
24838
|
const { height = 0, width = 0, chartArea } = chart2;
|
|
24839
24839
|
const { top: top2, left: left2, bottom: bottom2, right: right2 } = chartArea;
|
|
24840
24840
|
return {
|
|
@@ -24882,10 +24882,7 @@ const LegendPanel = forwardRef((props, ref) => {
|
|
|
24882
24882
|
const newItems = getGeneratedLabels(chart2);
|
|
24883
24883
|
setItems(newItems);
|
|
24884
24884
|
}, [generatedDatasets, chart2]);
|
|
24885
|
-
const style =
|
|
24886
|
-
() => createStyleObject(legendPosition, chart2),
|
|
24887
|
-
[chart2, legendPosition]
|
|
24888
|
-
);
|
|
24885
|
+
const style = createLegendStyle(legendPosition, chart2);
|
|
24889
24886
|
return /* @__PURE__ */ jsxs(
|
|
24890
24887
|
"div",
|
|
24891
24888
|
{
|