UNPKG

@antv/g6

Version:

A Graph Visualization Framework in JavaScript

29 lines (27 loc) 1.21 kB
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>; // theme is a object options 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>; // animation spec transform: Record<string, { new (...args: any[]): Transform }>; shape: Record<string, { new (...args: any[]): DisplayObject }>; }