@oliasoft-open-source/charts-library 3.5.1-beta-3 → 3.5.1-beta-4
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 +2 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25407,7 +25407,7 @@ const useStoreChartStateInStorage = (memoState, persistenceId) => {
|
|
|
25407
25407
|
const useUpdateAxesRanges = (range, dispatch) => {
|
|
25408
25408
|
const prevRange = useRef(null);
|
|
25409
25409
|
console.log("Range", range);
|
|
25410
|
-
const updateAxesRanges =
|
|
25410
|
+
const updateAxesRanges = () => {
|
|
25411
25411
|
console.log(
|
|
25412
25412
|
range && range.x && range.y && !isEqual(range, prevRange.current)
|
|
25413
25413
|
);
|
|
@@ -25424,7 +25424,7 @@ const useUpdateAxesRanges = (range, dispatch) => {
|
|
|
25424
25424
|
});
|
|
25425
25425
|
prevRange.current = range;
|
|
25426
25426
|
}
|
|
25427
|
-
}
|
|
25427
|
+
};
|
|
25428
25428
|
useEffect(() => {
|
|
25429
25429
|
updateAxesRanges();
|
|
25430
25430
|
}, [updateAxesRanges]);
|
|
@@ -25459,10 +25459,6 @@ const useChartState = ({
|
|
|
25459
25459
|
additionalAxesOptions: { range },
|
|
25460
25460
|
axes
|
|
25461
25461
|
} = memoOptions;
|
|
25462
|
-
console.log("state", state);
|
|
25463
|
-
console.log("options", options);
|
|
25464
|
-
console.log("memoState", memoState);
|
|
25465
|
-
console.log("memoOptions", memoOptions);
|
|
25466
25462
|
useStoreChartStateInStorage(memoState, persistenceId);
|
|
25467
25463
|
useToggleCustomLegendVisibility(memoState, memoOptions);
|
|
25468
25464
|
useUpdateAxesRanges(range, dispatch);
|