@antv/g2
Version:
the Grammar of Graphics in Javascript
25 lines (23 loc) • 442 B
text/typescript
import {
Sankey,
Treemap,
Pack,
ForceGraph,
Tree,
Chord,
Partition,
} from '../mark';
import { Arc, Cluster } from '../data';
export function graphlib() {
return {
'data.arc': Arc,
'data.cluster': Cluster,
'mark.forceGraph': ForceGraph,
'mark.tree': Tree,
'mark.pack': Pack,
'mark.sankey': Sankey,
'mark.chord': Chord,
'mark.treemap': Treemap,
'mark.partition': Partition,
} as const;
}