DieselDepot-APP/node_modules/recharts/es6/state/polarOptionsSlice.js
SJCoetz def597c157 chore: add generated build artifacts and node module type files
add all Next.js build outputs and third-party dependency type declaration files
2026-07-20 01:18:42 +02:00

24 lines
No EOL
741 B
JavaScript

import { createSlice } from '@reduxjs/toolkit';
var initialState = null;
var reducers = {
updatePolarOptions: (state, action) => {
if (state === null) {
return action.payload;
}
state.startAngle = action.payload.startAngle;
state.endAngle = action.payload.endAngle;
state.cx = action.payload.cx;
state.cy = action.payload.cy;
state.innerRadius = action.payload.innerRadius;
state.outerRadius = action.payload.outerRadius;
return state;
}
};
var polarOptionsSlice = createSlice({
name: 'polarOptions',
initialState,
reducers
});
var updatePolarOptions = polarOptionsSlice.actions.updatePolarOptions;
export { updatePolarOptions };
export var polarOptionsReducer = polarOptionsSlice.reducer;