@oliasoft-open-source/charts-library 3.5.1-beta-1 → 3.5.1-beta-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/index.js CHANGED
@@ -25406,10 +25406,13 @@ const useStoreChartStateInStorage = (memoState, persistenceId) => {
25406
25406
  };
25407
25407
  const useUpdateAxesRanges = (range, dispatch) => {
25408
25408
  const prevRange = useRef(null);
25409
+ console.log("Range", range);
25409
25410
  const updateAxesRanges = useCallback(() => {
25411
+ console.log(
25412
+ range && range.x && range.y && !isEqual(range, prevRange.current)
25413
+ );
25410
25414
  if (range && range.x && range.y && !isEqual(range, prevRange.current)) {
25411
- console.log("UPDATE_AXES_RANGES");
25412
- console.log("Range", range);
25415
+ console.log("UPDATE_AXES_RANGES", range);
25413
25416
  const axes = Object.entries(range).map(([key, { min, max }]) => ({
25414
25417
  id: key,
25415
25418
  min: min ?? 0,
@@ -25456,12 +25459,13 @@ const useChartState = ({
25456
25459
  additionalAxesOptions: { range },
25457
25460
  axes
25458
25461
  } = memoOptions;
25462
+ console.log("state", state);
25463
+ console.log("options", options);
25464
+ console.log("memoState", memoState);
25465
+ console.log("memoOptions", memoOptions);
25459
25466
  useStoreChartStateInStorage(memoState, persistenceId);
25460
25467
  useToggleCustomLegendVisibility(memoState, memoOptions);
25461
- useUpdateAxesRanges(
25462
- range,
25463
- dispatch
25464
- );
25468
+ useUpdateAxesRanges(range, dispatch);
25465
25469
  useSaveInitialAxesRanges(chartRef, axes, generatedDatasets, dispatch);
25466
25470
  };
25467
25471
  const WORD_SEPARATOR = " ";