@oliasoft-open-source/charts-library 3.5.1-beta-8 → 3.5.1-beta-9
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 +5 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25413,28 +25413,18 @@ const useStoreChartStateInStorage = (memoState, persistenceId) => {
|
|
|
25413
25413
|
]);
|
|
25414
25414
|
};
|
|
25415
25415
|
const useUpdateAxesRanges = (range, dispatch) => {
|
|
25416
|
-
const
|
|
25417
|
-
|
|
25418
|
-
axes: null
|
|
25419
|
-
});
|
|
25420
|
-
console.log("prevRange.current", prevProps.current);
|
|
25421
|
-
console.log("Range", range);
|
|
25422
|
-
const axes = range && isRangeValid(range) && Object.entries(range).map(([key, { min, max }]) => ({
|
|
25416
|
+
const prevAxes = useRef(null);
|
|
25417
|
+
const axes = range && isRangeValid(range) ? Object.entries(range).map(([key, { min, max }]) => ({
|
|
25423
25418
|
id: key,
|
|
25424
25419
|
min: min ?? 0,
|
|
25425
25420
|
max: max ?? 0
|
|
25426
|
-
}));
|
|
25427
|
-
|
|
25428
|
-
console.log("AXES", !isEqual(axes, prevProps.current.axes));
|
|
25429
|
-
if (!isEqual(axes, prevProps.current.axes)) {
|
|
25430
|
-
console.log("UPDATE_AXES_RANGES");
|
|
25421
|
+
})) : null;
|
|
25422
|
+
if (!isEqual(axes, prevAxes.current)) {
|
|
25431
25423
|
dispatch({
|
|
25432
25424
|
type: UPDATE_AXES_RANGES,
|
|
25433
25425
|
payload: { axes }
|
|
25434
25426
|
});
|
|
25435
|
-
|
|
25436
|
-
prevProps.current.axes = axes;
|
|
25437
|
-
console.log("-----------------------");
|
|
25427
|
+
prevAxes.current = axes;
|
|
25438
25428
|
}
|
|
25439
25429
|
};
|
|
25440
25430
|
const useSaveInitialAxesRanges = (chartRef, axes, generatedDatasets, dispatch) => {
|