@ant-design/graphs
Version:
A React graph library based on Graphin
10 lines (9 loc) • 350 B
JavaScript
import { register } from '@antv/g6';
import { BUILT_IN_EXTENSIONS } from './build-in';
export function registerBuiltInExtensions() {
Object.entries(BUILT_IN_EXTENSIONS).forEach(([category, extensions]) => {
Object.entries(extensions).forEach(([type, extension]) => {
register(category, type, extension);
});
});
}