@antv/g6
Version:
A Graph Visualization Framework in JavaScript
44 lines (43 loc) • 1.28 kB
TypeScript
import type { DisplayObject } from '@antv/g';
import type { STDAnimation } from '../animations/types';
import type { Behavior } from '../behaviors/types';
import type { Layout } from '../layouts/types';
import type { STDPalette } from '../palettes/types';
import type { Plugin } from '../plugins/types';
import type { Theme } from '../themes/types';
import type { Transform } from '../transforms/types';
import type { Combo, Edge, Node } from '../types';
/**
* <zh/> 扩展注册表
*
* <en/> Extension registry
*/
export interface ExtensionRegistry {
node: Record<string, {
new (...args: any[]): Node;
}>;
edge: Record<string, {
new (...args: any[]): Edge;
}>;
combo: Record<string, {
new (...args: any[]): Combo;
}>;
theme: Record<string, Theme>;
palette: Record<string, STDPalette>;
layout: Record<string, {
new (...args: any[]): Layout;
}>;
behavior: Record<string, {
new (...args: any[]): Behavior;
}>;
plugin: Record<string, {
new (...args: any[]): Plugin;
}>;
animation: Record<string, STDAnimation>;
transform: Record<string, {
new (...args: any[]): Transform;
}>;
shape: Record<string, {
new (...args: any[]): DisplayObject;
}>;
}