@wdslib/web-design
Version:
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
22 lines (20 loc) • 590 B
TypeScript
import { Graph } from '@antv/x6';
interface ShapeConfig {
size: [number, number];
position: [number, number];
[prop: string]: any;
}
export declare class BaseGraph {
private container;
private static instance;
graph: Graph | null;
private constructor();
static getInstance(container: HTMLElement): BaseGraph;
init(): Promise<void>;
createShape(config: ShapeConfig): void;
addNode(config: ShapeConfig): void;
private updateView;
private onEdgeConnected;
}
export declare const baseGraph: (container: HTMLElement) => BaseGraph;
export {};