@ant-design/graphs
Version:
A React graph library based on Graphin
12 lines (10 loc) • 405 B
text/typescript
import type { ExtensionCategory } from '@antv/g6';
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 as ExtensionCategory, type, extension);
});
});
}