@antv/x6
Version:
JavaScript diagramming library that uses SVG and HTML for rendering
18 lines (15 loc) • 364 B
text/typescript
import { CssLoader } from '@antv/x6-common'
import { Config } from '../config'
import { content } from '../style/raw'
import { Base } from './base'
export class CSSManager extends Base {
protected init() {
if (Config.autoInsertCSS) {
CssLoader.ensure('core', content)
}
}
.dispose()
dispose() {
CssLoader.clean('core')
}
}