@antv/f2
Version:
Charts for mobile visualization.
11 lines • 394 B
JavaScript
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
import { jsx } from '../../jsx';
import SunburstView from './sunburstView';
import IcicleView from './icicleView';
export default (function (props) {
var coord = props.coord;
if (coord.type === 'polar') {
return jsx(SunburstView, _objectSpread({}, props));
}
return jsx(IcicleView, _objectSpread({}, props));
});