@antv/x6
Version:
JavaScript diagramming library that uses SVG and HTML for rendering
29 lines (21 loc) • 455 B
text/typescript
import { Disposable } from '@antv/x6-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() {}
}
export namespace Base {}