@antv/f2
Version:
Charts for mobile visualization.
18 lines • 374 B
JavaScript
import rect from './rect';
import line from './line';
import text from './text';
import circle from './circle';
import marker from './marker';
var map = {
rect: rect,
line: line,
text: text,
circle: circle,
marker: marker,
group: rect
};
export default (function (type, layout) {
if (!layout) return null;
var fn = map[type] || rect;
return fn(layout);
});