@oliasoft-open-source/charts-library 3.5.3-beta-5 → 3.5.3-beta-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 +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22318,6 +22318,7 @@ const initialState = ({ options, persistenceId }) => {
|
|
|
22318
22318
|
const xStateAxes = getStateAxesByType(AxisType.X, customAxesRange);
|
|
22319
22319
|
const yStateAxes = getStateAxesByType(AxisType.Y, customAxesRange);
|
|
22320
22320
|
const stateAxes = [...xStateAxes, ...yStateAxes];
|
|
22321
|
+
console.log("stateAxes", stateAxes);
|
|
22321
22322
|
const {
|
|
22322
22323
|
zoomEnabled,
|
|
22323
22324
|
panEnabled,
|
|
@@ -25434,7 +25435,11 @@ const useUpdateAxesRanges = (range, dispatch) => {
|
|
|
25434
25435
|
max: max ?? 0
|
|
25435
25436
|
})) : null;
|
|
25436
25437
|
if (!isEqual(axes, prevAxes.current) && axes !== null) {
|
|
25438
|
+
console.log("------------");
|
|
25437
25439
|
console.log("WRONG");
|
|
25440
|
+
console.log(axes);
|
|
25441
|
+
console.log(prevAxes.current);
|
|
25442
|
+
console.log("------------");
|
|
25438
25443
|
dispatch({
|
|
25439
25444
|
type: UPDATE_AXES_RANGES,
|
|
25440
25445
|
payload: { axes }
|
|
@@ -25447,6 +25452,7 @@ const useSaveInitialAxesRanges = (chartRef, axes, generatedDatasets, dispatch) =
|
|
|
25447
25452
|
const saveInitialAxesRanges = useCallback(() => {
|
|
25448
25453
|
if (chartRef && !isEqual(generatedDatasets, prevGeneratedDatasets.current)) {
|
|
25449
25454
|
const initialAxesRanges = getAxesRangesFromChart(chartRef, axes);
|
|
25455
|
+
console.log("initialAxesRanges", initialAxesRanges);
|
|
25450
25456
|
dispatch({
|
|
25451
25457
|
type: SAVE_INITIAL_AXES_RANGES,
|
|
25452
25458
|
payload: { initialAxesRanges }
|
|
@@ -25730,8 +25736,7 @@ const LineChart = (props) => {
|
|
|
25730
25736
|
});
|
|
25731
25737
|
const usePlugins = useChartPlugins({ options, resetZoom: resetZoom2 });
|
|
25732
25738
|
console.log("State", state);
|
|
25733
|
-
console.log("
|
|
25734
|
-
console.log("Options", useOptions);
|
|
25739
|
+
console.log("options", options);
|
|
25735
25740
|
return /* @__PURE__ */ jsxs(
|
|
25736
25741
|
"div",
|
|
25737
25742
|
{
|