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