import {
assertDataset,
assertArrayShape,
assertNumericType,
} from '@h5web/shared';
import DimensionMapper from '../../../dimension-mapper/DimensionMapper';
import { useDimMappingState } from '../../../dimension-mapper/hooks';
import VisBoundary from '../../VisBoundary';
import type { VisContainerProps } from '../../models';
import ValueFetcher from '../ValueFetcher';
import { getSliceSelection } from '../utils';
import MappedLineVis from './MappedLineVis';
import { useLineConfig } from './config';
function LineVisContainer(props: VisContainerProps) {
const { entity, toolbarContainer } = props;
assertDataset(entity);
assertArrayShape(entity);
assertNumericType(entity);
const { shape: dims } = entity;
const [dimMapping, setDimMapping] = useDimMappingState(dims, 1);
const config = useLineConfig();
const { autoScale } = config;
const selection = autoScale ? getSliceSelection(dimMapping) : undefined;
return (
<>
(
)}
/>
>
);
}
export default LineVisContainer;