@oliasoft-open-source/charts-library 3.5.3-beta-4 → 3.5.3-beta-5
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 +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22280,6 +22280,7 @@ const initialState = ({ options, persistenceId }) => {
|
|
|
22280
22280
|
if (!axes[axisType]) {
|
|
22281
22281
|
return [];
|
|
22282
22282
|
}
|
|
22283
|
+
console.log("getStateAxesByType");
|
|
22283
22284
|
if (((_a2 = axes[axisType]) == null ? void 0 : _a2.length) > 1) {
|
|
22284
22285
|
return axes[axisType].map(
|
|
22285
22286
|
(axisObj, index2) => {
|
|
@@ -22302,6 +22303,7 @@ const initialState = ({ options, persistenceId }) => {
|
|
|
22302
22303
|
const customMin = (_b2 = customAxesRange2 == null ? void 0 : customAxesRange2[id]) == null ? void 0 : _b2.min;
|
|
22303
22304
|
const customMax = (_c2 = customAxesRange2 == null ? void 0 : customAxesRange2[id]) == null ? void 0 : _c2.max;
|
|
22304
22305
|
const unit = (_e2 = (_d2 = axes == null ? void 0 : axes[id]) == null ? void 0 : _d2[0]) == null ? void 0 : _e2.unit;
|
|
22306
|
+
console.log("id", id);
|
|
22305
22307
|
return [
|
|
22306
22308
|
{
|
|
22307
22309
|
id,
|
|
@@ -25267,7 +25269,7 @@ const useChartOptions = ({
|
|
|
25267
25269
|
);
|
|
25268
25270
|
const scales = useMemo(
|
|
25269
25271
|
() => autoScale(options, state, generatedDatasets, chartRef),
|
|
25270
|
-
[options, state, generatedDatasets]
|
|
25272
|
+
[options, state, generatedDatasets, chartRef]
|
|
25271
25273
|
);
|
|
25272
25274
|
const dragData = useMemo(
|
|
25273
25275
|
() => enableDragPoints && getDraggableData(options),
|
|
@@ -25350,7 +25352,7 @@ const useChartOptions = ({
|
|
|
25350
25352
|
plugins,
|
|
25351
25353
|
events: Object.values(Events)
|
|
25352
25354
|
}),
|
|
25353
|
-
[state, options]
|
|
25355
|
+
[state, options, chartRef]
|
|
25354
25356
|
);
|
|
25355
25357
|
};
|
|
25356
25358
|
const useChartPlugins = ({ options, resetZoom: resetZoom2 }) => {
|
|
@@ -25432,6 +25434,7 @@ const useUpdateAxesRanges = (range, dispatch) => {
|
|
|
25432
25434
|
max: max ?? 0
|
|
25433
25435
|
})) : null;
|
|
25434
25436
|
if (!isEqual(axes, prevAxes.current) && axes !== null) {
|
|
25437
|
+
console.log("WRONG");
|
|
25435
25438
|
dispatch({
|
|
25436
25439
|
type: UPDATE_AXES_RANGES,
|
|
25437
25440
|
payload: { axes }
|
|
@@ -25728,7 +25731,7 @@ const LineChart = (props) => {
|
|
|
25728
25731
|
const usePlugins = useChartPlugins({ options, resetZoom: resetZoom2 });
|
|
25729
25732
|
console.log("State", state);
|
|
25730
25733
|
console.log("Dataset", generatedDatasets);
|
|
25731
|
-
console.log("Options",
|
|
25734
|
+
console.log("Options", useOptions);
|
|
25732
25735
|
return /* @__PURE__ */ jsxs(
|
|
25733
25736
|
"div",
|
|
25734
25737
|
{
|