Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
575 Bytes
import { createSelector } from 'reselect';
import { selectChartOffsetInternal } from './selectChartOffsetInternal';
import { ChartOffsetInternal } from '../../util/types';
import { ChartOffset } from '../../types';
export const selectChartOffset = createSelector(
[selectChartOffsetInternal],
(offsetInternal: ChartOffsetInternal): ChartOffset => {
if (!offsetInternal) {
return undefined;
}
return {
top: offsetInternal.top,
bottom: offsetInternal.bottom,
left: offsetInternal.left,
right: offsetInternal.right,
};
},
);