import { jsx } from '@antv/f-engine';
import PolarX from './polar/polar-x';
import PolarY from './polar/polar-y';
import Top from './rect/top';
import Bottom from './rect/bottom';
import Right from './rect/right';
import Left from './rect/left';
import { PolarAxisProps, RectAxisProps } from './types';
function isPolar(props: PolarAxisProps | RectAxisProps): props is PolarAxisProps {
return props.coord.isPolar;
}
export default (props: PolarAxisProps | RectAxisProps) => {
// 极坐标
if (isPolar(props)) {
const { dimType } = props;
if (dimType === 'x') {
return ;
}
return ;
}
const { position } = props;
// 直角坐标
if (position === 'right') {
return ;
}
if (position === 'left') {
return ;
}
if (position === 'top') {
return ;
}
return ;
};