@oliasoft-open-source/charts-library 3.5.1-beta-6 → 3.5.1-beta-7
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
|
@@ -25416,15 +25416,8 @@ const useUpdateAxesRanges = (range, dispatch) => {
|
|
|
25416
25416
|
const prevRange = useRef(null);
|
|
25417
25417
|
console.log("prevRange.current", prevRange.current);
|
|
25418
25418
|
console.log("Range", range);
|
|
25419
|
-
console.log("is NOT Equal", !isEqual(range, prevRange.current));
|
|
25420
|
-
console.log("range && range.x && range.y", range && range.x && range.y);
|
|
25421
|
-
console.log("isRangeValid", isRangeValid(range));
|
|
25422
25419
|
const updateAxesRanges = () => {
|
|
25423
|
-
|
|
25424
|
-
"IF STATEMENT",
|
|
25425
|
-
range && range.x && range.y && !isEqual(range, prevRange.current)
|
|
25426
|
-
);
|
|
25427
|
-
if (range && range.x && range.y && !isEqual(range, prevRange.current)) {
|
|
25420
|
+
if (range && isRangeValid(range)) {
|
|
25428
25421
|
console.log("UPDATE_AXES_RANGES", range);
|
|
25429
25422
|
const axes = Object.entries(range).map(([key, { min, max }]) => ({
|
|
25430
25423
|
id: key,
|
|
@@ -25440,7 +25433,7 @@ const useUpdateAxesRanges = (range, dispatch) => {
|
|
|
25440
25433
|
};
|
|
25441
25434
|
useEffect(() => {
|
|
25442
25435
|
updateAxesRanges();
|
|
25443
|
-
}, [
|
|
25436
|
+
}, [range]);
|
|
25444
25437
|
};
|
|
25445
25438
|
const useSaveInitialAxesRanges = (chartRef, axes, generatedDatasets, dispatch) => {
|
|
25446
25439
|
const prevGeneratedDatasets = useRef();
|
|
@@ -25472,8 +25465,6 @@ const useChartState = ({
|
|
|
25472
25465
|
additionalAxesOptions: { range },
|
|
25473
25466
|
axes
|
|
25474
25467
|
} = memoOptions;
|
|
25475
|
-
console.log("state.initialAxesRanges", state == null ? void 0 : state.initialAxesRanges);
|
|
25476
|
-
console.log("memoState.initialAxesRanges", memoState == null ? void 0 : memoState.initialAxesRanges);
|
|
25477
25468
|
useStoreChartStateInStorage(memoState, persistenceId);
|
|
25478
25469
|
useToggleCustomLegendVisibility(memoState, memoOptions);
|
|
25479
25470
|
useUpdateAxesRanges(range, dispatch);
|