UNPKG

@antv/x6

Version:

JavaScript diagramming library that uses SVG and HTML for rendering

27 lines (20 loc) 423 B
import { Disposable } from '../common' import { Graph } from './graph' export class Base extends Disposable { public readonly graph: Graph public get options() { return this.graph.options } public get model() { return this.graph.model } public get view() { return this.graph.view } constructor(graph: Graph) { super() this.graph = graph this.init() } protected init() {} }