@maxgraph/core
Version:
maxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.
10 lines (9 loc) • 569 B
TypeScript
import Cell from '../cell/Cell.js';
import type { AbstractGraph } from '../AbstractGraph.js';
type PartialGraph = Pick<AbstractGraph, 'addCell' | 'getChildCells'>;
type PartialVertex = Pick<AbstractGraph, 'vertexLabelsMovable' | 'allowNegativeCoordinates' | 'isAllowNegativeCoordinates' | 'setAllowNegativeCoordinates' | 'createVertex' | 'getChildVertices' | 'isVertexLabelsMovable' | 'setVertexLabelsMovable'> & {
insertVertex: (...args: any[]) => Cell;
};
type PartialType = PartialGraph & PartialVertex;
export declare const VertexMixin: PartialType;
export {};